Imported Upstream version 7.86.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) 1998 - 2022 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_OPENSSL
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 NSS_LIBS
956 USE_NSS
957 USE_RUSTLS
958 USE_BEARSSL
959 USE_WOLFSSL
960 USE_MBEDTLS
961 HAVE_GNUTLS_SRP
962 USE_GNUTLS
963 HAVE_OPENSSL_SRP
964 RANDOM_FILE
965 SSL_LIBS
966 USE_SECTRANSP
967 USE_WINDOWS_SSPI
968 USE_SCHANNEL
969 DEFAULT_SSL_BACKEND
970 BUILD_STUB_GSS_FALSE
971 BUILD_STUB_GSS_TRUE
972 IPV6_ENABLED
973 USE_OPENLDAP
974 HAVE_ZSTD
975 HAVE_BROTLI
976 ZLIB_LIBS
977 HAVE_LIBZ_FALSE
978 HAVE_LIBZ_TRUE
979 HAVE_LIBZ
980 HAVE_PROTO_BSDSOCKET_H
981 CURL_DISABLE_MQTT
982 CURL_DISABLE_GOPHER
983 CURL_DISABLE_SMTP
984 CURL_DISABLE_SMB
985 CURL_DISABLE_IMAP
986 CURL_DISABLE_POP3
987 CURL_DISABLE_TFTP
988 CURL_DISABLE_TELNET
989 CURL_DISABLE_DICT
990 CURL_DISABLE_PROXY
991 USE_HYPER
992 PKGCONFIG
993 HAVE_LDAP_SSL
994 CURL_DISABLE_LDAPS
995 CURL_DISABLE_LDAP
996 CURL_DISABLE_FILE
997 CURL_DISABLE_FTP
998 CURL_DISABLE_RTSP
999 CURL_DISABLE_HTTP
1000 OS_WINDOWS_FALSE
1001 OS_WINDOWS_TRUE
1002 USE_WIN32_CRYPTO
1003 USE_WIN32_SMALL_FILES
1004 USE_WIN32_LARGE_FILES
1005 DOING_NATIVE_WINDOWS_FALSE
1006 DOING_NATIVE_WINDOWS_TRUE
1007 BUILD_UNITTESTS_FALSE
1008 BUILD_UNITTESTS_TRUE
1009 CURLDEBUG_FALSE
1010 CURLDEBUG_TRUE
1011 CURL_CFLAG_EXTRAS
1012 USE_EXPLICIT_LIB_DEPS_FALSE
1013 USE_EXPLICIT_LIB_DEPS_TRUE
1014 REQUIRE_LIB_DEPS
1015 CPPFLAG_CURL_STATICLIB
1016 USE_CPPFLAG_CURL_STATICLIB_FALSE
1017 USE_CPPFLAG_CURL_STATICLIB_TRUE
1018 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
1019 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
1020 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
1021 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
1022 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
1023 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1024 RC
1025 LT_SYS_LIBRARY_PATH
1026 OTOOL64
1027 OTOOL
1028 LIPO
1029 NMEDIT
1030 DSYMUTIL
1031 MANIFEST_TOOL
1032 RANLIB
1033 ac_ct_AR
1034 FILECMD
1035 LN_S
1036 NM
1037 ac_ct_DUMPBIN
1038 DUMPBIN
1039 LD
1040 FGREP
1041 LIBTOOL
1042 OBJDUMP
1043 DLLTOOL
1044 AS
1045 AR_FLAGS
1046 host_os
1047 host_vendor
1048 host_cpu
1049 host
1050 build_os
1051 build_vendor
1052 build_cpu
1053 build
1054 PKGADD_VENDOR
1055 PKGADD_NAME
1056 PKGADD_PKG
1057 VERSIONNUM
1058 CURLVERSION
1059 CSCOPE
1060 ETAGS
1061 CTAGS
1062 am__fastdepCC_FALSE
1063 am__fastdepCC_TRUE
1064 CCDEPMODE
1065 am__nodep
1066 AMDEPBACKSLASH
1067 AMDEP_FALSE
1068 AMDEP_TRUE
1069 am__include
1070 DEPDIR
1071 am__untar
1072 am__tar
1073 AMTAR
1074 am__leading_dot
1075 SET_MAKE
1076 AWK
1077 mkdir_p
1078 MKDIR_P
1079 INSTALL_STRIP_PROGRAM
1080 STRIP
1081 install_sh
1082 MAKEINFO
1083 AUTOHEADER
1084 AUTOMAKE
1085 AUTOCONF
1086 ACLOCAL
1087 VERSION
1088 PACKAGE
1089 CYGPATH_W
1090 am__isrc
1091 LCOV
1092 GCOV
1093 CPP
1094 OBJEXT
1095 EXEEXT
1096 ac_ct_CC
1097 CPPFLAGS
1098 LDFLAGS
1099 CFLAGS
1100 CC
1101 INSTALL_DATA
1102 INSTALL_SCRIPT
1103 INSTALL_PROGRAM
1104 libext
1105 AR
1106 EGREP
1107 GREP
1108 SED
1109 CONFIGURE_OPTIONS
1110 AM_BACKSLASH
1111 AM_DEFAULT_VERBOSITY
1112 AM_DEFAULT_V
1113 AM_V
1114 MAINT
1115 MAINTAINER_MODE_FALSE
1116 MAINTAINER_MODE_TRUE
1117 target_alias
1118 host_alias
1119 build_alias
1120 LIBS
1121 ECHO_T
1122 ECHO_N
1123 ECHO_C
1124 DEFS
1125 mandir
1126 localedir
1127 libdir
1128 psdir
1129 pdfdir
1130 dvidir
1131 htmldir
1132 infodir
1133 docdir
1134 oldincludedir
1135 includedir
1136 runstatedir
1137 localstatedir
1138 sharedstatedir
1139 sysconfdir
1140 datadir
1141 datarootdir
1142 libexecdir
1143 sbindir
1144 bindir
1145 program_transform_name
1146 prefix
1147 exec_prefix
1148 PACKAGE_URL
1149 PACKAGE_BUGREPORT
1150 PACKAGE_STRING
1151 PACKAGE_VERSION
1152 PACKAGE_TARNAME
1153 PACKAGE_NAME
1154 SHELL
1155 PATH_SEPARATOR
1156 am__quote'
1157 ac_subst_files=''
1158 ac_user_opts='
1159 enable_option_checking
1160 enable_maintainer_mode
1161 enable_silent_rules
1162 enable_debug
1163 enable_optimize
1164 enable_warnings
1165 enable_werror
1166 enable_curldebug
1167 enable_symbol_hiding
1168 enable_ares
1169 enable_rt
1170 enable_ech
1171 enable_code_coverage
1172 enable_dependency_tracking
1173 with_schannel
1174 with_secure_transport
1175 with_amissl
1176 with_ssl
1177 with_openssl
1178 with_gnutls
1179 with_mbedtls
1180 with_wolfssl
1181 with_bearssl
1182 with_rustls
1183 with_nss_deprecated
1184 with_nss
1185 with_darwinssl
1186 enable_largefile
1187 enable_shared
1188 enable_static
1189 with_pic
1190 enable_fast_install
1191 with_aix_soname
1192 with_gnu_ld
1193 with_sysroot
1194 enable_libtool_lock
1195 enable_http
1196 enable_ftp
1197 enable_file
1198 enable_ldap
1199 enable_ldaps
1200 with_hyper
1201 enable_rtsp
1202 enable_proxy
1203 enable_dict
1204 enable_telnet
1205 enable_tftp
1206 enable_pop3
1207 enable_imap
1208 enable_smb
1209 enable_smtp
1210 enable_gopher
1211 enable_mqtt
1212 enable_manual
1213 enable_libcurl_option
1214 enable_libgcc
1215 with_zlib
1216 with_brotli
1217 with_zstd
1218 with_ldap_lib
1219 with_lber_lib
1220 enable_ipv6
1221 with_gssapi_includes
1222 with_gssapi_libs
1223 with_gssapi
1224 with_default_ssl_backend
1225 with_egd_socket
1226 with_random
1227 enable_openssl_auto_load_config
1228 with_ca_bundle
1229 with_ca_path
1230 with_ca_fallback
1231 with_libpsl
1232 with_libgsasl
1233 with_libmetalink
1234 with_libssh2
1235 with_libssh
1236 with_wolfssh
1237 with_librtmp
1238 enable_versioned_symbols
1239 with_winidn
1240 with_libidn2
1241 with_nghttp2
1242 with_ngtcp2
1243 with_nghttp3
1244 with_quiche
1245 with_msh3
1246 with_zsh_functions_dir
1247 with_fish_functions_dir
1248 with_n64_deprecated
1249 enable_threaded_resolver
1250 enable_pthreads
1251 enable_verbose
1252 enable_sspi
1253 enable_crypto_auth
1254 enable_ntlm
1255 enable_ntlm_wb
1256 enable_tls_srp
1257 enable_unix_sockets
1258 enable_cookies
1259 enable_socketpair
1260 enable_http_auth
1261 enable_doh
1262 enable_mime
1263 enable_dateparse
1264 enable_netrc
1265 enable_progress_meter
1266 enable_dnsshuffle
1267 enable_get_easy_options
1268 enable_alt_svc
1269 enable_headers_api
1270 enable_hsts
1271 enable_websockets
1272 '
1273       ac_precious_vars='build_alias
1274 host_alias
1275 target_alias
1276 CC
1277 CFLAGS
1278 LDFLAGS
1279 LIBS
1280 CPPFLAGS
1281 CPP
1282 LT_SYS_LIBRARY_PATH'
1283
1284
1285 # Initialize some variables set by options.
1286 ac_init_help=
1287 ac_init_version=false
1288 ac_unrecognized_opts=
1289 ac_unrecognized_sep=
1290 # The variables have the same names as the options, with
1291 # dashes changed to underlines.
1292 cache_file=/dev/null
1293 exec_prefix=NONE
1294 no_create=
1295 no_recursion=
1296 prefix=NONE
1297 program_prefix=NONE
1298 program_suffix=NONE
1299 program_transform_name=s,x,x,
1300 silent=
1301 site=
1302 srcdir=
1303 verbose=
1304 x_includes=NONE
1305 x_libraries=NONE
1306
1307 # Installation directory options.
1308 # These are left unexpanded so users can "make install exec_prefix=/foo"
1309 # and all the variables that are supposed to be based on exec_prefix
1310 # by default will actually change.
1311 # Use braces instead of parens because sh, perl, etc. also accept them.
1312 # (The list follows the same order as the GNU Coding Standards.)
1313 bindir='${exec_prefix}/bin'
1314 sbindir='${exec_prefix}/sbin'
1315 libexecdir='${exec_prefix}/libexec'
1316 datarootdir='${prefix}/share'
1317 datadir='${datarootdir}'
1318 sysconfdir='${prefix}/etc'
1319 sharedstatedir='${prefix}/com'
1320 localstatedir='${prefix}/var'
1321 runstatedir='${localstatedir}/run'
1322 includedir='${prefix}/include'
1323 oldincludedir='/usr/include'
1324 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1325 infodir='${datarootdir}/info'
1326 htmldir='${docdir}'
1327 dvidir='${docdir}'
1328 pdfdir='${docdir}'
1329 psdir='${docdir}'
1330 libdir='${exec_prefix}/lib'
1331 localedir='${datarootdir}/locale'
1332 mandir='${datarootdir}/man'
1333
1334 ac_prev=
1335 ac_dashdash=
1336 for ac_option
1337 do
1338   # If the previous option needs an argument, assign it.
1339   if test -n "$ac_prev"; then
1340     eval $ac_prev=\$ac_option
1341     ac_prev=
1342     continue
1343   fi
1344
1345   case $ac_option in
1346   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1347   *=)   ac_optarg= ;;
1348   *)    ac_optarg=yes ;;
1349   esac
1350
1351   case $ac_dashdash$ac_option in
1352   --)
1353     ac_dashdash=yes ;;
1354
1355   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1356     ac_prev=bindir ;;
1357   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1358     bindir=$ac_optarg ;;
1359
1360   -build | --build | --buil | --bui | --bu)
1361     ac_prev=build_alias ;;
1362   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1363     build_alias=$ac_optarg ;;
1364
1365   -cache-file | --cache-file | --cache-fil | --cache-fi \
1366   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1367     ac_prev=cache_file ;;
1368   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1369   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1370     cache_file=$ac_optarg ;;
1371
1372   --config-cache | -C)
1373     cache_file=config.cache ;;
1374
1375   -datadir | --datadir | --datadi | --datad)
1376     ac_prev=datadir ;;
1377   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1378     datadir=$ac_optarg ;;
1379
1380   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1381   | --dataroo | --dataro | --datar)
1382     ac_prev=datarootdir ;;
1383   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1384   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1385     datarootdir=$ac_optarg ;;
1386
1387   -disable-* | --disable-*)
1388     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1389     # Reject names that are not valid shell variable names.
1390     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1391       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1392     ac_useropt_orig=$ac_useropt
1393     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1394     case $ac_user_opts in
1395       *"
1396 "enable_$ac_useropt"
1397 "*) ;;
1398       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1399          ac_unrecognized_sep=', ';;
1400     esac
1401     eval enable_$ac_useropt=no ;;
1402
1403   -docdir | --docdir | --docdi | --doc | --do)
1404     ac_prev=docdir ;;
1405   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1406     docdir=$ac_optarg ;;
1407
1408   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1409     ac_prev=dvidir ;;
1410   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1411     dvidir=$ac_optarg ;;
1412
1413   -enable-* | --enable-*)
1414     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1415     # Reject names that are not valid shell variable names.
1416     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1417       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1418     ac_useropt_orig=$ac_useropt
1419     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1420     case $ac_user_opts in
1421       *"
1422 "enable_$ac_useropt"
1423 "*) ;;
1424       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1425          ac_unrecognized_sep=', ';;
1426     esac
1427     eval enable_$ac_useropt=\$ac_optarg ;;
1428
1429   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1430   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1431   | --exec | --exe | --ex)
1432     ac_prev=exec_prefix ;;
1433   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1434   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1435   | --exec=* | --exe=* | --ex=*)
1436     exec_prefix=$ac_optarg ;;
1437
1438   -gas | --gas | --ga | --g)
1439     # Obsolete; use --with-gas.
1440     with_gas=yes ;;
1441
1442   -help | --help | --hel | --he | -h)
1443     ac_init_help=long ;;
1444   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1445     ac_init_help=recursive ;;
1446   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1447     ac_init_help=short ;;
1448
1449   -host | --host | --hos | --ho)
1450     ac_prev=host_alias ;;
1451   -host=* | --host=* | --hos=* | --ho=*)
1452     host_alias=$ac_optarg ;;
1453
1454   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1455     ac_prev=htmldir ;;
1456   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1457   | --ht=*)
1458     htmldir=$ac_optarg ;;
1459
1460   -includedir | --includedir | --includedi | --included | --include \
1461   | --includ | --inclu | --incl | --inc)
1462     ac_prev=includedir ;;
1463   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1464   | --includ=* | --inclu=* | --incl=* | --inc=*)
1465     includedir=$ac_optarg ;;
1466
1467   -infodir | --infodir | --infodi | --infod | --info | --inf)
1468     ac_prev=infodir ;;
1469   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1470     infodir=$ac_optarg ;;
1471
1472   -libdir | --libdir | --libdi | --libd)
1473     ac_prev=libdir ;;
1474   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1475     libdir=$ac_optarg ;;
1476
1477   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1478   | --libexe | --libex | --libe)
1479     ac_prev=libexecdir ;;
1480   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1481   | --libexe=* | --libex=* | --libe=*)
1482     libexecdir=$ac_optarg ;;
1483
1484   -localedir | --localedir | --localedi | --localed | --locale)
1485     ac_prev=localedir ;;
1486   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1487     localedir=$ac_optarg ;;
1488
1489   -localstatedir | --localstatedir | --localstatedi | --localstated \
1490   | --localstate | --localstat | --localsta | --localst | --locals)
1491     ac_prev=localstatedir ;;
1492   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1493   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1494     localstatedir=$ac_optarg ;;
1495
1496   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1497     ac_prev=mandir ;;
1498   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1499     mandir=$ac_optarg ;;
1500
1501   -nfp | --nfp | --nf)
1502     # Obsolete; use --without-fp.
1503     with_fp=no ;;
1504
1505   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1506   | --no-cr | --no-c | -n)
1507     no_create=yes ;;
1508
1509   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1510   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1511     no_recursion=yes ;;
1512
1513   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1514   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1515   | --oldin | --oldi | --old | --ol | --o)
1516     ac_prev=oldincludedir ;;
1517   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1518   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1519   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1520     oldincludedir=$ac_optarg ;;
1521
1522   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1523     ac_prev=prefix ;;
1524   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1525     prefix=$ac_optarg ;;
1526
1527   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1528   | --program-pre | --program-pr | --program-p)
1529     ac_prev=program_prefix ;;
1530   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1531   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1532     program_prefix=$ac_optarg ;;
1533
1534   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1535   | --program-suf | --program-su | --program-s)
1536     ac_prev=program_suffix ;;
1537   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1538   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1539     program_suffix=$ac_optarg ;;
1540
1541   -program-transform-name | --program-transform-name \
1542   | --program-transform-nam | --program-transform-na \
1543   | --program-transform-n | --program-transform- \
1544   | --program-transform | --program-transfor \
1545   | --program-transfo | --program-transf \
1546   | --program-trans | --program-tran \
1547   | --progr-tra | --program-tr | --program-t)
1548     ac_prev=program_transform_name ;;
1549   -program-transform-name=* | --program-transform-name=* \
1550   | --program-transform-nam=* | --program-transform-na=* \
1551   | --program-transform-n=* | --program-transform-=* \
1552   | --program-transform=* | --program-transfor=* \
1553   | --program-transfo=* | --program-transf=* \
1554   | --program-trans=* | --program-tran=* \
1555   | --progr-tra=* | --program-tr=* | --program-t=*)
1556     program_transform_name=$ac_optarg ;;
1557
1558   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1559     ac_prev=pdfdir ;;
1560   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1561     pdfdir=$ac_optarg ;;
1562
1563   -psdir | --psdir | --psdi | --psd | --ps)
1564     ac_prev=psdir ;;
1565   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1566     psdir=$ac_optarg ;;
1567
1568   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1569   | -silent | --silent | --silen | --sile | --sil)
1570     silent=yes ;;
1571
1572   -runstatedir | --runstatedir | --runstatedi | --runstated \
1573   | --runstate | --runstat | --runsta | --runst | --runs \
1574   | --run | --ru | --r)
1575     ac_prev=runstatedir ;;
1576   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1577   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1578   | --run=* | --ru=* | --r=*)
1579     runstatedir=$ac_optarg ;;
1580
1581   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1582     ac_prev=sbindir ;;
1583   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1584   | --sbi=* | --sb=*)
1585     sbindir=$ac_optarg ;;
1586
1587   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1588   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1589   | --sharedst | --shareds | --shared | --share | --shar \
1590   | --sha | --sh)
1591     ac_prev=sharedstatedir ;;
1592   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1593   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1594   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1595   | --sha=* | --sh=*)
1596     sharedstatedir=$ac_optarg ;;
1597
1598   -site | --site | --sit)
1599     ac_prev=site ;;
1600   -site=* | --site=* | --sit=*)
1601     site=$ac_optarg ;;
1602
1603   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1604     ac_prev=srcdir ;;
1605   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1606     srcdir=$ac_optarg ;;
1607
1608   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1609   | --syscon | --sysco | --sysc | --sys | --sy)
1610     ac_prev=sysconfdir ;;
1611   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1612   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1613     sysconfdir=$ac_optarg ;;
1614
1615   -target | --target | --targe | --targ | --tar | --ta | --t)
1616     ac_prev=target_alias ;;
1617   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1618     target_alias=$ac_optarg ;;
1619
1620   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1621     verbose=yes ;;
1622
1623   -version | --version | --versio | --versi | --vers | -V)
1624     ac_init_version=: ;;
1625
1626   -with-* | --with-*)
1627     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1628     # Reject names that are not valid shell variable names.
1629     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1630       as_fn_error $? "invalid package name: \`$ac_useropt'"
1631     ac_useropt_orig=$ac_useropt
1632     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1633     case $ac_user_opts in
1634       *"
1635 "with_$ac_useropt"
1636 "*) ;;
1637       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1638          ac_unrecognized_sep=', ';;
1639     esac
1640     eval with_$ac_useropt=\$ac_optarg ;;
1641
1642   -without-* | --without-*)
1643     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1644     # Reject names that are not valid shell variable names.
1645     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1646       as_fn_error $? "invalid package name: \`$ac_useropt'"
1647     ac_useropt_orig=$ac_useropt
1648     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1649     case $ac_user_opts in
1650       *"
1651 "with_$ac_useropt"
1652 "*) ;;
1653       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1654          ac_unrecognized_sep=', ';;
1655     esac
1656     eval with_$ac_useropt=no ;;
1657
1658   --x)
1659     # Obsolete; use --with-x.
1660     with_x=yes ;;
1661
1662   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1663   | --x-incl | --x-inc | --x-in | --x-i)
1664     ac_prev=x_includes ;;
1665   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1666   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1667     x_includes=$ac_optarg ;;
1668
1669   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1670   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1671     ac_prev=x_libraries ;;
1672   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1673   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1674     x_libraries=$ac_optarg ;;
1675
1676   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1677 Try \`$0 --help' for more information"
1678     ;;
1679
1680   *=*)
1681     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1682     # Reject names that are not valid shell variable names.
1683     case $ac_envvar in #(
1684       '' | [0-9]* | *[!_$as_cr_alnum]* )
1685       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1686     esac
1687     eval $ac_envvar=\$ac_optarg
1688     export $ac_envvar ;;
1689
1690   *)
1691     # FIXME: should be removed in autoconf 3.0.
1692     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1693     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1694       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1695     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1696     ;;
1697
1698   esac
1699 done
1700
1701 if test -n "$ac_prev"; then
1702   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1703   as_fn_error $? "missing argument to $ac_option"
1704 fi
1705
1706 if test -n "$ac_unrecognized_opts"; then
1707   case $enable_option_checking in
1708     no) ;;
1709     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1710     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1711   esac
1712 fi
1713
1714 # Check all directory arguments for consistency.
1715 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1716                 datadir sysconfdir sharedstatedir localstatedir includedir \
1717                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1718                 libdir localedir mandir runstatedir
1719 do
1720   eval ac_val=\$$ac_var
1721   # Remove trailing slashes.
1722   case $ac_val in
1723     */ )
1724       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1725       eval $ac_var=\$ac_val;;
1726   esac
1727   # Be sure to have absolute directory names.
1728   case $ac_val in
1729     [\\/$]* | ?:[\\/]* )  continue;;
1730     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1731   esac
1732   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1733 done
1734
1735 # There might be people who depend on the old broken behavior: `$host'
1736 # used to hold the argument of --host etc.
1737 # FIXME: To remove some day.
1738 build=$build_alias
1739 host=$host_alias
1740 target=$target_alias
1741
1742 # FIXME: To remove some day.
1743 if test "x$host_alias" != x; then
1744   if test "x$build_alias" = x; then
1745     cross_compiling=maybe
1746   elif test "x$build_alias" != "x$host_alias"; then
1747     cross_compiling=yes
1748   fi
1749 fi
1750
1751 ac_tool_prefix=
1752 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1753
1754 test "$silent" = yes && exec 6>/dev/null
1755
1756
1757 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1758 ac_ls_di=`ls -di .` &&
1759 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1760   as_fn_error $? "working directory cannot be determined"
1761 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1762   as_fn_error $? "pwd does not report name of working directory"
1763
1764
1765 # Find the source files, if location was not specified.
1766 if test -z "$srcdir"; then
1767   ac_srcdir_defaulted=yes
1768   # Try the directory containing this script, then the parent directory.
1769   ac_confdir=`$as_dirname -- "$as_myself" ||
1770 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1771          X"$as_myself" : 'X\(//\)[^/]' \| \
1772          X"$as_myself" : 'X\(//\)$' \| \
1773          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1774 printf "%s\n" X"$as_myself" |
1775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1776             s//\1/
1777             q
1778           }
1779           /^X\(\/\/\)[^/].*/{
1780             s//\1/
1781             q
1782           }
1783           /^X\(\/\/\)$/{
1784             s//\1/
1785             q
1786           }
1787           /^X\(\/\).*/{
1788             s//\1/
1789             q
1790           }
1791           s/.*/./; q'`
1792   srcdir=$ac_confdir
1793   if test ! -r "$srcdir/$ac_unique_file"; then
1794     srcdir=..
1795   fi
1796 else
1797   ac_srcdir_defaulted=no
1798 fi
1799 if test ! -r "$srcdir/$ac_unique_file"; then
1800   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1801   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1802 fi
1803 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1804 ac_abs_confdir=`(
1805         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1806         pwd)`
1807 # When building in place, set srcdir=.
1808 if test "$ac_abs_confdir" = "$ac_pwd"; then
1809   srcdir=.
1810 fi
1811 # Remove unnecessary trailing slashes from srcdir.
1812 # Double slashes in file names in object file debugging info
1813 # mess up M-x gdb in Emacs.
1814 case $srcdir in
1815 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1816 esac
1817 for ac_var in $ac_precious_vars; do
1818   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1819   eval ac_env_${ac_var}_value=\$${ac_var}
1820   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1821   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1822 done
1823
1824 #
1825 # Report the --help message.
1826 #
1827 if test "$ac_init_help" = "long"; then
1828   # Omit some internal or obsolete options to make the list less imposing.
1829   # This message is too long to be a string in the A/UX 3.1 sh.
1830   cat <<_ACEOF
1831 \`configure' configures curl - to adapt to many kinds of systems.
1832
1833 Usage: $0 [OPTION]... [VAR=VALUE]...
1834
1835 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1836 VAR=VALUE.  See below for descriptions of some of the useful variables.
1837
1838 Defaults for the options are specified in brackets.
1839
1840 Configuration:
1841   -h, --help              display this help and exit
1842       --help=short        display options specific to this package
1843       --help=recursive    display the short help of all the included packages
1844   -V, --version           display version information and exit
1845   -q, --quiet, --silent   do not print \`checking ...' messages
1846       --cache-file=FILE   cache test results in FILE [disabled]
1847   -C, --config-cache      alias for \`--cache-file=config.cache'
1848   -n, --no-create         do not create output files
1849       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1850
1851 Installation directories:
1852   --prefix=PREFIX         install architecture-independent files in PREFIX
1853                           [$ac_default_prefix]
1854   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1855                           [PREFIX]
1856
1857 By default, \`make install' will install all the files in
1858 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1859 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1860 for instance \`--prefix=\$HOME'.
1861
1862 For better control, use the options below.
1863
1864 Fine tuning of the installation directories:
1865   --bindir=DIR            user executables [EPREFIX/bin]
1866   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1867   --libexecdir=DIR        program executables [EPREFIX/libexec]
1868   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1869   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1870   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1871   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1872   --libdir=DIR            object code libraries [EPREFIX/lib]
1873   --includedir=DIR        C header files [PREFIX/include]
1874   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1875   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1876   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1877   --infodir=DIR           info documentation [DATAROOTDIR/info]
1878   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1879   --mandir=DIR            man documentation [DATAROOTDIR/man]
1880   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1881   --htmldir=DIR           html documentation [DOCDIR]
1882   --dvidir=DIR            dvi documentation [DOCDIR]
1883   --pdfdir=DIR            pdf documentation [DOCDIR]
1884   --psdir=DIR             ps documentation [DOCDIR]
1885 _ACEOF
1886
1887   cat <<\_ACEOF
1888
1889 Program names:
1890   --program-prefix=PREFIX            prepend PREFIX to installed program names
1891   --program-suffix=SUFFIX            append SUFFIX to installed program names
1892   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1893
1894 System types:
1895   --build=BUILD     configure for building on BUILD [guessed]
1896   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1897 _ACEOF
1898 fi
1899
1900 if test -n "$ac_init_help"; then
1901   case $ac_init_help in
1902      short | recursive ) echo "Configuration of curl -:";;
1903    esac
1904   cat <<\_ACEOF
1905
1906 Optional Features:
1907   --disable-option-checking  ignore unrecognized --enable/--with options
1908   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1909   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1910   --enable-maintainer-mode
1911                           enable make rules and dependencies not useful (and
1912                           sometimes confusing) to the casual installer
1913   --enable-silent-rules   less verbose build output (undo: "make V=1")
1914   --disable-silent-rules  verbose build output (undo: "make V=0")
1915   --enable-debug          Enable debug build options
1916   --disable-debug         Disable debug build options
1917   --enable-optimize       Enable compiler optimizations
1918   --disable-optimize      Disable compiler optimizations
1919   --enable-warnings       Enable strict compiler warnings
1920   --disable-warnings      Disable strict compiler warnings
1921   --enable-werror         Enable compiler warnings as errors
1922   --disable-werror        Disable compiler warnings as errors
1923   --enable-curldebug      Enable curl debug memory tracking
1924   --disable-curldebug     Disable curl debug memory tracking
1925   --enable-symbol-hiding  Enable hiding of library internal symbols
1926   --disable-symbol-hiding Disable hiding of library internal symbols
1927   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1928   --disable-ares          Disable c-ares for DNS lookups
1929   --disable-rt            disable dependency on -lrt
1930   --enable-ech            Enable ECH support
1931   --disable-ech           Disable ECH support
1932   --enable-code-coverage  Provide code coverage
1933   --enable-dependency-tracking
1934                           do not reject slow dependency extractors
1935   --disable-dependency-tracking
1936                           speeds up one-time build
1937   --disable-largefile     omit support for large files
1938   --enable-shared[=PKGS]  build shared libraries [default=yes]
1939   --enable-static[=PKGS]  build static libraries [default=yes]
1940   --enable-fast-install[=PKGS]
1941                           optimize for fast installation [default=yes]
1942   --disable-libtool-lock  avoid locking (might break parallel builds)
1943   --enable-http           Enable HTTP support
1944   --disable-http          Disable HTTP support
1945   --enable-ftp            Enable FTP support
1946   --disable-ftp           Disable FTP support
1947   --enable-file           Enable FILE support
1948   --disable-file          Disable FILE support
1949   --enable-ldap           Enable LDAP support
1950   --disable-ldap          Disable LDAP support
1951   --enable-ldaps          Enable LDAPS support
1952   --disable-ldaps         Disable LDAPS support
1953   --enable-rtsp           Enable RTSP support
1954     --disable-rtsp          Disable RTSP support
1955   --enable-proxy          Enable proxy support
1956   --disable-proxy         Disable proxy support
1957   --enable-dict           Enable DICT support
1958   --disable-dict          Disable DICT support
1959   --enable-telnet         Enable TELNET support
1960   --disable-telnet        Disable TELNET support
1961   --enable-tftp           Enable TFTP support
1962   --disable-tftp          Disable TFTP support
1963   --enable-pop3           Enable POP3 support
1964   --disable-pop3          Disable POP3 support
1965   --enable-imap           Enable IMAP support
1966   --disable-imap          Disable IMAP support
1967   --enable-smb            Enable SMB/CIFS support
1968   --disable-smb           Disable SMB/CIFS support
1969   --enable-smtp           Enable SMTP support
1970   --disable-smtp          Disable SMTP support
1971   --enable-gopher         Enable Gopher support
1972   --disable-gopher        Disable Gopher support
1973   --enable-mqtt           Enable MQTT support
1974   --disable-mqtt          Disable MQTT support
1975   --enable-manual         Enable built-in manual
1976   --disable-manual        Disable built-in manual
1977   --enable-libcurl-option Enable --libcurl C code generation support
1978   --disable-libcurl-option
1979                           Disable --libcurl C code generation support
1980   --enable-libgcc         use libgcc when linking
1981   --enable-ipv6           Enable IPv6 (with IPv4) support
1982   --disable-ipv6          Disable IPv6 support
1983   --enable-openssl-auto-load-config
1984                           Enable automatic loading of OpenSSL configuration
1985   --disable-openssl-auto-load-config
1986                           Disable automatic loading of OpenSSL configuration
1987   --enable-versioned-symbols
1988                           Enable versioned symbols in shared library
1989   --disable-versioned-symbols
1990                           Disable versioned symbols in shared library
1991   --enable-threaded-resolver
1992                           Enable threaded resolver
1993   --disable-threaded-resolver
1994                           Disable threaded resolver
1995   --enable-pthreads       Enable POSIX threads (default for threaded resolver)
1996   --disable-pthreads      Disable POSIX threads
1997   --enable-verbose        Enable verbose strings
1998   --disable-verbose       Disable verbose strings
1999   --enable-sspi           Enable SSPI
2000   --disable-sspi          Disable SSPI
2001   --enable-crypto-auth    Enable cryptographic authentication
2002   --disable-crypto-auth   Disable cryptographic authentication
2003   --enable-ntlm           Enable NTLM support
2004   --disable-ntlm          Disable NTLM support
2005   --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
2006                           helper, where FILE is ntlm_auth's absolute filename
2007                           (default: /usr/bin/ntlm_auth)
2008   --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
2009                           helper
2010   --enable-tls-srp        Enable TLS-SRP authentication
2011   --disable-tls-srp       Disable TLS-SRP authentication
2012   --enable-unix-sockets   Enable Unix domain sockets
2013   --disable-unix-sockets  Disable Unix domain sockets
2014   --enable-cookies        Enable cookies support
2015   --disable-cookies       Disable cookies support
2016   --enable-socketpair     Enable socketpair support
2017   --disable-socketpair    Disable socketpair support
2018   --enable-http-auth      Enable HTTP authentication support
2019   --disable-http-auth     Disable HTTP authentication support
2020   --enable-doh            Enable DoH support
2021   --disable-doh           Disable DoH support
2022   --enable-mime           Enable mime API support
2023   --disable-mime          Disable mime API support
2024   --enable-dateparse      Enable date parsing
2025   --disable-dateparse     Disable date parsing
2026   --enable-netrc          Enable netrc parsing
2027   --disable-netrc         Disable netrc parsing
2028   --enable-progress-meter Enable progress-meter
2029   --disable-progress-meter
2030                           Disable progress-meter
2031   --enable-dnsshuffle     Enable DNS shuffling
2032   --disable-dnsshuffle    Disable DNS shuffling
2033   --enable-get-easy-options
2034                           Enable curl_easy_options
2035   --disable-get-easy-options
2036                           Disable curl_easy_options
2037   --enable-alt-svc        Enable alt-svc support
2038   --disable-alt-svc       Disable alt-svc support
2039   --enable-headers-api    Enable headers-api support
2040   --disable-headers-api   Disable headers-api support
2041   --enable-hsts           Enable HSTS support
2042     --disable-hsts          Disable HSTS support
2043   --enable-websockets     Enable WebSockets support
2044   --disable-websockets    Disable WebSockets support
2045
2046 Optional Packages:
2047   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2048   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2049   --with-schannel         enable Windows native SSL/TLS
2050   --with-secure-transport enable Apple OS native SSL/TLS
2051   --with-amissl           enable Amiga native SSL/TLS (AmiSSL)
2052   --with-ssl=PATH         old version of --with-openssl
2053   --without-ssl           build without any TLS library
2054   --with-openssl=PATH     Where to look for OpenSSL, PATH points to the SSL
2055                           installation (default: /usr/local/ssl); when
2056                           possible, set the PKG_CONFIG_PATH environment
2057                           variable instead of using this option
2058   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
2059                           installation root
2060   --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
2061                           installation root
2062   --with-wolfssl=PATH     where to look for WolfSSL, PATH points to the
2063                           installation root (default: system lib default)
2064   --with-bearssl=PATH     where to look for BearSSL, PATH points to the
2065                           installation root
2066   --with-rustls=PATH      where to look for rustls, PATH points to the
2067                           installation root
2068   --with-nss-deprecated   confirm you realize NSS is going away
2069   --with-nss=PATH         where to look for NSS, PATH points to the
2070                           installation root
2071
2072   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2073                           both]
2074   --with-aix-soname=aix|svr4|both
2075                           shared library versioning (aka "SONAME") variant to
2076                           provide on AIX, [default=aix].
2077   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2078   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2079                           compiler's sysroot if not specified).
2080   --with-hyper=PATH       Enable hyper usage
2081   --without-hyper         Disable hyper usage
2082   --with-zlib=PATH        search for zlib in PATH
2083   --without-zlib          disable use of zlib
2084   --with-brotli=PATH      Where to look for brotli, PATH points to the BROTLI
2085                           installation; when possible, set the PKG_CONFIG_PATH
2086                           environment variable instead of using this option
2087   --without-brotli        disable BROTLI
2088   --with-zstd=PATH        Where to look for libzstd, PATH points to the
2089                           libzstd installation; when possible, set the
2090                           PKG_CONFIG_PATH environment variable instead of
2091                           using this option
2092   --without-zstd          disable libzstd
2093   --with-ldap-lib=libname Specify name of ldap lib file
2094   --with-lber-lib=libname Specify name of lber lib file
2095   --with-gssapi-includes=DIR
2096                           Specify location of GSS-API headers
2097   --with-gssapi-libs=DIR  Specify location of GSS-API libs
2098   --with-gssapi=DIR       Where to look for GSS-API
2099   --with-default-ssl-backend=NAME
2100                           Use NAME as default SSL backend
2101   --without-default-ssl-backend
2102                           Use implicit default SSL backend
2103   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
2104   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
2105   --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
2106                           /etc/ca-bundle.crt)
2107   --without-ca-bundle     Don't use a default CA bundle
2108   --with-ca-path=DIRECTORY
2109                           Path to a directory containing CA certificates
2110                           stored individually, with their filenames in a hash
2111                           format. This option can be used with the OpenSSL,
2112                           GnuTLS and mbedTLS backends. Refer to OpenSSL
2113                           c_rehash for details. (example: /etc/certificates)
2114   --without-ca-path       Don't use a default CA path
2115   --with-ca-fallback      Use the built in CA store of the SSL library
2116   --without-ca-fallback   Don't use the built in CA store of the SSL library
2117   --without-libpsl        disable support for libpsl cookie checking
2118   --without-libgsasl      disable libgsasl support for SCRAM
2119   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
2120                           libssh2 installation; when possible, set the
2121                           PKG_CONFIG_PATH environment variable instead of
2122                           using this option
2123   --with-libssh2          enable libssh2
2124   --with-libssh=PATH      Where to look for libssh, PATH points to the libssh
2125                           installation; when possible, set the PKG_CONFIG_PATH
2126                           environment variable instead of using this option
2127   --with-libssh           enable libssh
2128   --with-wolfssh=PATH     Where to look for wolfssh, PATH points to the
2129                           wolfSSH installation; when possible, set the
2130                           PKG_CONFIG_PATH environment variable instead of
2131                           using this option
2132   --with-wolfssh          enable wolfssh
2133   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
2134                           LIBRTMP installation; when possible, set the
2135                           PKG_CONFIG_PATH environment variable instead of
2136                           using this option
2137   --without-librtmp       disable LIBRTMP
2138   --with-winidn=PATH      enable Windows native IDN
2139   --without-winidn        disable Windows native IDN
2140   --with-libidn2=PATH     Enable libidn2 usage
2141   --without-libidn2       Disable libidn2 usage
2142   --with-nghttp2=PATH     Enable nghttp2 usage
2143   --without-nghttp2       Disable nghttp2 usage
2144   --with-ngtcp2=PATH      Enable ngtcp2 usage
2145   --without-ngtcp2        Disable ngtcp2 usage
2146   --with-nghttp3=PATH     Enable nghttp3 usage
2147   --without-nghttp3       Disable nghttp3 usage
2148   --with-quiche=PATH      Enable quiche usage
2149   --without-quiche        Disable quiche usage
2150   --with-msh3=PATH        Enable msh3 usage
2151   --without-msh3          Disable msh3 usage
2152   --with-zsh-functions-dir=PATH
2153                           Install zsh completions to PATH
2154   --without-zsh-functions-dir
2155                           Do not install zsh completions
2156   --with-fish-functions-dir=PATH
2157                           Install fish completions to PATH
2158   --without-fish-functions-dir
2159                           Do not install fish completions
2160   --with-n64-deprecated   confirm you realize support for systems without 64
2161                           bit data types is going away
2162
2163 Some influential environment variables:
2164   CC          C compiler command
2165   CFLAGS      C compiler flags
2166   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2167               nonstandard directory <lib dir>
2168   LIBS        libraries to pass to the linker, e.g. -l<library>
2169   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2170               you have headers in a nonstandard directory <include dir>
2171   CPP         C preprocessor
2172   LT_SYS_LIBRARY_PATH
2173               User-defined run-time library search path.
2174
2175 Use these variables to override the choices made by `configure' or to help
2176 it to find libraries and programs with nonstandard names/locations.
2177
2178 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
2179 _ACEOF
2180 ac_status=$?
2181 fi
2182
2183 if test "$ac_init_help" = "recursive"; then
2184   # If there are subdirs, report their specific --help.
2185   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2186     test -d "$ac_dir" ||
2187       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2188       continue
2189     ac_builddir=.
2190
2191 case "$ac_dir" in
2192 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2193 *)
2194   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2195   # A ".." for each directory in $ac_dir_suffix.
2196   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2197   case $ac_top_builddir_sub in
2198   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2199   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2200   esac ;;
2201 esac
2202 ac_abs_top_builddir=$ac_pwd
2203 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2204 # for backward compatibility:
2205 ac_top_builddir=$ac_top_build_prefix
2206
2207 case $srcdir in
2208   .)  # We are building in place.
2209     ac_srcdir=.
2210     ac_top_srcdir=$ac_top_builddir_sub
2211     ac_abs_top_srcdir=$ac_pwd ;;
2212   [\\/]* | ?:[\\/]* )  # Absolute name.
2213     ac_srcdir=$srcdir$ac_dir_suffix;
2214     ac_top_srcdir=$srcdir
2215     ac_abs_top_srcdir=$srcdir ;;
2216   *) # Relative name.
2217     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2218     ac_top_srcdir=$ac_top_build_prefix$srcdir
2219     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2220 esac
2221 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2222
2223     cd "$ac_dir" || { ac_status=$?; continue; }
2224     # Check for configure.gnu first; this name is used for a wrapper for
2225     # Metaconfig's "Configure" on case-insensitive file systems.
2226     if test -f "$ac_srcdir/configure.gnu"; then
2227       echo &&
2228       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2229     elif test -f "$ac_srcdir/configure"; then
2230       echo &&
2231       $SHELL "$ac_srcdir/configure" --help=recursive
2232     else
2233       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2234     fi || ac_status=$?
2235     cd "$ac_pwd" || { ac_status=$?; break; }
2236   done
2237 fi
2238
2239 test -n "$ac_init_help" && exit $ac_status
2240 if $ac_init_version; then
2241   cat <<\_ACEOF
2242 curl configure -
2243 generated by GNU Autoconf 2.71
2244
2245 Copyright (C) 2021 Free Software Foundation, Inc.
2246 This configure script is free software; the Free Software Foundation
2247 gives unlimited permission to copy, distribute and modify it.
2248
2249 Copyright (c) 1998 - 2022 Daniel Stenberg, <daniel@haxx.se>
2250 This configure script may be copied, distributed and modified under the
2251 terms of the curl license; see COPYING for more details
2252 _ACEOF
2253   exit
2254 fi
2255
2256 ## ------------------------ ##
2257 ## Autoconf initialization. ##
2258 ## ------------------------ ##
2259
2260 # ac_fn_c_try_compile LINENO
2261 # --------------------------
2262 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2263 ac_fn_c_try_compile ()
2264 {
2265   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266   rm -f conftest.$ac_objext conftest.beam
2267   if { { ac_try="$ac_compile"
2268 case "(($ac_try" in
2269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270   *) ac_try_echo=$ac_try;;
2271 esac
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 printf "%s\n" "$ac_try_echo"; } >&5
2274   (eval "$ac_compile") 2>conftest.err
2275   ac_status=$?
2276   if test -s conftest.err; then
2277     grep -v '^ *+' conftest.err >conftest.er1
2278     cat conftest.er1 >&5
2279     mv -f conftest.er1 conftest.err
2280   fi
2281   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282   test $ac_status = 0; } && {
2283          test -z "$ac_c_werror_flag" ||
2284          test ! -s conftest.err
2285        } && test -s conftest.$ac_objext
2286 then :
2287   ac_retval=0
2288 else $as_nop
2289   printf "%s\n" "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292         ac_retval=1
2293 fi
2294   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295   as_fn_set_status $ac_retval
2296
2297 } # ac_fn_c_try_compile
2298
2299 # ac_fn_c_try_cpp LINENO
2300 # ----------------------
2301 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2302 ac_fn_c_try_cpp ()
2303 {
2304   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305   if { { ac_try="$ac_cpp conftest.$ac_ext"
2306 case "(($ac_try" in
2307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308   *) ac_try_echo=$ac_try;;
2309 esac
2310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2311 printf "%s\n" "$ac_try_echo"; } >&5
2312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2313   ac_status=$?
2314   if test -s conftest.err; then
2315     grep -v '^ *+' conftest.err >conftest.er1
2316     cat conftest.er1 >&5
2317     mv -f conftest.er1 conftest.err
2318   fi
2319   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320   test $ac_status = 0; } > conftest.i && {
2321          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2322          test ! -s conftest.err
2323        }
2324 then :
2325   ac_retval=0
2326 else $as_nop
2327   printf "%s\n" "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330     ac_retval=1
2331 fi
2332   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333   as_fn_set_status $ac_retval
2334
2335 } # ac_fn_c_try_cpp
2336
2337 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2338 # -------------------------------------------------------
2339 # Tests whether HEADER exists and can be compiled using the include files in
2340 # INCLUDES, setting the cache variable VAR accordingly.
2341 ac_fn_c_check_header_compile ()
2342 {
2343   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345 printf %s "checking for $2... " >&6; }
2346 if eval test \${$3+y}
2347 then :
2348   printf %s "(cached) " >&6
2349 else $as_nop
2350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h.  */
2352 $4
2353 #include <$2>
2354 _ACEOF
2355 if ac_fn_c_try_compile "$LINENO"
2356 then :
2357   eval "$3=yes"
2358 else $as_nop
2359   eval "$3=no"
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2362 fi
2363 eval ac_res=\$$3
2364                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 printf "%s\n" "$ac_res" >&6; }
2366   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367
2368 } # ac_fn_c_check_header_compile
2369
2370 # ac_fn_c_try_link LINENO
2371 # -----------------------
2372 # Try to link conftest.$ac_ext, and return whether this succeeded.
2373 ac_fn_c_try_link ()
2374 {
2375   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2377   if { { ac_try="$ac_link"
2378 case "(($ac_try" in
2379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380   *) ac_try_echo=$ac_try;;
2381 esac
2382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2383 printf "%s\n" "$ac_try_echo"; } >&5
2384   (eval "$ac_link") 2>conftest.err
2385   ac_status=$?
2386   if test -s conftest.err; then
2387     grep -v '^ *+' conftest.err >conftest.er1
2388     cat conftest.er1 >&5
2389     mv -f conftest.er1 conftest.err
2390   fi
2391   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2392   test $ac_status = 0; } && {
2393          test -z "$ac_c_werror_flag" ||
2394          test ! -s conftest.err
2395        } && test -s conftest$ac_exeext && {
2396          test "$cross_compiling" = yes ||
2397          test -x conftest$ac_exeext
2398        }
2399 then :
2400   ac_retval=0
2401 else $as_nop
2402   printf "%s\n" "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405         ac_retval=1
2406 fi
2407   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2408   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2409   # interfere with the next link command; also delete a directory that is
2410   # left behind by Apple's compiler.  We do this before executing the actions.
2411   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2412   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413   as_fn_set_status $ac_retval
2414
2415 } # ac_fn_c_try_link
2416
2417 # ac_fn_c_check_func LINENO FUNC VAR
2418 # ----------------------------------
2419 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2420 ac_fn_c_check_func ()
2421 {
2422   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424 printf %s "checking for $2... " >&6; }
2425 if eval test \${$3+y}
2426 then :
2427   printf %s "(cached) " >&6
2428 else $as_nop
2429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h.  */
2431
2432 #define $2 innocuous_$2
2433 #ifdef __STDC__
2434 # include <limits.h>
2435 #else
2436 # include <assert.h>
2437 #endif
2438 #undef $2
2439 #ifdef __cplusplus
2440 extern "C"
2441 #endif
2442 char $2 ();
2443 #if defined __stub_$2 || defined __stub___$2
2444 choke me
2445 #endif
2446
2447 int main (void)
2448 {
2449 return $2 ();
2450  ;
2451  return 0;
2452 }
2453 _ACEOF
2454 if ac_fn_c_try_link "$LINENO"
2455 then :
2456   eval "$3=yes"
2457 else $as_nop
2458   eval "$3=no"
2459 fi
2460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2461     conftest$ac_exeext conftest.$ac_ext
2462 fi
2463 eval ac_res=\$$3
2464                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2465 printf "%s\n" "$ac_res" >&6; }
2466   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2467
2468 } # ac_fn_c_check_func
2469
2470 # ac_fn_c_try_run LINENO
2471 # ----------------------
2472 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2473 # executables *can* be run.
2474 ac_fn_c_try_run ()
2475 {
2476   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477   if { { ac_try="$ac_link"
2478 case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2483 printf "%s\n" "$ac_try_echo"; } >&5
2484   (eval "$ac_link") 2>&5
2485   ac_status=$?
2486   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2487   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2488   { { case "(($ac_try" in
2489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490   *) ac_try_echo=$ac_try;;
2491 esac
2492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2493 printf "%s\n" "$ac_try_echo"; } >&5
2494   (eval "$ac_try") 2>&5
2495   ac_status=$?
2496   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497   test $ac_status = 0; }; }
2498 then :
2499   ac_retval=0
2500 else $as_nop
2501   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2502        printf "%s\n" "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505        ac_retval=$ac_status
2506 fi
2507   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2508   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2509   as_fn_set_status $ac_retval
2510
2511 } # ac_fn_c_try_run
2512
2513 # ac_fn_c_check_type LINENO SIZEOF_LONG_LONG VAR INCLUDES
2514 # -------------------------------------------------------
2515 # Tests whether TYPE exists after having included INCLUDES, setting cache
2516 # variable VAR accordingly.
2517 ac_fn_c_check_type ()
2518 {
2519   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 printf %s "checking for $2... " >&6; }
2522 if eval test \${$3+y}
2523 then :
2524   printf %s "(cached) " >&6
2525 else $as_nop
2526   eval "$3=no"
2527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h.  */
2529 $4
2530 int main (void)
2531 {
2532 if (sizeof ($2))
2533          return 0;
2534  ;
2535  return 0;
2536 }
2537 _ACEOF
2538 if ac_fn_c_try_compile "$LINENO"
2539 then :
2540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h.  */
2542 $4
2543 int main (void)
2544 {
2545 if (sizeof (($2)))
2546             return 0;
2547  ;
2548  return 0;
2549 }
2550 _ACEOF
2551 if ac_fn_c_try_compile "$LINENO"
2552 then :
2553
2554 else $as_nop
2555   eval "$3=yes"
2556 fi
2557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2558 fi
2559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2560 fi
2561 eval ac_res=\$$3
2562                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 printf "%s\n" "$ac_res" >&6; }
2564   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2565
2566 } # ac_fn_c_check_type
2567
2568 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2569 # ------------------------------------------------------------------
2570 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2571 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2572 ac_fn_check_decl ()
2573 {
2574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575   as_decl_name=`echo $2|sed 's/ *(.*//'`
2576   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2577 printf %s "checking whether $as_decl_name is declared... " >&6; }
2578 if eval test \${$3+y}
2579 then :
2580   printf %s "(cached) " >&6
2581 else $as_nop
2582   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2583   eval ac_save_FLAGS=\$$6
2584   as_fn_append $6 " $5"
2585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h.  */
2587 $4
2588 int main (void)
2589 {
2590 #ifndef $as_decl_name
2591 #ifdef __cplusplus
2592   (void) $as_decl_use;
2593 #else
2594   (void) $as_decl_name;
2595 #endif
2596 #endif
2597
2598  ;
2599  return 0;
2600 }
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"
2603 then :
2604   eval "$3=yes"
2605 else $as_nop
2606   eval "$3=no"
2607 fi
2608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2609   eval $6=\$ac_save_FLAGS
2610
2611 fi
2612 eval ac_res=\$$3
2613                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2614 printf "%s\n" "$ac_res" >&6; }
2615   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2616
2617 } # ac_fn_check_decl
2618
2619 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2620 # ----------------------------------------------------
2621 # Tries to find if the field MEMBER exists in type AGGR, after including
2622 # INCLUDES, setting cache variable VAR accordingly.
2623 ac_fn_c_check_member ()
2624 {
2625   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2626   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2627 printf %s "checking for $2.$3... " >&6; }
2628 if eval test \${$4+y}
2629 then :
2630   printf %s "(cached) " >&6
2631 else $as_nop
2632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633 /* end confdefs.h.  */
2634 $5
2635 int main (void)
2636 {
2637 static $2 ac_aggr;
2638 if (ac_aggr.$3)
2639 return 0;
2640  ;
2641  return 0;
2642 }
2643 _ACEOF
2644 if ac_fn_c_try_compile "$LINENO"
2645 then :
2646   eval "$4=yes"
2647 else $as_nop
2648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h.  */
2650 $5
2651 int main (void)
2652 {
2653 static $2 ac_aggr;
2654 if (sizeof ac_aggr.$3)
2655 return 0;
2656  ;
2657  return 0;
2658 }
2659 _ACEOF
2660 if ac_fn_c_try_compile "$LINENO"
2661 then :
2662   eval "$4=yes"
2663 else $as_nop
2664   eval "$4=no"
2665 fi
2666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2667 fi
2668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2669 fi
2670 eval ac_res=\$$4
2671                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2672 printf "%s\n" "$ac_res" >&6; }
2673   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2674
2675 } # ac_fn_c_check_member
2676 ac_configure_args_raw=
2677 for ac_arg
2678 do
2679   case $ac_arg in
2680   *\'*)
2681     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2682   esac
2683   as_fn_append ac_configure_args_raw " '$ac_arg'"
2684 done
2685
2686 case $ac_configure_args_raw in
2687   *$as_nl*)
2688     ac_safe_unquote= ;;
2689   *)
2690     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2691     ac_unsafe_a="$ac_unsafe_z#~"
2692     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2693     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2694 esac
2695
2696 cat >config.log <<_ACEOF
2697 This file contains any messages produced by compilers while
2698 running configure, to aid debugging if configure makes a mistake.
2699
2700 It was created by curl $as_me -, which was
2701 generated by GNU Autoconf 2.71.  Invocation command line was
2702
2703   $ $0$ac_configure_args_raw
2704
2705 _ACEOF
2706 exec 5>>config.log
2707 {
2708 cat <<_ASUNAME
2709 ## --------- ##
2710 ## Platform. ##
2711 ## --------- ##
2712
2713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2718
2719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2720 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2721
2722 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2723 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2725 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2726 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2727 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2728 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2729
2730 _ASUNAME
2731
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   case $as_dir in #(((
2737     '') as_dir=./ ;;
2738     */) ;;
2739     *) as_dir=$as_dir/ ;;
2740   esac
2741     printf "%s\n" "PATH: $as_dir"
2742   done
2743 IFS=$as_save_IFS
2744
2745 } >&5
2746
2747 cat >&5 <<_ACEOF
2748
2749
2750 ## ----------- ##
2751 ## Core tests. ##
2752 ## ----------- ##
2753
2754 _ACEOF
2755
2756
2757 # Keep a trace of the command line.
2758 # Strip out --no-create and --no-recursion so they do not pile up.
2759 # Strip out --silent because we don't want to record it for future runs.
2760 # Also quote any args containing shell meta-characters.
2761 # Make two passes to allow for proper duplicate-argument suppression.
2762 ac_configure_args=
2763 ac_configure_args0=
2764 ac_configure_args1=
2765 ac_must_keep_next=false
2766 for ac_pass in 1 2
2767 do
2768   for ac_arg
2769   do
2770     case $ac_arg in
2771     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2772     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2773     | -silent | --silent | --silen | --sile | --sil)
2774       continue ;;
2775     *\'*)
2776       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2777     esac
2778     case $ac_pass in
2779     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2780     2)
2781       as_fn_append ac_configure_args1 " '$ac_arg'"
2782       if test $ac_must_keep_next = true; then
2783         ac_must_keep_next=false # Got value, back to normal.
2784       else
2785         case $ac_arg in
2786           *=* | --config-cache | -C | -disable-* | --disable-* \
2787           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2788           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2789           | -with-* | --with-* | -without-* | --without-* | --x)
2790             case "$ac_configure_args0 " in
2791               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2792             esac
2793             ;;
2794           -* ) ac_must_keep_next=true ;;
2795         esac
2796       fi
2797       as_fn_append ac_configure_args " '$ac_arg'"
2798       ;;
2799     esac
2800   done
2801 done
2802 { ac_configure_args0=; unset ac_configure_args0;}
2803 { ac_configure_args1=; unset ac_configure_args1;}
2804
2805 # When interrupted or exit'd, cleanup temporary files, and complete
2806 # config.log.  We remove comments because anyway the quotes in there
2807 # would cause problems or look ugly.
2808 # WARNING: Use '\'' to represent an apostrophe within the trap.
2809 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2810 trap 'exit_status=$?
2811   # Sanitize IFS.
2812   IFS=" ""      $as_nl"
2813   # Save into config.log some information that might help in debugging.
2814   {
2815     echo
2816
2817     printf "%s\n" "## ---------------- ##
2818 ## Cache variables. ##
2819 ## ---------------- ##"
2820     echo
2821     # The following way of writing the cache mishandles newlines in values,
2822 (
2823   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2824     eval ac_val=\$$ac_var
2825     case $ac_val in #(
2826     *${as_nl}*)
2827       case $ac_var in #(
2828       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2829 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2830       esac
2831       case $ac_var in #(
2832       _ | IFS | as_nl) ;; #(
2833       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2834       *) { eval $ac_var=; unset $ac_var;} ;;
2835       esac ;;
2836     esac
2837   done
2838   (set) 2>&1 |
2839     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2840     *${as_nl}ac_space=\ *)
2841       sed -n \
2842         "s/'\''/'\''\\\\'\'''\''/g;
2843           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2844       ;; #(
2845     *)
2846       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2847       ;;
2848     esac |
2849     sort
2850 )
2851     echo
2852
2853     printf "%s\n" "## ----------------- ##
2854 ## Output variables. ##
2855 ## ----------------- ##"
2856     echo
2857     for ac_var in $ac_subst_vars
2858     do
2859       eval ac_val=\$$ac_var
2860       case $ac_val in
2861       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2862       esac
2863       printf "%s\n" "$ac_var='\''$ac_val'\''"
2864     done | sort
2865     echo
2866
2867     if test -n "$ac_subst_files"; then
2868       printf "%s\n" "## ------------------- ##
2869 ## File substitutions. ##
2870 ## ------------------- ##"
2871       echo
2872       for ac_var in $ac_subst_files
2873       do
2874         eval ac_val=\$$ac_var
2875         case $ac_val in
2876         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2877         esac
2878         printf "%s\n" "$ac_var='\''$ac_val'\''"
2879       done | sort
2880       echo
2881     fi
2882
2883     if test -s confdefs.h; then
2884       printf "%s\n" "## ----------- ##
2885 ## confdefs.h. ##
2886 ## ----------- ##"
2887       echo
2888       cat confdefs.h
2889       echo
2890     fi
2891     test "$ac_signal" != 0 &&
2892       printf "%s\n" "$as_me: caught signal $ac_signal"
2893     printf "%s\n" "$as_me: exit $exit_status"
2894   } >&5
2895   rm -f core *.core core.conftest.* &&
2896     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2897     exit $exit_status
2898 ' 0
2899 for ac_signal in 1 2 13 15; do
2900   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2901 done
2902 ac_signal=0
2903
2904 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2905 rm -f -r conftest* confdefs.h
2906
2907 printf "%s\n" "/* confdefs.h */" > confdefs.h
2908
2909 # Predefined preprocessor variables.
2910
2911 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2912
2913 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2914
2915 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2916
2917 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2918
2919 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2920
2921 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2922
2923
2924 # Let the site file select an alternate cache file if it wants to.
2925 # Prefer an explicitly selected file to automatically selected ones.
2926 if test -n "$CONFIG_SITE"; then
2927   ac_site_files="$CONFIG_SITE"
2928 elif test "x$prefix" != xNONE; then
2929   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2930 else
2931   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2932 fi
2933
2934 for ac_site_file in $ac_site_files
2935 do
2936   case $ac_site_file in #(
2937   */*) :
2938      ;; #(
2939   *) :
2940     ac_site_file=./$ac_site_file ;;
2941 esac
2942   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2943     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2944 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2945     sed 's/^/| /' "$ac_site_file" >&5
2946     . "$ac_site_file" \
2947       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2949 as_fn_error $? "failed to load site script $ac_site_file
2950 See \`config.log' for more details" "$LINENO" 5; }
2951   fi
2952 done
2953
2954 if test -r "$cache_file"; then
2955   # Some versions of bash will fail to source /dev/null (special files
2956   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2957   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2958     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2959 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2960     case $cache_file in
2961       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2962       *)                      . "./$cache_file";;
2963     esac
2964   fi
2965 else
2966   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2967 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2968   >$cache_file
2969 fi
2970
2971 # Test code for whether the C compiler supports C89 (global declarations)
2972 ac_c_conftest_c89_globals='
2973 /* Does the compiler advertise C89 conformance?
2974    Do not test the value of __STDC__, because some compilers set it to 0
2975    while being otherwise adequately conformant. */
2976 #if !defined __STDC__
2977 # error "Compiler does not advertise C89 conformance"
2978 #endif
2979
2980 #include <stddef.h>
2981 #include <stdarg.h>
2982 struct stat;
2983 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2984 struct buf { int x; };
2985 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2986 static char *e (p, i)
2987      char **p;
2988      int i;
2989 {
2990   return p[i];
2991 }
2992 static char *f (char * (*g) (char **, int), char **p, ...)
2993 {
2994   char *s;
2995   va_list v;
2996   va_start (v,p);
2997   s = g (p, va_arg (v,int));
2998   va_end (v);
2999   return s;
3000 }
3001
3002 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3003    function prototypes and stuff, but not \xHH hex character constants.
3004    These do not provoke an error unfortunately, instead are silently treated
3005    as an "x".  The following induces an error, until -std is added to get
3006    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
3007    array size at least.  It is necessary to write \x00 == 0 to get something
3008    that is true only with -std.  */
3009 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3010
3011 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3012    inside strings and character constants.  */
3013 #define FOO(x) '\''x'\''
3014 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3015
3016 int test (int i, double x);
3017 struct s1 {int (*f) (int a);};
3018 struct s2 {int (*f) (double a);};
3019 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3020                int, int);'
3021
3022 # Test code for whether the C compiler supports C89 (body of main).
3023 ac_c_conftest_c89_main='
3024 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3025 '
3026
3027 # Test code for whether the C compiler supports C99 (global declarations)
3028 ac_c_conftest_c99_globals='
3029 // Does the compiler advertise C99 conformance?
3030 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3031 # error "Compiler does not advertise C99 conformance"
3032 #endif
3033
3034 #include <stdbool.h>
3035 extern int puts (const char *);
3036 extern int printf (const char *, ...);
3037 extern int dprintf (int, const char *, ...);
3038 extern void *malloc (size_t);
3039
3040 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3041 // dprintf is used instead of fprintf to avoid needing to declare
3042 // FILE and stderr.
3043 #define debug(...) dprintf (2, __VA_ARGS__)
3044 #define showlist(...) puts (#__VA_ARGS__)
3045 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3046 static void
3047 test_varargs_macros (void)
3048 {
3049   int x = 1234;
3050   int y = 5678;
3051   debug ("Flag");
3052   debug ("X = %d\n", x);
3053   showlist (The first, second, and third items.);
3054   report (x>y, "x is %d but y is %d", x, y);
3055 }
3056
3057 // Check long long types.
3058 #define BIG64 18446744073709551615ull
3059 #define BIG32 4294967295ul
3060 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3061 #if !BIG_OK
3062   #error "your preprocessor is broken"
3063 #endif
3064 #if BIG_OK
3065 #else
3066   #error "your preprocessor is broken"
3067 #endif
3068 static long long int bignum = -9223372036854775807LL;
3069 static unsigned long long int ubignum = BIG64;
3070
3071 struct incomplete_array
3072 {
3073   int datasize;
3074   double data[];
3075 };
3076
3077 struct named_init {
3078   int number;
3079   const wchar_t *name;
3080   double average;
3081 };
3082
3083 typedef const char *ccp;
3084
3085 static inline int
3086 test_restrict (ccp restrict text)
3087 {
3088   // See if C++-style comments work.
3089   // Iterate through items via the restricted pointer.
3090   // Also check for declarations in for loops.
3091   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3092     continue;
3093   return 0;
3094 }
3095
3096 // Check varargs and va_copy.
3097 static bool
3098 test_varargs (const char *format, ...)
3099 {
3100   va_list args;
3101   va_start (args, format);
3102   va_list args_copy;
3103   va_copy (args_copy, args);
3104
3105   const char *str = "";
3106   int number = 0;
3107   float fnumber = 0;
3108
3109   while (*format)
3110     {
3111       switch (*format++)
3112         {
3113         case '\''s'\'': // string
3114           str = va_arg (args_copy, const char *);
3115           break;
3116         case '\''d'\'': // int
3117           number = va_arg (args_copy, int);
3118           break;
3119         case '\''f'\'': // float
3120           fnumber = va_arg (args_copy, double);
3121           break;
3122         default:
3123           break;
3124         }
3125     }
3126   va_end (args_copy);
3127   va_end (args);
3128
3129   return *str && number && fnumber;
3130 }
3131 '
3132
3133 # Test code for whether the C compiler supports C99 (body of main).
3134 ac_c_conftest_c99_main='
3135   // Check bool.
3136   _Bool success = false;
3137   success |= (argc != 0);
3138
3139   // Check restrict.
3140   if (test_restrict ("String literal") == 0)
3141     success = true;
3142   char *restrict newvar = "Another string";
3143
3144   // Check varargs.
3145   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3146   test_varargs_macros ();
3147
3148   // Check flexible array members.
3149   struct incomplete_array *ia =
3150     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3151   ia->datasize = 10;
3152   for (int i = 0; i < ia->datasize; ++i)
3153     ia->data[i] = i * 1.234;
3154
3155   // Check named initializers.
3156   struct named_init ni = {
3157     .number = 34,
3158     .name = L"Test wide string",
3159     .average = 543.34343,
3160   };
3161
3162   ni.number = 58;
3163
3164   int dynamic_array[ni.number];
3165   dynamic_array[0] = argv[0][0];
3166   dynamic_array[ni.number - 1] = 543;
3167
3168   // work around unused variable warnings
3169   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3170          || dynamic_array[ni.number - 1] != 543);
3171 '
3172
3173 # Test code for whether the C compiler supports C11 (global declarations)
3174 ac_c_conftest_c11_globals='
3175 // Does the compiler advertise C11 conformance?
3176 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3177 # error "Compiler does not advertise C11 conformance"
3178 #endif
3179
3180 // Check _Alignas.
3181 char _Alignas (double) aligned_as_double;
3182 char _Alignas (0) no_special_alignment;
3183 extern char aligned_as_int;
3184 char _Alignas (0) _Alignas (int) aligned_as_int;
3185
3186 // Check _Alignof.
3187 enum
3188 {
3189   int_alignment = _Alignof (int),
3190   int_array_alignment = _Alignof (int[100]),
3191   char_alignment = _Alignof (char)
3192 };
3193 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3194
3195 // Check _Noreturn.
3196 int _Noreturn does_not_return (void) { for (;;) continue; }
3197
3198 // Check _Static_assert.
3199 struct test_static_assert
3200 {
3201   int x;
3202   _Static_assert (sizeof (int) <= sizeof (long int),
3203                   "_Static_assert does not work in struct");
3204   long int y;
3205 };
3206
3207 // Check UTF-8 literals.
3208 #define u8 syntax error!
3209 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3210
3211 // Check duplicate typedefs.
3212 typedef long *long_ptr;
3213 typedef long int *long_ptr;
3214 typedef long_ptr long_ptr;
3215
3216 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3217 struct anonymous
3218 {
3219   union {
3220     struct { int i; int j; };
3221     struct { int k; long int l; } w;
3222   };
3223   int m;
3224 } v1;
3225 '
3226
3227 # Test code for whether the C compiler supports C11 (body of main).
3228 ac_c_conftest_c11_main='
3229   _Static_assert ((offsetof (struct anonymous, i)
3230                    == offsetof (struct anonymous, w.k)),
3231                   "Anonymous union alignment botch");
3232   v1.i = 2;
3233   v1.w.k = 5;
3234   ok |= v1.i != 5;
3235 '
3236
3237 # Test code for whether the C compiler supports C11 (complete).
3238 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3239 ${ac_c_conftest_c99_globals}
3240 ${ac_c_conftest_c11_globals}
3241
3242 int
3243 main (int argc, char **argv)
3244 {
3245   int ok = 0;
3246   ${ac_c_conftest_c89_main}
3247   ${ac_c_conftest_c99_main}
3248   ${ac_c_conftest_c11_main}
3249   return ok;
3250 }
3251 "
3252
3253 # Test code for whether the C compiler supports C99 (complete).
3254 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3255 ${ac_c_conftest_c99_globals}
3256
3257 int
3258 main (int argc, char **argv)
3259 {
3260   int ok = 0;
3261   ${ac_c_conftest_c89_main}
3262   ${ac_c_conftest_c99_main}
3263   return ok;
3264 }
3265 "
3266
3267 # Test code for whether the C compiler supports C89 (complete).
3268 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3269
3270 int
3271 main (int argc, char **argv)
3272 {
3273   int ok = 0;
3274   ${ac_c_conftest_c89_main}
3275   return ok;
3276 }
3277 "
3278
3279 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3280 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3281 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3282 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3283 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3284 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3285 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3286 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3287 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3288
3289 # Auxiliary files required by this configure script.
3290 ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh"
3291
3292 # Locations in which to look for auxiliary files.
3293 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3294
3295 # Search for a directory containing all of the required auxiliary files,
3296 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3297 # If we don't find one directory that contains all the files we need,
3298 # we report the set of missing files from the *first* directory in
3299 # $ac_aux_dir_candidates and give up.
3300 ac_missing_aux_files=""
3301 ac_first_candidate=:
3302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 as_found=false
3305 for as_dir in $ac_aux_dir_candidates
3306 do
3307   IFS=$as_save_IFS
3308   case $as_dir in #(((
3309     '') as_dir=./ ;;
3310     */) ;;
3311     *) as_dir=$as_dir/ ;;
3312   esac
3313   as_found=:
3314
3315   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3316   ac_aux_dir_found=yes
3317   ac_install_sh=
3318   for ac_aux in $ac_aux_files
3319   do
3320     # As a special case, if "install-sh" is required, that requirement
3321     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3322     # and $ac_install_sh is set appropriately for whichever one is found.
3323     if test x"$ac_aux" = x"install-sh"
3324     then
3325       if test -f "${as_dir}install-sh"; then
3326         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3327         ac_install_sh="${as_dir}install-sh -c"
3328       elif test -f "${as_dir}install.sh"; then
3329         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3330         ac_install_sh="${as_dir}install.sh -c"
3331       elif test -f "${as_dir}shtool"; then
3332         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3333         ac_install_sh="${as_dir}shtool install -c"
3334       else
3335         ac_aux_dir_found=no
3336         if $ac_first_candidate; then
3337           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3338         else
3339           break
3340         fi
3341       fi
3342     else
3343       if test -f "${as_dir}${ac_aux}"; then
3344         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3345       else
3346         ac_aux_dir_found=no
3347         if $ac_first_candidate; then
3348           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3349         else
3350           break
3351         fi
3352       fi
3353     fi
3354   done
3355   if test "$ac_aux_dir_found" = yes; then
3356     ac_aux_dir="$as_dir"
3357     break
3358   fi
3359   ac_first_candidate=false
3360
3361   as_found=false
3362 done
3363 IFS=$as_save_IFS
3364 if $as_found
3365 then :
3366
3367 else $as_nop
3368   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3369 fi
3370
3371
3372 # These three variables are undocumented and unsupported,
3373 # and are intended to be withdrawn in a future Autoconf release.
3374 # They can cause serious problems if a builder's source tree is in a directory
3375 # whose full name contains unusual characters.
3376 if test -f "${ac_aux_dir}config.guess"; then
3377   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3378 fi
3379 if test -f "${ac_aux_dir}config.sub"; then
3380   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3381 fi
3382 if test -f "$ac_aux_dir/configure"; then
3383   ac_configure="$SHELL ${ac_aux_dir}configure"
3384 fi
3385
3386 # Check that the precious variables saved in the cache have kept the same
3387 # value.
3388 ac_cache_corrupted=false
3389 for ac_var in $ac_precious_vars; do
3390   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3391   eval ac_new_set=\$ac_env_${ac_var}_set
3392   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3393   eval ac_new_val=\$ac_env_${ac_var}_value
3394   case $ac_old_set,$ac_new_set in
3395     set,)
3396       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3397 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3398       ac_cache_corrupted=: ;;
3399     ,set)
3400       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3401 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3402       ac_cache_corrupted=: ;;
3403     ,);;
3404     *)
3405       if test "x$ac_old_val" != "x$ac_new_val"; then
3406         # differences in whitespace do not lead to failure.
3407         ac_old_val_w=`echo x $ac_old_val`
3408         ac_new_val_w=`echo x $ac_new_val`
3409         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3410           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3411 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3412           ac_cache_corrupted=:
3413         else
3414           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3415 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3416           eval $ac_var=\$ac_old_val
3417         fi
3418         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3419 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3420         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3421 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3422       fi;;
3423   esac
3424   # Pass precious variables to config.status.
3425   if test "$ac_new_set" = set; then
3426     case $ac_new_val in
3427     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3428     *) ac_arg=$ac_var=$ac_new_val ;;
3429     esac
3430     case " $ac_configure_args " in
3431       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3432       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3433     esac
3434   fi
3435 done
3436 if $ac_cache_corrupted; then
3437   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3439   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3440 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3441   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3442             and start over" "$LINENO" 5
3443 fi
3444 ## -------------------- ##
3445 ## Main body of script. ##
3446 ## -------------------- ##
3447
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
3454
3455
3456
3457
3458
3459
3460 # using curl-override.m4
3461
3462
3463
3464
3465
3466 ac_config_headers="$ac_config_headers lib/curl_config.h"
3467
3468
3469
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3471 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3472     # Check whether --enable-maintainer-mode was given.
3473 if test ${enable_maintainer_mode+y}
3474 then :
3475   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3476 else $as_nop
3477   USE_MAINTAINER_MODE=no
3478 fi
3479
3480   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3481 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3482    if test $USE_MAINTAINER_MODE = yes; then
3483   MAINTAINER_MODE_TRUE=
3484   MAINTAINER_MODE_FALSE='#'
3485 else
3486   MAINTAINER_MODE_TRUE='#'
3487   MAINTAINER_MODE_FALSE=
3488 fi
3489
3490   MAINT=$MAINTAINER_MODE_TRUE
3491
3492
3493 # Check whether --enable-silent-rules was given.
3494 if test ${enable_silent_rules+y}
3495 then :
3496   enableval=$enable_silent_rules;
3497 fi
3498
3499 case $enable_silent_rules in # (((
3500   yes) AM_DEFAULT_VERBOSITY=0;;
3501    no) AM_DEFAULT_VERBOSITY=1;;
3502     *) AM_DEFAULT_VERBOSITY=0;;
3503 esac
3504 am_make=${MAKE-make}
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3506 printf %s "checking whether $am_make supports nested variables... " >&6; }
3507 if test ${am_cv_make_support_nested_variables+y}
3508 then :
3509   printf %s "(cached) " >&6
3510 else $as_nop
3511   if printf "%s\n" 'TRUE=$(BAR$(V))
3512 BAR0=false
3513 BAR1=true
3514 V=1
3515 am__doit:
3516         @$(TRUE)
3517 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3518   am_cv_make_support_nested_variables=yes
3519 else
3520   am_cv_make_support_nested_variables=no
3521 fi
3522 fi
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3524 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3525 if test $am_cv_make_support_nested_variables = yes; then
3526     AM_V='$(V)'
3527   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3528 else
3529   AM_V=$AM_DEFAULT_VERBOSITY
3530   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3531 fi
3532 AM_BACKSLASH='\'
3533
3534
3535
3536         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3537 printf %s "checking whether to enable debug build options... " >&6; }
3538   OPT_DEBUG_BUILD="default"
3539   # Check whether --enable-debug was given.
3540 if test ${enable_debug+y}
3541 then :
3542   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3543 fi
3544
3545   case "$OPT_DEBUG_BUILD" in
3546     no)
3547             want_debug="no"
3548       ;;
3549     default)
3550             want_debug="no"
3551       ;;
3552     *)
3553             want_debug="yes"
3554
3555 printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
3556
3557       ;;
3558   esac
3559   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3560 printf "%s\n" "$want_debug" >&6; }
3561
3562
3563       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3564 printf %s "checking whether to enable compiler optimizer... " >&6; }
3565   OPT_COMPILER_OPTIMIZE="default"
3566   # Check whether --enable-optimize was given.
3567 if test ${enable_optimize+y}
3568 then :
3569   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3570 fi
3571
3572   case "$OPT_COMPILER_OPTIMIZE" in
3573     no)
3574                               want_optimize="no"
3575       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 printf "%s\n" "no" >&6; }
3577       ;;
3578     default)
3579                                                                         if test "$want_debug" = "yes"; then
3580         want_optimize="assume_no"
3581         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3582 printf "%s\n" "(assumed) no" >&6; }
3583       else
3584         want_optimize="assume_yes"
3585         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3586 printf "%s\n" "(assumed) yes" >&6; }
3587       fi
3588       ;;
3589     *)
3590                               want_optimize="yes"
3591       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3592 printf "%s\n" "yes" >&6; }
3593       ;;
3594   esac
3595
3596
3597         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3598 printf %s "checking whether to enable strict compiler warnings... " >&6; }
3599   OPT_COMPILER_WARNINGS="default"
3600   # Check whether --enable-warnings was given.
3601 if test ${enable_warnings+y}
3602 then :
3603   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3604 fi
3605
3606   case "$OPT_COMPILER_WARNINGS" in
3607     no)
3608             want_warnings="no"
3609       ;;
3610     default)
3611                   want_warnings="$want_debug"
3612       ;;
3613     *)
3614             want_warnings="yes"
3615       ;;
3616   esac
3617   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3618 printf "%s\n" "$want_warnings" >&6; }
3619
3620
3621     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3622 printf %s "checking whether to enable compiler warnings as errors... " >&6; }
3623   OPT_COMPILER_WERROR="default"
3624   # Check whether --enable-werror was given.
3625 if test ${enable_werror+y}
3626 then :
3627   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3628 fi
3629
3630   case "$OPT_COMPILER_WERROR" in
3631     no)
3632             want_werror="no"
3633       ;;
3634     default)
3635             want_werror="no"
3636       ;;
3637     *)
3638             want_werror="yes"
3639       ;;
3640   esac
3641   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3642 printf "%s\n" "$want_werror" >&6; }
3643
3644
3645     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3646 printf %s "checking whether to enable curl debug memory tracking... " >&6; }
3647   OPT_CURLDEBUG_BUILD="default"
3648   # Check whether --enable-curldebug was given.
3649 if test ${enable_curldebug+y}
3650 then :
3651   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3652 fi
3653
3654   case "$OPT_CURLDEBUG_BUILD" in
3655     no)
3656             want_curldebug="no"
3657       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 printf "%s\n" "no" >&6; }
3659       ;;
3660     default)
3661                                           if test "$want_debug" = "yes"; then
3662         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3663 printf "%s\n" "(assumed) yes" >&6; }
3664
3665 printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3666
3667       else
3668         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 printf "%s\n" "no" >&6; }
3670       fi
3671       want_curldebug_assumed="yes"
3672       want_curldebug="$want_debug"
3673       ;;
3674     *)
3675                                                       want_curldebug="yes"
3676
3677 printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3678
3679       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3680 printf "%s\n" "yes" >&6; }
3681       ;;
3682   esac
3683
3684
3685     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3686 printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
3687   OPT_SYMBOL_HIDING="default"
3688   # Check whether --enable-symbol-hiding was given.
3689 if test ${enable_symbol_hiding+y}
3690 then :
3691   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3692 fi
3693
3694   case "$OPT_SYMBOL_HIDING" in
3695     no)
3696                               want_symbol_hiding="no"
3697       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 printf "%s\n" "no" >&6; }
3699       ;;
3700     default)
3701                   want_symbol_hiding="yes"
3702       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 printf "%s\n" "yes" >&6; }
3704       ;;
3705     *)
3706                         want_symbol_hiding="yes"
3707       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708 printf "%s\n" "yes" >&6; }
3709       ;;
3710   esac
3711
3712
3713     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3714 printf %s "checking whether to enable c-ares for DNS lookups... " >&6; }
3715   OPT_ARES="default"
3716   # Check whether --enable-ares was given.
3717 if test ${enable_ares+y}
3718 then :
3719   enableval=$enable_ares; OPT_ARES=$enableval
3720 fi
3721
3722   case "$OPT_ARES" in
3723     no)
3724             want_ares="no"
3725       ;;
3726     default)
3727             want_ares="no"
3728       ;;
3729     *)
3730             want_ares="yes"
3731       if test -n "$enableval" && test "$enableval" != "yes"; then
3732         want_ares_path="$enableval"
3733       fi
3734       ;;
3735   esac
3736   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3737 printf "%s\n" "$want_ares" >&6; }
3738
3739
3740     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3741 printf %s "checking whether to disable dependency on -lrt... " >&6; }
3742   OPT_RT="default"
3743   # Check whether --enable-rt was given.
3744 if test ${enable_rt+y}
3745 then :
3746   enableval=$enable_rt; OPT_RT=$enableval
3747 fi
3748
3749   case "$OPT_RT" in
3750     no)
3751             dontwant_rt="yes"
3752       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3753 printf "%s\n" "yes" >&6; }
3754       ;;
3755     default)
3756             dontwant_rt="no"
3757       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3758 printf "%s\n" "(assumed no)" >&6; }
3759       ;;
3760     *)
3761             dontwant_rt="no"
3762       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 printf "%s\n" "no" >&6; }
3764       ;;
3765   esac
3766
3767
3768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
3769 printf %s "checking whether to enable ECH support... " >&6; }
3770   OPT_ECH="default"
3771   # Check whether --enable-ech was given.
3772 if test ${enable_ech+y}
3773 then :
3774   enableval=$enable_ech; OPT_ECH=$enableval
3775 fi
3776
3777   case "$OPT_ECH" in
3778     no)
3779             want_ech="no"
3780       curl_ech_msg="no      (--enable-ech)"
3781       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 printf "%s\n" "no" >&6; }
3783       ;;
3784     default)
3785             want_ech="no"
3786       curl_ech_msg="no      (--enable-ech)"
3787       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 printf "%s\n" "no" >&6; }
3789       ;;
3790     *)
3791             want_ech="yes"
3792       curl_ech_msg="enabled (--disable-ech)"
3793       experimental="ech"
3794       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3795 printf "%s\n" "yes" >&6; }
3796       ;;
3797   esac
3798
3799
3800 #
3801 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3802 #
3803
3804 if test -z "$xc_configure_preamble_result"; then
3805   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3806 fi
3807
3808 #
3809 # Check that 'PATH_SEPARATOR' has already been set.
3810 #
3811
3812 if test -z "$xc_PATH_SEPARATOR"; then
3813   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3814 fi
3815 if test -z "$PATH_SEPARATOR"; then
3816   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3817 fi
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3819 printf %s "checking for path separator... " >&6; }
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3821 printf "%s\n" "$PATH_SEPARATOR" >&6; }
3822 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3824 printf %s "checking for initial path separator... " >&6; }
3825   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3826 printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
3827   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3828 fi
3829
3830
3831 #
3832 # save the configure arguments
3833 #
3834 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3835
3836
3837 if test -z "$SED"; then
3838     # Extract the first word of "sed", so it can be a program name with args.
3839 set dummy sed; ac_word=$2
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 printf %s "checking for $ac_word... " >&6; }
3842 if test ${ac_cv_path_SED+y}
3843 then :
3844   printf %s "(cached) " >&6
3845 else $as_nop
3846   case $SED in
3847   [\\/]* | ?:[\\/]*)
3848   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3849   ;;
3850   *)
3851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3853 for as_dir in $as_dummy
3854 do
3855   IFS=$as_save_IFS
3856   case $as_dir in #(((
3857     '') as_dir=./ ;;
3858     */) ;;
3859     *) as_dir=$as_dir/ ;;
3860   esac
3861     for ac_exec_ext in '' $ac_executable_extensions; do
3862   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3863     ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3864     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3865     break 2
3866   fi
3867 done
3868   done
3869 IFS=$as_save_IFS
3870
3871   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3872   ;;
3873 esac
3874 fi
3875 SED=$ac_cv_path_SED
3876 if test -n "$SED"; then
3877   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3878 printf "%s\n" "$SED" >&6; }
3879 else
3880   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 printf "%s\n" "no" >&6; }
3882 fi
3883
3884
3885   if test -z "$SED" || test "$SED" = "not_found"; then
3886     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3887   fi
3888 fi
3889
3890
3891 if test -z "$GREP"; then
3892     # Extract the first word of "grep", so it can be a program name with args.
3893 set dummy grep; ac_word=$2
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 printf %s "checking for $ac_word... " >&6; }
3896 if test ${ac_cv_path_GREP+y}
3897 then :
3898   printf %s "(cached) " >&6
3899 else $as_nop
3900   case $GREP in
3901   [\\/]* | ?:[\\/]*)
3902   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3903   ;;
3904   *)
3905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3907 for as_dir in $as_dummy
3908 do
3909   IFS=$as_save_IFS
3910   case $as_dir in #(((
3911     '') as_dir=./ ;;
3912     */) ;;
3913     *) as_dir=$as_dir/ ;;
3914   esac
3915     for ac_exec_ext in '' $ac_executable_extensions; do
3916   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3917     ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
3918     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3919     break 2
3920   fi
3921 done
3922   done
3923 IFS=$as_save_IFS
3924
3925   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3926   ;;
3927 esac
3928 fi
3929 GREP=$ac_cv_path_GREP
3930 if test -n "$GREP"; then
3931   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3932 printf "%s\n" "$GREP" >&6; }
3933 else
3934   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 printf "%s\n" "no" >&6; }
3936 fi
3937
3938
3939   if test -z "$GREP" || test "$GREP" = "not_found"; then
3940     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3941   fi
3942 fi
3943
3944
3945 if test -z "$EGREP"; then
3946     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that grep -E works" >&5
3947 printf %s "checking that grep -E works... " >&6; }
3948   if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3949     EGREP="$GREP -E"
3950     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3951 printf "%s\n" "yes" >&6; }
3952   else
3953     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 printf "%s\n" "no" >&6; }
3955     # Extract the first word of "egrep", so it can be a program name with args.
3956 set dummy egrep; ac_word=$2
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 printf %s "checking for $ac_word... " >&6; }
3959 if test ${ac_cv_path_EGREP+y}
3960 then :
3961   printf %s "(cached) " >&6
3962 else $as_nop
3963   case $EGREP in
3964   [\\/]* | ?:[\\/]*)
3965   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3966   ;;
3967   *)
3968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3970 for as_dir in $as_dummy
3971 do
3972   IFS=$as_save_IFS
3973   case $as_dir in #(((
3974     '') as_dir=./ ;;
3975     */) ;;
3976     *) as_dir=$as_dir/ ;;
3977   esac
3978     for ac_exec_ext in '' $ac_executable_extensions; do
3979   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3980     ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
3981     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3982     break 2
3983   fi
3984 done
3985   done
3986 IFS=$as_save_IFS
3987
3988   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3989   ;;
3990 esac
3991 fi
3992 EGREP=$ac_cv_path_EGREP
3993 if test -n "$EGREP"; then
3994   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3995 printf "%s\n" "$EGREP" >&6; }
3996 else
3997   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 printf "%s\n" "no" >&6; }
3999 fi
4000
4001
4002   fi
4003 fi
4004 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
4005   as_fn_error $? "grep -E is not working and egrep is not found in PATH. Cannot continue." "$LINENO" 5
4006 fi
4007
4008
4009 if test -z "$AR"; then
4010     if test -n "$ac_tool_prefix"; then
4011   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4012 set dummy ${ac_tool_prefix}ar; ac_word=$2
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 printf %s "checking for $ac_word... " >&6; }
4015 if test ${ac_cv_path_AR+y}
4016 then :
4017   printf %s "(cached) " >&6
4018 else $as_nop
4019   case $AR in
4020   [\\/]* | ?:[\\/]*)
4021   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4022   ;;
4023   *)
4024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4026 for as_dir in $as_dummy
4027 do
4028   IFS=$as_save_IFS
4029   case $as_dir in #(((
4030     '') as_dir=./ ;;
4031     */) ;;
4032     *) as_dir=$as_dir/ ;;
4033   esac
4034     for ac_exec_ext in '' $ac_executable_extensions; do
4035   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4036     ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
4037     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4038     break 2
4039   fi
4040 done
4041   done
4042 IFS=$as_save_IFS
4043
4044   ;;
4045 esac
4046 fi
4047 AR=$ac_cv_path_AR
4048 if test -n "$AR"; then
4049   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4050 printf "%s\n" "$AR" >&6; }
4051 else
4052   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 printf "%s\n" "no" >&6; }
4054 fi
4055
4056
4057 fi
4058 if test -z "$ac_cv_path_AR"; then
4059   ac_pt_AR=$AR
4060   # Extract the first word of "ar", so it can be a program name with args.
4061 set dummy ar; ac_word=$2
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 printf %s "checking for $ac_word... " >&6; }
4064 if test ${ac_cv_path_ac_pt_AR+y}
4065 then :
4066   printf %s "(cached) " >&6
4067 else $as_nop
4068   case $ac_pt_AR in
4069   [\\/]* | ?:[\\/]*)
4070   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4071   ;;
4072   *)
4073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4075 for as_dir in $as_dummy
4076 do
4077   IFS=$as_save_IFS
4078   case $as_dir in #(((
4079     '') as_dir=./ ;;
4080     */) ;;
4081     *) as_dir=$as_dir/ ;;
4082   esac
4083     for ac_exec_ext in '' $ac_executable_extensions; do
4084   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4085     ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
4086     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4087     break 2
4088   fi
4089 done
4090   done
4091 IFS=$as_save_IFS
4092
4093   ;;
4094 esac
4095 fi
4096 ac_pt_AR=$ac_cv_path_ac_pt_AR
4097 if test -n "$ac_pt_AR"; then
4098   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4099 printf "%s\n" "$ac_pt_AR" >&6; }
4100 else
4101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 printf "%s\n" "no" >&6; }
4103 fi
4104
4105   if test "x$ac_pt_AR" = x; then
4106     AR="not_found"
4107   else
4108     case $cross_compiling:$ac_tool_warned in
4109 yes:)
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4111 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4112 ac_tool_warned=yes ;;
4113 esac
4114     AR=$ac_pt_AR
4115   fi
4116 else
4117   AR="$ac_cv_path_AR"
4118 fi
4119
4120   if test -z "$AR" || test "$AR" = "not_found"; then
4121     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4122   fi
4123 fi
4124
4125
4126
4127
4128 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4129
4130   xc_prog_cc_prev_IFS=$IFS
4131   xc_prog_cc_prev_LIBS=$LIBS
4132   xc_prog_cc_prev_CFLAGS=$CFLAGS
4133   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4134   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4135
4136
4137
4138   xc_bad_var_libs=no
4139   for xc_word in $LIBS; do
4140     case "$xc_word" in
4141       -l* | --library=*)
4142         :
4143         ;;
4144       *)
4145         xc_bad_var_libs=yes
4146         ;;
4147     esac
4148   done
4149   if test $xc_bad_var_libs = yes; then
4150     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4151 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
4152     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4153 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4154   fi
4155
4156
4157   xc_bad_var_ldflags=no
4158   for xc_word in $LDFLAGS; do
4159     case "$xc_word" in
4160       -D*)
4161         xc_bad_var_ldflags=yes
4162         ;;
4163       -U*)
4164         xc_bad_var_ldflags=yes
4165         ;;
4166       -I*)
4167         xc_bad_var_ldflags=yes
4168         ;;
4169       -l* | --library=*)
4170         xc_bad_var_ldflags=yes
4171         ;;
4172     esac
4173   done
4174   if test $xc_bad_var_ldflags = yes; then
4175     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4176 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4177     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4178     for xc_word in $LDFLAGS; do
4179       case "$xc_word" in
4180         -D*)
4181           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4182 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4183           ;;
4184         -U*)
4185           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4186 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4187           ;;
4188         -I*)
4189           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4190 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4191           ;;
4192         -l* | --library=*)
4193           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4194 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4195           ;;
4196       esac
4197     done
4198   fi
4199
4200
4201   xc_bad_var_cppflags=no
4202   for xc_word in $CPPFLAGS; do
4203     case "$xc_word" in
4204       -rpath*)
4205         xc_bad_var_cppflags=yes
4206         ;;
4207       -L* | --library-path=*)
4208         xc_bad_var_cppflags=yes
4209         ;;
4210       -l* | --library=*)
4211         xc_bad_var_cppflags=yes
4212         ;;
4213     esac
4214   done
4215   if test $xc_bad_var_cppflags = yes; then
4216     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4217 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4218     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4219     for xc_word in $CPPFLAGS; do
4220       case "$xc_word" in
4221         -rpath*)
4222           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4223 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4224           ;;
4225         -L* | --library-path=*)
4226           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4227 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4228           ;;
4229         -l* | --library=*)
4230           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4231 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4232           ;;
4233       esac
4234     done
4235   fi
4236
4237
4238   xc_bad_var_cflags=no
4239   for xc_word in $CFLAGS; do
4240     case "$xc_word" in
4241       -D*)
4242         xc_bad_var_cflags=yes
4243         ;;
4244       -U*)
4245         xc_bad_var_cflags=yes
4246         ;;
4247       -I*)
4248         xc_bad_var_cflags=yes
4249         ;;
4250       -rpath*)
4251         xc_bad_var_cflags=yes
4252         ;;
4253       -L* | --library-path=*)
4254         xc_bad_var_cflags=yes
4255         ;;
4256       -l* | --library=*)
4257         xc_bad_var_cflags=yes
4258         ;;
4259     esac
4260   done
4261   if test $xc_bad_var_cflags = yes; then
4262     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4263 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
4264     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4265     for xc_word in $CFLAGS; do
4266       case "$xc_word" in
4267         -D*)
4268           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4269 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4270           ;;
4271         -U*)
4272           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4273 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4274           ;;
4275         -I*)
4276           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4277 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4278           ;;
4279         -rpath*)
4280           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4281 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4282           ;;
4283         -L* | --library-path=*)
4284           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4285 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4286           ;;
4287         -l* | --library=*)
4288           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4289 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4290           ;;
4291       esac
4292     done
4293   fi
4294
4295   if test $xc_bad_var_libs = yes ||
4296      test $xc_bad_var_cflags = yes ||
4297      test $xc_bad_var_ldflags = yes ||
4298      test $xc_bad_var_cppflags = yes; then
4299      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4300 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4301   fi
4302
4303
4304
4305   # Find a good install program.  We prefer a C program (faster),
4306 # so one script is as good as another.  But avoid the broken or
4307 # incompatible versions:
4308 # SysV /etc/install, /usr/sbin/install
4309 # SunOS /usr/etc/install
4310 # IRIX /sbin/install
4311 # AIX /bin/install
4312 # AmigaOS /C/install, which installs bootblocks on floppy discs
4313 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4314 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4315 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4316 # OS/2's system install, which has a completely different semantic
4317 # ./install, which can be erroneously created by make from ./install.sh.
4318 # Reject install programs that cannot install multiple files.
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4320 printf %s "checking for a BSD-compatible install... " >&6; }
4321 if test -z "$INSTALL"; then
4322 if test ${ac_cv_path_install+y}
4323 then :
4324   printf %s "(cached) " >&6
4325 else $as_nop
4326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   case $as_dir in #(((
4331     '') as_dir=./ ;;
4332     */) ;;
4333     *) as_dir=$as_dir/ ;;
4334   esac
4335     # Account for fact that we put trailing slashes in our PATH walk.
4336 case $as_dir in #((
4337   ./ | /[cC]/* | \
4338   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4339   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4340   /usr/ucb/* ) ;;
4341   *)
4342     # OSF1 and SCO ODT 3.0 have their own names for install.
4343     # Don't use installbsd from OSF since it installs stuff as root
4344     # by default.
4345     for ac_prog in ginstall scoinst install; do
4346       for ac_exec_ext in '' $ac_executable_extensions; do
4347         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4348           if test $ac_prog = install &&
4349             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4350             # AIX install.  It has an incompatible calling convention.
4351             :
4352           elif test $ac_prog = install &&
4353             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4354             # program-specific install script used by HP pwplus--don't use.
4355             :
4356           else
4357             rm -rf conftest.one conftest.two conftest.dir
4358             echo one > conftest.one
4359             echo two > conftest.two
4360             mkdir conftest.dir
4361             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4362               test -s conftest.one && test -s conftest.two &&
4363               test -s conftest.dir/conftest.one &&
4364               test -s conftest.dir/conftest.two
4365             then
4366               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4367               break 3
4368             fi
4369           fi
4370         fi
4371       done
4372     done
4373     ;;
4374 esac
4375
4376   done
4377 IFS=$as_save_IFS
4378
4379 rm -rf conftest.one conftest.two conftest.dir
4380
4381 fi
4382   if test ${ac_cv_path_install+y}; then
4383     INSTALL=$ac_cv_path_install
4384   else
4385     # As a last resort, use the slow shell script.  Don't cache a
4386     # value for INSTALL within a source directory, because that will
4387     # break other packages using the cache if that directory is
4388     # removed, or if the value is a relative name.
4389     INSTALL=$ac_install_sh
4390   fi
4391 fi
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4393 printf "%s\n" "$INSTALL" >&6; }
4394
4395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4396 # It thinks the first close brace ends the variable substitution.
4397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4398
4399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4400
4401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413 # Expand $ac_aux_dir to an absolute path.
4414 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4415
4416 ac_ext=c
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 if test -n "$ac_tool_prefix"; then
4422   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 printf %s "checking for $ac_word... " >&6; }
4426 if test ${ac_cv_prog_CC+y}
4427 then :
4428   printf %s "(cached) " >&6
4429 else $as_nop
4430   if test -n "$CC"; then
4431   ac_cv_prog_CC="$CC" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436   IFS=$as_save_IFS
4437   case $as_dir in #(((
4438     '') as_dir=./ ;;
4439     */) ;;
4440     *) as_dir=$as_dir/ ;;
4441   esac
4442     for ac_exec_ext in '' $ac_executable_extensions; do
4443   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4444     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4445     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449   done
4450 IFS=$as_save_IFS
4451
4452 fi
4453 fi
4454 CC=$ac_cv_prog_CC
4455 if test -n "$CC"; then
4456   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4457 printf "%s\n" "$CC" >&6; }
4458 else
4459   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 printf "%s\n" "no" >&6; }
4461 fi
4462
4463
4464 fi
4465 if test -z "$ac_cv_prog_CC"; then
4466   ac_ct_CC=$CC
4467   # Extract the first word of "gcc", so it can be a program name with args.
4468 set dummy gcc; ac_word=$2
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 printf %s "checking for $ac_word... " >&6; }
4471 if test ${ac_cv_prog_ac_ct_CC+y}
4472 then :
4473   printf %s "(cached) " >&6
4474 else $as_nop
4475   if test -n "$ac_ct_CC"; then
4476   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   case $as_dir in #(((
4483     '') as_dir=./ ;;
4484     */) ;;
4485     *) as_dir=$as_dir/ ;;
4486   esac
4487     for ac_exec_ext in '' $ac_executable_extensions; do
4488   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4489     ac_cv_prog_ac_ct_CC="gcc"
4490     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4491     break 2
4492   fi
4493 done
4494   done
4495 IFS=$as_save_IFS
4496
4497 fi
4498 fi
4499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4500 if test -n "$ac_ct_CC"; then
4501   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4502 printf "%s\n" "$ac_ct_CC" >&6; }
4503 else
4504   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 printf "%s\n" "no" >&6; }
4506 fi
4507
4508   if test "x$ac_ct_CC" = x; then
4509     CC=""
4510   else
4511     case $cross_compiling:$ac_tool_warned in
4512 yes:)
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4514 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4515 ac_tool_warned=yes ;;
4516 esac
4517     CC=$ac_ct_CC
4518   fi
4519 else
4520   CC="$ac_cv_prog_CC"
4521 fi
4522
4523 if test -z "$CC"; then
4524           if test -n "$ac_tool_prefix"; then
4525     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4526 set dummy ${ac_tool_prefix}cc; ac_word=$2
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 printf %s "checking for $ac_word... " >&6; }
4529 if test ${ac_cv_prog_CC+y}
4530 then :
4531   printf %s "(cached) " >&6
4532 else $as_nop
4533   if test -n "$CC"; then
4534   ac_cv_prog_CC="$CC" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539   IFS=$as_save_IFS
4540   case $as_dir in #(((
4541     '') as_dir=./ ;;
4542     */) ;;
4543     *) as_dir=$as_dir/ ;;
4544   esac
4545     for ac_exec_ext in '' $ac_executable_extensions; do
4546   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4547     ac_cv_prog_CC="${ac_tool_prefix}cc"
4548     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4549     break 2
4550   fi
4551 done
4552   done
4553 IFS=$as_save_IFS
4554
4555 fi
4556 fi
4557 CC=$ac_cv_prog_CC
4558 if test -n "$CC"; then
4559   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4560 printf "%s\n" "$CC" >&6; }
4561 else
4562   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 printf "%s\n" "no" >&6; }
4564 fi
4565
4566
4567   fi
4568 fi
4569 if test -z "$CC"; then
4570   # Extract the first word of "cc", so it can be a program name with args.
4571 set dummy cc; ac_word=$2
4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 printf %s "checking for $ac_word... " >&6; }
4574 if test ${ac_cv_prog_CC+y}
4575 then :
4576   printf %s "(cached) " >&6
4577 else $as_nop
4578   if test -n "$CC"; then
4579   ac_cv_prog_CC="$CC" # Let the user override the test.
4580 else
4581   ac_prog_rejected=no
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585   IFS=$as_save_IFS
4586   case $as_dir in #(((
4587     '') as_dir=./ ;;
4588     */) ;;
4589     *) as_dir=$as_dir/ ;;
4590   esac
4591     for ac_exec_ext in '' $ac_executable_extensions; do
4592   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4593     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4594        ac_prog_rejected=yes
4595        continue
4596      fi
4597     ac_cv_prog_CC="cc"
4598     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4599     break 2
4600   fi
4601 done
4602   done
4603 IFS=$as_save_IFS
4604
4605 if test $ac_prog_rejected = yes; then
4606   # We found a bogon in the path, so make sure we never use it.
4607   set dummy $ac_cv_prog_CC
4608   shift
4609   if test $# != 0; then
4610     # We chose a different compiler from the bogus one.
4611     # However, it has the same basename, so the bogon will be chosen
4612     # first if we set CC to just the basename; use the full file name.
4613     shift
4614     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4615   fi
4616 fi
4617 fi
4618 fi
4619 CC=$ac_cv_prog_CC
4620 if test -n "$CC"; then
4621   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4622 printf "%s\n" "$CC" >&6; }
4623 else
4624   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 printf "%s\n" "no" >&6; }
4626 fi
4627
4628
4629 fi
4630 if test -z "$CC"; then
4631   if test -n "$ac_tool_prefix"; then
4632   for ac_prog in cl.exe
4633   do
4634     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 printf %s "checking for $ac_word... " >&6; }
4638 if test ${ac_cv_prog_CC+y}
4639 then :
4640   printf %s "(cached) " >&6
4641 else $as_nop
4642   if test -n "$CC"; then
4643   ac_cv_prog_CC="$CC" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648   IFS=$as_save_IFS
4649   case $as_dir in #(((
4650     '') as_dir=./ ;;
4651     */) ;;
4652     *) as_dir=$as_dir/ ;;
4653   esac
4654     for ac_exec_ext in '' $ac_executable_extensions; do
4655   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4656     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4657     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4658     break 2
4659   fi
4660 done
4661   done
4662 IFS=$as_save_IFS
4663
4664 fi
4665 fi
4666 CC=$ac_cv_prog_CC
4667 if test -n "$CC"; then
4668   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4669 printf "%s\n" "$CC" >&6; }
4670 else
4671   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 printf "%s\n" "no" >&6; }
4673 fi
4674
4675
4676     test -n "$CC" && break
4677   done
4678 fi
4679 if test -z "$CC"; then
4680   ac_ct_CC=$CC
4681   for ac_prog in cl.exe
4682 do
4683   # Extract the first word of "$ac_prog", so it can be a program name with args.
4684 set dummy $ac_prog; ac_word=$2
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 printf %s "checking for $ac_word... " >&6; }
4687 if test ${ac_cv_prog_ac_ct_CC+y}
4688 then :
4689   printf %s "(cached) " >&6
4690 else $as_nop
4691   if test -n "$ac_ct_CC"; then
4692   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   case $as_dir in #(((
4699     '') as_dir=./ ;;
4700     */) ;;
4701     *) as_dir=$as_dir/ ;;
4702   esac
4703     for ac_exec_ext in '' $ac_executable_extensions; do
4704   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4705     ac_cv_prog_ac_ct_CC="$ac_prog"
4706     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4707     break 2
4708   fi
4709 done
4710   done
4711 IFS=$as_save_IFS
4712
4713 fi
4714 fi
4715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4716 if test -n "$ac_ct_CC"; then
4717   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4718 printf "%s\n" "$ac_ct_CC" >&6; }
4719 else
4720   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 printf "%s\n" "no" >&6; }
4722 fi
4723
4724
4725   test -n "$ac_ct_CC" && break
4726 done
4727
4728   if test "x$ac_ct_CC" = x; then
4729     CC=""
4730   else
4731     case $cross_compiling:$ac_tool_warned in
4732 yes:)
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4736 esac
4737     CC=$ac_ct_CC
4738   fi
4739 fi
4740
4741 fi
4742 if test -z "$CC"; then
4743   if test -n "$ac_tool_prefix"; then
4744   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4745 set dummy ${ac_tool_prefix}clang; ac_word=$2
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 printf %s "checking for $ac_word... " >&6; }
4748 if test ${ac_cv_prog_CC+y}
4749 then :
4750   printf %s "(cached) " >&6
4751 else $as_nop
4752   if test -n "$CC"; then
4753   ac_cv_prog_CC="$CC" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758   IFS=$as_save_IFS
4759   case $as_dir in #(((
4760     '') as_dir=./ ;;
4761     */) ;;
4762     *) as_dir=$as_dir/ ;;
4763   esac
4764     for ac_exec_ext in '' $ac_executable_extensions; do
4765   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4766     ac_cv_prog_CC="${ac_tool_prefix}clang"
4767     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4768     break 2
4769   fi
4770 done
4771   done
4772 IFS=$as_save_IFS
4773
4774 fi
4775 fi
4776 CC=$ac_cv_prog_CC
4777 if test -n "$CC"; then
4778   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4779 printf "%s\n" "$CC" >&6; }
4780 else
4781   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 printf "%s\n" "no" >&6; }
4783 fi
4784
4785
4786 fi
4787 if test -z "$ac_cv_prog_CC"; then
4788   ac_ct_CC=$CC
4789   # Extract the first word of "clang", so it can be a program name with args.
4790 set dummy clang; ac_word=$2
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 printf %s "checking for $ac_word... " >&6; }
4793 if test ${ac_cv_prog_ac_ct_CC+y}
4794 then :
4795   printf %s "(cached) " >&6
4796 else $as_nop
4797   if test -n "$ac_ct_CC"; then
4798   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803   IFS=$as_save_IFS
4804   case $as_dir in #(((
4805     '') as_dir=./ ;;
4806     */) ;;
4807     *) as_dir=$as_dir/ ;;
4808   esac
4809     for ac_exec_ext in '' $ac_executable_extensions; do
4810   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4811     ac_cv_prog_ac_ct_CC="clang"
4812     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4813     break 2
4814   fi
4815 done
4816   done
4817 IFS=$as_save_IFS
4818
4819 fi
4820 fi
4821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4822 if test -n "$ac_ct_CC"; then
4823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4824 printf "%s\n" "$ac_ct_CC" >&6; }
4825 else
4826   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 printf "%s\n" "no" >&6; }
4828 fi
4829
4830   if test "x$ac_ct_CC" = x; then
4831     CC=""
4832   else
4833     case $cross_compiling:$ac_tool_warned in
4834 yes:)
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4836 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4837 ac_tool_warned=yes ;;
4838 esac
4839     CC=$ac_ct_CC
4840   fi
4841 else
4842   CC="$ac_cv_prog_CC"
4843 fi
4844
4845 fi
4846
4847
4848 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4849 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4850 as_fn_error $? "no acceptable C compiler found in \$PATH
4851 See \`config.log' for more details" "$LINENO" 5; }
4852
4853 # Provide some information about the compiler.
4854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4855 set X $ac_compile
4856 ac_compiler=$2
4857 for ac_option in --version -v -V -qversion -version; do
4858   { { ac_try="$ac_compiler $ac_option >&5"
4859 case "(($ac_try" in
4860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861   *) ac_try_echo=$ac_try;;
4862 esac
4863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4864 printf "%s\n" "$ac_try_echo"; } >&5
4865   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4866   ac_status=$?
4867   if test -s conftest.err; then
4868     sed '10a\
4869 ... rest of stderr output deleted ...
4870          10q' conftest.err >conftest.er1
4871     cat conftest.er1 >&5
4872   fi
4873   rm -f conftest.er1 conftest.err
4874   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4875   test $ac_status = 0; }
4876 done
4877
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h.  */
4880
4881 int main (void)
4882 {
4883
4884  ;
4885  return 0;
4886 }
4887 _ACEOF
4888 ac_clean_files_save=$ac_clean_files
4889 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4890 # Try to create an executable without -o first, disregard a.out.
4891 # It will help us diagnose broken compilers, and finding out an intuition
4892 # of exeext.
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4894 printf %s "checking whether the C compiler works... " >&6; }
4895 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4896
4897 # The possible output files:
4898 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4899
4900 ac_rmfiles=
4901 for ac_file in $ac_files
4902 do
4903   case $ac_file in
4904     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4905     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4906   esac
4907 done
4908 rm -f $ac_rmfiles
4909
4910 if { { ac_try="$ac_link_default"
4911 case "(($ac_try" in
4912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913   *) ac_try_echo=$ac_try;;
4914 esac
4915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4916 printf "%s\n" "$ac_try_echo"; } >&5
4917   (eval "$ac_link_default") 2>&5
4918   ac_status=$?
4919   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4920   test $ac_status = 0; }
4921 then :
4922   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4923 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4924 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4925 # so that the user can short-circuit this test for compilers unknown to
4926 # Autoconf.
4927 for ac_file in $ac_files ''
4928 do
4929   test -f "$ac_file" || continue
4930   case $ac_file in
4931     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4932         ;;
4933     [ab].out )
4934         # We found the default executable, but exeext='' is most
4935         # certainly right.
4936         break;;
4937     *.* )
4938         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4939         then :; else
4940            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4941         fi
4942         # We set ac_cv_exeext here because the later test for it is not
4943         # safe: cross compilers may not add the suffix if given an `-o'
4944         # argument, so we may need to know it at that point already.
4945         # Even if this section looks crufty: it has the advantage of
4946         # actually working.
4947         break;;
4948     * )
4949         break;;
4950   esac
4951 done
4952 test "$ac_cv_exeext" = no && ac_cv_exeext=
4953
4954 else $as_nop
4955   ac_file=''
4956 fi
4957 if test -z "$ac_file"
4958 then :
4959   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 printf "%s\n" "no" >&6; }
4961 printf "%s\n" "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4966 as_fn_error 77 "C compiler cannot create executables
4967 See \`config.log' for more details" "$LINENO" 5; }
4968 else $as_nop
4969   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4970 printf "%s\n" "yes" >&6; }
4971 fi
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4973 printf %s "checking for C compiler default output file name... " >&6; }
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4975 printf "%s\n" "$ac_file" >&6; }
4976 ac_exeext=$ac_cv_exeext
4977
4978 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4979 ac_clean_files=$ac_clean_files_save
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4981 printf %s "checking for suffix of executables... " >&6; }
4982 if { { ac_try="$ac_link"
4983 case "(($ac_try" in
4984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985   *) ac_try_echo=$ac_try;;
4986 esac
4987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4988 printf "%s\n" "$ac_try_echo"; } >&5
4989   (eval "$ac_link") 2>&5
4990   ac_status=$?
4991   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4992   test $ac_status = 0; }
4993 then :
4994   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4995 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4996 # work properly (i.e., refer to `conftest.exe'), while it won't with
4997 # `rm'.
4998 for ac_file in conftest.exe conftest conftest.*; do
4999   test -f "$ac_file" || continue
5000   case $ac_file in
5001     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5002     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5003           break;;
5004     * ) break;;
5005   esac
5006 done
5007 else $as_nop
5008   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5009 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5010 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5011 See \`config.log' for more details" "$LINENO" 5; }
5012 fi
5013 rm -f conftest conftest$ac_cv_exeext
5014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5015 printf "%s\n" "$ac_cv_exeext" >&6; }
5016
5017 rm -f conftest.$ac_ext
5018 EXEEXT=$ac_cv_exeext
5019 ac_exeext=$EXEEXT
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h.  */
5022 #include <stdio.h>
5023 int main (void)
5024 {
5025 FILE *f = fopen ("conftest.out", "w");
5026  return ferror (f) || fclose (f) != 0;
5027
5028  ;
5029  return 0;
5030 }
5031 _ACEOF
5032 ac_clean_files="$ac_clean_files conftest.out"
5033 # Check that the compiler produces executables we can run.  If not, either
5034 # the compiler is broken, or we cross compile.
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5036 printf %s "checking whether we are cross compiling... " >&6; }
5037 if test "$cross_compiling" != yes; then
5038   { { ac_try="$ac_link"
5039 case "(($ac_try" in
5040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041   *) ac_try_echo=$ac_try;;
5042 esac
5043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5044 printf "%s\n" "$ac_try_echo"; } >&5
5045   (eval "$ac_link") 2>&5
5046   ac_status=$?
5047   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048   test $ac_status = 0; }
5049   if { ac_try='./conftest$ac_cv_exeext'
5050   { { case "(($ac_try" in
5051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052   *) ac_try_echo=$ac_try;;
5053 esac
5054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5055 printf "%s\n" "$ac_try_echo"; } >&5
5056   (eval "$ac_try") 2>&5
5057   ac_status=$?
5058   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5059   test $ac_status = 0; }; }; then
5060     cross_compiling=no
5061   else
5062     if test "$cross_compiling" = maybe; then
5063         cross_compiling=yes
5064     else
5065         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5066 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5067 as_fn_error 77 "cannot run C compiled programs.
5068 If you meant to cross compile, use \`--host'.
5069 See \`config.log' for more details" "$LINENO" 5; }
5070     fi
5071   fi
5072 fi
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5074 printf "%s\n" "$cross_compiling" >&6; }
5075
5076 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5077 ac_clean_files=$ac_clean_files_save
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5079 printf %s "checking for suffix of object files... " >&6; }
5080 if test ${ac_cv_objext+y}
5081 then :
5082   printf %s "(cached) " >&6
5083 else $as_nop
5084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h.  */
5086
5087 int main (void)
5088 {
5089
5090  ;
5091  return 0;
5092 }
5093 _ACEOF
5094 rm -f conftest.o conftest.obj
5095 if { { ac_try="$ac_compile"
5096 case "(($ac_try" in
5097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098   *) ac_try_echo=$ac_try;;
5099 esac
5100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5101 printf "%s\n" "$ac_try_echo"; } >&5
5102   (eval "$ac_compile") 2>&5
5103   ac_status=$?
5104   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105   test $ac_status = 0; }
5106 then :
5107   for ac_file in conftest.o conftest.obj conftest.*; do
5108   test -f "$ac_file" || continue;
5109   case $ac_file in
5110     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5111     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5112        break;;
5113   esac
5114 done
5115 else $as_nop
5116   printf "%s\n" "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5120 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5121 as_fn_error $? "cannot compute suffix of object files: cannot compile
5122 See \`config.log' for more details" "$LINENO" 5; }
5123 fi
5124 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5125 fi
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5127 printf "%s\n" "$ac_cv_objext" >&6; }
5128 OBJEXT=$ac_cv_objext
5129 ac_objext=$OBJEXT
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5131 printf %s "checking whether the compiler supports GNU C... " >&6; }
5132 if test ${ac_cv_c_compiler_gnu+y}
5133 then :
5134   printf %s "(cached) " >&6
5135 else $as_nop
5136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h.  */
5138
5139 int main (void)
5140 {
5141 #ifndef __GNUC__
5142        choke me
5143 #endif
5144
5145  ;
5146  return 0;
5147 }
5148 _ACEOF
5149 if ac_fn_c_try_compile "$LINENO"
5150 then :
5151   ac_compiler_gnu=yes
5152 else $as_nop
5153   ac_compiler_gnu=no
5154 fi
5155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5156 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5157
5158 fi
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5160 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5162
5163 if test $ac_compiler_gnu = yes; then
5164   GCC=yes
5165 else
5166   GCC=
5167 fi
5168 ac_test_CFLAGS=${CFLAGS+y}
5169 ac_save_CFLAGS=$CFLAGS
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5171 printf %s "checking whether $CC accepts -g... " >&6; }
5172 if test ${ac_cv_prog_cc_g+y}
5173 then :
5174   printf %s "(cached) " >&6
5175 else $as_nop
5176   ac_save_c_werror_flag=$ac_c_werror_flag
5177    ac_c_werror_flag=yes
5178    ac_cv_prog_cc_g=no
5179    CFLAGS="-g"
5180    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h.  */
5182
5183 int main (void)
5184 {
5185
5186  ;
5187  return 0;
5188 }
5189 _ACEOF
5190 if ac_fn_c_try_compile "$LINENO"
5191 then :
5192   ac_cv_prog_cc_g=yes
5193 else $as_nop
5194   CFLAGS=""
5195       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h.  */
5197
5198 int main (void)
5199 {
5200
5201  ;
5202  return 0;
5203 }
5204 _ACEOF
5205 if ac_fn_c_try_compile "$LINENO"
5206 then :
5207
5208 else $as_nop
5209   ac_c_werror_flag=$ac_save_c_werror_flag
5210          CFLAGS="-g"
5211          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h.  */
5213
5214 int main (void)
5215 {
5216
5217  ;
5218  return 0;
5219 }
5220 _ACEOF
5221 if ac_fn_c_try_compile "$LINENO"
5222 then :
5223   ac_cv_prog_cc_g=yes
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5226 fi
5227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5228 fi
5229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5230    ac_c_werror_flag=$ac_save_c_werror_flag
5231 fi
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5233 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5234 if test $ac_test_CFLAGS; then
5235   CFLAGS=$ac_save_CFLAGS
5236 elif test $ac_cv_prog_cc_g = yes; then
5237   if test "$GCC" = yes; then
5238     CFLAGS="-g -O2"
5239   else
5240     CFLAGS="-g"
5241   fi
5242 else
5243   if test "$GCC" = yes; then
5244     CFLAGS="-O2"
5245   else
5246     CFLAGS=
5247   fi
5248 fi
5249 ac_prog_cc_stdc=no
5250 if test x$ac_prog_cc_stdc = xno
5251 then :
5252   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5253 printf %s "checking for $CC option to enable C11 features... " >&6; }
5254 if test ${ac_cv_prog_cc_c11+y}
5255 then :
5256   printf %s "(cached) " >&6
5257 else $as_nop
5258   ac_cv_prog_cc_c11=no
5259 ac_save_CC=$CC
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h.  */
5262 $ac_c_conftest_c11_program
5263 _ACEOF
5264 for ac_arg in '' -std=gnu11
5265 do
5266   CC="$ac_save_CC $ac_arg"
5267   if ac_fn_c_try_compile "$LINENO"
5268 then :
5269   ac_cv_prog_cc_c11=$ac_arg
5270 fi
5271 rm -f core conftest.err conftest.$ac_objext conftest.beam
5272   test "x$ac_cv_prog_cc_c11" != "xno" && break
5273 done
5274 rm -f conftest.$ac_ext
5275 CC=$ac_save_CC
5276 fi
5277
5278 if test "x$ac_cv_prog_cc_c11" = xno
5279 then :
5280   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5281 printf "%s\n" "unsupported" >&6; }
5282 else $as_nop
5283   if test "x$ac_cv_prog_cc_c11" = x
5284 then :
5285   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5286 printf "%s\n" "none needed" >&6; }
5287 else $as_nop
5288   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5289 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5290      CC="$CC $ac_cv_prog_cc_c11"
5291 fi
5292   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5293   ac_prog_cc_stdc=c11
5294 fi
5295 fi
5296 if test x$ac_prog_cc_stdc = xno
5297 then :
5298   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5299 printf %s "checking for $CC option to enable C99 features... " >&6; }
5300 if test ${ac_cv_prog_cc_c99+y}
5301 then :
5302   printf %s "(cached) " >&6
5303 else $as_nop
5304   ac_cv_prog_cc_c99=no
5305 ac_save_CC=$CC
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h.  */
5308 $ac_c_conftest_c99_program
5309 _ACEOF
5310 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5311 do
5312   CC="$ac_save_CC $ac_arg"
5313   if ac_fn_c_try_compile "$LINENO"
5314 then :
5315   ac_cv_prog_cc_c99=$ac_arg
5316 fi
5317 rm -f core conftest.err conftest.$ac_objext conftest.beam
5318   test "x$ac_cv_prog_cc_c99" != "xno" && break
5319 done
5320 rm -f conftest.$ac_ext
5321 CC=$ac_save_CC
5322 fi
5323
5324 if test "x$ac_cv_prog_cc_c99" = xno
5325 then :
5326   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5327 printf "%s\n" "unsupported" >&6; }
5328 else $as_nop
5329   if test "x$ac_cv_prog_cc_c99" = x
5330 then :
5331   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5332 printf "%s\n" "none needed" >&6; }
5333 else $as_nop
5334   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5335 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5336      CC="$CC $ac_cv_prog_cc_c99"
5337 fi
5338   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5339   ac_prog_cc_stdc=c99
5340 fi
5341 fi
5342 if test x$ac_prog_cc_stdc = xno
5343 then :
5344   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5345 printf %s "checking for $CC option to enable C89 features... " >&6; }
5346 if test ${ac_cv_prog_cc_c89+y}
5347 then :
5348   printf %s "(cached) " >&6
5349 else $as_nop
5350   ac_cv_prog_cc_c89=no
5351 ac_save_CC=$CC
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h.  */
5354 $ac_c_conftest_c89_program
5355 _ACEOF
5356 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5357 do
5358   CC="$ac_save_CC $ac_arg"
5359   if ac_fn_c_try_compile "$LINENO"
5360 then :
5361   ac_cv_prog_cc_c89=$ac_arg
5362 fi
5363 rm -f core conftest.err conftest.$ac_objext conftest.beam
5364   test "x$ac_cv_prog_cc_c89" != "xno" && break
5365 done
5366 rm -f conftest.$ac_ext
5367 CC=$ac_save_CC
5368 fi
5369
5370 if test "x$ac_cv_prog_cc_c89" = xno
5371 then :
5372   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5373 printf "%s\n" "unsupported" >&6; }
5374 else $as_nop
5375   if test "x$ac_cv_prog_cc_c89" = x
5376 then :
5377   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5378 printf "%s\n" "none needed" >&6; }
5379 else $as_nop
5380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5381 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5382      CC="$CC $ac_cv_prog_cc_c89"
5383 fi
5384   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5385   ac_prog_cc_stdc=c89
5386 fi
5387 fi
5388
5389 ac_ext=c
5390 ac_cpp='$CPP $CPPFLAGS'
5391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5394
5395
5396   ac_ext=c
5397 ac_cpp='$CPP $CPPFLAGS'
5398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5402 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5403 if test ${am_cv_prog_cc_c_o+y}
5404 then :
5405   printf %s "(cached) " >&6
5406 else $as_nop
5407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h.  */
5409
5410 int main (void)
5411 {
5412
5413  ;
5414  return 0;
5415 }
5416 _ACEOF
5417   # Make sure it works both with $CC and with simple cc.
5418   # Following AC_PROG_CC_C_O, we do the test twice because some
5419   # compilers refuse to overwrite an existing .o file with -o,
5420   # though they will create one.
5421   am_cv_prog_cc_c_o=yes
5422   for am_i in 1 2; do
5423     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5424    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5425    ac_status=$?
5426    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427    (exit $ac_status); } \
5428          && test -f conftest2.$ac_objext; then
5429       : OK
5430     else
5431       am_cv_prog_cc_c_o=no
5432       break
5433     fi
5434   done
5435   rm -f core conftest*
5436   unset am_i
5437 fi
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5439 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5440 if test "$am_cv_prog_cc_c_o" != yes; then
5441    # Losing compiler, so override with the script.
5442    # FIXME: It is wrong to rewrite CC.
5443    # But if we don't then we get into trouble of one sort or another.
5444    # A longer-term fix would be to have automake use am__CC in this case,
5445    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5446    CC="$am_aux_dir/compile $CC"
5447 fi
5448 ac_ext=c
5449 ac_cpp='$CPP $CPPFLAGS'
5450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5453
5454
5455
5456 ac_ext=c
5457 ac_cpp='$CPP $CPPFLAGS'
5458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5462 printf %s "checking how to run the C preprocessor... " >&6; }
5463 # On Suns, sometimes $CPP names a directory.
5464 if test -n "$CPP" && test -d "$CPP"; then
5465   CPP=
5466 fi
5467 if test -z "$CPP"; then
5468   if test ${ac_cv_prog_CPP+y}
5469 then :
5470   printf %s "(cached) " >&6
5471 else $as_nop
5472       # Double quotes because $CC needs to be expanded
5473     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5474     do
5475       ac_preproc_ok=false
5476 for ac_c_preproc_warn_flag in '' yes
5477 do
5478   # Use a header file that comes with gcc, so configuring glibc
5479   # with a fresh cross-compiler works.
5480   # On the NeXT, cc -E runs the code through the compiler's parser,
5481   # not just through cpp. "Syntax error" is here to catch this case.
5482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h.  */
5484 #include <limits.h>
5485                      Syntax error
5486 _ACEOF
5487 if ac_fn_c_try_cpp "$LINENO"
5488 then :
5489
5490 else $as_nop
5491   # Broken: fails on valid input.
5492 continue
5493 fi
5494 rm -f conftest.err conftest.i conftest.$ac_ext
5495
5496   # OK, works on sane cases.  Now check whether nonexistent headers
5497   # can be detected and how.
5498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h.  */
5500 #include <ac_nonexistent.h>
5501 _ACEOF
5502 if ac_fn_c_try_cpp "$LINENO"
5503 then :
5504   # Broken: success on invalid input.
5505 continue
5506 else $as_nop
5507   # Passes both tests.
5508 ac_preproc_ok=:
5509 break
5510 fi
5511 rm -f conftest.err conftest.i conftest.$ac_ext
5512
5513 done
5514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5515 rm -f conftest.i conftest.err conftest.$ac_ext
5516 if $ac_preproc_ok
5517 then :
5518   break
5519 fi
5520
5521     done
5522     ac_cv_prog_CPP=$CPP
5523
5524 fi
5525   CPP=$ac_cv_prog_CPP
5526 else
5527   ac_cv_prog_CPP=$CPP
5528 fi
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5530 printf "%s\n" "$CPP" >&6; }
5531 ac_preproc_ok=false
5532 for ac_c_preproc_warn_flag in '' yes
5533 do
5534   # Use a header file that comes with gcc, so configuring glibc
5535   # with a fresh cross-compiler works.
5536   # On the NeXT, cc -E runs the code through the compiler's parser,
5537   # not just through cpp. "Syntax error" is here to catch this case.
5538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h.  */
5540 #include <limits.h>
5541                      Syntax error
5542 _ACEOF
5543 if ac_fn_c_try_cpp "$LINENO"
5544 then :
5545
5546 else $as_nop
5547   # Broken: fails on valid input.
5548 continue
5549 fi
5550 rm -f conftest.err conftest.i conftest.$ac_ext
5551
5552   # OK, works on sane cases.  Now check whether nonexistent headers
5553   # can be detected and how.
5554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h.  */
5556 #include <ac_nonexistent.h>
5557 _ACEOF
5558 if ac_fn_c_try_cpp "$LINENO"
5559 then :
5560   # Broken: success on invalid input.
5561 continue
5562 else $as_nop
5563   # Passes both tests.
5564 ac_preproc_ok=:
5565 break
5566 fi
5567 rm -f conftest.err conftest.i conftest.$ac_ext
5568
5569 done
5570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5571 rm -f conftest.i conftest.err conftest.$ac_ext
5572 if $ac_preproc_ok
5573 then :
5574
5575 else $as_nop
5576   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5577 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5578 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5579 See \`config.log' for more details" "$LINENO" 5; }
5580 fi
5581
5582 ac_ext=c
5583 ac_cpp='$CPP $CPPFLAGS'
5584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5587
5588
5589   IFS=$xc_prog_cc_prev_IFS
5590   LIBS=$xc_prog_cc_prev_LIBS
5591   CFLAGS=$xc_prog_cc_prev_CFLAGS
5592   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5593   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5594
5595
5596
5597
5598
5599
5600 ac_header= ac_cache=
5601 for ac_item in $ac_header_c_list
5602 do
5603   if test $ac_cache; then
5604     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5605     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5606       printf "%s\n" "#define $ac_item 1" >> confdefs.h
5607     fi
5608     ac_header= ac_cache=
5609   elif test $ac_header; then
5610     ac_cache=$ac_item
5611   else
5612     ac_header=$ac_item
5613   fi
5614 done
5615
5616
5617
5618
5619
5620
5621
5622
5623 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5624 then :
5625
5626 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5627
5628 fi
5629
5630          for ac_header in stdatomic.h
5631 do :
5632   ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
5633 if test "x$ac_cv_header_stdatomic_h" = xyes
5634 then :
5635   printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
5636
5637     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Atomic is available" >&5
5638 printf %s "checking if _Atomic is available... " >&6; }
5639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h.  */
5641
5642
5643         $curl_includes_unistd
5644
5645 int main (void)
5646 {
5647
5648         _Atomic int i = 0;
5649         i = 4;  // Force an atomic-write operation.
5650
5651  ;
5652  return 0;
5653 }
5654
5655 _ACEOF
5656 if ac_fn_c_try_link "$LINENO"
5657 then :
5658
5659       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5660 printf "%s\n" "yes" >&6; }
5661
5662 printf "%s\n" "#define HAVE_ATOMIC 1" >>confdefs.h
5663
5664       tst_atomic="yes"
5665
5666 else $as_nop
5667
5668       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 printf "%s\n" "no" >&6; }
5670       tst_atomic="no"
5671
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5674     conftest$ac_exeext conftest.$ac_ext
5675
5676 fi
5677
5678 done
5679
5680
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5682 printf %s "checking for a sed that does not truncate output... " >&6; }
5683 if test ${ac_cv_path_SED+y}
5684 then :
5685   printf %s "(cached) " >&6
5686 else $as_nop
5687             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5688      for ac_i in 1 2 3 4 5 6 7; do
5689        ac_script="$ac_script$as_nl$ac_script"
5690      done
5691      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5692      { ac_script=; unset ac_script;}
5693      if test -z "$SED"; then
5694   ac_path_SED_found=false
5695   # Loop through the user's path and test for each of PROGNAME-LIST
5696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699   IFS=$as_save_IFS
5700   case $as_dir in #(((
5701     '') as_dir=./ ;;
5702     */) ;;
5703     *) as_dir=$as_dir/ ;;
5704   esac
5705     for ac_prog in sed gsed
5706    do
5707     for ac_exec_ext in '' $ac_executable_extensions; do
5708       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5709       as_fn_executable_p "$ac_path_SED" || continue
5710 # Check for GNU ac_path_SED and select it if it is found.
5711   # Check for GNU $ac_path_SED
5712 case `"$ac_path_SED" --version 2>&1` in
5713 *GNU*)
5714   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5715 *)
5716   ac_count=0
5717   printf %s 0123456789 >"conftest.in"
5718   while :
5719   do
5720     cat "conftest.in" "conftest.in" >"conftest.tmp"
5721     mv "conftest.tmp" "conftest.in"
5722     cp "conftest.in" "conftest.nl"
5723     printf "%s\n" '' >> "conftest.nl"
5724     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5725     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5726     as_fn_arith $ac_count + 1 && ac_count=$as_val
5727     if test $ac_count -gt ${ac_path_SED_max-0}; then
5728       # Best one so far, save it but keep looking for a better one
5729       ac_cv_path_SED="$ac_path_SED"
5730       ac_path_SED_max=$ac_count
5731     fi
5732     # 10*(2^10) chars as input seems more than enough
5733     test $ac_count -gt 10 && break
5734   done
5735   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5736 esac
5737
5738       $ac_path_SED_found && break 3
5739     done
5740   done
5741   done
5742 IFS=$as_save_IFS
5743   if test -z "$ac_cv_path_SED"; then
5744     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5745   fi
5746 else
5747   ac_cv_path_SED=$SED
5748 fi
5749
5750 fi
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5752 printf "%s\n" "$ac_cv_path_SED" >&6; }
5753  SED="$ac_cv_path_SED"
5754   rm -f conftest.sed
5755
5756
5757
5758
5759   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5760 printf %s "checking for code coverage support... " >&6; }
5761   coverage="no"
5762   curl_coverage_msg="disabled"
5763
5764     # Check whether --enable-code-coverage was given.
5765 if test ${enable_code_coverage+y}
5766 then :
5767   enableval=$enable_code_coverage; coverage="$enableval"
5768 fi
5769
5770
5771     if  test "$GCC" != "yes"
5772 then :
5773   coverage="no"
5774 fi
5775   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5776 printf "%s\n" "$coverage" >&6; }
5777
5778   if test "x$coverage" = "xyes"; then
5779     curl_coverage_msg="enabled"
5780
5781     if test -n "$ac_tool_prefix"; then
5782   # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}gcov; ac_word=$2
5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 printf %s "checking for $ac_word... " >&6; }
5786 if test ${ac_cv_prog_GCOV+y}
5787 then :
5788   printf %s "(cached) " >&6
5789 else $as_nop
5790   if test -n "$GCOV"; then
5791   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796   IFS=$as_save_IFS
5797   case $as_dir in #(((
5798     '') as_dir=./ ;;
5799     */) ;;
5800     *) as_dir=$as_dir/ ;;
5801   esac
5802     for ac_exec_ext in '' $ac_executable_extensions; do
5803   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5804     ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5805     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5806     break 2
5807   fi
5808 done
5809   done
5810 IFS=$as_save_IFS
5811
5812 fi
5813 fi
5814 GCOV=$ac_cv_prog_GCOV
5815 if test -n "$GCOV"; then
5816   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5817 printf "%s\n" "$GCOV" >&6; }
5818 else
5819   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 printf "%s\n" "no" >&6; }
5821 fi
5822
5823
5824 fi
5825 if test -z "$ac_cv_prog_GCOV"; then
5826   ac_ct_GCOV=$GCOV
5827   # Extract the first word of "gcov", so it can be a program name with args.
5828 set dummy gcov; ac_word=$2
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 printf %s "checking for $ac_word... " >&6; }
5831 if test ${ac_cv_prog_ac_ct_GCOV+y}
5832 then :
5833   printf %s "(cached) " >&6
5834 else $as_nop
5835   if test -n "$ac_ct_GCOV"; then
5836   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5840 do
5841   IFS=$as_save_IFS
5842   case $as_dir in #(((
5843     '') as_dir=./ ;;
5844     */) ;;
5845     *) as_dir=$as_dir/ ;;
5846   esac
5847     for ac_exec_ext in '' $ac_executable_extensions; do
5848   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5849     ac_cv_prog_ac_ct_GCOV="gcov"
5850     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5851     break 2
5852   fi
5853 done
5854   done
5855 IFS=$as_save_IFS
5856
5857 fi
5858 fi
5859 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5860 if test -n "$ac_ct_GCOV"; then
5861   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5862 printf "%s\n" "$ac_ct_GCOV" >&6; }
5863 else
5864   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 printf "%s\n" "no" >&6; }
5866 fi
5867
5868   if test "x$ac_ct_GCOV" = x; then
5869     GCOV="gcov"
5870   else
5871     case $cross_compiling:$ac_tool_warned in
5872 yes:)
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875 ac_tool_warned=yes ;;
5876 esac
5877     GCOV=$ac_ct_GCOV
5878   fi
5879 else
5880   GCOV="$ac_cv_prog_GCOV"
5881 fi
5882
5883     if test -z "$GCOV"; then
5884       as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5885     fi
5886     # Extract the first word of "lcov", so it can be a program name with args.
5887 set dummy lcov; ac_word=$2
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 printf %s "checking for $ac_word... " >&6; }
5890 if test ${ac_cv_prog_LCOV+y}
5891 then :
5892   printf %s "(cached) " >&6
5893 else $as_nop
5894   if test -n "$LCOV"; then
5895   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900   IFS=$as_save_IFS
5901   case $as_dir in #(((
5902     '') as_dir=./ ;;
5903     */) ;;
5904     *) as_dir=$as_dir/ ;;
5905   esac
5906     for ac_exec_ext in '' $ac_executable_extensions; do
5907   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5908     ac_cv_prog_LCOV="lcov"
5909     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913   done
5914 IFS=$as_save_IFS
5915
5916 fi
5917 fi
5918 LCOV=$ac_cv_prog_LCOV
5919 if test -n "$LCOV"; then
5920   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5921 printf "%s\n" "$LCOV" >&6; }
5922 else
5923   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 printf "%s\n" "no" >&6; }
5925 fi
5926
5927
5928     if test -z "$LCOV"; then
5929       as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5930     fi
5931
5932     CPPFLAGS="$CPPFLAGS -DNDEBUG"
5933     CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5934     LIBS="$LIBS -lgcov"
5935   fi
5936
5937
5938 am__api_version='1.16'
5939
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5941 printf %s "checking whether build environment is sane... " >&6; }
5942 # Reject unsafe characters in $srcdir or the absolute working directory
5943 # name.  Accept space and tab only in the latter.
5944 am_lf='
5945 '
5946 case `pwd` in
5947   *[\\\"\#\$\&\'\`$am_lf]*)
5948     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5949 esac
5950 case $srcdir in
5951   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
5952     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5953 esac
5954
5955 # Do 'set' in a subshell so we don't clobber the current shell's
5956 # arguments.  Must try -L first in case configure is actually a
5957 # symlink; some systems play weird games with the mod time of symlinks
5958 # (eg FreeBSD returns the mod time of the symlink's containing
5959 # directory).
5960 if (
5961    am_has_slept=no
5962    for am_try in 1 2; do
5963      echo "timestamp, slept: $am_has_slept" > conftest.file
5964      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5965      if test "$*" = "X"; then
5966         # -L didn't work.
5967         set X `ls -t "$srcdir/configure" conftest.file`
5968      fi
5969      if test "$*" != "X $srcdir/configure conftest.file" \
5970         && test "$*" != "X conftest.file $srcdir/configure"; then
5971
5972         # If neither matched, then we have a broken ls.  This can happen
5973         # if, for instance, CONFIG_SHELL is bash and it inherits a
5974         # broken ls alias from the environment.  This has actually
5975         # happened.  Such a system could not be considered "sane".
5976         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5977   alias in your environment" "$LINENO" 5
5978      fi
5979      if test "$2" = conftest.file || test $am_try -eq 2; then
5980        break
5981      fi
5982      # Just in case.
5983      sleep 1
5984      am_has_slept=yes
5985    done
5986    test "$2" = conftest.file
5987    )
5988 then
5989    # Ok.
5990    :
5991 else
5992    as_fn_error $? "newly created file is older than distributed files!
5993 Check your system clock" "$LINENO" 5
5994 fi
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5996 printf "%s\n" "yes" >&6; }
5997 # If we didn't sleep, we still need to ensure time stamps of config.status and
5998 # generated files are strictly newer.
5999 am_sleep_pid=
6000 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6001   ( sleep 1 ) &
6002   am_sleep_pid=$!
6003 fi
6004
6005 rm -f conftest.file
6006
6007 test "$program_prefix" != NONE &&
6008   program_transform_name="s&^&$program_prefix&;$program_transform_name"
6009 # Use a double $ so make ignores it.
6010 test "$program_suffix" != NONE &&
6011   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6012 # Double any \ or $.
6013 # By default was `s,x,x', remove it if useless.
6014 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6015 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
6016
6017
6018   if test x"${MISSING+set}" != xset; then
6019   MISSING="\${SHELL} '$am_aux_dir/missing'"
6020 fi
6021 # Use eval to expand $SHELL
6022 if eval "$MISSING --is-lightweight"; then
6023   am_missing_run="$MISSING "
6024 else
6025   am_missing_run=
6026   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6027 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6028 fi
6029
6030 if test x"${install_sh+set}" != xset; then
6031   case $am_aux_dir in
6032   *\ * | *\     *)
6033     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6034   *)
6035     install_sh="\${SHELL} $am_aux_dir/install-sh"
6036   esac
6037 fi
6038
6039 # Installed binaries are usually stripped using 'strip' when the user
6040 # run "make install-strip".  However 'strip' might not be the right
6041 # tool to use in cross-compilation environments, therefore Automake
6042 # will honor the 'STRIP' environment variable to overrule this program.
6043 if test "$cross_compiling" != no; then
6044   if test -n "$ac_tool_prefix"; then
6045   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}strip; ac_word=$2
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 printf %s "checking for $ac_word... " >&6; }
6049 if test ${ac_cv_prog_STRIP+y}
6050 then :
6051   printf %s "(cached) " >&6
6052 else $as_nop
6053   if test -n "$STRIP"; then
6054   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   case $as_dir in #(((
6061     '') as_dir=./ ;;
6062     */) ;;
6063     *) as_dir=$as_dir/ ;;
6064   esac
6065     for ac_exec_ext in '' $ac_executable_extensions; do
6066   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6067     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6068     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6069     break 2
6070   fi
6071 done
6072   done
6073 IFS=$as_save_IFS
6074
6075 fi
6076 fi
6077 STRIP=$ac_cv_prog_STRIP
6078 if test -n "$STRIP"; then
6079   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6080 printf "%s\n" "$STRIP" >&6; }
6081 else
6082   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 printf "%s\n" "no" >&6; }
6084 fi
6085
6086
6087 fi
6088 if test -z "$ac_cv_prog_STRIP"; then
6089   ac_ct_STRIP=$STRIP
6090   # Extract the first word of "strip", so it can be a program name with args.
6091 set dummy strip; ac_word=$2
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 printf %s "checking for $ac_word... " >&6; }
6094 if test ${ac_cv_prog_ac_ct_STRIP+y}
6095 then :
6096   printf %s "(cached) " >&6
6097 else $as_nop
6098   if test -n "$ac_ct_STRIP"; then
6099   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6103 do
6104   IFS=$as_save_IFS
6105   case $as_dir in #(((
6106     '') as_dir=./ ;;
6107     */) ;;
6108     *) as_dir=$as_dir/ ;;
6109   esac
6110     for ac_exec_ext in '' $ac_executable_extensions; do
6111   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6112     ac_cv_prog_ac_ct_STRIP="strip"
6113     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6114     break 2
6115   fi
6116 done
6117   done
6118 IFS=$as_save_IFS
6119
6120 fi
6121 fi
6122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6123 if test -n "$ac_ct_STRIP"; then
6124   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6125 printf "%s\n" "$ac_ct_STRIP" >&6; }
6126 else
6127   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 printf "%s\n" "no" >&6; }
6129 fi
6130
6131   if test "x$ac_ct_STRIP" = x; then
6132     STRIP=":"
6133   else
6134     case $cross_compiling:$ac_tool_warned in
6135 yes:)
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6137 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138 ac_tool_warned=yes ;;
6139 esac
6140     STRIP=$ac_ct_STRIP
6141   fi
6142 else
6143   STRIP="$ac_cv_prog_STRIP"
6144 fi
6145
6146 fi
6147 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6148
6149
6150   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6151 printf %s "checking for a race-free mkdir -p... " >&6; }
6152 if test -z "$MKDIR_P"; then
6153   if test ${ac_cv_path_mkdir+y}
6154 then :
6155   printf %s "(cached) " >&6
6156 else $as_nop
6157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6159 do
6160   IFS=$as_save_IFS
6161   case $as_dir in #(((
6162     '') as_dir=./ ;;
6163     */) ;;
6164     *) as_dir=$as_dir/ ;;
6165   esac
6166     for ac_prog in mkdir gmkdir; do
6167          for ac_exec_ext in '' $ac_executable_extensions; do
6168            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6169            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6170              'mkdir ('*'coreutils) '* | \
6171              'BusyBox '* | \
6172              'mkdir (fileutils) '4.1*)
6173                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6174                break 3;;
6175            esac
6176          done
6177        done
6178   done
6179 IFS=$as_save_IFS
6180
6181 fi
6182
6183   test -d ./--version && rmdir ./--version
6184   if test ${ac_cv_path_mkdir+y}; then
6185     MKDIR_P="$ac_cv_path_mkdir -p"
6186   else
6187     # As a last resort, use the slow shell script.  Don't cache a
6188     # value for MKDIR_P within a source directory, because that will
6189     # break other packages using the cache if that directory is
6190     # removed, or if the value is a relative name.
6191     MKDIR_P="$ac_install_sh -d"
6192   fi
6193 fi
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6195 printf "%s\n" "$MKDIR_P" >&6; }
6196
6197 for ac_prog in gawk mawk nawk awk
6198 do
6199   # Extract the first word of "$ac_prog", so it can be a program name with args.
6200 set dummy $ac_prog; ac_word=$2
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 printf %s "checking for $ac_word... " >&6; }
6203 if test ${ac_cv_prog_AWK+y}
6204 then :
6205   printf %s "(cached) " >&6
6206 else $as_nop
6207   if test -n "$AWK"; then
6208   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213   IFS=$as_save_IFS
6214   case $as_dir in #(((
6215     '') as_dir=./ ;;
6216     */) ;;
6217     *) as_dir=$as_dir/ ;;
6218   esac
6219     for ac_exec_ext in '' $ac_executable_extensions; do
6220   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6221     ac_cv_prog_AWK="$ac_prog"
6222     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6223     break 2
6224   fi
6225 done
6226   done
6227 IFS=$as_save_IFS
6228
6229 fi
6230 fi
6231 AWK=$ac_cv_prog_AWK
6232 if test -n "$AWK"; then
6233   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6234 printf "%s\n" "$AWK" >&6; }
6235 else
6236   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 printf "%s\n" "no" >&6; }
6238 fi
6239
6240
6241   test -n "$AWK" && break
6242 done
6243
6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6245 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6246 set x ${MAKE-make}
6247 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6248 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6249 then :
6250   printf %s "(cached) " >&6
6251 else $as_nop
6252   cat >conftest.make <<\_ACEOF
6253 SHELL = /bin/sh
6254 all:
6255         @echo '@@@%%%=$(MAKE)=@@@%%%'
6256 _ACEOF
6257 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6259   *@@@%%%=?*=@@@%%%*)
6260     eval ac_cv_prog_make_${ac_make}_set=yes;;
6261   *)
6262     eval ac_cv_prog_make_${ac_make}_set=no;;
6263 esac
6264 rm -f conftest.make
6265 fi
6266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6267   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6268 printf "%s\n" "yes" >&6; }
6269   SET_MAKE=
6270 else
6271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 printf "%s\n" "no" >&6; }
6273   SET_MAKE="MAKE=${MAKE-make}"
6274 fi
6275
6276 rm -rf .tst 2>/dev/null
6277 mkdir .tst 2>/dev/null
6278 if test -d .tst; then
6279   am__leading_dot=.
6280 else
6281   am__leading_dot=_
6282 fi
6283 rmdir .tst 2>/dev/null
6284
6285 DEPDIR="${am__leading_dot}deps"
6286
6287 ac_config_commands="$ac_config_commands depfiles"
6288
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6290 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6291 cat > confinc.mk << 'END'
6292 am__doit:
6293         @echo this is the am__doit target >confinc.out
6294 .PHONY: am__doit
6295 END
6296 am__include="#"
6297 am__quote=
6298 # BSD make does it like this.
6299 echo '.include "confinc.mk" # ignored' > confmf.BSD
6300 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
6301 echo 'include confinc.mk # ignored' > confmf.GNU
6302 _am_result=no
6303 for s in GNU BSD; do
6304   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6305    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6306    ac_status=$?
6307    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308    (exit $ac_status); }
6309   case $?:`cat confinc.out 2>/dev/null` in #(
6310   '0:this is the am__doit target') :
6311     case $s in #(
6312   BSD) :
6313     am__include='.include' am__quote='"' ;; #(
6314   *) :
6315     am__include='include' am__quote='' ;;
6316 esac ;; #(
6317   *) :
6318      ;;
6319 esac
6320   if test "$am__include" != "#"; then
6321     _am_result="yes ($s style)"
6322     break
6323   fi
6324 done
6325 rm -f confinc.* confmf.*
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6327 printf "%s\n" "${_am_result}" >&6; }
6328
6329 # Check whether --enable-dependency-tracking was given.
6330 if test ${enable_dependency_tracking+y}
6331 then :
6332   enableval=$enable_dependency_tracking;
6333 fi
6334
6335 if test "x$enable_dependency_tracking" != xno; then
6336   am_depcomp="$ac_aux_dir/depcomp"
6337   AMDEPBACKSLASH='\'
6338   am__nodep='_no'
6339 fi
6340  if test "x$enable_dependency_tracking" != xno; then
6341   AMDEP_TRUE=
6342   AMDEP_FALSE='#'
6343 else
6344   AMDEP_TRUE='#'
6345   AMDEP_FALSE=
6346 fi
6347
6348
6349 ## --------------------------------------- ##
6350 ##  Start of automake initialization code  ##
6351 ## --------------------------------------- ##
6352
6353 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6354   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6355   # is not polluted with repeated "-I."
6356   am__isrc=' -I$(srcdir)'
6357   # test to see if srcdir already configured
6358   if test -f $srcdir/config.status; then
6359     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6360   fi
6361 fi
6362
6363 # test whether we have cygpath
6364 if test -z "$CYGPATH_W"; then
6365   if (cygpath --version) >/dev/null 2>/dev/null; then
6366     CYGPATH_W='cygpath -w'
6367   else
6368     CYGPATH_W=echo
6369   fi
6370 fi
6371
6372
6373 # Define the identity of the package.
6374  PACKAGE='curl'
6375  VERSION='-'
6376
6377
6378 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
6379
6380
6381 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
6382
6383 # Some tools Automake needs.
6384
6385 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6386
6387
6388 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6389
6390
6391 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6392
6393
6394 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6395
6396
6397 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6398
6399 # For better backward compatibility.  To be removed once Automake 1.9.x
6400 # dies out for good.  For more background, see:
6401 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6402 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6403 mkdir_p='$(MKDIR_P)'
6404
6405 # We need awk for the "check" target (and possibly the TAP driver).  The
6406 # system "awk" is bad on some platforms.
6407 # Always define AMTAR for backward compatibility.  Yes, it's still used
6408 # in the wild :-(  We should find a proper way to deprecate it ...
6409 AMTAR='$${TAR-tar}'
6410
6411
6412 # We'll loop over all known methods to create a tar archive until one works.
6413 _am_tools='gnutar  pax cpio none'
6414
6415 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6416
6417
6418
6419
6420
6421 depcc="$CC"   am_compiler_list=
6422
6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6424 printf %s "checking dependency style of $depcc... " >&6; }
6425 if test ${am_cv_CC_dependencies_compiler_type+y}
6426 then :
6427   printf %s "(cached) " >&6
6428 else $as_nop
6429   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6430   # We make a subdir and do the tests there.  Otherwise we can end up
6431   # making bogus files that we don't know about and never remove.  For
6432   # instance it was reported that on HP-UX the gcc test will end up
6433   # making a dummy file named 'D' -- because '-MD' means "put the output
6434   # in D".
6435   rm -rf conftest.dir
6436   mkdir conftest.dir
6437   # Copy depcomp to subdir because otherwise we won't find it if we're
6438   # using a relative directory.
6439   cp "$am_depcomp" conftest.dir
6440   cd conftest.dir
6441   # We will build objects and dependencies in a subdirectory because
6442   # it helps to detect inapplicable dependency modes.  For instance
6443   # both Tru64's cc and ICC support -MD to output dependencies as a
6444   # side effect of compilation, but ICC will put the dependencies in
6445   # the current directory while Tru64 will put them in the object
6446   # directory.
6447   mkdir sub
6448
6449   am_cv_CC_dependencies_compiler_type=none
6450   if test "$am_compiler_list" = ""; then
6451      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6452   fi
6453   am__universal=false
6454   case " $depcc " in #(
6455      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6456      esac
6457
6458   for depmode in $am_compiler_list; do
6459     # Setup a source with many dependencies, because some compilers
6460     # like to wrap large dependency lists on column 80 (with \), and
6461     # we should not choose a depcomp mode which is confused by this.
6462     #
6463     # We need to recreate these files for each test, as the compiler may
6464     # overwrite some of them when testing with obscure command lines.
6465     # This happens at least with the AIX C compiler.
6466     : > sub/conftest.c
6467     for i in 1 2 3 4 5 6; do
6468       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6469       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6470       # Solaris 10 /bin/sh.
6471       echo '/* dummy */' > sub/conftst$i.h
6472     done
6473     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6474
6475     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6476     # mode.  It turns out that the SunPro C++ compiler does not properly
6477     # handle '-M -o', and we need to detect this.  Also, some Intel
6478     # versions had trouble with output in subdirs.
6479     am__obj=sub/conftest.${OBJEXT-o}
6480     am__minus_obj="-o $am__obj"
6481     case $depmode in
6482     gcc)
6483       # This depmode causes a compiler race in universal mode.
6484       test "$am__universal" = false || continue
6485       ;;
6486     nosideeffect)
6487       # After this tag, mechanisms are not by side-effect, so they'll
6488       # only be used when explicitly requested.
6489       if test "x$enable_dependency_tracking" = xyes; then
6490         continue
6491       else
6492         break
6493       fi
6494       ;;
6495     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6496       # This compiler won't grok '-c -o', but also, the minuso test has
6497       # not run yet.  These depmodes are late enough in the game, and
6498       # so weak that their functioning should not be impacted.
6499       am__obj=conftest.${OBJEXT-o}
6500       am__minus_obj=
6501       ;;
6502     none) break ;;
6503     esac
6504     if depmode=$depmode \
6505        source=sub/conftest.c object=$am__obj \
6506        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6507        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6508          >/dev/null 2>conftest.err &&
6509        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6510        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6511        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6512        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6513       # icc doesn't choke on unknown options, it will just issue warnings
6514       # or remarks (even with -Werror).  So we grep stderr for any message
6515       # that says an option was ignored or not supported.
6516       # When given -MP, icc 7.0 and 7.1 complain thusly:
6517       #   icc: Command line warning: ignoring option '-M'; no argument required
6518       # The diagnosis changed in icc 8.0:
6519       #   icc: Command line remark: option '-MP' not supported
6520       if (grep 'ignoring option' conftest.err ||
6521           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6522         am_cv_CC_dependencies_compiler_type=$depmode
6523         break
6524       fi
6525     fi
6526   done
6527
6528   cd ..
6529   rm -rf conftest.dir
6530 else
6531   am_cv_CC_dependencies_compiler_type=none
6532 fi
6533
6534 fi
6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6536 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6537 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6538
6539  if
6540   test "x$enable_dependency_tracking" != xno \
6541   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6542   am__fastdepCC_TRUE=
6543   am__fastdepCC_FALSE='#'
6544 else
6545   am__fastdepCC_TRUE='#'
6546   am__fastdepCC_FALSE=
6547 fi
6548
6549
6550 # Variables for tags utilities; see am/tags.am
6551 if test -z "$CTAGS"; then
6552   CTAGS=ctags
6553 fi
6554
6555 if test -z "$ETAGS"; then
6556   ETAGS=etags
6557 fi
6558
6559 if test -z "$CSCOPE"; then
6560   CSCOPE=cscope
6561 fi
6562
6563
6564
6565 # POSIX will say in a future version that running "rm -f" with no argument
6566 # is OK; and we want to be able to make that assumption in our Makefile
6567 # recipes.  So use an aggressive probe to check that the usage we want is
6568 # actually supported "in the wild" to an acceptable degree.
6569 # See automake bug#10828.
6570 # To make any issue more visible, cause the running configure to be aborted
6571 # by default if the 'rm' program in use doesn't match our expectations; the
6572 # user can still override this though.
6573 if rm -f && rm -fr && rm -rf; then : OK; else
6574   cat >&2 <<'END'
6575 Oops!
6576
6577 Your 'rm' program seems unable to run without file operands specified
6578 on the command line, even when the '-f' option is present.  This is contrary
6579 to the behaviour of most rm programs out there, and not conforming with
6580 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6581
6582 Please tell bug-automake@gnu.org about your system, including the value
6583 of your $PATH and any error possibly output before this message.  This
6584 can help us improve future automake versions.
6585
6586 END
6587   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6588     echo 'Configuration will proceed anyway, since you have set the' >&2
6589     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6590     echo >&2
6591   else
6592     cat >&2 <<'END'
6593 Aborting the configuration process, to ensure you take notice of the issue.
6594
6595 You can download and install GNU coreutils to get an 'rm' implementation
6596 that behaves properly: <https://www.gnu.org/software/coreutils/>.
6597
6598 If you want to complete the configuration process using your problematic
6599 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6600 to "yes", and re-run configure.
6601
6602 END
6603     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6604   fi
6605 fi
6606
6607 ## ------------------------------------- ##
6608 ##  End of automake initialization code  ##
6609 ## ------------------------------------- ##
6610
6611
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6613 printf %s "checking curl version... " >&6; }
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6615 printf "%s\n" "$CURLVERSION" >&6; }
6616
6617
6618
6619 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6620
6621
6622 PKGADD_PKG="HAXXcurl"
6623 PKGADD_NAME="curl - a client that groks URLs"
6624 PKGADD_VENDOR="curl.se"
6625
6626
6627
6628
6629     curl_ssl_msg="no      (--with-{openssl,gnutls,nss,mbedtls,wolfssl,schannel,secure-transport,amissl,bearssl,rustls} )"
6630     curl_ssh_msg="no      (--with-{libssh,libssh2})"
6631    curl_zlib_msg="no      (--with-zlib)"
6632  curl_brotli_msg="no      (--with-brotli)"
6633    curl_zstd_msg="no      (--with-zstd)"
6634     curl_gss_msg="no      (--with-gssapi)"
6635   curl_gsasl_msg="no      (--with-gsasl)"
6636 curl_tls_srp_msg="no      (--enable-tls-srp)"
6637     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6638    curl_ipv6_msg="no      (--enable-ipv6)"
6639 curl_unix_sockets_msg="no      (--enable-unix-sockets)"
6640     curl_idn_msg="no      (--with-{libidn2,winidn})"
6641  curl_manual_msg="no      (--enable-manual)"
6642 curl_libcurl_msg="enabled (--disable-libcurl-option)"
6643 curl_verbose_msg="enabled (--disable-verbose)"
6644    curl_sspi_msg="no      (--enable-sspi)"
6645    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6646   curl_ldaps_msg="no      (--enable-ldaps)"
6647    curl_rtsp_msg="no      (--enable-rtsp)"
6648    curl_rtmp_msg="no      (--with-librtmp)"
6649     curl_psl_msg="no      (--with-libpsl)"
6650  curl_altsvc_msg="enabled (--disable-alt-svc)"
6651 curl_headers_msg="enabled (--disable-headers-api)"
6652    curl_hsts_msg="enabled (--disable-hsts)"
6653      curl_ws_msg="no      (--enable-websockets)"
6654     ssl_backends=
6655      curl_h1_msg="enabled (internal)"
6656      curl_h2_msg="no      (--with-nghttp2, --with-hyper)"
6657      curl_h3_msg="no      (--with-ngtcp2, --with-quiche --with-msh3)"
6658
6659 enable_altsvc="yes"
6660 hsts="yes"
6661
6662 INITIAL_LDFLAGS=$LDFLAGS
6663 INITIAL_LIBS=$LIBS
6664
6665 OPT_SCHANNEL=no
6666
6667 # Check whether --with-schannel was given.
6668 if test ${with_schannel+y}
6669 then :
6670   withval=$with_schannel; OPT_SCHANNEL=$withval
6671   TLSCHOICE="schannel"
6672 fi
6673
6674
6675 OPT_SECURETRANSPORT=no
6676
6677 # Check whether --with-secure-transport was given.
6678 if test ${with_secure_transport+y}
6679 then :
6680   withval=$with_secure_transport;
6681   OPT_SECURETRANSPORT=$withval
6682   TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }Secure-Transport"
6683
6684 fi
6685
6686
6687 OPT_AMISSL=no
6688
6689 # Check whether --with-amissl was given.
6690 if test ${with_amissl+y}
6691 then :
6692   withval=$with_amissl;
6693   OPT_AMISSL=$withval
6694   TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL"
6695
6696 fi
6697
6698
6699 OPT_OPENSSL=no
6700 ca="no"
6701
6702 # Check whether --with-ssl was given.
6703 if test ${with_ssl+y}
6704 then :
6705   withval=$with_ssl;
6706   OPT_SSL=$withval
6707   OPT_OPENSSL=$withval
6708   if test X"$withval" != Xno; then
6709     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6710   else
6711     SSL_DISABLED="D"
6712   fi
6713
6714 fi
6715
6716
6717
6718 # Check whether --with-openssl was given.
6719 if test ${with_openssl+y}
6720 then :
6721   withval=$with_openssl;
6722   OPT_OPENSSL=$withval
6723   if test X"$withval" != Xno; then
6724     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6725   fi
6726
6727 fi
6728
6729
6730 OPT_GNUTLS=no
6731
6732 # Check whether --with-gnutls was given.
6733 if test ${with_gnutls+y}
6734 then :
6735   withval=$with_gnutls;
6736   OPT_GNUTLS=$withval
6737   if test X"$withval" != Xno; then
6738     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }GnuTLS"
6739   fi
6740
6741 fi
6742
6743
6744 OPT_MBEDTLS=no
6745
6746 # Check whether --with-mbedtls was given.
6747 if test ${with_mbedtls+y}
6748 then :
6749   withval=$with_mbedtls;
6750   OPT_MBEDTLS=$withval
6751   if test X"$withval" != Xno; then
6752     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }mbedTLS"
6753   fi
6754
6755 fi
6756
6757
6758 OPT_WOLFSSL=no
6759
6760 # Check whether --with-wolfssl was given.
6761 if test ${with_wolfssl+y}
6762 then :
6763   withval=$with_wolfssl;
6764   OPT_WOLFSSL=$withval
6765   if test X"$withval" != Xno; then
6766     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }wolfSSL"
6767   fi
6768
6769 fi
6770
6771
6772 OPT_BEARSSL=no
6773
6774 # Check whether --with-bearssl was given.
6775 if test ${with_bearssl+y}
6776 then :
6777   withval=$with_bearssl;
6778   OPT_BEARSSL=$withval
6779   if test X"$withval" != Xno; then
6780     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }BearSSL"
6781   fi
6782
6783 fi
6784
6785
6786 OPT_RUSTLS=no
6787
6788 # Check whether --with-rustls was given.
6789 if test ${with_rustls+y}
6790 then :
6791   withval=$with_rustls;
6792   OPT_RUSTLS=$withval
6793   if test X"$withval" != Xno; then
6794     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }rustls"
6795     experimental="$experimental rustls"
6796   fi
6797
6798 fi
6799
6800
6801 OPT_NSS_AWARE=no
6802
6803 # Check whether --with-nss-deprecated was given.
6804 if test ${with_nss_deprecated+y}
6805 then :
6806   withval=$with_nss_deprecated; if test X"$withval" != Xno; then
6807     OPT_NSS_AWARE=$withval
6808   fi
6809
6810 fi
6811
6812
6813 OPT_NSS=no
6814
6815 # Check whether --with-nss was given.
6816 if test ${with_nss+y}
6817 then :
6818   withval=$with_nss; OPT_NSS=$withval
6819   if test X"$withval" != Xno; then
6820
6821     if test X"$OPT_NSS_AWARE" = "Xno" ; then
6822       as_fn_error $? "NSS use must be confirmed using --with-nss-deprecated. NSS support will be dropped from curl in August 2022. See docs/DEPRECATE.md" "$LINENO" 5
6823     fi
6824
6825     TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }NSS"
6826   fi
6827
6828 fi
6829
6830
6831 if test -z "$TLSCHOICE"; then
6832   if test "x$OPT_SSL" != "xno"; then
6833     as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl.
6834
6835 Select from these:
6836
6837   --with-amissl
6838   --with-bearssl
6839   --with-gnutls
6840   --with-mbedtls
6841   --with-nss
6842   --with-openssl (also works for BoringSSL and libressl)
6843   --with-rustls
6844   --with-schannel
6845   --with-secure-transport
6846   --with-wolfssl
6847 " "$LINENO" 5
6848   fi
6849 fi
6850
6851
6852 # Check whether --with-darwinssl was given.
6853 if test ${with_darwinssl+y}
6854 then :
6855   withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl no longer works!" "$LINENO" 5
6856 fi
6857
6858
6859
6860
6861
6862   # Make sure we can run config.sub.
6863 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6864   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6865
6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6867 printf %s "checking build system type... " >&6; }
6868 if test ${ac_cv_build+y}
6869 then :
6870   printf %s "(cached) " >&6
6871 else $as_nop
6872   ac_build_alias=$build_alias
6873 test "x$ac_build_alias" = x &&
6874   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6875 test "x$ac_build_alias" = x &&
6876   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6877 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6878   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6879
6880 fi
6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6882 printf "%s\n" "$ac_cv_build" >&6; }
6883 case $ac_cv_build in
6884 *-*-*) ;;
6885 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6886 esac
6887 build=$ac_cv_build
6888 ac_save_IFS=$IFS; IFS='-'
6889 set x $ac_cv_build
6890 shift
6891 build_cpu=$1
6892 build_vendor=$2
6893 shift; shift
6894 # Remember, the first character of IFS is used to create $*,
6895 # except with old shells:
6896 build_os=$*
6897 IFS=$ac_save_IFS
6898 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6899
6900
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6902 printf %s "checking host system type... " >&6; }
6903 if test ${ac_cv_host+y}
6904 then :
6905   printf %s "(cached) " >&6
6906 else $as_nop
6907   if test "x$host_alias" = x; then
6908   ac_cv_host=$ac_cv_build
6909 else
6910   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6911     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6912 fi
6913
6914 fi
6915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6916 printf "%s\n" "$ac_cv_host" >&6; }
6917 case $ac_cv_host in
6918 *-*-*) ;;
6919 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6920 esac
6921 host=$ac_cv_host
6922 ac_save_IFS=$IFS; IFS='-'
6923 set x $ac_cv_host
6924 shift
6925 host_cpu=$1
6926 host_vendor=$2
6927 shift; shift
6928 # Remember, the first character of IFS is used to create $*,
6929 # except with old shells:
6930 host_os=$*
6931 IFS=$ac_save_IFS
6932 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6933
6934
6935
6936 printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
6937
6938
6939 # Silence warning: ar: 'u' modifier ignored since 'D' is the default
6940 AR_FLAGS=cr
6941
6942
6943
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6945 printf %s "checking for grep that handles long lines and -e... " >&6; }
6946 if test ${ac_cv_path_GREP+y}
6947 then :
6948   printf %s "(cached) " >&6
6949 else $as_nop
6950   if test -z "$GREP"; then
6951   ac_path_GREP_found=false
6952   # Loop through the user's path and test for each of PROGNAME-LIST
6953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6955 do
6956   IFS=$as_save_IFS
6957   case $as_dir in #(((
6958     '') as_dir=./ ;;
6959     */) ;;
6960     *) as_dir=$as_dir/ ;;
6961   esac
6962     for ac_prog in grep ggrep
6963    do
6964     for ac_exec_ext in '' $ac_executable_extensions; do
6965       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6966       as_fn_executable_p "$ac_path_GREP" || continue
6967 # Check for GNU ac_path_GREP and select it if it is found.
6968   # Check for GNU $ac_path_GREP
6969 case `"$ac_path_GREP" --version 2>&1` in
6970 *GNU*)
6971   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6972 *)
6973   ac_count=0
6974   printf %s 0123456789 >"conftest.in"
6975   while :
6976   do
6977     cat "conftest.in" "conftest.in" >"conftest.tmp"
6978     mv "conftest.tmp" "conftest.in"
6979     cp "conftest.in" "conftest.nl"
6980     printf "%s\n" 'GREP' >> "conftest.nl"
6981     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6982     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6983     as_fn_arith $ac_count + 1 && ac_count=$as_val
6984     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6985       # Best one so far, save it but keep looking for a better one
6986       ac_cv_path_GREP="$ac_path_GREP"
6987       ac_path_GREP_max=$ac_count
6988     fi
6989     # 10*(2^10) chars as input seems more than enough
6990     test $ac_count -gt 10 && break
6991   done
6992   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6993 esac
6994
6995       $ac_path_GREP_found && break 3
6996     done
6997   done
6998   done
6999 IFS=$as_save_IFS
7000   if test -z "$ac_cv_path_GREP"; then
7001     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7002   fi
7003 else
7004   ac_cv_path_GREP=$GREP
7005 fi
7006
7007 fi
7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7009 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7010  GREP="$ac_cv_path_GREP"
7011
7012
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7014 printf %s "checking for egrep... " >&6; }
7015 if test ${ac_cv_path_EGREP+y}
7016 then :
7017   printf %s "(cached) " >&6
7018 else $as_nop
7019   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7020    then ac_cv_path_EGREP="$GREP -E"
7021    else
7022      if test -z "$EGREP"; then
7023   ac_path_EGREP_found=false
7024   # Loop through the user's path and test for each of PROGNAME-LIST
7025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7027 do
7028   IFS=$as_save_IFS
7029   case $as_dir in #(((
7030     '') as_dir=./ ;;
7031     */) ;;
7032     *) as_dir=$as_dir/ ;;
7033   esac
7034     for ac_prog in egrep
7035    do
7036     for ac_exec_ext in '' $ac_executable_extensions; do
7037       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7038       as_fn_executable_p "$ac_path_EGREP" || continue
7039 # Check for GNU ac_path_EGREP and select it if it is found.
7040   # Check for GNU $ac_path_EGREP
7041 case `"$ac_path_EGREP" --version 2>&1` in
7042 *GNU*)
7043   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7044 *)
7045   ac_count=0
7046   printf %s 0123456789 >"conftest.in"
7047   while :
7048   do
7049     cat "conftest.in" "conftest.in" >"conftest.tmp"
7050     mv "conftest.tmp" "conftest.in"
7051     cp "conftest.in" "conftest.nl"
7052     printf "%s\n" 'EGREP' >> "conftest.nl"
7053     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7054     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7055     as_fn_arith $ac_count + 1 && ac_count=$as_val
7056     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7057       # Best one so far, save it but keep looking for a better one
7058       ac_cv_path_EGREP="$ac_path_EGREP"
7059       ac_path_EGREP_max=$ac_count
7060     fi
7061     # 10*(2^10) chars as input seems more than enough
7062     test $ac_count -gt 10 && break
7063   done
7064   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7065 esac
7066
7067       $ac_path_EGREP_found && break 3
7068     done
7069   done
7070   done
7071 IFS=$as_save_IFS
7072   if test -z "$ac_cv_path_EGREP"; then
7073     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7074   fi
7075 else
7076   ac_cv_path_EGREP=$EGREP
7077 fi
7078
7079    fi
7080 fi
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7082 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7083  EGREP="$ac_cv_path_EGREP"
7084
7085
7086
7087
7088         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
7089 printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
7090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h.  */
7092
7093 #ifdef _AIX
7094    yes_this_is_aix
7095 #endif
7096
7097 _ACEOF
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099   $EGREP "yes_this_is_aix" >/dev/null 2>&1
7100 then :
7101
7102     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7103 printf "%s\n" "yes" >&6; }
7104     printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7105
7106
7107 else $as_nop
7108
7109     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 printf "%s\n" "no" >&6; }
7111
7112 fi
7113 rm -rf conftest*
7114
7115
7116
7117
7118     #
7119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7120 printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
7121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h.  */
7123
7124
7125
7126 int main (void)
7127 {
7128
7129 #ifdef _THREAD_SAFE
7130       int dummy=1;
7131 #else
7132       force compilation error
7133 #endif
7134
7135  ;
7136  return 0;
7137 }
7138
7139 _ACEOF
7140 if ac_fn_c_try_compile "$LINENO"
7141 then :
7142
7143     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144 printf "%s\n" "yes" >&6; }
7145     tmp_thread_safe_initially_defined="yes"
7146
7147 else $as_nop
7148
7149     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 printf "%s\n" "no" >&6; }
7151     tmp_thread_safe_initially_defined="no"
7152
7153 fi
7154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7155   #
7156   if test "$tmp_thread_safe_initially_defined" = "no"; then
7157     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7158 printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
7159
7160   case $host_os in
7161     aix[123].* | aix4.[012].*)
7162             tmp_need_thread_safe="no"
7163       ;;
7164     aix*)
7165             tmp_need_thread_safe="yes"
7166       ;;
7167     *)
7168       tmp_need_thread_safe="no"
7169       ;;
7170   esac
7171
7172     if test "$tmp_need_thread_safe" = "yes"; then
7173       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7174 printf "%s\n" "yes" >&6; }
7175     else
7176       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 printf "%s\n" "no" >&6; }
7178     fi
7179   fi
7180   #
7181   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7182 printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
7183   if test "$tmp_thread_safe_initially_defined" = "yes" ||
7184     test "$tmp_need_thread_safe" = "yes"; then
7185
7186
7187 printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
7188
7189 cat >>confdefs.h <<_EOF
7190 #ifndef _THREAD_SAFE
7191 #  define _THREAD_SAFE
7192 #endif
7193 _EOF
7194
7195     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7196 printf "%s\n" "yes" >&6; }
7197   else
7198     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 printf "%s\n" "no" >&6; }
7200   fi
7201   #
7202
7203
7204     #
7205   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7206 printf %s "checking if _REENTRANT is already defined... " >&6; }
7207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h.  */
7209
7210
7211
7212 int main (void)
7213 {
7214
7215 #ifdef _REENTRANT
7216       int dummy=1;
7217 #else
7218       force compilation error
7219 #endif
7220
7221  ;
7222  return 0;
7223 }
7224
7225 _ACEOF
7226 if ac_fn_c_try_compile "$LINENO"
7227 then :
7228
7229     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7230 printf "%s\n" "yes" >&6; }
7231     tmp_reentrant_initially_defined="yes"
7232
7233 else $as_nop
7234
7235     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 printf "%s\n" "no" >&6; }
7237     tmp_reentrant_initially_defined="no"
7238
7239 fi
7240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7241   #
7242   if test "$tmp_reentrant_initially_defined" = "no"; then
7243     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7244 printf %s "checking if _REENTRANT is actually needed... " >&6; }
7245
7246   case $host_os in
7247     solaris*)
7248       tmp_need_reentrant="yes"
7249       ;;
7250     *)
7251       tmp_need_reentrant="no"
7252       ;;
7253   esac
7254
7255     if test "$tmp_need_reentrant" = "no"; then
7256
7257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h.  */
7259
7260
7261 #include <errno.h>
7262
7263 int main (void)
7264 {
7265
7266       if(0 != errno)
7267         return 1;
7268
7269  ;
7270  return 0;
7271 }
7272
7273 _ACEOF
7274 if ac_fn_c_try_compile "$LINENO"
7275 then :
7276
7277     tmp_errno="yes"
7278
7279 else $as_nop
7280
7281     tmp_errno="no"
7282
7283 fi
7284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7285   if test "$tmp_errno" = "yes"; then
7286     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h.  */
7288
7289
7290 #include <errno.h>
7291
7292 int main (void)
7293 {
7294
7295 #ifdef errno
7296         int dummy=1;
7297 #else
7298         force compilation error
7299 #endif
7300
7301  ;
7302  return 0;
7303 }
7304
7305 _ACEOF
7306 if ac_fn_c_try_compile "$LINENO"
7307 then :
7308
7309       tmp_errno="errno_macro_defined"
7310
7311 else $as_nop
7312
7313       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h.  */
7315
7316
7317 #define _REENTRANT
7318 #include <errno.h>
7319
7320 int main (void)
7321 {
7322
7323 #ifdef errno
7324           int dummy=1;
7325 #else
7326           force compilation error
7327 #endif
7328
7329  ;
7330  return 0;
7331 }
7332
7333 _ACEOF
7334 if ac_fn_c_try_compile "$LINENO"
7335 then :
7336
7337         tmp_errno="errno_macro_needs_reentrant"
7338         tmp_need_reentrant="yes"
7339
7340 fi
7341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7342
7343 fi
7344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7345   fi
7346
7347     fi
7348     if test "$tmp_need_reentrant" = "no"; then
7349
7350   if test "$tmp_need_reentrant" = "no"; then
7351
7352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h.  */
7354
7355
7356 #define gmtime_r innocuous_gmtime_r
7357 #ifdef __STDC__
7358 # include <limits.h>
7359 #else
7360 # include <assert.h>
7361 #endif
7362 #undef gmtime_r
7363 #ifdef __cplusplus
7364 extern "C"
7365 #endif
7366 char gmtime_r ();
7367 #if defined __stub_gmtime_r || defined __stub___gmtime_r
7368 choke me
7369 #endif
7370
7371 int main (void)
7372 {
7373 return gmtime_r ();
7374  ;
7375  return 0;
7376 }
7377
7378 _ACEOF
7379 if ac_fn_c_try_link "$LINENO"
7380 then :
7381
7382     tmp_gmtime_r="yes"
7383
7384 else $as_nop
7385
7386     tmp_gmtime_r="no"
7387
7388 fi
7389 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7390     conftest$ac_exeext conftest.$ac_ext
7391   if test "$tmp_gmtime_r" = "yes"; then
7392     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h.  */
7394
7395 #include <sys/types.h>
7396 #include <time.h>
7397
7398 _ACEOF
7399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7400   $EGREP "gmtime_r" >/dev/null 2>&1
7401 then :
7402
7403       tmp_gmtime_r="proto_declared"
7404
7405 else $as_nop
7406
7407       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h.  */
7409
7410 #define _REENTRANT
7411 #include <sys/types.h>
7412 #include <time.h>
7413
7414 _ACEOF
7415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7416   $EGREP "gmtime_r" >/dev/null 2>&1
7417 then :
7418
7419         tmp_gmtime_r="proto_needs_reentrant"
7420         tmp_need_reentrant="yes"
7421
7422 fi
7423 rm -rf conftest*
7424
7425
7426 fi
7427 rm -rf conftest*
7428
7429   fi
7430
7431   fi
7432   if test "$tmp_need_reentrant" = "no"; then
7433
7434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h.  */
7436
7437
7438 #define localtime_r innocuous_localtime_r
7439 #ifdef __STDC__
7440 # include <limits.h>
7441 #else
7442 # include <assert.h>
7443 #endif
7444 #undef localtime_r
7445 #ifdef __cplusplus
7446 extern "C"
7447 #endif
7448 char localtime_r ();
7449 #if defined __stub_localtime_r || defined __stub___localtime_r
7450 choke me
7451 #endif
7452
7453 int main (void)
7454 {
7455 return localtime_r ();
7456  ;
7457  return 0;
7458 }
7459
7460 _ACEOF
7461 if ac_fn_c_try_link "$LINENO"
7462 then :
7463
7464     tmp_localtime_r="yes"
7465
7466 else $as_nop
7467
7468     tmp_localtime_r="no"
7469
7470 fi
7471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7472     conftest$ac_exeext conftest.$ac_ext
7473   if test "$tmp_localtime_r" = "yes"; then
7474     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h.  */
7476
7477 #include <sys/types.h>
7478 #include <time.h>
7479
7480 _ACEOF
7481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7482   $EGREP "localtime_r" >/dev/null 2>&1
7483 then :
7484
7485       tmp_localtime_r="proto_declared"
7486
7487 else $as_nop
7488
7489       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h.  */
7491
7492 #define _REENTRANT
7493 #include <sys/types.h>
7494 #include <time.h>
7495
7496 _ACEOF
7497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7498   $EGREP "localtime_r" >/dev/null 2>&1
7499 then :
7500
7501         tmp_localtime_r="proto_needs_reentrant"
7502         tmp_need_reentrant="yes"
7503
7504 fi
7505 rm -rf conftest*
7506
7507
7508 fi
7509 rm -rf conftest*
7510
7511   fi
7512
7513   fi
7514   if test "$tmp_need_reentrant" = "no"; then
7515
7516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h.  */
7518
7519
7520 #define strerror_r innocuous_strerror_r
7521 #ifdef __STDC__
7522 # include <limits.h>
7523 #else
7524 # include <assert.h>
7525 #endif
7526 #undef strerror_r
7527 #ifdef __cplusplus
7528 extern "C"
7529 #endif
7530 char strerror_r ();
7531 #if defined __stub_strerror_r || defined __stub___strerror_r
7532 choke me
7533 #endif
7534
7535 int main (void)
7536 {
7537 return strerror_r ();
7538  ;
7539  return 0;
7540 }
7541
7542 _ACEOF
7543 if ac_fn_c_try_link "$LINENO"
7544 then :
7545
7546     tmp_strerror_r="yes"
7547
7548 else $as_nop
7549
7550     tmp_strerror_r="no"
7551
7552 fi
7553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7554     conftest$ac_exeext conftest.$ac_ext
7555   if test "$tmp_strerror_r" = "yes"; then
7556     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h.  */
7558
7559 #include <sys/types.h>
7560 #include <string.h>
7561
7562 _ACEOF
7563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7564   $EGREP "strerror_r" >/dev/null 2>&1
7565 then :
7566
7567       tmp_strerror_r="proto_declared"
7568
7569 else $as_nop
7570
7571       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h.  */
7573
7574 #define _REENTRANT
7575 #include <sys/types.h>
7576 #include <string.h>
7577
7578 _ACEOF
7579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7580   $EGREP "strerror_r" >/dev/null 2>&1
7581 then :
7582
7583         tmp_strerror_r="proto_needs_reentrant"
7584         tmp_need_reentrant="yes"
7585
7586 fi
7587 rm -rf conftest*
7588
7589
7590 fi
7591 rm -rf conftest*
7592
7593   fi
7594
7595   fi
7596   if test "$tmp_need_reentrant" = "no"; then
7597
7598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h.  */
7600
7601
7602 #define strtok_r innocuous_strtok_r
7603 #ifdef __STDC__
7604 # include <limits.h>
7605 #else
7606 # include <assert.h>
7607 #endif
7608 #undef strtok_r
7609 #ifdef __cplusplus
7610 extern "C"
7611 #endif
7612 char strtok_r ();
7613 #if defined __stub_strtok_r || defined __stub___strtok_r
7614 choke me
7615 #endif
7616
7617 int main (void)
7618 {
7619 return strtok_r ();
7620  ;
7621  return 0;
7622 }
7623
7624 _ACEOF
7625 if ac_fn_c_try_link "$LINENO"
7626 then :
7627
7628     tmp_strtok_r="yes"
7629
7630 else $as_nop
7631
7632     tmp_strtok_r="no"
7633
7634 fi
7635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7636     conftest$ac_exeext conftest.$ac_ext
7637   if test "$tmp_strtok_r" = "yes"; then
7638     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h.  */
7640
7641 #include <sys/types.h>
7642 #include <string.h>
7643
7644 _ACEOF
7645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7646   $EGREP "strtok_r" >/dev/null 2>&1
7647 then :
7648
7649       tmp_strtok_r="proto_declared"
7650
7651 else $as_nop
7652
7653       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h.  */
7655
7656 #define _REENTRANT
7657 #include <sys/types.h>
7658 #include <string.h>
7659
7660 _ACEOF
7661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7662   $EGREP "strtok_r" >/dev/null 2>&1
7663 then :
7664
7665         tmp_strtok_r="proto_needs_reentrant"
7666         tmp_need_reentrant="yes"
7667
7668 fi
7669 rm -rf conftest*
7670
7671
7672 fi
7673 rm -rf conftest*
7674
7675   fi
7676
7677   fi
7678   if test "$tmp_need_reentrant" = "no"; then
7679
7680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h.  */
7682
7683
7684 #define gethostbyname_r innocuous_gethostbyname_r
7685 #ifdef __STDC__
7686 # include <limits.h>
7687 #else
7688 # include <assert.h>
7689 #endif
7690 #undef gethostbyname_r
7691 #ifdef __cplusplus
7692 extern "C"
7693 #endif
7694 char gethostbyname_r ();
7695 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7696 choke me
7697 #endif
7698
7699 int main (void)
7700 {
7701 return gethostbyname_r ();
7702  ;
7703  return 0;
7704 }
7705
7706 _ACEOF
7707 if ac_fn_c_try_link "$LINENO"
7708 then :
7709
7710     tmp_gethostbyname_r="yes"
7711
7712 else $as_nop
7713
7714     tmp_gethostbyname_r="no"
7715
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7718     conftest$ac_exeext conftest.$ac_ext
7719   if test "$tmp_gethostbyname_r" = "yes"; then
7720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h.  */
7722
7723 #include <sys/types.h>
7724 #include <netdb.h>
7725
7726 _ACEOF
7727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7728   $EGREP "gethostbyname_r" >/dev/null 2>&1
7729 then :
7730
7731       tmp_gethostbyname_r="proto_declared"
7732
7733 else $as_nop
7734
7735       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h.  */
7737
7738 #define _REENTRANT
7739 #include <sys/types.h>
7740 #include <netdb.h>
7741
7742 _ACEOF
7743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7744   $EGREP "gethostbyname_r" >/dev/null 2>&1
7745 then :
7746
7747         tmp_gethostbyname_r="proto_needs_reentrant"
7748         tmp_need_reentrant="yes"
7749
7750 fi
7751 rm -rf conftest*
7752
7753
7754 fi
7755 rm -rf conftest*
7756
7757   fi
7758
7759   fi
7760   if test "$tmp_need_reentrant" = "no"; then
7761
7762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h.  */
7764
7765
7766 #define getprotobyname_r innocuous_getprotobyname_r
7767 #ifdef __STDC__
7768 # include <limits.h>
7769 #else
7770 # include <assert.h>
7771 #endif
7772 #undef getprotobyname_r
7773 #ifdef __cplusplus
7774 extern "C"
7775 #endif
7776 char getprotobyname_r ();
7777 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7778 choke me
7779 #endif
7780
7781 int main (void)
7782 {
7783 return getprotobyname_r ();
7784  ;
7785  return 0;
7786 }
7787
7788 _ACEOF
7789 if ac_fn_c_try_link "$LINENO"
7790 then :
7791
7792     tmp_getprotobyname_r="yes"
7793
7794 else $as_nop
7795
7796     tmp_getprotobyname_r="no"
7797
7798 fi
7799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7800     conftest$ac_exeext conftest.$ac_ext
7801   if test "$tmp_getprotobyname_r" = "yes"; then
7802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h.  */
7804
7805 #include <sys/types.h>
7806 #include <netdb.h>
7807
7808 _ACEOF
7809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7810   $EGREP "getprotobyname_r" >/dev/null 2>&1
7811 then :
7812
7813       tmp_getprotobyname_r="proto_declared"
7814
7815 else $as_nop
7816
7817       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h.  */
7819
7820 #define _REENTRANT
7821 #include <sys/types.h>
7822 #include <netdb.h>
7823
7824 _ACEOF
7825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7826   $EGREP "getprotobyname_r" >/dev/null 2>&1
7827 then :
7828
7829         tmp_getprotobyname_r="proto_needs_reentrant"
7830         tmp_need_reentrant="yes"
7831
7832 fi
7833 rm -rf conftest*
7834
7835
7836 fi
7837 rm -rf conftest*
7838
7839   fi
7840
7841   fi
7842
7843     fi
7844     if test "$tmp_need_reentrant" = "yes"; then
7845       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7846 printf "%s\n" "yes" >&6; }
7847     else
7848       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 printf "%s\n" "no" >&6; }
7850     fi
7851   fi
7852   #
7853   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7854 printf %s "checking if _REENTRANT is onwards defined... " >&6; }
7855   if test "$tmp_reentrant_initially_defined" = "yes" ||
7856     test "$tmp_need_reentrant" = "yes"; then
7857
7858
7859 printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
7860
7861 cat >>confdefs.h <<_EOF
7862 #ifndef _REENTRANT
7863 #  define _REENTRANT
7864 #endif
7865 _EOF
7866
7867     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7868 printf "%s\n" "yes" >&6; }
7869   else
7870     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 printf "%s\n" "no" >&6; }
7872   fi
7873   #
7874
7875
7876 # Check whether --enable-largefile was given.
7877 if test ${enable_largefile+y}
7878 then :
7879   enableval=$enable_largefile;
7880 fi
7881
7882 if test "$enable_largefile" != no; then
7883
7884   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7885 printf %s "checking for special C compiler options needed for large files... " >&6; }
7886 if test ${ac_cv_sys_largefile_CC+y}
7887 then :
7888   printf %s "(cached) " >&6
7889 else $as_nop
7890   ac_cv_sys_largefile_CC=no
7891      if test "$GCC" != yes; then
7892        ac_save_CC=$CC
7893        while :; do
7894          # IRIX 6.2 and later do not support large files by default,
7895          # so use the C compiler's -n32 option if that helps.
7896          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h.  */
7898 #include <sys/types.h>
7899  /* Check that off_t can represent 2**63 - 1 correctly.
7900     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7901     since some C++ compilers masquerading as C compilers
7902     incorrectly reject 9223372036854775807.  */
7903 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7904   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7905                        && LARGE_OFF_T % 2147483647 == 1)
7906                       ? 1 : -1];
7907 int main (void)
7908 {
7909
7910  ;
7911  return 0;
7912 }
7913 _ACEOF
7914          if ac_fn_c_try_compile "$LINENO"
7915 then :
7916   break
7917 fi
7918 rm -f core conftest.err conftest.$ac_objext conftest.beam
7919          CC="$CC -n32"
7920          if ac_fn_c_try_compile "$LINENO"
7921 then :
7922   ac_cv_sys_largefile_CC=' -n32'; break
7923 fi
7924 rm -f core conftest.err conftest.$ac_objext conftest.beam
7925          break
7926        done
7927        CC=$ac_save_CC
7928        rm -f conftest.$ac_ext
7929     fi
7930 fi
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7932 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
7933   if test "$ac_cv_sys_largefile_CC" != no; then
7934     CC=$CC$ac_cv_sys_largefile_CC
7935   fi
7936
7937   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7938 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7939 if test ${ac_cv_sys_file_offset_bits+y}
7940 then :
7941   printf %s "(cached) " >&6
7942 else $as_nop
7943   while :; do
7944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h.  */
7946 #include <sys/types.h>
7947  /* Check that off_t can represent 2**63 - 1 correctly.
7948     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7949     since some C++ compilers masquerading as C compilers
7950     incorrectly reject 9223372036854775807.  */
7951 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7952   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7953                        && LARGE_OFF_T % 2147483647 == 1)
7954                       ? 1 : -1];
7955 int main (void)
7956 {
7957
7958  ;
7959  return 0;
7960 }
7961 _ACEOF
7962 if ac_fn_c_try_compile "$LINENO"
7963 then :
7964   ac_cv_sys_file_offset_bits=no; break
7965 fi
7966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h.  */
7969 #define _FILE_OFFSET_BITS 64
7970 #include <sys/types.h>
7971  /* Check that off_t can represent 2**63 - 1 correctly.
7972     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7973     since some C++ compilers masquerading as C compilers
7974     incorrectly reject 9223372036854775807.  */
7975 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7976   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7977                        && LARGE_OFF_T % 2147483647 == 1)
7978                       ? 1 : -1];
7979 int main (void)
7980 {
7981
7982  ;
7983  return 0;
7984 }
7985 _ACEOF
7986 if ac_fn_c_try_compile "$LINENO"
7987 then :
7988   ac_cv_sys_file_offset_bits=64; break
7989 fi
7990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7991   ac_cv_sys_file_offset_bits=unknown
7992   break
7993 done
7994 fi
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7996 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
7997 case $ac_cv_sys_file_offset_bits in #(
7998   no | unknown) ;;
7999   *)
8000 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8001 ;;
8002 esac
8003 rm -rf conftest*
8004   if test $ac_cv_sys_file_offset_bits = unknown; then
8005     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8006 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8007 if test ${ac_cv_sys_large_files+y}
8008 then :
8009   printf %s "(cached) " >&6
8010 else $as_nop
8011   while :; do
8012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h.  */
8014 #include <sys/types.h>
8015  /* Check that off_t can represent 2**63 - 1 correctly.
8016     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8017     since some C++ compilers masquerading as C compilers
8018     incorrectly reject 9223372036854775807.  */
8019 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8020   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8021                        && LARGE_OFF_T % 2147483647 == 1)
8022                       ? 1 : -1];
8023 int main (void)
8024 {
8025
8026  ;
8027  return 0;
8028 }
8029 _ACEOF
8030 if ac_fn_c_try_compile "$LINENO"
8031 then :
8032   ac_cv_sys_large_files=no; break
8033 fi
8034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h.  */
8037 #define _LARGE_FILES 1
8038 #include <sys/types.h>
8039  /* Check that off_t can represent 2**63 - 1 correctly.
8040     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8041     since some C++ compilers masquerading as C compilers
8042     incorrectly reject 9223372036854775807.  */
8043 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8044   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8045                        && LARGE_OFF_T % 2147483647 == 1)
8046                       ? 1 : -1];
8047 int main (void)
8048 {
8049
8050  ;
8051  return 0;
8052 }
8053 _ACEOF
8054 if ac_fn_c_try_compile "$LINENO"
8055 then :
8056   ac_cv_sys_large_files=1; break
8057 fi
8058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8059   ac_cv_sys_large_files=unknown
8060   break
8061 done
8062 fi
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8064 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8065 case $ac_cv_sys_large_files in #(
8066   no | unknown) ;;
8067   *)
8068 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8069 ;;
8070 esac
8071 rm -rf conftest*
8072   fi
8073 fi
8074
8075
8076 case `pwd` in
8077   *\ * | *\     *)
8078     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8079 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8080 esac
8081
8082
8083
8084 macro_version='2.4.7'
8085 macro_revision='2.4.7'
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100 ltmain=$ac_aux_dir/ltmain.sh
8101
8102 # Backslashify metacharacters that are still active within
8103 # double-quoted strings.
8104 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8105
8106 # Same as above, but do not quote variable references.
8107 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8108
8109 # Sed substitution to delay expansion of an escaped shell variable in a
8110 # double_quote_subst'ed string.
8111 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8112
8113 # Sed substitution to delay expansion of an escaped single quote.
8114 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8115
8116 # Sed substitution to avoid accidental globbing in evaled expressions
8117 no_glob_subst='s/\*/\\\*/g'
8118
8119 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8120 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8121 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8122
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8124 printf %s "checking how to print strings... " >&6; }
8125 # Test print first, because it will be a builtin if present.
8126 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8127    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8128   ECHO='print -r --'
8129 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8130   ECHO='printf %s\n'
8131 else
8132   # Use this function as a fallback that always works.
8133   func_fallback_echo ()
8134   {
8135     eval 'cat <<_LTECHO_EOF
8136 $1
8137 _LTECHO_EOF'
8138   }
8139   ECHO='func_fallback_echo'
8140 fi
8141
8142 # func_echo_all arg...
8143 # Invoke $ECHO with all args, space-separated.
8144 func_echo_all ()
8145 {
8146     $ECHO ""
8147 }
8148
8149 case $ECHO in
8150   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8151 printf "%s\n" "printf" >&6; } ;;
8152   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8153 printf "%s\n" "print -r" >&6; } ;;
8154   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8155 printf "%s\n" "cat" >&6; } ;;
8156 esac
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8172 printf %s "checking for a sed that does not truncate output... " >&6; }
8173 if test ${ac_cv_path_SED+y}
8174 then :
8175   printf %s "(cached) " >&6
8176 else $as_nop
8177             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8178      for ac_i in 1 2 3 4 5 6 7; do
8179        ac_script="$ac_script$as_nl$ac_script"
8180      done
8181      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8182      { ac_script=; unset ac_script;}
8183      if test -z "$SED"; then
8184   ac_path_SED_found=false
8185   # Loop through the user's path and test for each of PROGNAME-LIST
8186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189   IFS=$as_save_IFS
8190   case $as_dir in #(((
8191     '') as_dir=./ ;;
8192     */) ;;
8193     *) as_dir=$as_dir/ ;;
8194   esac
8195     for ac_prog in sed gsed
8196    do
8197     for ac_exec_ext in '' $ac_executable_extensions; do
8198       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8199       as_fn_executable_p "$ac_path_SED" || continue
8200 # Check for GNU ac_path_SED and select it if it is found.
8201   # Check for GNU $ac_path_SED
8202 case `"$ac_path_SED" --version 2>&1` in
8203 *GNU*)
8204   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8205 *)
8206   ac_count=0
8207   printf %s 0123456789 >"conftest.in"
8208   while :
8209   do
8210     cat "conftest.in" "conftest.in" >"conftest.tmp"
8211     mv "conftest.tmp" "conftest.in"
8212     cp "conftest.in" "conftest.nl"
8213     printf "%s\n" '' >> "conftest.nl"
8214     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8215     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8216     as_fn_arith $ac_count + 1 && ac_count=$as_val
8217     if test $ac_count -gt ${ac_path_SED_max-0}; then
8218       # Best one so far, save it but keep looking for a better one
8219       ac_cv_path_SED="$ac_path_SED"
8220       ac_path_SED_max=$ac_count
8221     fi
8222     # 10*(2^10) chars as input seems more than enough
8223     test $ac_count -gt 10 && break
8224   done
8225   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8226 esac
8227
8228       $ac_path_SED_found && break 3
8229     done
8230   done
8231   done
8232 IFS=$as_save_IFS
8233   if test -z "$ac_cv_path_SED"; then
8234     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8235   fi
8236 else
8237   ac_cv_path_SED=$SED
8238 fi
8239
8240 fi
8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8242 printf "%s\n" "$ac_cv_path_SED" >&6; }
8243  SED="$ac_cv_path_SED"
8244   rm -f conftest.sed
8245
8246 test -z "$SED" && SED=sed
8247 Xsed="$SED -e 1s/^X//"
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8260 printf %s "checking for fgrep... " >&6; }
8261 if test ${ac_cv_path_FGREP+y}
8262 then :
8263   printf %s "(cached) " >&6
8264 else $as_nop
8265   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8266    then ac_cv_path_FGREP="$GREP -F"
8267    else
8268      if test -z "$FGREP"; then
8269   ac_path_FGREP_found=false
8270   # Loop through the user's path and test for each of PROGNAME-LIST
8271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8273 do
8274   IFS=$as_save_IFS
8275   case $as_dir in #(((
8276     '') as_dir=./ ;;
8277     */) ;;
8278     *) as_dir=$as_dir/ ;;
8279   esac
8280     for ac_prog in fgrep
8281    do
8282     for ac_exec_ext in '' $ac_executable_extensions; do
8283       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8284       as_fn_executable_p "$ac_path_FGREP" || continue
8285 # Check for GNU ac_path_FGREP and select it if it is found.
8286   # Check for GNU $ac_path_FGREP
8287 case `"$ac_path_FGREP" --version 2>&1` in
8288 *GNU*)
8289   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8290 *)
8291   ac_count=0
8292   printf %s 0123456789 >"conftest.in"
8293   while :
8294   do
8295     cat "conftest.in" "conftest.in" >"conftest.tmp"
8296     mv "conftest.tmp" "conftest.in"
8297     cp "conftest.in" "conftest.nl"
8298     printf "%s\n" 'FGREP' >> "conftest.nl"
8299     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8300     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8301     as_fn_arith $ac_count + 1 && ac_count=$as_val
8302     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8303       # Best one so far, save it but keep looking for a better one
8304       ac_cv_path_FGREP="$ac_path_FGREP"
8305       ac_path_FGREP_max=$ac_count
8306     fi
8307     # 10*(2^10) chars as input seems more than enough
8308     test $ac_count -gt 10 && break
8309   done
8310   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8311 esac
8312
8313       $ac_path_FGREP_found && break 3
8314     done
8315   done
8316   done
8317 IFS=$as_save_IFS
8318   if test -z "$ac_cv_path_FGREP"; then
8319     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8320   fi
8321 else
8322   ac_cv_path_FGREP=$FGREP
8323 fi
8324
8325    fi
8326 fi
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8328 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8329  FGREP="$ac_cv_path_FGREP"
8330
8331
8332 test -z "$GREP" && GREP=grep
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352 # Check whether --with-gnu-ld was given.
8353 if test ${with_gnu_ld+y}
8354 then :
8355   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8356 else $as_nop
8357   with_gnu_ld=no
8358 fi
8359
8360 ac_prog=ld
8361 if test yes = "$GCC"; then
8362   # Check if gcc -print-prog-name=ld gives a path.
8363   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8364 printf %s "checking for ld used by $CC... " >&6; }
8365   case $host in
8366   *-*-mingw*)
8367     # gcc leaves a trailing carriage return, which upsets mingw
8368     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8369   *)
8370     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8371   esac
8372   case $ac_prog in
8373     # Accept absolute paths.
8374     [\\/]* | ?:[\\/]*)
8375       re_direlt='/[^/][^/]*/\.\./'
8376       # Canonicalize the pathname of ld
8377       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8378       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8379         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8380       done
8381       test -z "$LD" && LD=$ac_prog
8382       ;;
8383   "")
8384     # If it fails, then pretend we aren't using GCC.
8385     ac_prog=ld
8386     ;;
8387   *)
8388     # If it is relative, then search for the first ld in PATH.
8389     with_gnu_ld=unknown
8390     ;;
8391   esac
8392 elif test yes = "$with_gnu_ld"; then
8393   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8394 printf %s "checking for GNU ld... " >&6; }
8395 else
8396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8397 printf %s "checking for non-GNU ld... " >&6; }
8398 fi
8399 if test ${lt_cv_path_LD+y}
8400 then :
8401   printf %s "(cached) " >&6
8402 else $as_nop
8403   if test -z "$LD"; then
8404   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8405   for ac_dir in $PATH; do
8406     IFS=$lt_save_ifs
8407     test -z "$ac_dir" && ac_dir=.
8408     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8409       lt_cv_path_LD=$ac_dir/$ac_prog
8410       # Check to see if the program is GNU ld.  I'd rather use --version,
8411       # but apparently some variants of GNU ld only accept -v.
8412       # Break only if it was the GNU/non-GNU ld that we prefer.
8413       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8414       *GNU* | *'with BFD'*)
8415         test no != "$with_gnu_ld" && break
8416         ;;
8417       *)
8418         test yes != "$with_gnu_ld" && break
8419         ;;
8420       esac
8421     fi
8422   done
8423   IFS=$lt_save_ifs
8424 else
8425   lt_cv_path_LD=$LD # Let the user override the test with a path.
8426 fi
8427 fi
8428
8429 LD=$lt_cv_path_LD
8430 if test -n "$LD"; then
8431   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8432 printf "%s\n" "$LD" >&6; }
8433 else
8434   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 printf "%s\n" "no" >&6; }
8436 fi
8437 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8439 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8440 if test ${lt_cv_prog_gnu_ld+y}
8441 then :
8442   printf %s "(cached) " >&6
8443 else $as_nop
8444   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8445 case `$LD -v 2>&1 </dev/null` in
8446 *GNU* | *'with BFD'*)
8447   lt_cv_prog_gnu_ld=yes
8448   ;;
8449 *)
8450   lt_cv_prog_gnu_ld=no
8451   ;;
8452 esac
8453 fi
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8455 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8456 with_gnu_ld=$lt_cv_prog_gnu_ld
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8467 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8468 if test ${lt_cv_path_NM+y}
8469 then :
8470   printf %s "(cached) " >&6
8471 else $as_nop
8472   if test -n "$NM"; then
8473   # Let the user override the test.
8474   lt_cv_path_NM=$NM
8475 else
8476   lt_nm_to_check=${ac_tool_prefix}nm
8477   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8478     lt_nm_to_check="$lt_nm_to_check nm"
8479   fi
8480   for lt_tmp_nm in $lt_nm_to_check; do
8481     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8482     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8483       IFS=$lt_save_ifs
8484       test -z "$ac_dir" && ac_dir=.
8485       tmp_nm=$ac_dir/$lt_tmp_nm
8486       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8487         # Check to see if the nm accepts a BSD-compat flag.
8488         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8489         #   nm: unknown option "B" ignored
8490         # Tru64's nm complains that /dev/null is an invalid object file
8491         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8492         case $build_os in
8493         mingw*) lt_bad_file=conftest.nm/nofile ;;
8494         *) lt_bad_file=/dev/null ;;
8495         esac
8496         case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
8497         *$lt_bad_file* | *'Invalid file or object type'*)
8498           lt_cv_path_NM="$tmp_nm -B"
8499           break 2
8500           ;;
8501         *)
8502           case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
8503           */dev/null*)
8504             lt_cv_path_NM="$tmp_nm -p"
8505             break 2
8506             ;;
8507           *)
8508             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8509             continue # so that we can try to find one that supports BSD flags
8510             ;;
8511           esac
8512           ;;
8513         esac
8514       fi
8515     done
8516     IFS=$lt_save_ifs
8517   done
8518   : ${lt_cv_path_NM=no}
8519 fi
8520 fi
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8522 printf "%s\n" "$lt_cv_path_NM" >&6; }
8523 if test no != "$lt_cv_path_NM"; then
8524   NM=$lt_cv_path_NM
8525 else
8526   # Didn't find any BSD compatible name lister, look for dumpbin.
8527   if test -n "$DUMPBIN"; then :
8528     # Let the user override the test.
8529   else
8530     if test -n "$ac_tool_prefix"; then
8531   for ac_prog in dumpbin "link -dump"
8532   do
8533     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536 printf %s "checking for $ac_word... " >&6; }
8537 if test ${ac_cv_prog_DUMPBIN+y}
8538 then :
8539   printf %s "(cached) " >&6
8540 else $as_nop
8541   if test -n "$DUMPBIN"; then
8542   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8543 else
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH
8546 do
8547   IFS=$as_save_IFS
8548   case $as_dir in #(((
8549     '') as_dir=./ ;;
8550     */) ;;
8551     *) as_dir=$as_dir/ ;;
8552   esac
8553     for ac_exec_ext in '' $ac_executable_extensions; do
8554   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8555     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8556     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8557     break 2
8558   fi
8559 done
8560   done
8561 IFS=$as_save_IFS
8562
8563 fi
8564 fi
8565 DUMPBIN=$ac_cv_prog_DUMPBIN
8566 if test -n "$DUMPBIN"; then
8567   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8568 printf "%s\n" "$DUMPBIN" >&6; }
8569 else
8570   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 printf "%s\n" "no" >&6; }
8572 fi
8573
8574
8575     test -n "$DUMPBIN" && break
8576   done
8577 fi
8578 if test -z "$DUMPBIN"; then
8579   ac_ct_DUMPBIN=$DUMPBIN
8580   for ac_prog in dumpbin "link -dump"
8581 do
8582   # Extract the first word of "$ac_prog", so it can be a program name with args.
8583 set dummy $ac_prog; ac_word=$2
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585 printf %s "checking for $ac_word... " >&6; }
8586 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8587 then :
8588   printf %s "(cached) " >&6
8589 else $as_nop
8590   if test -n "$ac_ct_DUMPBIN"; then
8591   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8595 do
8596   IFS=$as_save_IFS
8597   case $as_dir in #(((
8598     '') as_dir=./ ;;
8599     */) ;;
8600     *) as_dir=$as_dir/ ;;
8601   esac
8602     for ac_exec_ext in '' $ac_executable_extensions; do
8603   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8604     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8605     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8606     break 2
8607   fi
8608 done
8609   done
8610 IFS=$as_save_IFS
8611
8612 fi
8613 fi
8614 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8615 if test -n "$ac_ct_DUMPBIN"; then
8616   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8617 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8618 else
8619   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620 printf "%s\n" "no" >&6; }
8621 fi
8622
8623
8624   test -n "$ac_ct_DUMPBIN" && break
8625 done
8626
8627   if test "x$ac_ct_DUMPBIN" = x; then
8628     DUMPBIN=":"
8629   else
8630     case $cross_compiling:$ac_tool_warned in
8631 yes:)
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8633 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8634 ac_tool_warned=yes ;;
8635 esac
8636     DUMPBIN=$ac_ct_DUMPBIN
8637   fi
8638 fi
8639
8640     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
8641     *COFF*)
8642       DUMPBIN="$DUMPBIN -symbols -headers"
8643       ;;
8644     *)
8645       DUMPBIN=:
8646       ;;
8647     esac
8648   fi
8649
8650   if test : != "$DUMPBIN"; then
8651     NM=$DUMPBIN
8652   fi
8653 fi
8654 test -z "$NM" && NM=nm
8655
8656
8657
8658
8659
8660
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8662 printf %s "checking the name lister ($NM) interface... " >&6; }
8663 if test ${lt_cv_nm_interface+y}
8664 then :
8665   printf %s "(cached) " >&6
8666 else $as_nop
8667   lt_cv_nm_interface="BSD nm"
8668   echo "int some_variable = 0;" > conftest.$ac_ext
8669   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8670   (eval "$ac_compile" 2>conftest.err)
8671   cat conftest.err >&5
8672   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8673   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8674   cat conftest.err >&5
8675   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8676   cat conftest.out >&5
8677   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8678     lt_cv_nm_interface="MS dumpbin"
8679   fi
8680   rm -f conftest*
8681 fi
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8683 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8684
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8686 printf %s "checking whether ln -s works... " >&6; }
8687 LN_S=$as_ln_s
8688 if test "$LN_S" = "ln -s"; then
8689   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8690 printf "%s\n" "yes" >&6; }
8691 else
8692   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8693 printf "%s\n" "no, using $LN_S" >&6; }
8694 fi
8695
8696 # find the maximum length of command line arguments
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8698 printf %s "checking the maximum length of command line arguments... " >&6; }
8699 if test ${lt_cv_sys_max_cmd_len+y}
8700 then :
8701   printf %s "(cached) " >&6
8702 else $as_nop
8703     i=0
8704   teststring=ABCD
8705
8706   case $build_os in
8707   msdosdjgpp*)
8708     # On DJGPP, this test can blow up pretty badly due to problems in libc
8709     # (any single argument exceeding 2000 bytes causes a buffer overrun
8710     # during glob expansion).  Even if it were fixed, the result of this
8711     # check would be larger than it should be.
8712     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8713     ;;
8714
8715   gnu*)
8716     # Under GNU Hurd, this test is not required because there is
8717     # no limit to the length of command line arguments.
8718     # Libtool will interpret -1 as no limit whatsoever
8719     lt_cv_sys_max_cmd_len=-1;
8720     ;;
8721
8722   cygwin* | mingw* | cegcc*)
8723     # On Win9x/ME, this test blows up -- it succeeds, but takes
8724     # about 5 minutes as the teststring grows exponentially.
8725     # Worse, since 9x/ME are not pre-emptively multitasking,
8726     # you end up with a "frozen" computer, even though with patience
8727     # the test eventually succeeds (with a max line length of 256k).
8728     # Instead, let's just punt: use the minimum linelength reported by
8729     # all of the supported platforms: 8192 (on NT/2K/XP).
8730     lt_cv_sys_max_cmd_len=8192;
8731     ;;
8732
8733   mint*)
8734     # On MiNT this can take a long time and run out of memory.
8735     lt_cv_sys_max_cmd_len=8192;
8736     ;;
8737
8738   amigaos*)
8739     # On AmigaOS with pdksh, this test takes hours, literally.
8740     # So we just punt and use a minimum line length of 8192.
8741     lt_cv_sys_max_cmd_len=8192;
8742     ;;
8743
8744   bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
8745     # This has been around since 386BSD, at least.  Likely further.
8746     if test -x /sbin/sysctl; then
8747       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8748     elif test -x /usr/sbin/sysctl; then
8749       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8750     else
8751       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8752     fi
8753     # And add a safety zone
8754     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8755     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8756     ;;
8757
8758   interix*)
8759     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8760     lt_cv_sys_max_cmd_len=196608
8761     ;;
8762
8763   os2*)
8764     # The test takes a long time on OS/2.
8765     lt_cv_sys_max_cmd_len=8192
8766     ;;
8767
8768   osf*)
8769     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8770     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8771     # nice to cause kernel panics so lets avoid the loop below.
8772     # First set a reasonable default.
8773     lt_cv_sys_max_cmd_len=16384
8774     #
8775     if test -x /sbin/sysconfig; then
8776       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8777         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8778       esac
8779     fi
8780     ;;
8781   sco3.2v5*)
8782     lt_cv_sys_max_cmd_len=102400
8783     ;;
8784   sysv5* | sco5v6* | sysv4.2uw2*)
8785     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8786     if test -n "$kargmax"; then
8787       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[         ]//'`
8788     else
8789       lt_cv_sys_max_cmd_len=32768
8790     fi
8791     ;;
8792   *)
8793     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8794     if test -n "$lt_cv_sys_max_cmd_len" && \
8795        test undefined != "$lt_cv_sys_max_cmd_len"; then
8796       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8797       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8798     else
8799       # Make teststring a little bigger before we do anything with it.
8800       # a 1K string should be a reasonable start.
8801       for i in 1 2 3 4 5 6 7 8; do
8802         teststring=$teststring$teststring
8803       done
8804       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8805       # If test is not a shell built-in, we'll probably end up computing a
8806       # maximum length that is only half of the actual maximum length, but
8807       # we can't tell.
8808       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8809                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8810               test 17 != "$i" # 1/2 MB should be enough
8811       do
8812         i=`expr $i + 1`
8813         teststring=$teststring$teststring
8814       done
8815       # Only check the string length outside the loop.
8816       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8817       teststring=
8818       # Add a significant safety factor because C++ compilers can tack on
8819       # massive amounts of additional arguments before passing them to the
8820       # linker.  It appears as though 1/2 is a usable value.
8821       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8822     fi
8823     ;;
8824   esac
8825
8826 fi
8827
8828 if test -n "$lt_cv_sys_max_cmd_len"; then
8829   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8830 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8831 else
8832   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8833 printf "%s\n" "none" >&6; }
8834 fi
8835 max_cmd_len=$lt_cv_sys_max_cmd_len
8836
8837
8838
8839
8840
8841
8842 : ${CP="cp -f"}
8843 : ${MV="mv -f"}
8844 : ${RM="rm -f"}
8845
8846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8847   lt_unset=unset
8848 else
8849   lt_unset=false
8850 fi
8851
8852
8853
8854
8855
8856 # test EBCDIC or ASCII
8857 case `echo X|tr X '\101'` in
8858  A) # ASCII based system
8859     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8860   lt_SP2NL='tr \040 \012'
8861   lt_NL2SP='tr \015\012 \040\040'
8862   ;;
8863  *) # EBCDIC based system
8864   lt_SP2NL='tr \100 \n'
8865   lt_NL2SP='tr \r\n \100\100'
8866   ;;
8867 esac
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8878 printf %s "checking how to convert $build file names to $host format... " >&6; }
8879 if test ${lt_cv_to_host_file_cmd+y}
8880 then :
8881   printf %s "(cached) " >&6
8882 else $as_nop
8883   case $host in
8884   *-*-mingw* )
8885     case $build in
8886       *-*-mingw* ) # actually msys
8887         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8888         ;;
8889       *-*-cygwin* )
8890         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8891         ;;
8892       * ) # otherwise, assume *nix
8893         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8894         ;;
8895     esac
8896     ;;
8897   *-*-cygwin* )
8898     case $build in
8899       *-*-mingw* ) # actually msys
8900         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8901         ;;
8902       *-*-cygwin* )
8903         lt_cv_to_host_file_cmd=func_convert_file_noop
8904         ;;
8905       * ) # otherwise, assume *nix
8906         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8907         ;;
8908     esac
8909     ;;
8910   * ) # unhandled hosts (and "normal" native builds)
8911     lt_cv_to_host_file_cmd=func_convert_file_noop
8912     ;;
8913 esac
8914
8915 fi
8916
8917 to_host_file_cmd=$lt_cv_to_host_file_cmd
8918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8919 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8920
8921
8922
8923
8924
8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8926 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8927 if test ${lt_cv_to_tool_file_cmd+y}
8928 then :
8929   printf %s "(cached) " >&6
8930 else $as_nop
8931   #assume ordinary cross tools, or native build.
8932 lt_cv_to_tool_file_cmd=func_convert_file_noop
8933 case $host in
8934   *-*-mingw* )
8935     case $build in
8936       *-*-mingw* ) # actually msys
8937         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8938         ;;
8939     esac
8940     ;;
8941 esac
8942
8943 fi
8944
8945 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8947 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8948
8949
8950
8951
8952
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8954 printf %s "checking for $LD option to reload object files... " >&6; }
8955 if test ${lt_cv_ld_reload_flag+y}
8956 then :
8957   printf %s "(cached) " >&6
8958 else $as_nop
8959   lt_cv_ld_reload_flag='-r'
8960 fi
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8962 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8963 reload_flag=$lt_cv_ld_reload_flag
8964 case $reload_flag in
8965 "" | " "*) ;;
8966 *) reload_flag=" $reload_flag" ;;
8967 esac
8968 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8969 case $host_os in
8970   cygwin* | mingw* | pw32* | cegcc*)
8971     if test yes != "$GCC"; then
8972       reload_cmds=false
8973     fi
8974     ;;
8975   darwin*)
8976     if test yes = "$GCC"; then
8977       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8978     else
8979       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8980     fi
8981     ;;
8982 esac
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992 if test -n "$ac_tool_prefix"; then
8993   # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
8994 set dummy ${ac_tool_prefix}file; ac_word=$2
8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996 printf %s "checking for $ac_word... " >&6; }
8997 if test ${ac_cv_prog_FILECMD+y}
8998 then :
8999   printf %s "(cached) " >&6
9000 else $as_nop
9001   if test -n "$FILECMD"; then
9002   ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9006 do
9007   IFS=$as_save_IFS
9008   case $as_dir in #(((
9009     '') as_dir=./ ;;
9010     */) ;;
9011     *) as_dir=$as_dir/ ;;
9012   esac
9013     for ac_exec_ext in '' $ac_executable_extensions; do
9014   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9015     ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9016     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9017     break 2
9018   fi
9019 done
9020   done
9021 IFS=$as_save_IFS
9022
9023 fi
9024 fi
9025 FILECMD=$ac_cv_prog_FILECMD
9026 if test -n "$FILECMD"; then
9027   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9028 printf "%s\n" "$FILECMD" >&6; }
9029 else
9030   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 printf "%s\n" "no" >&6; }
9032 fi
9033
9034
9035 fi
9036 if test -z "$ac_cv_prog_FILECMD"; then
9037   ac_ct_FILECMD=$FILECMD
9038   # Extract the first word of "file", so it can be a program name with args.
9039 set dummy file; ac_word=$2
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 printf %s "checking for $ac_word... " >&6; }
9042 if test ${ac_cv_prog_ac_ct_FILECMD+y}
9043 then :
9044   printf %s "(cached) " >&6
9045 else $as_nop
9046   if test -n "$ac_ct_FILECMD"; then
9047   ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9048 else
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in $PATH
9051 do
9052   IFS=$as_save_IFS
9053   case $as_dir in #(((
9054     '') as_dir=./ ;;
9055     */) ;;
9056     *) as_dir=$as_dir/ ;;
9057   esac
9058     for ac_exec_ext in '' $ac_executable_extensions; do
9059   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9060     ac_cv_prog_ac_ct_FILECMD="file"
9061     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9062     break 2
9063   fi
9064 done
9065   done
9066 IFS=$as_save_IFS
9067
9068 fi
9069 fi
9070 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9071 if test -n "$ac_ct_FILECMD"; then
9072   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9073 printf "%s\n" "$ac_ct_FILECMD" >&6; }
9074 else
9075   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 printf "%s\n" "no" >&6; }
9077 fi
9078
9079   if test "x$ac_ct_FILECMD" = x; then
9080     FILECMD=":"
9081   else
9082     case $cross_compiling:$ac_tool_warned in
9083 yes:)
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9085 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9086 ac_tool_warned=yes ;;
9087 esac
9088     FILECMD=$ac_ct_FILECMD
9089   fi
9090 else
9091   FILECMD="$ac_cv_prog_FILECMD"
9092 fi
9093
9094
9095
9096
9097
9098
9099
9100 if test -n "$ac_tool_prefix"; then
9101   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9102 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104 printf %s "checking for $ac_word... " >&6; }
9105 if test ${ac_cv_prog_OBJDUMP+y}
9106 then :
9107   printf %s "(cached) " >&6
9108 else $as_nop
9109   if test -n "$OBJDUMP"; then
9110   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9111 else
9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113 for as_dir in $PATH
9114 do
9115   IFS=$as_save_IFS
9116   case $as_dir in #(((
9117     '') as_dir=./ ;;
9118     */) ;;
9119     *) as_dir=$as_dir/ ;;
9120   esac
9121     for ac_exec_ext in '' $ac_executable_extensions; do
9122   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9123     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9124     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9125     break 2
9126   fi
9127 done
9128   done
9129 IFS=$as_save_IFS
9130
9131 fi
9132 fi
9133 OBJDUMP=$ac_cv_prog_OBJDUMP
9134 if test -n "$OBJDUMP"; then
9135   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9136 printf "%s\n" "$OBJDUMP" >&6; }
9137 else
9138   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 printf "%s\n" "no" >&6; }
9140 fi
9141
9142
9143 fi
9144 if test -z "$ac_cv_prog_OBJDUMP"; then
9145   ac_ct_OBJDUMP=$OBJDUMP
9146   # Extract the first word of "objdump", so it can be a program name with args.
9147 set dummy objdump; ac_word=$2
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 printf %s "checking for $ac_word... " >&6; }
9150 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9151 then :
9152   printf %s "(cached) " >&6
9153 else $as_nop
9154   if test -n "$ac_ct_OBJDUMP"; then
9155   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9156 else
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9159 do
9160   IFS=$as_save_IFS
9161   case $as_dir in #(((
9162     '') as_dir=./ ;;
9163     */) ;;
9164     *) as_dir=$as_dir/ ;;
9165   esac
9166     for ac_exec_ext in '' $ac_executable_extensions; do
9167   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9168     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9169     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9170     break 2
9171   fi
9172 done
9173   done
9174 IFS=$as_save_IFS
9175
9176 fi
9177 fi
9178 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9179 if test -n "$ac_ct_OBJDUMP"; then
9180   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9181 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9182 else
9183   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184 printf "%s\n" "no" >&6; }
9185 fi
9186
9187   if test "x$ac_ct_OBJDUMP" = x; then
9188     OBJDUMP="false"
9189   else
9190     case $cross_compiling:$ac_tool_warned in
9191 yes:)
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9193 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9194 ac_tool_warned=yes ;;
9195 esac
9196     OBJDUMP=$ac_ct_OBJDUMP
9197   fi
9198 else
9199   OBJDUMP="$ac_cv_prog_OBJDUMP"
9200 fi
9201
9202 test -z "$OBJDUMP" && OBJDUMP=objdump
9203
9204
9205
9206
9207
9208
9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9210 printf %s "checking how to recognize dependent libraries... " >&6; }
9211 if test ${lt_cv_deplibs_check_method+y}
9212 then :
9213   printf %s "(cached) " >&6
9214 else $as_nop
9215   lt_cv_file_magic_cmd='$MAGIC_CMD'
9216 lt_cv_file_magic_test_file=
9217 lt_cv_deplibs_check_method='unknown'
9218 # Need to set the preceding variable on all platforms that support
9219 # interlibrary dependencies.
9220 # 'none' -- dependencies not supported.
9221 # 'unknown' -- same as none, but documents that we really don't know.
9222 # 'pass_all' -- all dependencies passed with no checks.
9223 # 'test_compile' -- check by making test program.
9224 # 'file_magic [[regex]]' -- check by looking for files in library path
9225 # that responds to the $file_magic_cmd with a given extended regex.
9226 # If you have 'file' or equivalent on your system and you're not sure
9227 # whether 'pass_all' will *always* work, you probably want this one.
9228
9229 case $host_os in
9230 aix[4-9]*)
9231   lt_cv_deplibs_check_method=pass_all
9232   ;;
9233
9234 beos*)
9235   lt_cv_deplibs_check_method=pass_all
9236   ;;
9237
9238 bsdi[45]*)
9239   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9240   lt_cv_file_magic_cmd='$FILECMD -L'
9241   lt_cv_file_magic_test_file=/shlib/libc.so
9242   ;;
9243
9244 cygwin*)
9245   # func_win32_libid is a shell function defined in ltmain.sh
9246   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9247   lt_cv_file_magic_cmd='func_win32_libid'
9248   ;;
9249
9250 mingw* | pw32*)
9251   # Base MSYS/MinGW do not provide the 'file' command needed by
9252   # func_win32_libid shell function, so use a weaker test based on 'objdump',
9253   # unless we find 'file', for example because we are cross-compiling.
9254   if ( file / ) >/dev/null 2>&1; then
9255     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9256     lt_cv_file_magic_cmd='func_win32_libid'
9257   else
9258     # Keep this pattern in sync with the one in func_win32_libid.
9259     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9260     lt_cv_file_magic_cmd='$OBJDUMP -f'
9261   fi
9262   ;;
9263
9264 cegcc*)
9265   # use the weaker test based on 'objdump'. See mingw*.
9266   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9267   lt_cv_file_magic_cmd='$OBJDUMP -f'
9268   ;;
9269
9270 darwin* | rhapsody*)
9271   lt_cv_deplibs_check_method=pass_all
9272   ;;
9273
9274 freebsd* | dragonfly* | midnightbsd*)
9275   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9276     case $host_cpu in
9277     i*86 )
9278       # Not sure whether the presence of OpenBSD here was a mistake.
9279       # Let's accept both of them until this is cleared up.
9280       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9281       lt_cv_file_magic_cmd=$FILECMD
9282       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9283       ;;
9284     esac
9285   else
9286     lt_cv_deplibs_check_method=pass_all
9287   fi
9288   ;;
9289
9290 haiku*)
9291   lt_cv_deplibs_check_method=pass_all
9292   ;;
9293
9294 hpux10.20* | hpux11*)
9295   lt_cv_file_magic_cmd=$FILECMD
9296   case $host_cpu in
9297   ia64*)
9298     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9299     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9300     ;;
9301   hppa*64*)
9302     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]'
9303     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9304     ;;
9305   *)
9306     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9307     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9308     ;;
9309   esac
9310   ;;
9311
9312 interix[3-9]*)
9313   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9314   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9315   ;;
9316
9317 irix5* | irix6* | nonstopux*)
9318   case $LD in
9319   *-32|*"-32 ") libmagic=32-bit;;
9320   *-n32|*"-n32 ") libmagic=N32;;
9321   *-64|*"-64 ") libmagic=64-bit;;
9322   *) libmagic=never-match;;
9323   esac
9324   lt_cv_deplibs_check_method=pass_all
9325   ;;
9326
9327 # This must be glibc/ELF.
9328 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9329   lt_cv_deplibs_check_method=pass_all
9330   ;;
9331
9332 netbsd* | netbsdelf*-gnu)
9333   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9334     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9335   else
9336     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9337   fi
9338   ;;
9339
9340 newos6*)
9341   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9342   lt_cv_file_magic_cmd=$FILECMD
9343   lt_cv_file_magic_test_file=/usr/lib/libnls.so
9344   ;;
9345
9346 *nto* | *qnx*)
9347   lt_cv_deplibs_check_method=pass_all
9348   ;;
9349
9350 openbsd* | bitrig*)
9351   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9352     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9353   else
9354     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9355   fi
9356   ;;
9357
9358 osf3* | osf4* | osf5*)
9359   lt_cv_deplibs_check_method=pass_all
9360   ;;
9361
9362 rdos*)
9363   lt_cv_deplibs_check_method=pass_all
9364   ;;
9365
9366 solaris*)
9367   lt_cv_deplibs_check_method=pass_all
9368   ;;
9369
9370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9371   lt_cv_deplibs_check_method=pass_all
9372   ;;
9373
9374 sysv4 | sysv4.3*)
9375   case $host_vendor in
9376   motorola)
9377     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]'
9378     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9379     ;;
9380   ncr)
9381     lt_cv_deplibs_check_method=pass_all
9382     ;;
9383   sequent)
9384     lt_cv_file_magic_cmd='/bin/file'
9385     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9386     ;;
9387   sni)
9388     lt_cv_file_magic_cmd='/bin/file'
9389     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9390     lt_cv_file_magic_test_file=/lib/libc.so
9391     ;;
9392   siemens)
9393     lt_cv_deplibs_check_method=pass_all
9394     ;;
9395   pc)
9396     lt_cv_deplibs_check_method=pass_all
9397     ;;
9398   esac
9399   ;;
9400
9401 tpf*)
9402   lt_cv_deplibs_check_method=pass_all
9403   ;;
9404 os2*)
9405   lt_cv_deplibs_check_method=pass_all
9406   ;;
9407 esac
9408
9409 fi
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9411 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9412
9413 file_magic_glob=
9414 want_nocaseglob=no
9415 if test "$build" = "$host"; then
9416   case $host_os in
9417   mingw* | pw32*)
9418     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9419       want_nocaseglob=yes
9420     else
9421       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9422     fi
9423     ;;
9424   esac
9425 fi
9426
9427 file_magic_cmd=$lt_cv_file_magic_cmd
9428 deplibs_check_method=$lt_cv_deplibs_check_method
9429 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452 if test -n "$ac_tool_prefix"; then
9453   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9454 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9456 printf %s "checking for $ac_word... " >&6; }
9457 if test ${ac_cv_prog_DLLTOOL+y}
9458 then :
9459   printf %s "(cached) " >&6
9460 else $as_nop
9461   if test -n "$DLLTOOL"; then
9462   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9463 else
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 for as_dir in $PATH
9466 do
9467   IFS=$as_save_IFS
9468   case $as_dir in #(((
9469     '') as_dir=./ ;;
9470     */) ;;
9471     *) as_dir=$as_dir/ ;;
9472   esac
9473     for ac_exec_ext in '' $ac_executable_extensions; do
9474   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9475     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9476     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9477     break 2
9478   fi
9479 done
9480   done
9481 IFS=$as_save_IFS
9482
9483 fi
9484 fi
9485 DLLTOOL=$ac_cv_prog_DLLTOOL
9486 if test -n "$DLLTOOL"; then
9487   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9488 printf "%s\n" "$DLLTOOL" >&6; }
9489 else
9490   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491 printf "%s\n" "no" >&6; }
9492 fi
9493
9494
9495 fi
9496 if test -z "$ac_cv_prog_DLLTOOL"; then
9497   ac_ct_DLLTOOL=$DLLTOOL
9498   # Extract the first word of "dlltool", so it can be a program name with args.
9499 set dummy dlltool; ac_word=$2
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9501 printf %s "checking for $ac_word... " >&6; }
9502 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9503 then :
9504   printf %s "(cached) " >&6
9505 else $as_nop
9506   if test -n "$ac_ct_DLLTOOL"; then
9507   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9508 else
9509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510 for as_dir in $PATH
9511 do
9512   IFS=$as_save_IFS
9513   case $as_dir in #(((
9514     '') as_dir=./ ;;
9515     */) ;;
9516     *) as_dir=$as_dir/ ;;
9517   esac
9518     for ac_exec_ext in '' $ac_executable_extensions; do
9519   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9520     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9521     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9522     break 2
9523   fi
9524 done
9525   done
9526 IFS=$as_save_IFS
9527
9528 fi
9529 fi
9530 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9531 if test -n "$ac_ct_DLLTOOL"; then
9532   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9533 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9534 else
9535   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 printf "%s\n" "no" >&6; }
9537 fi
9538
9539   if test "x$ac_ct_DLLTOOL" = x; then
9540     DLLTOOL="false"
9541   else
9542     case $cross_compiling:$ac_tool_warned in
9543 yes:)
9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9545 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9546 ac_tool_warned=yes ;;
9547 esac
9548     DLLTOOL=$ac_ct_DLLTOOL
9549   fi
9550 else
9551   DLLTOOL="$ac_cv_prog_DLLTOOL"
9552 fi
9553
9554 test -z "$DLLTOOL" && DLLTOOL=dlltool
9555
9556
9557
9558
9559
9560
9561
9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9563 printf %s "checking how to associate runtime and link libraries... " >&6; }
9564 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9565 then :
9566   printf %s "(cached) " >&6
9567 else $as_nop
9568   lt_cv_sharedlib_from_linklib_cmd='unknown'
9569
9570 case $host_os in
9571 cygwin* | mingw* | pw32* | cegcc*)
9572   # two different shell functions defined in ltmain.sh;
9573   # decide which one to use based on capabilities of $DLLTOOL
9574   case `$DLLTOOL --help 2>&1` in
9575   *--identify-strict*)
9576     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9577     ;;
9578   *)
9579     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9580     ;;
9581   esac
9582   ;;
9583 *)
9584   # fallback: assume linklib IS sharedlib
9585   lt_cv_sharedlib_from_linklib_cmd=$ECHO
9586   ;;
9587 esac
9588
9589 fi
9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9591 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9592 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9593 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9594
9595
9596
9597
9598
9599
9600
9601 if test -n "$ac_tool_prefix"; then
9602   for ac_prog in ar
9603   do
9604     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607 printf %s "checking for $ac_word... " >&6; }
9608 if test ${ac_cv_prog_AR+y}
9609 then :
9610   printf %s "(cached) " >&6
9611 else $as_nop
9612   if test -n "$AR"; then
9613   ac_cv_prog_AR="$AR" # Let the user override the test.
9614 else
9615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9616 for as_dir in $PATH
9617 do
9618   IFS=$as_save_IFS
9619   case $as_dir in #(((
9620     '') as_dir=./ ;;
9621     */) ;;
9622     *) as_dir=$as_dir/ ;;
9623   esac
9624     for ac_exec_ext in '' $ac_executable_extensions; do
9625   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9626     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9627     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9628     break 2
9629   fi
9630 done
9631   done
9632 IFS=$as_save_IFS
9633
9634 fi
9635 fi
9636 AR=$ac_cv_prog_AR
9637 if test -n "$AR"; then
9638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9639 printf "%s\n" "$AR" >&6; }
9640 else
9641   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9642 printf "%s\n" "no" >&6; }
9643 fi
9644
9645
9646     test -n "$AR" && break
9647   done
9648 fi
9649 if test -z "$AR"; then
9650   ac_ct_AR=$AR
9651   for ac_prog in ar
9652 do
9653   # Extract the first word of "$ac_prog", so it can be a program name with args.
9654 set dummy $ac_prog; ac_word=$2
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 printf %s "checking for $ac_word... " >&6; }
9657 if test ${ac_cv_prog_ac_ct_AR+y}
9658 then :
9659   printf %s "(cached) " >&6
9660 else $as_nop
9661   if test -n "$ac_ct_AR"; then
9662   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9663 else
9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665 for as_dir in $PATH
9666 do
9667   IFS=$as_save_IFS
9668   case $as_dir in #(((
9669     '') as_dir=./ ;;
9670     */) ;;
9671     *) as_dir=$as_dir/ ;;
9672   esac
9673     for ac_exec_ext in '' $ac_executable_extensions; do
9674   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9675     ac_cv_prog_ac_ct_AR="$ac_prog"
9676     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9677     break 2
9678   fi
9679 done
9680   done
9681 IFS=$as_save_IFS
9682
9683 fi
9684 fi
9685 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9686 if test -n "$ac_ct_AR"; then
9687   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9688 printf "%s\n" "$ac_ct_AR" >&6; }
9689 else
9690   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 printf "%s\n" "no" >&6; }
9692 fi
9693
9694
9695   test -n "$ac_ct_AR" && break
9696 done
9697
9698   if test "x$ac_ct_AR" = x; then
9699     AR="false"
9700   else
9701     case $cross_compiling:$ac_tool_warned in
9702 yes:)
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9704 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9705 ac_tool_warned=yes ;;
9706 esac
9707     AR=$ac_ct_AR
9708   fi
9709 fi
9710
9711 : ${AR=ar}
9712
9713
9714
9715
9716
9717
9718 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
9719 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
9720 # higher priority because thats what people were doing historically (setting
9721 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
9722 # variable obsoleted/removed.
9723
9724 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
9725 lt_ar_flags=$AR_FLAGS
9726
9727
9728
9729
9730
9731
9732 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
9733 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
9734
9735
9736
9737
9738
9739
9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9741 printf %s "checking for archiver @FILE support... " >&6; }
9742 if test ${lt_cv_ar_at_file+y}
9743 then :
9744   printf %s "(cached) " >&6
9745 else $as_nop
9746   lt_cv_ar_at_file=no
9747    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h.  */
9749
9750 int main (void)
9751 {
9752
9753  ;
9754  return 0;
9755 }
9756 _ACEOF
9757 if ac_fn_c_try_compile "$LINENO"
9758 then :
9759   echo conftest.$ac_objext > conftest.lst
9760       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9761       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9762   (eval $lt_ar_try) 2>&5
9763   ac_status=$?
9764   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9765   test $ac_status = 0; }
9766       if test 0 -eq "$ac_status"; then
9767         # Ensure the archiver fails upon bogus file names.
9768         rm -f conftest.$ac_objext libconftest.a
9769         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9770   (eval $lt_ar_try) 2>&5
9771   ac_status=$?
9772   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9773   test $ac_status = 0; }
9774         if test 0 -ne "$ac_status"; then
9775           lt_cv_ar_at_file=@
9776         fi
9777       fi
9778       rm -f conftest.* libconftest.a
9779
9780 fi
9781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9782
9783 fi
9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9785 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9786
9787 if test no = "$lt_cv_ar_at_file"; then
9788   archiver_list_spec=
9789 else
9790   archiver_list_spec=$lt_cv_ar_at_file
9791 fi
9792
9793
9794
9795
9796
9797
9798
9799 if test -n "$ac_tool_prefix"; then
9800   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9801 set dummy ${ac_tool_prefix}strip; ac_word=$2
9802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 printf %s "checking for $ac_word... " >&6; }
9804 if test ${ac_cv_prog_STRIP+y}
9805 then :
9806   printf %s "(cached) " >&6
9807 else $as_nop
9808   if test -n "$STRIP"; then
9809   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9810 else
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in $PATH
9813 do
9814   IFS=$as_save_IFS
9815   case $as_dir in #(((
9816     '') as_dir=./ ;;
9817     */) ;;
9818     *) as_dir=$as_dir/ ;;
9819   esac
9820     for ac_exec_ext in '' $ac_executable_extensions; do
9821   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9822     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9823     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9824     break 2
9825   fi
9826 done
9827   done
9828 IFS=$as_save_IFS
9829
9830 fi
9831 fi
9832 STRIP=$ac_cv_prog_STRIP
9833 if test -n "$STRIP"; then
9834   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9835 printf "%s\n" "$STRIP" >&6; }
9836 else
9837   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 printf "%s\n" "no" >&6; }
9839 fi
9840
9841
9842 fi
9843 if test -z "$ac_cv_prog_STRIP"; then
9844   ac_ct_STRIP=$STRIP
9845   # Extract the first word of "strip", so it can be a program name with args.
9846 set dummy strip; ac_word=$2
9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 printf %s "checking for $ac_word... " >&6; }
9849 if test ${ac_cv_prog_ac_ct_STRIP+y}
9850 then :
9851   printf %s "(cached) " >&6
9852 else $as_nop
9853   if test -n "$ac_ct_STRIP"; then
9854   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9855 else
9856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9857 for as_dir in $PATH
9858 do
9859   IFS=$as_save_IFS
9860   case $as_dir in #(((
9861     '') as_dir=./ ;;
9862     */) ;;
9863     *) as_dir=$as_dir/ ;;
9864   esac
9865     for ac_exec_ext in '' $ac_executable_extensions; do
9866   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9867     ac_cv_prog_ac_ct_STRIP="strip"
9868     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9869     break 2
9870   fi
9871 done
9872   done
9873 IFS=$as_save_IFS
9874
9875 fi
9876 fi
9877 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9878 if test -n "$ac_ct_STRIP"; then
9879   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9880 printf "%s\n" "$ac_ct_STRIP" >&6; }
9881 else
9882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 printf "%s\n" "no" >&6; }
9884 fi
9885
9886   if test "x$ac_ct_STRIP" = x; then
9887     STRIP=":"
9888   else
9889     case $cross_compiling:$ac_tool_warned in
9890 yes:)
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9892 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9893 ac_tool_warned=yes ;;
9894 esac
9895     STRIP=$ac_ct_STRIP
9896   fi
9897 else
9898   STRIP="$ac_cv_prog_STRIP"
9899 fi
9900
9901 test -z "$STRIP" && STRIP=:
9902
9903
9904
9905
9906
9907
9908 if test -n "$ac_tool_prefix"; then
9909   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9910 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912 printf %s "checking for $ac_word... " >&6; }
9913 if test ${ac_cv_prog_RANLIB+y}
9914 then :
9915   printf %s "(cached) " >&6
9916 else $as_nop
9917   if test -n "$RANLIB"; then
9918   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9919 else
9920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 for as_dir in $PATH
9922 do
9923   IFS=$as_save_IFS
9924   case $as_dir in #(((
9925     '') as_dir=./ ;;
9926     */) ;;
9927     *) as_dir=$as_dir/ ;;
9928   esac
9929     for ac_exec_ext in '' $ac_executable_extensions; do
9930   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9931     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9932     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9933     break 2
9934   fi
9935 done
9936   done
9937 IFS=$as_save_IFS
9938
9939 fi
9940 fi
9941 RANLIB=$ac_cv_prog_RANLIB
9942 if test -n "$RANLIB"; then
9943   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9944 printf "%s\n" "$RANLIB" >&6; }
9945 else
9946   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 printf "%s\n" "no" >&6; }
9948 fi
9949
9950
9951 fi
9952 if test -z "$ac_cv_prog_RANLIB"; then
9953   ac_ct_RANLIB=$RANLIB
9954   # Extract the first word of "ranlib", so it can be a program name with args.
9955 set dummy ranlib; ac_word=$2
9956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9957 printf %s "checking for $ac_word... " >&6; }
9958 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9959 then :
9960   printf %s "(cached) " >&6
9961 else $as_nop
9962   if test -n "$ac_ct_RANLIB"; then
9963   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9964 else
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in $PATH
9967 do
9968   IFS=$as_save_IFS
9969   case $as_dir in #(((
9970     '') as_dir=./ ;;
9971     */) ;;
9972     *) as_dir=$as_dir/ ;;
9973   esac
9974     for ac_exec_ext in '' $ac_executable_extensions; do
9975   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9976     ac_cv_prog_ac_ct_RANLIB="ranlib"
9977     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9978     break 2
9979   fi
9980 done
9981   done
9982 IFS=$as_save_IFS
9983
9984 fi
9985 fi
9986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9987 if test -n "$ac_ct_RANLIB"; then
9988   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9989 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9990 else
9991   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992 printf "%s\n" "no" >&6; }
9993 fi
9994
9995   if test "x$ac_ct_RANLIB" = x; then
9996     RANLIB=":"
9997   else
9998     case $cross_compiling:$ac_tool_warned in
9999 yes:)
10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10001 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10002 ac_tool_warned=yes ;;
10003 esac
10004     RANLIB=$ac_ct_RANLIB
10005   fi
10006 else
10007   RANLIB="$ac_cv_prog_RANLIB"
10008 fi
10009
10010 test -z "$RANLIB" && RANLIB=:
10011
10012
10013
10014
10015
10016
10017 # Determine commands to create old-style static archives.
10018 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10019 old_postinstall_cmds='chmod 644 $oldlib'
10020 old_postuninstall_cmds=
10021
10022 if test -n "$RANLIB"; then
10023   case $host_os in
10024   bitrig* | openbsd*)
10025     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10026     ;;
10027   *)
10028     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10029     ;;
10030   esac
10031   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10032 fi
10033
10034 case $host_os in
10035   darwin*)
10036     lock_old_archive_extraction=yes ;;
10037   *)
10038     lock_old_archive_extraction=no ;;
10039 esac
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079 # If no C compiler was specified, use CC.
10080 LTCC=${LTCC-"$CC"}
10081
10082 # If no C compiler flags were specified, use CFLAGS.
10083 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10084
10085 # Allow CC to be a program name with arguments.
10086 compiler=$CC
10087
10088
10089 # Check for command to grab the raw symbol name followed by C symbol from nm.
10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10091 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10092 if test ${lt_cv_sys_global_symbol_pipe+y}
10093 then :
10094   printf %s "(cached) " >&6
10095 else $as_nop
10096
10097 # These are sane defaults that work on at least a few old systems.
10098 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10099
10100 # Character class describing NM global symbol codes.
10101 symcode='[BCDEGRST]'
10102
10103 # Regexp to match symbols that can be accessed directly from C.
10104 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10105
10106 # Define system-specific variables.
10107 case $host_os in
10108 aix*)
10109   symcode='[BCDT]'
10110   ;;
10111 cygwin* | mingw* | pw32* | cegcc*)
10112   symcode='[ABCDGISTW]'
10113   ;;
10114 hpux*)
10115   if test ia64 = "$host_cpu"; then
10116     symcode='[ABCDEGRST]'
10117   fi
10118   ;;
10119 irix* | nonstopux*)
10120   symcode='[BCDEGRST]'
10121   ;;
10122 osf*)
10123   symcode='[BCDEGQRST]'
10124   ;;
10125 solaris*)
10126   symcode='[BDRT]'
10127   ;;
10128 sco3.2v5*)
10129   symcode='[DT]'
10130   ;;
10131 sysv4.2uw2*)
10132   symcode='[DT]'
10133   ;;
10134 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10135   symcode='[ABDT]'
10136   ;;
10137 sysv4)
10138   symcode='[DFNSTU]'
10139   ;;
10140 esac
10141
10142 # If we're using GNU nm, then use its standard symbol codes.
10143 case `$NM -V 2>&1` in
10144 *GNU* | *'with BFD'*)
10145   symcode='[ABCDGIRSTW]' ;;
10146 esac
10147
10148 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10149   # Gets list of data symbols to import.
10150   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10151   # Adjust the below global symbol transforms to fixup imported variables.
10152   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10153   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10154   lt_c_name_lib_hook="\
10155   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10156   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10157 else
10158   # Disable hooks by default.
10159   lt_cv_sys_global_symbol_to_import=
10160   lt_cdecl_hook=
10161   lt_c_name_hook=
10162   lt_c_name_lib_hook=
10163 fi
10164
10165 # Transform an extracted symbol line into a proper C declaration.
10166 # Some systems (esp. on ia64) link data and code symbols differently,
10167 # so use this general approach.
10168 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10169 $lt_cdecl_hook\
10170 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10171 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10172
10173 # Transform an extracted symbol line into symbol name and symbol address
10174 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
10175 $lt_c_name_hook\
10176 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10177 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10178
10179 # Transform an extracted symbol line into symbol name with lib prefix and
10180 # symbol address.
10181 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
10182 $lt_c_name_lib_hook\
10183 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10184 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10185 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10186
10187 # Handle CRLF in mingw tool chain
10188 opt_cr=
10189 case $build_os in
10190 mingw*)
10191   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10192   ;;
10193 esac
10194
10195 # Try without a prefix underscore, then with it.
10196 for ac_symprfx in "" "_"; do
10197
10198   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10199   symxfrm="\\1 $ac_symprfx\\2 \\2"
10200
10201   # Write the raw and C identifiers.
10202   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10203     # Fake it for dumpbin and say T for any non-static function,
10204     # D for any global variable and I for any imported variable.
10205     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
10206     # which start with @ or ?.
10207     lt_cv_sys_global_symbol_pipe="$AWK '"\
10208 "     {last_section=section; section=\$ 3};"\
10209 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10210 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10211 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10212 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10213 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10214 "     \$ 0!~/External *\|/{next};"\
10215 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10216 "     {if(hide[section]) next};"\
10217 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10218 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10219 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10220 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10221 "     ' prfx=^$ac_symprfx"
10222   else
10223     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[     ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10224   fi
10225   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
10226
10227   # Check to see that the pipe works correctly.
10228   pipe_works=no
10229
10230   rm -f conftest*
10231   cat > conftest.$ac_ext <<_LT_EOF
10232 #ifdef __cplusplus
10233 extern "C" {
10234 #endif
10235 char nm_test_var;
10236 void nm_test_func(void);
10237 void nm_test_func(void){}
10238 #ifdef __cplusplus
10239 }
10240 #endif
10241 int main(){nm_test_var='a';nm_test_func();return(0);}
10242 _LT_EOF
10243
10244   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10245   (eval $ac_compile) 2>&5
10246   ac_status=$?
10247   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10248   test $ac_status = 0; }; then
10249     # Now try to grab the symbols.
10250     nlist=conftest.nm
10251     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10252     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10253       # Try sorting and uniquifying the output.
10254       if sort "$nlist" | uniq > "$nlist"T; then
10255         mv -f "$nlist"T "$nlist"
10256       else
10257         rm -f "$nlist"T
10258       fi
10259
10260       # Make sure that we snagged all the symbols we need.
10261       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10262         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10263           cat <<_LT_EOF > conftest.$ac_ext
10264 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10265 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10266 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10267    relocations are performed -- see ld's documentation on pseudo-relocs.  */
10268 # define LT_DLSYM_CONST
10269 #elif defined __osf__
10270 /* This system does not cope well with relocations in const data.  */
10271 # define LT_DLSYM_CONST
10272 #else
10273 # define LT_DLSYM_CONST const
10274 #endif
10275
10276 #ifdef __cplusplus
10277 extern "C" {
10278 #endif
10279
10280 _LT_EOF
10281           # Now generate the symbol file.
10282           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10283
10284           cat <<_LT_EOF >> conftest.$ac_ext
10285
10286 /* The mapping between symbol names and symbols.  */
10287 LT_DLSYM_CONST struct {
10288   const char *name;
10289   void       *address;
10290 }
10291 lt__PROGRAM__LTX_preloaded_symbols[] =
10292 {
10293   { "@PROGRAM@", (void *) 0 },
10294 _LT_EOF
10295           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10296           cat <<\_LT_EOF >> conftest.$ac_ext
10297   {0, (void *) 0}
10298 };
10299
10300 /* This works around a problem in FreeBSD linker */
10301 #ifdef FREEBSD_WORKAROUND
10302 static const void *lt_preloaded_setup() {
10303   return lt__PROGRAM__LTX_preloaded_symbols;
10304 }
10305 #endif
10306
10307 #ifdef __cplusplus
10308 }
10309 #endif
10310 _LT_EOF
10311           # Now try linking the two files.
10312           mv conftest.$ac_objext conftstm.$ac_objext
10313           lt_globsym_save_LIBS=$LIBS
10314           lt_globsym_save_CFLAGS=$CFLAGS
10315           LIBS=conftstm.$ac_objext
10316           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10317           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10318   (eval $ac_link) 2>&5
10319   ac_status=$?
10320   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10321   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10322             pipe_works=yes
10323           fi
10324           LIBS=$lt_globsym_save_LIBS
10325           CFLAGS=$lt_globsym_save_CFLAGS
10326         else
10327           echo "cannot find nm_test_func in $nlist" >&5
10328         fi
10329       else
10330         echo "cannot find nm_test_var in $nlist" >&5
10331       fi
10332     else
10333       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10334     fi
10335   else
10336     echo "$progname: failed program was:" >&5
10337     cat conftest.$ac_ext >&5
10338   fi
10339   rm -rf conftest* conftst*
10340
10341   # Do not use the global_symbol_pipe unless it works.
10342   if test yes = "$pipe_works"; then
10343     break
10344   else
10345     lt_cv_sys_global_symbol_pipe=
10346   fi
10347 done
10348
10349 fi
10350
10351 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10352   lt_cv_sys_global_symbol_to_cdecl=
10353 fi
10354 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10355   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10356 printf "%s\n" "failed" >&6; }
10357 else
10358   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10359 printf "%s\n" "ok" >&6; }
10360 fi
10361
10362 # Response file support.
10363 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10364   nm_file_list_spec='@'
10365 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10366   nm_file_list_spec='@'
10367 fi
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10406 printf %s "checking for sysroot... " >&6; }
10407
10408 # Check whether --with-sysroot was given.
10409 if test ${with_sysroot+y}
10410 then :
10411   withval=$with_sysroot;
10412 else $as_nop
10413   with_sysroot=no
10414 fi
10415
10416
10417 lt_sysroot=
10418 case $with_sysroot in #(
10419  yes)
10420    if test yes = "$GCC"; then
10421      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10422    fi
10423    ;; #(
10424  /*)
10425    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
10426    ;; #(
10427  no|'')
10428    ;; #(
10429  *)
10430    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10431 printf "%s\n" "$with_sysroot" >&6; }
10432    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10433    ;;
10434 esac
10435
10436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10437 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10438
10439
10440
10441
10442
10443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10444 printf %s "checking for a working dd... " >&6; }
10445 if test ${ac_cv_path_lt_DD+y}
10446 then :
10447   printf %s "(cached) " >&6
10448 else $as_nop
10449   printf 0123456789abcdef0123456789abcdef >conftest.i
10450 cat conftest.i conftest.i >conftest2.i
10451 : ${lt_DD:=$DD}
10452 if test -z "$lt_DD"; then
10453   ac_path_lt_DD_found=false
10454   # Loop through the user's path and test for each of PROGNAME-LIST
10455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in $PATH
10457 do
10458   IFS=$as_save_IFS
10459   case $as_dir in #(((
10460     '') as_dir=./ ;;
10461     */) ;;
10462     *) as_dir=$as_dir/ ;;
10463   esac
10464     for ac_prog in dd
10465    do
10466     for ac_exec_ext in '' $ac_executable_extensions; do
10467       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10468       as_fn_executable_p "$ac_path_lt_DD" || continue
10469 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10470   cmp -s conftest.i conftest.out \
10471   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10472 fi
10473       $ac_path_lt_DD_found && break 3
10474     done
10475   done
10476   done
10477 IFS=$as_save_IFS
10478   if test -z "$ac_cv_path_lt_DD"; then
10479     :
10480   fi
10481 else
10482   ac_cv_path_lt_DD=$lt_DD
10483 fi
10484
10485 rm -f conftest.i conftest2.i conftest.out
10486 fi
10487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10488 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10489
10490
10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10492 printf %s "checking how to truncate binary pipes... " >&6; }
10493 if test ${lt_cv_truncate_bin+y}
10494 then :
10495   printf %s "(cached) " >&6
10496 else $as_nop
10497   printf 0123456789abcdef0123456789abcdef >conftest.i
10498 cat conftest.i conftest.i >conftest2.i
10499 lt_cv_truncate_bin=
10500 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10501   cmp -s conftest.i conftest.out \
10502   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10503 fi
10504 rm -f conftest.i conftest2.i conftest.out
10505 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10506 fi
10507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10508 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10509
10510
10511
10512
10513
10514
10515
10516 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10517 func_cc_basename ()
10518 {
10519     for cc_temp in $*""; do
10520       case $cc_temp in
10521         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10522         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10523         \-*) ;;
10524         *) break;;
10525       esac
10526     done
10527     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10528 }
10529
10530 # Check whether --enable-libtool-lock was given.
10531 if test ${enable_libtool_lock+y}
10532 then :
10533   enableval=$enable_libtool_lock;
10534 fi
10535
10536 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10537
10538 # Some flags need to be propagated to the compiler or linker for good
10539 # libtool support.
10540 case $host in
10541 ia64-*-hpux*)
10542   # Find out what ABI is being produced by ac_compile, and set mode
10543   # options accordingly.
10544   echo 'int i;' > conftest.$ac_ext
10545   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10546   (eval $ac_compile) 2>&5
10547   ac_status=$?
10548   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10549   test $ac_status = 0; }; then
10550     case `$FILECMD conftest.$ac_objext` in
10551       *ELF-32*)
10552         HPUX_IA64_MODE=32
10553         ;;
10554       *ELF-64*)
10555         HPUX_IA64_MODE=64
10556         ;;
10557     esac
10558   fi
10559   rm -rf conftest*
10560   ;;
10561 *-*-irix6*)
10562   # Find out what ABI is being produced by ac_compile, and set linker
10563   # options accordingly.
10564   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10565   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10566   (eval $ac_compile) 2>&5
10567   ac_status=$?
10568   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10569   test $ac_status = 0; }; then
10570     if test yes = "$lt_cv_prog_gnu_ld"; then
10571       case `$FILECMD conftest.$ac_objext` in
10572         *32-bit*)
10573           LD="${LD-ld} -melf32bsmip"
10574           ;;
10575         *N32*)
10576           LD="${LD-ld} -melf32bmipn32"
10577           ;;
10578         *64-bit*)
10579           LD="${LD-ld} -melf64bmip"
10580         ;;
10581       esac
10582     else
10583       case `$FILECMD conftest.$ac_objext` in
10584         *32-bit*)
10585           LD="${LD-ld} -32"
10586           ;;
10587         *N32*)
10588           LD="${LD-ld} -n32"
10589           ;;
10590         *64-bit*)
10591           LD="${LD-ld} -64"
10592           ;;
10593       esac
10594     fi
10595   fi
10596   rm -rf conftest*
10597   ;;
10598
10599 mips64*-*linux*)
10600   # Find out what ABI is being produced by ac_compile, and set linker
10601   # options accordingly.
10602   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10603   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10604   (eval $ac_compile) 2>&5
10605   ac_status=$?
10606   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10607   test $ac_status = 0; }; then
10608     emul=elf
10609     case `$FILECMD conftest.$ac_objext` in
10610       *32-bit*)
10611         emul="${emul}32"
10612         ;;
10613       *64-bit*)
10614         emul="${emul}64"
10615         ;;
10616     esac
10617     case `$FILECMD conftest.$ac_objext` in
10618       *MSB*)
10619         emul="${emul}btsmip"
10620         ;;
10621       *LSB*)
10622         emul="${emul}ltsmip"
10623         ;;
10624     esac
10625     case `$FILECMD conftest.$ac_objext` in
10626       *N32*)
10627         emul="${emul}n32"
10628         ;;
10629     esac
10630     LD="${LD-ld} -m $emul"
10631   fi
10632   rm -rf conftest*
10633   ;;
10634
10635 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10636 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10637   # Find out what ABI is being produced by ac_compile, and set linker
10638   # options accordingly.  Note that the listed cases only cover the
10639   # situations where additional linker options are needed (such as when
10640   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10641   # vice versa); the common cases where no linker options are needed do
10642   # not appear in the list.
10643   echo 'int i;' > conftest.$ac_ext
10644   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10645   (eval $ac_compile) 2>&5
10646   ac_status=$?
10647   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10648   test $ac_status = 0; }; then
10649     case `$FILECMD conftest.o` in
10650       *32-bit*)
10651         case $host in
10652           x86_64-*kfreebsd*-gnu)
10653             LD="${LD-ld} -m elf_i386_fbsd"
10654             ;;
10655           x86_64-*linux*)
10656             case `$FILECMD conftest.o` in
10657               *x86-64*)
10658                 LD="${LD-ld} -m elf32_x86_64"
10659                 ;;
10660               *)
10661                 LD="${LD-ld} -m elf_i386"
10662                 ;;
10663             esac
10664             ;;
10665           powerpc64le-*linux*)
10666             LD="${LD-ld} -m elf32lppclinux"
10667             ;;
10668           powerpc64-*linux*)
10669             LD="${LD-ld} -m elf32ppclinux"
10670             ;;
10671           s390x-*linux*)
10672             LD="${LD-ld} -m elf_s390"
10673             ;;
10674           sparc64-*linux*)
10675             LD="${LD-ld} -m elf32_sparc"
10676             ;;
10677         esac
10678         ;;
10679       *64-bit*)
10680         case $host in
10681           x86_64-*kfreebsd*-gnu)
10682             LD="${LD-ld} -m elf_x86_64_fbsd"
10683             ;;
10684           x86_64-*linux*)
10685             LD="${LD-ld} -m elf_x86_64"
10686             ;;
10687           powerpcle-*linux*)
10688             LD="${LD-ld} -m elf64lppc"
10689             ;;
10690           powerpc-*linux*)
10691             LD="${LD-ld} -m elf64ppc"
10692             ;;
10693           s390*-*linux*|s390*-*tpf*)
10694             LD="${LD-ld} -m elf64_s390"
10695             ;;
10696           sparc*-*linux*)
10697             LD="${LD-ld} -m elf64_sparc"
10698             ;;
10699         esac
10700         ;;
10701     esac
10702   fi
10703   rm -rf conftest*
10704   ;;
10705
10706 *-*-sco3.2v5*)
10707   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10708   SAVE_CFLAGS=$CFLAGS
10709   CFLAGS="$CFLAGS -belf"
10710   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10711 printf %s "checking whether the C compiler needs -belf... " >&6; }
10712 if test ${lt_cv_cc_needs_belf+y}
10713 then :
10714   printf %s "(cached) " >&6
10715 else $as_nop
10716   ac_ext=c
10717 ac_cpp='$CPP $CPPFLAGS'
10718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10721
10722      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h.  */
10724
10725 int main (void)
10726 {
10727
10728  ;
10729  return 0;
10730 }
10731 _ACEOF
10732 if ac_fn_c_try_link "$LINENO"
10733 then :
10734   lt_cv_cc_needs_belf=yes
10735 else $as_nop
10736   lt_cv_cc_needs_belf=no
10737 fi
10738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10739     conftest$ac_exeext conftest.$ac_ext
10740      ac_ext=c
10741 ac_cpp='$CPP $CPPFLAGS'
10742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10745
10746 fi
10747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10748 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10749   if test yes != "$lt_cv_cc_needs_belf"; then
10750     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10751     CFLAGS=$SAVE_CFLAGS
10752   fi
10753   ;;
10754 *-*solaris*)
10755   # Find out what ABI is being produced by ac_compile, and set linker
10756   # options accordingly.
10757   echo 'int i;' > conftest.$ac_ext
10758   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10759   (eval $ac_compile) 2>&5
10760   ac_status=$?
10761   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10762   test $ac_status = 0; }; then
10763     case `$FILECMD conftest.o` in
10764     *64-bit*)
10765       case $lt_cv_prog_gnu_ld in
10766       yes*)
10767         case $host in
10768         i?86-*-solaris*|x86_64-*-solaris*)
10769           LD="${LD-ld} -m elf_x86_64"
10770           ;;
10771         sparc*-*-solaris*)
10772           LD="${LD-ld} -m elf64_sparc"
10773           ;;
10774         esac
10775         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10776         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10777           LD=${LD-ld}_sol2
10778         fi
10779         ;;
10780       *)
10781         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10782           LD="${LD-ld} -64"
10783         fi
10784         ;;
10785       esac
10786       ;;
10787     esac
10788   fi
10789   rm -rf conftest*
10790   ;;
10791 esac
10792
10793 need_locks=$enable_libtool_lock
10794
10795 if test -n "$ac_tool_prefix"; then
10796   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10797 set dummy ${ac_tool_prefix}mt; ac_word=$2
10798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799 printf %s "checking for $ac_word... " >&6; }
10800 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10801 then :
10802   printf %s "(cached) " >&6
10803 else $as_nop
10804   if test -n "$MANIFEST_TOOL"; then
10805   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10806 else
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808 for as_dir in $PATH
10809 do
10810   IFS=$as_save_IFS
10811   case $as_dir in #(((
10812     '') as_dir=./ ;;
10813     */) ;;
10814     *) as_dir=$as_dir/ ;;
10815   esac
10816     for ac_exec_ext in '' $ac_executable_extensions; do
10817   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10818     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10819     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10820     break 2
10821   fi
10822 done
10823   done
10824 IFS=$as_save_IFS
10825
10826 fi
10827 fi
10828 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10829 if test -n "$MANIFEST_TOOL"; then
10830   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10831 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10832 else
10833   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 printf "%s\n" "no" >&6; }
10835 fi
10836
10837
10838 fi
10839 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10840   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10841   # Extract the first word of "mt", so it can be a program name with args.
10842 set dummy mt; ac_word=$2
10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 printf %s "checking for $ac_word... " >&6; }
10845 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10846 then :
10847   printf %s "(cached) " >&6
10848 else $as_nop
10849   if test -n "$ac_ct_MANIFEST_TOOL"; then
10850   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10851 else
10852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10854 do
10855   IFS=$as_save_IFS
10856   case $as_dir in #(((
10857     '') as_dir=./ ;;
10858     */) ;;
10859     *) as_dir=$as_dir/ ;;
10860   esac
10861     for ac_exec_ext in '' $ac_executable_extensions; do
10862   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10863     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10864     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10865     break 2
10866   fi
10867 done
10868   done
10869 IFS=$as_save_IFS
10870
10871 fi
10872 fi
10873 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10874 if test -n "$ac_ct_MANIFEST_TOOL"; then
10875   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10876 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10877 else
10878   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879 printf "%s\n" "no" >&6; }
10880 fi
10881
10882   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10883     MANIFEST_TOOL=":"
10884   else
10885     case $cross_compiling:$ac_tool_warned in
10886 yes:)
10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10888 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10889 ac_tool_warned=yes ;;
10890 esac
10891     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10892   fi
10893 else
10894   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10895 fi
10896
10897 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10899 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10900 if test ${lt_cv_path_mainfest_tool+y}
10901 then :
10902   printf %s "(cached) " >&6
10903 else $as_nop
10904   lt_cv_path_mainfest_tool=no
10905   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10906   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10907   cat conftest.err >&5
10908   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10909     lt_cv_path_mainfest_tool=yes
10910   fi
10911   rm -f conftest*
10912 fi
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10914 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10915 if test yes != "$lt_cv_path_mainfest_tool"; then
10916   MANIFEST_TOOL=:
10917 fi
10918
10919
10920
10921
10922
10923
10924   case $host_os in
10925     rhapsody* | darwin*)
10926     if test -n "$ac_tool_prefix"; then
10927   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10928 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10930 printf %s "checking for $ac_word... " >&6; }
10931 if test ${ac_cv_prog_DSYMUTIL+y}
10932 then :
10933   printf %s "(cached) " >&6
10934 else $as_nop
10935   if test -n "$DSYMUTIL"; then
10936   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10937 else
10938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939 for as_dir in $PATH
10940 do
10941   IFS=$as_save_IFS
10942   case $as_dir in #(((
10943     '') as_dir=./ ;;
10944     */) ;;
10945     *) as_dir=$as_dir/ ;;
10946   esac
10947     for ac_exec_ext in '' $ac_executable_extensions; do
10948   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10949     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10950     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10951     break 2
10952   fi
10953 done
10954   done
10955 IFS=$as_save_IFS
10956
10957 fi
10958 fi
10959 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10960 if test -n "$DSYMUTIL"; then
10961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10962 printf "%s\n" "$DSYMUTIL" >&6; }
10963 else
10964   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 printf "%s\n" "no" >&6; }
10966 fi
10967
10968
10969 fi
10970 if test -z "$ac_cv_prog_DSYMUTIL"; then
10971   ac_ct_DSYMUTIL=$DSYMUTIL
10972   # Extract the first word of "dsymutil", so it can be a program name with args.
10973 set dummy dsymutil; ac_word=$2
10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975 printf %s "checking for $ac_word... " >&6; }
10976 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10977 then :
10978   printf %s "(cached) " >&6
10979 else $as_nop
10980   if test -n "$ac_ct_DSYMUTIL"; then
10981   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10982 else
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10985 do
10986   IFS=$as_save_IFS
10987   case $as_dir in #(((
10988     '') as_dir=./ ;;
10989     */) ;;
10990     *) as_dir=$as_dir/ ;;
10991   esac
10992     for ac_exec_ext in '' $ac_executable_extensions; do
10993   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10994     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10995     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10996     break 2
10997   fi
10998 done
10999   done
11000 IFS=$as_save_IFS
11001
11002 fi
11003 fi
11004 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11005 if test -n "$ac_ct_DSYMUTIL"; then
11006   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11007 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11008 else
11009   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 printf "%s\n" "no" >&6; }
11011 fi
11012
11013   if test "x$ac_ct_DSYMUTIL" = x; then
11014     DSYMUTIL=":"
11015   else
11016     case $cross_compiling:$ac_tool_warned in
11017 yes:)
11018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11019 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11020 ac_tool_warned=yes ;;
11021 esac
11022     DSYMUTIL=$ac_ct_DSYMUTIL
11023   fi
11024 else
11025   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11026 fi
11027
11028     if test -n "$ac_tool_prefix"; then
11029   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11030 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 printf %s "checking for $ac_word... " >&6; }
11033 if test ${ac_cv_prog_NMEDIT+y}
11034 then :
11035   printf %s "(cached) " >&6
11036 else $as_nop
11037   if test -n "$NMEDIT"; then
11038   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11039 else
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11042 do
11043   IFS=$as_save_IFS
11044   case $as_dir in #(((
11045     '') as_dir=./ ;;
11046     */) ;;
11047     *) as_dir=$as_dir/ ;;
11048   esac
11049     for ac_exec_ext in '' $ac_executable_extensions; do
11050   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11051     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11052     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11053     break 2
11054   fi
11055 done
11056   done
11057 IFS=$as_save_IFS
11058
11059 fi
11060 fi
11061 NMEDIT=$ac_cv_prog_NMEDIT
11062 if test -n "$NMEDIT"; then
11063   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11064 printf "%s\n" "$NMEDIT" >&6; }
11065 else
11066   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 printf "%s\n" "no" >&6; }
11068 fi
11069
11070
11071 fi
11072 if test -z "$ac_cv_prog_NMEDIT"; then
11073   ac_ct_NMEDIT=$NMEDIT
11074   # Extract the first word of "nmedit", so it can be a program name with args.
11075 set dummy nmedit; ac_word=$2
11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077 printf %s "checking for $ac_word... " >&6; }
11078 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11079 then :
11080   printf %s "(cached) " >&6
11081 else $as_nop
11082   if test -n "$ac_ct_NMEDIT"; then
11083   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11084 else
11085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086 for as_dir in $PATH
11087 do
11088   IFS=$as_save_IFS
11089   case $as_dir in #(((
11090     '') as_dir=./ ;;
11091     */) ;;
11092     *) as_dir=$as_dir/ ;;
11093   esac
11094     for ac_exec_ext in '' $ac_executable_extensions; do
11095   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11096     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11097     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11098     break 2
11099   fi
11100 done
11101   done
11102 IFS=$as_save_IFS
11103
11104 fi
11105 fi
11106 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11107 if test -n "$ac_ct_NMEDIT"; then
11108   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11109 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11110 else
11111   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112 printf "%s\n" "no" >&6; }
11113 fi
11114
11115   if test "x$ac_ct_NMEDIT" = x; then
11116     NMEDIT=":"
11117   else
11118     case $cross_compiling:$ac_tool_warned in
11119 yes:)
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11121 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11122 ac_tool_warned=yes ;;
11123 esac
11124     NMEDIT=$ac_ct_NMEDIT
11125   fi
11126 else
11127   NMEDIT="$ac_cv_prog_NMEDIT"
11128 fi
11129
11130     if test -n "$ac_tool_prefix"; then
11131   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11132 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134 printf %s "checking for $ac_word... " >&6; }
11135 if test ${ac_cv_prog_LIPO+y}
11136 then :
11137   printf %s "(cached) " >&6
11138 else $as_nop
11139   if test -n "$LIPO"; then
11140   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11141 else
11142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143 for as_dir in $PATH
11144 do
11145   IFS=$as_save_IFS
11146   case $as_dir in #(((
11147     '') as_dir=./ ;;
11148     */) ;;
11149     *) as_dir=$as_dir/ ;;
11150   esac
11151     for ac_exec_ext in '' $ac_executable_extensions; do
11152   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11153     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11154     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11155     break 2
11156   fi
11157 done
11158   done
11159 IFS=$as_save_IFS
11160
11161 fi
11162 fi
11163 LIPO=$ac_cv_prog_LIPO
11164 if test -n "$LIPO"; then
11165   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11166 printf "%s\n" "$LIPO" >&6; }
11167 else
11168   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 printf "%s\n" "no" >&6; }
11170 fi
11171
11172
11173 fi
11174 if test -z "$ac_cv_prog_LIPO"; then
11175   ac_ct_LIPO=$LIPO
11176   # Extract the first word of "lipo", so it can be a program name with args.
11177 set dummy lipo; ac_word=$2
11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11179 printf %s "checking for $ac_word... " >&6; }
11180 if test ${ac_cv_prog_ac_ct_LIPO+y}
11181 then :
11182   printf %s "(cached) " >&6
11183 else $as_nop
11184   if test -n "$ac_ct_LIPO"; then
11185   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11186 else
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11189 do
11190   IFS=$as_save_IFS
11191   case $as_dir in #(((
11192     '') as_dir=./ ;;
11193     */) ;;
11194     *) as_dir=$as_dir/ ;;
11195   esac
11196     for ac_exec_ext in '' $ac_executable_extensions; do
11197   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11198     ac_cv_prog_ac_ct_LIPO="lipo"
11199     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11200     break 2
11201   fi
11202 done
11203   done
11204 IFS=$as_save_IFS
11205
11206 fi
11207 fi
11208 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11209 if test -n "$ac_ct_LIPO"; then
11210   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11211 printf "%s\n" "$ac_ct_LIPO" >&6; }
11212 else
11213   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 printf "%s\n" "no" >&6; }
11215 fi
11216
11217   if test "x$ac_ct_LIPO" = x; then
11218     LIPO=":"
11219   else
11220     case $cross_compiling:$ac_tool_warned in
11221 yes:)
11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11223 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11224 ac_tool_warned=yes ;;
11225 esac
11226     LIPO=$ac_ct_LIPO
11227   fi
11228 else
11229   LIPO="$ac_cv_prog_LIPO"
11230 fi
11231
11232     if test -n "$ac_tool_prefix"; then
11233   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11234 set dummy ${ac_tool_prefix}otool; ac_word=$2
11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11236 printf %s "checking for $ac_word... " >&6; }
11237 if test ${ac_cv_prog_OTOOL+y}
11238 then :
11239   printf %s "(cached) " >&6
11240 else $as_nop
11241   if test -n "$OTOOL"; then
11242   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11243 else
11244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245 for as_dir in $PATH
11246 do
11247   IFS=$as_save_IFS
11248   case $as_dir in #(((
11249     '') as_dir=./ ;;
11250     */) ;;
11251     *) as_dir=$as_dir/ ;;
11252   esac
11253     for ac_exec_ext in '' $ac_executable_extensions; do
11254   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11255     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11256     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11257     break 2
11258   fi
11259 done
11260   done
11261 IFS=$as_save_IFS
11262
11263 fi
11264 fi
11265 OTOOL=$ac_cv_prog_OTOOL
11266 if test -n "$OTOOL"; then
11267   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11268 printf "%s\n" "$OTOOL" >&6; }
11269 else
11270   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 printf "%s\n" "no" >&6; }
11272 fi
11273
11274
11275 fi
11276 if test -z "$ac_cv_prog_OTOOL"; then
11277   ac_ct_OTOOL=$OTOOL
11278   # Extract the first word of "otool", so it can be a program name with args.
11279 set dummy otool; ac_word=$2
11280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281 printf %s "checking for $ac_word... " >&6; }
11282 if test ${ac_cv_prog_ac_ct_OTOOL+y}
11283 then :
11284   printf %s "(cached) " >&6
11285 else $as_nop
11286   if test -n "$ac_ct_OTOOL"; then
11287   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11288 else
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11291 do
11292   IFS=$as_save_IFS
11293   case $as_dir in #(((
11294     '') as_dir=./ ;;
11295     */) ;;
11296     *) as_dir=$as_dir/ ;;
11297   esac
11298     for ac_exec_ext in '' $ac_executable_extensions; do
11299   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11300     ac_cv_prog_ac_ct_OTOOL="otool"
11301     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11302     break 2
11303   fi
11304 done
11305   done
11306 IFS=$as_save_IFS
11307
11308 fi
11309 fi
11310 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11311 if test -n "$ac_ct_OTOOL"; then
11312   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11313 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11314 else
11315   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 printf "%s\n" "no" >&6; }
11317 fi
11318
11319   if test "x$ac_ct_OTOOL" = x; then
11320     OTOOL=":"
11321   else
11322     case $cross_compiling:$ac_tool_warned in
11323 yes:)
11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11325 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11326 ac_tool_warned=yes ;;
11327 esac
11328     OTOOL=$ac_ct_OTOOL
11329   fi
11330 else
11331   OTOOL="$ac_cv_prog_OTOOL"
11332 fi
11333
11334     if test -n "$ac_tool_prefix"; then
11335   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11336 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338 printf %s "checking for $ac_word... " >&6; }
11339 if test ${ac_cv_prog_OTOOL64+y}
11340 then :
11341   printf %s "(cached) " >&6
11342 else $as_nop
11343   if test -n "$OTOOL64"; then
11344   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11345 else
11346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347 for as_dir in $PATH
11348 do
11349   IFS=$as_save_IFS
11350   case $as_dir in #(((
11351     '') as_dir=./ ;;
11352     */) ;;
11353     *) as_dir=$as_dir/ ;;
11354   esac
11355     for ac_exec_ext in '' $ac_executable_extensions; do
11356   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11357     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11358     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11359     break 2
11360   fi
11361 done
11362   done
11363 IFS=$as_save_IFS
11364
11365 fi
11366 fi
11367 OTOOL64=$ac_cv_prog_OTOOL64
11368 if test -n "$OTOOL64"; then
11369   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11370 printf "%s\n" "$OTOOL64" >&6; }
11371 else
11372   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373 printf "%s\n" "no" >&6; }
11374 fi
11375
11376
11377 fi
11378 if test -z "$ac_cv_prog_OTOOL64"; then
11379   ac_ct_OTOOL64=$OTOOL64
11380   # Extract the first word of "otool64", so it can be a program name with args.
11381 set dummy otool64; ac_word=$2
11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11383 printf %s "checking for $ac_word... " >&6; }
11384 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11385 then :
11386   printf %s "(cached) " >&6
11387 else $as_nop
11388   if test -n "$ac_ct_OTOOL64"; then
11389   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394   IFS=$as_save_IFS
11395   case $as_dir in #(((
11396     '') as_dir=./ ;;
11397     */) ;;
11398     *) as_dir=$as_dir/ ;;
11399   esac
11400     for ac_exec_ext in '' $ac_executable_extensions; do
11401   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11402     ac_cv_prog_ac_ct_OTOOL64="otool64"
11403     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11404     break 2
11405   fi
11406 done
11407   done
11408 IFS=$as_save_IFS
11409
11410 fi
11411 fi
11412 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11413 if test -n "$ac_ct_OTOOL64"; then
11414   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11415 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11416 else
11417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 printf "%s\n" "no" >&6; }
11419 fi
11420
11421   if test "x$ac_ct_OTOOL64" = x; then
11422     OTOOL64=":"
11423   else
11424     case $cross_compiling:$ac_tool_warned in
11425 yes:)
11426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11427 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11428 ac_tool_warned=yes ;;
11429 esac
11430     OTOOL64=$ac_ct_OTOOL64
11431   fi
11432 else
11433   OTOOL64="$ac_cv_prog_OTOOL64"
11434 fi
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11463 printf %s "checking for -single_module linker flag... " >&6; }
11464 if test ${lt_cv_apple_cc_single_mod+y}
11465 then :
11466   printf %s "(cached) " >&6
11467 else $as_nop
11468   lt_cv_apple_cc_single_mod=no
11469       if test -z "$LT_MULTI_MODULE"; then
11470         # By default we will add the -single_module flag. You can override
11471         # by either setting the environment variable LT_MULTI_MODULE
11472         # non-empty at configure time, or by adding -multi_module to the
11473         # link flags.
11474         rm -rf libconftest.dylib*
11475         echo "int foo(void){return 1;}" > conftest.c
11476         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11477 -dynamiclib -Wl,-single_module conftest.c" >&5
11478         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11479           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11480         _lt_result=$?
11481         # If there is a non-empty error log, and "single_module"
11482         # appears in it, assume the flag caused a linker warning
11483         if test -s conftest.err && $GREP single_module conftest.err; then
11484           cat conftest.err >&5
11485         # Otherwise, if the output was created with a 0 exit code from
11486         # the compiler, it worked.
11487         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11488           lt_cv_apple_cc_single_mod=yes
11489         else
11490           cat conftest.err >&5
11491         fi
11492         rm -rf libconftest.dylib*
11493         rm -f conftest.*
11494       fi
11495 fi
11496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11497 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11498
11499     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11500 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11501 if test ${lt_cv_ld_exported_symbols_list+y}
11502 then :
11503   printf %s "(cached) " >&6
11504 else $as_nop
11505   lt_cv_ld_exported_symbols_list=no
11506       save_LDFLAGS=$LDFLAGS
11507       echo "_main" > conftest.sym
11508       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11509       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h.  */
11511
11512 int main (void)
11513 {
11514
11515  ;
11516  return 0;
11517 }
11518 _ACEOF
11519 if ac_fn_c_try_link "$LINENO"
11520 then :
11521   lt_cv_ld_exported_symbols_list=yes
11522 else $as_nop
11523   lt_cv_ld_exported_symbols_list=no
11524 fi
11525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11526     conftest$ac_exeext conftest.$ac_ext
11527         LDFLAGS=$save_LDFLAGS
11528
11529 fi
11530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11531 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11532
11533     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11534 printf %s "checking for -force_load linker flag... " >&6; }
11535 if test ${lt_cv_ld_force_load+y}
11536 then :
11537   printf %s "(cached) " >&6
11538 else $as_nop
11539   lt_cv_ld_force_load=no
11540       cat > conftest.c << _LT_EOF
11541 int forced_loaded() { return 2;}
11542 _LT_EOF
11543       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11544       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11545       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
11546       $AR $AR_FLAGS libconftest.a conftest.o 2>&5
11547       echo "$RANLIB libconftest.a" >&5
11548       $RANLIB libconftest.a 2>&5
11549       cat > conftest.c << _LT_EOF
11550 int main() { return 0;}
11551 _LT_EOF
11552       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11553       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11554       _lt_result=$?
11555       if test -s conftest.err && $GREP force_load conftest.err; then
11556         cat conftest.err >&5
11557       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11558         lt_cv_ld_force_load=yes
11559       else
11560         cat conftest.err >&5
11561       fi
11562         rm -f conftest.err libconftest.a conftest conftest.c
11563         rm -rf conftest.dSYM
11564
11565 fi
11566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11567 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11568     case $host_os in
11569     rhapsody* | darwin1.[012])
11570       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11571     darwin1.*)
11572       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11573     darwin*)
11574       case $MACOSX_DEPLOYMENT_TARGET,$host in
11575         10.[012],*|,*powerpc*-darwin[5-8]*)
11576           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11577         *)
11578           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11579       esac
11580     ;;
11581   esac
11582     if test yes = "$lt_cv_apple_cc_single_mod"; then
11583       _lt_dar_single_mod='$single_module'
11584     fi
11585     if test yes = "$lt_cv_ld_exported_symbols_list"; then
11586       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11587     else
11588       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11589     fi
11590     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11591       _lt_dsymutil='~$DSYMUTIL $lib || :'
11592     else
11593       _lt_dsymutil=
11594     fi
11595     ;;
11596   esac
11597
11598 # func_munge_path_list VARIABLE PATH
11599 # -----------------------------------
11600 # VARIABLE is name of variable containing _space_ separated list of
11601 # directories to be munged by the contents of PATH, which is string
11602 # having a format:
11603 # "DIR[:DIR]:"
11604 #       string "DIR[ DIR]" will be prepended to VARIABLE
11605 # ":DIR[:DIR]"
11606 #       string "DIR[ DIR]" will be appended to VARIABLE
11607 # "DIRP[:DIRP]::[DIRA:]DIRA"
11608 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11609 #       "DIRA[ DIRA]" will be appended to VARIABLE
11610 # "DIR[:DIR]"
11611 #       VARIABLE will be replaced by "DIR[ DIR]"
11612 func_munge_path_list ()
11613 {
11614     case x$2 in
11615     x)
11616         ;;
11617     *:)
11618         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11619         ;;
11620     x:*)
11621         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11622         ;;
11623     *::*)
11624         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11625         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11626         ;;
11627     *)
11628         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11629         ;;
11630     esac
11631 }
11632
11633 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11634 "
11635 if test "x$ac_cv_header_dlfcn_h" = xyes
11636 then :
11637   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11638
11639 fi
11640
11641 # ------------------------------------ #
11642 #  Determine libtool default behavior  #
11643 # ------------------------------------ #
11644
11645 #
11646 # Default behavior is to enable shared and static libraries on systems
11647 # where libtool knows how to build both library versions, and does not
11648 # require separate configuration and build runs for each flavor.
11649 #
11650
11651 xc_lt_want_enable_shared='yes'
11652 xc_lt_want_enable_static='yes'
11653
11654 #
11655 # User may have disabled shared or static libraries.
11656 #
11657 case "x$enable_shared" in # (
11658   xno)
11659     xc_lt_want_enable_shared='no'
11660     ;;
11661 esac
11662 case "x$enable_static" in # (
11663   xno)
11664     xc_lt_want_enable_static='no'
11665     ;;
11666 esac
11667 if test "x$xc_lt_want_enable_shared" = 'xno' &&
11668   test "x$xc_lt_want_enable_static" = 'xno'; then
11669   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11670 fi
11671
11672 #
11673 # Default behavior on systems that require independent configuration
11674 # and build runs for shared and static is to enable shared libraries
11675 # and disable static ones. On these systems option '--disable-shared'
11676 # must be used in order to build a proper static library.
11677 #
11678
11679 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11680   test "x$xc_lt_want_enable_static" = 'xyes'; then
11681   case $host_os in # (
11682     pw32* | cegcc* | os2* | aix*)
11683       xc_lt_want_enable_static='no'
11684       ;;
11685   esac
11686 fi
11687
11688 #
11689 # Make libtool aware of current shared and static library preferences
11690 # taking in account that, depending on host characteristics, libtool
11691 # may modify these option preferences later in this configure script.
11692 #
11693
11694 enable_shared=$xc_lt_want_enable_shared
11695 enable_static=$xc_lt_want_enable_static
11696
11697 #
11698 # Default behavior is to build PIC objects for shared libraries and
11699 # non-PIC objects for static libraries.
11700 #
11701
11702 xc_lt_want_with_pic='default'
11703
11704 #
11705 # User may have specified PIC preference.
11706 #
11707
11708 case "x$with_pic" in # ((
11709   xno)
11710     xc_lt_want_with_pic='no'
11711     ;;
11712   xyes)
11713     xc_lt_want_with_pic='yes'
11714     ;;
11715 esac
11716
11717 #
11718 # Default behavior on some systems where building a shared library out
11719 # of non-PIC compiled objects will fail with following linker error
11720 # "relocation R_X86_64_32 can not be used when making a shared object"
11721 # is to build PIC objects even for static libraries. This behavior may
11722 # be overridden using 'configure --disable-shared --without-pic'.
11723 #
11724
11725 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11726   case $host_cpu in # (
11727     x86_64 | amd64 | ia64)
11728       case $host_os in # (
11729         linux* | freebsd* | midnightbsd*)
11730           xc_lt_want_with_pic='yes'
11731           ;;
11732       esac
11733       ;;
11734   esac
11735 fi
11736
11737 #
11738 # Make libtool aware of current PIC preference taking in account that,
11739 # depending on host characteristics, libtool may modify PIC default
11740 # behavior to fit host system idiosyncrasies later in this script.
11741 #
11742
11743 with_pic=$xc_lt_want_with_pic
11744
11745 ## ----------------------- ##
11746 ##  Start of libtool code  ##
11747 ## ----------------------- ##
11748
11749
11750
11751
11752 # Set options
11753 enable_win32_dll=yes
11754
11755 case $host in
11756 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11757   if test -n "$ac_tool_prefix"; then
11758   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11759 set dummy ${ac_tool_prefix}as; ac_word=$2
11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11761 printf %s "checking for $ac_word... " >&6; }
11762 if test ${ac_cv_prog_AS+y}
11763 then :
11764   printf %s "(cached) " >&6
11765 else $as_nop
11766   if test -n "$AS"; then
11767   ac_cv_prog_AS="$AS" # Let the user override the test.
11768 else
11769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770 for as_dir in $PATH
11771 do
11772   IFS=$as_save_IFS
11773   case $as_dir in #(((
11774     '') as_dir=./ ;;
11775     */) ;;
11776     *) as_dir=$as_dir/ ;;
11777   esac
11778     for ac_exec_ext in '' $ac_executable_extensions; do
11779   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11780     ac_cv_prog_AS="${ac_tool_prefix}as"
11781     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11782     break 2
11783   fi
11784 done
11785   done
11786 IFS=$as_save_IFS
11787
11788 fi
11789 fi
11790 AS=$ac_cv_prog_AS
11791 if test -n "$AS"; then
11792   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11793 printf "%s\n" "$AS" >&6; }
11794 else
11795   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 printf "%s\n" "no" >&6; }
11797 fi
11798
11799
11800 fi
11801 if test -z "$ac_cv_prog_AS"; then
11802   ac_ct_AS=$AS
11803   # Extract the first word of "as", so it can be a program name with args.
11804 set dummy as; ac_word=$2
11805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806 printf %s "checking for $ac_word... " >&6; }
11807 if test ${ac_cv_prog_ac_ct_AS+y}
11808 then :
11809   printf %s "(cached) " >&6
11810 else $as_nop
11811   if test -n "$ac_ct_AS"; then
11812   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11813 else
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH
11816 do
11817   IFS=$as_save_IFS
11818   case $as_dir in #(((
11819     '') as_dir=./ ;;
11820     */) ;;
11821     *) as_dir=$as_dir/ ;;
11822   esac
11823     for ac_exec_ext in '' $ac_executable_extensions; do
11824   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11825     ac_cv_prog_ac_ct_AS="as"
11826     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11827     break 2
11828   fi
11829 done
11830   done
11831 IFS=$as_save_IFS
11832
11833 fi
11834 fi
11835 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11836 if test -n "$ac_ct_AS"; then
11837   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11838 printf "%s\n" "$ac_ct_AS" >&6; }
11839 else
11840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 printf "%s\n" "no" >&6; }
11842 fi
11843
11844   if test "x$ac_ct_AS" = x; then
11845     AS="false"
11846   else
11847     case $cross_compiling:$ac_tool_warned in
11848 yes:)
11849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11850 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11851 ac_tool_warned=yes ;;
11852 esac
11853     AS=$ac_ct_AS
11854   fi
11855 else
11856   AS="$ac_cv_prog_AS"
11857 fi
11858
11859   if test -n "$ac_tool_prefix"; then
11860   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11861 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863 printf %s "checking for $ac_word... " >&6; }
11864 if test ${ac_cv_prog_DLLTOOL+y}
11865 then :
11866   printf %s "(cached) " >&6
11867 else $as_nop
11868   if test -n "$DLLTOOL"; then
11869   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11870 else
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11873 do
11874   IFS=$as_save_IFS
11875   case $as_dir in #(((
11876     '') as_dir=./ ;;
11877     */) ;;
11878     *) as_dir=$as_dir/ ;;
11879   esac
11880     for ac_exec_ext in '' $ac_executable_extensions; do
11881   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11882     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11883     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11884     break 2
11885   fi
11886 done
11887   done
11888 IFS=$as_save_IFS
11889
11890 fi
11891 fi
11892 DLLTOOL=$ac_cv_prog_DLLTOOL
11893 if test -n "$DLLTOOL"; then
11894   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11895 printf "%s\n" "$DLLTOOL" >&6; }
11896 else
11897   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 printf "%s\n" "no" >&6; }
11899 fi
11900
11901
11902 fi
11903 if test -z "$ac_cv_prog_DLLTOOL"; then
11904   ac_ct_DLLTOOL=$DLLTOOL
11905   # Extract the first word of "dlltool", so it can be a program name with args.
11906 set dummy dlltool; ac_word=$2
11907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 printf %s "checking for $ac_word... " >&6; }
11909 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11910 then :
11911   printf %s "(cached) " >&6
11912 else $as_nop
11913   if test -n "$ac_ct_DLLTOOL"; then
11914   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11915 else
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in $PATH
11918 do
11919   IFS=$as_save_IFS
11920   case $as_dir in #(((
11921     '') as_dir=./ ;;
11922     */) ;;
11923     *) as_dir=$as_dir/ ;;
11924   esac
11925     for ac_exec_ext in '' $ac_executable_extensions; do
11926   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11927     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11928     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11929     break 2
11930   fi
11931 done
11932   done
11933 IFS=$as_save_IFS
11934
11935 fi
11936 fi
11937 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11938 if test -n "$ac_ct_DLLTOOL"; then
11939   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11940 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11941 else
11942   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943 printf "%s\n" "no" >&6; }
11944 fi
11945
11946   if test "x$ac_ct_DLLTOOL" = x; then
11947     DLLTOOL="false"
11948   else
11949     case $cross_compiling:$ac_tool_warned in
11950 yes:)
11951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11952 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11953 ac_tool_warned=yes ;;
11954 esac
11955     DLLTOOL=$ac_ct_DLLTOOL
11956   fi
11957 else
11958   DLLTOOL="$ac_cv_prog_DLLTOOL"
11959 fi
11960
11961   if test -n "$ac_tool_prefix"; then
11962   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11963 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965 printf %s "checking for $ac_word... " >&6; }
11966 if test ${ac_cv_prog_OBJDUMP+y}
11967 then :
11968   printf %s "(cached) " >&6
11969 else $as_nop
11970   if test -n "$OBJDUMP"; then
11971   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11972 else
11973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974 for as_dir in $PATH
11975 do
11976   IFS=$as_save_IFS
11977   case $as_dir in #(((
11978     '') as_dir=./ ;;
11979     */) ;;
11980     *) as_dir=$as_dir/ ;;
11981   esac
11982     for ac_exec_ext in '' $ac_executable_extensions; do
11983   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11984     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11985     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11986     break 2
11987   fi
11988 done
11989   done
11990 IFS=$as_save_IFS
11991
11992 fi
11993 fi
11994 OBJDUMP=$ac_cv_prog_OBJDUMP
11995 if test -n "$OBJDUMP"; then
11996   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11997 printf "%s\n" "$OBJDUMP" >&6; }
11998 else
11999   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 printf "%s\n" "no" >&6; }
12001 fi
12002
12003
12004 fi
12005 if test -z "$ac_cv_prog_OBJDUMP"; then
12006   ac_ct_OBJDUMP=$OBJDUMP
12007   # Extract the first word of "objdump", so it can be a program name with args.
12008 set dummy objdump; ac_word=$2
12009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 printf %s "checking for $ac_word... " >&6; }
12011 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12012 then :
12013   printf %s "(cached) " >&6
12014 else $as_nop
12015   if test -n "$ac_ct_OBJDUMP"; then
12016   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12017 else
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12020 do
12021   IFS=$as_save_IFS
12022   case $as_dir in #(((
12023     '') as_dir=./ ;;
12024     */) ;;
12025     *) as_dir=$as_dir/ ;;
12026   esac
12027     for ac_exec_ext in '' $ac_executable_extensions; do
12028   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12029     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12030     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12031     break 2
12032   fi
12033 done
12034   done
12035 IFS=$as_save_IFS
12036
12037 fi
12038 fi
12039 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12040 if test -n "$ac_ct_OBJDUMP"; then
12041   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12042 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12043 else
12044   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045 printf "%s\n" "no" >&6; }
12046 fi
12047
12048   if test "x$ac_ct_OBJDUMP" = x; then
12049     OBJDUMP="false"
12050   else
12051     case $cross_compiling:$ac_tool_warned in
12052 yes:)
12053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12054 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12055 ac_tool_warned=yes ;;
12056 esac
12057     OBJDUMP=$ac_ct_OBJDUMP
12058   fi
12059 else
12060   OBJDUMP="$ac_cv_prog_OBJDUMP"
12061 fi
12062
12063   ;;
12064 esac
12065
12066 test -z "$AS" && AS=as
12067
12068
12069
12070
12071
12072 test -z "$DLLTOOL" && DLLTOOL=dlltool
12073
12074
12075
12076
12077
12078 test -z "$OBJDUMP" && OBJDUMP=objdump
12079
12080
12081
12082
12083
12084
12085
12086         enable_dlopen=no
12087
12088
12089
12090             # Check whether --enable-shared was given.
12091 if test ${enable_shared+y}
12092 then :
12093   enableval=$enable_shared; p=${PACKAGE-default}
12094     case $enableval in
12095     yes) enable_shared=yes ;;
12096     no) enable_shared=no ;;
12097     *)
12098       enable_shared=no
12099       # Look at the argument we got.  We use all the common list separators.
12100       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12101       for pkg in $enableval; do
12102         IFS=$lt_save_ifs
12103         if test "X$pkg" = "X$p"; then
12104           enable_shared=yes
12105         fi
12106       done
12107       IFS=$lt_save_ifs
12108       ;;
12109     esac
12110 else $as_nop
12111   enable_shared=yes
12112 fi
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122   # Check whether --enable-static was given.
12123 if test ${enable_static+y}
12124 then :
12125   enableval=$enable_static; p=${PACKAGE-default}
12126     case $enableval in
12127     yes) enable_static=yes ;;
12128     no) enable_static=no ;;
12129     *)
12130      enable_static=no
12131       # Look at the argument we got.  We use all the common list separators.
12132       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12133       for pkg in $enableval; do
12134         IFS=$lt_save_ifs
12135         if test "X$pkg" = "X$p"; then
12136           enable_static=yes
12137         fi
12138       done
12139       IFS=$lt_save_ifs
12140       ;;
12141     esac
12142 else $as_nop
12143   enable_static=yes
12144 fi
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155 # Check whether --with-pic was given.
12156 if test ${with_pic+y}
12157 then :
12158   withval=$with_pic; lt_p=${PACKAGE-default}
12159     case $withval in
12160     yes|no) pic_mode=$withval ;;
12161     *)
12162       pic_mode=default
12163       # Look at the argument we got.  We use all the common list separators.
12164       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12165       for lt_pkg in $withval; do
12166         IFS=$lt_save_ifs
12167         if test "X$lt_pkg" = "X$lt_p"; then
12168           pic_mode=yes
12169         fi
12170       done
12171       IFS=$lt_save_ifs
12172       ;;
12173     esac
12174 else $as_nop
12175   pic_mode=default
12176 fi
12177
12178
12179
12180
12181
12182
12183
12184
12185   # Check whether --enable-fast-install was given.
12186 if test ${enable_fast_install+y}
12187 then :
12188   enableval=$enable_fast_install; p=${PACKAGE-default}
12189     case $enableval in
12190     yes) enable_fast_install=yes ;;
12191     no) enable_fast_install=no ;;
12192     *)
12193       enable_fast_install=no
12194       # Look at the argument we got.  We use all the common list separators.
12195       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12196       for pkg in $enableval; do
12197         IFS=$lt_save_ifs
12198         if test "X$pkg" = "X$p"; then
12199           enable_fast_install=yes
12200         fi
12201       done
12202       IFS=$lt_save_ifs
12203       ;;
12204     esac
12205 else $as_nop
12206   enable_fast_install=yes
12207 fi
12208
12209
12210
12211
12212
12213
12214
12215
12216   shared_archive_member_spec=
12217 case $host,$enable_shared in
12218 power*-*-aix[5-9]*,yes)
12219   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12220 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12221
12222 # Check whether --with-aix-soname was given.
12223 if test ${with_aix_soname+y}
12224 then :
12225   withval=$with_aix_soname; case $withval in
12226     aix|svr4|both)
12227       ;;
12228     *)
12229       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12230       ;;
12231     esac
12232     lt_cv_with_aix_soname=$with_aix_soname
12233 else $as_nop
12234   if test ${lt_cv_with_aix_soname+y}
12235 then :
12236   printf %s "(cached) " >&6
12237 else $as_nop
12238   lt_cv_with_aix_soname=aix
12239 fi
12240
12241     with_aix_soname=$lt_cv_with_aix_soname
12242 fi
12243
12244   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12245 printf "%s\n" "$with_aix_soname" >&6; }
12246   if test aix != "$with_aix_soname"; then
12247     # For the AIX way of multilib, we name the shared archive member
12248     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12249     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12250     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12251     # the AIX toolchain works better with OBJECT_MODE set (default 32).
12252     if test 64 = "${OBJECT_MODE-32}"; then
12253       shared_archive_member_spec=shr_64
12254     else
12255       shared_archive_member_spec=shr
12256     fi
12257   fi
12258   ;;
12259 *)
12260   with_aix_soname=aix
12261   ;;
12262 esac
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273 # This can be used to rebuild libtool when needed
12274 LIBTOOL_DEPS=$ltmain
12275
12276 # Always use our own libtool.
12277 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308 test -z "$LN_S" && LN_S="ln -s"
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323 if test -n "${ZSH_VERSION+set}"; then
12324    setopt NO_GLOB_SUBST
12325 fi
12326
12327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12328 printf %s "checking for objdir... " >&6; }
12329 if test ${lt_cv_objdir+y}
12330 then :
12331   printf %s "(cached) " >&6
12332 else $as_nop
12333   rm -f .libs 2>/dev/null
12334 mkdir .libs 2>/dev/null
12335 if test -d .libs; then
12336   lt_cv_objdir=.libs
12337 else
12338   # MS-DOS does not allow filenames that begin with a dot.
12339   lt_cv_objdir=_libs
12340 fi
12341 rmdir .libs 2>/dev/null
12342 fi
12343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12344 printf "%s\n" "$lt_cv_objdir" >&6; }
12345 objdir=$lt_cv_objdir
12346
12347
12348
12349
12350
12351 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12352
12353
12354
12355
12356 case $host_os in
12357 aix3*)
12358   # AIX sometimes has problems with the GCC collect2 program.  For some
12359   # reason, if we set the COLLECT_NAMES environment variable, the problems
12360   # vanish in a puff of smoke.
12361   if test set != "${COLLECT_NAMES+set}"; then
12362     COLLECT_NAMES=
12363     export COLLECT_NAMES
12364   fi
12365   ;;
12366 esac
12367
12368 # Global variables:
12369 ofile=libtool
12370 can_build_shared=yes
12371
12372 # All known linkers require a '.a' archive for static linking (except MSVC and
12373 # ICC, which need '.lib').
12374 libext=a
12375
12376 with_gnu_ld=$lt_cv_prog_gnu_ld
12377
12378 old_CC=$CC
12379 old_CFLAGS=$CFLAGS
12380
12381 # Set sane defaults for various variables
12382 test -z "$CC" && CC=cc
12383 test -z "$LTCC" && LTCC=$CC
12384 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12385 test -z "$LD" && LD=ld
12386 test -z "$ac_objext" && ac_objext=o
12387
12388 func_cc_basename $compiler
12389 cc_basename=$func_cc_basename_result
12390
12391
12392 # Only perform the check for file, if the check method requires it
12393 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12394 case $deplibs_check_method in
12395 file_magic*)
12396   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12397     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12398 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12399 if test ${lt_cv_path_MAGIC_CMD+y}
12400 then :
12401   printf %s "(cached) " >&6
12402 else $as_nop
12403   case $MAGIC_CMD in
12404 [\\/*] |  ?:[\\/]*)
12405   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12406   ;;
12407 *)
12408   lt_save_MAGIC_CMD=$MAGIC_CMD
12409   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12410   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12411   for ac_dir in $ac_dummy; do
12412     IFS=$lt_save_ifs
12413     test -z "$ac_dir" && ac_dir=.
12414     if test -f "$ac_dir/${ac_tool_prefix}file"; then
12415       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12416       if test -n "$file_magic_test_file"; then
12417         case $deplibs_check_method in
12418         "file_magic "*)
12419           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12420           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12421           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12422             $EGREP "$file_magic_regex" > /dev/null; then
12423             :
12424           else
12425             cat <<_LT_EOF 1>&2
12426
12427 *** Warning: the command libtool uses to detect shared libraries,
12428 *** $file_magic_cmd, produces output that libtool cannot recognize.
12429 *** The result is that libtool may fail to recognize shared libraries
12430 *** as such.  This will affect the creation of libtool libraries that
12431 *** depend on shared libraries, but programs linked with such libtool
12432 *** libraries will work regardless of this problem.  Nevertheless, you
12433 *** may want to report the problem to your system manager and/or to
12434 *** bug-libtool@gnu.org
12435
12436 _LT_EOF
12437           fi ;;
12438         esac
12439       fi
12440       break
12441     fi
12442   done
12443   IFS=$lt_save_ifs
12444   MAGIC_CMD=$lt_save_MAGIC_CMD
12445   ;;
12446 esac
12447 fi
12448
12449 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12450 if test -n "$MAGIC_CMD"; then
12451   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12452 printf "%s\n" "$MAGIC_CMD" >&6; }
12453 else
12454   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455 printf "%s\n" "no" >&6; }
12456 fi
12457
12458
12459
12460
12461
12462 if test -z "$lt_cv_path_MAGIC_CMD"; then
12463   if test -n "$ac_tool_prefix"; then
12464     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12465 printf %s "checking for file... " >&6; }
12466 if test ${lt_cv_path_MAGIC_CMD+y}
12467 then :
12468   printf %s "(cached) " >&6
12469 else $as_nop
12470   case $MAGIC_CMD in
12471 [\\/*] |  ?:[\\/]*)
12472   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12473   ;;
12474 *)
12475   lt_save_MAGIC_CMD=$MAGIC_CMD
12476   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12477   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12478   for ac_dir in $ac_dummy; do
12479     IFS=$lt_save_ifs
12480     test -z "$ac_dir" && ac_dir=.
12481     if test -f "$ac_dir/file"; then
12482       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12483       if test -n "$file_magic_test_file"; then
12484         case $deplibs_check_method in
12485         "file_magic "*)
12486           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12487           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12488           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12489             $EGREP "$file_magic_regex" > /dev/null; then
12490             :
12491           else
12492             cat <<_LT_EOF 1>&2
12493
12494 *** Warning: the command libtool uses to detect shared libraries,
12495 *** $file_magic_cmd, produces output that libtool cannot recognize.
12496 *** The result is that libtool may fail to recognize shared libraries
12497 *** as such.  This will affect the creation of libtool libraries that
12498 *** depend on shared libraries, but programs linked with such libtool
12499 *** libraries will work regardless of this problem.  Nevertheless, you
12500 *** may want to report the problem to your system manager and/or to
12501 *** bug-libtool@gnu.org
12502
12503 _LT_EOF
12504           fi ;;
12505         esac
12506       fi
12507       break
12508     fi
12509   done
12510   IFS=$lt_save_ifs
12511   MAGIC_CMD=$lt_save_MAGIC_CMD
12512   ;;
12513 esac
12514 fi
12515
12516 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12517 if test -n "$MAGIC_CMD"; then
12518   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12519 printf "%s\n" "$MAGIC_CMD" >&6; }
12520 else
12521   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522 printf "%s\n" "no" >&6; }
12523 fi
12524
12525
12526   else
12527     MAGIC_CMD=:
12528   fi
12529 fi
12530
12531   fi
12532   ;;
12533 esac
12534
12535 # Use C for the default configuration in the libtool script
12536
12537 lt_save_CC=$CC
12538 ac_ext=c
12539 ac_cpp='$CPP $CPPFLAGS'
12540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12543
12544
12545 # Source file extension for C test sources.
12546 ac_ext=c
12547
12548 # Object file extension for compiled C test sources.
12549 objext=o
12550 objext=$objext
12551
12552 # Code to be used in simple compile tests
12553 lt_simple_compile_test_code="int some_variable = 0;"
12554
12555 # Code to be used in simple link tests
12556 lt_simple_link_test_code='int main(){return(0);}'
12557
12558
12559
12560
12561
12562
12563
12564 # If no C compiler was specified, use CC.
12565 LTCC=${LTCC-"$CC"}
12566
12567 # If no C compiler flags were specified, use CFLAGS.
12568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12569
12570 # Allow CC to be a program name with arguments.
12571 compiler=$CC
12572
12573 # Save the default compiler, since it gets overwritten when the other
12574 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12575 compiler_DEFAULT=$CC
12576
12577 # save warnings/boilerplate of simple test code
12578 ac_outfile=conftest.$ac_objext
12579 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12580 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12581 _lt_compiler_boilerplate=`cat conftest.err`
12582 $RM conftest*
12583
12584 ac_outfile=conftest.$ac_objext
12585 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12586 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12587 _lt_linker_boilerplate=`cat conftest.err`
12588 $RM -r conftest*
12589
12590
12591 ## CAVEAT EMPTOR:
12592 ## There is no encapsulation within the following macros, do not change
12593 ## the running order or otherwise move them around unless you know exactly
12594 ## what you are doing...
12595 if test -n "$compiler"; then
12596
12597 lt_prog_compiler_no_builtin_flag=
12598
12599 if test yes = "$GCC"; then
12600   case $cc_basename in
12601   nvcc*)
12602     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12603   *)
12604     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12605   esac
12606
12607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12608 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12609 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
12610 then :
12611   printf %s "(cached) " >&6
12612 else $as_nop
12613   lt_cv_prog_compiler_rtti_exceptions=no
12614    ac_outfile=conftest.$ac_objext
12615    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12616    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
12617    # Insert the option either (1) after the last *FLAGS variable, or
12618    # (2) before a word containing "conftest.", or (3) at the end.
12619    # Note that $ac_compile itself does not contain backslashes and begins
12620    # with a dollar sign (not a hyphen), so the echo should work correctly.
12621    # The option is referenced via a variable to avoid confusing sed.
12622    lt_compile=`echo "$ac_compile" | $SED \
12623    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12624    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12625    -e 's:$: $lt_compiler_flag:'`
12626    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12627    (eval "$lt_compile" 2>conftest.err)
12628    ac_status=$?
12629    cat conftest.err >&5
12630    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631    if (exit $ac_status) && test -s "$ac_outfile"; then
12632      # The compiler can only warn and ignore the option if not recognized
12633      # So say no if there are warnings other than the usual output.
12634      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12635      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12636      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12637        lt_cv_prog_compiler_rtti_exceptions=yes
12638      fi
12639    fi
12640    $RM conftest*
12641
12642 fi
12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12644 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12645
12646 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12647     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12648 else
12649     :
12650 fi
12651
12652 fi
12653
12654
12655
12656
12657
12658
12659   lt_prog_compiler_wl=
12660 lt_prog_compiler_pic=
12661 lt_prog_compiler_static=
12662
12663
12664   if test yes = "$GCC"; then
12665     lt_prog_compiler_wl='-Wl,'
12666     lt_prog_compiler_static='-static'
12667
12668     case $host_os in
12669       aix*)
12670       # All AIX code is PIC.
12671       if test ia64 = "$host_cpu"; then
12672         # AIX 5 now supports IA64 processor
12673         lt_prog_compiler_static='-Bstatic'
12674       fi
12675       lt_prog_compiler_pic='-fPIC'
12676       ;;
12677
12678     amigaos*)
12679       case $host_cpu in
12680       powerpc)
12681             # see comment about AmigaOS4 .so support
12682             lt_prog_compiler_pic='-fPIC'
12683         ;;
12684       m68k)
12685             # FIXME: we need at least 68020 code to build shared libraries, but
12686             # adding the '-m68020' flag to GCC prevents building anything better,
12687             # like '-m68040'.
12688             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12689         ;;
12690       esac
12691       ;;
12692
12693     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12694       # PIC is the default for these OSes.
12695       ;;
12696
12697     mingw* | cygwin* | pw32* | os2* | cegcc*)
12698       # This hack is so that the source file can tell whether it is being
12699       # built for inclusion in a dll (and should export symbols for example).
12700       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12701       # (--disable-auto-import) libraries
12702       lt_prog_compiler_pic='-DDLL_EXPORT'
12703       case $host_os in
12704       os2*)
12705         lt_prog_compiler_static='$wl-static'
12706         ;;
12707       esac
12708       ;;
12709
12710     darwin* | rhapsody*)
12711       # PIC is the default on this platform
12712       # Common symbols not allowed in MH_DYLIB files
12713       lt_prog_compiler_pic='-fno-common'
12714       ;;
12715
12716     haiku*)
12717       # PIC is the default for Haiku.
12718       # The "-static" flag exists, but is broken.
12719       lt_prog_compiler_static=
12720       ;;
12721
12722     hpux*)
12723       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12724       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12725       # sets the default TLS model and affects inlining.
12726       case $host_cpu in
12727       hppa*64*)
12728         # +Z the default
12729         ;;
12730       *)
12731         lt_prog_compiler_pic='-fPIC'
12732         ;;
12733       esac
12734       ;;
12735
12736     interix[3-9]*)
12737       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12738       # Instead, we relocate shared libraries at runtime.
12739       ;;
12740
12741     msdosdjgpp*)
12742       # Just because we use GCC doesn't mean we suddenly get shared libraries
12743       # on systems that don't support them.
12744       lt_prog_compiler_can_build_shared=no
12745       enable_shared=no
12746       ;;
12747
12748     *nto* | *qnx*)
12749       # QNX uses GNU C++, but need to define -shared option too, otherwise
12750       # it will coredump.
12751       lt_prog_compiler_pic='-fPIC -shared'
12752       ;;
12753
12754     sysv4*MP*)
12755       if test -d /usr/nec; then
12756         lt_prog_compiler_pic=-Kconform_pic
12757       fi
12758       ;;
12759
12760     *)
12761       lt_prog_compiler_pic='-fPIC'
12762       ;;
12763     esac
12764
12765     case $cc_basename in
12766     nvcc*) # Cuda Compiler Driver 2.2
12767       lt_prog_compiler_wl='-Xlinker '
12768       if test -n "$lt_prog_compiler_pic"; then
12769         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12770       fi
12771       ;;
12772     esac
12773   else
12774     # PORTME Check for flag to pass linker flags through the system compiler.
12775     case $host_os in
12776     aix*)
12777       lt_prog_compiler_wl='-Wl,'
12778       if test ia64 = "$host_cpu"; then
12779         # AIX 5 now supports IA64 processor
12780         lt_prog_compiler_static='-Bstatic'
12781       else
12782         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12783       fi
12784       ;;
12785
12786     darwin* | rhapsody*)
12787       # PIC is the default on this platform
12788       # Common symbols not allowed in MH_DYLIB files
12789       lt_prog_compiler_pic='-fno-common'
12790       case $cc_basename in
12791       nagfor*)
12792         # NAG Fortran compiler
12793         lt_prog_compiler_wl='-Wl,-Wl,,'
12794         lt_prog_compiler_pic='-PIC'
12795         lt_prog_compiler_static='-Bstatic'
12796         ;;
12797       esac
12798       ;;
12799
12800     mingw* | cygwin* | pw32* | os2* | cegcc*)
12801       # This hack is so that the source file can tell whether it is being
12802       # built for inclusion in a dll (and should export symbols for example).
12803       lt_prog_compiler_pic='-DDLL_EXPORT'
12804       case $host_os in
12805       os2*)
12806         lt_prog_compiler_static='$wl-static'
12807         ;;
12808       esac
12809       ;;
12810
12811     hpux9* | hpux10* | hpux11*)
12812       lt_prog_compiler_wl='-Wl,'
12813       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12814       # not for PA HP-UX.
12815       case $host_cpu in
12816       hppa*64*|ia64*)
12817         # +Z the default
12818         ;;
12819       *)
12820         lt_prog_compiler_pic='+Z'
12821         ;;
12822       esac
12823       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12824       lt_prog_compiler_static='$wl-a ${wl}archive'
12825       ;;
12826
12827     irix5* | irix6* | nonstopux*)
12828       lt_prog_compiler_wl='-Wl,'
12829       # PIC (with -KPIC) is the default.
12830       lt_prog_compiler_static='-non_shared'
12831       ;;
12832
12833     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12834       case $cc_basename in
12835       # old Intel for x86_64, which still supported -KPIC.
12836       ecc*)
12837         lt_prog_compiler_wl='-Wl,'
12838         lt_prog_compiler_pic='-KPIC'
12839         lt_prog_compiler_static='-static'
12840         ;;
12841       # flang / f18. f95 an alias for gfortran or flang on Debian
12842       flang* | f18* | f95*)
12843         lt_prog_compiler_wl='-Wl,'
12844         lt_prog_compiler_pic='-fPIC'
12845         lt_prog_compiler_static='-static'
12846         ;;
12847       # icc used to be incompatible with GCC.
12848       # ICC 10 doesn't accept -KPIC any more.
12849       icc* | ifort*)
12850         lt_prog_compiler_wl='-Wl,'
12851         lt_prog_compiler_pic='-fPIC'
12852         lt_prog_compiler_static='-static'
12853         ;;
12854       # Lahey Fortran 8.1.
12855       lf95*)
12856         lt_prog_compiler_wl='-Wl,'
12857         lt_prog_compiler_pic='--shared'
12858         lt_prog_compiler_static='--static'
12859         ;;
12860       nagfor*)
12861         # NAG Fortran compiler
12862         lt_prog_compiler_wl='-Wl,-Wl,,'
12863         lt_prog_compiler_pic='-PIC'
12864         lt_prog_compiler_static='-Bstatic'
12865         ;;
12866       tcc*)
12867         # Fabrice Bellard et al's Tiny C Compiler
12868         lt_prog_compiler_wl='-Wl,'
12869         lt_prog_compiler_pic='-fPIC'
12870         lt_prog_compiler_static='-static'
12871         ;;
12872       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12873         # Portland Group compilers (*not* the Pentium gcc compiler,
12874         # which looks to be a dead project)
12875         lt_prog_compiler_wl='-Wl,'
12876         lt_prog_compiler_pic='-fpic'
12877         lt_prog_compiler_static='-Bstatic'
12878         ;;
12879       ccc*)
12880         lt_prog_compiler_wl='-Wl,'
12881         # All Alpha code is PIC.
12882         lt_prog_compiler_static='-non_shared'
12883         ;;
12884       xl* | bgxl* | bgf* | mpixl*)
12885         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12886         lt_prog_compiler_wl='-Wl,'
12887         lt_prog_compiler_pic='-qpic'
12888         lt_prog_compiler_static='-qstaticlink'
12889         ;;
12890       *)
12891         case `$CC -V 2>&1 | $SED 5q` in
12892         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12893           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12894           lt_prog_compiler_pic='-KPIC'
12895           lt_prog_compiler_static='-Bstatic'
12896           lt_prog_compiler_wl=''
12897           ;;
12898         *Sun\ F* | *Sun*Fortran*)
12899           lt_prog_compiler_pic='-KPIC'
12900           lt_prog_compiler_static='-Bstatic'
12901           lt_prog_compiler_wl='-Qoption ld '
12902           ;;
12903         *Sun\ C*)
12904           # Sun C 5.9
12905           lt_prog_compiler_pic='-KPIC'
12906           lt_prog_compiler_static='-Bstatic'
12907           lt_prog_compiler_wl='-Wl,'
12908           ;;
12909         *Intel*\ [CF]*Compiler*)
12910           lt_prog_compiler_wl='-Wl,'
12911           lt_prog_compiler_pic='-fPIC'
12912           lt_prog_compiler_static='-static'
12913           ;;
12914         *Portland\ Group*)
12915           lt_prog_compiler_wl='-Wl,'
12916           lt_prog_compiler_pic='-fpic'
12917           lt_prog_compiler_static='-Bstatic'
12918           ;;
12919         esac
12920         ;;
12921       esac
12922       ;;
12923
12924     newsos6)
12925       lt_prog_compiler_pic='-KPIC'
12926       lt_prog_compiler_static='-Bstatic'
12927       ;;
12928
12929     *nto* | *qnx*)
12930       # QNX uses GNU C++, but need to define -shared option too, otherwise
12931       # it will coredump.
12932       lt_prog_compiler_pic='-fPIC -shared'
12933       ;;
12934
12935     osf3* | osf4* | osf5*)
12936       lt_prog_compiler_wl='-Wl,'
12937       # All OSF/1 code is PIC.
12938       lt_prog_compiler_static='-non_shared'
12939       ;;
12940
12941     rdos*)
12942       lt_prog_compiler_static='-non_shared'
12943       ;;
12944
12945     solaris*)
12946       lt_prog_compiler_pic='-KPIC'
12947       lt_prog_compiler_static='-Bstatic'
12948       case $cc_basename in
12949       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12950         lt_prog_compiler_wl='-Qoption ld ';;
12951       *)
12952         lt_prog_compiler_wl='-Wl,';;
12953       esac
12954       ;;
12955
12956     sunos4*)
12957       lt_prog_compiler_wl='-Qoption ld '
12958       lt_prog_compiler_pic='-PIC'
12959       lt_prog_compiler_static='-Bstatic'
12960       ;;
12961
12962     sysv4 | sysv4.2uw2* | sysv4.3*)
12963       lt_prog_compiler_wl='-Wl,'
12964       lt_prog_compiler_pic='-KPIC'
12965       lt_prog_compiler_static='-Bstatic'
12966       ;;
12967
12968     sysv4*MP*)
12969       if test -d /usr/nec; then
12970         lt_prog_compiler_pic='-Kconform_pic'
12971         lt_prog_compiler_static='-Bstatic'
12972       fi
12973       ;;
12974
12975     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12976       lt_prog_compiler_wl='-Wl,'
12977       lt_prog_compiler_pic='-KPIC'
12978       lt_prog_compiler_static='-Bstatic'
12979       ;;
12980
12981     unicos*)
12982       lt_prog_compiler_wl='-Wl,'
12983       lt_prog_compiler_can_build_shared=no
12984       ;;
12985
12986     uts4*)
12987       lt_prog_compiler_pic='-pic'
12988       lt_prog_compiler_static='-Bstatic'
12989       ;;
12990
12991     *)
12992       lt_prog_compiler_can_build_shared=no
12993       ;;
12994     esac
12995   fi
12996
12997 case $host_os in
12998   # For platforms that do not support PIC, -DPIC is meaningless:
12999   *djgpp*)
13000     lt_prog_compiler_pic=
13001     ;;
13002   *)
13003     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13004     ;;
13005 esac
13006
13007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13008 printf %s "checking for $compiler option to produce PIC... " >&6; }
13009 if test ${lt_cv_prog_compiler_pic+y}
13010 then :
13011   printf %s "(cached) " >&6
13012 else $as_nop
13013   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13014 fi
13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13016 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13017 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13018
13019 #
13020 # Check to make sure the PIC flag actually works.
13021 #
13022 if test -n "$lt_prog_compiler_pic"; then
13023   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13024 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13025 if test ${lt_cv_prog_compiler_pic_works+y}
13026 then :
13027   printf %s "(cached) " >&6
13028 else $as_nop
13029   lt_cv_prog_compiler_pic_works=no
13030    ac_outfile=conftest.$ac_objext
13031    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13032    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13033    # Insert the option either (1) after the last *FLAGS variable, or
13034    # (2) before a word containing "conftest.", or (3) at the end.
13035    # Note that $ac_compile itself does not contain backslashes and begins
13036    # with a dollar sign (not a hyphen), so the echo should work correctly.
13037    # The option is referenced via a variable to avoid confusing sed.
13038    lt_compile=`echo "$ac_compile" | $SED \
13039    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13040    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13041    -e 's:$: $lt_compiler_flag:'`
13042    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13043    (eval "$lt_compile" 2>conftest.err)
13044    ac_status=$?
13045    cat conftest.err >&5
13046    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047    if (exit $ac_status) && test -s "$ac_outfile"; then
13048      # The compiler can only warn and ignore the option if not recognized
13049      # So say no if there are warnings other than the usual output.
13050      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13051      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13052      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13053        lt_cv_prog_compiler_pic_works=yes
13054      fi
13055    fi
13056    $RM conftest*
13057
13058 fi
13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13060 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13061
13062 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13063     case $lt_prog_compiler_pic in
13064      "" | " "*) ;;
13065      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13066      esac
13067 else
13068     lt_prog_compiler_pic=
13069      lt_prog_compiler_can_build_shared=no
13070 fi
13071
13072 fi
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084 #
13085 # Check to make sure the static flag actually works.
13086 #
13087 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13089 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13090 if test ${lt_cv_prog_compiler_static_works+y}
13091 then :
13092   printf %s "(cached) " >&6
13093 else $as_nop
13094   lt_cv_prog_compiler_static_works=no
13095    save_LDFLAGS=$LDFLAGS
13096    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13097    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13098    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13099      # The linker can only warn and ignore the option if not recognized
13100      # So say no if there are warnings
13101      if test -s conftest.err; then
13102        # Append any errors to the config.log.
13103        cat conftest.err 1>&5
13104        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13105        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13106        if diff conftest.exp conftest.er2 >/dev/null; then
13107          lt_cv_prog_compiler_static_works=yes
13108        fi
13109      else
13110        lt_cv_prog_compiler_static_works=yes
13111      fi
13112    fi
13113    $RM -r conftest*
13114    LDFLAGS=$save_LDFLAGS
13115
13116 fi
13117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13118 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13119
13120 if test yes = "$lt_cv_prog_compiler_static_works"; then
13121     :
13122 else
13123     lt_prog_compiler_static=
13124 fi
13125
13126
13127
13128
13129
13130
13131
13132   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13133 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13134 if test ${lt_cv_prog_compiler_c_o+y}
13135 then :
13136   printf %s "(cached) " >&6
13137 else $as_nop
13138   lt_cv_prog_compiler_c_o=no
13139    $RM -r conftest 2>/dev/null
13140    mkdir conftest
13141    cd conftest
13142    mkdir out
13143    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13144
13145    lt_compiler_flag="-o out/conftest2.$ac_objext"
13146    # Insert the option either (1) after the last *FLAGS variable, or
13147    # (2) before a word containing "conftest.", or (3) at the end.
13148    # Note that $ac_compile itself does not contain backslashes and begins
13149    # with a dollar sign (not a hyphen), so the echo should work correctly.
13150    lt_compile=`echo "$ac_compile" | $SED \
13151    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13152    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13153    -e 's:$: $lt_compiler_flag:'`
13154    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13155    (eval "$lt_compile" 2>out/conftest.err)
13156    ac_status=$?
13157    cat out/conftest.err >&5
13158    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13160    then
13161      # The compiler can only warn and ignore the option if not recognized
13162      # So say no if there are warnings
13163      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13164      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13165      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13166        lt_cv_prog_compiler_c_o=yes
13167      fi
13168    fi
13169    chmod u+w . 2>&5
13170    $RM conftest*
13171    # SGI C++ compiler will create directory out/ii_files/ for
13172    # template instantiation
13173    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13174    $RM out/* && rmdir out
13175    cd ..
13176    $RM -r conftest
13177    $RM conftest*
13178
13179 fi
13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13181 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13182
13183
13184
13185
13186
13187
13188   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13189 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13190 if test ${lt_cv_prog_compiler_c_o+y}
13191 then :
13192   printf %s "(cached) " >&6
13193 else $as_nop
13194   lt_cv_prog_compiler_c_o=no
13195    $RM -r conftest 2>/dev/null
13196    mkdir conftest
13197    cd conftest
13198    mkdir out
13199    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13200
13201    lt_compiler_flag="-o out/conftest2.$ac_objext"
13202    # Insert the option either (1) after the last *FLAGS variable, or
13203    # (2) before a word containing "conftest.", or (3) at the end.
13204    # Note that $ac_compile itself does not contain backslashes and begins
13205    # with a dollar sign (not a hyphen), so the echo should work correctly.
13206    lt_compile=`echo "$ac_compile" | $SED \
13207    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13208    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13209    -e 's:$: $lt_compiler_flag:'`
13210    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13211    (eval "$lt_compile" 2>out/conftest.err)
13212    ac_status=$?
13213    cat out/conftest.err >&5
13214    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13216    then
13217      # The compiler can only warn and ignore the option if not recognized
13218      # So say no if there are warnings
13219      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13220      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13221      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13222        lt_cv_prog_compiler_c_o=yes
13223      fi
13224    fi
13225    chmod u+w . 2>&5
13226    $RM conftest*
13227    # SGI C++ compiler will create directory out/ii_files/ for
13228    # template instantiation
13229    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13230    $RM out/* && rmdir out
13231    cd ..
13232    $RM -r conftest
13233    $RM conftest*
13234
13235 fi
13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13237 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13238
13239
13240
13241
13242 hard_links=nottested
13243 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13244   # do not overwrite the value of need_locks provided by the user
13245   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13246 printf %s "checking if we can lock with hard links... " >&6; }
13247   hard_links=yes
13248   $RM conftest*
13249   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13250   touch conftest.a
13251   ln conftest.a conftest.b 2>&5 || hard_links=no
13252   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13253   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13254 printf "%s\n" "$hard_links" >&6; }
13255   if test no = "$hard_links"; then
13256     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13257 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13258     need_locks=warn
13259   fi
13260 else
13261   need_locks=no
13262 fi
13263
13264
13265
13266
13267
13268
13269   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13270 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13271
13272   runpath_var=
13273   allow_undefined_flag=
13274   always_export_symbols=no
13275   archive_cmds=
13276   archive_expsym_cmds=
13277   compiler_needs_object=no
13278   enable_shared_with_static_runtimes=no
13279   export_dynamic_flag_spec=
13280   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13281   hardcode_automatic=no
13282   hardcode_direct=no
13283   hardcode_direct_absolute=no
13284   hardcode_libdir_flag_spec=
13285   hardcode_libdir_separator=
13286   hardcode_minus_L=no
13287   hardcode_shlibpath_var=unsupported
13288   inherit_rpath=no
13289   link_all_deplibs=unknown
13290   module_cmds=
13291   module_expsym_cmds=
13292   old_archive_from_new_cmds=
13293   old_archive_from_expsyms_cmds=
13294   thread_safe_flag_spec=
13295   whole_archive_flag_spec=
13296   # include_expsyms should be a list of space-separated symbols to be *always*
13297   # included in the symbol list
13298   include_expsyms=
13299   # exclude_expsyms can be an extended regexp of symbols to exclude
13300   # it will be wrapped by ' (' and ')$', so one must not match beginning or
13301   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13302   # as well as any symbol that contains 'd'.
13303   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13304   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13305   # platforms (ab)use it in PIC code, but their linkers get confused if
13306   # the symbol is explicitly referenced.  Since portable code cannot
13307   # rely on this symbol name, it's probably fine to never include it in
13308   # preloaded symbol tables.
13309   # Exclude shared library initialization/finalization symbols.
13310   extract_expsyms_cmds=
13311
13312   case $host_os in
13313   cygwin* | mingw* | pw32* | cegcc*)
13314     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
13315     # When not using gcc, we currently assume that we are using
13316     # Microsoft Visual C++ or Intel C++ Compiler.
13317     if test yes != "$GCC"; then
13318       with_gnu_ld=no
13319     fi
13320     ;;
13321   interix*)
13322     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
13323     with_gnu_ld=yes
13324     ;;
13325   openbsd* | bitrig*)
13326     with_gnu_ld=no
13327     ;;
13328   linux* | k*bsd*-gnu | gnu*)
13329     link_all_deplibs=no
13330     ;;
13331   esac
13332
13333   ld_shlibs=yes
13334
13335   # On some targets, GNU ld is compatible enough with the native linker
13336   # that we're better off using the native interface for both.
13337   lt_use_gnu_ld_interface=no
13338   if test yes = "$with_gnu_ld"; then
13339     case $host_os in
13340       aix*)
13341         # The AIX port of GNU ld has always aspired to compatibility
13342         # with the native linker.  However, as the warning in the GNU ld
13343         # block says, versions before 2.19.5* couldn't really create working
13344         # shared libraries, regardless of the interface used.
13345         case `$LD -v 2>&1` in
13346           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13347           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13348           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13349           *)
13350             lt_use_gnu_ld_interface=yes
13351             ;;
13352         esac
13353         ;;
13354       *)
13355         lt_use_gnu_ld_interface=yes
13356         ;;
13357     esac
13358   fi
13359
13360   if test yes = "$lt_use_gnu_ld_interface"; then
13361     # If archive_cmds runs LD, not CC, wlarc should be empty
13362     wlarc='$wl'
13363
13364     # Set some defaults for GNU ld with shared library support. These
13365     # are reset later if shared libraries are not supported. Putting them
13366     # here allows them to be overridden if necessary.
13367     runpath_var=LD_RUN_PATH
13368     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13369     export_dynamic_flag_spec='$wl--export-dynamic'
13370     # ancient GNU ld didn't support --whole-archive et. al.
13371     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13372       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13373     else
13374       whole_archive_flag_spec=
13375     fi
13376     supports_anon_versioning=no
13377     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
13378       *GNU\ gold*) supports_anon_versioning=yes ;;
13379       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13380       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13381       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13382       *\ 2.11.*) ;; # other 2.11 versions
13383       *) supports_anon_versioning=yes ;;
13384     esac
13385
13386     # See if GNU ld supports shared libraries.
13387     case $host_os in
13388     aix[3-9]*)
13389       # On AIX/PPC, the GNU linker is very broken
13390       if test ia64 != "$host_cpu"; then
13391         ld_shlibs=no
13392         cat <<_LT_EOF 1>&2
13393
13394 *** Warning: the GNU linker, at least up to release 2.19, is reported
13395 *** to be unable to reliably create shared libraries on AIX.
13396 *** Therefore, libtool is disabling shared libraries support.  If you
13397 *** really care for shared libraries, you may want to install binutils
13398 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13399 *** You will then need to restart the configuration process.
13400
13401 _LT_EOF
13402       fi
13403       ;;
13404
13405     amigaos*)
13406       case $host_cpu in
13407       powerpc)
13408             # see comment about AmigaOS4 .so support
13409             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13410             archive_expsym_cmds=''
13411         ;;
13412       m68k)
13413             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)'
13414             hardcode_libdir_flag_spec='-L$libdir'
13415             hardcode_minus_L=yes
13416         ;;
13417       esac
13418       ;;
13419
13420     beos*)
13421       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13422         allow_undefined_flag=unsupported
13423         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13424         # support --undefined.  This deserves some investigation.  FIXME
13425         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13426       else
13427         ld_shlibs=no
13428       fi
13429       ;;
13430
13431     cygwin* | mingw* | pw32* | cegcc*)
13432       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13433       # as there is no search path for DLLs.
13434       hardcode_libdir_flag_spec='-L$libdir'
13435       export_dynamic_flag_spec='$wl--export-all-symbols'
13436       allow_undefined_flag=unsupported
13437       always_export_symbols=no
13438       enable_shared_with_static_runtimes=yes
13439       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'
13440       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13441
13442       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13443         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13444         # If the export-symbols file already is a .def file, use it as
13445         # is; otherwise, prepend EXPORTS...
13446         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13447           cp $export_symbols $output_objdir/$soname.def;
13448         else
13449           echo EXPORTS > $output_objdir/$soname.def;
13450           cat $export_symbols >> $output_objdir/$soname.def;
13451         fi~
13452         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13453       else
13454         ld_shlibs=no
13455       fi
13456       ;;
13457
13458     haiku*)
13459       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13460       link_all_deplibs=yes
13461       ;;
13462
13463     os2*)
13464       hardcode_libdir_flag_spec='-L$libdir'
13465       hardcode_minus_L=yes
13466       allow_undefined_flag=unsupported
13467       shrext_cmds=.dll
13468       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13469         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13470         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13471         $ECHO EXPORTS >> $output_objdir/$libname.def~
13472         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13473         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13474         emximp -o $lib $output_objdir/$libname.def'
13475       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13476         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13477         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13478         $ECHO EXPORTS >> $output_objdir/$libname.def~
13479         prefix_cmds="$SED"~
13480         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13481           prefix_cmds="$prefix_cmds -e 1d";
13482         fi~
13483         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13484         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13485         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13486         emximp -o $lib $output_objdir/$libname.def'
13487       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13488       enable_shared_with_static_runtimes=yes
13489       file_list_spec='@'
13490       ;;
13491
13492     interix[3-9]*)
13493       hardcode_direct=no
13494       hardcode_shlibpath_var=no
13495       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13496       export_dynamic_flag_spec='$wl-E'
13497       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13498       # Instead, shared libraries are loaded at an image base (0x10000000 by
13499       # default) and relocated if they conflict, which is a slow very memory
13500       # consuming and fragmenting process.  To avoid this, we pick a random,
13501       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13502       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13503       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13504       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'
13505       ;;
13506
13507     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13508       tmp_diet=no
13509       if test linux-dietlibc = "$host_os"; then
13510         case $cc_basename in
13511           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13512         esac
13513       fi
13514       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13515          && test no = "$tmp_diet"
13516       then
13517         tmp_addflag=' $pic_flag'
13518         tmp_sharedflag='-shared'
13519         case $cc_basename,$host_cpu in
13520         pgcc*)                          # Portland Group C compiler
13521           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'
13522           tmp_addflag=' $pic_flag'
13523           ;;
13524         pgf77* | pgf90* | pgf95* | pgfortran*)
13525                                         # Portland Group f77 and f90 compilers
13526           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'
13527           tmp_addflag=' $pic_flag -Mnomain' ;;
13528         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13529           tmp_addflag=' -i_dynamic' ;;
13530         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13531           tmp_addflag=' -i_dynamic -nofor_main' ;;
13532         ifc* | ifort*)                  # Intel Fortran compiler
13533           tmp_addflag=' -nofor_main' ;;
13534         lf95*)                          # Lahey Fortran 8.1
13535           whole_archive_flag_spec=
13536           tmp_sharedflag='--shared' ;;
13537         nagfor*)                        # NAGFOR 5.3
13538           tmp_sharedflag='-Wl,-shared' ;;
13539         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13540           tmp_sharedflag='-qmkshrobj'
13541           tmp_addflag= ;;
13542         nvcc*)  # Cuda Compiler Driver 2.2
13543           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'
13544           compiler_needs_object=yes
13545           ;;
13546         esac
13547         case `$CC -V 2>&1 | $SED 5q` in
13548         *Sun\ C*)                       # Sun C 5.9
13549           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'
13550           compiler_needs_object=yes
13551           tmp_sharedflag='-G' ;;
13552         *Sun\ F*)                       # Sun Fortran 8.3
13553           tmp_sharedflag='-G' ;;
13554         esac
13555         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13556
13557         if test yes = "$supports_anon_versioning"; then
13558           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13559             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13560             echo "local: *; };" >> $output_objdir/$libname.ver~
13561             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13562         fi
13563
13564         case $cc_basename in
13565         tcc*)
13566           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13567           export_dynamic_flag_spec='-rdynamic'
13568           ;;
13569         xlf* | bgf* | bgxlf* | mpixlf*)
13570           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13571           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13572           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13573           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13574           if test yes = "$supports_anon_versioning"; then
13575             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13576               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13577               echo "local: *; };" >> $output_objdir/$libname.ver~
13578               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13579           fi
13580           ;;
13581         esac
13582       else
13583         ld_shlibs=no
13584       fi
13585       ;;
13586
13587     netbsd* | netbsdelf*-gnu)
13588       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13589         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13590         wlarc=
13591       else
13592         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13593         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13594       fi
13595       ;;
13596
13597     solaris*)
13598       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13599         ld_shlibs=no
13600         cat <<_LT_EOF 1>&2
13601
13602 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13603 *** create shared libraries on Solaris systems.  Therefore, libtool
13604 *** is disabling shared libraries support.  We urge you to upgrade GNU
13605 *** binutils to release 2.9.1 or newer.  Another option is to modify
13606 *** your PATH or compiler configuration so that the native linker is
13607 *** used, and then restart.
13608
13609 _LT_EOF
13610       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13611         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13612         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13613       else
13614         ld_shlibs=no
13615       fi
13616       ;;
13617
13618     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13619       case `$LD -v 2>&1` in
13620         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13621         ld_shlibs=no
13622         cat <<_LT_EOF 1>&2
13623
13624 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13625 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13626 *** is disabling shared libraries support.  We urge you to upgrade GNU
13627 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13628 *** your PATH or compiler configuration so that the native linker is
13629 *** used, and then restart.
13630
13631 _LT_EOF
13632         ;;
13633         *)
13634           # For security reasons, it is highly recommended that you always
13635           # use absolute paths for naming shared libraries, and exclude the
13636           # DT_RUNPATH tag from executables and libraries.  But doing so
13637           # requires that you compile everything twice, which is a pain.
13638           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13639             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13640             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13641             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13642           else
13643             ld_shlibs=no
13644           fi
13645         ;;
13646       esac
13647       ;;
13648
13649     sunos4*)
13650       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13651       wlarc=
13652       hardcode_direct=yes
13653       hardcode_shlibpath_var=no
13654       ;;
13655
13656     *)
13657       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13658         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13659         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13660       else
13661         ld_shlibs=no
13662       fi
13663       ;;
13664     esac
13665
13666     if test no = "$ld_shlibs"; then
13667       runpath_var=
13668       hardcode_libdir_flag_spec=
13669       export_dynamic_flag_spec=
13670       whole_archive_flag_spec=
13671     fi
13672   else
13673     # PORTME fill in a description of your system's linker (not GNU ld)
13674     case $host_os in
13675     aix3*)
13676       allow_undefined_flag=unsupported
13677       always_export_symbols=yes
13678       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'
13679       # Note: this linker hardcodes the directories in LIBPATH if there
13680       # are no directories specified by -L.
13681       hardcode_minus_L=yes
13682       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13683         # Neither direct hardcoding nor static linking is supported with a
13684         # broken collect2.
13685         hardcode_direct=unsupported
13686       fi
13687       ;;
13688
13689     aix[4-9]*)
13690       if test ia64 = "$host_cpu"; then
13691         # On IA64, the linker does run time linking by default, so we don't
13692         # have to do anything special.
13693         aix_use_runtimelinking=no
13694         exp_sym_flag='-Bexport'
13695         no_entry_flag=
13696       else
13697         # If we're using GNU nm, then we don't want the "-C" option.
13698         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13699         # Without the "-l" option, or with the "-B" option, AIX nm treats
13700         # weak defined symbols like other global defined symbols, whereas
13701         # GNU nm marks them as "W".
13702         # While the 'weak' keyword is ignored in the Export File, we need
13703         # it in the Import File for the 'aix-soname' feature, so we have
13704         # to replace the "-B" option with "-P" for AIX nm.
13705         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13706           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'
13707         else
13708           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'
13709         fi
13710         aix_use_runtimelinking=no
13711
13712         # Test if we are trying to use run time linking or normal
13713         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13714         # have runtime linking enabled, and use it for executables.
13715         # For shared libraries, we enable/disable runtime linking
13716         # depending on the kind of the shared library created -
13717         # when "with_aix_soname,aix_use_runtimelinking" is:
13718         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13719         # "aix,yes"  lib.so          shared, rtl:yes, for executables
13720         #            lib.a           static archive
13721         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13722         #            lib.a(lib.so.V) shared, rtl:no,  for executables
13723         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13724         #            lib.a(lib.so.V) shared, rtl:no
13725         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13726         #            lib.a           static archive
13727         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13728           for ld_flag in $LDFLAGS; do
13729           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13730             aix_use_runtimelinking=yes
13731             break
13732           fi
13733           done
13734           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13735             # With aix-soname=svr4, we create the lib.so.V shared archives only,
13736             # so we don't have lib.a shared libs to link our executables.
13737             # We have to force runtime linking in this case.
13738             aix_use_runtimelinking=yes
13739             LDFLAGS="$LDFLAGS -Wl,-brtl"
13740           fi
13741           ;;
13742         esac
13743
13744         exp_sym_flag='-bexport'
13745         no_entry_flag='-bnoentry'
13746       fi
13747
13748       # When large executables or shared objects are built, AIX ld can
13749       # have problems creating the table of contents.  If linking a library
13750       # or program results in "error TOC overflow" add -mminimal-toc to
13751       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13752       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13753
13754       archive_cmds=''
13755       hardcode_direct=yes
13756       hardcode_direct_absolute=yes
13757       hardcode_libdir_separator=':'
13758       link_all_deplibs=yes
13759       file_list_spec='$wl-f,'
13760       case $with_aix_soname,$aix_use_runtimelinking in
13761       aix,*) ;; # traditional, no import file
13762       svr4,* | *,yes) # use import file
13763         # The Import File defines what to hardcode.
13764         hardcode_direct=no
13765         hardcode_direct_absolute=no
13766         ;;
13767       esac
13768
13769       if test yes = "$GCC"; then
13770         case $host_os in aix4.[012]|aix4.[012].*)
13771         # We only want to do this on AIX 4.2 and lower, the check
13772         # below for broken collect2 doesn't work under 4.3+
13773           collect2name=`$CC -print-prog-name=collect2`
13774           if test -f "$collect2name" &&
13775            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13776           then
13777           # We have reworked collect2
13778           :
13779           else
13780           # We have old collect2
13781           hardcode_direct=unsupported
13782           # It fails to find uninstalled libraries when the uninstalled
13783           # path is not listed in the libpath.  Setting hardcode_minus_L
13784           # to unsupported forces relinking
13785           hardcode_minus_L=yes
13786           hardcode_libdir_flag_spec='-L$libdir'
13787           hardcode_libdir_separator=
13788           fi
13789           ;;
13790         esac
13791         shared_flag='-shared'
13792         if test yes = "$aix_use_runtimelinking"; then
13793           shared_flag="$shared_flag "'$wl-G'
13794         fi
13795         # Need to ensure runtime linking is disabled for the traditional
13796         # shared library, or the linker may eventually find shared libraries
13797         # /with/ Import File - we do not want to mix them.
13798         shared_flag_aix='-shared'
13799         shared_flag_svr4='-shared $wl-G'
13800       else
13801         # not using gcc
13802         if test ia64 = "$host_cpu"; then
13803         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13804         # chokes on -Wl,-G. The following line is correct:
13805           shared_flag='-G'
13806         else
13807           if test yes = "$aix_use_runtimelinking"; then
13808             shared_flag='$wl-G'
13809           else
13810             shared_flag='$wl-bM:SRE'
13811           fi
13812           shared_flag_aix='$wl-bM:SRE'
13813           shared_flag_svr4='$wl-G'
13814         fi
13815       fi
13816
13817       export_dynamic_flag_spec='$wl-bexpall'
13818       # It seems that -bexpall does not export symbols beginning with
13819       # underscore (_), so it is better to generate a list of symbols to export.
13820       always_export_symbols=yes
13821       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13822         # Warning - without using the other runtime loading flags (-brtl),
13823         # -berok will link without error, but may produce a broken library.
13824         allow_undefined_flag='-berok'
13825         # Determine the default libpath from the value encoded in an
13826         # empty executable.
13827         if test set = "${lt_cv_aix_libpath+set}"; then
13828   aix_libpath=$lt_cv_aix_libpath
13829 else
13830   if test ${lt_cv_aix_libpath_+y}
13831 then :
13832   printf %s "(cached) " >&6
13833 else $as_nop
13834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h.  */
13836
13837 int main (void)
13838 {
13839
13840  ;
13841  return 0;
13842 }
13843 _ACEOF
13844 if ac_fn_c_try_link "$LINENO"
13845 then :
13846
13847   lt_aix_libpath_sed='
13848       /Import File Strings/,/^$/ {
13849           /^0/ {
13850               s/^0  *\([^ ]*\) *$/\1/
13851               p
13852           }
13853       }'
13854   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13855   # Check for a 64-bit object if we didn't find anything.
13856   if test -z "$lt_cv_aix_libpath_"; then
13857     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13858   fi
13859 fi
13860 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13861     conftest$ac_exeext conftest.$ac_ext
13862   if test -z "$lt_cv_aix_libpath_"; then
13863     lt_cv_aix_libpath_=/usr/lib:/lib
13864   fi
13865
13866 fi
13867
13868   aix_libpath=$lt_cv_aix_libpath_
13869 fi
13870
13871         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13872         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
13873       else
13874         if test ia64 = "$host_cpu"; then
13875           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13876           allow_undefined_flag="-z nodefs"
13877           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"
13878         else
13879          # Determine the default libpath from the value encoded in an
13880          # empty executable.
13881          if test set = "${lt_cv_aix_libpath+set}"; then
13882   aix_libpath=$lt_cv_aix_libpath
13883 else
13884   if test ${lt_cv_aix_libpath_+y}
13885 then :
13886   printf %s "(cached) " >&6
13887 else $as_nop
13888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h.  */
13890
13891 int main (void)
13892 {
13893
13894  ;
13895  return 0;
13896 }
13897 _ACEOF
13898 if ac_fn_c_try_link "$LINENO"
13899 then :
13900
13901   lt_aix_libpath_sed='
13902       /Import File Strings/,/^$/ {
13903           /^0/ {
13904               s/^0  *\([^ ]*\) *$/\1/
13905               p
13906           }
13907       }'
13908   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13909   # Check for a 64-bit object if we didn't find anything.
13910   if test -z "$lt_cv_aix_libpath_"; then
13911     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13912   fi
13913 fi
13914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13915     conftest$ac_exeext conftest.$ac_ext
13916   if test -z "$lt_cv_aix_libpath_"; then
13917     lt_cv_aix_libpath_=/usr/lib:/lib
13918   fi
13919
13920 fi
13921
13922   aix_libpath=$lt_cv_aix_libpath_
13923 fi
13924
13925          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13926           # Warning - without using the other run time loading flags,
13927           # -berok will link without error, but may produce a broken library.
13928           no_undefined_flag=' $wl-bernotok'
13929           allow_undefined_flag=' $wl-berok'
13930           if test yes = "$with_gnu_ld"; then
13931             # We only use this code for GNU lds that support --whole-archive.
13932             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13933           else
13934             # Exported symbols can be pulled into shared objects from archives
13935             whole_archive_flag_spec='$convenience'
13936           fi
13937           archive_cmds_need_lc=yes
13938           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13939           # -brtl affects multiple linker settings, -berok does not and is overridden later
13940           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13941           if test svr4 != "$with_aix_soname"; then
13942             # This is similar to how AIX traditionally builds its shared libraries.
13943             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'
13944           fi
13945           if test aix != "$with_aix_soname"; then
13946             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'
13947           else
13948             # used by -dlpreopen to get the symbols
13949             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13950           fi
13951           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13952         fi
13953       fi
13954       ;;
13955
13956     amigaos*)
13957       case $host_cpu in
13958       powerpc)
13959             # see comment about AmigaOS4 .so support
13960             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13961             archive_expsym_cmds=''
13962         ;;
13963       m68k)
13964             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)'
13965             hardcode_libdir_flag_spec='-L$libdir'
13966             hardcode_minus_L=yes
13967         ;;
13968       esac
13969       ;;
13970
13971     bsdi[45]*)
13972       export_dynamic_flag_spec=-rdynamic
13973       ;;
13974
13975     cygwin* | mingw* | pw32* | cegcc*)
13976       # When not using gcc, we currently assume that we are using
13977       # Microsoft Visual C++ or Intel C++ Compiler.
13978       # hardcode_libdir_flag_spec is actually meaningless, as there is
13979       # no search path for DLLs.
13980       case $cc_basename in
13981       cl* | icl*)
13982         # Native MSVC or ICC
13983         hardcode_libdir_flag_spec=' '
13984         allow_undefined_flag=unsupported
13985         always_export_symbols=yes
13986         file_list_spec='@'
13987         # Tell ltmain to make .lib files, not .a files.
13988         libext=lib
13989         # Tell ltmain to make .dll files, not .so files.
13990         shrext_cmds=.dll
13991         # FIXME: Setting linknames here is a bad hack.
13992         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13993         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13994             cp "$export_symbols" "$output_objdir/$soname.def";
13995             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13996           else
13997             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13998           fi~
13999           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14000           linknames='
14001         # The linker will not automatically build a static lib if we build a DLL.
14002         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14003         enable_shared_with_static_runtimes=yes
14004         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14005         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14006         # Don't use ranlib
14007         old_postinstall_cmds='chmod 644 $oldlib'
14008         postlink_cmds='lt_outputfile="@OUTPUT@"~
14009           lt_tool_outputfile="@TOOL_OUTPUT@"~
14010           case $lt_outputfile in
14011             *.exe|*.EXE) ;;
14012             *)
14013               lt_outputfile=$lt_outputfile.exe
14014               lt_tool_outputfile=$lt_tool_outputfile.exe
14015               ;;
14016           esac~
14017           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14018             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14019             $RM "$lt_outputfile.manifest";
14020           fi'
14021         ;;
14022       *)
14023         # Assume MSVC and ICC wrapper
14024         hardcode_libdir_flag_spec=' '
14025         allow_undefined_flag=unsupported
14026         # Tell ltmain to make .lib files, not .a files.
14027         libext=lib
14028         # Tell ltmain to make .dll files, not .so files.
14029         shrext_cmds=.dll
14030         # FIXME: Setting linknames here is a bad hack.
14031         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14032         # The linker will automatically build a .lib file if we build a DLL.
14033         old_archive_from_new_cmds='true'
14034         # FIXME: Should let the user specify the lib program.
14035         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14036         enable_shared_with_static_runtimes=yes
14037         ;;
14038       esac
14039       ;;
14040
14041     darwin* | rhapsody*)
14042
14043
14044   archive_cmds_need_lc=no
14045   hardcode_direct=no
14046   hardcode_automatic=yes
14047   hardcode_shlibpath_var=unsupported
14048   if test yes = "$lt_cv_ld_force_load"; then
14049     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\"`'
14050
14051   else
14052     whole_archive_flag_spec=''
14053   fi
14054   link_all_deplibs=yes
14055   allow_undefined_flag=$_lt_dar_allow_undefined
14056   case $cc_basename in
14057      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14058      *) _lt_dar_can_shared=$GCC ;;
14059   esac
14060   if test yes = "$_lt_dar_can_shared"; then
14061     output_verbose_link_cmd=func_echo_all
14062     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14063     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14064     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"
14065     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"
14066
14067   else
14068   ld_shlibs=no
14069   fi
14070
14071       ;;
14072
14073     dgux*)
14074       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14075       hardcode_libdir_flag_spec='-L$libdir'
14076       hardcode_shlibpath_var=no
14077       ;;
14078
14079     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14080     # support.  Future versions do this automatically, but an explicit c++rt0.o
14081     # does not break anything, and helps significantly (at the cost of a little
14082     # extra space).
14083     freebsd2.2*)
14084       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14085       hardcode_libdir_flag_spec='-R$libdir'
14086       hardcode_direct=yes
14087       hardcode_shlibpath_var=no
14088       ;;
14089
14090     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14091     freebsd2.*)
14092       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14093       hardcode_direct=yes
14094       hardcode_minus_L=yes
14095       hardcode_shlibpath_var=no
14096       ;;
14097
14098     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14099     freebsd* | dragonfly* | midnightbsd*)
14100       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14101       hardcode_libdir_flag_spec='-R$libdir'
14102       hardcode_direct=yes
14103       hardcode_shlibpath_var=no
14104       ;;
14105
14106     hpux9*)
14107       if test yes = "$GCC"; then
14108         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'
14109       else
14110         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'
14111       fi
14112       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14113       hardcode_libdir_separator=:
14114       hardcode_direct=yes
14115
14116       # hardcode_minus_L: Not really in the search PATH,
14117       # but as the default location of the library.
14118       hardcode_minus_L=yes
14119       export_dynamic_flag_spec='$wl-E'
14120       ;;
14121
14122     hpux10*)
14123       if test yes,no = "$GCC,$with_gnu_ld"; then
14124         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14125       else
14126         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14127       fi
14128       if test no = "$with_gnu_ld"; then
14129         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14130         hardcode_libdir_separator=:
14131         hardcode_direct=yes
14132         hardcode_direct_absolute=yes
14133         export_dynamic_flag_spec='$wl-E'
14134         # hardcode_minus_L: Not really in the search PATH,
14135         # but as the default location of the library.
14136         hardcode_minus_L=yes
14137       fi
14138       ;;
14139
14140     hpux11*)
14141       if test yes,no = "$GCC,$with_gnu_ld"; then
14142         case $host_cpu in
14143         hppa*64*)
14144           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14145           ;;
14146         ia64*)
14147           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14148           ;;
14149         *)
14150           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14151           ;;
14152         esac
14153       else
14154         case $host_cpu in
14155         hppa*64*)
14156           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14157           ;;
14158         ia64*)
14159           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14160           ;;
14161         *)
14162
14163           # Older versions of the 11.00 compiler do not understand -b yet
14164           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14165           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14166 printf %s "checking if $CC understands -b... " >&6; }
14167 if test ${lt_cv_prog_compiler__b+y}
14168 then :
14169   printf %s "(cached) " >&6
14170 else $as_nop
14171   lt_cv_prog_compiler__b=no
14172    save_LDFLAGS=$LDFLAGS
14173    LDFLAGS="$LDFLAGS -b"
14174    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14175    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14176      # The linker can only warn and ignore the option if not recognized
14177      # So say no if there are warnings
14178      if test -s conftest.err; then
14179        # Append any errors to the config.log.
14180        cat conftest.err 1>&5
14181        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14182        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14183        if diff conftest.exp conftest.er2 >/dev/null; then
14184          lt_cv_prog_compiler__b=yes
14185        fi
14186      else
14187        lt_cv_prog_compiler__b=yes
14188      fi
14189    fi
14190    $RM -r conftest*
14191    LDFLAGS=$save_LDFLAGS
14192
14193 fi
14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14195 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14196
14197 if test yes = "$lt_cv_prog_compiler__b"; then
14198     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14199 else
14200     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14201 fi
14202
14203           ;;
14204         esac
14205       fi
14206       if test no = "$with_gnu_ld"; then
14207         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14208         hardcode_libdir_separator=:
14209
14210         case $host_cpu in
14211         hppa*64*|ia64*)
14212           hardcode_direct=no
14213           hardcode_shlibpath_var=no
14214           ;;
14215         *)
14216           hardcode_direct=yes
14217           hardcode_direct_absolute=yes
14218           export_dynamic_flag_spec='$wl-E'
14219
14220           # hardcode_minus_L: Not really in the search PATH,
14221           # but as the default location of the library.
14222           hardcode_minus_L=yes
14223           ;;
14224         esac
14225       fi
14226       ;;
14227
14228     irix5* | irix6* | nonstopux*)
14229       if test yes = "$GCC"; then
14230         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'
14231         # Try to use the -exported_symbol ld option, if it does not
14232         # work, assume that -exports_file does not work either and
14233         # implicitly export all symbols.
14234         # This should be the same for all languages, so no per-tag cache variable.
14235         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14236 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14237 if test ${lt_cv_irix_exported_symbol+y}
14238 then :
14239   printf %s "(cached) " >&6
14240 else $as_nop
14241   save_LDFLAGS=$LDFLAGS
14242            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14243            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h.  */
14245 int foo (void) { return 0; }
14246 _ACEOF
14247 if ac_fn_c_try_link "$LINENO"
14248 then :
14249   lt_cv_irix_exported_symbol=yes
14250 else $as_nop
14251   lt_cv_irix_exported_symbol=no
14252 fi
14253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14254     conftest$ac_exeext conftest.$ac_ext
14255            LDFLAGS=$save_LDFLAGS
14256 fi
14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14258 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14259         if test yes = "$lt_cv_irix_exported_symbol"; then
14260           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'
14261         fi
14262         link_all_deplibs=no
14263       else
14264         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'
14265         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'
14266       fi
14267       archive_cmds_need_lc='no'
14268       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14269       hardcode_libdir_separator=:
14270       inherit_rpath=yes
14271       link_all_deplibs=yes
14272       ;;
14273
14274     linux*)
14275       case $cc_basename in
14276       tcc*)
14277         # Fabrice Bellard et al's Tiny C Compiler
14278         ld_shlibs=yes
14279         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14280         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14281         ;;
14282       esac
14283       ;;
14284
14285     netbsd* | netbsdelf*-gnu)
14286       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14287         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14288       else
14289         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14290       fi
14291       hardcode_libdir_flag_spec='-R$libdir'
14292       hardcode_direct=yes
14293       hardcode_shlibpath_var=no
14294       ;;
14295
14296     newsos6)
14297       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14298       hardcode_direct=yes
14299       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14300       hardcode_libdir_separator=:
14301       hardcode_shlibpath_var=no
14302       ;;
14303
14304     *nto* | *qnx*)
14305       ;;
14306
14307     openbsd* | bitrig*)
14308       if test -f /usr/libexec/ld.so; then
14309         hardcode_direct=yes
14310         hardcode_shlibpath_var=no
14311         hardcode_direct_absolute=yes
14312         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14313           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14314           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14315           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14316           export_dynamic_flag_spec='$wl-E'
14317         else
14318           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14319           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14320         fi
14321       else
14322         ld_shlibs=no
14323       fi
14324       ;;
14325
14326     os2*)
14327       hardcode_libdir_flag_spec='-L$libdir'
14328       hardcode_minus_L=yes
14329       allow_undefined_flag=unsupported
14330       shrext_cmds=.dll
14331       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14332         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14333         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14334         $ECHO EXPORTS >> $output_objdir/$libname.def~
14335         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14336         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14337         emximp -o $lib $output_objdir/$libname.def'
14338       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14339         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14340         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14341         $ECHO EXPORTS >> $output_objdir/$libname.def~
14342         prefix_cmds="$SED"~
14343         if test EXPORTS = "`$SED 1q $export_symbols`"; then
14344           prefix_cmds="$prefix_cmds -e 1d";
14345         fi~
14346         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14347         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14348         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14349         emximp -o $lib $output_objdir/$libname.def'
14350       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14351       enable_shared_with_static_runtimes=yes
14352       file_list_spec='@'
14353       ;;
14354
14355     osf3*)
14356       if test yes = "$GCC"; then
14357         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14358         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'
14359       else
14360         allow_undefined_flag=' -expect_unresolved \*'
14361         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'
14362       fi
14363       archive_cmds_need_lc='no'
14364       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14365       hardcode_libdir_separator=:
14366       ;;
14367
14368     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14369       if test yes = "$GCC"; then
14370         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14371         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'
14372         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14373       else
14374         allow_undefined_flag=' -expect_unresolved \*'
14375         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'
14376         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~
14377           $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'
14378
14379         # Both c and cxx compiler support -rpath directly
14380         hardcode_libdir_flag_spec='-rpath $libdir'
14381       fi
14382       archive_cmds_need_lc='no'
14383       hardcode_libdir_separator=:
14384       ;;
14385
14386     solaris*)
14387       no_undefined_flag=' -z defs'
14388       if test yes = "$GCC"; then
14389         wlarc='$wl'
14390         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14391         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14392           $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'
14393       else
14394         case `$CC -V 2>&1` in
14395         *"Compilers 5.0"*)
14396           wlarc=''
14397           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14398           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14399             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14400           ;;
14401         *)
14402           wlarc='$wl'
14403           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14404           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14405             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14406           ;;
14407         esac
14408       fi
14409       hardcode_libdir_flag_spec='-R$libdir'
14410       hardcode_shlibpath_var=no
14411       case $host_os in
14412       solaris2.[0-5] | solaris2.[0-5].*) ;;
14413       *)
14414         # The compiler driver will combine and reorder linker options,
14415         # but understands '-z linker_flag'.  GCC discards it without '$wl',
14416         # but is careful enough not to reorder.
14417         # Supported since Solaris 2.6 (maybe 2.5.1?)
14418         if test yes = "$GCC"; then
14419           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14420         else
14421           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14422         fi
14423         ;;
14424       esac
14425       link_all_deplibs=yes
14426       ;;
14427
14428     sunos4*)
14429       if test sequent = "$host_vendor"; then
14430         # Use $CC to link under sequent, because it throws in some extra .o
14431         # files that make .init and .fini sections work.
14432         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14433       else
14434         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14435       fi
14436       hardcode_libdir_flag_spec='-L$libdir'
14437       hardcode_direct=yes
14438       hardcode_minus_L=yes
14439       hardcode_shlibpath_var=no
14440       ;;
14441
14442     sysv4)
14443       case $host_vendor in
14444         sni)
14445           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14446           hardcode_direct=yes # is this really true???
14447         ;;
14448         siemens)
14449           ## LD is ld it makes a PLAMLIB
14450           ## CC just makes a GrossModule.
14451           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14452           reload_cmds='$CC -r -o $output$reload_objs'
14453           hardcode_direct=no
14454         ;;
14455         motorola)
14456           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14457           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14458         ;;
14459       esac
14460       runpath_var='LD_RUN_PATH'
14461       hardcode_shlibpath_var=no
14462       ;;
14463
14464     sysv4.3*)
14465       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14466       hardcode_shlibpath_var=no
14467       export_dynamic_flag_spec='-Bexport'
14468       ;;
14469
14470     sysv4*MP*)
14471       if test -d /usr/nec; then
14472         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14473         hardcode_shlibpath_var=no
14474         runpath_var=LD_RUN_PATH
14475         hardcode_runpath_var=yes
14476         ld_shlibs=yes
14477       fi
14478       ;;
14479
14480     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14481       no_undefined_flag='$wl-z,text'
14482       archive_cmds_need_lc=no
14483       hardcode_shlibpath_var=no
14484       runpath_var='LD_RUN_PATH'
14485
14486       if test yes = "$GCC"; then
14487         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14488         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14489       else
14490         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14491         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14492       fi
14493       ;;
14494
14495     sysv5* | sco3.2v5* | sco5v6*)
14496       # Note: We CANNOT use -z defs as we might desire, because we do not
14497       # link with -lc, and that would cause any symbols used from libc to
14498       # always be unresolved, which means just about no library would
14499       # ever link correctly.  If we're not using GNU ld we use -z text
14500       # though, which does catch some bad symbols but isn't as heavy-handed
14501       # as -z defs.
14502       no_undefined_flag='$wl-z,text'
14503       allow_undefined_flag='$wl-z,nodefs'
14504       archive_cmds_need_lc=no
14505       hardcode_shlibpath_var=no
14506       hardcode_libdir_flag_spec='$wl-R,$libdir'
14507       hardcode_libdir_separator=':'
14508       link_all_deplibs=yes
14509       export_dynamic_flag_spec='$wl-Bexport'
14510       runpath_var='LD_RUN_PATH'
14511
14512       if test yes = "$GCC"; then
14513         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14514         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14515       else
14516         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14517         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14518       fi
14519       ;;
14520
14521     uts4*)
14522       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523       hardcode_libdir_flag_spec='-L$libdir'
14524       hardcode_shlibpath_var=no
14525       ;;
14526
14527     *)
14528       ld_shlibs=no
14529       ;;
14530     esac
14531
14532     if test sni = "$host_vendor"; then
14533       case $host in
14534       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14535         export_dynamic_flag_spec='$wl-Blargedynsym'
14536         ;;
14537       esac
14538     fi
14539   fi
14540
14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14542 printf "%s\n" "$ld_shlibs" >&6; }
14543 test no = "$ld_shlibs" && can_build_shared=no
14544
14545 with_gnu_ld=$with_gnu_ld
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561 #
14562 # Do we need to explicitly link libc?
14563 #
14564 case "x$archive_cmds_need_lc" in
14565 x|xyes)
14566   # Assume -lc should be added
14567   archive_cmds_need_lc=yes
14568
14569   if test yes,yes = "$GCC,$enable_shared"; then
14570     case $archive_cmds in
14571     *'~'*)
14572       # FIXME: we may have to deal with multi-command sequences.
14573       ;;
14574     '$CC '*)
14575       # Test whether the compiler implicitly links with -lc since on some
14576       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14577       # to ld, don't add -lc before -lgcc.
14578       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14579 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14580 if test ${lt_cv_archive_cmds_need_lc+y}
14581 then :
14582   printf %s "(cached) " >&6
14583 else $as_nop
14584   $RM conftest*
14585         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14586
14587         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14588   (eval $ac_compile) 2>&5
14589   ac_status=$?
14590   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14591   test $ac_status = 0; } 2>conftest.err; then
14592           soname=conftest
14593           lib=conftest
14594           libobjs=conftest.$ac_objext
14595           deplibs=
14596           wl=$lt_prog_compiler_wl
14597           pic_flag=$lt_prog_compiler_pic
14598           compiler_flags=-v
14599           linker_flags=-v
14600           verstring=
14601           output_objdir=.
14602           libname=conftest
14603           lt_save_allow_undefined_flag=$allow_undefined_flag
14604           allow_undefined_flag=
14605           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14606   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14607   ac_status=$?
14608   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14609   test $ac_status = 0; }
14610           then
14611             lt_cv_archive_cmds_need_lc=no
14612           else
14613             lt_cv_archive_cmds_need_lc=yes
14614           fi
14615           allow_undefined_flag=$lt_save_allow_undefined_flag
14616         else
14617           cat conftest.err 1>&5
14618         fi
14619         $RM conftest*
14620
14621 fi
14622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14623 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
14624       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14625       ;;
14626     esac
14627   fi
14628   ;;
14629 esac
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14783 printf %s "checking dynamic linker characteristics... " >&6; }
14784
14785 if test yes = "$GCC"; then
14786   case $host_os in
14787     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14788     *) lt_awk_arg='/^libraries:/' ;;
14789   esac
14790   case $host_os in
14791     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14792     *) lt_sed_strip_eq='s|=/|/|g' ;;
14793   esac
14794   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14795   case $lt_search_path_spec in
14796   *\;*)
14797     # if the path contains ";" then we assume it to be the separator
14798     # otherwise default to the standard path separator (i.e. ":") - it is
14799     # assumed that no part of a normal pathname contains ";" but that should
14800     # okay in the real world where ";" in dirpaths is itself problematic.
14801     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14802     ;;
14803   *)
14804     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14805     ;;
14806   esac
14807   # Ok, now we have the path, separated by spaces, we can step through it
14808   # and add multilib dir if necessary...
14809   lt_tmp_lt_search_path_spec=
14810   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14811   # ...but if some path component already ends with the multilib dir we assume
14812   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14813   case "$lt_multi_os_dir; $lt_search_path_spec " in
14814   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14815     lt_multi_os_dir=
14816     ;;
14817   esac
14818   for lt_sys_path in $lt_search_path_spec; do
14819     if test -d "$lt_sys_path$lt_multi_os_dir"; then
14820       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14821     elif test -n "$lt_multi_os_dir"; then
14822       test -d "$lt_sys_path" && \
14823         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14824     fi
14825   done
14826   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14827 BEGIN {RS = " "; FS = "/|\n";} {
14828   lt_foo = "";
14829   lt_count = 0;
14830   for (lt_i = NF; lt_i > 0; lt_i--) {
14831     if ($lt_i != "" && $lt_i != ".") {
14832       if ($lt_i == "..") {
14833         lt_count++;
14834       } else {
14835         if (lt_count == 0) {
14836           lt_foo = "/" $lt_i lt_foo;
14837         } else {
14838           lt_count--;
14839         }
14840       }
14841     }
14842   }
14843   if (lt_foo != "") { lt_freq[lt_foo]++; }
14844   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14845 }'`
14846   # AWK program above erroneously prepends '/' to C:/dos/paths
14847   # for these hosts.
14848   case $host_os in
14849     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14850       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14851   esac
14852   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14853 else
14854   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14855 fi
14856 library_names_spec=
14857 libname_spec='lib$name'
14858 soname_spec=
14859 shrext_cmds=.so
14860 postinstall_cmds=
14861 postuninstall_cmds=
14862 finish_cmds=
14863 finish_eval=
14864 shlibpath_var=
14865 shlibpath_overrides_runpath=unknown
14866 version_type=none
14867 dynamic_linker="$host_os ld.so"
14868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14869 need_lib_prefix=unknown
14870 hardcode_into_libs=no
14871
14872 # when you set need_version to no, make sure it does not cause -set_version
14873 # flags to be left without arguments
14874 need_version=unknown
14875
14876
14877
14878 case $host_os in
14879 aix3*)
14880   version_type=linux # correct to gnu/linux during the next big refactor
14881   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14882   shlibpath_var=LIBPATH
14883
14884   # AIX 3 has no versioning support, so we append a major version to the name.
14885   soname_spec='$libname$release$shared_ext$major'
14886   ;;
14887
14888 aix[4-9]*)
14889   version_type=linux # correct to gnu/linux during the next big refactor
14890   need_lib_prefix=no
14891   need_version=no
14892   hardcode_into_libs=yes
14893   if test ia64 = "$host_cpu"; then
14894     # AIX 5 supports IA64
14895     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14896     shlibpath_var=LD_LIBRARY_PATH
14897   else
14898     # With GCC up to 2.95.x, collect2 would create an import file
14899     # for dependence libraries.  The import file would start with
14900     # the line '#! .'.  This would cause the generated library to
14901     # depend on '.', always an invalid library.  This was fixed in
14902     # development snapshots of GCC prior to 3.0.
14903     case $host_os in
14904       aix4 | aix4.[01] | aix4.[01].*)
14905       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14906            echo ' yes '
14907            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14908         :
14909       else
14910         can_build_shared=no
14911       fi
14912       ;;
14913     esac
14914     # Using Import Files as archive members, it is possible to support
14915     # filename-based versioning of shared library archives on AIX. While
14916     # this would work for both with and without runtime linking, it will
14917     # prevent static linking of such archives. So we do filename-based
14918     # shared library versioning with .so extension only, which is used
14919     # when both runtime linking and shared linking is enabled.
14920     # Unfortunately, runtime linking may impact performance, so we do
14921     # not want this to be the default eventually. Also, we use the
14922     # versioned .so libs for executables only if there is the -brtl
14923     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14924     # To allow for filename-based versioning support, we need to create
14925     # libNAME.so.V as an archive file, containing:
14926     # *) an Import File, referring to the versioned filename of the
14927     #    archive as well as the shared archive member, telling the
14928     #    bitwidth (32 or 64) of that shared object, and providing the
14929     #    list of exported symbols of that shared object, eventually
14930     #    decorated with the 'weak' keyword
14931     # *) the shared object with the F_LOADONLY flag set, to really avoid
14932     #    it being seen by the linker.
14933     # At run time we better use the real file rather than another symlink,
14934     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14935
14936     case $with_aix_soname,$aix_use_runtimelinking in
14937     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14938     # soname into executable. Probably we can add versioning support to
14939     # collect2, so additional links can be useful in future.
14940     aix,yes) # traditional libtool
14941       dynamic_linker='AIX unversionable lib.so'
14942       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14943       # instead of lib<name>.a to let people know that these are not
14944       # typical AIX shared libraries.
14945       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14946       ;;
14947     aix,no) # traditional AIX only
14948       dynamic_linker='AIX lib.a(lib.so.V)'
14949       # We preserve .a as extension for shared libraries through AIX4.2
14950       # and later when we are not doing run time linking.
14951       library_names_spec='$libname$release.a $libname.a'
14952       soname_spec='$libname$release$shared_ext$major'
14953       ;;
14954     svr4,*) # full svr4 only
14955       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14956       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14957       # We do not specify a path in Import Files, so LIBPATH fires.
14958       shlibpath_overrides_runpath=yes
14959       ;;
14960     *,yes) # both, prefer svr4
14961       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14962       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14963       # unpreferred sharedlib libNAME.a needs extra handling
14964       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"'
14965       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"'
14966       # We do not specify a path in Import Files, so LIBPATH fires.
14967       shlibpath_overrides_runpath=yes
14968       ;;
14969     *,no) # both, prefer aix
14970       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14971       library_names_spec='$libname$release.a $libname.a'
14972       soname_spec='$libname$release$shared_ext$major'
14973       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14974       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)'
14975       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"'
14976       ;;
14977     esac
14978     shlibpath_var=LIBPATH
14979   fi
14980   ;;
14981
14982 amigaos*)
14983   case $host_cpu in
14984   powerpc)
14985     # Since July 2007 AmigaOS4 officially supports .so libraries.
14986     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14987     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14988     ;;
14989   m68k)
14990     library_names_spec='$libname.ixlibrary $libname.a'
14991     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14992     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'
14993     ;;
14994   esac
14995   ;;
14996
14997 beos*)
14998   library_names_spec='$libname$shared_ext'
14999   dynamic_linker="$host_os ld.so"
15000   shlibpath_var=LIBRARY_PATH
15001   ;;
15002
15003 bsdi[45]*)
15004   version_type=linux # correct to gnu/linux during the next big refactor
15005   need_version=no
15006   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15007   soname_spec='$libname$release$shared_ext$major'
15008   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15009   shlibpath_var=LD_LIBRARY_PATH
15010   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15011   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15012   # the default ld.so.conf also contains /usr/contrib/lib and
15013   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15014   # libtool to hard-code these into programs
15015   ;;
15016
15017 cygwin* | mingw* | pw32* | cegcc*)
15018   version_type=windows
15019   shrext_cmds=.dll
15020   need_version=no
15021   need_lib_prefix=no
15022
15023   case $GCC,$cc_basename in
15024   yes,*)
15025     # gcc
15026     library_names_spec='$libname.dll.a'
15027     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15028     postinstall_cmds='base_file=`basename \$file`~
15029       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15030       dldir=$destdir/`dirname \$dlpath`~
15031       test -d \$dldir || mkdir -p \$dldir~
15032       $install_prog $dir/$dlname \$dldir/$dlname~
15033       chmod a+x \$dldir/$dlname~
15034       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15035         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15036       fi'
15037     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15038       dlpath=$dir/\$dldll~
15039        $RM \$dlpath'
15040     shlibpath_overrides_runpath=yes
15041
15042     case $host_os in
15043     cygwin*)
15044       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15045       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15046
15047       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15048       ;;
15049     mingw* | cegcc*)
15050       # MinGW DLLs use traditional 'lib' prefix
15051       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15052       ;;
15053     pw32*)
15054       # pw32 DLLs use 'pw' prefix rather than 'lib'
15055       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15056       ;;
15057     esac
15058     dynamic_linker='Win32 ld.exe'
15059     ;;
15060
15061   *,cl* | *,icl*)
15062     # Native MSVC or ICC
15063     libname_spec='$name'
15064     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15065     library_names_spec='$libname.dll.lib'
15066
15067     case $build_os in
15068     mingw*)
15069       sys_lib_search_path_spec=
15070       lt_save_ifs=$IFS
15071       IFS=';'
15072       for lt_path in $LIB
15073       do
15074         IFS=$lt_save_ifs
15075         # Let DOS variable expansion print the short 8.3 style file name.
15076         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15077         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15078       done
15079       IFS=$lt_save_ifs
15080       # Convert to MSYS style.
15081       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15082       ;;
15083     cygwin*)
15084       # Convert to unix form, then to dos form, then back to unix form
15085       # but this time dos style (no spaces!) so that the unix form looks
15086       # like /cygdrive/c/PROGRA~1:/cygdr...
15087       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15088       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15089       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15090       ;;
15091     *)
15092       sys_lib_search_path_spec=$LIB
15093       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15094         # It is most probably a Windows format PATH.
15095         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15096       else
15097         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15098       fi
15099       # FIXME: find the short name or the path components, as spaces are
15100       # common. (e.g. "Program Files" -> "PROGRA~1")
15101       ;;
15102     esac
15103
15104     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15105     postinstall_cmds='base_file=`basename \$file`~
15106       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15107       dldir=$destdir/`dirname \$dlpath`~
15108       test -d \$dldir || mkdir -p \$dldir~
15109       $install_prog $dir/$dlname \$dldir/$dlname'
15110     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15111       dlpath=$dir/\$dldll~
15112        $RM \$dlpath'
15113     shlibpath_overrides_runpath=yes
15114     dynamic_linker='Win32 link.exe'
15115     ;;
15116
15117   *)
15118     # Assume MSVC and ICC wrapper
15119     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15120     dynamic_linker='Win32 ld.exe'
15121     ;;
15122   esac
15123   # FIXME: first we should search . and the directory the executable is in
15124   shlibpath_var=PATH
15125   ;;
15126
15127 darwin* | rhapsody*)
15128   dynamic_linker="$host_os dyld"
15129   version_type=darwin
15130   need_lib_prefix=no
15131   need_version=no
15132   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15133   soname_spec='$libname$release$major$shared_ext'
15134   shlibpath_overrides_runpath=yes
15135   shlibpath_var=DYLD_LIBRARY_PATH
15136   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15137
15138   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15139   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15140   ;;
15141
15142 dgux*)
15143   version_type=linux # correct to gnu/linux during the next big refactor
15144   need_lib_prefix=no
15145   need_version=no
15146   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15147   soname_spec='$libname$release$shared_ext$major'
15148   shlibpath_var=LD_LIBRARY_PATH
15149   ;;
15150
15151 freebsd* | dragonfly* | midnightbsd*)
15152   # DragonFly does not have aout.  When/if they implement a new
15153   # versioning mechanism, adjust this.
15154   if test -x /usr/bin/objformat; then
15155     objformat=`/usr/bin/objformat`
15156   else
15157     case $host_os in
15158     freebsd[23].*) objformat=aout ;;
15159     *) objformat=elf ;;
15160     esac
15161   fi
15162   version_type=freebsd-$objformat
15163   case $version_type in
15164     freebsd-elf*)
15165       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15166       soname_spec='$libname$release$shared_ext$major'
15167       need_version=no
15168       need_lib_prefix=no
15169       ;;
15170     freebsd-*)
15171       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15172       need_version=yes
15173       ;;
15174   esac
15175   shlibpath_var=LD_LIBRARY_PATH
15176   case $host_os in
15177   freebsd2.*)
15178     shlibpath_overrides_runpath=yes
15179     ;;
15180   freebsd3.[01]* | freebsdelf3.[01]*)
15181     shlibpath_overrides_runpath=yes
15182     hardcode_into_libs=yes
15183     ;;
15184   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15185   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15186     shlibpath_overrides_runpath=no
15187     hardcode_into_libs=yes
15188     ;;
15189   *) # from 4.6 on, and DragonFly
15190     shlibpath_overrides_runpath=yes
15191     hardcode_into_libs=yes
15192     ;;
15193   esac
15194   ;;
15195
15196 haiku*)
15197   version_type=linux # correct to gnu/linux during the next big refactor
15198   need_lib_prefix=no
15199   need_version=no
15200   dynamic_linker="$host_os runtime_loader"
15201   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15202   soname_spec='$libname$release$shared_ext$major'
15203   shlibpath_var=LIBRARY_PATH
15204   shlibpath_overrides_runpath=no
15205   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15206   hardcode_into_libs=yes
15207   ;;
15208
15209 hpux9* | hpux10* | hpux11*)
15210   # Give a soname corresponding to the major version so that dld.sl refuses to
15211   # link against other versions.
15212   version_type=sunos
15213   need_lib_prefix=no
15214   need_version=no
15215   case $host_cpu in
15216   ia64*)
15217     shrext_cmds='.so'
15218     hardcode_into_libs=yes
15219     dynamic_linker="$host_os dld.so"
15220     shlibpath_var=LD_LIBRARY_PATH
15221     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15222     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15223     soname_spec='$libname$release$shared_ext$major'
15224     if test 32 = "$HPUX_IA64_MODE"; then
15225       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15226       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15227     else
15228       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15229       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15230     fi
15231     ;;
15232   hppa*64*)
15233     shrext_cmds='.sl'
15234     hardcode_into_libs=yes
15235     dynamic_linker="$host_os dld.sl"
15236     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15237     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15238     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15239     soname_spec='$libname$release$shared_ext$major'
15240     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15241     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15242     ;;
15243   *)
15244     shrext_cmds='.sl'
15245     dynamic_linker="$host_os dld.sl"
15246     shlibpath_var=SHLIB_PATH
15247     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15248     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15249     soname_spec='$libname$release$shared_ext$major'
15250     ;;
15251   esac
15252   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15253   postinstall_cmds='chmod 555 $lib'
15254   # or fails outright, so override atomically:
15255   install_override_mode=555
15256   ;;
15257
15258 interix[3-9]*)
15259   version_type=linux # correct to gnu/linux during the next big refactor
15260   need_lib_prefix=no
15261   need_version=no
15262   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15263   soname_spec='$libname$release$shared_ext$major'
15264   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15265   shlibpath_var=LD_LIBRARY_PATH
15266   shlibpath_overrides_runpath=no
15267   hardcode_into_libs=yes
15268   ;;
15269
15270 irix5* | irix6* | nonstopux*)
15271   case $host_os in
15272     nonstopux*) version_type=nonstopux ;;
15273     *)
15274         if test yes = "$lt_cv_prog_gnu_ld"; then
15275                 version_type=linux # correct to gnu/linux during the next big refactor
15276         else
15277                 version_type=irix
15278         fi ;;
15279   esac
15280   need_lib_prefix=no
15281   need_version=no
15282   soname_spec='$libname$release$shared_ext$major'
15283   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15284   case $host_os in
15285   irix5* | nonstopux*)
15286     libsuff= shlibsuff=
15287     ;;
15288   *)
15289     case $LD in # libtool.m4 will add one of these switches to LD
15290     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15291       libsuff= shlibsuff= libmagic=32-bit;;
15292     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15293       libsuff=32 shlibsuff=N32 libmagic=N32;;
15294     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15295       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15296     *) libsuff= shlibsuff= libmagic=never-match;;
15297     esac
15298     ;;
15299   esac
15300   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15301   shlibpath_overrides_runpath=no
15302   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15303   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15304   hardcode_into_libs=yes
15305   ;;
15306
15307 # No shared lib support for Linux oldld, aout, or coff.
15308 linux*oldld* | linux*aout* | linux*coff*)
15309   dynamic_linker=no
15310   ;;
15311
15312 linux*android*)
15313   version_type=none # Android doesn't support versioned libraries.
15314   need_lib_prefix=no
15315   need_version=no
15316   library_names_spec='$libname$release$shared_ext'
15317   soname_spec='$libname$release$shared_ext'
15318   finish_cmds=
15319   shlibpath_var=LD_LIBRARY_PATH
15320   shlibpath_overrides_runpath=yes
15321
15322   # This implies no fast_install, which is unacceptable.
15323   # Some rework will be needed to allow for fast_install
15324   # before this can be enabled.
15325   hardcode_into_libs=yes
15326
15327   dynamic_linker='Android linker'
15328   # Don't embed -rpath directories since the linker doesn't support them.
15329   hardcode_libdir_flag_spec='-L$libdir'
15330   ;;
15331
15332 # This must be glibc/ELF.
15333 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15334   version_type=linux # correct to gnu/linux during the next big refactor
15335   need_lib_prefix=no
15336   need_version=no
15337   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15338   soname_spec='$libname$release$shared_ext$major'
15339   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15340   shlibpath_var=LD_LIBRARY_PATH
15341   shlibpath_overrides_runpath=no
15342
15343   # Some binutils ld are patched to set DT_RUNPATH
15344   if test ${lt_cv_shlibpath_overrides_runpath+y}
15345 then :
15346   printf %s "(cached) " >&6
15347 else $as_nop
15348   lt_cv_shlibpath_overrides_runpath=no
15349     save_LDFLAGS=$LDFLAGS
15350     save_libdir=$libdir
15351     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15352          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15353     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h.  */
15355
15356 int main (void)
15357 {
15358
15359  ;
15360  return 0;
15361 }
15362 _ACEOF
15363 if ac_fn_c_try_link "$LINENO"
15364 then :
15365   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15366 then :
15367   lt_cv_shlibpath_overrides_runpath=yes
15368 fi
15369 fi
15370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15371     conftest$ac_exeext conftest.$ac_ext
15372     LDFLAGS=$save_LDFLAGS
15373     libdir=$save_libdir
15374
15375 fi
15376
15377   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15378
15379   # This implies no fast_install, which is unacceptable.
15380   # Some rework will be needed to allow for fast_install
15381   # before this can be enabled.
15382   hardcode_into_libs=yes
15383
15384   # Ideally, we could use ldconfig to report *all* directores which are
15385   # searched for libraries, however this is still not possible.  Aside from not
15386   # being certain /sbin/ldconfig is available, command
15387   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15388   # even though it is searched at run-time.  Try to do the best guess by
15389   # appending ld.so.conf contents (and includes) to the search path.
15390   if test -f /etc/ld.so.conf; then
15391     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' ' '`
15392     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15393   fi
15394
15395   # We used to test for /lib/ld.so.1 and disable shared libraries on
15396   # powerpc, because MkLinux only supported shared libraries with the
15397   # GNU dynamic linker.  Since this was broken with cross compilers,
15398   # most powerpc-linux boxes support dynamic linking these days and
15399   # people can always --disable-shared, the test was removed, and we
15400   # assume the GNU/Linux dynamic linker is in use.
15401   dynamic_linker='GNU/Linux ld.so'
15402   ;;
15403
15404 netbsdelf*-gnu)
15405   version_type=linux
15406   need_lib_prefix=no
15407   need_version=no
15408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15409   soname_spec='${libname}${release}${shared_ext}$major'
15410   shlibpath_var=LD_LIBRARY_PATH
15411   shlibpath_overrides_runpath=no
15412   hardcode_into_libs=yes
15413   dynamic_linker='NetBSD ld.elf_so'
15414   ;;
15415
15416 netbsd*)
15417   version_type=sunos
15418   need_lib_prefix=no
15419   need_version=no
15420   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15421     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15422     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15423     dynamic_linker='NetBSD (a.out) ld.so'
15424   else
15425     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15426     soname_spec='$libname$release$shared_ext$major'
15427     dynamic_linker='NetBSD ld.elf_so'
15428   fi
15429   shlibpath_var=LD_LIBRARY_PATH
15430   shlibpath_overrides_runpath=yes
15431   hardcode_into_libs=yes
15432   ;;
15433
15434 newsos6)
15435   version_type=linux # correct to gnu/linux during the next big refactor
15436   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15437   shlibpath_var=LD_LIBRARY_PATH
15438   shlibpath_overrides_runpath=yes
15439   ;;
15440
15441 *nto* | *qnx*)
15442   version_type=qnx
15443   need_lib_prefix=no
15444   need_version=no
15445   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15446   soname_spec='$libname$release$shared_ext$major'
15447   shlibpath_var=LD_LIBRARY_PATH
15448   shlibpath_overrides_runpath=no
15449   hardcode_into_libs=yes
15450   dynamic_linker='ldqnx.so'
15451   ;;
15452
15453 openbsd* | bitrig*)
15454   version_type=sunos
15455   sys_lib_dlsearch_path_spec=/usr/lib
15456   need_lib_prefix=no
15457   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15458     need_version=no
15459   else
15460     need_version=yes
15461   fi
15462   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15463   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15464   shlibpath_var=LD_LIBRARY_PATH
15465   shlibpath_overrides_runpath=yes
15466   ;;
15467
15468 os2*)
15469   libname_spec='$name'
15470   version_type=windows
15471   shrext_cmds=.dll
15472   need_version=no
15473   need_lib_prefix=no
15474   # OS/2 can only load a DLL with a base name of 8 characters or less.
15475   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15476     v=$($ECHO $release$versuffix | tr -d .-);
15477     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15478     $ECHO $n$v`$shared_ext'
15479   library_names_spec='${libname}_dll.$libext'
15480   dynamic_linker='OS/2 ld.exe'
15481   shlibpath_var=BEGINLIBPATH
15482   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15483   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15484   postinstall_cmds='base_file=`basename \$file`~
15485     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15486     dldir=$destdir/`dirname \$dlpath`~
15487     test -d \$dldir || mkdir -p \$dldir~
15488     $install_prog $dir/$dlname \$dldir/$dlname~
15489     chmod a+x \$dldir/$dlname~
15490     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15491       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15492     fi'
15493   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15494     dlpath=$dir/\$dldll~
15495     $RM \$dlpath'
15496   ;;
15497
15498 osf3* | osf4* | osf5*)
15499   version_type=osf
15500   need_lib_prefix=no
15501   need_version=no
15502   soname_spec='$libname$release$shared_ext$major'
15503   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15504   shlibpath_var=LD_LIBRARY_PATH
15505   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15506   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15507   ;;
15508
15509 rdos*)
15510   dynamic_linker=no
15511   ;;
15512
15513 solaris*)
15514   version_type=linux # correct to gnu/linux during the next big refactor
15515   need_lib_prefix=no
15516   need_version=no
15517   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15518   soname_spec='$libname$release$shared_ext$major'
15519   shlibpath_var=LD_LIBRARY_PATH
15520   shlibpath_overrides_runpath=yes
15521   hardcode_into_libs=yes
15522   # ldd complains unless libraries are executable
15523   postinstall_cmds='chmod +x $lib'
15524   ;;
15525
15526 sunos4*)
15527   version_type=sunos
15528   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15529   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15530   shlibpath_var=LD_LIBRARY_PATH
15531   shlibpath_overrides_runpath=yes
15532   if test yes = "$with_gnu_ld"; then
15533     need_lib_prefix=no
15534   fi
15535   need_version=yes
15536   ;;
15537
15538 sysv4 | sysv4.3*)
15539   version_type=linux # correct to gnu/linux during the next big refactor
15540   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15541   soname_spec='$libname$release$shared_ext$major'
15542   shlibpath_var=LD_LIBRARY_PATH
15543   case $host_vendor in
15544     sni)
15545       shlibpath_overrides_runpath=no
15546       need_lib_prefix=no
15547       runpath_var=LD_RUN_PATH
15548       ;;
15549     siemens)
15550       need_lib_prefix=no
15551       ;;
15552     motorola)
15553       need_lib_prefix=no
15554       need_version=no
15555       shlibpath_overrides_runpath=no
15556       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15557       ;;
15558   esac
15559   ;;
15560
15561 sysv4*MP*)
15562   if test -d /usr/nec; then
15563     version_type=linux # correct to gnu/linux during the next big refactor
15564     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15565     soname_spec='$libname$shared_ext.$major'
15566     shlibpath_var=LD_LIBRARY_PATH
15567   fi
15568   ;;
15569
15570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15571   version_type=sco
15572   need_lib_prefix=no
15573   need_version=no
15574   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15575   soname_spec='$libname$release$shared_ext$major'
15576   shlibpath_var=LD_LIBRARY_PATH
15577   shlibpath_overrides_runpath=yes
15578   hardcode_into_libs=yes
15579   if test yes = "$with_gnu_ld"; then
15580     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15581   else
15582     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15583     case $host_os in
15584       sco3.2v5*)
15585         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15586         ;;
15587     esac
15588   fi
15589   sys_lib_dlsearch_path_spec='/usr/lib'
15590   ;;
15591
15592 tpf*)
15593   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15594   version_type=linux # correct to gnu/linux during the next big refactor
15595   need_lib_prefix=no
15596   need_version=no
15597   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15598   shlibpath_var=LD_LIBRARY_PATH
15599   shlibpath_overrides_runpath=no
15600   hardcode_into_libs=yes
15601   ;;
15602
15603 uts4*)
15604   version_type=linux # correct to gnu/linux during the next big refactor
15605   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15606   soname_spec='$libname$release$shared_ext$major'
15607   shlibpath_var=LD_LIBRARY_PATH
15608   ;;
15609
15610 *)
15611   dynamic_linker=no
15612   ;;
15613 esac
15614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15615 printf "%s\n" "$dynamic_linker" >&6; }
15616 test no = "$dynamic_linker" && can_build_shared=no
15617
15618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15619 if test yes = "$GCC"; then
15620   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15621 fi
15622
15623 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15624   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15625 fi
15626
15627 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15628   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15629 fi
15630
15631 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15632 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15633
15634 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15635 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15636
15637 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15638 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15737 printf %s "checking how to hardcode library paths into programs... " >&6; }
15738 hardcode_action=
15739 if test -n "$hardcode_libdir_flag_spec" ||
15740    test -n "$runpath_var" ||
15741    test yes = "$hardcode_automatic"; then
15742
15743   # We can hardcode non-existent directories.
15744   if test no != "$hardcode_direct" &&
15745      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15746      # have to relink, otherwise we might link with an installed library
15747      # when we should be linking with a yet-to-be-installed one
15748      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15749      test no != "$hardcode_minus_L"; then
15750     # Linking always hardcodes the temporary library directory.
15751     hardcode_action=relink
15752   else
15753     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15754     hardcode_action=immediate
15755   fi
15756 else
15757   # We cannot hardcode anything, or else we can only hardcode existing
15758   # directories.
15759   hardcode_action=unsupported
15760 fi
15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15762 printf "%s\n" "$hardcode_action" >&6; }
15763
15764 if test relink = "$hardcode_action" ||
15765    test yes = "$inherit_rpath"; then
15766   # Fast installation is not supported
15767   enable_fast_install=no
15768 elif test yes = "$shlibpath_overrides_runpath" ||
15769      test no = "$enable_shared"; then
15770   # Fast installation is not necessary
15771   enable_fast_install=needless
15772 fi
15773
15774
15775
15776
15777
15778
15779   if test yes != "$enable_dlopen"; then
15780   enable_dlopen=unknown
15781   enable_dlopen_self=unknown
15782   enable_dlopen_self_static=unknown
15783 else
15784   lt_cv_dlopen=no
15785   lt_cv_dlopen_libs=
15786
15787   case $host_os in
15788   beos*)
15789     lt_cv_dlopen=load_add_on
15790     lt_cv_dlopen_libs=
15791     lt_cv_dlopen_self=yes
15792     ;;
15793
15794   mingw* | pw32* | cegcc*)
15795     lt_cv_dlopen=LoadLibrary
15796     lt_cv_dlopen_libs=
15797     ;;
15798
15799   cygwin*)
15800     lt_cv_dlopen=dlopen
15801     lt_cv_dlopen_libs=
15802     ;;
15803
15804   darwin*)
15805     # if libdl is installed we need to link against it
15806     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15807 printf %s "checking for dlopen in -ldl... " >&6; }
15808 if test ${ac_cv_lib_dl_dlopen+y}
15809 then :
15810   printf %s "(cached) " >&6
15811 else $as_nop
15812   ac_check_lib_save_LIBS=$LIBS
15813 LIBS="-ldl  $LIBS"
15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h.  */
15816
15817
15818 #ifdef __cplusplus
15819 extern "C"
15820 #endif
15821 char dlopen ();
15822 int main (void)
15823 {
15824 return dlopen ();
15825  ;
15826  return 0;
15827 }
15828 _ACEOF
15829 if ac_fn_c_try_link "$LINENO"
15830 then :
15831   ac_cv_lib_dl_dlopen=yes
15832 else $as_nop
15833   ac_cv_lib_dl_dlopen=no
15834 fi
15835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15836     conftest$ac_exeext conftest.$ac_ext
15837 LIBS=$ac_check_lib_save_LIBS
15838 fi
15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15840 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15841 if test "x$ac_cv_lib_dl_dlopen" = xyes
15842 then :
15843   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15844 else $as_nop
15845
15846     lt_cv_dlopen=dyld
15847     lt_cv_dlopen_libs=
15848     lt_cv_dlopen_self=yes
15849
15850 fi
15851
15852     ;;
15853
15854   tpf*)
15855     # Don't try to run any link tests for TPF.  We know it's impossible
15856     # because TPF is a cross-compiler, and we know how we open DSOs.
15857     lt_cv_dlopen=dlopen
15858     lt_cv_dlopen_libs=
15859     lt_cv_dlopen_self=no
15860     ;;
15861
15862   *)
15863     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15864 if test "x$ac_cv_func_shl_load" = xyes
15865 then :
15866   lt_cv_dlopen=shl_load
15867 else $as_nop
15868   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15869 printf %s "checking for shl_load in -ldld... " >&6; }
15870 if test ${ac_cv_lib_dld_shl_load+y}
15871 then :
15872   printf %s "(cached) " >&6
15873 else $as_nop
15874   ac_check_lib_save_LIBS=$LIBS
15875 LIBS="-ldld  $LIBS"
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h.  */
15878
15879
15880 #ifdef __cplusplus
15881 extern "C"
15882 #endif
15883 char shl_load ();
15884 int main (void)
15885 {
15886 return shl_load ();
15887  ;
15888  return 0;
15889 }
15890 _ACEOF
15891 if ac_fn_c_try_link "$LINENO"
15892 then :
15893   ac_cv_lib_dld_shl_load=yes
15894 else $as_nop
15895   ac_cv_lib_dld_shl_load=no
15896 fi
15897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15898     conftest$ac_exeext conftest.$ac_ext
15899 LIBS=$ac_check_lib_save_LIBS
15900 fi
15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15902 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15903 if test "x$ac_cv_lib_dld_shl_load" = xyes
15904 then :
15905   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15906 else $as_nop
15907   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15908 if test "x$ac_cv_func_dlopen" = xyes
15909 then :
15910   lt_cv_dlopen=dlopen
15911 else $as_nop
15912   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15913 printf %s "checking for dlopen in -ldl... " >&6; }
15914 if test ${ac_cv_lib_dl_dlopen+y}
15915 then :
15916   printf %s "(cached) " >&6
15917 else $as_nop
15918   ac_check_lib_save_LIBS=$LIBS
15919 LIBS="-ldl  $LIBS"
15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921 /* end confdefs.h.  */
15922
15923
15924 #ifdef __cplusplus
15925 extern "C"
15926 #endif
15927 char dlopen ();
15928 int main (void)
15929 {
15930 return dlopen ();
15931  ;
15932  return 0;
15933 }
15934 _ACEOF
15935 if ac_fn_c_try_link "$LINENO"
15936 then :
15937   ac_cv_lib_dl_dlopen=yes
15938 else $as_nop
15939   ac_cv_lib_dl_dlopen=no
15940 fi
15941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15942     conftest$ac_exeext conftest.$ac_ext
15943 LIBS=$ac_check_lib_save_LIBS
15944 fi
15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15946 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15947 if test "x$ac_cv_lib_dl_dlopen" = xyes
15948 then :
15949   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15950 else $as_nop
15951   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15952 printf %s "checking for dlopen in -lsvld... " >&6; }
15953 if test ${ac_cv_lib_svld_dlopen+y}
15954 then :
15955   printf %s "(cached) " >&6
15956 else $as_nop
15957   ac_check_lib_save_LIBS=$LIBS
15958 LIBS="-lsvld  $LIBS"
15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h.  */
15961
15962
15963 #ifdef __cplusplus
15964 extern "C"
15965 #endif
15966 char dlopen ();
15967 int main (void)
15968 {
15969 return dlopen ();
15970  ;
15971  return 0;
15972 }
15973 _ACEOF
15974 if ac_fn_c_try_link "$LINENO"
15975 then :
15976   ac_cv_lib_svld_dlopen=yes
15977 else $as_nop
15978   ac_cv_lib_svld_dlopen=no
15979 fi
15980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15981     conftest$ac_exeext conftest.$ac_ext
15982 LIBS=$ac_check_lib_save_LIBS
15983 fi
15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15985 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15986 if test "x$ac_cv_lib_svld_dlopen" = xyes
15987 then :
15988   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15989 else $as_nop
15990   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15991 printf %s "checking for dld_link in -ldld... " >&6; }
15992 if test ${ac_cv_lib_dld_dld_link+y}
15993 then :
15994   printf %s "(cached) " >&6
15995 else $as_nop
15996   ac_check_lib_save_LIBS=$LIBS
15997 LIBS="-ldld  $LIBS"
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h.  */
16000
16001
16002 #ifdef __cplusplus
16003 extern "C"
16004 #endif
16005 char dld_link ();
16006 int main (void)
16007 {
16008 return dld_link ();
16009  ;
16010  return 0;
16011 }
16012 _ACEOF
16013 if ac_fn_c_try_link "$LINENO"
16014 then :
16015   ac_cv_lib_dld_dld_link=yes
16016 else $as_nop
16017   ac_cv_lib_dld_dld_link=no
16018 fi
16019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16020     conftest$ac_exeext conftest.$ac_ext
16021 LIBS=$ac_check_lib_save_LIBS
16022 fi
16023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16024 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16025 if test "x$ac_cv_lib_dld_dld_link" = xyes
16026 then :
16027   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16028 fi
16029
16030
16031 fi
16032
16033
16034 fi
16035
16036
16037 fi
16038
16039
16040 fi
16041
16042
16043 fi
16044
16045     ;;
16046   esac
16047
16048   if test no = "$lt_cv_dlopen"; then
16049     enable_dlopen=no
16050   else
16051     enable_dlopen=yes
16052   fi
16053
16054   case $lt_cv_dlopen in
16055   dlopen)
16056     save_CPPFLAGS=$CPPFLAGS
16057     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16058
16059     save_LDFLAGS=$LDFLAGS
16060     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16061
16062     save_LIBS=$LIBS
16063     LIBS="$lt_cv_dlopen_libs $LIBS"
16064
16065     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16066 printf %s "checking whether a program can dlopen itself... " >&6; }
16067 if test ${lt_cv_dlopen_self+y}
16068 then :
16069   printf %s "(cached) " >&6
16070 else $as_nop
16071           if test yes = "$cross_compiling"; then :
16072   lt_cv_dlopen_self=cross
16073 else
16074   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16075   lt_status=$lt_dlunknown
16076   cat > conftest.$ac_ext <<_LT_EOF
16077 #line $LINENO "configure"
16078 #include "confdefs.h"
16079
16080 #if HAVE_DLFCN_H
16081 #include <dlfcn.h>
16082 #endif
16083
16084 #include <stdio.h>
16085
16086 #ifdef RTLD_GLOBAL
16087 #  define LT_DLGLOBAL           RTLD_GLOBAL
16088 #else
16089 #  ifdef DL_GLOBAL
16090 #    define LT_DLGLOBAL         DL_GLOBAL
16091 #  else
16092 #    define LT_DLGLOBAL         0
16093 #  endif
16094 #endif
16095
16096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16097    find out it does not work in some platform. */
16098 #ifndef LT_DLLAZY_OR_NOW
16099 #  ifdef RTLD_LAZY
16100 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16101 #  else
16102 #    ifdef DL_LAZY
16103 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16104 #    else
16105 #      ifdef RTLD_NOW
16106 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16107 #      else
16108 #        ifdef DL_NOW
16109 #          define LT_DLLAZY_OR_NOW      DL_NOW
16110 #        else
16111 #          define LT_DLLAZY_OR_NOW      0
16112 #        endif
16113 #      endif
16114 #    endif
16115 #  endif
16116 #endif
16117
16118 /* When -fvisibility=hidden is used, assume the code has been annotated
16119    correspondingly for the symbols needed.  */
16120 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16121 int fnord () __attribute__((visibility("default")));
16122 #endif
16123
16124 int fnord () { return 42; }
16125 int main ()
16126 {
16127   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16128   int status = $lt_dlunknown;
16129
16130   if (self)
16131     {
16132       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16133       else
16134         {
16135           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16136           else puts (dlerror ());
16137         }
16138       /* dlclose (self); */
16139     }
16140   else
16141     puts (dlerror ());
16142
16143   return status;
16144 }
16145 _LT_EOF
16146   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16147   (eval $ac_link) 2>&5
16148   ac_status=$?
16149   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16150   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16151     (./conftest; exit; ) >&5 2>/dev/null
16152     lt_status=$?
16153     case x$lt_status in
16154       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16155       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16156       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16157     esac
16158   else :
16159     # compilation failed
16160     lt_cv_dlopen_self=no
16161   fi
16162 fi
16163 rm -fr conftest*
16164
16165
16166 fi
16167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16168 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16169
16170     if test yes = "$lt_cv_dlopen_self"; then
16171       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16172       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16173 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16174 if test ${lt_cv_dlopen_self_static+y}
16175 then :
16176   printf %s "(cached) " >&6
16177 else $as_nop
16178           if test yes = "$cross_compiling"; then :
16179   lt_cv_dlopen_self_static=cross
16180 else
16181   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16182   lt_status=$lt_dlunknown
16183   cat > conftest.$ac_ext <<_LT_EOF
16184 #line $LINENO "configure"
16185 #include "confdefs.h"
16186
16187 #if HAVE_DLFCN_H
16188 #include <dlfcn.h>
16189 #endif
16190
16191 #include <stdio.h>
16192
16193 #ifdef RTLD_GLOBAL
16194 #  define LT_DLGLOBAL           RTLD_GLOBAL
16195 #else
16196 #  ifdef DL_GLOBAL
16197 #    define LT_DLGLOBAL         DL_GLOBAL
16198 #  else
16199 #    define LT_DLGLOBAL         0
16200 #  endif
16201 #endif
16202
16203 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16204    find out it does not work in some platform. */
16205 #ifndef LT_DLLAZY_OR_NOW
16206 #  ifdef RTLD_LAZY
16207 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16208 #  else
16209 #    ifdef DL_LAZY
16210 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16211 #    else
16212 #      ifdef RTLD_NOW
16213 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16214 #      else
16215 #        ifdef DL_NOW
16216 #          define LT_DLLAZY_OR_NOW      DL_NOW
16217 #        else
16218 #          define LT_DLLAZY_OR_NOW      0
16219 #        endif
16220 #      endif
16221 #    endif
16222 #  endif
16223 #endif
16224
16225 /* When -fvisibility=hidden is used, assume the code has been annotated
16226    correspondingly for the symbols needed.  */
16227 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16228 int fnord () __attribute__((visibility("default")));
16229 #endif
16230
16231 int fnord () { return 42; }
16232 int main ()
16233 {
16234   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16235   int status = $lt_dlunknown;
16236
16237   if (self)
16238     {
16239       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16240       else
16241         {
16242           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16243           else puts (dlerror ());
16244         }
16245       /* dlclose (self); */
16246     }
16247   else
16248     puts (dlerror ());
16249
16250   return status;
16251 }
16252 _LT_EOF
16253   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16254   (eval $ac_link) 2>&5
16255   ac_status=$?
16256   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16257   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16258     (./conftest; exit; ) >&5 2>/dev/null
16259     lt_status=$?
16260     case x$lt_status in
16261       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16262       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16263       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16264     esac
16265   else :
16266     # compilation failed
16267     lt_cv_dlopen_self_static=no
16268   fi
16269 fi
16270 rm -fr conftest*
16271
16272
16273 fi
16274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16275 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16276     fi
16277
16278     CPPFLAGS=$save_CPPFLAGS
16279     LDFLAGS=$save_LDFLAGS
16280     LIBS=$save_LIBS
16281     ;;
16282   esac
16283
16284   case $lt_cv_dlopen_self in
16285   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16286   *) enable_dlopen_self=unknown ;;
16287   esac
16288
16289   case $lt_cv_dlopen_self_static in
16290   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16291   *) enable_dlopen_self_static=unknown ;;
16292   esac
16293 fi
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311 striplib=
16312 old_striplib=
16313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16314 printf %s "checking whether stripping libraries is possible... " >&6; }
16315 if test -z "$STRIP"; then
16316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16317 printf "%s\n" "no" >&6; }
16318 else
16319   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16320     old_striplib="$STRIP --strip-debug"
16321     striplib="$STRIP --strip-unneeded"
16322     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16323 printf "%s\n" "yes" >&6; }
16324   else
16325     case $host_os in
16326     darwin*)
16327       # FIXME - insert some real tests, host_os isn't really good enough
16328       striplib="$STRIP -x"
16329       old_striplib="$STRIP -S"
16330       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16331 printf "%s\n" "yes" >&6; }
16332       ;;
16333     freebsd*)
16334       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16335         old_striplib="$STRIP --strip-debug"
16336         striplib="$STRIP --strip-unneeded"
16337         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16338 printf "%s\n" "yes" >&6; }
16339       else
16340         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16341 printf "%s\n" "no" >&6; }
16342       fi
16343       ;;
16344     *)
16345       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346 printf "%s\n" "no" >&6; }
16347       ;;
16348     esac
16349   fi
16350 fi
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363   # Report what library types will actually be built
16364   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16365 printf %s "checking if libtool supports shared libraries... " >&6; }
16366   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16367 printf "%s\n" "$can_build_shared" >&6; }
16368
16369   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16370 printf %s "checking whether to build shared libraries... " >&6; }
16371   test no = "$can_build_shared" && enable_shared=no
16372
16373   # On AIX, shared libraries and static libraries use the same namespace, and
16374   # are all built from PIC.
16375   case $host_os in
16376   aix3*)
16377     test yes = "$enable_shared" && enable_static=no
16378     if test -n "$RANLIB"; then
16379       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16380       postinstall_cmds='$RANLIB $lib'
16381     fi
16382     ;;
16383
16384   aix[4-9]*)
16385     if test ia64 != "$host_cpu"; then
16386       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16387       yes,aix,yes) ;;                   # shared object as lib.so file only
16388       yes,svr4,*) ;;                    # shared object as lib.so archive member only
16389       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
16390       esac
16391     fi
16392     ;;
16393   esac
16394   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16395 printf "%s\n" "$enable_shared" >&6; }
16396
16397   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16398 printf %s "checking whether to build static libraries... " >&6; }
16399   # Make sure either enable_shared or enable_static is yes.
16400   test yes = "$enable_shared" || enable_static=yes
16401   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16402 printf "%s\n" "$enable_static" >&6; }
16403
16404
16405
16406
16407 fi
16408 ac_ext=c
16409 ac_cpp='$CPP $CPPFLAGS'
16410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16413
16414 CC=$lt_save_CC
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430         ac_config_commands="$ac_config_commands libtool"
16431
16432
16433
16434
16435 # Only expand once:
16436
16437
16438 ## --------------------- ##
16439 ##  End of libtool code  ##
16440 ## --------------------- ##
16441
16442 #
16443 # Verify if finally libtool shared libraries will be built
16444 #
16445
16446 case "x$enable_shared" in # ((
16447   xyes | xno)
16448     xc_lt_build_shared=$enable_shared
16449     ;;
16450   *)
16451     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
16452     ;;
16453 esac
16454
16455 #
16456 # Verify if finally libtool static libraries will be built
16457 #
16458
16459 case "x$enable_static" in # ((
16460   xyes | xno)
16461     xc_lt_build_static=$enable_static
16462     ;;
16463   *)
16464     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
16465     ;;
16466 esac
16467
16468 #
16469 # Verify if libtool shared libraries should be linked using flag -version-info
16470 #
16471
16472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
16473 printf %s "checking whether to build shared libraries with -version-info... " >&6; }
16474 xc_lt_shlib_use_version_info='yes'
16475 if test "x$version_type" = 'xnone'; then
16476   xc_lt_shlib_use_version_info='no'
16477 fi
16478 case $host_os in # (
16479   amigaos*)
16480     xc_lt_shlib_use_version_info='yes'
16481     ;;
16482 esac
16483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
16484 printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
16485
16486 #
16487 # Verify if libtool shared libraries should be linked using flag -no-undefined
16488 #
16489
16490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
16491 printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
16492 xc_lt_shlib_use_no_undefined='no'
16493 if test "x$allow_undefined" = 'xno'; then
16494   xc_lt_shlib_use_no_undefined='yes'
16495 elif test "x$allow_undefined_flag" = 'xunsupported'; then
16496   xc_lt_shlib_use_no_undefined='yes'
16497 fi
16498 case $host_os in # (
16499   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
16500     xc_lt_shlib_use_no_undefined='yes'
16501     ;;
16502 esac
16503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
16504 printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
16505
16506 #
16507 # Verify if libtool shared libraries should be linked using flag -mimpure-text
16508 #
16509
16510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
16511 printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
16512 xc_lt_shlib_use_mimpure_text='no'
16513 case $host_os in # (
16514   solaris2*)
16515     if test "x$GCC" = 'xyes'; then
16516       xc_lt_shlib_use_mimpure_text='yes'
16517     fi
16518     ;;
16519 esac
16520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
16521 printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
16522
16523 #
16524 # Find out whether libtool libraries would be built with PIC
16525 #
16526
16527 case "x$pic_mode" in # ((((
16528   xdefault)
16529     xc_lt_build_shared_with_pic='yes'
16530     xc_lt_build_static_with_pic='no'
16531     ;;
16532   xyes)
16533     xc_lt_build_shared_with_pic='yes'
16534     xc_lt_build_static_with_pic='yes'
16535     ;;
16536   xno)
16537     xc_lt_build_shared_with_pic='no'
16538     xc_lt_build_static_with_pic='no'
16539     ;;
16540   *)
16541     xc_lt_build_shared_with_pic='unknown'
16542     xc_lt_build_static_with_pic='unknown'
16543     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
16544 printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
16545     ;;
16546 esac
16547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
16548 printf %s "checking whether to build shared libraries with PIC... " >&6; }
16549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
16550 printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
16551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
16552 printf %s "checking whether to build static libraries with PIC... " >&6; }
16553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
16554 printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
16555
16556 #
16557 # Verify if libtool shared libraries will be built while static not built
16558 #
16559
16560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
16561 printf %s "checking whether to build shared libraries only... " >&6; }
16562 if test "$xc_lt_build_shared" = 'yes' &&
16563   test "$xc_lt_build_static" = 'no'; then
16564   xc_lt_build_shared_only='yes'
16565 else
16566   xc_lt_build_shared_only='no'
16567 fi
16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
16569 printf "%s\n" "$xc_lt_build_shared_only" >&6; }
16570
16571 #
16572 # Verify if libtool static libraries will be built while shared not built
16573 #
16574
16575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
16576 printf %s "checking whether to build static libraries only... " >&6; }
16577 if test "$xc_lt_build_static" = 'yes' &&
16578   test "$xc_lt_build_shared" = 'no'; then
16579   xc_lt_build_static_only='yes'
16580 else
16581   xc_lt_build_static_only='no'
16582 fi
16583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
16584 printf "%s\n" "$xc_lt_build_static_only" >&6; }
16585
16586
16587
16588
16589 if test -n "$ac_tool_prefix"; then
16590   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16591 set dummy ${ac_tool_prefix}windres; ac_word=$2
16592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16593 printf %s "checking for $ac_word... " >&6; }
16594 if test ${ac_cv_prog_RC+y}
16595 then :
16596   printf %s "(cached) " >&6
16597 else $as_nop
16598   if test -n "$RC"; then
16599   ac_cv_prog_RC="$RC" # Let the user override the test.
16600 else
16601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16602 for as_dir in $PATH
16603 do
16604   IFS=$as_save_IFS
16605   case $as_dir in #(((
16606     '') as_dir=./ ;;
16607     */) ;;
16608     *) as_dir=$as_dir/ ;;
16609   esac
16610     for ac_exec_ext in '' $ac_executable_extensions; do
16611   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16612     ac_cv_prog_RC="${ac_tool_prefix}windres"
16613     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16614     break 2
16615   fi
16616 done
16617   done
16618 IFS=$as_save_IFS
16619
16620 fi
16621 fi
16622 RC=$ac_cv_prog_RC
16623 if test -n "$RC"; then
16624   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
16625 printf "%s\n" "$RC" >&6; }
16626 else
16627   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16628 printf "%s\n" "no" >&6; }
16629 fi
16630
16631
16632 fi
16633 if test -z "$ac_cv_prog_RC"; then
16634   ac_ct_RC=$RC
16635   # Extract the first word of "windres", so it can be a program name with args.
16636 set dummy windres; ac_word=$2
16637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16638 printf %s "checking for $ac_word... " >&6; }
16639 if test ${ac_cv_prog_ac_ct_RC+y}
16640 then :
16641   printf %s "(cached) " >&6
16642 else $as_nop
16643   if test -n "$ac_ct_RC"; then
16644   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
16645 else
16646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647 for as_dir in $PATH
16648 do
16649   IFS=$as_save_IFS
16650   case $as_dir in #(((
16651     '') as_dir=./ ;;
16652     */) ;;
16653     *) as_dir=$as_dir/ ;;
16654   esac
16655     for ac_exec_ext in '' $ac_executable_extensions; do
16656   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16657     ac_cv_prog_ac_ct_RC="windres"
16658     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16659     break 2
16660   fi
16661 done
16662   done
16663 IFS=$as_save_IFS
16664
16665 fi
16666 fi
16667 ac_ct_RC=$ac_cv_prog_ac_ct_RC
16668 if test -n "$ac_ct_RC"; then
16669   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
16670 printf "%s\n" "$ac_ct_RC" >&6; }
16671 else
16672   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16673 printf "%s\n" "no" >&6; }
16674 fi
16675
16676   if test "x$ac_ct_RC" = x; then
16677     RC=""
16678   else
16679     case $cross_compiling:$ac_tool_warned in
16680 yes:)
16681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16683 ac_tool_warned=yes ;;
16684 esac
16685     RC=$ac_ct_RC
16686   fi
16687 else
16688   RC="$ac_cv_prog_RC"
16689 fi
16690
16691
16692
16693
16694 # Source file extension for RC test sources.
16695 ac_ext=rc
16696
16697 # Object file extension for compiled RC test sources.
16698 objext=o
16699 objext_RC=$objext
16700
16701 # Code to be used in simple compile tests
16702 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16703
16704 # Code to be used in simple link tests
16705 lt_simple_link_test_code=$lt_simple_compile_test_code
16706
16707 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16708
16709
16710
16711
16712
16713
16714 # If no C compiler was specified, use CC.
16715 LTCC=${LTCC-"$CC"}
16716
16717 # If no C compiler flags were specified, use CFLAGS.
16718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16719
16720 # Allow CC to be a program name with arguments.
16721 compiler=$CC
16722
16723
16724 # save warnings/boilerplate of simple test code
16725 ac_outfile=conftest.$ac_objext
16726 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16727 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16728 _lt_compiler_boilerplate=`cat conftest.err`
16729 $RM conftest*
16730
16731 ac_outfile=conftest.$ac_objext
16732 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16733 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16734 _lt_linker_boilerplate=`cat conftest.err`
16735 $RM -r conftest*
16736
16737
16738 # Allow CC to be a program name with arguments.
16739 lt_save_CC=$CC
16740 lt_save_CFLAGS=$CFLAGS
16741 lt_save_GCC=$GCC
16742 GCC=
16743 CC=${RC-"windres"}
16744 CFLAGS=
16745 compiler=$CC
16746 compiler_RC=$CC
16747 func_cc_basename $compiler
16748 cc_basename=$func_cc_basename_result
16749
16750 lt_cv_prog_compiler_c_o_RC=yes
16751
16752 if test -n "$compiler"; then
16753   :
16754
16755
16756
16757 fi
16758
16759 GCC=$lt_save_GCC
16760 ac_ext=c
16761 ac_cpp='$CPP $CPPFLAGS'
16762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16765
16766 CC=$lt_save_CC
16767 CFLAGS=$lt_save_CFLAGS
16768
16769
16770 #
16771 # Automake conditionals based on libtool related checks
16772 #
16773
16774  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
16775   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
16776   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
16777 else
16778   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
16779   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
16780 fi
16781
16782  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
16783   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
16784   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
16785 else
16786   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
16787   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
16788 fi
16789
16790  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
16791   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
16792   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
16793 else
16794   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
16795   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
16796 fi
16797
16798
16799 #
16800 # Due to libtool and automake machinery limitations of not allowing
16801 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
16802 # inclusion of these in shared or static libraries, we are forced to
16803 # build using separate configure runs for shared and static libraries
16804 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
16805 # to compile objects for each kind of library. Notice that relying on
16806 # the '-DPIC' CFLAG that libtool provides is not valid given that the
16807 # user might for example choose to build static libraries with PIC.
16808 #
16809
16810 #
16811 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
16812 # targeting a static library and not building its shared counterpart.
16813 #
16814
16815  if test "x$xc_lt_build_static_only" = 'xyes'; then
16816   USE_CPPFLAG_CURL_STATICLIB_TRUE=
16817   USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
16818 else
16819   USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
16820   USE_CPPFLAG_CURL_STATICLIB_FALSE=
16821 fi
16822
16823
16824 #
16825 # Make staticlib CPPFLAG variable and its definition visible in output
16826 # files unconditionally, providing an empty definition unless strictly
16827 # targeting a static library and not building its shared counterpart.
16828 #
16829
16830 CPPFLAG_CURL_STATICLIB=
16831 if test "x$xc_lt_build_static_only" = 'xyes'; then
16832   CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
16833 fi
16834
16835
16836
16837 # Determine whether all dependent libraries must be specified when linking
16838 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
16839 then
16840     REQUIRE_LIB_DEPS=no
16841 else
16842     REQUIRE_LIB_DEPS=yes
16843 fi
16844
16845  if test x$REQUIRE_LIB_DEPS = xyes; then
16846   USE_EXPLICIT_LIB_DEPS_TRUE=
16847   USE_EXPLICIT_LIB_DEPS_FALSE='#'
16848 else
16849   USE_EXPLICIT_LIB_DEPS_TRUE='#'
16850   USE_EXPLICIT_LIB_DEPS_FALSE=
16851 fi
16852
16853
16854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16855 printf %s "checking for inline... " >&6; }
16856 if test ${ac_cv_c_inline+y}
16857 then :
16858   printf %s "(cached) " >&6
16859 else $as_nop
16860   ac_cv_c_inline=no
16861 for ac_kw in inline __inline__ __inline; do
16862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h.  */
16864 #ifndef __cplusplus
16865 typedef int foo_t;
16866 static $ac_kw foo_t static_foo (void) {return 0; }
16867 $ac_kw foo_t foo (void) {return 0; }
16868 #endif
16869
16870 _ACEOF
16871 if ac_fn_c_try_compile "$LINENO"
16872 then :
16873   ac_cv_c_inline=$ac_kw
16874 fi
16875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16876   test "$ac_cv_c_inline" != no && break
16877 done
16878
16879 fi
16880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16881 printf "%s\n" "$ac_cv_c_inline" >&6; }
16882
16883 case $ac_cv_c_inline in
16884   inline | yes) ;;
16885   *)
16886     case $ac_cv_c_inline in
16887       no) ac_val=;;
16888       *) ac_val=$ac_cv_c_inline;;
16889     esac
16890     cat >>confdefs.h <<_ACEOF
16891 #ifndef __cplusplus
16892 #define inline $ac_val
16893 #endif
16894 _ACEOF
16895     ;;
16896 esac
16897
16898
16899
16900
16901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
16902 printf %s "checking if cpp -P is needed... " >&6; }
16903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h.  */
16905
16906  #include <errno.h>
16907 TEST EINVAL TEST
16908
16909 _ACEOF
16910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16911   $EGREP "TEST.*TEST" >/dev/null 2>&1
16912 then :
16913   cpp=no
16914 else $as_nop
16915   cpp=yes
16916 fi
16917 rm -rf conftest*
16918
16919   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
16920 printf "%s\n" "$cpp" >&6; }
16921
16922     if test "x$cpp" = "xyes"; then
16923     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
16924 printf %s "checking if cpp -P works... " >&6; }
16925     OLDCPPFLAGS=$CPPFLAGS
16926     CPPFLAGS="$CPPFLAGS -P"
16927     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h.  */
16929
16930  #include <errno.h>
16931 TEST EINVAL TEST
16932
16933 _ACEOF
16934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16935   $EGREP "TEST.*TEST" >/dev/null 2>&1
16936 then :
16937   cpp_p=yes
16938 else $as_nop
16939   cpp_p=no
16940 fi
16941 rm -rf conftest*
16942
16943     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
16944 printf "%s\n" "$cpp_p" >&6; }
16945
16946     if test "x$cpp_p" = "xno"; then
16947       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
16948 printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
16949       # without -P
16950       CPPPFLAG=""
16951     else
16952       # with -P
16953       CPPPFLAG="-P"
16954     fi
16955         CPPFLAGS=$OLDCPPFLAGS
16956   else
16957     # without -P
16958     CPPPFLAG=""
16959   fi
16960
16961
16962   #
16963   compiler_id="unknown"
16964   compiler_num="0"
16965   #
16966   flags_dbg_yes="unknown"
16967   flags_opt_all="unknown"
16968   flags_opt_yes="unknown"
16969   flags_opt_off="unknown"
16970   #
16971   flags_prefer_cppflags="no"
16972   #
16973
16974   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16975 printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
16976
16977     OLDCPPFLAGS=$CPPFLAGS
16978   # CPPPFLAG comes from CURL_CPP_P
16979   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16980       if test -z "$SED"; then
16981     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16982   fi
16983   if test -z "$GREP"; then
16984     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16985   fi
16986
16987   tmp_exp=""
16988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h.  */
16990
16991
16992 #ifdef __DECC
16993 CURL_DEF_TOKEN __DECC
16994 #endif
16995
16996
16997 _ACEOF
16998 if ac_fn_c_try_cpp "$LINENO"
16999 then :
17000
17001     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17002       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17003       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17004       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17005     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
17006       tmp_exp=""
17007     fi
17008
17009 fi
17010 rm -f conftest.err conftest.i conftest.$ac_ext
17011   if test -z "$tmp_exp"; then
17012     curl_cv_have_def___DECC=no
17013
17014   else
17015     curl_cv_have_def___DECC=yes
17016     curl_cv_def___DECC=$tmp_exp
17017
17018   fi
17019       CPPFLAGS=$OLDCPPFLAGS
17020
17021
17022     OLDCPPFLAGS=$CPPFLAGS
17023   # CPPPFLAG comes from CURL_CPP_P
17024   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17025       if test -z "$SED"; then
17026     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17027   fi
17028   if test -z "$GREP"; then
17029     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17030   fi
17031
17032   tmp_exp=""
17033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h.  */
17035
17036
17037 #ifdef __DECC_VER
17038 CURL_DEF_TOKEN __DECC_VER
17039 #endif
17040
17041
17042 _ACEOF
17043 if ac_fn_c_try_cpp "$LINENO"
17044 then :
17045
17046     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17047       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17048       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17049       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17050     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
17051       tmp_exp=""
17052     fi
17053
17054 fi
17055 rm -f conftest.err conftest.i conftest.$ac_ext
17056   if test -z "$tmp_exp"; then
17057     curl_cv_have_def___DECC_VER=no
17058
17059   else
17060     curl_cv_have_def___DECC_VER=yes
17061     curl_cv_def___DECC_VER=$tmp_exp
17062
17063   fi
17064       CPPFLAGS=$OLDCPPFLAGS
17065
17066   if test "$curl_cv_have_def___DECC" = "yes" &&
17067     test "$curl_cv_have_def___DECC_VER" = "yes"; then
17068     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17069 printf "%s\n" "yes" >&6; }
17070     compiler_id="DEC_C"
17071     flags_dbg_yes="-g2"
17072     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
17073     flags_opt_yes="-O1"
17074     flags_opt_off="-O0"
17075   else
17076     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17077 printf "%s\n" "no" >&6; }
17078   fi
17079
17080
17081   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
17082 printf %s "checking if compiler is HP-UX C... " >&6; }
17083
17084     OLDCPPFLAGS=$CPPFLAGS
17085   # CPPPFLAG comes from CURL_CPP_P
17086   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17087       if test -z "$SED"; then
17088     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17089   fi
17090   if test -z "$GREP"; then
17091     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17092   fi
17093
17094   tmp_exp=""
17095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h.  */
17097
17098
17099 #ifdef __HP_cc
17100 CURL_DEF_TOKEN __HP_cc
17101 #endif
17102
17103
17104 _ACEOF
17105 if ac_fn_c_try_cpp "$LINENO"
17106 then :
17107
17108     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17109       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17110       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17111       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17112     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
17113       tmp_exp=""
17114     fi
17115
17116 fi
17117 rm -f conftest.err conftest.i conftest.$ac_ext
17118   if test -z "$tmp_exp"; then
17119     curl_cv_have_def___HP_cc=no
17120
17121   else
17122     curl_cv_have_def___HP_cc=yes
17123     curl_cv_def___HP_cc=$tmp_exp
17124
17125   fi
17126       CPPFLAGS=$OLDCPPFLAGS
17127
17128   if test "$curl_cv_have_def___HP_cc" = "yes"; then
17129     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17130 printf "%s\n" "yes" >&6; }
17131     compiler_id="HP_UX_C"
17132     flags_dbg_yes="-g"
17133     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
17134     flags_opt_yes="+O2"
17135     flags_opt_off="+O0"
17136   else
17137     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17138 printf "%s\n" "no" >&6; }
17139   fi
17140
17141
17142   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
17143 printf %s "checking if compiler is IBM C... " >&6; }
17144
17145     OLDCPPFLAGS=$CPPFLAGS
17146   # CPPPFLAG comes from CURL_CPP_P
17147   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17148       if test -z "$SED"; then
17149     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17150   fi
17151   if test -z "$GREP"; then
17152     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17153   fi
17154
17155   tmp_exp=""
17156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h.  */
17158
17159
17160 #ifdef __IBMC__
17161 CURL_DEF_TOKEN __IBMC__
17162 #endif
17163
17164
17165 _ACEOF
17166 if ac_fn_c_try_cpp "$LINENO"
17167 then :
17168
17169     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17170       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17171       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17172       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17173     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
17174       tmp_exp=""
17175     fi
17176
17177 fi
17178 rm -f conftest.err conftest.i conftest.$ac_ext
17179   if test -z "$tmp_exp"; then
17180     curl_cv_have_def___IBMC__=no
17181
17182   else
17183     curl_cv_have_def___IBMC__=yes
17184     curl_cv_def___IBMC__=$tmp_exp
17185
17186   fi
17187       CPPFLAGS=$OLDCPPFLAGS
17188
17189   if test "$curl_cv_have_def___IBMC__" = "yes"; then
17190     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17191 printf "%s\n" "yes" >&6; }
17192     compiler_id="IBM_C"
17193     flags_dbg_yes="-g"
17194     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
17195     flags_opt_all="$flags_opt_all -qnooptimize"
17196     flags_opt_all="$flags_opt_all -qoptimize=0"
17197     flags_opt_all="$flags_opt_all -qoptimize=1"
17198     flags_opt_all="$flags_opt_all -qoptimize=2"
17199     flags_opt_all="$flags_opt_all -qoptimize=3"
17200     flags_opt_all="$flags_opt_all -qoptimize=4"
17201     flags_opt_all="$flags_opt_all -qoptimize=5"
17202     flags_opt_yes="-O2"
17203     flags_opt_off="-qnooptimize"
17204     flags_prefer_cppflags="yes"
17205   else
17206     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17207 printf "%s\n" "no" >&6; }
17208   fi
17209
17210
17211     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
17212 printf %s "checking if compiler is Intel C... " >&6; }
17213
17214     OLDCPPFLAGS=$CPPFLAGS
17215   # CPPPFLAG comes from CURL_CPP_P
17216   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17217       if test -z "$SED"; then
17218     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17219   fi
17220   if test -z "$GREP"; then
17221     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17222   fi
17223
17224   tmp_exp=""
17225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17226 /* end confdefs.h.  */
17227
17228
17229 #ifdef __INTEL_COMPILER
17230 CURL_DEF_TOKEN __INTEL_COMPILER
17231 #endif
17232
17233
17234 _ACEOF
17235 if ac_fn_c_try_cpp "$LINENO"
17236 then :
17237
17238     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17239       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17240       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17241       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17242     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
17243       tmp_exp=""
17244     fi
17245
17246 fi
17247 rm -f conftest.err conftest.i conftest.$ac_ext
17248   if test -z "$tmp_exp"; then
17249     curl_cv_have_def___INTEL_COMPILER=no
17250
17251   else
17252     curl_cv_have_def___INTEL_COMPILER=yes
17253     curl_cv_def___INTEL_COMPILER=$tmp_exp
17254
17255   fi
17256       CPPFLAGS=$OLDCPPFLAGS
17257
17258   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
17259     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17260 printf "%s\n" "yes" >&6; }
17261     compiler_num="$curl_cv_def___INTEL_COMPILER"
17262
17263     OLDCPPFLAGS=$CPPFLAGS
17264   # CPPPFLAG comes from CURL_CPP_P
17265   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17266       if test -z "$SED"; then
17267     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17268   fi
17269   if test -z "$GREP"; then
17270     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17271   fi
17272
17273   tmp_exp=""
17274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275 /* end confdefs.h.  */
17276
17277
17278 #ifdef __unix__
17279 CURL_DEF_TOKEN __unix__
17280 #endif
17281
17282
17283 _ACEOF
17284 if ac_fn_c_try_cpp "$LINENO"
17285 then :
17286
17287     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17288       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17289       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17290       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17291     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
17292       tmp_exp=""
17293     fi
17294
17295 fi
17296 rm -f conftest.err conftest.i conftest.$ac_ext
17297   if test -z "$tmp_exp"; then
17298     curl_cv_have_def___unix__=no
17299
17300   else
17301     curl_cv_have_def___unix__=yes
17302     curl_cv_def___unix__=$tmp_exp
17303
17304   fi
17305       CPPFLAGS=$OLDCPPFLAGS
17306
17307     if test "$curl_cv_have_def___unix__" = "yes"; then
17308       compiler_id="INTEL_UNIX_C"
17309       flags_dbg_yes="-g"
17310       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
17311       flags_opt_yes="-O2"
17312       flags_opt_off="-O0"
17313     else
17314       compiler_id="INTEL_WINDOWS_C"
17315       flags_dbg_yes="/Zi /Oy-"
17316       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
17317       flags_opt_yes="/O2"
17318       flags_opt_off="/Od"
17319     fi
17320   else
17321     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17322 printf "%s\n" "no" >&6; }
17323   fi
17324
17325
17326     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
17327 printf %s "checking if compiler is clang... " >&6; }
17328
17329     OLDCPPFLAGS=$CPPFLAGS
17330   # CPPPFLAG comes from CURL_CPP_P
17331   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17332       if test -z "$SED"; then
17333     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17334   fi
17335   if test -z "$GREP"; then
17336     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17337   fi
17338
17339   tmp_exp=""
17340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341 /* end confdefs.h.  */
17342
17343
17344 #ifdef __clang__
17345 CURL_DEF_TOKEN __clang__
17346 #endif
17347
17348
17349 _ACEOF
17350 if ac_fn_c_try_cpp "$LINENO"
17351 then :
17352
17353     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17354       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17355       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17356       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17357     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
17358       tmp_exp=""
17359     fi
17360
17361 fi
17362 rm -f conftest.err conftest.i conftest.$ac_ext
17363   if test -z "$tmp_exp"; then
17364     curl_cv_have_def___clang__=no
17365
17366   else
17367     curl_cv_have_def___clang__=yes
17368     curl_cv_def___clang__=$tmp_exp
17369
17370   fi
17371       CPPFLAGS=$OLDCPPFLAGS
17372
17373   if test "$curl_cv_have_def___clang__" = "yes"; then
17374     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17375 printf "%s\n" "yes" >&6; }
17376     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
17377 printf %s "checking if compiler is xlclang... " >&6; }
17378
17379     OLDCPPFLAGS=$CPPFLAGS
17380   # CPPPFLAG comes from CURL_CPP_P
17381   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17382       if test -z "$SED"; then
17383     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17384   fi
17385   if test -z "$GREP"; then
17386     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17387   fi
17388
17389   tmp_exp=""
17390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h.  */
17392
17393
17394 #ifdef __ibmxl__
17395 CURL_DEF_TOKEN __ibmxl__
17396 #endif
17397
17398
17399 _ACEOF
17400 if ac_fn_c_try_cpp "$LINENO"
17401 then :
17402
17403     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17404       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17405       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17406       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17407     if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
17408       tmp_exp=""
17409     fi
17410
17411 fi
17412 rm -f conftest.err conftest.i conftest.$ac_ext
17413   if test -z "$tmp_exp"; then
17414     curl_cv_have_def___ibmxl__=no
17415
17416   else
17417     curl_cv_have_def___ibmxl__=yes
17418     curl_cv_def___ibmxl__=$tmp_exp
17419
17420   fi
17421       CPPFLAGS=$OLDCPPFLAGS
17422
17423     if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
17424             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17425 printf "%s\n" "yes" >&6; }
17426       compiler_id="XLCLANG"
17427     else
17428       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17429 printf "%s\n" "no" >&6; }
17430       compiler_id="CLANG"
17431     fi
17432     fullclangver=`$CC -v 2>&1 | grep version`
17433     clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
17434     if test -z "$clangver"; then
17435       if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
17436                 clangver="3.7"
17437       else
17438         clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
17439       fi
17440     fi
17441     clangvhi=`echo $clangver | cut -d . -f1`
17442     clangvlo=`echo $clangver | cut -d . -f2`
17443     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
17444     flags_dbg_yes="-g"
17445     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
17446     flags_opt_yes="-O2"
17447     flags_opt_off="-O0"
17448   else
17449     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17450 printf "%s\n" "no" >&6; }
17451   fi
17452
17453
17454       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
17455 printf %s "checking if compiler is GNU C... " >&6; }
17456
17457     OLDCPPFLAGS=$CPPFLAGS
17458   # CPPPFLAG comes from CURL_CPP_P
17459   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17460       if test -z "$SED"; then
17461     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17462   fi
17463   if test -z "$GREP"; then
17464     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17465   fi
17466
17467   tmp_exp=""
17468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469 /* end confdefs.h.  */
17470
17471
17472 #ifdef __GNUC__
17473 CURL_DEF_TOKEN __GNUC__
17474 #endif
17475
17476
17477 _ACEOF
17478 if ac_fn_c_try_cpp "$LINENO"
17479 then :
17480
17481     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17482       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17483       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17484       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17485     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17486       tmp_exp=""
17487     fi
17488
17489 fi
17490 rm -f conftest.err conftest.i conftest.$ac_ext
17491   if test -z "$tmp_exp"; then
17492     curl_cv_have_def___GNUC__=no
17493
17494   else
17495     curl_cv_have_def___GNUC__=yes
17496     curl_cv_def___GNUC__=$tmp_exp
17497
17498   fi
17499       CPPFLAGS=$OLDCPPFLAGS
17500
17501   if test "$curl_cv_have_def___GNUC__" = "yes" &&
17502     test "$compiler_id" = "unknown"; then
17503     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17504 printf "%s\n" "yes" >&6; }
17505     compiler_id="GNU_C"
17506     gccver=`$CC -dumpversion`
17507     gccvhi=`echo $gccver | cut -d . -f1`
17508     gccvlo=`echo $gccver | cut -d . -f2`
17509     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
17510     flags_dbg_yes="-g"
17511     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
17512     flags_opt_yes="-O2"
17513     flags_opt_off="-O0"
17514
17515     OLDCPPFLAGS=$CPPFLAGS
17516   # CPPPFLAG comes from CURL_CPP_P
17517   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17518       if test -z "$SED"; then
17519     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17520   fi
17521   if test -z "$GREP"; then
17522     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17523   fi
17524
17525   tmp_exp=""
17526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527 /* end confdefs.h.  */
17528
17529
17530 #ifdef _WIN32
17531 CURL_DEF_TOKEN _WIN32
17532 #endif
17533
17534
17535 _ACEOF
17536 if ac_fn_c_try_cpp "$LINENO"
17537 then :
17538
17539     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17540       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17541       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17542       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17543     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
17544       tmp_exp=""
17545     fi
17546
17547 fi
17548 rm -f conftest.err conftest.i conftest.$ac_ext
17549   if test -z "$tmp_exp"; then
17550     curl_cv_have_def__WIN32=no
17551
17552   else
17553     curl_cv_have_def__WIN32=yes
17554     curl_cv_def__WIN32=$tmp_exp
17555
17556   fi
17557       CPPFLAGS=$OLDCPPFLAGS
17558
17559   else
17560     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17561 printf "%s\n" "no" >&6; }
17562   fi
17563
17564
17565   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
17566 printf %s "checking if compiler is LCC... " >&6; }
17567
17568     OLDCPPFLAGS=$CPPFLAGS
17569   # CPPPFLAG comes from CURL_CPP_P
17570   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17571       if test -z "$SED"; then
17572     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17573   fi
17574   if test -z "$GREP"; then
17575     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17576   fi
17577
17578   tmp_exp=""
17579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h.  */
17581
17582
17583 #ifdef __LCC__
17584 CURL_DEF_TOKEN __LCC__
17585 #endif
17586
17587
17588 _ACEOF
17589 if ac_fn_c_try_cpp "$LINENO"
17590 then :
17591
17592     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17593       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17594       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17595       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17596     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
17597       tmp_exp=""
17598     fi
17599
17600 fi
17601 rm -f conftest.err conftest.i conftest.$ac_ext
17602   if test -z "$tmp_exp"; then
17603     curl_cv_have_def___LCC__=no
17604
17605   else
17606     curl_cv_have_def___LCC__=yes
17607     curl_cv_def___LCC__=$tmp_exp
17608
17609   fi
17610       CPPFLAGS=$OLDCPPFLAGS
17611
17612   if test "$curl_cv_have_def___LCC__" = "yes"; then
17613     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17614 printf "%s\n" "yes" >&6; }
17615     compiler_id="LCC"
17616     flags_dbg_yes="-g"
17617     flags_opt_all=""
17618     flags_opt_yes=""
17619     flags_opt_off=""
17620   else
17621     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17622 printf "%s\n" "no" >&6; }
17623   fi
17624
17625
17626     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
17627 printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
17628
17629     OLDCPPFLAGS=$CPPFLAGS
17630   # CPPPFLAG comes from CURL_CPP_P
17631   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17632       if test -z "$SED"; then
17633     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17634   fi
17635   if test -z "$GREP"; then
17636     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17637   fi
17638
17639   tmp_exp=""
17640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17641 /* end confdefs.h.  */
17642
17643
17644 #ifdef __GNUC__
17645 CURL_DEF_TOKEN __GNUC__
17646 #endif
17647
17648
17649 _ACEOF
17650 if ac_fn_c_try_cpp "$LINENO"
17651 then :
17652
17653     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17654       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17655       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17656       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17657     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17658       tmp_exp=""
17659     fi
17660
17661 fi
17662 rm -f conftest.err conftest.i conftest.$ac_ext
17663   if test -z "$tmp_exp"; then
17664     curl_cv_have_def___GNUC__=no
17665
17666   else
17667     curl_cv_have_def___GNUC__=yes
17668     curl_cv_def___GNUC__=$tmp_exp
17669
17670   fi
17671       CPPFLAGS=$OLDCPPFLAGS
17672
17673
17674     OLDCPPFLAGS=$CPPFLAGS
17675   # CPPPFLAG comes from CURL_CPP_P
17676   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17677       if test -z "$SED"; then
17678     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17679   fi
17680   if test -z "$GREP"; then
17681     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17682   fi
17683
17684   tmp_exp=""
17685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h.  */
17687
17688
17689 #ifdef _COMPILER_VERSION
17690 CURL_DEF_TOKEN _COMPILER_VERSION
17691 #endif
17692
17693
17694 _ACEOF
17695 if ac_fn_c_try_cpp "$LINENO"
17696 then :
17697
17698     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17699       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17700       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17701       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17702     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
17703       tmp_exp=""
17704     fi
17705
17706 fi
17707 rm -f conftest.err conftest.i conftest.$ac_ext
17708   if test -z "$tmp_exp"; then
17709     curl_cv_have_def__COMPILER_VERSION=no
17710
17711   else
17712     curl_cv_have_def__COMPILER_VERSION=yes
17713     curl_cv_def__COMPILER_VERSION=$tmp_exp
17714
17715   fi
17716       CPPFLAGS=$OLDCPPFLAGS
17717
17718
17719     OLDCPPFLAGS=$CPPFLAGS
17720   # CPPPFLAG comes from CURL_CPP_P
17721   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17722       if test -z "$SED"; then
17723     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17724   fi
17725   if test -z "$GREP"; then
17726     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17727   fi
17728
17729   tmp_exp=""
17730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h.  */
17732
17733
17734 #ifdef _SGI_COMPILER_VERSION
17735 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
17736 #endif
17737
17738
17739 _ACEOF
17740 if ac_fn_c_try_cpp "$LINENO"
17741 then :
17742
17743     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17744       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17745       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17746       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17747     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
17748       tmp_exp=""
17749     fi
17750
17751 fi
17752 rm -f conftest.err conftest.i conftest.$ac_ext
17753   if test -z "$tmp_exp"; then
17754     curl_cv_have_def__SGI_COMPILER_VERSION=no
17755
17756   else
17757     curl_cv_have_def__SGI_COMPILER_VERSION=yes
17758     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
17759
17760   fi
17761       CPPFLAGS=$OLDCPPFLAGS
17762
17763   if test "$curl_cv_have_def___GNUC__" = "no" &&
17764     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
17765      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
17766     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17767 printf "%s\n" "yes" >&6; }
17768     compiler_id="SGI_MIPSPRO_C"
17769     flags_dbg_yes="-g"
17770     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17771     flags_opt_yes="-O2"
17772     flags_opt_off="-O0"
17773   else
17774     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17775 printf "%s\n" "no" >&6; }
17776   fi
17777
17778
17779     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
17780 printf %s "checking if compiler is SGI MIPS C... " >&6; }
17781
17782     OLDCPPFLAGS=$CPPFLAGS
17783   # CPPPFLAG comes from CURL_CPP_P
17784   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17785       if test -z "$SED"; then
17786     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17787   fi
17788   if test -z "$GREP"; then
17789     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17790   fi
17791
17792   tmp_exp=""
17793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h.  */
17795
17796
17797 #ifdef __GNUC__
17798 CURL_DEF_TOKEN __GNUC__
17799 #endif
17800
17801
17802 _ACEOF
17803 if ac_fn_c_try_cpp "$LINENO"
17804 then :
17805
17806     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17807       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17808       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17809       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17810     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17811       tmp_exp=""
17812     fi
17813
17814 fi
17815 rm -f conftest.err conftest.i conftest.$ac_ext
17816   if test -z "$tmp_exp"; then
17817     curl_cv_have_def___GNUC__=no
17818
17819   else
17820     curl_cv_have_def___GNUC__=yes
17821     curl_cv_def___GNUC__=$tmp_exp
17822
17823   fi
17824       CPPFLAGS=$OLDCPPFLAGS
17825
17826
17827     OLDCPPFLAGS=$CPPFLAGS
17828   # CPPPFLAG comes from CURL_CPP_P
17829   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17830       if test -z "$SED"; then
17831     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17832   fi
17833   if test -z "$GREP"; then
17834     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17835   fi
17836
17837   tmp_exp=""
17838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h.  */
17840
17841
17842 #ifdef __sgi
17843 CURL_DEF_TOKEN __sgi
17844 #endif
17845
17846
17847 _ACEOF
17848 if ac_fn_c_try_cpp "$LINENO"
17849 then :
17850
17851     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17852       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17853       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17854       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17855     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
17856       tmp_exp=""
17857     fi
17858
17859 fi
17860 rm -f conftest.err conftest.i conftest.$ac_ext
17861   if test -z "$tmp_exp"; then
17862     curl_cv_have_def___sgi=no
17863
17864   else
17865     curl_cv_have_def___sgi=yes
17866     curl_cv_def___sgi=$tmp_exp
17867
17868   fi
17869       CPPFLAGS=$OLDCPPFLAGS
17870
17871   if test "$curl_cv_have_def___GNUC__" = "no" &&
17872     test "$curl_cv_have_def___sgi" = "yes" &&
17873     test "$compiler_id" = "unknown"; then
17874     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17875 printf "%s\n" "yes" >&6; }
17876     compiler_id="SGI_MIPS_C"
17877     flags_dbg_yes="-g"
17878     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17879     flags_opt_yes="-O2"
17880     flags_opt_off="-O0"
17881   else
17882     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17883 printf "%s\n" "no" >&6; }
17884   fi
17885
17886
17887   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
17888 printf %s "checking if compiler is SunPro C... " >&6; }
17889
17890     OLDCPPFLAGS=$CPPFLAGS
17891   # CPPPFLAG comes from CURL_CPP_P
17892   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17893       if test -z "$SED"; then
17894     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17895   fi
17896   if test -z "$GREP"; then
17897     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17898   fi
17899
17900   tmp_exp=""
17901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17902 /* end confdefs.h.  */
17903
17904
17905 #ifdef __SUNPRO_C
17906 CURL_DEF_TOKEN __SUNPRO_C
17907 #endif
17908
17909
17910 _ACEOF
17911 if ac_fn_c_try_cpp "$LINENO"
17912 then :
17913
17914     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17915       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17916       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17917       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17918     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
17919       tmp_exp=""
17920     fi
17921
17922 fi
17923 rm -f conftest.err conftest.i conftest.$ac_ext
17924   if test -z "$tmp_exp"; then
17925     curl_cv_have_def___SUNPRO_C=no
17926
17927   else
17928     curl_cv_have_def___SUNPRO_C=yes
17929     curl_cv_def___SUNPRO_C=$tmp_exp
17930
17931   fi
17932       CPPFLAGS=$OLDCPPFLAGS
17933
17934   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
17935     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17936 printf "%s\n" "yes" >&6; }
17937     compiler_id="SUNPRO_C"
17938     flags_dbg_yes="-g"
17939     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
17940     flags_opt_yes="-xO2"
17941     flags_opt_off=""
17942   else
17943     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17944 printf "%s\n" "no" >&6; }
17945   fi
17946
17947
17948   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
17949 printf %s "checking if compiler is Tiny C... " >&6; }
17950
17951     OLDCPPFLAGS=$CPPFLAGS
17952   # CPPPFLAG comes from CURL_CPP_P
17953   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17954       if test -z "$SED"; then
17955     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17956   fi
17957   if test -z "$GREP"; then
17958     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17959   fi
17960
17961   tmp_exp=""
17962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h.  */
17964
17965
17966 #ifdef __TINYC__
17967 CURL_DEF_TOKEN __TINYC__
17968 #endif
17969
17970
17971 _ACEOF
17972 if ac_fn_c_try_cpp "$LINENO"
17973 then :
17974
17975     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17976       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17977       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17978       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17979     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17980       tmp_exp=""
17981     fi
17982
17983 fi
17984 rm -f conftest.err conftest.i conftest.$ac_ext
17985   if test -z "$tmp_exp"; then
17986     curl_cv_have_def___TINYC__=no
17987
17988   else
17989     curl_cv_have_def___TINYC__=yes
17990     curl_cv_def___TINYC__=$tmp_exp
17991
17992   fi
17993       CPPFLAGS=$OLDCPPFLAGS
17994
17995   if test "$curl_cv_have_def___TINYC__" = "yes"; then
17996     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17997 printf "%s\n" "yes" >&6; }
17998     compiler_id="TINY_C"
17999     flags_dbg_yes="-g"
18000     flags_opt_all=""
18001     flags_opt_yes=""
18002     flags_opt_off=""
18003   else
18004     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005 printf "%s\n" "no" >&6; }
18006   fi
18007
18008   #
18009   if test "$compiler_id" = "unknown"; then
18010   cat <<_EOF 1>&2
18011 ***
18012 *** Warning: This configure script does not have information about the
18013 *** compiler you are using, relative to the flags required to enable or
18014 *** disable generation of debug info, optimization options or warnings.
18015 ***
18016 *** Whatever settings are present in CFLAGS will be used for this run.
18017 ***
18018 *** If you wish to help the curl project to better support your compiler
18019 *** you can report this and the required info on the libcurl development
18020 *** mailing list: https://lists.haxx.selistinfo/curl-library/
18021 ***
18022 _EOF
18023   fi
18024
18025
18026 squeeze() {
18027   _sqz_result=""
18028   eval _sqz_input=\$$1
18029   for _sqz_token in $_sqz_input; do
18030     if test -z "$_sqz_result"; then
18031       _sqz_result="$_sqz_token"
18032     else
18033       _sqz_result="$_sqz_result $_sqz_token"
18034     fi
18035   done
18036   eval $1=\$_sqz_result
18037   return 0
18038 }
18039
18040
18041       #
18042   if test "$compiler_id" != "unknown"; then
18043     #
18044     tmp_save_CPPFLAGS="$CPPFLAGS"
18045     tmp_save_CFLAGS="$CFLAGS"
18046     tmp_CPPFLAGS=""
18047     tmp_CFLAGS=""
18048     #
18049     case "$compiler_id" in
18050         #
18051       CLANG)
18052         #
18053                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
18054                         tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion"
18055         ;;
18056         #
18057       DEC_C)
18058         #
18059                 tmp_CFLAGS="$tmp_CFLAGS -std1"
18060                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
18061                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
18062                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
18063         ;;
18064         #
18065       GNU_C)
18066         #
18067                         if test "$compiler_num" -ge "295"; then
18068           tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
18069         fi
18070         ;;
18071         #
18072       HP_UX_C)
18073         #
18074                 tmp_CFLAGS="$tmp_CFLAGS -z"
18075                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
18076         ;;
18077         #
18078       IBM_C)
18079         #
18080                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
18081                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
18082                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
18083         ;;
18084         #
18085       INTEL_UNIX_C)
18086         #
18087                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
18088                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266"
18089                                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
18090         ;;
18091         #
18092       INTEL_WINDOWS_C)
18093         #
18094                 tmp_CFLAGS="$tmp_CFLAGS"
18095         ;;
18096         #
18097       LCC)
18098         #
18099                 tmp_CFLAGS="$tmp_CFLAGS -n"
18100         ;;
18101         #
18102       SGI_MIPS_C)
18103         #
18104                 tmp_CFLAGS="$tmp_CFLAGS"
18105         ;;
18106         #
18107       SGI_MIPSPRO_C)
18108         #
18109                 tmp_CFLAGS="$tmp_CFLAGS"
18110         ;;
18111         #
18112       SUNPRO_C)
18113         #
18114                 tmp_CFLAGS="$tmp_CFLAGS"
18115         ;;
18116         #
18117       TINY_C)
18118         #
18119                 tmp_CFLAGS="$tmp_CFLAGS"
18120         ;;
18121         #
18122     esac
18123     #
18124     squeeze tmp_CPPFLAGS
18125     squeeze tmp_CFLAGS
18126     #
18127     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18128       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
18129 printf %s "checking if compiler accepts some basic options... " >&6; }
18130       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18131       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18132       squeeze CPPFLAGS
18133       squeeze CFLAGS
18134
18135     tmp_compiler_works="unknown"
18136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h.  */
18138
18139
18140
18141 int main (void)
18142 {
18143
18144       int i = 1;
18145       return i;
18146
18147  ;
18148  return 0;
18149 }
18150
18151 _ACEOF
18152 if ac_fn_c_try_compile "$LINENO"
18153 then :
18154
18155     tmp_compiler_works="yes"
18156
18157 else $as_nop
18158
18159     tmp_compiler_works="no"
18160     echo " " >&6
18161     sed 's/^/cc-fail: /' conftest.err >&6
18162     echo " " >&6
18163
18164 fi
18165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18166     if test "$tmp_compiler_works" = "yes"; then
18167     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h.  */
18169
18170
18171
18172 int main (void)
18173 {
18174
18175         int i = 1;
18176         return i;
18177
18178  ;
18179  return 0;
18180 }
18181
18182 _ACEOF
18183 if ac_fn_c_try_link "$LINENO"
18184 then :
18185
18186       tmp_compiler_works="yes"
18187
18188 else $as_nop
18189
18190       tmp_compiler_works="no"
18191       echo " " >&6
18192       sed 's/^/link-fail: /' conftest.err >&6
18193       echo " " >&6
18194
18195 fi
18196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18197     conftest$ac_exeext conftest.$ac_ext
18198   fi
18199     if test "x$cross_compiling" != "xyes" &&
18200     test "$tmp_compiler_works" = "yes"; then
18201
18202    case $host_os in
18203      darwin*)
18204       if test "$cross_compiling" = yes
18205 then :
18206   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18207 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18208 as_fn_error $? "cannot run test program while cross compiling
18209 See \`config.log' for more details" "$LINENO" 5; }
18210 else $as_nop
18211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h.  */
18213
18214
18215 #       ifdef __STDC__
18216 #         include <stdlib.h>
18217 #       endif
18218
18219 int main (void)
18220 {
18221
18222         int i = 0;
18223         exit(i);
18224
18225  ;
18226  return 0;
18227 }
18228
18229 _ACEOF
18230 if ac_fn_c_try_run "$LINENO"
18231 then :
18232   tmp_compiler_works="yes"
18233
18234 else $as_nop
18235   tmp_compiler_works="no"
18236       echo " " >&6
18237       echo "run-fail: test program exited with status $ac_status" >&6
18238       echo " " >&6
18239
18240 fi
18241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18242   conftest.$ac_objext conftest.beam conftest.$ac_ext
18243 fi
18244
18245      ;;
18246      *)
18247       old=$LD_LIBRARY_PATH
18248       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18249       export LD_LIBRARY_PATH
18250       if test "$cross_compiling" = yes
18251 then :
18252   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18253 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18254 as_fn_error $? "cannot run test program while cross compiling
18255 See \`config.log' for more details" "$LINENO" 5; }
18256 else $as_nop
18257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h.  */
18259
18260
18261 #       ifdef __STDC__
18262 #         include <stdlib.h>
18263 #       endif
18264
18265 int main (void)
18266 {
18267
18268         int i = 0;
18269         exit(i);
18270
18271  ;
18272  return 0;
18273 }
18274
18275 _ACEOF
18276 if ac_fn_c_try_run "$LINENO"
18277 then :
18278   tmp_compiler_works="yes"
18279
18280 else $as_nop
18281   tmp_compiler_works="no"
18282       echo " " >&6
18283       echo "run-fail: test program exited with status $ac_status" >&6
18284       echo " " >&6
18285
18286 fi
18287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18288   conftest.$ac_objext conftest.beam conftest.$ac_ext
18289 fi
18290
18291       LD_LIBRARY_PATH=$old # restore
18292      ;;
18293    esac
18294
18295   fi
18296     if test "$tmp_compiler_works" = "yes"; then
18297
18298         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18299 printf "%s\n" "yes" >&6; }
18300         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18301 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18302
18303   else
18304
18305         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18306 printf "%s\n" "no" >&6; }
18307         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18308 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18309                 CPPFLAGS="$tmp_save_CPPFLAGS"
18310         CFLAGS="$tmp_save_CFLAGS"
18311
18312   fi
18313
18314     fi
18315     #
18316   fi
18317
18318
18319         #
18320   if test "$compiler_id" != "unknown"; then
18321     #
18322     tmp_save_CFLAGS="$CFLAGS"
18323     tmp_save_CPPFLAGS="$CPPFLAGS"
18324     #
18325     tmp_options=""
18326     tmp_CFLAGS="$CFLAGS"
18327     tmp_CPPFLAGS="$CPPFLAGS"
18328     #
18329     if test "$want_debug" = "yes"; then
18330       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
18331 printf %s "checking if compiler accepts debug enabling options... " >&6; }
18332       tmp_options="$flags_dbg_yes"
18333     fi
18334     #
18335     if test "$flags_prefer_cppflags" = "yes"; then
18336       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18337       CFLAGS="$tmp_CFLAGS"
18338     else
18339       CPPFLAGS="$tmp_CPPFLAGS"
18340       CFLAGS="$tmp_CFLAGS $tmp_options"
18341     fi
18342     squeeze CPPFLAGS
18343     squeeze CFLAGS
18344   fi
18345
18346
18347         #
18348   if test "$compiler_id" != "unknown"; then
18349     #
18350     tmp_save_CFLAGS="$CFLAGS"
18351     tmp_save_CPPFLAGS="$CPPFLAGS"
18352     #
18353     tmp_options=""
18354     tmp_CFLAGS="$CFLAGS"
18355     tmp_CPPFLAGS="$CPPFLAGS"
18356     honor_optimize_option="yes"
18357     #
18358                         #
18359     if test "$want_optimize" = "assume_no" ||
18360        test "$want_optimize" = "assume_yes"; then
18361       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
18362 printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
18363
18364
18365   ac_var_match_word="no"
18366   for word1 in $tmp_CFLAGS; do
18367     for word2 in $flags_opt_all; do
18368       if test "$word1" = "$word2"; then
18369         ac_var_match_word="yes"
18370       fi
18371     done
18372   done
18373
18374   if test "$ac_var_match_word" = "yes"; then
18375
18376         honor_optimize_option="no"
18377
18378
18379   fi
18380
18381
18382
18383   ac_var_match_word="no"
18384   for word1 in $tmp_CPPFLAGS; do
18385     for word2 in $flags_opt_all; do
18386       if test "$word1" = "$word2"; then
18387         ac_var_match_word="yes"
18388       fi
18389     done
18390   done
18391
18392   if test "$ac_var_match_word" = "yes"; then
18393
18394         honor_optimize_option="no"
18395
18396
18397   fi
18398
18399       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
18400 printf "%s\n" "$honor_optimize_option" >&6; }
18401       if test "$honor_optimize_option" = "yes"; then
18402         if test "$want_optimize" = "assume_yes"; then
18403           want_optimize="yes"
18404         fi
18405         if test "$want_optimize" = "assume_no"; then
18406           want_optimize="no"
18407         fi
18408       fi
18409     fi
18410     #
18411     if test "$honor_optimize_option" = "yes"; then
18412
18413     ac_var_stripped=""
18414   for word1 in $tmp_CFLAGS; do
18415     ac_var_strip_word="no"
18416     for word2 in $flags_opt_all; do
18417       if test "$word1" = "$word2"; then
18418         ac_var_strip_word="yes"
18419       fi
18420     done
18421     if test "$ac_var_strip_word" = "no"; then
18422       ac_var_stripped="$ac_var_stripped $word1"
18423     fi
18424   done
18425     tmp_CFLAGS="$ac_var_stripped"
18426   squeeze tmp_CFLAGS
18427
18428
18429     ac_var_stripped=""
18430   for word1 in $tmp_CPPFLAGS; do
18431     ac_var_strip_word="no"
18432     for word2 in $flags_opt_all; do
18433       if test "$word1" = "$word2"; then
18434         ac_var_strip_word="yes"
18435       fi
18436     done
18437     if test "$ac_var_strip_word" = "no"; then
18438       ac_var_stripped="$ac_var_stripped $word1"
18439     fi
18440   done
18441     tmp_CPPFLAGS="$ac_var_stripped"
18442   squeeze tmp_CPPFLAGS
18443
18444       if test "$want_optimize" = "yes"; then
18445         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
18446 printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
18447         tmp_options="$flags_opt_yes"
18448       fi
18449       if test "$want_optimize" = "no"; then
18450         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
18451 printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
18452         tmp_options="$flags_opt_off"
18453       fi
18454       if test "$flags_prefer_cppflags" = "yes"; then
18455         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18456         CFLAGS="$tmp_CFLAGS"
18457       else
18458         CPPFLAGS="$tmp_CPPFLAGS"
18459         CFLAGS="$tmp_CFLAGS $tmp_options"
18460       fi
18461       squeeze CPPFLAGS
18462       squeeze CFLAGS
18463
18464     tmp_compiler_works="unknown"
18465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18466 /* end confdefs.h.  */
18467
18468
18469
18470 int main (void)
18471 {
18472
18473       int i = 1;
18474       return i;
18475
18476  ;
18477  return 0;
18478 }
18479
18480 _ACEOF
18481 if ac_fn_c_try_compile "$LINENO"
18482 then :
18483
18484     tmp_compiler_works="yes"
18485
18486 else $as_nop
18487
18488     tmp_compiler_works="no"
18489     echo " " >&6
18490     sed 's/^/cc-fail: /' conftest.err >&6
18491     echo " " >&6
18492
18493 fi
18494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18495     if test "$tmp_compiler_works" = "yes"; then
18496     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h.  */
18498
18499
18500
18501 int main (void)
18502 {
18503
18504         int i = 1;
18505         return i;
18506
18507  ;
18508  return 0;
18509 }
18510
18511 _ACEOF
18512 if ac_fn_c_try_link "$LINENO"
18513 then :
18514
18515       tmp_compiler_works="yes"
18516
18517 else $as_nop
18518
18519       tmp_compiler_works="no"
18520       echo " " >&6
18521       sed 's/^/link-fail: /' conftest.err >&6
18522       echo " " >&6
18523
18524 fi
18525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18526     conftest$ac_exeext conftest.$ac_ext
18527   fi
18528     if test "x$cross_compiling" != "xyes" &&
18529     test "$tmp_compiler_works" = "yes"; then
18530
18531    case $host_os in
18532      darwin*)
18533       if test "$cross_compiling" = yes
18534 then :
18535   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18536 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18537 as_fn_error $? "cannot run test program while cross compiling
18538 See \`config.log' for more details" "$LINENO" 5; }
18539 else $as_nop
18540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h.  */
18542
18543
18544 #       ifdef __STDC__
18545 #         include <stdlib.h>
18546 #       endif
18547
18548 int main (void)
18549 {
18550
18551         int i = 0;
18552         exit(i);
18553
18554  ;
18555  return 0;
18556 }
18557
18558 _ACEOF
18559 if ac_fn_c_try_run "$LINENO"
18560 then :
18561   tmp_compiler_works="yes"
18562
18563 else $as_nop
18564   tmp_compiler_works="no"
18565       echo " " >&6
18566       echo "run-fail: test program exited with status $ac_status" >&6
18567       echo " " >&6
18568
18569 fi
18570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18571   conftest.$ac_objext conftest.beam conftest.$ac_ext
18572 fi
18573
18574      ;;
18575      *)
18576       old=$LD_LIBRARY_PATH
18577       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18578       export LD_LIBRARY_PATH
18579       if test "$cross_compiling" = yes
18580 then :
18581   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18582 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18583 as_fn_error $? "cannot run test program while cross compiling
18584 See \`config.log' for more details" "$LINENO" 5; }
18585 else $as_nop
18586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587 /* end confdefs.h.  */
18588
18589
18590 #       ifdef __STDC__
18591 #         include <stdlib.h>
18592 #       endif
18593
18594 int main (void)
18595 {
18596
18597         int i = 0;
18598         exit(i);
18599
18600  ;
18601  return 0;
18602 }
18603
18604 _ACEOF
18605 if ac_fn_c_try_run "$LINENO"
18606 then :
18607   tmp_compiler_works="yes"
18608
18609 else $as_nop
18610   tmp_compiler_works="no"
18611       echo " " >&6
18612       echo "run-fail: test program exited with status $ac_status" >&6
18613       echo " " >&6
18614
18615 fi
18616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18617   conftest.$ac_objext conftest.beam conftest.$ac_ext
18618 fi
18619
18620       LD_LIBRARY_PATH=$old # restore
18621      ;;
18622    esac
18623
18624   fi
18625     if test "$tmp_compiler_works" = "yes"; then
18626
18627         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18628 printf "%s\n" "yes" >&6; }
18629         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
18630 printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
18631
18632   else
18633
18634         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18635 printf "%s\n" "no" >&6; }
18636         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
18637 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
18638                 CPPFLAGS="$tmp_save_CPPFLAGS"
18639         CFLAGS="$tmp_save_CFLAGS"
18640
18641   fi
18642
18643     fi
18644     #
18645   fi
18646
18647
18648         #
18649   if test "$compiler_id" != "unknown"; then
18650     #
18651     tmp_save_CPPFLAGS="$CPPFLAGS"
18652     tmp_save_CFLAGS="$CFLAGS"
18653     tmp_CPPFLAGS=""
18654     tmp_CFLAGS=""
18655     #
18656     case "$compiler_id" in
18657         #
18658       CLANG)
18659         #
18660         if test "$want_warnings" = "yes"; then
18661           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18662
18663     ac_var_added_warnings=""
18664   for warning in all extra; do
18665
18666   ac_var_match_word="no"
18667   for word1 in $CFLAGS; do
18668     for word2 in -Wno-$warning -W$warning; do
18669       if test "$word1" = "$word2"; then
18670         ac_var_match_word="yes"
18671       fi
18672     done
18673   done
18674
18675     if test "$ac_var_match_word" = "no"; then
18676       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18677     fi
18678   done
18679     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18680   squeeze tmp_CFLAGS
18681
18682
18683     ac_var_added_warnings=""
18684   for warning in pointer-arith write-strings; do
18685
18686   ac_var_match_word="no"
18687   for word1 in $CFLAGS; do
18688     for word2 in -Wno-$warning -W$warning; do
18689       if test "$word1" = "$word2"; then
18690         ac_var_match_word="yes"
18691       fi
18692     done
18693   done
18694
18695     if test "$ac_var_match_word" = "no"; then
18696       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18697     fi
18698   done
18699     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18700   squeeze tmp_CFLAGS
18701
18702
18703     ac_var_added_warnings=""
18704   for warning in shadow; do
18705
18706   ac_var_match_word="no"
18707   for word1 in $CFLAGS; do
18708     for word2 in -Wno-$warning -W$warning; do
18709       if test "$word1" = "$word2"; then
18710         ac_var_match_word="yes"
18711       fi
18712     done
18713   done
18714
18715     if test "$ac_var_match_word" = "no"; then
18716       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18717     fi
18718   done
18719     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18720   squeeze tmp_CFLAGS
18721
18722
18723     ac_var_added_warnings=""
18724   for warning in inline nested-externs; do
18725
18726   ac_var_match_word="no"
18727   for word1 in $CFLAGS; do
18728     for word2 in -Wno-$warning -W$warning; do
18729       if test "$word1" = "$word2"; then
18730         ac_var_match_word="yes"
18731       fi
18732     done
18733   done
18734
18735     if test "$ac_var_match_word" = "no"; then
18736       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18737     fi
18738   done
18739     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18740   squeeze tmp_CFLAGS
18741
18742
18743     ac_var_added_warnings=""
18744   for warning in missing-declarations; do
18745
18746   ac_var_match_word="no"
18747   for word1 in $CFLAGS; do
18748     for word2 in -Wno-$warning -W$warning; do
18749       if test "$word1" = "$word2"; then
18750         ac_var_match_word="yes"
18751       fi
18752     done
18753   done
18754
18755     if test "$ac_var_match_word" = "no"; then
18756       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18757     fi
18758   done
18759     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18760   squeeze tmp_CFLAGS
18761
18762
18763     ac_var_added_warnings=""
18764   for warning in missing-prototypes; do
18765
18766   ac_var_match_word="no"
18767   for word1 in $CFLAGS; do
18768     for word2 in -Wno-$warning -W$warning; do
18769       if test "$word1" = "$word2"; then
18770         ac_var_match_word="yes"
18771       fi
18772     done
18773   done
18774
18775     if test "$ac_var_match_word" = "no"; then
18776       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18777     fi
18778   done
18779     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18780   squeeze tmp_CFLAGS
18781
18782           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18783
18784     ac_var_added_warnings=""
18785   for warning in float-equal; do
18786
18787   ac_var_match_word="no"
18788   for word1 in $CFLAGS; do
18789     for word2 in -Wno-$warning -W$warning; do
18790       if test "$word1" = "$word2"; then
18791         ac_var_match_word="yes"
18792       fi
18793     done
18794   done
18795
18796     if test "$ac_var_match_word" = "no"; then
18797       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18798     fi
18799   done
18800     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18801   squeeze tmp_CFLAGS
18802
18803
18804     ac_var_added_warnings=""
18805   for warning in no-multichar sign-compare; do
18806
18807   ac_var_match_word="no"
18808   for word1 in $CFLAGS; do
18809     for word2 in -Wno-$warning -W$warning; do
18810       if test "$word1" = "$word2"; then
18811         ac_var_match_word="yes"
18812       fi
18813     done
18814   done
18815
18816     if test "$ac_var_match_word" = "no"; then
18817       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18818     fi
18819   done
18820     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18821   squeeze tmp_CFLAGS
18822
18823
18824     ac_var_added_warnings=""
18825   for warning in undef; do
18826
18827   ac_var_match_word="no"
18828   for word1 in $CFLAGS; do
18829     for word2 in -Wno-$warning -W$warning; do
18830       if test "$word1" = "$word2"; then
18831         ac_var_match_word="yes"
18832       fi
18833     done
18834   done
18835
18836     if test "$ac_var_match_word" = "no"; then
18837       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18838     fi
18839   done
18840     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18841   squeeze tmp_CFLAGS
18842
18843           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18844
18845     ac_var_added_warnings=""
18846   for warning in endif-labels strict-prototypes; do
18847
18848   ac_var_match_word="no"
18849   for word1 in $CFLAGS; do
18850     for word2 in -Wno-$warning -W$warning; do
18851       if test "$word1" = "$word2"; then
18852         ac_var_match_word="yes"
18853       fi
18854     done
18855   done
18856
18857     if test "$ac_var_match_word" = "no"; then
18858       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18859     fi
18860   done
18861     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18862   squeeze tmp_CFLAGS
18863
18864
18865     ac_var_added_warnings=""
18866   for warning in declaration-after-statement; do
18867
18868   ac_var_match_word="no"
18869   for word1 in $CFLAGS; do
18870     for word2 in -Wno-$warning -W$warning; do
18871       if test "$word1" = "$word2"; then
18872         ac_var_match_word="yes"
18873       fi
18874     done
18875   done
18876
18877     if test "$ac_var_match_word" = "no"; then
18878       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18879     fi
18880   done
18881     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18882   squeeze tmp_CFLAGS
18883
18884
18885     ac_var_added_warnings=""
18886   for warning in cast-align; do
18887
18888   ac_var_match_word="no"
18889   for word1 in $CFLAGS; do
18890     for word2 in -Wno-$warning -W$warning; do
18891       if test "$word1" = "$word2"; then
18892         ac_var_match_word="yes"
18893       fi
18894     done
18895   done
18896
18897     if test "$ac_var_match_word" = "no"; then
18898       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18899     fi
18900   done
18901     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18902   squeeze tmp_CFLAGS
18903
18904           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18905
18906     ac_var_added_warnings=""
18907   for warning in shorten-64-to-32; do
18908
18909   ac_var_match_word="no"
18910   for word1 in $CFLAGS; do
18911     for word2 in -Wno-$warning -W$warning; do
18912       if test "$word1" = "$word2"; then
18913         ac_var_match_word="yes"
18914       fi
18915     done
18916   done
18917
18918     if test "$ac_var_match_word" = "no"; then
18919       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18920     fi
18921   done
18922     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18923   squeeze tmp_CFLAGS
18924
18925           #
18926                     if test "$compiler_num" -ge "101"; then
18927
18928     ac_var_added_warnings=""
18929   for warning in unused; do
18930
18931   ac_var_match_word="no"
18932   for word1 in $CFLAGS; do
18933     for word2 in -Wno-$warning -W$warning; do
18934       if test "$word1" = "$word2"; then
18935         ac_var_match_word="yes"
18936       fi
18937     done
18938   done
18939
18940     if test "$ac_var_match_word" = "no"; then
18941       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18942     fi
18943   done
18944     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18945   squeeze tmp_CFLAGS
18946
18947           fi
18948           #
18949                     if test "$compiler_num" -ge "208"; then
18950
18951     ac_var_added_warnings=""
18952   for warning in vla; do
18953
18954   ac_var_match_word="no"
18955   for word1 in $CFLAGS; do
18956     for word2 in -Wno-$warning -W$warning; do
18957       if test "$word1" = "$word2"; then
18958         ac_var_match_word="yes"
18959       fi
18960     done
18961   done
18962
18963     if test "$ac_var_match_word" = "no"; then
18964       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18965     fi
18966   done
18967     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18968   squeeze tmp_CFLAGS
18969
18970           fi
18971           #
18972                     if test "$compiler_num" -ge "209"; then
18973
18974     ac_var_added_warnings=""
18975   for warning in shift-sign-overflow; do
18976
18977   ac_var_match_word="no"
18978   for word1 in $CFLAGS; do
18979     for word2 in -Wno-$warning -W$warning; do
18980       if test "$word1" = "$word2"; then
18981         ac_var_match_word="yes"
18982       fi
18983     done
18984   done
18985
18986     if test "$ac_var_match_word" = "no"; then
18987       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18988     fi
18989   done
18990     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18991   squeeze tmp_CFLAGS
18992
18993           fi
18994           #
18995                     if test "$compiler_num" -ge "302"; then
18996             case $host_os in
18997             cygwin* | mingw*)
18998                                           ;;
18999             *)
19000
19001     ac_var_added_warnings=""
19002   for warning in missing-variable-declarations; do
19003
19004   ac_var_match_word="no"
19005   for word1 in $CFLAGS; do
19006     for word2 in -Wno-$warning -W$warning; do
19007       if test "$word1" = "$word2"; then
19008         ac_var_match_word="yes"
19009       fi
19010     done
19011   done
19012
19013     if test "$ac_var_match_word" = "no"; then
19014       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19015     fi
19016   done
19017     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19018   squeeze tmp_CFLAGS
19019
19020               ;;
19021             esac
19022           fi
19023           #
19024                     if test "$compiler_num" -ge "306"; then
19025
19026     ac_var_added_warnings=""
19027   for warning in double-promotion; do
19028
19029   ac_var_match_word="no"
19030   for word1 in $CFLAGS; do
19031     for word2 in -Wno-$warning -W$warning; do
19032       if test "$word1" = "$word2"; then
19033         ac_var_match_word="yes"
19034       fi
19035     done
19036   done
19037
19038     if test "$ac_var_match_word" = "no"; then
19039       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19040     fi
19041   done
19042     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19043   squeeze tmp_CFLAGS
19044
19045           fi
19046           #
19047                     if test "$compiler_num" -ge "309"; then
19048
19049     ac_var_added_warnings=""
19050   for warning in comma; do
19051
19052   ac_var_match_word="no"
19053   for word1 in $CFLAGS; do
19054     for word2 in -Wno-$warning -W$warning; do
19055       if test "$word1" = "$word2"; then
19056         ac_var_match_word="yes"
19057       fi
19058     done
19059   done
19060
19061     if test "$ac_var_match_word" = "no"; then
19062       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19063     fi
19064   done
19065     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19066   squeeze tmp_CFLAGS
19067
19068             # avoid the varargs warning, fixed in 4.0
19069             # https://bugs.llvm.org/show_bug.cgi?id=29140
19070             if test "$compiler_num" -lt "400"; then
19071               tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
19072             fi
19073           fi
19074                     if test "$compiler_num" -ge "700"; then
19075
19076     ac_var_added_warnings=""
19077   for warning in assign-enum; do
19078
19079   ac_var_match_word="no"
19080   for word1 in $CFLAGS; do
19081     for word2 in -Wno-$warning -W$warning; do
19082       if test "$word1" = "$word2"; then
19083         ac_var_match_word="yes"
19084       fi
19085     done
19086   done
19087
19088     if test "$ac_var_match_word" = "no"; then
19089       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19090     fi
19091   done
19092     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19093   squeeze tmp_CFLAGS
19094
19095
19096     ac_var_added_warnings=""
19097   for warning in extra-semi-stmt; do
19098
19099   ac_var_match_word="no"
19100   for word1 in $CFLAGS; do
19101     for word2 in -Wno-$warning -W$warning; do
19102       if test "$word1" = "$word2"; then
19103         ac_var_match_word="yes"
19104       fi
19105     done
19106   done
19107
19108     if test "$ac_var_match_word" = "no"; then
19109       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19110     fi
19111   done
19112     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19113   squeeze tmp_CFLAGS
19114
19115           fi
19116         fi
19117         ;;
19118         #
19119       DEC_C)
19120         #
19121         if test "$want_warnings" = "yes"; then
19122                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
19123         fi
19124         ;;
19125         #
19126       GNU_C)
19127         #
19128         if test "$want_warnings" = "yes"; then
19129           tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
19130           #
19131                               if test "x$cross_compiling" != "xyes" ||
19132             test "$compiler_num" -ge "300"; then
19133             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19134           fi
19135           #
19136
19137     ac_var_added_warnings=""
19138   for warning in all; do
19139
19140   ac_var_match_word="no"
19141   for word1 in $CFLAGS; do
19142     for word2 in -Wno-$warning -W$warning; do
19143       if test "$word1" = "$word2"; then
19144         ac_var_match_word="yes"
19145       fi
19146     done
19147   done
19148
19149     if test "$ac_var_match_word" = "no"; then
19150       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19151     fi
19152   done
19153     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19154   squeeze tmp_CFLAGS
19155
19156           tmp_CFLAGS="$tmp_CFLAGS -W"
19157           #
19158                     if test "$compiler_num" -ge "104"; then
19159
19160     ac_var_added_warnings=""
19161   for warning in pointer-arith write-strings; do
19162
19163   ac_var_match_word="no"
19164   for word1 in $CFLAGS; do
19165     for word2 in -Wno-$warning -W$warning; do
19166       if test "$word1" = "$word2"; then
19167         ac_var_match_word="yes"
19168       fi
19169     done
19170   done
19171
19172     if test "$ac_var_match_word" = "no"; then
19173       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19174     fi
19175   done
19176     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19177   squeeze tmp_CFLAGS
19178
19179                         if test "x$cross_compiling" != "xyes" ||
19180               test "$compiler_num" -ge "300"; then
19181
19182     ac_var_added_warnings=""
19183   for warning in unused shadow; do
19184
19185   ac_var_match_word="no"
19186   for word1 in $CFLAGS; do
19187     for word2 in -Wno-$warning -W$warning; do
19188       if test "$word1" = "$word2"; then
19189         ac_var_match_word="yes"
19190       fi
19191     done
19192   done
19193
19194     if test "$ac_var_match_word" = "no"; then
19195       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19196     fi
19197   done
19198     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19199   squeeze tmp_CFLAGS
19200
19201             fi
19202           fi
19203           #
19204                     if test "$compiler_num" -ge "207"; then
19205
19206     ac_var_added_warnings=""
19207   for warning in inline nested-externs; do
19208
19209   ac_var_match_word="no"
19210   for word1 in $CFLAGS; do
19211     for word2 in -Wno-$warning -W$warning; do
19212       if test "$word1" = "$word2"; then
19213         ac_var_match_word="yes"
19214       fi
19215     done
19216   done
19217
19218     if test "$ac_var_match_word" = "no"; then
19219       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19220     fi
19221   done
19222     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19223   squeeze tmp_CFLAGS
19224
19225                         if test "x$cross_compiling" != "xyes" ||
19226               test "$compiler_num" -ge "300"; then
19227
19228     ac_var_added_warnings=""
19229   for warning in missing-declarations; do
19230
19231   ac_var_match_word="no"
19232   for word1 in $CFLAGS; do
19233     for word2 in -Wno-$warning -W$warning; do
19234       if test "$word1" = "$word2"; then
19235         ac_var_match_word="yes"
19236       fi
19237     done
19238   done
19239
19240     if test "$ac_var_match_word" = "no"; then
19241       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19242     fi
19243   done
19244     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19245   squeeze tmp_CFLAGS
19246
19247
19248     ac_var_added_warnings=""
19249   for warning in missing-prototypes; do
19250
19251   ac_var_match_word="no"
19252   for word1 in $CFLAGS; do
19253     for word2 in -Wno-$warning -W$warning; do
19254       if test "$word1" = "$word2"; then
19255         ac_var_match_word="yes"
19256       fi
19257     done
19258   done
19259
19260     if test "$ac_var_match_word" = "no"; then
19261       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19262     fi
19263   done
19264     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19265   squeeze tmp_CFLAGS
19266
19267             fi
19268           fi
19269           #
19270                     if test "$compiler_num" -ge "295"; then
19271             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
19272
19273     ac_var_added_warnings=""
19274   for warning in bad-function-cast; do
19275
19276   ac_var_match_word="no"
19277   for word1 in $CFLAGS; do
19278     for word2 in -Wno-$warning -W$warning; do
19279       if test "$word1" = "$word2"; then
19280         ac_var_match_word="yes"
19281       fi
19282     done
19283   done
19284
19285     if test "$ac_var_match_word" = "no"; then
19286       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19287     fi
19288   done
19289     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19290   squeeze tmp_CFLAGS
19291
19292           fi
19293           #
19294                     if test "$compiler_num" -ge "296"; then
19295
19296     ac_var_added_warnings=""
19297   for warning in float-equal; do
19298
19299   ac_var_match_word="no"
19300   for word1 in $CFLAGS; do
19301     for word2 in -Wno-$warning -W$warning; do
19302       if test "$word1" = "$word2"; then
19303         ac_var_match_word="yes"
19304       fi
19305     done
19306   done
19307
19308     if test "$ac_var_match_word" = "no"; then
19309       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19310     fi
19311   done
19312     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19313   squeeze tmp_CFLAGS
19314
19315             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
19316
19317     ac_var_added_warnings=""
19318   for warning in sign-compare; do
19319
19320   ac_var_match_word="no"
19321   for word1 in $CFLAGS; do
19322     for word2 in -Wno-$warning -W$warning; do
19323       if test "$word1" = "$word2"; then
19324         ac_var_match_word="yes"
19325       fi
19326     done
19327   done
19328
19329     if test "$ac_var_match_word" = "no"; then
19330       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19331     fi
19332   done
19333     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19334   squeeze tmp_CFLAGS
19335
19336
19337     ac_var_added_warnings=""
19338   for warning in undef; do
19339
19340   ac_var_match_word="no"
19341   for word1 in $CFLAGS; do
19342     for word2 in -Wno-$warning -W$warning; do
19343       if test "$word1" = "$word2"; then
19344         ac_var_match_word="yes"
19345       fi
19346     done
19347   done
19348
19349     if test "$ac_var_match_word" = "no"; then
19350       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19351     fi
19352   done
19353     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19354   squeeze tmp_CFLAGS
19355
19356           fi
19357           #
19358                     if test "$compiler_num" -ge "297"; then
19359             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
19360           fi
19361           #
19362                     if test "$compiler_num" -ge "300"; then
19363                                                             tmp_CFLAGS="$tmp_CFLAGS"
19364           fi
19365           #
19366                     if test "$compiler_num" -ge "303"; then
19367
19368     ac_var_added_warnings=""
19369   for warning in endif-labels strict-prototypes; do
19370
19371   ac_var_match_word="no"
19372   for word1 in $CFLAGS; do
19373     for word2 in -Wno-$warning -W$warning; do
19374       if test "$word1" = "$word2"; then
19375         ac_var_match_word="yes"
19376       fi
19377     done
19378   done
19379
19380     if test "$ac_var_match_word" = "no"; then
19381       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19382     fi
19383   done
19384     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19385   squeeze tmp_CFLAGS
19386
19387           fi
19388           #
19389                     if test "$compiler_num" -ge "304"; then
19390
19391     ac_var_added_warnings=""
19392   for warning in declaration-after-statement; do
19393
19394   ac_var_match_word="no"
19395   for word1 in $CFLAGS; do
19396     for word2 in -Wno-$warning -W$warning; do
19397       if test "$word1" = "$word2"; then
19398         ac_var_match_word="yes"
19399       fi
19400     done
19401   done
19402
19403     if test "$ac_var_match_word" = "no"; then
19404       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19405     fi
19406   done
19407     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19408   squeeze tmp_CFLAGS
19409
19410
19411     ac_var_added_warnings=""
19412   for warning in old-style-definition; do
19413
19414   ac_var_match_word="no"
19415   for word1 in $CFLAGS; do
19416     for word2 in -Wno-$warning -W$warning; do
19417       if test "$word1" = "$word2"; then
19418         ac_var_match_word="yes"
19419       fi
19420     done
19421   done
19422
19423     if test "$ac_var_match_word" = "no"; then
19424       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19425     fi
19426   done
19427     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19428   squeeze tmp_CFLAGS
19429
19430           fi
19431           #
19432                     if test "$compiler_num" -ge "400"; then
19433             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
19434           fi
19435           #
19436                     if test "$compiler_num" -ge "402"; then
19437
19438     ac_var_added_warnings=""
19439   for warning in cast-align; do
19440
19441   ac_var_match_word="no"
19442   for word1 in $CFLAGS; do
19443     for word2 in -Wno-$warning -W$warning; do
19444       if test "$word1" = "$word2"; then
19445         ac_var_match_word="yes"
19446       fi
19447     done
19448   done
19449
19450     if test "$ac_var_match_word" = "no"; then
19451       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19452     fi
19453   done
19454     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19455   squeeze tmp_CFLAGS
19456
19457           fi
19458           #
19459                     if test "$compiler_num" -ge "403"; then
19460
19461     ac_var_added_warnings=""
19462   for warning in type-limits old-style-declaration; do
19463
19464   ac_var_match_word="no"
19465   for word1 in $CFLAGS; do
19466     for word2 in -Wno-$warning -W$warning; do
19467       if test "$word1" = "$word2"; then
19468         ac_var_match_word="yes"
19469       fi
19470     done
19471   done
19472
19473     if test "$ac_var_match_word" = "no"; then
19474       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19475     fi
19476   done
19477     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19478   squeeze tmp_CFLAGS
19479
19480
19481     ac_var_added_warnings=""
19482   for warning in missing-parameter-type empty-body; do
19483
19484   ac_var_match_word="no"
19485   for word1 in $CFLAGS; do
19486     for word2 in -Wno-$warning -W$warning; do
19487       if test "$word1" = "$word2"; then
19488         ac_var_match_word="yes"
19489       fi
19490     done
19491   done
19492
19493     if test "$ac_var_match_word" = "no"; then
19494       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19495     fi
19496   done
19497     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19498   squeeze tmp_CFLAGS
19499
19500
19501     ac_var_added_warnings=""
19502   for warning in clobbered ignored-qualifiers; do
19503
19504   ac_var_match_word="no"
19505   for word1 in $CFLAGS; do
19506     for word2 in -Wno-$warning -W$warning; do
19507       if test "$word1" = "$word2"; then
19508         ac_var_match_word="yes"
19509       fi
19510     done
19511   done
19512
19513     if test "$ac_var_match_word" = "no"; then
19514       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19515     fi
19516   done
19517     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19518   squeeze tmp_CFLAGS
19519
19520
19521     ac_var_added_warnings=""
19522   for warning in conversion; do
19523
19524   ac_var_match_word="no"
19525   for word1 in $CFLAGS; do
19526     for word2 in -Wno-$warning -W$warning; do
19527       if test "$word1" = "$word2"; then
19528         ac_var_match_word="yes"
19529       fi
19530     done
19531   done
19532
19533     if test "$ac_var_match_word" = "no"; then
19534       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19535     fi
19536   done
19537     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19538   squeeze tmp_CFLAGS
19539
19540             tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
19541
19542     ac_var_added_warnings=""
19543   for warning in vla; do
19544
19545   ac_var_match_word="no"
19546   for word1 in $CFLAGS; do
19547     for word2 in -Wno-$warning -W$warning; do
19548       if test "$word1" = "$word2"; then
19549         ac_var_match_word="yes"
19550       fi
19551     done
19552   done
19553
19554     if test "$ac_var_match_word" = "no"; then
19555       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19556     fi
19557   done
19558     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19559   squeeze tmp_CFLAGS
19560
19561                         tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
19562           fi
19563           #
19564                     if test "$compiler_num" -ge "405"; then
19565                         if test "$curl_cv_have_def__WIN32" = "yes"; then
19566               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
19567             fi
19568           fi
19569           #
19570                     if test "$compiler_num" -ge "406"; then
19571
19572     ac_var_added_warnings=""
19573   for warning in double-promotion; do
19574
19575   ac_var_match_word="no"
19576   for word1 in $CFLAGS; do
19577     for word2 in -Wno-$warning -W$warning; do
19578       if test "$word1" = "$word2"; then
19579         ac_var_match_word="yes"
19580       fi
19581     done
19582   done
19583
19584     if test "$ac_var_match_word" = "no"; then
19585       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19586     fi
19587   done
19588     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19589   squeeze tmp_CFLAGS
19590
19591           fi
19592           #
19593                     if test "$compiler_num" -ge "408"; then
19594             tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
19595           fi
19596           #
19597                     if test "$compiler_num" -ge "500"; then
19598             tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
19599           fi
19600           #
19601                     if test "$compiler_num" -ge "600"; then
19602
19603     ac_var_added_warnings=""
19604   for warning in shift-negative-value; do
19605
19606   ac_var_match_word="no"
19607   for word1 in $CFLAGS; do
19608     for word2 in -Wno-$warning -W$warning; do
19609       if test "$word1" = "$word2"; then
19610         ac_var_match_word="yes"
19611       fi
19612     done
19613   done
19614
19615     if test "$ac_var_match_word" = "no"; then
19616       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19617     fi
19618   done
19619     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19620   squeeze tmp_CFLAGS
19621
19622             tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
19623
19624     ac_var_added_warnings=""
19625   for warning in null-dereference; do
19626
19627   ac_var_match_word="no"
19628   for word1 in $CFLAGS; do
19629     for word2 in -Wno-$warning -W$warning; do
19630       if test "$word1" = "$word2"; then
19631         ac_var_match_word="yes"
19632       fi
19633     done
19634   done
19635
19636     if test "$ac_var_match_word" = "no"; then
19637       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19638     fi
19639   done
19640     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19641   squeeze tmp_CFLAGS
19642
19643             tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
19644
19645     ac_var_added_warnings=""
19646   for warning in duplicated-cond; do
19647
19648   ac_var_match_word="no"
19649   for word1 in $CFLAGS; do
19650     for word2 in -Wno-$warning -W$warning; do
19651       if test "$word1" = "$word2"; then
19652         ac_var_match_word="yes"
19653       fi
19654     done
19655   done
19656
19657     if test "$ac_var_match_word" = "no"; then
19658       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19659     fi
19660   done
19661     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19662   squeeze tmp_CFLAGS
19663
19664
19665     ac_var_added_warnings=""
19666   for warning in unused-const-variable; do
19667
19668   ac_var_match_word="no"
19669   for word1 in $CFLAGS; do
19670     for word2 in -Wno-$warning -W$warning; do
19671       if test "$word1" = "$word2"; then
19672         ac_var_match_word="yes"
19673       fi
19674     done
19675   done
19676
19677     if test "$ac_var_match_word" = "no"; then
19678       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19679     fi
19680   done
19681     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19682   squeeze tmp_CFLAGS
19683
19684           fi
19685           #
19686                     if test "$compiler_num" -ge "700"; then
19687
19688     ac_var_added_warnings=""
19689   for warning in duplicated-branches; do
19690
19691   ac_var_match_word="no"
19692   for word1 in $CFLAGS; do
19693     for word2 in -Wno-$warning -W$warning; do
19694       if test "$word1" = "$word2"; then
19695         ac_var_match_word="yes"
19696       fi
19697     done
19698   done
19699
19700     if test "$ac_var_match_word" = "no"; then
19701       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19702     fi
19703   done
19704     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19705   squeeze tmp_CFLAGS
19706
19707
19708     ac_var_added_warnings=""
19709   for warning in restrict; do
19710
19711   ac_var_match_word="no"
19712   for word1 in $CFLAGS; do
19713     for word2 in -Wno-$warning -W$warning; do
19714       if test "$word1" = "$word2"; then
19715         ac_var_match_word="yes"
19716       fi
19717     done
19718   done
19719
19720     if test "$ac_var_match_word" = "no"; then
19721       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19722     fi
19723   done
19724     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19725   squeeze tmp_CFLAGS
19726
19727
19728     ac_var_added_warnings=""
19729   for warning in alloc-zero; do
19730
19731   ac_var_match_word="no"
19732   for word1 in $CFLAGS; do
19733     for word2 in -Wno-$warning -W$warning; do
19734       if test "$word1" = "$word2"; then
19735         ac_var_match_word="yes"
19736       fi
19737     done
19738   done
19739
19740     if test "$ac_var_match_word" = "no"; then
19741       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19742     fi
19743   done
19744     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19745   squeeze tmp_CFLAGS
19746
19747             tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
19748             tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
19749             if test "$compiler_num" -lt "1200"; then
19750                             tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
19751             fi
19752           fi
19753           #
19754                     if test "$compiler_num" -ge "1000"; then
19755
19756     ac_var_added_warnings=""
19757   for warning in arith-conversion; do
19758
19759   ac_var_match_word="no"
19760   for word1 in $CFLAGS; do
19761     for word2 in -Wno-$warning -W$warning; do
19762       if test "$word1" = "$word2"; then
19763         ac_var_match_word="yes"
19764       fi
19765     done
19766   done
19767
19768     if test "$ac_var_match_word" = "no"; then
19769       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19770     fi
19771   done
19772     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19773   squeeze tmp_CFLAGS
19774
19775
19776     ac_var_added_warnings=""
19777   for warning in enum-conversion; do
19778
19779   ac_var_match_word="no"
19780   for word1 in $CFLAGS; do
19781     for word2 in -Wno-$warning -W$warning; do
19782       if test "$word1" = "$word2"; then
19783         ac_var_match_word="yes"
19784       fi
19785     done
19786   done
19787
19788     if test "$ac_var_match_word" = "no"; then
19789       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19790     fi
19791   done
19792     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19793   squeeze tmp_CFLAGS
19794
19795           fi
19796           #
19797         fi
19798         #
19799                 if test "$compiler_num" -ge "300"; then
19800           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
19801         else
19802                               if test "x$cross_compiling" = "xyes"; then
19803             if test "$compiler_num" -ge "104"; then
19804                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
19805             fi
19806             if test "$compiler_num" -ge "207"; then
19807                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
19808               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
19809             fi
19810           fi
19811         fi
19812         ;;
19813         #
19814       HP_UX_C)
19815         #
19816         if test "$want_warnings" = "yes"; then
19817                     tmp_CFLAGS="$tmp_CFLAGS +w1"
19818         fi
19819         ;;
19820         #
19821       IBM_C)
19822         #
19823                 tmp_CFLAGS="$tmp_CFLAGS"
19824         ;;
19825         #
19826       INTEL_UNIX_C)
19827         #
19828         if test "$want_warnings" = "yes"; then
19829           if test "$compiler_num" -gt "600"; then
19830                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
19831                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
19832                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
19833                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
19834                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
19835                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
19836                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
19837                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
19838                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
19839                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
19840                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
19841           fi
19842         fi
19843                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
19844                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
19845                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
19846         ;;
19847         #
19848       INTEL_WINDOWS_C)
19849         #
19850                 tmp_CFLAGS="$tmp_CFLAGS"
19851         ;;
19852         #
19853       LCC)
19854         #
19855         if test "$want_warnings" = "yes"; then
19856                                                   tmp_CFLAGS="$tmp_CFLAGS"
19857         fi
19858         ;;
19859         #
19860       SGI_MIPS_C)
19861         #
19862         if test "$want_warnings" = "yes"; then
19863                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
19864         fi
19865         ;;
19866         #
19867       SGI_MIPSPRO_C)
19868         #
19869         if test "$want_warnings" = "yes"; then
19870                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
19871                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
19872         fi
19873         ;;
19874         #
19875       SUNPRO_C)
19876         #
19877         if test "$want_warnings" = "yes"; then
19878                     tmp_CFLAGS="$tmp_CFLAGS -v"
19879         fi
19880         ;;
19881         #
19882       TINY_C)
19883         #
19884         if test "$want_warnings" = "yes"; then
19885
19886     ac_var_added_warnings=""
19887   for warning in all; do
19888
19889   ac_var_match_word="no"
19890   for word1 in $CFLAGS; do
19891     for word2 in -Wno-$warning -W$warning; do
19892       if test "$word1" = "$word2"; then
19893         ac_var_match_word="yes"
19894       fi
19895     done
19896   done
19897
19898     if test "$ac_var_match_word" = "no"; then
19899       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19900     fi
19901   done
19902     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19903   squeeze tmp_CFLAGS
19904
19905
19906     ac_var_added_warnings=""
19907   for warning in write-strings; do
19908
19909   ac_var_match_word="no"
19910   for word1 in $CFLAGS; do
19911     for word2 in -Wno-$warning -W$warning; do
19912       if test "$word1" = "$word2"; then
19913         ac_var_match_word="yes"
19914       fi
19915     done
19916   done
19917
19918     if test "$ac_var_match_word" = "no"; then
19919       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19920     fi
19921   done
19922     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19923   squeeze tmp_CFLAGS
19924
19925
19926     ac_var_added_warnings=""
19927   for warning in unsupported; do
19928
19929   ac_var_match_word="no"
19930   for word1 in $CFLAGS; do
19931     for word2 in -Wno-$warning -W$warning; do
19932       if test "$word1" = "$word2"; then
19933         ac_var_match_word="yes"
19934       fi
19935     done
19936   done
19937
19938     if test "$ac_var_match_word" = "no"; then
19939       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19940     fi
19941   done
19942     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19943   squeeze tmp_CFLAGS
19944
19945         fi
19946         ;;
19947         #
19948     esac
19949     #
19950     squeeze tmp_CPPFLAGS
19951     squeeze tmp_CFLAGS
19952     #
19953     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
19954       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
19955 printf %s "checking if compiler accepts strict warning options... " >&6; }
19956       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
19957       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
19958       squeeze CPPFLAGS
19959       squeeze CFLAGS
19960
19961     tmp_compiler_works="unknown"
19962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19963 /* end confdefs.h.  */
19964
19965
19966
19967 int main (void)
19968 {
19969
19970       int i = 1;
19971       return i;
19972
19973  ;
19974  return 0;
19975 }
19976
19977 _ACEOF
19978 if ac_fn_c_try_compile "$LINENO"
19979 then :
19980
19981     tmp_compiler_works="yes"
19982
19983 else $as_nop
19984
19985     tmp_compiler_works="no"
19986     echo " " >&6
19987     sed 's/^/cc-fail: /' conftest.err >&6
19988     echo " " >&6
19989
19990 fi
19991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19992     if test "$tmp_compiler_works" = "yes"; then
19993     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h.  */
19995
19996
19997
19998 int main (void)
19999 {
20000
20001         int i = 1;
20002         return i;
20003
20004  ;
20005  return 0;
20006 }
20007
20008 _ACEOF
20009 if ac_fn_c_try_link "$LINENO"
20010 then :
20011
20012       tmp_compiler_works="yes"
20013
20014 else $as_nop
20015
20016       tmp_compiler_works="no"
20017       echo " " >&6
20018       sed 's/^/link-fail: /' conftest.err >&6
20019       echo " " >&6
20020
20021 fi
20022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20023     conftest$ac_exeext conftest.$ac_ext
20024   fi
20025     if test "x$cross_compiling" != "xyes" &&
20026     test "$tmp_compiler_works" = "yes"; then
20027
20028    case $host_os in
20029      darwin*)
20030       if test "$cross_compiling" = yes
20031 then :
20032   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20033 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20034 as_fn_error $? "cannot run test program while cross compiling
20035 See \`config.log' for more details" "$LINENO" 5; }
20036 else $as_nop
20037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20038 /* end confdefs.h.  */
20039
20040
20041 #       ifdef __STDC__
20042 #         include <stdlib.h>
20043 #       endif
20044
20045 int main (void)
20046 {
20047
20048         int i = 0;
20049         exit(i);
20050
20051  ;
20052  return 0;
20053 }
20054
20055 _ACEOF
20056 if ac_fn_c_try_run "$LINENO"
20057 then :
20058   tmp_compiler_works="yes"
20059
20060 else $as_nop
20061   tmp_compiler_works="no"
20062       echo " " >&6
20063       echo "run-fail: test program exited with status $ac_status" >&6
20064       echo " " >&6
20065
20066 fi
20067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20068   conftest.$ac_objext conftest.beam conftest.$ac_ext
20069 fi
20070
20071      ;;
20072      *)
20073       old=$LD_LIBRARY_PATH
20074       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20075       export LD_LIBRARY_PATH
20076       if test "$cross_compiling" = yes
20077 then :
20078   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20079 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20080 as_fn_error $? "cannot run test program while cross compiling
20081 See \`config.log' for more details" "$LINENO" 5; }
20082 else $as_nop
20083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20084 /* end confdefs.h.  */
20085
20086
20087 #       ifdef __STDC__
20088 #         include <stdlib.h>
20089 #       endif
20090
20091 int main (void)
20092 {
20093
20094         int i = 0;
20095         exit(i);
20096
20097  ;
20098  return 0;
20099 }
20100
20101 _ACEOF
20102 if ac_fn_c_try_run "$LINENO"
20103 then :
20104   tmp_compiler_works="yes"
20105
20106 else $as_nop
20107   tmp_compiler_works="no"
20108       echo " " >&6
20109       echo "run-fail: test program exited with status $ac_status" >&6
20110       echo " " >&6
20111
20112 fi
20113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20114   conftest.$ac_objext conftest.beam conftest.$ac_ext
20115 fi
20116
20117       LD_LIBRARY_PATH=$old # restore
20118      ;;
20119    esac
20120
20121   fi
20122     if test "$tmp_compiler_works" = "yes"; then
20123
20124         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20125 printf "%s\n" "yes" >&6; }
20126         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20127 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
20128
20129   else
20130
20131         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20132 printf "%s\n" "no" >&6; }
20133         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20134 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
20135                 CPPFLAGS="$tmp_save_CPPFLAGS"
20136         CFLAGS="$tmp_save_CFLAGS"
20137
20138   fi
20139
20140     fi
20141     #
20142   fi
20143
20144
20145 if test "$compiler_id" = "INTEL_UNIX_C"; then
20146   #
20147   if test "$compiler_num" -ge "1000"; then
20148         CFLAGS="$CFLAGS -shared-intel"
20149   elif test "$compiler_num" -ge "900"; then
20150         CFLAGS="$CFLAGS -i-dynamic"
20151   fi
20152   #
20153 fi
20154
20155 CURL_CFLAG_EXTRAS=""
20156 if test X"$want_werror" = Xyes; then
20157   CURL_CFLAG_EXTRAS="-Werror"
20158   if test "$compiler_id" = "GNU_C"; then
20159             if test "$compiler_num" -ge "500"; then
20160       CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
20161     fi
20162   fi
20163 fi
20164
20165
20166
20167   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
20168 printf %s "checking if compiler halts on compilation errors... " >&6; }
20169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170 /* end confdefs.h.  */
20171
20172
20173
20174 int main (void)
20175 {
20176
20177       force compilation error
20178
20179  ;
20180  return 0;
20181 }
20182
20183 _ACEOF
20184 if ac_fn_c_try_compile "$LINENO"
20185 then :
20186
20187     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20188 printf "%s\n" "no" >&6; }
20189     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
20190
20191 else $as_nop
20192
20193     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20194 printf "%s\n" "yes" >&6; }
20195
20196 fi
20197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20198
20199
20200     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
20201 printf %s "checking if compiler halts on negative sized arrays... " >&6; }
20202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h.  */
20204
20205
20206       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
20207
20208 int main (void)
20209 {
20210
20211       bad_t dummy;
20212
20213  ;
20214  return 0;
20215 }
20216
20217 _ACEOF
20218 if ac_fn_c_try_compile "$LINENO"
20219 then :
20220
20221     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20222 printf "%s\n" "no" >&6; }
20223     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
20224
20225 else $as_nop
20226
20227     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20228 printf "%s\n" "yes" >&6; }
20229
20230 fi
20231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20232
20233
20234     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
20235 printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
20236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237 /* end confdefs.h.  */
20238
20239
20240 #     include <stdlib.h>
20241       int rand(int n);
20242       int rand(int n)
20243       {
20244         if(n)
20245           return ++n;
20246         else
20247           return n;
20248       }
20249
20250 int main (void)
20251 {
20252
20253       int i[2]={0,0};
20254       int j = rand(i[0]);
20255       if(j)
20256         return j;
20257
20258  ;
20259  return 0;
20260 }
20261
20262 _ACEOF
20263 if ac_fn_c_try_compile "$LINENO"
20264 then :
20265
20266     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20267 printf "%s\n" "no" >&6; }
20268     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
20269
20270 else $as_nop
20271
20272     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20273 printf "%s\n" "yes" >&6; }
20274
20275 fi
20276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20277
20278
20279       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
20280 printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
20281   supports_symbol_hiding="no"
20282   symbol_hiding_CFLAGS=""
20283   symbol_hiding_EXTERN=""
20284   tmp_CFLAGS=""
20285   tmp_EXTERN=""
20286   case "$compiler_id" in
20287     CLANG)
20288             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20289       tmp_CFLAGS="-fvisibility=hidden"
20290       supports_symbol_hiding="yes"
20291       ;;
20292     GNU_C)
20293             if test "$compiler_num" -ge "304"; then
20294         if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
20295           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20296           tmp_CFLAGS="-fvisibility=hidden"
20297           supports_symbol_hiding="yes"
20298         fi
20299       fi
20300       ;;
20301     INTEL_UNIX_C)
20302             if test "$compiler_num" -ge "900"; then
20303         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
20304           tmp_save_CFLAGS="$CFLAGS"
20305           CFLAGS="$CFLAGS -fvisibility=hidden"
20306           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20307 /* end confdefs.h.  */
20308
20309
20310 #             include <stdio.h>
20311
20312 int main (void)
20313 {
20314
20315               printf("icc fvisibility bug test");
20316
20317  ;
20318  return 0;
20319 }
20320
20321 _ACEOF
20322 if ac_fn_c_try_link "$LINENO"
20323 then :
20324
20325             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20326             tmp_CFLAGS="-fvisibility=hidden"
20327             supports_symbol_hiding="yes"
20328
20329 fi
20330 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20331     conftest$ac_exeext conftest.$ac_ext
20332           CFLAGS="$tmp_save_CFLAGS"
20333         fi
20334       fi
20335       ;;
20336     SUNPRO_C)
20337       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
20338         tmp_EXTERN="__global"
20339         tmp_CFLAGS="-xldscope=hidden"
20340         supports_symbol_hiding="yes"
20341       fi
20342       ;;
20343   esac
20344   if test "$supports_symbol_hiding" = "yes"; then
20345     tmp_save_CFLAGS="$CFLAGS"
20346     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20347     squeeze CFLAGS
20348     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20349 /* end confdefs.h.  */
20350
20351
20352         $tmp_EXTERN char *dummy(char *buff);
20353         char *dummy(char *buff)
20354         {
20355          if(buff)
20356            return ++buff;
20357          else
20358            return buff;
20359         }
20360
20361 int main (void)
20362 {
20363
20364         char b[16];
20365         char *r = dummy(&b[0]);
20366         if(r)
20367           return (int)*r;
20368
20369  ;
20370  return 0;
20371 }
20372
20373 _ACEOF
20374 if ac_fn_c_try_compile "$LINENO"
20375 then :
20376
20377       supports_symbol_hiding="yes"
20378       if test -f conftest.err; then
20379         grep 'visibility' conftest.err >/dev/null
20380         if test "$?" -eq "0"; then
20381           supports_symbol_hiding="no"
20382         fi
20383       fi
20384
20385 else $as_nop
20386
20387       supports_symbol_hiding="no"
20388       echo " " >&6
20389       sed 's/^/cc-src: /' conftest.$ac_ext >&6
20390       sed 's/^/cc-err: /' conftest.err >&6
20391       echo " " >&6
20392
20393 fi
20394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20395     CFLAGS="$tmp_save_CFLAGS"
20396   fi
20397   if test "$supports_symbol_hiding" = "yes"; then
20398     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20399 printf "%s\n" "yes" >&6; }
20400     symbol_hiding_CFLAGS="$tmp_CFLAGS"
20401     symbol_hiding_EXTERN="$tmp_EXTERN"
20402   else
20403     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20404 printf "%s\n" "no" >&6; }
20405   fi
20406
20407
20408
20409       supports_curldebug="unknown"
20410   if test "$want_curldebug" = "yes"; then
20411     if test "x$enable_shared" != "xno" &&
20412       test "x$enable_shared" != "xyes"; then
20413       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
20414 printf "%s\n" "$as_me: WARNING: unknown enable_shared setting." >&2;}
20415       supports_curldebug="no"
20416     fi
20417     if test "x$enable_static" != "xno" &&
20418       test "x$enable_static" != "xyes"; then
20419       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
20420 printf "%s\n" "$as_me: WARNING: unknown enable_static setting." >&2;}
20421       supports_curldebug="no"
20422     fi
20423     if test "$supports_curldebug" != "no"; then
20424       if test "$enable_shared" = "yes" &&
20425         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
20426         supports_curldebug="no"
20427         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
20428 printf "%s\n" "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
20429       fi
20430     fi
20431   fi
20432   #
20433   if test "$want_curldebug" = "yes"; then
20434     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
20435 printf %s "checking if curl debug memory tracking can be enabled... " >&6; }
20436     test "$supports_curldebug" = "no" || supports_curldebug="yes"
20437     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
20438 printf "%s\n" "$supports_curldebug" >&6; }
20439     if test "$supports_curldebug" = "no"; then
20440       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
20441 printf "%s\n" "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
20442       want_curldebug="no"
20443     fi
20444   fi
20445
20446  if test x$want_curldebug = xyes; then
20447   CURLDEBUG_TRUE=
20448   CURLDEBUG_FALSE='#'
20449 else
20450   CURLDEBUG_TRUE='#'
20451   CURLDEBUG_FALSE=
20452 fi
20453
20454
20455 supports_unittests=yes
20456 # cross-compilation of unit tests static library/programs fails when
20457 # libcurl shared library is built. This might be due to a libtool or
20458 # automake issue. In this case we disable unit tests.
20459 if test "x$cross_compiling" != "xno" &&
20460    test "x$enable_shared" != "xno"; then
20461   supports_unittests=no
20462 fi
20463
20464 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
20465 # a problem related with OpenSSL headers and library versions not matching.
20466 # Disable unit tests while time to further investigate this is found.
20467 case $host in
20468   mips-sgi-irix6.5)
20469     if test "$compiler_id" = "GNU_C"; then
20470       supports_unittests=no
20471     fi
20472     ;;
20473 esac
20474
20475 # All AIX autobuilds fails unit tests linking against unittests library
20476 # due to unittests library being built with no symbols or members. Libtool ?
20477 # Disable unit tests while time to further investigate this is found.
20478 case $host_os in
20479   aix*)
20480     supports_unittests=no
20481     ;;
20482 esac
20483
20484 if test "x$want_debug" = "xyes" &&
20485    test "x$supports_unittests" = "xyes"; then
20486   want_unittests=yes
20487 else
20488   want_unittests=no
20489 fi
20490  if test x$want_unittests = xyes; then
20491   BUILD_UNITTESTS_TRUE=
20492   BUILD_UNITTESTS_FALSE='#'
20493 else
20494   BUILD_UNITTESTS_TRUE='#'
20495   BUILD_UNITTESTS_FALSE=
20496 fi
20497
20498
20499 # For original MinGW (ie not MinGW-w64) define the Windows minimum supported OS
20500 # version to Windows XP (0x501) if it hasn't already been defined by the user.
20501 # Without this override original MinGW defaults the version to Windows NT 4.0.
20502 # Note original MinGW sets _WIN32_WINNT if not defined to whatever WINVER is.
20503 case $host in
20504   *-*-mingw32*)
20505     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if MinGW minimum supported OS should be set to XP" >&5
20506 printf %s "checking if MinGW minimum supported OS should be set to XP... " >&6; }
20507     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20508 /* end confdefs.h.  */
20509
20510
20511 #include <_mingw.h>
20512
20513 int main (void)
20514 {
20515
20516 #if defined(__MINGW64_VERSION_MAJOR) || \
20517     defined(WINVER) || \
20518     defined(_WIN32_WINNT)
20519 #error
20520 #endif
20521
20522  ;
20523  return 0;
20524 }
20525
20526 _ACEOF
20527 if ac_fn_c_try_compile "$LINENO"
20528 then :
20529
20530       CPPFLAGS="$CPPFLAGS -DWINVER=0x501"
20531       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20532 printf "%s\n" "yes" >&6; }
20533
20534 else $as_nop
20535
20536       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20537 printf "%s\n" "no" >&6; }
20538
20539 fi
20540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20541     ;;
20542 esac
20543
20544 # Detect original MinGW (not MinGW-w64)
20545 curl_mingw_original=no
20546 case $host in
20547   *-*-mingw32*)
20548     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking using original MinGW (not MinGW-w64)" >&5
20549 printf %s "checking using original MinGW (not MinGW-w64)... " >&6; }
20550     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20551 /* end confdefs.h.  */
20552
20553
20554 #include <_mingw.h>
20555
20556 int main (void)
20557 {
20558
20559 #if defined(__MINGW64_VERSION_MAJOR)
20560 #error
20561 #endif
20562
20563  ;
20564  return 0;
20565 }
20566
20567 _ACEOF
20568 if ac_fn_c_try_compile "$LINENO"
20569 then :
20570
20571       curl_mingw_original=yes
20572       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20573 printf "%s\n" "yes" >&6; }
20574
20575 else $as_nop
20576
20577       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20578 printf "%s\n" "no" >&6; }
20579
20580 fi
20581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20582     ;;
20583 esac
20584
20585
20586
20587
20588   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20589 printf %s "checking for windows.h... " >&6; }
20590 if test ${curl_cv_header_windows_h+y}
20591 then :
20592   printf %s "(cached) " >&6
20593 else $as_nop
20594
20595     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h.  */
20597
20598
20599 #undef inline
20600 #ifndef WIN32_LEAN_AND_MEAN
20601 #define WIN32_LEAN_AND_MEAN
20602 #endif
20603 #include <windows.h>
20604
20605 int main (void)
20606 {
20607
20608 #if defined(__CYGWIN__) || defined(__CEGCC__)
20609         HAVE_WINDOWS_H shall not be defined.
20610 #else
20611         int dummy=2*WINVER;
20612 #endif
20613
20614  ;
20615  return 0;
20616 }
20617
20618 _ACEOF
20619 if ac_fn_c_try_compile "$LINENO"
20620 then :
20621
20622       curl_cv_header_windows_h="yes"
20623
20624 else $as_nop
20625
20626       curl_cv_header_windows_h="no"
20627
20628 fi
20629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20630
20631 fi
20632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20633 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
20634   case "$curl_cv_header_windows_h" in
20635     yes)
20636
20637 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
20638
20639       ;;
20640   esac
20641
20642
20643     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
20644 printf %s "checking whether build target is a native Windows one... " >&6; }
20645 if test ${curl_cv_native_windows+y}
20646 then :
20647   printf %s "(cached) " >&6
20648 else $as_nop
20649
20650     if test "$curl_cv_header_windows_h" = "no"; then
20651       curl_cv_native_windows="no"
20652     else
20653       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20654 /* end confdefs.h.  */
20655
20656
20657
20658 int main (void)
20659 {
20660
20661 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
20662    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
20663           int dummy=1;
20664 #else
20665           Not a native Windows build target.
20666 #endif
20667
20668  ;
20669  return 0;
20670 }
20671
20672 _ACEOF
20673 if ac_fn_c_try_compile "$LINENO"
20674 then :
20675
20676         curl_cv_native_windows="yes"
20677
20678 else $as_nop
20679
20680         curl_cv_native_windows="no"
20681
20682 fi
20683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20684     fi
20685
20686 fi
20687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
20688 printf "%s\n" "$curl_cv_native_windows" >&6; }
20689    if test "x$curl_cv_native_windows" = xyes; then
20690   DOING_NATIVE_WINDOWS_TRUE=
20691   DOING_NATIVE_WINDOWS_FALSE='#'
20692 else
20693   DOING_NATIVE_WINDOWS_TRUE='#'
20694   DOING_NATIVE_WINDOWS_FALSE=
20695 fi
20696
20697
20698 case X-"$curl_cv_native_windows" in
20699   X-yes)
20700
20701     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20702 printf %s "checking for winsock2.h... " >&6; }
20703 if test ${curl_cv_header_winsock2_h+y}
20704 then :
20705   printf %s "(cached) " >&6
20706 else $as_nop
20707
20708     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20709 /* end confdefs.h.  */
20710
20711
20712 #undef inline
20713 #ifndef WIN32_LEAN_AND_MEAN
20714 #define WIN32_LEAN_AND_MEAN
20715 #endif
20716 #include <windows.h>
20717 #include <winsock2.h>
20718
20719 int main (void)
20720 {
20721
20722 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20723         HAVE_WINSOCK2_H shall not be defined.
20724 #else
20725         int dummy=2*IPPROTO_ESP;
20726 #endif
20727
20728  ;
20729  return 0;
20730 }
20731
20732 _ACEOF
20733 if ac_fn_c_try_compile "$LINENO"
20734 then :
20735
20736       curl_cv_header_winsock2_h="yes"
20737
20738 else $as_nop
20739
20740       curl_cv_header_winsock2_h="no"
20741
20742 fi
20743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20744
20745 fi
20746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20747 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
20748   case "$curl_cv_header_winsock2_h" in
20749     yes)
20750
20751 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
20752
20753       ;;
20754   esac
20755
20756
20757     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
20758 printf %s "checking for ws2tcpip.h... " >&6; }
20759 if test ${curl_cv_header_ws2tcpip_h+y}
20760 then :
20761   printf %s "(cached) " >&6
20762 else $as_nop
20763
20764     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765 /* end confdefs.h.  */
20766
20767
20768 #undef inline
20769 #ifndef WIN32_LEAN_AND_MEAN
20770 #define WIN32_LEAN_AND_MEAN
20771 #endif
20772 #include <windows.h>
20773 #include <winsock2.h>
20774 #include <ws2tcpip.h>
20775
20776 int main (void)
20777 {
20778
20779 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20780         HAVE_WS2TCPIP_H shall not be defined.
20781 #else
20782         int dummy=2*IP_PKTINFO;
20783 #endif
20784
20785  ;
20786  return 0;
20787 }
20788
20789 _ACEOF
20790 if ac_fn_c_try_compile "$LINENO"
20791 then :
20792
20793       curl_cv_header_ws2tcpip_h="yes"
20794
20795 else $as_nop
20796
20797       curl_cv_header_ws2tcpip_h="no"
20798
20799 fi
20800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20801
20802 fi
20803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
20804 printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
20805   case "$curl_cv_header_ws2tcpip_h" in
20806     yes)
20807
20808 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
20809
20810       ;;
20811   esac
20812
20813
20814     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wincrypt.h" >&5
20815 printf %s "checking for wincrypt.h... " >&6; }
20816 if test ${curl_cv_header_wincrypt_h+y}
20817 then :
20818   printf %s "(cached) " >&6
20819 else $as_nop
20820
20821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20822 /* end confdefs.h.  */
20823
20824
20825 #undef inline
20826 #ifndef WIN32_LEAN_AND_MEAN
20827 #define WIN32_LEAN_AND_MEAN
20828 #endif
20829 #include <windows.h>
20830 #include <wincrypt.h>
20831
20832 int main (void)
20833 {
20834
20835         int dummy=2*PROV_RSA_FULL;
20836
20837  ;
20838  return 0;
20839 }
20840
20841 _ACEOF
20842 if ac_fn_c_try_compile "$LINENO"
20843 then :
20844
20845       curl_cv_header_wincrypt_h="yes"
20846
20847 else $as_nop
20848
20849       curl_cv_header_wincrypt_h="no"
20850
20851 fi
20852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20853
20854 fi
20855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_wincrypt_h" >&5
20856 printf "%s\n" "$curl_cv_header_wincrypt_h" >&6; }
20857   case "$curl_cv_header_wincrypt_h" in
20858     yes)
20859
20860 printf "%s\n" "#define HAVE_WINCRYPT_H 1" >>confdefs.h
20861
20862       ;;
20863   esac
20864
20865
20866     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
20867 printf %s "checking for winldap.h... " >&6; }
20868 if test ${curl_cv_header_winldap_h+y}
20869 then :
20870   printf %s "(cached) " >&6
20871 else $as_nop
20872
20873     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874 /* end confdefs.h.  */
20875
20876
20877 #undef inline
20878 #ifdef HAVE_WINDOWS_H
20879 #ifndef WIN32_LEAN_AND_MEAN
20880 #define WIN32_LEAN_AND_MEAN
20881 #endif
20882 #include <windows.h>
20883 #endif
20884 #include <winldap.h>
20885
20886 int main (void)
20887 {
20888
20889 #if defined(__CYGWIN__) || defined(__CEGCC__)
20890         HAVE_WINLDAP_H shall not be defined.
20891 #else
20892         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20893         ULONG res = ldap_unbind(ldp);
20894 #endif
20895
20896  ;
20897  return 0;
20898 }
20899
20900 _ACEOF
20901 if ac_fn_c_try_compile "$LINENO"
20902 then :
20903
20904       curl_cv_header_winldap_h="yes"
20905
20906 else $as_nop
20907
20908       curl_cv_header_winldap_h="no"
20909
20910 fi
20911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20912
20913 fi
20914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
20915 printf "%s\n" "$curl_cv_header_winldap_h" >&6; }
20916   case "$curl_cv_header_winldap_h" in
20917     yes)
20918
20919 printf "%s\n" "#define HAVE_WINLDAP_H 1" >>confdefs.h
20920
20921       ;;
20922   esac
20923
20924     ;;
20925   *)
20926     curl_cv_header_winsock2_h="no"
20927     curl_cv_header_ws2tcpip_h="no"
20928     curl_cv_header_wincrypt_h="no"
20929     curl_cv_header_winldap_h="no"
20930     ;;
20931 esac
20932
20933     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
20934 printf %s "checking whether build target supports WIN32 file API... " >&6; }
20935   curl_win32_file_api="no"
20936   if test "$curl_cv_header_windows_h" = "yes"; then
20937     if test x"$enable_largefile" != "xno"; then
20938       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939 /* end confdefs.h.  */
20940
20941
20942
20943 int main (void)
20944 {
20945
20946 #if !defined(_WIN32_WCE) && \
20947     (defined(__MINGW32__) || \
20948     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
20949           int dummy=1;
20950 #else
20951           WIN32 large file API not supported.
20952 #endif
20953
20954  ;
20955  return 0;
20956 }
20957
20958 _ACEOF
20959 if ac_fn_c_try_compile "$LINENO"
20960 then :
20961
20962         curl_win32_file_api="win32_large_files"
20963
20964 fi
20965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20966     fi
20967     if test "$curl_win32_file_api" = "no"; then
20968       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20969 /* end confdefs.h.  */
20970
20971
20972
20973 int main (void)
20974 {
20975
20976 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
20977           int dummy=1;
20978 #else
20979           WIN32 small file API not supported.
20980 #endif
20981
20982  ;
20983  return 0;
20984 }
20985
20986 _ACEOF
20987 if ac_fn_c_try_compile "$LINENO"
20988 then :
20989
20990         curl_win32_file_api="win32_small_files"
20991
20992 fi
20993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20994     fi
20995   fi
20996   case "$curl_win32_file_api" in
20997     win32_large_files)
20998       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
20999 printf "%s\n" "yes (large file enabled)" >&6; }
21000
21001 printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h
21002
21003       USE_WIN32_LARGE_FILES=1
21004
21005       ;;
21006     win32_small_files)
21007       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
21008 printf "%s\n" "yes (large file disabled)" >&6; }
21009
21010 printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h
21011
21012       USE_WIN32_SMALL_FILES=1
21013
21014       ;;
21015     *)
21016       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21017 printf "%s\n" "no" >&6; }
21018       ;;
21019   esac
21020
21021
21022     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 crypto API" >&5
21023 printf %s "checking whether build target supports WIN32 crypto API... " >&6; }
21024   curl_win32_crypto_api="no"
21025   if test "$curl_cv_header_wincrypt_h" = "yes"; then
21026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h.  */
21028
21029
21030 #undef inline
21031 #ifndef WIN32_LEAN_AND_MEAN
21032 #define WIN32_LEAN_AND_MEAN
21033 #endif
21034 #include <windows.h>
21035 #include <wincrypt.h>
21036
21037 int main (void)
21038 {
21039
21040         HCRYPTPROV hCryptProv;
21041         if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
21042                                CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
21043           CryptReleaseContext(hCryptProv, 0);
21044         }
21045
21046  ;
21047  return 0;
21048 }
21049
21050 _ACEOF
21051 if ac_fn_c_try_compile "$LINENO"
21052 then :
21053
21054       curl_win32_crypto_api="yes"
21055
21056 fi
21057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21058   fi
21059   case "$curl_win32_crypto_api" in
21060     yes)
21061       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21062 printf "%s\n" "yes" >&6; }
21063
21064 printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h
21065
21066       USE_WIN32_CRYPTO=1
21067
21068       ;;
21069     *)
21070       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21071 printf "%s\n" "no" >&6; }
21072       ;;
21073   esac
21074
21075
21076
21077
21078   tst_cflags="no"
21079   case $host_os in
21080     darwin*)
21081       tst_cflags="yes"
21082       ;;
21083   esac
21084
21085   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5
21086 printf %s "checking for good-to-use Darwin CFLAGS... " >&6; }
21087   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
21088 printf "%s\n" "$tst_cflags" >&6; };
21089
21090   if test "$tst_cflags" = "yes"; then
21091     old_CFLAGS=$CFLAGS
21092     CFLAGS="$CFLAGS -Werror=partial-availability"
21093     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
21094 printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; }
21095     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21096 /* end confdefs.h.  */
21097
21098 int main (void)
21099 {
21100
21101  ;
21102  return 0;
21103 }
21104 _ACEOF
21105 if ac_fn_c_try_compile "$LINENO"
21106 then :
21107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21108 printf "%s\n" "yes" >&6; }
21109 else $as_nop
21110   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21111 printf "%s\n" "no" >&6; }
21112       CFLAGS=$old_CFLAGS
21113 fi
21114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21115   fi
21116
21117
21118
21119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation and SystemConfiguration framework" >&5
21120 printf %s "checking whether to link macOS CoreFoundation and SystemConfiguration framework... " >&6; }
21121 case $host_os in
21122   darwin*)
21123     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21124 /* end confdefs.h.  */
21125
21126
21127 #include <TargetConditionals.h>
21128
21129 int main (void)
21130 {
21131
21132 #if (TARGET_OS_OSX)
21133       return 0;
21134 #else
21135 #error Not a macOS
21136 #endif
21137
21138  ;
21139  return 0;
21140 }
21141
21142 _ACEOF
21143 if ac_fn_c_try_compile "$LINENO"
21144 then :
21145
21146       build_for_macos="yes"
21147
21148 else $as_nop
21149
21150       build_for_macos="no"
21151
21152 fi
21153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21154     if test "x$build_for_macos" != xno; then
21155       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21156 printf "%s\n" "yes" >&6; }
21157       LDFLAGS="$LDFLAGS -framework CoreFoundation -framework SystemConfiguration"
21158     else
21159       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21160 printf "%s\n" "no" >&6; }
21161     fi
21162     ;;
21163   *)
21164     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21165 printf "%s\n" "no" >&6; }
21166 esac
21167
21168
21169   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
21170 printf %s "checking to see if the compiler supports __builtin_available()... " >&6; }
21171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21172 /* end confdefs.h.  */
21173
21174
21175 #include <stdlib.h>
21176
21177 int main (void)
21178 {
21179
21180       if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
21181
21182  ;
21183  return 0;
21184 }
21185
21186 _ACEOF
21187 if ac_fn_c_try_compile "$LINENO"
21188 then :
21189
21190     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21191 printf "%s\n" "yes" >&6; }
21192
21193 printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h
21194
21195
21196 else $as_nop
21197
21198     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21199 printf "%s\n" "no" >&6; }
21200
21201 fi
21202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21203
21204
21205  if test "$curl_cv_native_windows" = "yes"; then
21206   OS_WINDOWS_TRUE=
21207   OS_WINDOWS_FALSE='#'
21208 else
21209   OS_WINDOWS_TRUE='#'
21210   OS_WINDOWS_FALSE=
21211 fi
21212
21213
21214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
21215 printf %s "checking whether to support http... " >&6; }
21216 # Check whether --enable-http was given.
21217 if test ${enable_http+y}
21218 then :
21219   enableval=$enable_http;  case "$enableval" in
21220   no)
21221        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21222 printf "%s\n" "no" >&6; }
21223
21224 printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h
21225
21226        disable_http="yes"
21227        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
21228 printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
21229        CURL_DISABLE_HTTP=1
21230
21231
21232 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21233
21234        CURL_DISABLE_RTSP=1
21235
21236
21237 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
21238
21239
21240 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
21241
21242        curl_h1_msg="no      (--enable-http, --with-hyper)"
21243        curl_altsvc_msg="no";
21244        curl_hsts_msg="no      (--enable-hsts)";
21245        enable_altsvc="no"
21246        hsts="no"
21247        ;;
21248   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21249 printf "%s\n" "yes" >&6; }
21250        ;;
21251   esac
21252 else $as_nop
21253   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21254 printf "%s\n" "yes" >&6; }
21255
21256 fi
21257
21258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
21259 printf %s "checking whether to support ftp... " >&6; }
21260 # Check whether --enable-ftp was given.
21261 if test ${enable_ftp+y}
21262 then :
21263   enableval=$enable_ftp;  case "$enableval" in
21264   no)
21265        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21266 printf "%s\n" "no" >&6; }
21267
21268 printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h
21269
21270        CURL_DISABLE_FTP=1
21271
21272        ;;
21273   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21274 printf "%s\n" "yes" >&6; }
21275        ;;
21276   esac
21277 else $as_nop
21278   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21279 printf "%s\n" "yes" >&6; }
21280
21281 fi
21282
21283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
21284 printf %s "checking whether to support file... " >&6; }
21285 # Check whether --enable-file was given.
21286 if test ${enable_file+y}
21287 then :
21288   enableval=$enable_file;  case "$enableval" in
21289   no)
21290        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21291 printf "%s\n" "no" >&6; }
21292
21293 printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h
21294
21295        CURL_DISABLE_FILE=1
21296
21297        ;;
21298   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21299 printf "%s\n" "yes" >&6; }
21300        ;;
21301   esac
21302 else $as_nop
21303   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21304 printf "%s\n" "yes" >&6; }
21305
21306 fi
21307
21308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
21309 printf %s "checking whether to support ldap... " >&6; }
21310 # Check whether --enable-ldap was given.
21311 if test ${enable_ldap+y}
21312 then :
21313   enableval=$enable_ldap;  case "$enableval" in
21314   no)
21315        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21316 printf "%s\n" "no" >&6; }
21317
21318 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21319
21320        CURL_DISABLE_LDAP=1
21321
21322        ;;
21323   yes)
21324        ldap_askedfor="yes"
21325        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21326 printf "%s\n" "yes" >&6; }
21327        ;;
21328   *)
21329        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21330 printf "%s\n" "yes" >&6; }
21331        ;;
21332   esac
21333 else $as_nop
21334
21335        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21336 printf "%s\n" "yes" >&6; }
21337
21338 fi
21339
21340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
21341 printf %s "checking whether to support ldaps... " >&6; }
21342 # Check whether --enable-ldaps was given.
21343 if test ${enable_ldaps+y}
21344 then :
21345   enableval=$enable_ldaps;  case "$enableval" in
21346   no)
21347        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21348 printf "%s\n" "no" >&6; }
21349
21350 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21351
21352        CURL_DISABLE_LDAPS=1
21353
21354        ;;
21355   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
21356          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
21357 printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; }
21358
21359 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21360
21361          CURL_DISABLE_LDAPS=1
21362
21363        else
21364          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21365 printf "%s\n" "yes" >&6; }
21366
21367 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21368
21369          HAVE_LDAP_SSL=1
21370
21371        fi
21372        ;;
21373   esac
21374 else $as_nop
21375
21376        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
21377          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21378 printf "%s\n" "no" >&6; }
21379
21380 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21381
21382          CURL_DISABLE_LDAPS=1
21383
21384        else
21385          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21386 printf "%s\n" "yes" >&6; }
21387
21388 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21389
21390          HAVE_LDAP_SSL=1
21391
21392        fi
21393
21394 fi
21395
21396
21397
21398 OPT_HYPER="no"
21399
21400
21401 # Check whether --with-hyper was given.
21402 if test ${with_hyper+y}
21403 then :
21404   withval=$with_hyper; OPT_HYPER=$withval
21405 fi
21406
21407 case "$OPT_HYPER" in
21408   no)
21409         want_hyper="no"
21410     ;;
21411   yes)
21412         want_hyper="default"
21413     want_hyper_path=""
21414     ;;
21415   *)
21416         want_hyper="yes"
21417     want_hyper_path="$withval"
21418     ;;
21419 esac
21420
21421 if test X"$want_hyper" != Xno; then
21422   if test "x$disable_http" = "xyes"; then
21423     as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5
21424   fi
21425
21426     CLEANLDFLAGS="$LDFLAGS"
21427   CLEANCPPFLAGS="$CPPFLAGS"
21428   CLEANLIBS="$LIBS"
21429
21430
21431     if test -n "$PKG_CONFIG"; then
21432       PKGCONFIG="$PKG_CONFIG"
21433     else
21434       if test -n "$ac_tool_prefix"; then
21435   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21436 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21438 printf %s "checking for $ac_word... " >&6; }
21439 if test ${ac_cv_path_PKGCONFIG+y}
21440 then :
21441   printf %s "(cached) " >&6
21442 else $as_nop
21443   case $PKGCONFIG in
21444   [\\/]* | ?:[\\/]*)
21445   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21446   ;;
21447   *)
21448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21449 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21450 for as_dir in $as_dummy
21451 do
21452   IFS=$as_save_IFS
21453   case $as_dir in #(((
21454     '') as_dir=./ ;;
21455     */) ;;
21456     *) as_dir=$as_dir/ ;;
21457   esac
21458     for ac_exec_ext in '' $ac_executable_extensions; do
21459   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21460     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21461     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21462     break 2
21463   fi
21464 done
21465   done
21466 IFS=$as_save_IFS
21467
21468   ;;
21469 esac
21470 fi
21471 PKGCONFIG=$ac_cv_path_PKGCONFIG
21472 if test -n "$PKGCONFIG"; then
21473   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21474 printf "%s\n" "$PKGCONFIG" >&6; }
21475 else
21476   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21477 printf "%s\n" "no" >&6; }
21478 fi
21479
21480
21481 fi
21482 if test -z "$ac_cv_path_PKGCONFIG"; then
21483   ac_pt_PKGCONFIG=$PKGCONFIG
21484   # Extract the first word of "pkg-config", so it can be a program name with args.
21485 set dummy pkg-config; ac_word=$2
21486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21487 printf %s "checking for $ac_word... " >&6; }
21488 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
21489 then :
21490   printf %s "(cached) " >&6
21491 else $as_nop
21492   case $ac_pt_PKGCONFIG in
21493   [\\/]* | ?:[\\/]*)
21494   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21495   ;;
21496   *)
21497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21498 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21499 for as_dir in $as_dummy
21500 do
21501   IFS=$as_save_IFS
21502   case $as_dir in #(((
21503     '') as_dir=./ ;;
21504     */) ;;
21505     *) as_dir=$as_dir/ ;;
21506   esac
21507     for ac_exec_ext in '' $ac_executable_extensions; do
21508   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21509     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21510     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21511     break 2
21512   fi
21513 done
21514   done
21515 IFS=$as_save_IFS
21516
21517   ;;
21518 esac
21519 fi
21520 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21521 if test -n "$ac_pt_PKGCONFIG"; then
21522   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21523 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
21524 else
21525   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21526 printf "%s\n" "no" >&6; }
21527 fi
21528
21529   if test "x$ac_pt_PKGCONFIG" = x; then
21530     PKGCONFIG="no"
21531   else
21532     case $cross_compiling:$ac_tool_warned in
21533 yes:)
21534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21535 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21536 ac_tool_warned=yes ;;
21537 esac
21538     PKGCONFIG=$ac_pt_PKGCONFIG
21539   fi
21540 else
21541   PKGCONFIG="$ac_cv_path_PKGCONFIG"
21542 fi
21543
21544     fi
21545
21546     if test "x$PKGCONFIG" != "xno"; then
21547       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5
21548 printf %s "checking for hyper options with pkg-config... " >&6; }
21549             itexists=`
21550     if test -n "$want_hyper_path"; then
21551       PKG_CONFIG_LIBDIR="$want_hyper_path"
21552       export PKG_CONFIG_LIBDIR
21553     fi
21554          $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1`
21555
21556       if test -z "$itexists"; then
21557                         PKGCONFIG="no"
21558         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21559 printf "%s\n" "no" >&6; }
21560       else
21561         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
21562 printf "%s\n" "found" >&6; }
21563       fi
21564     fi
21565
21566
21567   if test "$PKGCONFIG" != "no" ; then
21568     LIB_HYPER=`
21569     if test -n "$want_hyper_path"; then
21570       PKG_CONFIG_LIBDIR="$want_hyper_path"
21571       export PKG_CONFIG_LIBDIR
21572     fi
21573
21574       $PKGCONFIG --libs-only-l hyper`
21575     CPP_HYPER=`
21576     if test -n "$want_hyper_path"; then
21577       PKG_CONFIG_LIBDIR="$want_hyper_path"
21578       export PKG_CONFIG_LIBDIR
21579     fi
21580        $PKGCONFIG --cflags-only-I hyper`
21581     LD_HYPER=`
21582     if test -n "$want_hyper_path"; then
21583       PKG_CONFIG_LIBDIR="$want_hyper_path"
21584       export PKG_CONFIG_LIBDIR
21585     fi
21586
21587       $PKGCONFIG --libs-only-L hyper`
21588   else
21589         LIB_HYPER="-lhyper -ldl -lpthread -lm"
21590     if test X"$want_hyper" != Xdefault; then
21591       CPP_HYPER=-I"$want_hyper_path/capi/include"
21592       LD_HYPER="-L$want_hyper_path/target/release -L$want_hyper_path/target/debug"
21593     fi
21594   fi
21595   if test -n "$LIB_HYPER"; then
21596     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5
21597 printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;}
21598     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5
21599 printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;}
21600     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5
21601 printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;}
21602
21603     LDFLAGS="$LDFLAGS $LD_HYPER"
21604     CPPFLAGS="$CPPFLAGS $CPP_HYPER"
21605     LIBS="$LIB_HYPER $LIBS"
21606
21607     if test "x$cross_compiling" != "xyes"; then
21608             DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'`
21609     fi
21610
21611     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5
21612 printf %s "checking for hyper_io_new in -lhyper... " >&6; }
21613 if test ${ac_cv_lib_hyper_hyper_io_new+y}
21614 then :
21615   printf %s "(cached) " >&6
21616 else $as_nop
21617   ac_check_lib_save_LIBS=$LIBS
21618 LIBS="-lhyper  $LIBS"
21619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21620 /* end confdefs.h.  */
21621
21622
21623 #ifdef __cplusplus
21624 extern "C"
21625 #endif
21626 char hyper_io_new ();
21627 int main (void)
21628 {
21629 return hyper_io_new ();
21630  ;
21631  return 0;
21632 }
21633 _ACEOF
21634 if ac_fn_c_try_link "$LINENO"
21635 then :
21636   ac_cv_lib_hyper_hyper_io_new=yes
21637 else $as_nop
21638   ac_cv_lib_hyper_hyper_io_new=no
21639 fi
21640 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21641     conftest$ac_exeext conftest.$ac_ext
21642 LIBS=$ac_check_lib_save_LIBS
21643 fi
21644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5
21645 printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; }
21646 if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes
21647 then :
21648
21649               for ac_header in hyper.h
21650 do :
21651   ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default"
21652 if test "x$ac_cv_header_hyper_h" = xyes
21653 then :
21654   printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h
21655  experimental="$experimental Hyper"
21656           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5
21657 printf "%s\n" "$as_me: Hyper support is experimental" >&6;}
21658           curl_h1_msg="enabled (Hyper)"
21659           curl_h2_msg=$curl_h1_msg
21660           HYPER_ENABLED=1
21661
21662 printf "%s\n" "#define USE_HYPER 1" >>confdefs.h
21663
21664           USE_HYPER=1
21665
21666           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER"
21667           export CURL_LIBRARY_PATH
21668           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5
21669 printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;}
21670 fi
21671
21672 done
21673
21674 else $as_nop
21675   for d in `echo $DIR_HYPER | $SED -e 's/:/ /'`; do
21676         if test -f "$d/libhyper.a"; then
21677           as_fn_error $? "hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md." "$LINENO" 5
21678         fi
21679       done
21680       as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5
21681
21682 fi
21683
21684   fi
21685 fi
21686
21687 if test X"$want_hyper" != Xno; then
21688   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5
21689 printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;}
21690
21691 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21692
21693   CURL_DISABLE_RTSP=1
21694
21695
21696 else
21697
21698   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
21699 printf %s "checking whether to support rtsp... " >&6; }
21700   # Check whether --enable-rtsp was given.
21701 if test ${enable_rtsp+y}
21702 then :
21703   enableval=$enable_rtsp;  case "$enableval" in
21704     no)
21705        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21706 printf "%s\n" "no" >&6; }
21707
21708 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21709
21710        CURL_DISABLE_RTSP=1
21711
21712        ;;
21713     *)
21714        if test x$CURL_DISABLE_HTTP = x1 ; then
21715          as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
21716        else
21717          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21718 printf "%s\n" "yes" >&6; }
21719          curl_rtsp_msg="enabled"
21720        fi
21721        ;;
21722     esac
21723 else $as_nop
21724   if test "x$CURL_DISABLE_HTTP" != "x1"; then
21725           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21726 printf "%s\n" "yes" >&6; }
21727           curl_rtsp_msg="enabled"
21728        else
21729           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21730 printf "%s\n" "no" >&6; }
21731        fi
21732
21733 fi
21734
21735 fi
21736
21737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
21738 printf %s "checking whether to support proxies... " >&6; }
21739 # Check whether --enable-proxy was given.
21740 if test ${enable_proxy+y}
21741 then :
21742   enableval=$enable_proxy;  case "$enableval" in
21743   no)
21744        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21745 printf "%s\n" "no" >&6; }
21746
21747 printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h
21748
21749        CURL_DISABLE_PROXY=1
21750
21751        https_proxy="no"
21752        ;;
21753   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21754 printf "%s\n" "yes" >&6; }
21755        ;;
21756   esac
21757 else $as_nop
21758   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21759 printf "%s\n" "yes" >&6; }
21760
21761 fi
21762
21763
21764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
21765 printf %s "checking whether to support dict... " >&6; }
21766 # Check whether --enable-dict was given.
21767 if test ${enable_dict+y}
21768 then :
21769   enableval=$enable_dict;  case "$enableval" in
21770   no)
21771        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21772 printf "%s\n" "no" >&6; }
21773
21774 printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h
21775
21776        CURL_DISABLE_DICT=1
21777
21778        ;;
21779   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21780 printf "%s\n" "yes" >&6; }
21781        ;;
21782   esac
21783 else $as_nop
21784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21785 printf "%s\n" "yes" >&6; }
21786
21787 fi
21788
21789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
21790 printf %s "checking whether to support telnet... " >&6; }
21791 # Check whether --enable-telnet was given.
21792 if test ${enable_telnet+y}
21793 then :
21794   enableval=$enable_telnet;  case "$enableval" in
21795   no)
21796        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21797 printf "%s\n" "no" >&6; }
21798
21799 printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h
21800
21801        CURL_DISABLE_TELNET=1
21802
21803        ;;
21804   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21805 printf "%s\n" "yes" >&6; }
21806        ;;
21807   esac
21808 else $as_nop
21809   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21810 printf "%s\n" "yes" >&6; }
21811
21812 fi
21813
21814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
21815 printf %s "checking whether to support tftp... " >&6; }
21816 # Check whether --enable-tftp was given.
21817 if test ${enable_tftp+y}
21818 then :
21819   enableval=$enable_tftp;  case "$enableval" in
21820   no)
21821        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21822 printf "%s\n" "no" >&6; }
21823
21824 printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h
21825
21826        CURL_DISABLE_TFTP=1
21827
21828        ;;
21829   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21830 printf "%s\n" "yes" >&6; }
21831        ;;
21832   esac
21833 else $as_nop
21834   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21835 printf "%s\n" "yes" >&6; }
21836
21837 fi
21838
21839
21840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
21841 printf %s "checking whether to support pop3... " >&6; }
21842 # Check whether --enable-pop3 was given.
21843 if test ${enable_pop3+y}
21844 then :
21845   enableval=$enable_pop3;  case "$enableval" in
21846   no)
21847        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21848 printf "%s\n" "no" >&6; }
21849
21850 printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h
21851
21852        CURL_DISABLE_POP3=1
21853
21854        ;;
21855   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21856 printf "%s\n" "yes" >&6; }
21857        ;;
21858   esac
21859 else $as_nop
21860   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21861 printf "%s\n" "yes" >&6; }
21862
21863 fi
21864
21865
21866
21867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
21868 printf %s "checking whether to support imap... " >&6; }
21869 # Check whether --enable-imap was given.
21870 if test ${enable_imap+y}
21871 then :
21872   enableval=$enable_imap;  case "$enableval" in
21873   no)
21874        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21875 printf "%s\n" "no" >&6; }
21876
21877 printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h
21878
21879        CURL_DISABLE_IMAP=1
21880
21881        ;;
21882   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21883 printf "%s\n" "yes" >&6; }
21884        ;;
21885   esac
21886 else $as_nop
21887   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21888 printf "%s\n" "yes" >&6; }
21889
21890 fi
21891
21892
21893
21894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
21895 printf %s "checking whether to support smb... " >&6; }
21896 # Check whether --enable-smb was given.
21897 if test ${enable_smb+y}
21898 then :
21899   enableval=$enable_smb;  case "$enableval" in
21900   no)
21901        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21902 printf "%s\n" "no" >&6; }
21903
21904 printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h
21905
21906        CURL_DISABLE_SMB=1
21907
21908        ;;
21909   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21910 printf "%s\n" "yes" >&6; }
21911        ;;
21912   esac
21913 else $as_nop
21914   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21915 printf "%s\n" "yes" >&6; }
21916
21917 fi
21918
21919
21920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
21921 printf %s "checking whether to support smtp... " >&6; }
21922 # Check whether --enable-smtp was given.
21923 if test ${enable_smtp+y}
21924 then :
21925   enableval=$enable_smtp;  case "$enableval" in
21926   no)
21927        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21928 printf "%s\n" "no" >&6; }
21929
21930 printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h
21931
21932        CURL_DISABLE_SMTP=1
21933
21934        ;;
21935   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21936 printf "%s\n" "yes" >&6; }
21937        ;;
21938   esac
21939 else $as_nop
21940   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21941 printf "%s\n" "yes" >&6; }
21942
21943 fi
21944
21945
21946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
21947 printf %s "checking whether to support gopher... " >&6; }
21948 # Check whether --enable-gopher was given.
21949 if test ${enable_gopher+y}
21950 then :
21951   enableval=$enable_gopher;  case "$enableval" in
21952   no)
21953        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21954 printf "%s\n" "no" >&6; }
21955
21956 printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
21957
21958        CURL_DISABLE_GOPHER=1
21959
21960        ;;
21961   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21962 printf "%s\n" "yes" >&6; }
21963        ;;
21964   esac
21965 else $as_nop
21966   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21967 printf "%s\n" "yes" >&6; }
21968
21969 fi
21970
21971
21972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
21973 printf %s "checking whether to support mqtt... " >&6; }
21974 # Check whether --enable-mqtt was given.
21975 if test ${enable_mqtt+y}
21976 then :
21977   enableval=$enable_mqtt;  case "$enableval" in
21978   no)
21979        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21980 printf "%s\n" "no" >&6; }
21981
21982 printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h
21983
21984        CURL_DISABLE_MQTT=1
21985
21986        ;;
21987   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21988 printf "%s\n" "yes" >&6; }
21989        ;;
21990   esac
21991 else $as_nop
21992   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21993 printf "%s\n" "no" >&6; }
21994
21995 fi
21996
21997
21998
21999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
22000 printf %s "checking whether to provide built-in manual... " >&6; }
22001 # Check whether --enable-manual was given.
22002 if test ${enable_manual+y}
22003 then :
22004   enableval=$enable_manual;  case "$enableval" in
22005   no)
22006        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22007 printf "%s\n" "no" >&6; }
22008        ;;
22009   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22010 printf "%s\n" "yes" >&6; }
22011        USE_MANUAL="1"
22012        ;;
22013   esac
22014 else $as_nop
22015   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22016 printf "%s\n" "yes" >&6; }
22017        USE_MANUAL="1"
22018
22019 fi
22020
22021
22022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
22023 printf %s "checking whether to enable generation of C code... " >&6; }
22024 # Check whether --enable-libcurl_option was given.
22025 if test ${enable_libcurl_option+y}
22026 then :
22027   enableval=$enable_libcurl_option;  case "$enableval" in
22028   no)
22029        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22030 printf "%s\n" "no" >&6; }
22031
22032 printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
22033
22034        curl_libcurl_msg="no"
22035        ;;
22036   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22037 printf "%s\n" "yes" >&6; }
22038        ;;
22039   esac
22040 else $as_nop
22041   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22042 printf "%s\n" "yes" >&6; }
22043
22044 fi
22045
22046
22047
22048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
22049 printf %s "checking whether to use libgcc... " >&6; }
22050 # Check whether --enable-libgcc was given.
22051 if test ${enable_libgcc+y}
22052 then :
22053   enableval=$enable_libgcc;  case "$enableval" in
22054   yes)
22055        LIBS="-lgcc $LIBS"
22056        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22057 printf "%s\n" "yes" >&6; }
22058        ;;
22059   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22060 printf "%s\n" "no" >&6; }
22061        ;;
22062   esac
22063 else $as_nop
22064   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22065 printf "%s\n" "no" >&6; }
22066
22067 fi
22068
22069
22070
22071   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22072 printf %s "checking if X/Open network library is required... " >&6; }
22073   tst_lib_xnet_required="no"
22074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22075 /* end confdefs.h.  */
22076
22077
22078 int main (void)
22079 {
22080 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22081   return 0;
22082 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22083   return 0;
22084 #else
22085   force compilation error
22086 #endif
22087 }
22088
22089
22090 _ACEOF
22091 if ac_fn_c_try_compile "$LINENO"
22092 then :
22093
22094     tst_lib_xnet_required="yes"
22095     LIBS="-lxnet $LIBS"
22096
22097 fi
22098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22099   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22100 printf "%s\n" "$tst_lib_xnet_required" >&6; }
22101
22102
22103 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22104 if test "x$ac_cv_func_gethostbyname" = xyes
22105 then :
22106   HAVE_GETHOSTBYNAME="1"
22107
22108 else $as_nop
22109    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22110 printf %s "checking for gethostbyname in -lnsl... " >&6; }
22111 if test ${ac_cv_lib_nsl_gethostbyname+y}
22112 then :
22113   printf %s "(cached) " >&6
22114 else $as_nop
22115   ac_check_lib_save_LIBS=$LIBS
22116 LIBS="-lnsl  $LIBS"
22117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22118 /* end confdefs.h.  */
22119
22120
22121 #ifdef __cplusplus
22122 extern "C"
22123 #endif
22124 char gethostbyname ();
22125 int main (void)
22126 {
22127 return gethostbyname ();
22128  ;
22129  return 0;
22130 }
22131 _ACEOF
22132 if ac_fn_c_try_link "$LINENO"
22133 then :
22134   ac_cv_lib_nsl_gethostbyname=yes
22135 else $as_nop
22136   ac_cv_lib_nsl_gethostbyname=no
22137 fi
22138 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22139     conftest$ac_exeext conftest.$ac_ext
22140 LIBS=$ac_check_lib_save_LIBS
22141 fi
22142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22143 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
22144 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
22145 then :
22146   HAVE_GETHOSTBYNAME="1"
22147                              LIBS="-lnsl $LIBS"
22148
22149 fi
22150
22151
22152 fi
22153
22154
22155 if test "$HAVE_GETHOSTBYNAME" != "1"
22156 then
22157     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22158 printf %s "checking for gethostbyname in -lsocket... " >&6; }
22159 if test ${ac_cv_lib_socket_gethostbyname+y}
22160 then :
22161   printf %s "(cached) " >&6
22162 else $as_nop
22163   ac_check_lib_save_LIBS=$LIBS
22164 LIBS="-lsocket  $LIBS"
22165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22166 /* end confdefs.h.  */
22167
22168
22169 #ifdef __cplusplus
22170 extern "C"
22171 #endif
22172 char gethostbyname ();
22173 int main (void)
22174 {
22175 return gethostbyname ();
22176  ;
22177  return 0;
22178 }
22179 _ACEOF
22180 if ac_fn_c_try_link "$LINENO"
22181 then :
22182   ac_cv_lib_socket_gethostbyname=yes
22183 else $as_nop
22184   ac_cv_lib_socket_gethostbyname=no
22185 fi
22186 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22187     conftest$ac_exeext conftest.$ac_ext
22188 LIBS=$ac_check_lib_save_LIBS
22189 fi
22190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22191 printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
22192 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
22193 then :
22194   HAVE_GETHOSTBYNAME="1"
22195                LIBS="-lsocket $LIBS"
22196
22197 fi
22198
22199 fi
22200
22201 if test "$HAVE_GETHOSTBYNAME" != "1"
22202 then
22203     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
22204 printf %s "checking for gethostbyname in -lwatt... " >&6; }
22205 if test ${ac_cv_lib_watt_gethostbyname+y}
22206 then :
22207   printf %s "(cached) " >&6
22208 else $as_nop
22209   ac_check_lib_save_LIBS=$LIBS
22210 LIBS="-lwatt  $LIBS"
22211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22212 /* end confdefs.h.  */
22213
22214
22215 #ifdef __cplusplus
22216 extern "C"
22217 #endif
22218 char gethostbyname ();
22219 int main (void)
22220 {
22221 return gethostbyname ();
22222  ;
22223  return 0;
22224 }
22225 _ACEOF
22226 if ac_fn_c_try_link "$LINENO"
22227 then :
22228   ac_cv_lib_watt_gethostbyname=yes
22229 else $as_nop
22230   ac_cv_lib_watt_gethostbyname=no
22231 fi
22232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22233     conftest$ac_exeext conftest.$ac_ext
22234 LIBS=$ac_check_lib_save_LIBS
22235 fi
22236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
22237 printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; }
22238 if test "x$ac_cv_lib_watt_gethostbyname" = xyes
22239 then :
22240   HAVE_GETHOSTBYNAME="1"
22241                CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
22242                LDFLAGS="-L/dev/env/WATT_ROOT/lib"
22243                LIBS="-lwatt $LIBS"
22244
22245 fi
22246
22247 fi
22248
22249 if test "$HAVE_GETHOSTBYNAME" != "1"
22250 then
22251   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
22252 printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
22253   my_ac_save_LIBS=$LIBS
22254   LIBS="-lnsl -lsocket $LIBS"
22255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22256 /* end confdefs.h.  */
22257
22258
22259
22260 int main (void)
22261 {
22262
22263       gethostbyname();
22264
22265  ;
22266  return 0;
22267 }
22268
22269 _ACEOF
22270 if ac_fn_c_try_link "$LINENO"
22271 then :
22272
22273     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22274 printf "%s\n" "yes" >&6; }
22275     HAVE_GETHOSTBYNAME="1"
22276
22277 else $as_nop
22278
22279     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22280 printf "%s\n" "no" >&6; }
22281     LIBS=$my_ac_save_LIBS
22282
22283 fi
22284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22285     conftest$ac_exeext conftest.$ac_ext
22286 fi
22287
22288 if test "$HAVE_GETHOSTBYNAME" != "1"
22289 then
22290     if test "$curl_cv_header_windows_h" = "yes"; then
22291     if test "$curl_cv_header_winsock2_h" = "yes"; then
22292       winsock_LIB="-lws2_32"
22293     fi
22294     if test ! -z "$winsock_LIB"; then
22295       my_ac_save_LIBS=$LIBS
22296       LIBS="$winsock_LIB $LIBS"
22297       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
22298 printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
22299       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22300 /* end confdefs.h.  */
22301
22302
22303 #ifdef HAVE_WINDOWS_H
22304 #ifndef WIN32_LEAN_AND_MEAN
22305 #define WIN32_LEAN_AND_MEAN
22306 #endif
22307 #include <windows.h>
22308 #ifdef HAVE_WINSOCK2_H
22309 #include <winsock2.h>
22310 #endif
22311 #endif
22312
22313 int main (void)
22314 {
22315
22316           gethostbyname("www.dummysite.com");
22317
22318  ;
22319  return 0;
22320 }
22321
22322 _ACEOF
22323 if ac_fn_c_try_link "$LINENO"
22324 then :
22325
22326         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22327 printf "%s\n" "yes" >&6; }
22328         HAVE_GETHOSTBYNAME="1"
22329
22330 else $as_nop
22331
22332         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22333 printf "%s\n" "no" >&6; }
22334         winsock_LIB=""
22335         LIBS=$my_ac_save_LIBS
22336
22337 fi
22338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22339     conftest$ac_exeext conftest.$ac_ext
22340     fi
22341   fi
22342 fi
22343
22344 if test "$HAVE_GETHOSTBYNAME" != "1"
22345 then
22346     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
22347 printf %s "checking for gethostbyname for Minix 3... " >&6; }
22348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22349 /* end confdefs.h.  */
22350
22351
22352 /* Older Minix versions may need <net/gen/netdb.h> here instead */
22353 #include <netdb.h>
22354
22355 int main (void)
22356 {
22357
22358       gethostbyname("www.dummysite.com");
22359
22360  ;
22361  return 0;
22362 }
22363
22364 _ACEOF
22365 if ac_fn_c_try_link "$LINENO"
22366 then :
22367
22368     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22369 printf "%s\n" "yes" >&6; }
22370     HAVE_GETHOSTBYNAME="1"
22371
22372 else $as_nop
22373
22374     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22375 printf "%s\n" "no" >&6; }
22376
22377 fi
22378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22379     conftest$ac_exeext conftest.$ac_ext
22380 fi
22381
22382 if test "$HAVE_GETHOSTBYNAME" != "1"
22383 then
22384     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
22385 printf %s "checking for gethostbyname for eCos... " >&6; }
22386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h.  */
22388
22389
22390 #include <stdio.h>
22391 #include <netdb.h>
22392
22393 int main (void)
22394 {
22395
22396       gethostbyname("www.dummysite.com");
22397
22398  ;
22399  return 0;
22400 }
22401
22402 _ACEOF
22403 if ac_fn_c_try_link "$LINENO"
22404 then :
22405
22406     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22407 printf "%s\n" "yes" >&6; }
22408     HAVE_GETHOSTBYNAME="1"
22409
22410 else $as_nop
22411
22412     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22413 printf "%s\n" "no" >&6; }
22414
22415 fi
22416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22417     conftest$ac_exeext conftest.$ac_ext
22418 fi
22419
22420 if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set
22421 then
22422     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
22423 printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
22424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22425 /* end confdefs.h.  */
22426
22427
22428   #define __USE_INLINE__
22429   #include <proto/bsdsocket.h>
22430   #ifdef __amigaos4__
22431   struct SocketIFace *ISocket = NULL;
22432   #else
22433   struct Library *SocketBase = NULL;
22434   #endif
22435
22436 int main (void)
22437 {
22438
22439       gethostbyname("www.dummysite.com");
22440
22441  ;
22442  return 0;
22443 }
22444
22445 _ACEOF
22446 if ac_fn_c_try_link "$LINENO"
22447 then :
22448
22449     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22450 printf "%s\n" "yes" >&6; }
22451     HAVE_GETHOSTBYNAME="1"
22452     HAVE_PROTO_BSDSOCKET_H="1"
22453
22454 printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
22455
22456     HAVE_PROTO_BSDSOCKET_H=1
22457
22458
22459 else $as_nop
22460
22461     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22462 printf "%s\n" "no" >&6; }
22463
22464 fi
22465 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22466     conftest$ac_exeext conftest.$ac_ext
22467 fi
22468
22469 if test "$HAVE_GETHOSTBYNAME" != "1"
22470 then
22471     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
22472 printf %s "checking for gethostbyname in -lnetwork... " >&6; }
22473 if test ${ac_cv_lib_network_gethostbyname+y}
22474 then :
22475   printf %s "(cached) " >&6
22476 else $as_nop
22477   ac_check_lib_save_LIBS=$LIBS
22478 LIBS="-lnetwork  $LIBS"
22479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480 /* end confdefs.h.  */
22481
22482
22483 #ifdef __cplusplus
22484 extern "C"
22485 #endif
22486 char gethostbyname ();
22487 int main (void)
22488 {
22489 return gethostbyname ();
22490  ;
22491  return 0;
22492 }
22493 _ACEOF
22494 if ac_fn_c_try_link "$LINENO"
22495 then :
22496   ac_cv_lib_network_gethostbyname=yes
22497 else $as_nop
22498   ac_cv_lib_network_gethostbyname=no
22499 fi
22500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22501     conftest$ac_exeext conftest.$ac_ext
22502 LIBS=$ac_check_lib_save_LIBS
22503 fi
22504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
22505 printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; }
22506 if test "x$ac_cv_lib_network_gethostbyname" = xyes
22507 then :
22508   HAVE_GETHOSTBYNAME="1"
22509                LIBS="-lnetwork $LIBS"
22510
22511 fi
22512
22513 fi
22514
22515 if test "$HAVE_GETHOSTBYNAME" != "1"; then
22516   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
22517 fi
22518
22519
22520 curl_includes_winsock2="\
22521 /* includes start */
22522 #ifdef HAVE_WINDOWS_H
22523 #  ifndef WIN32_LEAN_AND_MEAN
22524 #    define WIN32_LEAN_AND_MEAN
22525 #  endif
22526 #  include <windows.h>
22527 #  ifdef HAVE_WINSOCK2_H
22528 #    include <winsock2.h>
22529 #  endif
22530 #endif
22531 /* includes end */"
22532
22533   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22534 printf %s "checking for windows.h... " >&6; }
22535 if test ${curl_cv_header_windows_h+y}
22536 then :
22537   printf %s "(cached) " >&6
22538 else $as_nop
22539
22540     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22541 /* end confdefs.h.  */
22542
22543
22544 #undef inline
22545 #ifndef WIN32_LEAN_AND_MEAN
22546 #define WIN32_LEAN_AND_MEAN
22547 #endif
22548 #include <windows.h>
22549
22550 int main (void)
22551 {
22552
22553 #if defined(__CYGWIN__) || defined(__CEGCC__)
22554         HAVE_WINDOWS_H shall not be defined.
22555 #else
22556         int dummy=2*WINVER;
22557 #endif
22558
22559  ;
22560  return 0;
22561 }
22562
22563 _ACEOF
22564 if ac_fn_c_try_compile "$LINENO"
22565 then :
22566
22567       curl_cv_header_windows_h="yes"
22568
22569 else $as_nop
22570
22571       curl_cv_header_windows_h="no"
22572
22573 fi
22574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22575
22576 fi
22577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
22578 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
22579   case "$curl_cv_header_windows_h" in
22580     yes)
22581
22582 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
22583
22584       ;;
22585   esac
22586
22587
22588     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22589 printf %s "checking for winsock2.h... " >&6; }
22590 if test ${curl_cv_header_winsock2_h+y}
22591 then :
22592   printf %s "(cached) " >&6
22593 else $as_nop
22594
22595     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22596 /* end confdefs.h.  */
22597
22598
22599 #undef inline
22600 #ifndef WIN32_LEAN_AND_MEAN
22601 #define WIN32_LEAN_AND_MEAN
22602 #endif
22603 #include <windows.h>
22604 #include <winsock2.h>
22605
22606 int main (void)
22607 {
22608
22609 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22610         HAVE_WINSOCK2_H shall not be defined.
22611 #else
22612         int dummy=2*IPPROTO_ESP;
22613 #endif
22614
22615  ;
22616  return 0;
22617 }
22618
22619 _ACEOF
22620 if ac_fn_c_try_compile "$LINENO"
22621 then :
22622
22623       curl_cv_header_winsock2_h="yes"
22624
22625 else $as_nop
22626
22627       curl_cv_header_winsock2_h="no"
22628
22629 fi
22630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22631
22632 fi
22633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
22634 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
22635   case "$curl_cv_header_winsock2_h" in
22636     yes)
22637
22638 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
22639
22640       ;;
22641   esac
22642
22643
22644
22645 curl_includes_bsdsocket="\
22646 /* includes start */
22647 #if defined(HAVE_PROTO_BSDSOCKET_H)
22648 #  define __NO_NET_API
22649 #  define __USE_INLINE__
22650 #  include <proto/bsdsocket.h>
22651 #  ifdef HAVE_SYS_IOCTL_H
22652 #    include <sys/ioctl.h>
22653 #  endif
22654 #  ifdef __amigaos4__
22655 struct SocketIFace *ISocket = NULL;
22656 #  else
22657 struct Library *SocketBase = NULL;
22658 #  endif
22659 #  define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
22660 #endif
22661 /* includes end */"
22662   ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "$curl_includes_bsdsocket
22663 "
22664 if test "x$ac_cv_header_proto_bsdsocket_h" = xyes
22665 then :
22666   printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
22667
22668 fi
22669
22670
22671
22672       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
22673 printf %s "checking for connect in libraries... " >&6; }
22674   tst_connect_save_LIBS="$LIBS"
22675   tst_connect_need_LIBS="unknown"
22676   for tst_lib in '' '-lsocket' ; do
22677     if test "$tst_connect_need_LIBS" = "unknown"; then
22678       LIBS="$tst_lib $tst_connect_save_LIBS"
22679       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h.  */
22681
22682
22683           $curl_includes_winsock2
22684           $curl_includes_bsdsocket
22685           #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
22686             int connect(int, void*, int);
22687           #endif
22688
22689 int main (void)
22690 {
22691
22692           if(0 != connect(0, 0, 0))
22693             return 1;
22694
22695  ;
22696  return 0;
22697 }
22698
22699 _ACEOF
22700 if ac_fn_c_try_link "$LINENO"
22701 then :
22702
22703         tst_connect_need_LIBS="$tst_lib"
22704
22705 fi
22706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22707     conftest$ac_exeext conftest.$ac_ext
22708     fi
22709   done
22710   LIBS="$tst_connect_save_LIBS"
22711   #
22712   case X-"$tst_connect_need_LIBS" in
22713     X-unknown)
22714       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
22715 printf "%s\n" "cannot find connect" >&6; }
22716       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
22717       ;;
22718     X-)
22719       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22720 printf "%s\n" "yes" >&6; }
22721       ;;
22722     *)
22723       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
22724 printf "%s\n" "$tst_connect_need_LIBS" >&6; }
22725       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
22726       ;;
22727   esac
22728
22729
22730 CURL_NETWORK_LIBS=$LIBS
22731
22732
22733   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
22734 if test "x$ac_cv_header_sys_types_h" = xyes
22735 then :
22736   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
22737
22738 fi
22739 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
22740 if test "x$ac_cv_header_sys_time_h" = xyes
22741 then :
22742   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
22743
22744 fi
22745
22746   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
22747 printf %s "checking for monotonic clock_gettime... " >&6; }
22748   #
22749   if test "x$dontwant_rt" = "xno" ; then
22750     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22751 /* end confdefs.h.  */
22752
22753
22754 #ifdef HAVE_SYS_TYPES_H
22755 #include <sys/types.h>
22756 #endif
22757 #ifdef HAVE_SYS_TIME_H
22758 #include <sys/time.h>
22759 #endif
22760 #include <time.h>
22761
22762 int main (void)
22763 {
22764
22765         struct timespec ts;
22766         (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22767
22768  ;
22769  return 0;
22770 }
22771
22772 _ACEOF
22773 if ac_fn_c_try_compile "$LINENO"
22774 then :
22775
22776       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22777 printf "%s\n" "yes" >&6; }
22778       curl_func_clock_gettime="yes"
22779
22780 else $as_nop
22781
22782       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22783 printf "%s\n" "no" >&6; }
22784       curl_func_clock_gettime="no"
22785
22786 fi
22787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22788   fi
22789
22790
22791     #
22792   if test "$curl_func_clock_gettime" = "yes"; then
22793     #
22794     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
22795 printf %s "checking for clock_gettime in libraries... " >&6; }
22796     #
22797     curl_cv_save_LIBS="$LIBS"
22798     curl_cv_gclk_LIBS="unknown"
22799     #
22800     for x_xlibs in '' '-lrt' '-lposix4' ; do
22801       if test "$curl_cv_gclk_LIBS" = "unknown"; then
22802         if test -z "$x_xlibs"; then
22803           LIBS="$curl_cv_save_LIBS"
22804         else
22805           LIBS="$x_xlibs $curl_cv_save_LIBS"
22806         fi
22807         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22808 /* end confdefs.h.  */
22809
22810
22811 #ifdef HAVE_SYS_TYPES_H
22812 #include <sys/types.h>
22813 #endif
22814 #ifdef HAVE_SYS_TIME_H
22815 #include <sys/time.h>
22816 #endif
22817 #include <time.h>
22818
22819 int main (void)
22820 {
22821
22822             struct timespec ts;
22823             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22824
22825  ;
22826  return 0;
22827 }
22828
22829 _ACEOF
22830 if ac_fn_c_try_link "$LINENO"
22831 then :
22832
22833           curl_cv_gclk_LIBS="$x_xlibs"
22834
22835 fi
22836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22837     conftest$ac_exeext conftest.$ac_ext
22838       fi
22839     done
22840     #
22841     LIBS="$curl_cv_save_LIBS"
22842     #
22843     case X-"$curl_cv_gclk_LIBS" in
22844       X-unknown)
22845         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
22846 printf "%s\n" "cannot find clock_gettime" >&6; }
22847         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22848 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22849         curl_func_clock_gettime="no"
22850         ;;
22851       X-)
22852         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
22853 printf "%s\n" "no additional lib required" >&6; }
22854         curl_func_clock_gettime="yes"
22855         ;;
22856       *)
22857         if test -z "$curl_cv_save_LIBS"; then
22858           LIBS="$curl_cv_gclk_LIBS"
22859         else
22860           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
22861         fi
22862         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
22863 printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
22864         curl_func_clock_gettime="yes"
22865         ;;
22866     esac
22867     #
22868         if test "x$cross_compiling" != "xyes" &&
22869       test "$curl_func_clock_gettime" = "yes"; then
22870       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
22871 printf %s "checking if monotonic clock_gettime works... " >&6; }
22872
22873    case $host_os in
22874      darwin*)
22875       if test "$cross_compiling" = yes
22876 then :
22877   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22878 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22879 as_fn_error $? "cannot run test program while cross compiling
22880 See \`config.log' for more details" "$LINENO" 5; }
22881 else $as_nop
22882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h.  */
22884
22885
22886 #ifdef HAVE_STDLIB_H
22887 #include <stdlib.h>
22888 #endif
22889 #ifdef HAVE_SYS_TYPES_H
22890 #include <sys/types.h>
22891 #endif
22892 #ifdef HAVE_SYS_TIME_H
22893 #include <sys/time.h>
22894 #endif
22895 #include <time.h>
22896
22897 int main (void)
22898 {
22899
22900           struct timespec ts;
22901           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
22902             exit(0);
22903           else
22904             exit(1);
22905
22906  ;
22907  return 0;
22908 }
22909
22910 _ACEOF
22911 if ac_fn_c_try_run "$LINENO"
22912 then :
22913   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22914 printf "%s\n" "yes" >&6; }
22915
22916 else $as_nop
22917   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22918 printf "%s\n" "no" >&6; }
22919         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22920 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22921         curl_func_clock_gettime="no"
22922         LIBS="$curl_cv_save_LIBS"
22923
22924 fi
22925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22926   conftest.$ac_objext conftest.beam conftest.$ac_ext
22927 fi
22928
22929      ;;
22930      *)
22931       old=$LD_LIBRARY_PATH
22932       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
22933       export LD_LIBRARY_PATH
22934       if test "$cross_compiling" = yes
22935 then :
22936   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22937 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22938 as_fn_error $? "cannot run test program while cross compiling
22939 See \`config.log' for more details" "$LINENO" 5; }
22940 else $as_nop
22941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942 /* end confdefs.h.  */
22943
22944
22945 #ifdef HAVE_STDLIB_H
22946 #include <stdlib.h>
22947 #endif
22948 #ifdef HAVE_SYS_TYPES_H
22949 #include <sys/types.h>
22950 #endif
22951 #ifdef HAVE_SYS_TIME_H
22952 #include <sys/time.h>
22953 #endif
22954 #include <time.h>
22955
22956 int main (void)
22957 {
22958
22959           struct timespec ts;
22960           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
22961             exit(0);
22962           else
22963             exit(1);
22964
22965  ;
22966  return 0;
22967 }
22968
22969 _ACEOF
22970 if ac_fn_c_try_run "$LINENO"
22971 then :
22972   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22973 printf "%s\n" "yes" >&6; }
22974
22975 else $as_nop
22976   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22977 printf "%s\n" "no" >&6; }
22978         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22979 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22980         curl_func_clock_gettime="no"
22981         LIBS="$curl_cv_save_LIBS"
22982
22983 fi
22984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22985   conftest.$ac_objext conftest.beam conftest.$ac_ext
22986 fi
22987
22988       LD_LIBRARY_PATH=$old # restore
22989      ;;
22990    esac
22991
22992     fi
22993     #
22994     case "$curl_func_clock_gettime" in
22995       yes)
22996
22997 printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
22998
22999         ;;
23000     esac
23001     #
23002   fi
23003   #
23004
23005
23006 CURL_NETWORK_AND_TIME_LIBS=$LIBS
23007
23008
23009
23010 clean_CPPFLAGS=$CPPFLAGS
23011 clean_LDFLAGS=$LDFLAGS
23012 clean_LIBS=$LIBS
23013 ZLIB_LIBS=""
23014
23015 # Check whether --with-zlib was given.
23016 if test ${with_zlib+y}
23017 then :
23018   withval=$with_zlib; OPT_ZLIB="$withval"
23019 fi
23020
23021
23022 if test "$OPT_ZLIB" = "no" ; then
23023     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
23024 printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
23025 else
23026   if test "$OPT_ZLIB" = "yes" ; then
23027     OPT_ZLIB=""
23028   fi
23029
23030   if test -z "$OPT_ZLIB" ; then
23031
23032     if test -n "$PKG_CONFIG"; then
23033       PKGCONFIG="$PKG_CONFIG"
23034     else
23035       if test -n "$ac_tool_prefix"; then
23036   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23037 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23039 printf %s "checking for $ac_word... " >&6; }
23040 if test ${ac_cv_path_PKGCONFIG+y}
23041 then :
23042   printf %s "(cached) " >&6
23043 else $as_nop
23044   case $PKGCONFIG in
23045   [\\/]* | ?:[\\/]*)
23046   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23047   ;;
23048   *)
23049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23050 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23051 for as_dir in $as_dummy
23052 do
23053   IFS=$as_save_IFS
23054   case $as_dir in #(((
23055     '') as_dir=./ ;;
23056     */) ;;
23057     *) as_dir=$as_dir/ ;;
23058   esac
23059     for ac_exec_ext in '' $ac_executable_extensions; do
23060   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23061     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23062     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23063     break 2
23064   fi
23065 done
23066   done
23067 IFS=$as_save_IFS
23068
23069   ;;
23070 esac
23071 fi
23072 PKGCONFIG=$ac_cv_path_PKGCONFIG
23073 if test -n "$PKGCONFIG"; then
23074   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23075 printf "%s\n" "$PKGCONFIG" >&6; }
23076 else
23077   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23078 printf "%s\n" "no" >&6; }
23079 fi
23080
23081
23082 fi
23083 if test -z "$ac_cv_path_PKGCONFIG"; then
23084   ac_pt_PKGCONFIG=$PKGCONFIG
23085   # Extract the first word of "pkg-config", so it can be a program name with args.
23086 set dummy pkg-config; ac_word=$2
23087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23088 printf %s "checking for $ac_word... " >&6; }
23089 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23090 then :
23091   printf %s "(cached) " >&6
23092 else $as_nop
23093   case $ac_pt_PKGCONFIG in
23094   [\\/]* | ?:[\\/]*)
23095   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23096   ;;
23097   *)
23098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23099 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23100 for as_dir in $as_dummy
23101 do
23102   IFS=$as_save_IFS
23103   case $as_dir in #(((
23104     '') as_dir=./ ;;
23105     */) ;;
23106     *) as_dir=$as_dir/ ;;
23107   esac
23108     for ac_exec_ext in '' $ac_executable_extensions; do
23109   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23110     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23111     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23112     break 2
23113   fi
23114 done
23115   done
23116 IFS=$as_save_IFS
23117
23118   ;;
23119 esac
23120 fi
23121 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23122 if test -n "$ac_pt_PKGCONFIG"; then
23123   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23124 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23125 else
23126   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23127 printf "%s\n" "no" >&6; }
23128 fi
23129
23130   if test "x$ac_pt_PKGCONFIG" = x; then
23131     PKGCONFIG="no"
23132   else
23133     case $cross_compiling:$ac_tool_warned in
23134 yes:)
23135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23136 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23137 ac_tool_warned=yes ;;
23138 esac
23139     PKGCONFIG=$ac_pt_PKGCONFIG
23140   fi
23141 else
23142   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23143 fi
23144
23145     fi
23146
23147     if test "x$PKGCONFIG" != "xno"; then
23148       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
23149 printf %s "checking for zlib options with pkg-config... " >&6; }
23150             itexists=`
23151     if test -n ""; then
23152       PKG_CONFIG_LIBDIR=""
23153       export PKG_CONFIG_LIBDIR
23154     fi
23155          $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
23156
23157       if test -z "$itexists"; then
23158                         PKGCONFIG="no"
23159         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23160 printf "%s\n" "no" >&6; }
23161       else
23162         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23163 printf "%s\n" "found" >&6; }
23164       fi
23165     fi
23166
23167
23168     if test "$PKGCONFIG" != "no" ; then
23169       LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
23170       LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
23171       CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
23172       OPT_ZLIB=""
23173       HAVE_LIBZ="1"
23174     fi
23175
23176     if test -z "$HAVE_LIBZ"; then
23177
23178
23179       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
23180 printf %s "checking for inflateEnd in -lz... " >&6; }
23181 if test ${ac_cv_lib_z_inflateEnd+y}
23182 then :
23183   printf %s "(cached) " >&6
23184 else $as_nop
23185   ac_check_lib_save_LIBS=$LIBS
23186 LIBS="-lz  $LIBS"
23187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23188 /* end confdefs.h.  */
23189
23190
23191 #ifdef __cplusplus
23192 extern "C"
23193 #endif
23194 char inflateEnd ();
23195 int main (void)
23196 {
23197 return inflateEnd ();
23198  ;
23199  return 0;
23200 }
23201 _ACEOF
23202 if ac_fn_c_try_link "$LINENO"
23203 then :
23204   ac_cv_lib_z_inflateEnd=yes
23205 else $as_nop
23206   ac_cv_lib_z_inflateEnd=no
23207 fi
23208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23209     conftest$ac_exeext conftest.$ac_ext
23210 LIBS=$ac_check_lib_save_LIBS
23211 fi
23212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
23213 printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
23214 if test "x$ac_cv_lib_z_inflateEnd" = xyes
23215 then :
23216                      HAVE_LIBZ="1"
23217                     LIBS="-lz $LIBS"
23218 else $as_nop
23219                      OPT_ZLIB="/usr/local"
23220 fi
23221
23222     fi
23223   fi
23224
23225     if test -n "$OPT_ZLIB"; then
23226      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
23227      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
23228   fi
23229
23230   ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
23231 if test "x$ac_cv_header_zlib_h" = xyes
23232 then :
23233
23234         HAVE_ZLIB_H="1"
23235         if test "$HAVE_LIBZ" != "1"; then
23236       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
23237 printf %s "checking for gzread in -lz... " >&6; }
23238 if test ${ac_cv_lib_z_gzread+y}
23239 then :
23240   printf %s "(cached) " >&6
23241 else $as_nop
23242   ac_check_lib_save_LIBS=$LIBS
23243 LIBS="-lz  $LIBS"
23244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23245 /* end confdefs.h.  */
23246
23247
23248 #ifdef __cplusplus
23249 extern "C"
23250 #endif
23251 char gzread ();
23252 int main (void)
23253 {
23254 return gzread ();
23255  ;
23256  return 0;
23257 }
23258 _ACEOF
23259 if ac_fn_c_try_link "$LINENO"
23260 then :
23261   ac_cv_lib_z_gzread=yes
23262 else $as_nop
23263   ac_cv_lib_z_gzread=no
23264 fi
23265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23266     conftest$ac_exeext conftest.$ac_ext
23267 LIBS=$ac_check_lib_save_LIBS
23268 fi
23269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
23270 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
23271 if test "x$ac_cv_lib_z_gzread" = xyes
23272 then :
23273
23274                                       HAVE_LIBZ="1"
23275                    LIBS="-lz $LIBS"
23276
23277 else $as_nop
23278    CPPFLAGS=$clean_CPPFLAGS
23279                    LDFLAGS=$clean_LDFLAGS
23280 fi
23281
23282     fi
23283
23284 else $as_nop
23285
23286             CPPFLAGS=$clean_CPPFLAGS
23287       LDFLAGS=$clean_LDFLAGS
23288
23289 fi
23290
23291
23292   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
23293   then
23294     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
23295 printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
23296     HAVE_LIBZ=""
23297     CPPFLAGS=$clean_CPPFLAGS
23298     LDFLAGS=$clean_LDFLAGS
23299     LIBS=$clean_LIBS
23300   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
23301   then
23302     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
23303 printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
23304     CPPFLAGS=$clean_CPPFLAGS
23305     LDFLAGS=$clean_LDFLAGS
23306     LIBS=$clean_LIBS
23307   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
23308   then
23309
23310
23311 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
23312
23313
23314     ZLIB_LIBS="-lz"
23315     LIBS="-lz $clean_LIBS"
23316
23317         AMFIXLIB="1"
23318     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
23319 printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
23320     curl_zlib_msg="enabled"
23321   fi
23322 fi
23323
23324  if test x"$AMFIXLIB" = x1; then
23325   HAVE_LIBZ_TRUE=
23326   HAVE_LIBZ_FALSE='#'
23327 else
23328   HAVE_LIBZ_TRUE='#'
23329   HAVE_LIBZ_FALSE=
23330 fi
23331
23332
23333
23334
23335
23336 OPT_BROTLI=off
23337
23338 # Check whether --with-brotli was given.
23339 if test ${with_brotli+y}
23340 then :
23341   withval=$with_brotli; OPT_BROTLI=$withval
23342 fi
23343
23344
23345 if test X"$OPT_BROTLI" != Xno; then
23346     CLEANLDFLAGS="$LDFLAGS"
23347   CLEANCPPFLAGS="$CPPFLAGS"
23348   CLEANLIBS="$LIBS"
23349
23350   case "$OPT_BROTLI" in
23351   yes)
23352
23353     if test -n "$PKG_CONFIG"; then
23354       PKGCONFIG="$PKG_CONFIG"
23355     else
23356       if test -n "$ac_tool_prefix"; then
23357   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23358 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23360 printf %s "checking for $ac_word... " >&6; }
23361 if test ${ac_cv_path_PKGCONFIG+y}
23362 then :
23363   printf %s "(cached) " >&6
23364 else $as_nop
23365   case $PKGCONFIG in
23366   [\\/]* | ?:[\\/]*)
23367   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23368   ;;
23369   *)
23370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23371 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23372 for as_dir in $as_dummy
23373 do
23374   IFS=$as_save_IFS
23375   case $as_dir in #(((
23376     '') as_dir=./ ;;
23377     */) ;;
23378     *) as_dir=$as_dir/ ;;
23379   esac
23380     for ac_exec_ext in '' $ac_executable_extensions; do
23381   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23382     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23383     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23384     break 2
23385   fi
23386 done
23387   done
23388 IFS=$as_save_IFS
23389
23390   ;;
23391 esac
23392 fi
23393 PKGCONFIG=$ac_cv_path_PKGCONFIG
23394 if test -n "$PKGCONFIG"; then
23395   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23396 printf "%s\n" "$PKGCONFIG" >&6; }
23397 else
23398   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23399 printf "%s\n" "no" >&6; }
23400 fi
23401
23402
23403 fi
23404 if test -z "$ac_cv_path_PKGCONFIG"; then
23405   ac_pt_PKGCONFIG=$PKGCONFIG
23406   # Extract the first word of "pkg-config", so it can be a program name with args.
23407 set dummy pkg-config; ac_word=$2
23408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23409 printf %s "checking for $ac_word... " >&6; }
23410 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23411 then :
23412   printf %s "(cached) " >&6
23413 else $as_nop
23414   case $ac_pt_PKGCONFIG in
23415   [\\/]* | ?:[\\/]*)
23416   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23417   ;;
23418   *)
23419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23420 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23421 for as_dir in $as_dummy
23422 do
23423   IFS=$as_save_IFS
23424   case $as_dir in #(((
23425     '') as_dir=./ ;;
23426     */) ;;
23427     *) as_dir=$as_dir/ ;;
23428   esac
23429     for ac_exec_ext in '' $ac_executable_extensions; do
23430   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23431     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23432     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23433     break 2
23434   fi
23435 done
23436   done
23437 IFS=$as_save_IFS
23438
23439   ;;
23440 esac
23441 fi
23442 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23443 if test -n "$ac_pt_PKGCONFIG"; then
23444   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23445 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23446 else
23447   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23448 printf "%s\n" "no" >&6; }
23449 fi
23450
23451   if test "x$ac_pt_PKGCONFIG" = x; then
23452     PKGCONFIG="no"
23453   else
23454     case $cross_compiling:$ac_tool_warned in
23455 yes:)
23456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23457 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23458 ac_tool_warned=yes ;;
23459 esac
23460     PKGCONFIG=$ac_pt_PKGCONFIG
23461   fi
23462 else
23463   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23464 fi
23465
23466     fi
23467
23468     if test "x$PKGCONFIG" != "xno"; then
23469       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
23470 printf %s "checking for libbrotlidec options with pkg-config... " >&6; }
23471             itexists=`
23472     if test -n ""; then
23473       PKG_CONFIG_LIBDIR=""
23474       export PKG_CONFIG_LIBDIR
23475     fi
23476          $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
23477
23478       if test -z "$itexists"; then
23479                         PKGCONFIG="no"
23480         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23481 printf "%s\n" "no" >&6; }
23482       else
23483         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23484 printf "%s\n" "found" >&6; }
23485       fi
23486     fi
23487
23488
23489     if test "$PKGCONFIG" != "no" ; then
23490       LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
23491       LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
23492       CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
23493       version=`$PKGCONFIG --modversion libbrotlidec`
23494       DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
23495     fi
23496
23497     ;;
23498   off)
23499         ;;
23500   *)
23501         PREFIX_BROTLI=$OPT_BROTLI
23502     ;;
23503   esac
23504
23505     if test -n "$PREFIX_BROTLI"; then
23506     LIB_BROTLI="-lbrotlidec"
23507     LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
23508     CPP_BROTLI=-I${PREFIX_BROTLI}/include
23509     DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
23510   fi
23511
23512   LDFLAGS="$LDFLAGS $LD_BROTLI"
23513   CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
23514   LIBS="$LIB_BROTLI $LIBS"
23515
23516   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
23517 printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
23518 if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y}
23519 then :
23520   printf %s "(cached) " >&6
23521 else $as_nop
23522   ac_check_lib_save_LIBS=$LIBS
23523 LIBS="-lbrotlidec  $LIBS"
23524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23525 /* end confdefs.h.  */
23526
23527
23528 #ifdef __cplusplus
23529 extern "C"
23530 #endif
23531 char BrotliDecoderDecompress ();
23532 int main (void)
23533 {
23534 return BrotliDecoderDecompress ();
23535  ;
23536  return 0;
23537 }
23538 _ACEOF
23539 if ac_fn_c_try_link "$LINENO"
23540 then :
23541   ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
23542 else $as_nop
23543   ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
23544 fi
23545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23546     conftest$ac_exeext conftest.$ac_ext
23547 LIBS=$ac_check_lib_save_LIBS
23548 fi
23549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
23550 printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
23551 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes
23552 then :
23553   printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h
23554
23555   LIBS="-lbrotlidec $LIBS"
23556
23557 fi
23558
23559
23560          for ac_header in brotli/decode.h
23561 do :
23562   ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
23563 if test "x$ac_cv_header_brotli_decode_h" = xyes
23564 then :
23565   printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h
23566  curl_brotli_msg="enabled (libbrotlidec)"
23567     HAVE_BROTLI=1
23568
23569 printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h
23570
23571     HAVE_BROTLI=1
23572
23573
23574 fi
23575
23576 done
23577
23578   if test X"$OPT_BROTLI" != Xoff &&
23579      test "$HAVE_BROTLI" != "1"; then
23580     as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
23581   fi
23582
23583   if test "$HAVE_BROTLI" = "1"; then
23584     if test -n "$DIR_BROTLI"; then
23585
23586        if test "x$cross_compiling" != "xyes"; then
23587          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
23588          export CURL_LIBRARY_PATH
23589          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
23590 printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
23591        fi
23592     fi
23593   else
23594         LDFLAGS=$CLEANLDFLAGS
23595     CPPFLAGS=$CLEANCPPFLAGS
23596     LIBS=$CLEANLIBS
23597   fi
23598 fi
23599
23600
23601 OPT_ZSTD=off
23602
23603 # Check whether --with-zstd was given.
23604 if test ${with_zstd+y}
23605 then :
23606   withval=$with_zstd; OPT_ZSTD=$withval
23607 fi
23608
23609
23610 if test X"$OPT_ZSTD" != Xno; then
23611     CLEANLDFLAGS="$LDFLAGS"
23612   CLEANCPPFLAGS="$CPPFLAGS"
23613   CLEANLIBS="$LIBS"
23614
23615   case "$OPT_ZSTD" in
23616   yes)
23617
23618     if test -n "$PKG_CONFIG"; then
23619       PKGCONFIG="$PKG_CONFIG"
23620     else
23621       if test -n "$ac_tool_prefix"; then
23622   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23623 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23625 printf %s "checking for $ac_word... " >&6; }
23626 if test ${ac_cv_path_PKGCONFIG+y}
23627 then :
23628   printf %s "(cached) " >&6
23629 else $as_nop
23630   case $PKGCONFIG in
23631   [\\/]* | ?:[\\/]*)
23632   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23633   ;;
23634   *)
23635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23636 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23637 for as_dir in $as_dummy
23638 do
23639   IFS=$as_save_IFS
23640   case $as_dir in #(((
23641     '') as_dir=./ ;;
23642     */) ;;
23643     *) as_dir=$as_dir/ ;;
23644   esac
23645     for ac_exec_ext in '' $ac_executable_extensions; do
23646   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23647     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23648     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23649     break 2
23650   fi
23651 done
23652   done
23653 IFS=$as_save_IFS
23654
23655   ;;
23656 esac
23657 fi
23658 PKGCONFIG=$ac_cv_path_PKGCONFIG
23659 if test -n "$PKGCONFIG"; then
23660   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23661 printf "%s\n" "$PKGCONFIG" >&6; }
23662 else
23663   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23664 printf "%s\n" "no" >&6; }
23665 fi
23666
23667
23668 fi
23669 if test -z "$ac_cv_path_PKGCONFIG"; then
23670   ac_pt_PKGCONFIG=$PKGCONFIG
23671   # Extract the first word of "pkg-config", so it can be a program name with args.
23672 set dummy pkg-config; ac_word=$2
23673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23674 printf %s "checking for $ac_word... " >&6; }
23675 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23676 then :
23677   printf %s "(cached) " >&6
23678 else $as_nop
23679   case $ac_pt_PKGCONFIG in
23680   [\\/]* | ?:[\\/]*)
23681   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23682   ;;
23683   *)
23684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23685 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23686 for as_dir in $as_dummy
23687 do
23688   IFS=$as_save_IFS
23689   case $as_dir in #(((
23690     '') as_dir=./ ;;
23691     */) ;;
23692     *) as_dir=$as_dir/ ;;
23693   esac
23694     for ac_exec_ext in '' $ac_executable_extensions; do
23695   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23696     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23697     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23698     break 2
23699   fi
23700 done
23701   done
23702 IFS=$as_save_IFS
23703
23704   ;;
23705 esac
23706 fi
23707 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23708 if test -n "$ac_pt_PKGCONFIG"; then
23709   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23710 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23711 else
23712   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23713 printf "%s\n" "no" >&6; }
23714 fi
23715
23716   if test "x$ac_pt_PKGCONFIG" = x; then
23717     PKGCONFIG="no"
23718   else
23719     case $cross_compiling:$ac_tool_warned in
23720 yes:)
23721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23722 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23723 ac_tool_warned=yes ;;
23724 esac
23725     PKGCONFIG=$ac_pt_PKGCONFIG
23726   fi
23727 else
23728   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23729 fi
23730
23731     fi
23732
23733     if test "x$PKGCONFIG" != "xno"; then
23734       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
23735 printf %s "checking for libzstd options with pkg-config... " >&6; }
23736             itexists=`
23737     if test -n ""; then
23738       PKG_CONFIG_LIBDIR=""
23739       export PKG_CONFIG_LIBDIR
23740     fi
23741          $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
23742
23743       if test -z "$itexists"; then
23744                         PKGCONFIG="no"
23745         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23746 printf "%s\n" "no" >&6; }
23747       else
23748         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23749 printf "%s\n" "found" >&6; }
23750       fi
23751     fi
23752
23753
23754     if test "$PKGCONFIG" != "no" ; then
23755       LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
23756       LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
23757       CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
23758       version=`$PKGCONFIG --modversion libzstd`
23759       DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
23760     fi
23761
23762     ;;
23763   off)
23764         ;;
23765   *)
23766         PREFIX_ZSTD=$OPT_ZSTD
23767     ;;
23768   esac
23769
23770     if test -n "$PREFIX_ZSTD"; then
23771     LIB_ZSTD="-lzstd"
23772     LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
23773     CPP_ZSTD=-I${PREFIX_ZSTD}/include
23774     DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
23775   fi
23776
23777   LDFLAGS="$LDFLAGS $LD_ZSTD"
23778   CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
23779   LIBS="$LIB_ZSTD $LIBS"
23780
23781   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
23782 printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
23783 if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
23784 then :
23785   printf %s "(cached) " >&6
23786 else $as_nop
23787   ac_check_lib_save_LIBS=$LIBS
23788 LIBS="-lzstd  $LIBS"
23789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23790 /* end confdefs.h.  */
23791
23792
23793 #ifdef __cplusplus
23794 extern "C"
23795 #endif
23796 char ZSTD_createDStream ();
23797 int main (void)
23798 {
23799 return ZSTD_createDStream ();
23800  ;
23801  return 0;
23802 }
23803 _ACEOF
23804 if ac_fn_c_try_link "$LINENO"
23805 then :
23806   ac_cv_lib_zstd_ZSTD_createDStream=yes
23807 else $as_nop
23808   ac_cv_lib_zstd_ZSTD_createDStream=no
23809 fi
23810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23811     conftest$ac_exeext conftest.$ac_ext
23812 LIBS=$ac_check_lib_save_LIBS
23813 fi
23814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
23815 printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
23816 if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
23817 then :
23818   printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
23819
23820   LIBS="-lzstd $LIBS"
23821
23822 fi
23823
23824
23825          for ac_header in zstd.h
23826 do :
23827   ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
23828 if test "x$ac_cv_header_zstd_h" = xyes
23829 then :
23830   printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
23831  curl_zstd_msg="enabled (libzstd)"
23832     HAVE_ZSTD=1
23833
23834 printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h
23835
23836     HAVE_ZSTD=1
23837
23838
23839 fi
23840
23841 done
23842
23843   if test X"$OPT_ZSTD" != Xoff &&
23844      test "$HAVE_ZSTD" != "1"; then
23845     as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
23846   fi
23847
23848   if test "$HAVE_ZSTD" = "1"; then
23849     if test -n "$DIR_ZSTD"; then
23850
23851        if test "x$cross_compiling" != "xyes"; then
23852          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
23853          export CURL_LIBRARY_PATH
23854          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
23855 printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
23856        fi
23857     fi
23858   else
23859         LDFLAGS=$CLEANLDFLAGS
23860     CPPFLAGS=$CLEANCPPFLAGS
23861     LIBS=$CLEANLIBS
23862   fi
23863 fi
23864
23865
23866 LDAPLIBNAME=""
23867
23868 # Check whether --with-ldap-lib was given.
23869 if test ${with_ldap_lib+y}
23870 then :
23871   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
23872 fi
23873
23874
23875 LBERLIBNAME=""
23876
23877 # Check whether --with-lber-lib was given.
23878 if test ${with_lber_lib+y}
23879 then :
23880   withval=$with_lber_lib; LBERLIBNAME="$withval"
23881 fi
23882
23883
23884 if test x$CURL_DISABLE_LDAP != x1 ; then
23885
23886
23887     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
23888 printf %s "checking for lber.h... " >&6; }
23889 if test ${curl_cv_header_lber_h+y}
23890 then :
23891   printf %s "(cached) " >&6
23892 else $as_nop
23893
23894     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23895 /* end confdefs.h.  */
23896
23897
23898 #undef inline
23899 #ifdef HAVE_WINDOWS_H
23900 #ifndef WIN32_LEAN_AND_MEAN
23901 #define WIN32_LEAN_AND_MEAN
23902 #endif
23903 #include <windows.h>
23904 #else
23905 #ifdef HAVE_SYS_TYPES_H
23906 #include <sys/types.h>
23907 #endif
23908 #endif
23909 #ifndef NULL
23910 #define NULL (void *)0
23911 #endif
23912 #include <lber.h>
23913
23914 int main (void)
23915 {
23916
23917         BerValue *bvp = NULL;
23918         BerElement *bep = ber_init(bvp);
23919         ber_free(bep, 1);
23920
23921  ;
23922  return 0;
23923 }
23924
23925 _ACEOF
23926 if ac_fn_c_try_compile "$LINENO"
23927 then :
23928
23929       curl_cv_header_lber_h="yes"
23930
23931 else $as_nop
23932
23933       curl_cv_header_lber_h="no"
23934
23935 fi
23936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23937
23938 fi
23939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
23940 printf "%s\n" "$curl_cv_header_lber_h" >&6; }
23941   if test "$curl_cv_header_lber_h" = "yes"; then
23942
23943 printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
23944
23945     #
23946     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23947 /* end confdefs.h.  */
23948
23949
23950 #undef inline
23951 #ifdef HAVE_WINDOWS_H
23952 #ifndef WIN32_LEAN_AND_MEAN
23953 #define WIN32_LEAN_AND_MEAN
23954 #endif
23955 #include <windows.h>
23956 #else
23957 #ifdef HAVE_SYS_TYPES_H
23958 #include <sys/types.h>
23959 #endif
23960 #endif
23961 #ifndef NULL
23962 #define NULL (void *)0
23963 #endif
23964 #ifndef LDAP_DEPRECATED
23965 #define LDAP_DEPRECATED 1
23966 #endif
23967 #include <ldap.h>
23968
23969 int main (void)
23970 {
23971
23972         BerValue *bvp = NULL;
23973         BerElement *bep = ber_init(bvp);
23974         ber_free(bep, 1);
23975
23976  ;
23977  return 0;
23978 }
23979
23980 _ACEOF
23981 if ac_fn_c_try_compile "$LINENO"
23982 then :
23983
23984       curl_cv_need_header_lber_h="no"
23985
23986 else $as_nop
23987
23988       curl_cv_need_header_lber_h="yes"
23989
23990 fi
23991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23992     #
23993     case "$curl_cv_need_header_lber_h" in
23994       yes)
23995
23996 printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
23997
23998         ;;
23999     esac
24000   fi
24001
24002
24003     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
24004 printf %s "checking for ldap.h... " >&6; }
24005 if test ${curl_cv_header_ldap_h+y}
24006 then :
24007   printf %s "(cached) " >&6
24008 else $as_nop
24009
24010     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24011 /* end confdefs.h.  */
24012
24013
24014 #undef inline
24015 #ifdef HAVE_WINDOWS_H
24016 #ifndef WIN32_LEAN_AND_MEAN
24017 #define WIN32_LEAN_AND_MEAN
24018 #endif
24019 #include <windows.h>
24020 #else
24021 #ifdef HAVE_SYS_TYPES_H
24022 #include <sys/types.h>
24023 #endif
24024 #endif
24025 #ifndef LDAP_DEPRECATED
24026 #define LDAP_DEPRECATED 1
24027 #endif
24028 #ifdef NEED_LBER_H
24029 #include <lber.h>
24030 #endif
24031 #include <ldap.h>
24032
24033 int main (void)
24034 {
24035
24036         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
24037         int res = ldap_unbind(ldp);
24038
24039  ;
24040  return 0;
24041 }
24042
24043 _ACEOF
24044 if ac_fn_c_try_compile "$LINENO"
24045 then :
24046
24047       curl_cv_header_ldap_h="yes"
24048
24049 else $as_nop
24050
24051       curl_cv_header_ldap_h="no"
24052
24053 fi
24054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24055
24056 fi
24057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
24058 printf "%s\n" "$curl_cv_header_ldap_h" >&6; }
24059   case "$curl_cv_header_ldap_h" in
24060     yes)
24061
24062 printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h
24063
24064       ;;
24065   esac
24066
24067
24068     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
24069 printf %s "checking for ldap_ssl.h... " >&6; }
24070 if test ${curl_cv_header_ldap_ssl_h+y}
24071 then :
24072   printf %s "(cached) " >&6
24073 else $as_nop
24074
24075     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24076 /* end confdefs.h.  */
24077
24078
24079 #undef inline
24080 #ifdef HAVE_WINDOWS_H
24081 #ifndef WIN32_LEAN_AND_MEAN
24082 #define WIN32_LEAN_AND_MEAN
24083 #endif
24084 #include <windows.h>
24085 #else
24086 #ifdef HAVE_SYS_TYPES_H
24087 #include <sys/types.h>
24088 #endif
24089 #endif
24090 #ifndef LDAP_DEPRECATED
24091 #define LDAP_DEPRECATED 1
24092 #endif
24093 #ifdef NEED_LBER_H
24094 #include <lber.h>
24095 #endif
24096 #ifdef HAVE_LDAP_H
24097 #include <ldap.h>
24098 #endif
24099 #include <ldap_ssl.h>
24100
24101 int main (void)
24102 {
24103
24104         LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
24105
24106  ;
24107  return 0;
24108 }
24109
24110 _ACEOF
24111 if ac_fn_c_try_compile "$LINENO"
24112 then :
24113
24114       curl_cv_header_ldap_ssl_h="yes"
24115
24116 else $as_nop
24117
24118       curl_cv_header_ldap_ssl_h="no"
24119
24120 fi
24121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24122
24123 fi
24124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
24125 printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; }
24126   case "$curl_cv_header_ldap_ssl_h" in
24127     yes)
24128
24129 printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
24130
24131       ;;
24132   esac
24133
24134
24135   if test -z "$LDAPLIBNAME" ; then
24136     if test "$curl_cv_native_windows" = "yes"; then
24137             LDAPLIBNAME="wldap32"
24138       LBERLIBNAME="no"
24139     fi
24140   fi
24141
24142   if test "$LDAPLIBNAME" ; then
24143     as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh`
24144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
24145 printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
24146 if eval test \${$as_ac_Lib+y}
24147 then :
24148   printf %s "(cached) " >&6
24149 else $as_nop
24150   ac_check_lib_save_LIBS=$LIBS
24151 LIBS="-l"$LDAPLIBNAME"  $LIBS"
24152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24153 /* end confdefs.h.  */
24154
24155
24156 #ifdef __cplusplus
24157 extern "C"
24158 #endif
24159 char ldap_init ();
24160 int main (void)
24161 {
24162 return ldap_init ();
24163  ;
24164  return 0;
24165 }
24166 _ACEOF
24167 if ac_fn_c_try_link "$LINENO"
24168 then :
24169   eval "$as_ac_Lib=yes"
24170 else $as_nop
24171   eval "$as_ac_Lib=no"
24172 fi
24173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24174     conftest$ac_exeext conftest.$ac_ext
24175 LIBS=$ac_check_lib_save_LIBS
24176 fi
24177 eval ac_res=\$$as_ac_Lib
24178                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24179 printf "%s\n" "$ac_res" >&6; }
24180 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24181 then :
24182   cat >>confdefs.h <<_ACEOF
24183 #define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
24184 _ACEOF
24185
24186   LIBS="-l"$LDAPLIBNAME" $LIBS"
24187
24188 else $as_nop
24189
24190       if test -n "$ldap_askedfor"; then
24191         as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24192       fi
24193       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
24194 printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
24195
24196 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24197
24198       CURL_DISABLE_LDAP=1
24199
24200
24201 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24202
24203       CURL_DISABLE_LDAPS=1
24204
24205 fi
24206
24207   else
24208
24209     #
24210   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
24211 printf %s "checking for LDAP libraries... " >&6; }
24212   #
24213   u_libs=""
24214   #
24215
24216   #
24217   curl_cv_save_LIBS="$LIBS"
24218   curl_cv_ldap_LIBS="unknown"
24219   #
24220   for x_nlibs in '' "$u_libs" \
24221     '-lldap' \
24222     '-lldap -llber' \
24223     '-llber -lldap' \
24224     '-lldapssl -lldapx -lldapsdk' \
24225     '-lldapsdk -lldapx -lldapssl' \
24226     '-lldap -llber -lssl -lcrypto' ; do
24227
24228     if test "$curl_cv_ldap_LIBS" = "unknown"; then
24229       if test -z "$x_nlibs"; then
24230         LIBS="$curl_cv_save_LIBS"
24231       else
24232         LIBS="$x_nlibs $curl_cv_save_LIBS"
24233       fi
24234       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24235 /* end confdefs.h.  */
24236
24237
24238 #undef inline
24239 #ifdef HAVE_WINDOWS_H
24240 #ifndef WIN32_LEAN_AND_MEAN
24241 #define WIN32_LEAN_AND_MEAN
24242 #endif
24243 #include <windows.h>
24244 #else
24245 #ifdef HAVE_SYS_TYPES_H
24246 #include <sys/types.h>
24247 #endif
24248 #endif
24249 #ifndef NULL
24250 #define NULL (void *)0
24251 #endif
24252 #ifndef LDAP_DEPRECATED
24253 #define LDAP_DEPRECATED 1
24254 #endif
24255 #ifdef NEED_LBER_H
24256 #include <lber.h>
24257 #endif
24258 #ifdef HAVE_LDAP_H
24259 #include <ldap.h>
24260 #endif
24261
24262 int main (void)
24263 {
24264
24265           BerValue *bvp = NULL;
24266           BerElement *bep = ber_init(bvp);
24267           LDAP *ldp = ldap_init("dummy", LDAP_PORT);
24268           int res = ldap_unbind(ldp);
24269           ber_free(bep, 1);
24270
24271  ;
24272  return 0;
24273 }
24274
24275 _ACEOF
24276 if ac_fn_c_try_link "$LINENO"
24277 then :
24278
24279         curl_cv_ldap_LIBS="$x_nlibs"
24280
24281 fi
24282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24283     conftest$ac_exeext conftest.$ac_ext
24284     fi
24285   done
24286   #
24287   LIBS="$curl_cv_save_LIBS"
24288   #
24289   case X-"$curl_cv_ldap_LIBS" in
24290     X-unknown)
24291       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
24292 printf "%s\n" "cannot find LDAP libraries" >&6; }
24293       ;;
24294     X-)
24295       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
24296 printf "%s\n" "no additional lib required" >&6; }
24297       ;;
24298     *)
24299       if test -z "$curl_cv_save_LIBS"; then
24300         LIBS="$curl_cv_ldap_LIBS"
24301       else
24302         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
24303       fi
24304       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
24305 printf "%s\n" "$curl_cv_ldap_LIBS" >&6; }
24306       ;;
24307   esac
24308   #
24309
24310     case X-"$curl_cv_ldap_LIBS" in
24311       X-unknown)
24312         if test -n "$ldap_askedfor"; then
24313           as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24314         fi
24315         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
24316 printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
24317
24318 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24319
24320         CURL_DISABLE_LDAP=1
24321
24322
24323 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24324
24325         CURL_DISABLE_LDAPS=1
24326
24327         ;;
24328     esac
24329   fi
24330 fi
24331
24332 if test x$CURL_DISABLE_LDAP != x1 ; then
24333
24334   if test "$LBERLIBNAME" ; then
24335             if test "$LBERLIBNAME" != "no" ; then
24336       as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh`
24337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
24338 printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
24339 if eval test \${$as_ac_Lib+y}
24340 then :
24341   printf %s "(cached) " >&6
24342 else $as_nop
24343   ac_check_lib_save_LIBS=$LIBS
24344 LIBS="-l"$LBERLIBNAME"  $LIBS"
24345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24346 /* end confdefs.h.  */
24347
24348
24349 #ifdef __cplusplus
24350 extern "C"
24351 #endif
24352 char ber_free ();
24353 int main (void)
24354 {
24355 return ber_free ();
24356  ;
24357  return 0;
24358 }
24359 _ACEOF
24360 if ac_fn_c_try_link "$LINENO"
24361 then :
24362   eval "$as_ac_Lib=yes"
24363 else $as_nop
24364   eval "$as_ac_Lib=no"
24365 fi
24366 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24367     conftest$ac_exeext conftest.$ac_ext
24368 LIBS=$ac_check_lib_save_LIBS
24369 fi
24370 eval ac_res=\$$as_ac_Lib
24371                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24372 printf "%s\n" "$ac_res" >&6; }
24373 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24374 then :
24375   cat >>confdefs.h <<_ACEOF
24376 #define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
24377 _ACEOF
24378
24379   LIBS="-l"$LBERLIBNAME" $LIBS"
24380
24381 else $as_nop
24382
24383         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
24384 printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
24385
24386 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24387
24388         CURL_DISABLE_LDAP=1
24389
24390
24391 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24392
24393         CURL_DISABLE_LDAPS=1
24394
24395 fi
24396
24397     fi
24398   fi
24399 fi
24400
24401 if test x$CURL_DISABLE_LDAP != x1 ; then
24402   ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
24403 if test "x$ac_cv_func_ldap_url_parse" = xyes
24404 then :
24405   printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h
24406
24407 fi
24408
24409
24410   if test "$LDAPLIBNAME" = "wldap32"; then
24411     curl_ldap_msg="enabled (winldap)"
24412
24413 printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h
24414
24415   else
24416     curl_ldap_msg="enabled (OpenLDAP)"
24417     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
24418
24419 printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h
24420
24421       USE_OPENLDAP=1
24422
24423     fi
24424   fi
24425 fi
24426
24427 if test x$CURL_DISABLE_LDAPS != x1 ; then
24428     curl_ldaps_msg="enabled"
24429 fi
24430
24431
24432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
24433 printf %s "checking whether to enable IPv6... " >&6; }
24434 # Check whether --enable-ipv6 was given.
24435 if test ${enable_ipv6+y}
24436 then :
24437   enableval=$enable_ipv6;  case "$enableval" in
24438   no)
24439        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24440 printf "%s\n" "no" >&6; }
24441        ipv6=no
24442        ;;
24443   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24444 printf "%s\n" "yes" >&6; }
24445        ipv6=yes
24446        ;;
24447   esac
24448 else $as_nop
24449   if test "$cross_compiling" = yes
24450 then :
24451   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24452 printf "%s\n" "yes" >&6; }
24453   ipv6=yes
24454
24455 else $as_nop
24456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24457 /* end confdefs.h.  */
24458
24459 /* are AF_INET6 and sockaddr_in6 available? */
24460 #include <sys/types.h>
24461 #ifdef HAVE_WINSOCK2_H
24462 #include <winsock2.h>
24463 #include <ws2tcpip.h>
24464 #else
24465 #include <sys/socket.h>
24466 #include <netinet/in.h>
24467 #if defined (__TANDEM)
24468 # include <netinet/in6.h>
24469 #endif
24470 #endif
24471 #include <stdlib.h> /* for exit() */
24472 main()
24473 {
24474  struct sockaddr_in6 s;
24475  (void)s;
24476  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
24477    exit(1);
24478  else
24479    exit(0);
24480 }
24481
24482
24483 _ACEOF
24484 if ac_fn_c_try_run "$LINENO"
24485 then :
24486   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24487 printf "%s\n" "yes" >&6; }
24488   ipv6=yes
24489 else $as_nop
24490   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24491 printf "%s\n" "no" >&6; }
24492   ipv6=no
24493 fi
24494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24495   conftest.$ac_objext conftest.beam conftest.$ac_ext
24496 fi
24497
24498 fi
24499
24500
24501 if test "$ipv6" = yes; then
24502   curl_ipv6_msg="enabled"
24503
24504 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
24505
24506   IPV6_ENABLED=1
24507
24508
24509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
24510 printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
24511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24512 /* end confdefs.h.  */
24513
24514 #include <sys/types.h>
24515 #ifdef HAVE_WINSOCK2_H
24516 #include <winsock2.h>
24517 #include <ws2tcpip.h>
24518 #else
24519 #include <netinet/in.h>
24520 #if defined (__TANDEM)
24521 # include <netinet/in6.h>
24522 #endif
24523 #endif
24524
24525 int main (void)
24526 {
24527
24528   struct sockaddr_in6 s;
24529   s.sin6_scope_id = 0;
24530
24531  ;
24532  return 0;
24533 }
24534 _ACEOF
24535 if ac_fn_c_try_compile "$LINENO"
24536 then :
24537
24538   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24539 printf "%s\n" "yes" >&6; }
24540
24541 printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
24542
24543
24544 else $as_nop
24545
24546     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24547 printf "%s\n" "no" >&6; }
24548
24549 fi
24550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24551 fi
24552
24553
24554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
24555 printf %s "checking if argv can be written to... " >&6; }
24556
24557    case $host_os in
24558      darwin*)
24559       if test "$cross_compiling" = yes
24560 then :
24561   curl_cv_writable_argv=cross
24562
24563 else $as_nop
24564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24565 /* end confdefs.h.  */
24566
24567 int main(int argc, char **argv)
24568 {
24569   (void)argc;
24570   argv[0][0] = ' ';
24571   return (argv[0][0] == ' ')?0:1;
24572 }
24573
24574 _ACEOF
24575 if ac_fn_c_try_run "$LINENO"
24576 then :
24577   curl_cv_writable_argv=yes
24578
24579 else $as_nop
24580   curl_cv_writable_argv=no
24581
24582 fi
24583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24584   conftest.$ac_objext conftest.beam conftest.$ac_ext
24585 fi
24586
24587      ;;
24588      *)
24589       old=$LD_LIBRARY_PATH
24590       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
24591       export LD_LIBRARY_PATH
24592       if test "$cross_compiling" = yes
24593 then :
24594   curl_cv_writable_argv=cross
24595
24596 else $as_nop
24597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24598 /* end confdefs.h.  */
24599
24600 int main(int argc, char **argv)
24601 {
24602   (void)argc;
24603   argv[0][0] = ' ';
24604   return (argv[0][0] == ' ')?0:1;
24605 }
24606
24607 _ACEOF
24608 if ac_fn_c_try_run "$LINENO"
24609 then :
24610   curl_cv_writable_argv=yes
24611
24612 else $as_nop
24613   curl_cv_writable_argv=no
24614
24615 fi
24616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24617   conftest.$ac_objext conftest.beam conftest.$ac_ext
24618 fi
24619
24620       LD_LIBRARY_PATH=$old # restore
24621      ;;
24622    esac
24623
24624 case $curl_cv_writable_argv in
24625 yes)
24626
24627 printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
24628
24629         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24630 printf "%s\n" "yes" >&6; }
24631         ;;
24632 no)
24633         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24634 printf "%s\n" "no" >&6; }
24635         ;;
24636 *)
24637         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24638 printf "%s\n" "no" >&6; }
24639         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
24640 printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;}
24641         ;;
24642 esac
24643
24644
24645
24646 GSSAPI_ROOT="/usr"
24647
24648 # Check whether --with-gssapi-includes was given.
24649 if test ${with_gssapi_includes+y}
24650 then :
24651   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
24652     want_gss="yes"
24653
24654 fi
24655
24656
24657
24658 # Check whether --with-gssapi-libs was given.
24659 if test ${with_gssapi_libs+y}
24660 then :
24661   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
24662     want_gss="yes"
24663
24664 fi
24665
24666
24667
24668 # Check whether --with-gssapi was given.
24669 if test ${with_gssapi+y}
24670 then :
24671   withval=$with_gssapi;
24672   GSSAPI_ROOT="$withval"
24673   if test x"$GSSAPI_ROOT" != xno; then
24674     want_gss="yes"
24675     if test x"$GSSAPI_ROOT" = xyes; then
24676             GSSAPI_ROOT="/usr"
24677     fi
24678   fi
24679
24680 fi
24681
24682
24683 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
24684
24685 save_CPPFLAGS="$CPPFLAGS"
24686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
24687 printf %s "checking if GSS-API support is requested... " >&6; }
24688 if test x"$want_gss" = xyes; then
24689   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24690 printf "%s\n" "yes" >&6; }
24691
24692   if test $GSSAPI_ROOT != "/usr"; then
24693
24694     if test -n "$PKG_CONFIG"; then
24695       PKGCONFIG="$PKG_CONFIG"
24696     else
24697       if test -n "$ac_tool_prefix"; then
24698   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24699 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24701 printf %s "checking for $ac_word... " >&6; }
24702 if test ${ac_cv_path_PKGCONFIG+y}
24703 then :
24704   printf %s "(cached) " >&6
24705 else $as_nop
24706   case $PKGCONFIG in
24707   [\\/]* | ?:[\\/]*)
24708   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24709   ;;
24710   *)
24711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24712 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24713 for as_dir in $as_dummy
24714 do
24715   IFS=$as_save_IFS
24716   case $as_dir in #(((
24717     '') as_dir=./ ;;
24718     */) ;;
24719     *) as_dir=$as_dir/ ;;
24720   esac
24721     for ac_exec_ext in '' $ac_executable_extensions; do
24722   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24723     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24724     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24725     break 2
24726   fi
24727 done
24728   done
24729 IFS=$as_save_IFS
24730
24731   ;;
24732 esac
24733 fi
24734 PKGCONFIG=$ac_cv_path_PKGCONFIG
24735 if test -n "$PKGCONFIG"; then
24736   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24737 printf "%s\n" "$PKGCONFIG" >&6; }
24738 else
24739   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24740 printf "%s\n" "no" >&6; }
24741 fi
24742
24743
24744 fi
24745 if test -z "$ac_cv_path_PKGCONFIG"; then
24746   ac_pt_PKGCONFIG=$PKGCONFIG
24747   # Extract the first word of "pkg-config", so it can be a program name with args.
24748 set dummy pkg-config; ac_word=$2
24749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24750 printf %s "checking for $ac_word... " >&6; }
24751 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24752 then :
24753   printf %s "(cached) " >&6
24754 else $as_nop
24755   case $ac_pt_PKGCONFIG in
24756   [\\/]* | ?:[\\/]*)
24757   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24758   ;;
24759   *)
24760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24761 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24762 for as_dir in $as_dummy
24763 do
24764   IFS=$as_save_IFS
24765   case $as_dir in #(((
24766     '') as_dir=./ ;;
24767     */) ;;
24768     *) as_dir=$as_dir/ ;;
24769   esac
24770     for ac_exec_ext in '' $ac_executable_extensions; do
24771   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24772     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24773     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24774     break 2
24775   fi
24776 done
24777   done
24778 IFS=$as_save_IFS
24779
24780   ;;
24781 esac
24782 fi
24783 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24784 if test -n "$ac_pt_PKGCONFIG"; then
24785   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24786 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24787 else
24788   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24789 printf "%s\n" "no" >&6; }
24790 fi
24791
24792   if test "x$ac_pt_PKGCONFIG" = x; then
24793     PKGCONFIG="no"
24794   else
24795     case $cross_compiling:$ac_tool_warned in
24796 yes:)
24797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24798 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24799 ac_tool_warned=yes ;;
24800 esac
24801     PKGCONFIG=$ac_pt_PKGCONFIG
24802   fi
24803 else
24804   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24805 fi
24806
24807     fi
24808
24809     if test "x$PKGCONFIG" != "xno"; then
24810       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
24811 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
24812             itexists=`
24813     if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
24814       PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
24815       export PKG_CONFIG_LIBDIR
24816     fi
24817          $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
24818
24819       if test -z "$itexists"; then
24820                         PKGCONFIG="no"
24821         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24822 printf "%s\n" "no" >&6; }
24823       else
24824         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24825 printf "%s\n" "found" >&6; }
24826       fi
24827     fi
24828
24829   else
24830
24831     if test -n "$PKG_CONFIG"; then
24832       PKGCONFIG="$PKG_CONFIG"
24833     else
24834       if test -n "$ac_tool_prefix"; then
24835   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24836 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24838 printf %s "checking for $ac_word... " >&6; }
24839 if test ${ac_cv_path_PKGCONFIG+y}
24840 then :
24841   printf %s "(cached) " >&6
24842 else $as_nop
24843   case $PKGCONFIG in
24844   [\\/]* | ?:[\\/]*)
24845   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24846   ;;
24847   *)
24848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24849 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24850 for as_dir in $as_dummy
24851 do
24852   IFS=$as_save_IFS
24853   case $as_dir in #(((
24854     '') as_dir=./ ;;
24855     */) ;;
24856     *) as_dir=$as_dir/ ;;
24857   esac
24858     for ac_exec_ext in '' $ac_executable_extensions; do
24859   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24860     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24861     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24862     break 2
24863   fi
24864 done
24865   done
24866 IFS=$as_save_IFS
24867
24868   ;;
24869 esac
24870 fi
24871 PKGCONFIG=$ac_cv_path_PKGCONFIG
24872 if test -n "$PKGCONFIG"; then
24873   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24874 printf "%s\n" "$PKGCONFIG" >&6; }
24875 else
24876   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24877 printf "%s\n" "no" >&6; }
24878 fi
24879
24880
24881 fi
24882 if test -z "$ac_cv_path_PKGCONFIG"; then
24883   ac_pt_PKGCONFIG=$PKGCONFIG
24884   # Extract the first word of "pkg-config", so it can be a program name with args.
24885 set dummy pkg-config; ac_word=$2
24886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24887 printf %s "checking for $ac_word... " >&6; }
24888 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24889 then :
24890   printf %s "(cached) " >&6
24891 else $as_nop
24892   case $ac_pt_PKGCONFIG in
24893   [\\/]* | ?:[\\/]*)
24894   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24895   ;;
24896   *)
24897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24898 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24899 for as_dir in $as_dummy
24900 do
24901   IFS=$as_save_IFS
24902   case $as_dir in #(((
24903     '') as_dir=./ ;;
24904     */) ;;
24905     *) as_dir=$as_dir/ ;;
24906   esac
24907     for ac_exec_ext in '' $ac_executable_extensions; do
24908   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24909     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24910     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24911     break 2
24912   fi
24913 done
24914   done
24915 IFS=$as_save_IFS
24916
24917   ;;
24918 esac
24919 fi
24920 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24921 if test -n "$ac_pt_PKGCONFIG"; then
24922   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24923 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24924 else
24925   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24926 printf "%s\n" "no" >&6; }
24927 fi
24928
24929   if test "x$ac_pt_PKGCONFIG" = x; then
24930     PKGCONFIG="no"
24931   else
24932     case $cross_compiling:$ac_tool_warned in
24933 yes:)
24934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24935 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24936 ac_tool_warned=yes ;;
24937 esac
24938     PKGCONFIG=$ac_pt_PKGCONFIG
24939   fi
24940 else
24941   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24942 fi
24943
24944     fi
24945
24946     if test "x$PKGCONFIG" != "xno"; then
24947       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
24948 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
24949             itexists=`
24950     if test -n ""; then
24951       PKG_CONFIG_LIBDIR=""
24952       export PKG_CONFIG_LIBDIR
24953     fi
24954          $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
24955
24956       if test -z "$itexists"; then
24957                         PKGCONFIG="no"
24958         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24959 printf "%s\n" "no" >&6; }
24960       else
24961         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24962 printf "%s\n" "found" >&6; }
24963       fi
24964     fi
24965
24966   fi
24967   if test -z "$GSSAPI_INCS"; then
24968      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
24969         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
24970      elif test "$PKGCONFIG" != "no" ; then
24971         GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
24972      elif test -f "$KRB5CONFIG"; then
24973         GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
24974      elif test "$GSSAPI_ROOT" != "yes"; then
24975         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
24976      fi
24977   fi
24978
24979   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
24980
24981   ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
24982 if test "x$ac_cv_header_gss_h" = xyes
24983 then :
24984
24985
24986 printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h
24987
24988       gnu_gss=yes
24989
24990 else $as_nop
24991
24992                    for ac_header in gssapi/gssapi.h
24993 do :
24994   ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
24995 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
24996 then :
24997   printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
24998
24999 else $as_nop
25000   not_mit=1
25001 fi
25002
25003 done
25004              for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
25005 do :
25006   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
25007 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
25008 $ac_includes_default
25009 #ifdef HAVE_GSSAPI_GSSAPI_H
25010 #include <gssapi/gssapi.h>
25011 #endif
25012
25013 "
25014 if eval test \"x\$"$as_ac_Header"\" = x"yes"
25015 then :
25016   cat >>confdefs.h <<_ACEOF
25017 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
25018 _ACEOF
25019
25020 else $as_nop
25021   not_mit=1
25022 fi
25023
25024 done
25025       if test "x$not_mit" = "x1"; then
25026                 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
25027 if test "x$ac_cv_header_gssapi_h" = xyes
25028 then :
25029
25030
25031 printf "%s\n" "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
25032
25033
25034 else $as_nop
25035
25036                             want_gss=no
25037               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
25038 printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
25039
25040
25041 fi
25042
25043       else
25044
25045 printf "%s\n" "#define HAVE_GSSMIT 1" >>confdefs.h
25046
25047                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
25048 printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
25049         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25050 /* end confdefs.h.  */
25051
25052
25053 #include <gssapi/gssapi.h>
25054 #include <gssapi/gssapi_generic.h>
25055 #include <gssapi/gssapi_krb5.h>
25056
25057 int main (void)
25058 {
25059
25060             gss_import_name(
25061                             (OM_uint32 *)0,
25062                             (gss_buffer_t)0,
25063                             GSS_C_NT_HOSTBASED_SERVICE,
25064                             (gss_name_t *)0);
25065
25066  ;
25067  return 0;
25068 }
25069
25070 _ACEOF
25071 if ac_fn_c_try_compile "$LINENO"
25072 then :
25073
25074           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25075 printf "%s\n" "yes" >&6; }
25076
25077 else $as_nop
25078
25079           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25080 printf "%s\n" "no" >&6; }
25081
25082 printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
25083
25084
25085 fi
25086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25087       fi
25088
25089
25090 fi
25091
25092 else
25093   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25094 printf "%s\n" "no" >&6; }
25095 fi
25096 if test x"$want_gss" = xyes; then
25097
25098 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
25099
25100   HAVE_GSSAPI=1
25101   curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
25102
25103   if test -n "$gnu_gss"; then
25104     curl_gss_msg="enabled (GNU GSS)"
25105     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25106     LIBS="-lgss $LIBS"
25107   elif test -z "$GSSAPI_LIB_DIR"; then
25108      case $host in
25109      *-*-darwin*)
25110         LIBS="-lgssapi_krb5 -lresolv $LIBS"
25111         ;;
25112      *)
25113         if test $GSSAPI_ROOT != "/usr"; then
25114
25115     if test -n "$PKG_CONFIG"; then
25116       PKGCONFIG="$PKG_CONFIG"
25117     else
25118       if test -n "$ac_tool_prefix"; then
25119   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25120 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25122 printf %s "checking for $ac_word... " >&6; }
25123 if test ${ac_cv_path_PKGCONFIG+y}
25124 then :
25125   printf %s "(cached) " >&6
25126 else $as_nop
25127   case $PKGCONFIG in
25128   [\\/]* | ?:[\\/]*)
25129   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25130   ;;
25131   *)
25132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25133 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25134 for as_dir in $as_dummy
25135 do
25136   IFS=$as_save_IFS
25137   case $as_dir in #(((
25138     '') as_dir=./ ;;
25139     */) ;;
25140     *) as_dir=$as_dir/ ;;
25141   esac
25142     for ac_exec_ext in '' $ac_executable_extensions; do
25143   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25144     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25145     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25146     break 2
25147   fi
25148 done
25149   done
25150 IFS=$as_save_IFS
25151
25152   ;;
25153 esac
25154 fi
25155 PKGCONFIG=$ac_cv_path_PKGCONFIG
25156 if test -n "$PKGCONFIG"; then
25157   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25158 printf "%s\n" "$PKGCONFIG" >&6; }
25159 else
25160   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25161 printf "%s\n" "no" >&6; }
25162 fi
25163
25164
25165 fi
25166 if test -z "$ac_cv_path_PKGCONFIG"; then
25167   ac_pt_PKGCONFIG=$PKGCONFIG
25168   # Extract the first word of "pkg-config", so it can be a program name with args.
25169 set dummy pkg-config; ac_word=$2
25170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25171 printf %s "checking for $ac_word... " >&6; }
25172 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25173 then :
25174   printf %s "(cached) " >&6
25175 else $as_nop
25176   case $ac_pt_PKGCONFIG in
25177   [\\/]* | ?:[\\/]*)
25178   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25179   ;;
25180   *)
25181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25182 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25183 for as_dir in $as_dummy
25184 do
25185   IFS=$as_save_IFS
25186   case $as_dir in #(((
25187     '') as_dir=./ ;;
25188     */) ;;
25189     *) as_dir=$as_dir/ ;;
25190   esac
25191     for ac_exec_ext in '' $ac_executable_extensions; do
25192   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25193     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25194     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25195     break 2
25196   fi
25197 done
25198   done
25199 IFS=$as_save_IFS
25200
25201   ;;
25202 esac
25203 fi
25204 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25205 if test -n "$ac_pt_PKGCONFIG"; then
25206   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25207 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25208 else
25209   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25210 printf "%s\n" "no" >&6; }
25211 fi
25212
25213   if test "x$ac_pt_PKGCONFIG" = x; then
25214     PKGCONFIG="no"
25215   else
25216     case $cross_compiling:$ac_tool_warned in
25217 yes:)
25218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25219 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25220 ac_tool_warned=yes ;;
25221 esac
25222     PKGCONFIG=$ac_pt_PKGCONFIG
25223   fi
25224 else
25225   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25226 fi
25227
25228     fi
25229
25230     if test "x$PKGCONFIG" != "xno"; then
25231       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25232 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25233             itexists=`
25234     if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
25235       PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
25236       export PKG_CONFIG_LIBDIR
25237     fi
25238          $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25239
25240       if test -z "$itexists"; then
25241                         PKGCONFIG="no"
25242         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25243 printf "%s\n" "no" >&6; }
25244       else
25245         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25246 printf "%s\n" "found" >&6; }
25247       fi
25248     fi
25249
25250         else
25251
25252     if test -n "$PKG_CONFIG"; then
25253       PKGCONFIG="$PKG_CONFIG"
25254     else
25255       if test -n "$ac_tool_prefix"; then
25256   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25257 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25259 printf %s "checking for $ac_word... " >&6; }
25260 if test ${ac_cv_path_PKGCONFIG+y}
25261 then :
25262   printf %s "(cached) " >&6
25263 else $as_nop
25264   case $PKGCONFIG in
25265   [\\/]* | ?:[\\/]*)
25266   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25267   ;;
25268   *)
25269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25270 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25271 for as_dir in $as_dummy
25272 do
25273   IFS=$as_save_IFS
25274   case $as_dir in #(((
25275     '') as_dir=./ ;;
25276     */) ;;
25277     *) as_dir=$as_dir/ ;;
25278   esac
25279     for ac_exec_ext in '' $ac_executable_extensions; do
25280   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25281     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25282     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25283     break 2
25284   fi
25285 done
25286   done
25287 IFS=$as_save_IFS
25288
25289   ;;
25290 esac
25291 fi
25292 PKGCONFIG=$ac_cv_path_PKGCONFIG
25293 if test -n "$PKGCONFIG"; then
25294   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25295 printf "%s\n" "$PKGCONFIG" >&6; }
25296 else
25297   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25298 printf "%s\n" "no" >&6; }
25299 fi
25300
25301
25302 fi
25303 if test -z "$ac_cv_path_PKGCONFIG"; then
25304   ac_pt_PKGCONFIG=$PKGCONFIG
25305   # Extract the first word of "pkg-config", so it can be a program name with args.
25306 set dummy pkg-config; ac_word=$2
25307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25308 printf %s "checking for $ac_word... " >&6; }
25309 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25310 then :
25311   printf %s "(cached) " >&6
25312 else $as_nop
25313   case $ac_pt_PKGCONFIG in
25314   [\\/]* | ?:[\\/]*)
25315   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25316   ;;
25317   *)
25318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25319 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25320 for as_dir in $as_dummy
25321 do
25322   IFS=$as_save_IFS
25323   case $as_dir in #(((
25324     '') as_dir=./ ;;
25325     */) ;;
25326     *) as_dir=$as_dir/ ;;
25327   esac
25328     for ac_exec_ext in '' $ac_executable_extensions; do
25329   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25330     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25331     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25332     break 2
25333   fi
25334 done
25335   done
25336 IFS=$as_save_IFS
25337
25338   ;;
25339 esac
25340 fi
25341 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25342 if test -n "$ac_pt_PKGCONFIG"; then
25343   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25344 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25345 else
25346   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25347 printf "%s\n" "no" >&6; }
25348 fi
25349
25350   if test "x$ac_pt_PKGCONFIG" = x; then
25351     PKGCONFIG="no"
25352   else
25353     case $cross_compiling:$ac_tool_warned in
25354 yes:)
25355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25356 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25357 ac_tool_warned=yes ;;
25358 esac
25359     PKGCONFIG=$ac_pt_PKGCONFIG
25360   fi
25361 else
25362   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25363 fi
25364
25365     fi
25366
25367     if test "x$PKGCONFIG" != "xno"; then
25368       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25369 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25370             itexists=`
25371     if test -n ""; then
25372       PKG_CONFIG_LIBDIR=""
25373       export PKG_CONFIG_LIBDIR
25374     fi
25375          $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25376
25377       if test -z "$itexists"; then
25378                         PKGCONFIG="no"
25379         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25380 printf "%s\n" "no" >&6; }
25381       else
25382         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25383 printf "%s\n" "found" >&6; }
25384       fi
25385     fi
25386
25387         fi
25388         if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
25389                                  gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
25390            LIBS="$gss_libs $LIBS"
25391         elif test "$PKGCONFIG" != "no" ; then
25392            gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
25393            LIBS="$gss_libs $LIBS"
25394         elif test -f "$KRB5CONFIG"; then
25395                                  gss_libs=`$KRB5CONFIG --libs gssapi`
25396            LIBS="$gss_libs $LIBS"
25397         else
25398            case $host in
25399            *-hp-hpux*)
25400               gss_libname="gss"
25401               ;;
25402            *)
25403               gss_libname="gssapi"
25404               ;;
25405            esac
25406
25407            if test "$GSSAPI_ROOT" != "yes"; then
25408               LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
25409               LIBS="-l$gss_libname $LIBS"
25410            else
25411               LIBS="-l$gss_libname $LIBS"
25412            fi
25413         fi
25414         ;;
25415      esac
25416   else
25417      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25418      case $host in
25419      *-hp-hpux*)
25420         LIBS="-lgss $LIBS"
25421         ;;
25422      *)
25423         LIBS="-lgssapi $LIBS"
25424         ;;
25425      esac
25426   fi
25427 else
25428   CPPFLAGS="$save_CPPFLAGS"
25429 fi
25430
25431 if test x"$want_gss" = xyes; then
25432   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link against GSS-API library" >&5
25433 printf %s "checking if we can link against GSS-API library... " >&6; }
25434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25435 /* end confdefs.h.  */
25436
25437
25438 #define gss_init_sec_context innocuous_gss_init_sec_context
25439 #ifdef __STDC__
25440 # include <limits.h>
25441 #else
25442 # include <assert.h>
25443 #endif
25444 #undef gss_init_sec_context
25445 #ifdef __cplusplus
25446 extern "C"
25447 #endif
25448 char gss_init_sec_context ();
25449 #if defined __stub_gss_init_sec_context || defined __stub___gss_init_sec_context
25450 choke me
25451 #endif
25452
25453 int main (void)
25454 {
25455 return gss_init_sec_context ();
25456  ;
25457  return 0;
25458 }
25459
25460 _ACEOF
25461 if ac_fn_c_try_link "$LINENO"
25462 then :
25463
25464     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25465 printf "%s\n" "yes" >&6; }
25466
25467 else $as_nop
25468
25469     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25470 printf "%s\n" "no" >&6; }
25471     as_fn_error $? "--with-gssapi was specified, but a GSS-API library was not found." "$LINENO" 5
25472
25473 fi
25474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25475     conftest$ac_exeext conftest.$ac_ext
25476 fi
25477
25478 build_libstubgss=no
25479 if test x"$want_gss" = "xyes"; then
25480   build_libstubgss=yes
25481 fi
25482
25483  if test "x$build_libstubgss" = "xyes"; then
25484   BUILD_STUB_GSS_TRUE=
25485   BUILD_STUB_GSS_FALSE='#'
25486 else
25487   BUILD_STUB_GSS_TRUE='#'
25488   BUILD_STUB_GSS_FALSE=
25489 fi
25490
25491
25492
25493 DEFAULT_SSL_BACKEND=no
25494 VALID_DEFAULT_SSL_BACKEND=
25495
25496 # Check whether --with-default-ssl-backend was given.
25497 if test ${with_default_ssl_backend+y}
25498 then :
25499   withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
25500 fi
25501
25502 case "$DEFAULT_SSL_BACKEND" in
25503   no)
25504         ;;
25505   default|yes)
25506         as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
25507     ;;
25508   *)
25509
25510         VALID_DEFAULT_SSL_BACKEND=no
25511     ;;
25512 esac
25513
25514
25515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5
25516 printf %s "checking whether to enable Windows native SSL/TLS... " >&6; }
25517 if test "x$OPT_SCHANNEL" != xno; then
25518   ssl_msg=
25519   if test "x$OPT_SCHANNEL" != "xno"  &&
25520      test "x$curl_cv_native_windows" = "xyes"; then
25521     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25522 printf "%s\n" "yes" >&6; }
25523
25524 printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h
25525
25526     USE_SCHANNEL=1
25527
25528     ssl_msg="Schannel"
25529     test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25530     SCHANNEL_ENABLED=1
25531     # --with-schannel implies --enable-sspi
25532
25533 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
25534
25535     USE_WINDOWS_SSPI=1
25536
25537     curl_sspi_msg="enabled"
25538   else
25539     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25540 printf "%s\n" "no" >&6; }
25541   fi
25542   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25543 else
25544   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25545 printf "%s\n" "no" >&6; }
25546 fi
25547
25548
25549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
25550 printf %s "checking whether to enable Secure Transport... " >&6; }
25551 if test "x$OPT_SECURETRANSPORT" != xno; then
25552   if test "x$OPT_SECURETRANSPORT" != "xno" &&
25553      (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
25554     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25555 printf "%s\n" "yes" >&6; }
25556
25557 printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h
25558
25559     USE_SECTRANSP=1
25560
25561     ssl_msg="Secure Transport"
25562     test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25563     SECURETRANSPORT_ENABLED=1
25564     LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
25565   else
25566     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25567 printf "%s\n" "no" >&6; }
25568   fi
25569   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25570 else
25571   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25572 printf "%s\n" "no" >&6; }
25573 fi
25574
25575
25576
25577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL v5)" >&5
25578 printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL v5)... " >&6; }
25579 if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
25580   if test "x$OPT_AMISSL" != xno; then
25581     ssl_msg=
25582     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25583 /* end confdefs.h.  */
25584
25585
25586         #include <libraries/amisslmaster.h>
25587         #include <openssl/opensslv.h>
25588
25589 int main (void)
25590 {
25591
25592         #if defined(AMISSL_CURRENT_VERSION) && (AMISSL_CURRENT_VERSION >= AMISSL_V303) && \
25593             defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3) && \
25594             defined(PROTO_AMISSL_H)
25595         return 0;
25596         #else
25597         #error not AmiSSL v5 / OpenSSL 3
25598         #endif
25599
25600  ;
25601  return 0;
25602 }
25603
25604 _ACEOF
25605 if ac_fn_c_try_compile "$LINENO"
25606 then :
25607
25608       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25609 printf "%s\n" "yes" >&6; }
25610       ssl_msg="AmiSSL"
25611       test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25612       AMISSL_ENABLED=1
25613       OPENSSL_ENABLED=1
25614       # Use AmiSSL's built-in ca bundle
25615       check_for_ca_bundle=1
25616       with_ca_fallback=yes
25617       LIBS="-lamisslstubs -lamisslauto $LIBS"
25618
25619 printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h
25620
25621
25622 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
25623
25624
25625 printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
25626
25627       ac_fn_c_check_header_compile "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
25628 if test "x$ac_cv_header_openssl_x509_h" = xyes
25629 then :
25630   printf "%s\n" "#define HAVE_OPENSSL_X509_H 1" >>confdefs.h
25631
25632 fi
25633 ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
25634 if test "x$ac_cv_header_openssl_rsa_h" = xyes
25635 then :
25636   printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h
25637
25638 fi
25639 ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
25640 if test "x$ac_cv_header_openssl_crypto_h" = xyes
25641 then :
25642   printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h
25643
25644 fi
25645 ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
25646 if test "x$ac_cv_header_openssl_pem_h" = xyes
25647 then :
25648   printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h
25649
25650 fi
25651 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
25652 if test "x$ac_cv_header_openssl_ssl_h" = xyes
25653 then :
25654   printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
25655
25656 fi
25657 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
25658 if test "x$ac_cv_header_openssl_err_h" = xyes
25659 then :
25660   printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
25661
25662 fi
25663
25664                               CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
25665
25666 else $as_nop
25667
25668       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25669 printf "%s\n" "no" >&6; }
25670
25671 fi
25672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25673     test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25674   else
25675     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25676 printf "%s\n" "no" >&6; }
25677   fi
25678 else
25679   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25680 printf "%s\n" "no" >&6; }
25681 fi
25682
25683
25684
25685 if test "x$OPT_OPENSSL" != xno; then
25686   ssl_msg=
25687
25688     CLEANLDFLAGS="$LDFLAGS"
25689   CLEANCPPFLAGS="$CPPFLAGS"
25690   CLEANLIBS="$LIBS"
25691
25692     case $host in
25693     *-*-msys* | *-*-mingw*)
25694       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
25695 printf %s "checking for gdi32... " >&6; }
25696       my_ac_save_LIBS=$LIBS
25697       LIBS="-lgdi32 $LIBS"
25698       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25699 /* end confdefs.h.  */
25700
25701         #include <windef.h>
25702         #include <wingdi.h>
25703
25704 int main (void)
25705 {
25706
25707           GdiFlush();
25708
25709  ;
25710  return 0;
25711 }
25712 _ACEOF
25713 if ac_fn_c_try_link "$LINENO"
25714 then :
25715            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25716 printf "%s\n" "yes" >&6; }
25717 else $as_nop
25718            LIBS=$my_ac_save_LIBS
25719         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25720 printf "%s\n" "no" >&6; }
25721
25722 fi
25723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25724     conftest$ac_exeext conftest.$ac_ext
25725       ;;
25726   esac
25727
25728   case "$OPT_OPENSSL" in
25729   yes)
25730         PKGTEST="yes"
25731     PREFIX_OPENSSL=
25732     ;;
25733   *)
25734         PKGTEST="no"
25735     PREFIX_OPENSSL=$OPT_OPENSSL
25736
25737                 OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig"
25738     if test -f "$OPENSSL_PCDIR/openssl.pc"; then
25739       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
25740 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
25741       PKGTEST="yes"
25742     fi
25743
25744     if test "$PKGTEST" != "yes"; then
25745       # try lib64 instead
25746       OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
25747       if test -f "$OPENSSL_PCDIR/openssl.pc"; then
25748         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
25749 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
25750         PKGTEST="yes"
25751       fi
25752     fi
25753
25754     if test "$PKGTEST" != "yes"; then
25755       if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
25756         as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
25757       fi
25758     fi
25759
25760             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
25761     if test "$PREFIX_OPENSSL" != "/usr" ; then
25762       SSL_LDFLAGS="-L$LIB_OPENSSL"
25763       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
25764     fi
25765     SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
25766     ;;
25767   esac
25768
25769   if test "$PKGTEST" = "yes"; then
25770
25771
25772     if test -n "$PKG_CONFIG"; then
25773       PKGCONFIG="$PKG_CONFIG"
25774     else
25775       if test -n "$ac_tool_prefix"; then
25776   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25777 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25779 printf %s "checking for $ac_word... " >&6; }
25780 if test ${ac_cv_path_PKGCONFIG+y}
25781 then :
25782   printf %s "(cached) " >&6
25783 else $as_nop
25784   case $PKGCONFIG in
25785   [\\/]* | ?:[\\/]*)
25786   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25787   ;;
25788   *)
25789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25790 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25791 for as_dir in $as_dummy
25792 do
25793   IFS=$as_save_IFS
25794   case $as_dir in #(((
25795     '') as_dir=./ ;;
25796     */) ;;
25797     *) as_dir=$as_dir/ ;;
25798   esac
25799     for ac_exec_ext in '' $ac_executable_extensions; do
25800   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25801     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25802     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25803     break 2
25804   fi
25805 done
25806   done
25807 IFS=$as_save_IFS
25808
25809   ;;
25810 esac
25811 fi
25812 PKGCONFIG=$ac_cv_path_PKGCONFIG
25813 if test -n "$PKGCONFIG"; then
25814   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25815 printf "%s\n" "$PKGCONFIG" >&6; }
25816 else
25817   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25818 printf "%s\n" "no" >&6; }
25819 fi
25820
25821
25822 fi
25823 if test -z "$ac_cv_path_PKGCONFIG"; then
25824   ac_pt_PKGCONFIG=$PKGCONFIG
25825   # Extract the first word of "pkg-config", so it can be a program name with args.
25826 set dummy pkg-config; ac_word=$2
25827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25828 printf %s "checking for $ac_word... " >&6; }
25829 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25830 then :
25831   printf %s "(cached) " >&6
25832 else $as_nop
25833   case $ac_pt_PKGCONFIG in
25834   [\\/]* | ?:[\\/]*)
25835   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25836   ;;
25837   *)
25838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25839 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25840 for as_dir in $as_dummy
25841 do
25842   IFS=$as_save_IFS
25843   case $as_dir in #(((
25844     '') as_dir=./ ;;
25845     */) ;;
25846     *) as_dir=$as_dir/ ;;
25847   esac
25848     for ac_exec_ext in '' $ac_executable_extensions; do
25849   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25850     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25851     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25852     break 2
25853   fi
25854 done
25855   done
25856 IFS=$as_save_IFS
25857
25858   ;;
25859 esac
25860 fi
25861 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25862 if test -n "$ac_pt_PKGCONFIG"; then
25863   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25864 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25865 else
25866   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25867 printf "%s\n" "no" >&6; }
25868 fi
25869
25870   if test "x$ac_pt_PKGCONFIG" = x; then
25871     PKGCONFIG="no"
25872   else
25873     case $cross_compiling:$ac_tool_warned in
25874 yes:)
25875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25876 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25877 ac_tool_warned=yes ;;
25878 esac
25879     PKGCONFIG=$ac_pt_PKGCONFIG
25880   fi
25881 else
25882   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25883 fi
25884
25885     fi
25886
25887     if test "x$PKGCONFIG" != "xno"; then
25888       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
25889 printf %s "checking for openssl options with pkg-config... " >&6; }
25890             itexists=`
25891     if test -n "$OPENSSL_PCDIR"; then
25892       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25893       export PKG_CONFIG_LIBDIR
25894     fi
25895          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
25896
25897       if test -z "$itexists"; then
25898                         PKGCONFIG="no"
25899         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25900 printf "%s\n" "no" >&6; }
25901       else
25902         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25903 printf "%s\n" "found" >&6; }
25904       fi
25905     fi
25906
25907
25908     if test "$PKGCONFIG" != "no" ; then
25909       SSL_LIBS=`
25910     if test -n "$OPENSSL_PCDIR"; then
25911       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25912       export PKG_CONFIG_LIBDIR
25913     fi
25914          $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
25915
25916       SSL_LDFLAGS=`
25917     if test -n "$OPENSSL_PCDIR"; then
25918       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25919       export PKG_CONFIG_LIBDIR
25920     fi
25921          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
25922
25923       SSL_CPPFLAGS=`
25924     if test -n "$OPENSSL_PCDIR"; then
25925       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25926       export PKG_CONFIG_LIBDIR
25927     fi
25928          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
25929
25930
25931       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
25932 printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
25933       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
25934 printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
25935       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
25936 printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
25937
25938       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
25939
25940                                           LIBS="$SSL_LIBS $LIBS"
25941     fi
25942   fi
25943
25944     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
25945   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
25946
25947   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
25948 printf %s "checking for HMAC_Update in -lcrypto... " >&6; }
25949 if test ${ac_cv_lib_crypto_HMAC_Update+y}
25950 then :
25951   printf %s "(cached) " >&6
25952 else $as_nop
25953   ac_check_lib_save_LIBS=$LIBS
25954 LIBS="-lcrypto  $LIBS"
25955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25956 /* end confdefs.h.  */
25957
25958
25959 #ifdef __cplusplus
25960 extern "C"
25961 #endif
25962 char HMAC_Update ();
25963 int main (void)
25964 {
25965 return HMAC_Update ();
25966  ;
25967  return 0;
25968 }
25969 _ACEOF
25970 if ac_fn_c_try_link "$LINENO"
25971 then :
25972   ac_cv_lib_crypto_HMAC_Update=yes
25973 else $as_nop
25974   ac_cv_lib_crypto_HMAC_Update=no
25975 fi
25976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25977     conftest$ac_exeext conftest.$ac_ext
25978 LIBS=$ac_check_lib_save_LIBS
25979 fi
25980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
25981 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; }
25982 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes
25983 then :
25984
25985      HAVECRYPTO="yes"
25986      LIBS="-lcrypto $LIBS"
25987
25988 else $as_nop
25989
25990      if test -n "$LIB_OPENSSL" ; then
25991        LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
25992      fi
25993      if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
25994        # only set this if pkg-config wasn't used
25995        CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
25996      fi
25997      # Linking previously failed, try extra paths from --with-openssl or
25998      # pkg-config.  Use a different function name to avoid reusing the earlier
25999      # cached result.
26000      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
26001 printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
26002 if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
26003 then :
26004   printf %s "(cached) " >&6
26005 else $as_nop
26006   ac_check_lib_save_LIBS=$LIBS
26007 LIBS="-lcrypto  $LIBS"
26008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26009 /* end confdefs.h.  */
26010
26011
26012 #ifdef __cplusplus
26013 extern "C"
26014 #endif
26015 char HMAC_Init_ex ();
26016 int main (void)
26017 {
26018 return HMAC_Init_ex ();
26019  ;
26020  return 0;
26021 }
26022 _ACEOF
26023 if ac_fn_c_try_link "$LINENO"
26024 then :
26025   ac_cv_lib_crypto_HMAC_Init_ex=yes
26026 else $as_nop
26027   ac_cv_lib_crypto_HMAC_Init_ex=no
26028 fi
26029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26030     conftest$ac_exeext conftest.$ac_ext
26031 LIBS=$ac_check_lib_save_LIBS
26032 fi
26033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
26034 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
26035 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
26036 then :
26037
26038        HAVECRYPTO="yes"
26039        LIBS="-lcrypto $LIBS"
26040 else $as_nop
26041
26042
26043               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
26044 printf %s "checking OpenSSL linking with -ldl... " >&6; }
26045        LIBS="-lcrypto $CLEANLIBS -ldl"
26046        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26047 /* end confdefs.h.  */
26048
26049          #include <openssl/err.h>
26050
26051 int main (void)
26052 {
26053
26054          ERR_clear_error();
26055
26056  ;
26057  return 0;
26058 }
26059 _ACEOF
26060 if ac_fn_c_try_link "$LINENO"
26061 then :
26062
26063          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26064 printf "%s\n" "yes" >&6; }
26065          HAVECRYPTO="yes"
26066
26067 else $as_nop
26068
26069          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26070 printf "%s\n" "no" >&6; }
26071
26072          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
26073 printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
26074          LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
26075          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26076 /* end confdefs.h.  */
26077
26078
26079            #include <openssl/err.h>
26080
26081 int main (void)
26082 {
26083
26084            ERR_clear_error();
26085
26086  ;
26087  return 0;
26088 }
26089 _ACEOF
26090 if ac_fn_c_try_link "$LINENO"
26091 then :
26092
26093            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26094 printf "%s\n" "yes" >&6; }
26095            HAVECRYPTO="yes"
26096
26097 else $as_nop
26098
26099            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26100 printf "%s\n" "no" >&6; }
26101            LDFLAGS="$CLEANLDFLAGS"
26102            CPPFLAGS="$CLEANCPPFLAGS"
26103            LIBS="$CLEANLIBS"
26104
26105
26106 fi
26107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26108     conftest$ac_exeext conftest.$ac_ext
26109
26110
26111 fi
26112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26113     conftest$ac_exeext conftest.$ac_ext
26114
26115
26116 fi
26117
26118
26119 fi
26120
26121
26122   if test X"$HAVECRYPTO" = X"yes"; then
26123
26124     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26125 printf %s "checking for SSL_connect in -lssl... " >&6; }
26126 if test ${ac_cv_lib_ssl_SSL_connect+y}
26127 then :
26128   printf %s "(cached) " >&6
26129 else $as_nop
26130   ac_check_lib_save_LIBS=$LIBS
26131 LIBS="-lssl  $LIBS"
26132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26133 /* end confdefs.h.  */
26134
26135
26136 #ifdef __cplusplus
26137 extern "C"
26138 #endif
26139 char SSL_connect ();
26140 int main (void)
26141 {
26142 return SSL_connect ();
26143  ;
26144  return 0;
26145 }
26146 _ACEOF
26147 if ac_fn_c_try_link "$LINENO"
26148 then :
26149   ac_cv_lib_ssl_SSL_connect=yes
26150 else $as_nop
26151   ac_cv_lib_ssl_SSL_connect=no
26152 fi
26153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26154     conftest$ac_exeext conftest.$ac_ext
26155 LIBS=$ac_check_lib_save_LIBS
26156 fi
26157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26158 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26159 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26160 then :
26161   printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26162
26163   LIBS="-lssl $LIBS"
26164
26165 fi
26166
26167
26168     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26169                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
26170 printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
26171         OLIBS=$LIBS
26172         LIBS="-lRSAglue -lrsaref $LIBS"
26173         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26174 printf %s "checking for SSL_connect in -lssl... " >&6; }
26175 if test ${ac_cv_lib_ssl_SSL_connect+y}
26176 then :
26177   printf %s "(cached) " >&6
26178 else $as_nop
26179   ac_check_lib_save_LIBS=$LIBS
26180 LIBS="-lssl  $LIBS"
26181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26182 /* end confdefs.h.  */
26183
26184
26185 #ifdef __cplusplus
26186 extern "C"
26187 #endif
26188 char SSL_connect ();
26189 int main (void)
26190 {
26191 return SSL_connect ();
26192  ;
26193  return 0;
26194 }
26195 _ACEOF
26196 if ac_fn_c_try_link "$LINENO"
26197 then :
26198   ac_cv_lib_ssl_SSL_connect=yes
26199 else $as_nop
26200   ac_cv_lib_ssl_SSL_connect=no
26201 fi
26202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26203     conftest$ac_exeext conftest.$ac_ext
26204 LIBS=$ac_check_lib_save_LIBS
26205 fi
26206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26207 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26208 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26209 then :
26210   printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26211
26212   LIBS="-lssl $LIBS"
26213
26214 fi
26215
26216         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26217                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26218 printf "%s\n" "no" >&6; }
26219             LIBS=$OLIBS
26220         else
26221             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26222 printf "%s\n" "yes" >&6; }
26223         fi
26224
26225     else
26226
26227                    for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
26228 do :
26229   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
26230 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26231 if eval test \"x\$"$as_ac_Header"\" = x"yes"
26232 then :
26233   cat >>confdefs.h <<_ACEOF
26234 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
26235 _ACEOF
26236  ssl_msg="OpenSSL"
26237         test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26238         OPENSSL_ENABLED=1
26239
26240 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
26241
26242 fi
26243
26244 done
26245
26246       if test $ac_cv_header_openssl_x509_h = no; then
26247                                 ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default"
26248 if test "x$ac_cv_header_x509_h" = xyes
26249 then :
26250   printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h
26251
26252 fi
26253 ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default"
26254 if test "x$ac_cv_header_rsa_h" = xyes
26255 then :
26256   printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h
26257
26258 fi
26259 ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
26260 if test "x$ac_cv_header_crypto_h" = xyes
26261 then :
26262   printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h
26263
26264 fi
26265 ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default"
26266 if test "x$ac_cv_header_pem_h" = xyes
26267 then :
26268   printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h
26269
26270 fi
26271 ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default"
26272 if test "x$ac_cv_header_ssl_h" = xyes
26273 then :
26274   printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h
26275
26276 fi
26277 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
26278 if test "x$ac_cv_header_err_h" = xyes
26279 then :
26280   printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
26281
26282 fi
26283
26284
26285         if test $ac_cv_header_x509_h = yes &&
26286            test $ac_cv_header_crypto_h = yes &&
26287            test $ac_cv_header_ssl_h = yes; then
26288                     ssl_msg="OpenSSL"
26289           OPENSSL_ENABLED=1
26290         fi
26291       fi
26292     fi
26293
26294     if test X"$OPENSSL_ENABLED" != X"1"; then
26295        LIBS="$CLEANLIBS"
26296     fi
26297
26298     if test X"$OPT_OPENSSL" != Xoff &&
26299        test "$OPENSSL_ENABLED" != "1"; then
26300       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
26301     fi
26302   fi
26303
26304   if test X"$OPENSSL_ENABLED" = X"1"; then
26305
26306     ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd"
26307 if test "x$ac_cv_func_RAND_egd" = xyes
26308 then :
26309   printf "%s\n" "#define HAVE_RAND_EGD 1" >>confdefs.h
26310
26311 fi
26312
26313
26314     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
26315 printf %s "checking for BoringSSL... " >&6; }
26316     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26317 /* end confdefs.h.  */
26318
26319
26320                 #include <openssl/base.h>
26321
26322 int main (void)
26323 {
26324
26325                 #ifndef OPENSSL_IS_BORINGSSL
26326                 #error not boringssl
26327                 #endif
26328
26329  ;
26330  return 0;
26331 }
26332
26333 _ACEOF
26334 if ac_fn_c_try_compile "$LINENO"
26335 then :
26336
26337         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26338 printf "%s\n" "yes" >&6; }
26339
26340 printf "%s\n" "#define HAVE_BORINGSSL 1" >>confdefs.h
26341
26342         ssl_msg="BoringSSL"
26343
26344 else $as_nop
26345
26346         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26347 printf "%s\n" "no" >&6; }
26348
26349 fi
26350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26351
26352     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
26353 printf %s "checking for libressl... " >&6; }
26354     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26355 /* end confdefs.h.  */
26356
26357
26358 #include <openssl/opensslv.h>
26359
26360 int main (void)
26361 {
26362
26363         int dummy = LIBRESSL_VERSION_NUMBER;
26364
26365  ;
26366  return 0;
26367 }
26368
26369 _ACEOF
26370 if ac_fn_c_try_compile "$LINENO"
26371 then :
26372
26373       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26374 printf "%s\n" "yes" >&6; }
26375
26376 printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
26377
26378       ssl_msg="libressl"
26379
26380 else $as_nop
26381
26382       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26383 printf "%s\n" "no" >&6; }
26384
26385 fi
26386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26387
26388     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
26389 printf %s "checking for OpenSSL >= v3... " >&6; }
26390     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26391 /* end confdefs.h.  */
26392
26393
26394 #include <openssl/opensslv.h>
26395
26396 int main (void)
26397 {
26398
26399         #if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
26400         return 0;
26401         #else
26402         #error older than 3
26403         #endif
26404
26405  ;
26406  return 0;
26407 }
26408
26409 _ACEOF
26410 if ac_fn_c_try_compile "$LINENO"
26411 then :
26412
26413       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26414 printf "%s\n" "yes" >&6; }
26415
26416 printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
26417
26418                               CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
26419       ssl_msg="OpenSSL v3+"
26420
26421 else $as_nop
26422
26423       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26424 printf "%s\n" "no" >&6; }
26425
26426 fi
26427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26428   fi
26429
26430   if test "$OPENSSL_ENABLED" = "1"; then
26431     if test -n "$LIB_OPENSSL"; then
26432                             if test "x$cross_compiling" != "xyes"; then
26433          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
26434          export CURL_LIBRARY_PATH
26435          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
26436 printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
26437        fi
26438     fi
26439     check_for_ca_bundle=1
26440   fi
26441
26442   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26443 fi
26444
26445 if test X"$OPT_OPENSSL" != Xno &&
26446   test "$OPENSSL_ENABLED" != "1"; then
26447   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5
26448 printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;}
26449   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
26450 printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
26451   as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5
26452 fi
26453
26454
26455 if test X"$OPENSSL_ENABLED" = X"1"; then
26456
26457 # Check whether --with-egd-socket was given.
26458 if test ${with_egd_socket+y}
26459 then :
26460   withval=$with_egd_socket;  EGD_SOCKET="$withval"
26461
26462 fi
26463
26464   if test -n "$EGD_SOCKET" ; then
26465
26466 printf "%s\n" "#define EGD_SOCKET \"$EGD_SOCKET\"" >>confdefs.h
26467
26468   fi
26469
26470
26471 # Check whether --with-random was given.
26472 if test ${with_random+y}
26473 then :
26474   withval=$with_random;  RANDOM_FILE="$withval"
26475 else $as_nop
26476
26477           if test x$cross_compiling != xyes; then
26478                         as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
26479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
26480 printf %s "checking for \"/dev/urandom\"... " >&6; }
26481 if eval test \${$as_ac_File+y}
26482 then :
26483   printf %s "(cached) " >&6
26484 else $as_nop
26485   test "$cross_compiling" = yes &&
26486   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
26487 if test -r ""/dev/urandom""; then
26488   eval "$as_ac_File=yes"
26489 else
26490   eval "$as_ac_File=no"
26491 fi
26492 fi
26493 eval ac_res=\$$as_ac_File
26494                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26495 printf "%s\n" "$ac_res" >&6; }
26496 if eval test \"x\$"$as_ac_File"\" = x"yes"
26497 then :
26498    RANDOM_FILE="/dev/urandom"
26499 fi
26500
26501           else
26502             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
26503 printf "%s\n" "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
26504           fi
26505
26506
26507 fi
26508
26509   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
26510
26511
26512 printf "%s\n" "#define RANDOM_FILE \"$RANDOM_FILE\"" >>confdefs.h
26513
26514   fi
26515 fi
26516
26517 if test "$OPENSSL_ENABLED" = "1"; then
26518   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP support in OpenSSL" >&5
26519 printf %s "checking for SRP support in OpenSSL... " >&6; }
26520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26521 /* end confdefs.h.  */
26522
26523
26524 #include <openssl/ssl.h>
26525
26526 int main (void)
26527 {
26528
26529       SSL_CTX_set_srp_username(NULL, "");
26530       SSL_CTX_set_srp_password(NULL, "");
26531
26532  ;
26533  return 0;
26534 }
26535
26536 _ACEOF
26537 if ac_fn_c_try_link "$LINENO"
26538 then :
26539
26540     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26541 printf "%s\n" "yes" >&6; }
26542
26543 printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
26544
26545     HAVE_OPENSSL_SRP=1
26546
26547
26548 else $as_nop
26549
26550     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26551 printf "%s\n" "no" >&6; }
26552
26553 fi
26554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26555     conftest$ac_exeext conftest.$ac_ext
26556 fi
26557
26558 if test X"$OPENSSL_ENABLED" = X"1"; then
26559 # Check whether --enable-openssl-auto-load-config was given.
26560 if test ${enable_openssl_auto_load_config+y}
26561 then :
26562   enableval=$enable_openssl_auto_load_config;  if test X"$enableval" = X"no"; then
26563     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
26564 printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
26565
26566 printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
26567
26568   fi
26569
26570 fi
26571
26572 fi
26573
26574
26575
26576 if test "x$OPT_GNUTLS" != xno; then
26577   ssl_msg=
26578
26579   if test X"$OPT_GNUTLS" != Xno; then
26580
26581     addld=""
26582     addlib=""
26583     gtlslib=""
26584     version=""
26585     addcflags=""
26586
26587     if test "x$OPT_GNUTLS" = "xyes"; then
26588
26589     if test -n "$PKG_CONFIG"; then
26590       PKGCONFIG="$PKG_CONFIG"
26591     else
26592       if test -n "$ac_tool_prefix"; then
26593   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26594 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26596 printf %s "checking for $ac_word... " >&6; }
26597 if test ${ac_cv_path_PKGCONFIG+y}
26598 then :
26599   printf %s "(cached) " >&6
26600 else $as_nop
26601   case $PKGCONFIG in
26602   [\\/]* | ?:[\\/]*)
26603   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26604   ;;
26605   *)
26606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26607 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26608 for as_dir in $as_dummy
26609 do
26610   IFS=$as_save_IFS
26611   case $as_dir in #(((
26612     '') as_dir=./ ;;
26613     */) ;;
26614     *) as_dir=$as_dir/ ;;
26615   esac
26616     for ac_exec_ext in '' $ac_executable_extensions; do
26617   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26618     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26619     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26620     break 2
26621   fi
26622 done
26623   done
26624 IFS=$as_save_IFS
26625
26626   ;;
26627 esac
26628 fi
26629 PKGCONFIG=$ac_cv_path_PKGCONFIG
26630 if test -n "$PKGCONFIG"; then
26631   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26632 printf "%s\n" "$PKGCONFIG" >&6; }
26633 else
26634   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26635 printf "%s\n" "no" >&6; }
26636 fi
26637
26638
26639 fi
26640 if test -z "$ac_cv_path_PKGCONFIG"; then
26641   ac_pt_PKGCONFIG=$PKGCONFIG
26642   # Extract the first word of "pkg-config", so it can be a program name with args.
26643 set dummy pkg-config; ac_word=$2
26644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26645 printf %s "checking for $ac_word... " >&6; }
26646 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26647 then :
26648   printf %s "(cached) " >&6
26649 else $as_nop
26650   case $ac_pt_PKGCONFIG in
26651   [\\/]* | ?:[\\/]*)
26652   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26653   ;;
26654   *)
26655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26656 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26657 for as_dir in $as_dummy
26658 do
26659   IFS=$as_save_IFS
26660   case $as_dir in #(((
26661     '') as_dir=./ ;;
26662     */) ;;
26663     *) as_dir=$as_dir/ ;;
26664   esac
26665     for ac_exec_ext in '' $ac_executable_extensions; do
26666   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26667     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26668     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26669     break 2
26670   fi
26671 done
26672   done
26673 IFS=$as_save_IFS
26674
26675   ;;
26676 esac
26677 fi
26678 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26679 if test -n "$ac_pt_PKGCONFIG"; then
26680   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26681 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26682 else
26683   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26684 printf "%s\n" "no" >&6; }
26685 fi
26686
26687   if test "x$ac_pt_PKGCONFIG" = x; then
26688     PKGCONFIG="no"
26689   else
26690     case $cross_compiling:$ac_tool_warned in
26691 yes:)
26692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26693 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26694 ac_tool_warned=yes ;;
26695 esac
26696     PKGCONFIG=$ac_pt_PKGCONFIG
26697   fi
26698 else
26699   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26700 fi
26701
26702     fi
26703
26704     if test "x$PKGCONFIG" != "xno"; then
26705       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
26706 printf %s "checking for gnutls options with pkg-config... " >&6; }
26707             itexists=`
26708     if test -n ""; then
26709       PKG_CONFIG_LIBDIR=""
26710       export PKG_CONFIG_LIBDIR
26711     fi
26712          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
26713
26714       if test -z "$itexists"; then
26715                         PKGCONFIG="no"
26716         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26717 printf "%s\n" "no" >&6; }
26718       else
26719         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26720 printf "%s\n" "found" >&6; }
26721       fi
26722     fi
26723
26724
26725       if test "$PKGCONFIG" != "no" ; then
26726         addlib=`$PKGCONFIG --libs-only-l gnutls`
26727         addld=`$PKGCONFIG --libs-only-L gnutls`
26728         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
26729         version=`$PKGCONFIG --modversion gnutls`
26730         gtlslib=`echo $addld | $SED -e 's/^-L//'`
26731       else
26732                         check=`libgnutls-config --version 2>/dev/null`
26733         if test -n "$check"; then
26734           addlib=`libgnutls-config --libs`
26735           addcflags=`libgnutls-config --cflags`
26736           version=`libgnutls-config --version`
26737           gtlslib=`libgnutls-config --prefix`/lib$libsuff
26738         fi
26739       fi
26740     else
26741                   cfg=$OPT_GNUTLS/bin/libgnutls-config
26742       check=`$cfg --version 2>/dev/null`
26743       if test -n "$check"; then
26744         addlib=`$cfg --libs`
26745         addcflags=`$cfg --cflags`
26746         version=`$cfg --version`
26747         gtlslib=`$cfg --prefix`/lib$libsuff
26748       else
26749                 addlib=-lgnutls
26750         addld=-L$OPT_GNUTLS/lib$libsuff
26751         addcflags=-I$OPT_GNUTLS/include
26752         version="" # we just don't know
26753         gtlslib=$OPT_GNUTLS/lib$libsuff
26754       fi
26755     fi
26756
26757     if test -z "$version"; then
26758             version="unknown"
26759     fi
26760
26761     if test -n "$addlib"; then
26762
26763       CLEANLIBS="$LIBS"
26764       CLEANCPPFLAGS="$CPPFLAGS"
26765       CLEANLDFLAGS="$LDFLAGS"
26766
26767       LIBS="$addlib $LIBS"
26768       LDFLAGS="$LDFLAGS $addld"
26769       if test "$addcflags" != "-I/usr/include"; then
26770          CPPFLAGS="$CPPFLAGS $addcflags"
26771       fi
26772
26773             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
26774 printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
26775 if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y}
26776 then :
26777   printf %s "(cached) " >&6
26778 else $as_nop
26779   ac_check_lib_save_LIBS=$LIBS
26780 LIBS="-lgnutls  $LIBS"
26781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26782 /* end confdefs.h.  */
26783
26784
26785 #ifdef __cplusplus
26786 extern "C"
26787 #endif
26788 char gnutls_x509_crt_get_dn2 ();
26789 int main (void)
26790 {
26791 return gnutls_x509_crt_get_dn2 ();
26792  ;
26793  return 0;
26794 }
26795 _ACEOF
26796 if ac_fn_c_try_link "$LINENO"
26797 then :
26798   ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
26799 else $as_nop
26800   ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
26801 fi
26802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26803     conftest$ac_exeext conftest.$ac_ext
26804 LIBS=$ac_check_lib_save_LIBS
26805 fi
26806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
26807 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
26808 if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes
26809 then :
26810
26811
26812 printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h
26813
26814        USE_GNUTLS=1
26815
26816        GNUTLS_ENABLED=1
26817        USE_GNUTLS="yes"
26818        ssl_msg="GnuTLS"
26819        test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26820
26821 else $as_nop
26822
26823          LIBS="$CLEANLIBS"
26824          CPPFLAGS="$CLEANCPPFLAGS"
26825
26826 fi
26827
26828
26829       if test "x$USE_GNUTLS" = "xyes"; then
26830         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
26831 printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;}
26832         check_for_ca_bundle=1
26833         if test -n "$gtlslib"; then
26834                                                   if test "x$cross_compiling" != "xyes"; then
26835             CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
26836             export CURL_LIBRARY_PATH
26837             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
26838 printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
26839           fi
26840         fi
26841       fi
26842
26843     fi
26844
26845   fi
26846   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26847 fi
26848
26849
26850 if test "$GNUTLS_ENABLED" = "1"; then
26851   USE_GNUTLS_NETTLE=
26852   # First check if we can detect either crypto library via transitive linking
26853   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
26854 printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; }
26855 if test ${ac_cv_lib_gnutls_nettle_MD5Init+y}
26856 then :
26857   printf %s "(cached) " >&6
26858 else $as_nop
26859   ac_check_lib_save_LIBS=$LIBS
26860 LIBS="-lgnutls  $LIBS"
26861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26862 /* end confdefs.h.  */
26863
26864
26865 #ifdef __cplusplus
26866 extern "C"
26867 #endif
26868 char nettle_MD5Init ();
26869 int main (void)
26870 {
26871 return nettle_MD5Init ();
26872  ;
26873  return 0;
26874 }
26875 _ACEOF
26876 if ac_fn_c_try_link "$LINENO"
26877 then :
26878   ac_cv_lib_gnutls_nettle_MD5Init=yes
26879 else $as_nop
26880   ac_cv_lib_gnutls_nettle_MD5Init=no
26881 fi
26882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26883     conftest$ac_exeext conftest.$ac_ext
26884 LIBS=$ac_check_lib_save_LIBS
26885 fi
26886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
26887 printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
26888 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes
26889 then :
26890    USE_GNUTLS_NETTLE=1
26891 fi
26892
26893
26894   # If not, try linking directly to both of them to see if they are available
26895   if test "$USE_GNUTLS_NETTLE" = ""; then
26896     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
26897 printf %s "checking for nettle_MD5Init in -lnettle... " >&6; }
26898 if test ${ac_cv_lib_nettle_nettle_MD5Init+y}
26899 then :
26900   printf %s "(cached) " >&6
26901 else $as_nop
26902   ac_check_lib_save_LIBS=$LIBS
26903 LIBS="-lnettle  $LIBS"
26904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26905 /* end confdefs.h.  */
26906
26907
26908 #ifdef __cplusplus
26909 extern "C"
26910 #endif
26911 char nettle_MD5Init ();
26912 int main (void)
26913 {
26914 return nettle_MD5Init ();
26915  ;
26916  return 0;
26917 }
26918 _ACEOF
26919 if ac_fn_c_try_link "$LINENO"
26920 then :
26921   ac_cv_lib_nettle_nettle_MD5Init=yes
26922 else $as_nop
26923   ac_cv_lib_nettle_nettle_MD5Init=no
26924 fi
26925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26926     conftest$ac_exeext conftest.$ac_ext
26927 LIBS=$ac_check_lib_save_LIBS
26928 fi
26929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
26930 printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
26931 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes
26932 then :
26933    USE_GNUTLS_NETTLE=1
26934 fi
26935
26936   fi
26937   if test "$USE_GNUTLS_NETTLE" = ""; then
26938     as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5
26939   fi
26940   LIBS="-lnettle $LIBS"
26941 fi
26942
26943 if test "$GNUTLS_ENABLED" = "1"; then
26944   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
26945 printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
26946 if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y}
26947 then :
26948   printf %s "(cached) " >&6
26949 else $as_nop
26950   ac_check_lib_save_LIBS=$LIBS
26951 LIBS="-lgnutls  $LIBS"
26952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26953 /* end confdefs.h.  */
26954
26955
26956 #ifdef __cplusplus
26957 extern "C"
26958 #endif
26959 char gnutls_srp_verifier ();
26960 int main (void)
26961 {
26962 return gnutls_srp_verifier ();
26963  ;
26964  return 0;
26965 }
26966 _ACEOF
26967 if ac_fn_c_try_link "$LINENO"
26968 then :
26969   ac_cv_lib_gnutls_gnutls_srp_verifier=yes
26970 else $as_nop
26971   ac_cv_lib_gnutls_gnutls_srp_verifier=no
26972 fi
26973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26974     conftest$ac_exeext conftest.$ac_ext
26975 LIBS=$ac_check_lib_save_LIBS
26976 fi
26977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
26978 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
26979 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes
26980 then :
26981
26982
26983 printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
26984
26985      HAVE_GNUTLS_SRP=1
26986
26987
26988 fi
26989
26990 fi
26991
26992
26993
26994
26995 if test "x$OPT_MBEDTLS" != xno; then
26996   _cppflags=$CPPFLAGS
26997   _ldflags=$LDFLAGS
26998   ssl_msg=
26999
27000   if test X"$OPT_MBEDTLS" != Xno; then
27001
27002     if test "$OPT_MBEDTLS" = "yes"; then
27003       OPT_MBEDTLS=""
27004     fi
27005
27006     if test -z "$OPT_MBEDTLS" ; then
27007
27008       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
27009 printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
27010 if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y}
27011 then :
27012   printf %s "(cached) " >&6
27013 else $as_nop
27014   ac_check_lib_save_LIBS=$LIBS
27015 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27017 /* end confdefs.h.  */
27018
27019
27020 #ifdef __cplusplus
27021 extern "C"
27022 #endif
27023 char mbedtls_havege_init ();
27024 int main (void)
27025 {
27026 return mbedtls_havege_init ();
27027  ;
27028  return 0;
27029 }
27030 _ACEOF
27031 if ac_fn_c_try_link "$LINENO"
27032 then :
27033   ac_cv_lib_mbedtls_mbedtls_havege_init=yes
27034 else $as_nop
27035   ac_cv_lib_mbedtls_mbedtls_havege_init=no
27036 fi
27037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27038     conftest$ac_exeext conftest.$ac_ext
27039 LIBS=$ac_check_lib_save_LIBS
27040 fi
27041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
27042 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
27043 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes
27044 then :
27045
27046
27047 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27048
27049          USE_MBEDTLS=1
27050
27051          MBEDTLS_ENABLED=1
27052          USE_MBEDTLS="yes"
27053          ssl_msg="mbedTLS"
27054          test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27055
27056 fi
27057
27058     fi
27059
27060     addld=""
27061     addlib=""
27062     addcflags=""
27063     mbedtlslib=""
27064
27065     if test "x$USE_MBEDTLS" != "xyes"; then
27066             addld=-L$OPT_MBEDTLS/lib$libsuff
27067       addcflags=-I$OPT_MBEDTLS/include
27068       mbedtlslib=$OPT_MBEDTLS/lib$libsuff
27069
27070       LDFLAGS="$LDFLAGS $addld"
27071       if test "$addcflags" != "-I/usr/include"; then
27072          CPPFLAGS="$CPPFLAGS $addcflags"
27073       fi
27074
27075       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
27076 printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
27077 if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y}
27078 then :
27079   printf %s "(cached) " >&6
27080 else $as_nop
27081   ac_check_lib_save_LIBS=$LIBS
27082 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h.  */
27085
27086
27087 #ifdef __cplusplus
27088 extern "C"
27089 #endif
27090 char mbedtls_ssl_init ();
27091 int main (void)
27092 {
27093 return mbedtls_ssl_init ();
27094  ;
27095  return 0;
27096 }
27097 _ACEOF
27098 if ac_fn_c_try_link "$LINENO"
27099 then :
27100   ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
27101 else $as_nop
27102   ac_cv_lib_mbedtls_mbedtls_ssl_init=no
27103 fi
27104 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27105     conftest$ac_exeext conftest.$ac_ext
27106 LIBS=$ac_check_lib_save_LIBS
27107 fi
27108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
27109 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
27110 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes
27111 then :
27112
27113
27114 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27115
27116        USE_MBEDTLS=1
27117
27118        MBEDTLS_ENABLED=1
27119        USE_MBEDTLS="yes"
27120        ssl_msg="mbedTLS"
27121        test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27122
27123 else $as_nop
27124
27125          CPPFLAGS=$_cppflags
27126          LDFLAGS=$_ldflags
27127
27128 fi
27129
27130     fi
27131
27132     if test "x$USE_MBEDTLS" = "xyes"; then
27133       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
27134 printf "%s\n" "$as_me: detected mbedTLS" >&6;}
27135       check_for_ca_bundle=1
27136
27137       LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27138
27139       if test -n "$mbedtlslib"; then
27140                                         if test "x$cross_compiling" != "xyes"; then
27141           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
27142           export CURL_LIBRARY_PATH
27143           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
27144 printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
27145         fi
27146       fi
27147     fi
27148
27149   fi
27150   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27151 fi
27152
27153
27154
27155
27156 case "$OPT_WOLFSSL" in
27157   yes|no)
27158     wolfpkg=""
27159     ;;
27160   *)
27161     wolfpkg="$withval/lib/pkgconfig"
27162     ;;
27163 esac
27164
27165 if test "x$OPT_WOLFSSL" != xno; then
27166   _cppflags=$CPPFLAGS
27167   _ldflags=$LDFLAGS
27168
27169   ssl_msg=
27170
27171   if test X"$OPT_WOLFSSL" != Xno; then
27172
27173     if test "$OPT_WOLFSSL" = "yes"; then
27174       OPT_WOLFSSL=""
27175     fi
27176
27177
27178     if test -n "$PKG_CONFIG"; then
27179       PKGCONFIG="$PKG_CONFIG"
27180     else
27181       if test -n "$ac_tool_prefix"; then
27182   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27183 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27185 printf %s "checking for $ac_word... " >&6; }
27186 if test ${ac_cv_path_PKGCONFIG+y}
27187 then :
27188   printf %s "(cached) " >&6
27189 else $as_nop
27190   case $PKGCONFIG in
27191   [\\/]* | ?:[\\/]*)
27192   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27193   ;;
27194   *)
27195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27196 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27197 for as_dir in $as_dummy
27198 do
27199   IFS=$as_save_IFS
27200   case $as_dir in #(((
27201     '') as_dir=./ ;;
27202     */) ;;
27203     *) as_dir=$as_dir/ ;;
27204   esac
27205     for ac_exec_ext in '' $ac_executable_extensions; do
27206   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27207     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27208     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27209     break 2
27210   fi
27211 done
27212   done
27213 IFS=$as_save_IFS
27214
27215   ;;
27216 esac
27217 fi
27218 PKGCONFIG=$ac_cv_path_PKGCONFIG
27219 if test -n "$PKGCONFIG"; then
27220   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27221 printf "%s\n" "$PKGCONFIG" >&6; }
27222 else
27223   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27224 printf "%s\n" "no" >&6; }
27225 fi
27226
27227
27228 fi
27229 if test -z "$ac_cv_path_PKGCONFIG"; then
27230   ac_pt_PKGCONFIG=$PKGCONFIG
27231   # Extract the first word of "pkg-config", so it can be a program name with args.
27232 set dummy pkg-config; ac_word=$2
27233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27234 printf %s "checking for $ac_word... " >&6; }
27235 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27236 then :
27237   printf %s "(cached) " >&6
27238 else $as_nop
27239   case $ac_pt_PKGCONFIG in
27240   [\\/]* | ?:[\\/]*)
27241   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27242   ;;
27243   *)
27244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27245 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27246 for as_dir in $as_dummy
27247 do
27248   IFS=$as_save_IFS
27249   case $as_dir in #(((
27250     '') as_dir=./ ;;
27251     */) ;;
27252     *) as_dir=$as_dir/ ;;
27253   esac
27254     for ac_exec_ext in '' $ac_executable_extensions; do
27255   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27256     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27257     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27258     break 2
27259   fi
27260 done
27261   done
27262 IFS=$as_save_IFS
27263
27264   ;;
27265 esac
27266 fi
27267 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27268 if test -n "$ac_pt_PKGCONFIG"; then
27269   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27270 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27271 else
27272   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27273 printf "%s\n" "no" >&6; }
27274 fi
27275
27276   if test "x$ac_pt_PKGCONFIG" = x; then
27277     PKGCONFIG="no"
27278   else
27279     case $cross_compiling:$ac_tool_warned in
27280 yes:)
27281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27282 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27283 ac_tool_warned=yes ;;
27284 esac
27285     PKGCONFIG=$ac_pt_PKGCONFIG
27286   fi
27287 else
27288   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27289 fi
27290
27291     fi
27292
27293     if test "x$PKGCONFIG" != "xno"; then
27294       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
27295 printf %s "checking for wolfssl options with pkg-config... " >&6; }
27296             itexists=`
27297     if test -n "$wolfpkg"; then
27298       PKG_CONFIG_LIBDIR="$wolfpkg"
27299       export PKG_CONFIG_LIBDIR
27300     fi
27301          $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
27302
27303       if test -z "$itexists"; then
27304                         PKGCONFIG="no"
27305         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27306 printf "%s\n" "no" >&6; }
27307       else
27308         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27309 printf "%s\n" "found" >&6; }
27310       fi
27311     fi
27312
27313     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
27314 printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;}
27315
27316     addld=""
27317     addlib=""
27318     addcflags=""
27319     if test "$PKGCONFIG" != "no" ; then
27320       addlib=`
27321     if test -n "$wolfpkg"; then
27322       PKG_CONFIG_LIBDIR="$wolfpkg"
27323       export PKG_CONFIG_LIBDIR
27324     fi
27325
27326         $PKGCONFIG --libs-only-l wolfssl`
27327       addld=`
27328     if test -n "$wolfpkg"; then
27329       PKG_CONFIG_LIBDIR="$wolfpkg"
27330       export PKG_CONFIG_LIBDIR
27331     fi
27332
27333         $PKGCONFIG --libs-only-L wolfssl`
27334       addcflags=`
27335     if test -n "$wolfpkg"; then
27336       PKG_CONFIG_LIBDIR="$wolfpkg"
27337       export PKG_CONFIG_LIBDIR
27338     fi
27339
27340         $PKGCONFIG --cflags-only-I wolfssl`
27341       version=`
27342     if test -n "$wolfpkg"; then
27343       PKG_CONFIG_LIBDIR="$wolfpkg"
27344       export PKG_CONFIG_LIBDIR
27345     fi
27346
27347         $PKGCONFIG --modversion wolfssl`
27348       wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
27349     else
27350       addlib=-lwolfssl
27351             if test -n "$OPT_WOLFSSL"; then
27352         addld=-L$OPT_WOLFSSL/lib$libsuff
27353         addcflags=-I$OPT_WOLFSSL/include
27354         wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
27355       fi
27356     fi
27357
27358     if test "x$USE_WOLFSSL" != "xyes"; then
27359
27360       LDFLAGS="$LDFLAGS $addld"
27361       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
27362 printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;}
27363       if test "$addcflags" != "-I/usr/include"; then
27364          CPPFLAGS="$CPPFLAGS $addcflags"
27365          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
27366 printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;}
27367       fi
27368
27369       my_ac_save_LIBS="$LIBS"
27370       LIBS="$addlib $LIBS"
27371       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
27372 printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;}
27373
27374       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
27375 printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; }
27376       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27377 /* end confdefs.h.  */
27378
27379
27380 /* These aren't needed for detection and confuse WolfSSL.
27381    They are set up properly later if it is detected.  */
27382 #undef SIZEOF_LONG
27383 #undef SIZEOF_LONG_LONG
27384 #include <wolfssl/options.h>
27385 #include <wolfssl/ssl.h>
27386
27387 int main (void)
27388 {
27389
27390           return wolfSSL_Init();
27391
27392  ;
27393  return 0;
27394 }
27395
27396 _ACEOF
27397 if ac_fn_c_try_link "$LINENO"
27398 then :
27399
27400          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27401 printf "%s\n" "yes" >&6; }
27402
27403 printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h
27404
27405          USE_WOLFSSL=1
27406
27407          WOLFSSL_ENABLED=1
27408          USE_WOLFSSL="yes"
27409          ssl_msg="WolfSSL"
27410          test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27411
27412 else $as_nop
27413
27414          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27415 printf "%s\n" "no" >&6; }
27416          CPPFLAGS=$_cppflags
27417          LDFLAGS=$_ldflags
27418          wolfssllibpath=""
27419
27420 fi
27421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27422     conftest$ac_exeext conftest.$ac_ext
27423       LIBS="$my_ac_save_LIBS"
27424     fi
27425
27426     if test "x$USE_WOLFSSL" = "xyes"; then
27427       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
27428 printf "%s\n" "$as_me: detected wolfSSL" >&6;}
27429       check_for_ca_bundle=1
27430
27431
27432
27433   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
27434 printf %s "checking size of long long... " >&6; }
27435   r=0
27436     for typesize in 8 4 2 16 1; do
27437      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27438 /* end confdefs.h.  */
27439
27440 #include <sys/types.h>
27441
27442
27443 int main (void)
27444 {
27445 switch(0) {
27446        case 0:
27447        case (sizeof(long long) == $typesize):;
27448      }
27449
27450  ;
27451  return 0;
27452 }
27453 _ACEOF
27454 if ac_fn_c_try_compile "$LINENO"
27455 then :
27456
27457        r=$typesize
27458 else $as_nop
27459
27460        r=0
27461 fi
27462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27463         if test $r -gt 0; then
27464       break;
27465     fi
27466   done
27467   if test $r -eq 0; then
27468     as_fn_error $? "Failed to find size of long long" "$LINENO" 5
27469   fi
27470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
27471 printf "%s\n" "$r" >&6; }
27472     tname=$(echo "ac_cv_sizeof_long long" | tr A-Z a-z | tr " " "_")
27473   eval "$tname=$r"
27474
27475
27476 printf "%s\n" "#define SIZEOF_LONG_LONG $r" >>confdefs.h
27477
27478
27479
27480
27481       LIBS="$addlib -lm $LIBS"
27482
27483                         ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate"
27484 if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes
27485 then :
27486   printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h
27487
27488 fi
27489 ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN"
27490 if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes
27491 then :
27492   printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h
27493
27494 fi
27495
27496
27497                   ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
27498 if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes
27499 then :
27500
27501
27502 printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
27503
27504             WOLFSSL_NTLM=1
27505
27506
27507 fi
27508
27509
27510       if test -n "$wolfssllibpath"; then
27511                                         if test "x$cross_compiling" != "xyes"; then
27512           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
27513           export CURL_LIBRARY_PATH
27514           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
27515 printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
27516         fi
27517       fi
27518     else
27519         as_fn_error $? "--with-wolfssl but wolfSSL was not found or doesn't work" "$LINENO" 5
27520     fi
27521
27522   fi
27523   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27524 fi
27525
27526
27527
27528
27529 if test "x$OPT_BEARSSL" != xno; then
27530   _cppflags=$CPPFLAGS
27531   _ldflags=$LDFLAGS
27532   ssl_msg=
27533
27534   if test X"$OPT_BEARSSL" != Xno; then
27535
27536     if test "$OPT_BEARSSL" = "yes"; then
27537       OPT_BEARSSL=""
27538     fi
27539
27540     if test -z "$OPT_BEARSSL" ; then
27541
27542       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
27543 printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
27544 if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
27545 then :
27546   printf %s "(cached) " >&6
27547 else $as_nop
27548   ac_check_lib_save_LIBS=$LIBS
27549 LIBS="-lbearssl -lbearssl $LIBS"
27550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27551 /* end confdefs.h.  */
27552
27553
27554 #ifdef __cplusplus
27555 extern "C"
27556 #endif
27557 char br_ssl_client_init_full ();
27558 int main (void)
27559 {
27560 return br_ssl_client_init_full ();
27561  ;
27562  return 0;
27563 }
27564 _ACEOF
27565 if ac_fn_c_try_link "$LINENO"
27566 then :
27567   ac_cv_lib_bearssl_br_ssl_client_init_full=yes
27568 else $as_nop
27569   ac_cv_lib_bearssl_br_ssl_client_init_full=no
27570 fi
27571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27572     conftest$ac_exeext conftest.$ac_ext
27573 LIBS=$ac_check_lib_save_LIBS
27574 fi
27575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
27576 printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
27577 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
27578 then :
27579
27580
27581 printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
27582
27583          USE_BEARSSL=1
27584
27585          BEARSSL_ENABLED=1
27586          USE_BEARSSL="yes"
27587          ssl_msg="BearSSL"
27588          test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27589
27590 fi
27591
27592     fi
27593
27594     addld=""
27595     addlib=""
27596     addcflags=""
27597     bearssllib=""
27598
27599     if test "x$USE_BEARSSL" != "xyes"; then
27600             addld=-L$OPT_BEARSSL/lib$libsuff
27601       addcflags=-I$OPT_BEARSSL/include
27602       bearssllib=$OPT_BEARSSL/lib$libsuff
27603
27604       LDFLAGS="$LDFLAGS $addld"
27605       if test "$addcflags" != "-I/usr/include"; then
27606          CPPFLAGS="$CPPFLAGS $addcflags"
27607       fi
27608
27609       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
27610 printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
27611 if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
27612 then :
27613   printf %s "(cached) " >&6
27614 else $as_nop
27615   ac_check_lib_save_LIBS=$LIBS
27616 LIBS="-lbearssl -lbearssl $LIBS"
27617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27618 /* end confdefs.h.  */
27619
27620
27621 #ifdef __cplusplus
27622 extern "C"
27623 #endif
27624 char br_ssl_client_init_full ();
27625 int main (void)
27626 {
27627 return br_ssl_client_init_full ();
27628  ;
27629  return 0;
27630 }
27631 _ACEOF
27632 if ac_fn_c_try_link "$LINENO"
27633 then :
27634   ac_cv_lib_bearssl_br_ssl_client_init_full=yes
27635 else $as_nop
27636   ac_cv_lib_bearssl_br_ssl_client_init_full=no
27637 fi
27638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27639     conftest$ac_exeext conftest.$ac_ext
27640 LIBS=$ac_check_lib_save_LIBS
27641 fi
27642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
27643 printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
27644 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
27645 then :
27646
27647
27648 printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
27649
27650        USE_BEARSSL=1
27651
27652        BEARSSL_ENABLED=1
27653        USE_BEARSSL="yes"
27654        ssl_msg="BearSSL"
27655        test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27656
27657 else $as_nop
27658
27659          CPPFLAGS=$_cppflags
27660          LDFLAGS=$_ldflags
27661
27662 fi
27663
27664     fi
27665
27666     if test "x$USE_BEARSSL" = "xyes"; then
27667       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
27668 printf "%s\n" "$as_me: detected BearSSL" >&6;}
27669       check_for_ca_bundle=1
27670
27671       LIBS="-lbearssl $LIBS"
27672
27673       if test -n "$bearssllib"; then
27674                                         if test "x$cross_compiling" != "xyes"; then
27675           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
27676           export CURL_LIBRARY_PATH
27677           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
27678 printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
27679         fi
27680       fi
27681     fi
27682
27683   fi
27684   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27685 fi
27686
27687
27688
27689 if test "x$OPT_RUSTLS" != xno; then
27690   _cppflags=$CPPFLAGS
27691   _ldflags=$LDFLAGS
27692   ssl_msg=
27693
27694   if test X"$OPT_RUSTLS" != Xno; then
27695
27696     if test "$OPT_RUSTLS" = "yes"; then
27697       OPT_RUSTLS=""
27698     fi
27699
27700     if test -z "$OPT_RUSTLS" ; then
27701
27702       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_client_session_read in -lrustls" >&5
27703 printf %s "checking for rustls_client_session_read in -lrustls... " >&6; }
27704 if test ${ac_cv_lib_rustls_rustls_client_session_read+y}
27705 then :
27706   printf %s "(cached) " >&6
27707 else $as_nop
27708   ac_check_lib_save_LIBS=$LIBS
27709 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
27710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27711 /* end confdefs.h.  */
27712
27713
27714 #ifdef __cplusplus
27715 extern "C"
27716 #endif
27717 char rustls_client_session_read ();
27718 int main (void)
27719 {
27720 return rustls_client_session_read ();
27721  ;
27722  return 0;
27723 }
27724 _ACEOF
27725 if ac_fn_c_try_link "$LINENO"
27726 then :
27727   ac_cv_lib_rustls_rustls_client_session_read=yes
27728 else $as_nop
27729   ac_cv_lib_rustls_rustls_client_session_read=no
27730 fi
27731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27732     conftest$ac_exeext conftest.$ac_ext
27733 LIBS=$ac_check_lib_save_LIBS
27734 fi
27735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_client_session_read" >&5
27736 printf "%s\n" "$ac_cv_lib_rustls_rustls_client_session_read" >&6; }
27737 if test "x$ac_cv_lib_rustls_rustls_client_session_read" = xyes
27738 then :
27739
27740
27741 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
27742
27743          USE_RUSTLS=1
27744
27745          RUSTLS_ENABLED=1
27746          USE_RUSTLS="yes"
27747          ssl_msg="rustls"
27748          test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27749
27750 fi
27751
27752     fi
27753
27754     if test "x$USE_RUSTLS" != "xyes"; then
27755             addld=-L$OPT_RUSTLS/lib$libsuff
27756       addcflags=-I$OPT_RUSTLS/include
27757       rustlslib=$OPT_RUSTLS/lib$libsuff
27758
27759       LDFLAGS="$LDFLAGS $addld"
27760       if test "$addcflags" != "-I/usr/include"; then
27761          CPPFLAGS="$CPPFLAGS $addcflags"
27762       fi
27763
27764       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lrustls" >&5
27765 printf %s "checking for rustls_connection_read in -lrustls... " >&6; }
27766 if test ${ac_cv_lib_rustls_rustls_connection_read+y}
27767 then :
27768   printf %s "(cached) " >&6
27769 else $as_nop
27770   ac_check_lib_save_LIBS=$LIBS
27771 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
27772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27773 /* end confdefs.h.  */
27774
27775
27776 #ifdef __cplusplus
27777 extern "C"
27778 #endif
27779 char rustls_connection_read ();
27780 int main (void)
27781 {
27782 return rustls_connection_read ();
27783  ;
27784  return 0;
27785 }
27786 _ACEOF
27787 if ac_fn_c_try_link "$LINENO"
27788 then :
27789   ac_cv_lib_rustls_rustls_connection_read=yes
27790 else $as_nop
27791   ac_cv_lib_rustls_rustls_connection_read=no
27792 fi
27793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27794     conftest$ac_exeext conftest.$ac_ext
27795 LIBS=$ac_check_lib_save_LIBS
27796 fi
27797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_connection_read" >&5
27798 printf "%s\n" "$ac_cv_lib_rustls_rustls_connection_read" >&6; }
27799 if test "x$ac_cv_lib_rustls_rustls_connection_read" = xyes
27800 then :
27801
27802
27803 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
27804
27805        USE_RUSTLS=1
27806
27807        RUSTLS_ENABLED=1
27808        USE_RUSTLS="yes"
27809        ssl_msg="rustls"
27810        test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27811
27812 else $as_nop
27813   as_fn_error $? "--with-rustls was specified but could not find rustls." "$LINENO" 5
27814 fi
27815
27816     fi
27817
27818     if test "x$USE_RUSTLS" = "xyes"; then
27819       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected rustls" >&5
27820 printf "%s\n" "$as_me: detected rustls" >&6;}
27821       check_for_ca_bundle=1
27822
27823       LIBS="-lrustls -lpthread -ldl -lm $LIBS"
27824
27825       if test -n "$rustlslib"; then
27826                                         if test "x$cross_compiling" != "xyes"; then
27827           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$rustlslib"
27828           export CURL_LIBRARY_PATH
27829           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $rustlslib to CURL_LIBRARY_PATH" >&5
27830 printf "%s\n" "$as_me: Added $rustlslib to CURL_LIBRARY_PATH" >&6;}
27831         fi
27832       fi
27833     fi
27834
27835   fi
27836   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27837 fi
27838
27839
27840 if test "x$OPT_NSS" != xno; then
27841   ssl_msg=
27842
27843   if test X"$OPT_NSS" != Xno; then
27844
27845     addld=""
27846     addlib=""
27847     addcflags=""
27848     nssprefix=""
27849     version=""
27850
27851     if test "x$OPT_NSS" = "xyes"; then
27852
27853
27854     if test -n "$PKG_CONFIG"; then
27855       PKGCONFIG="$PKG_CONFIG"
27856     else
27857       if test -n "$ac_tool_prefix"; then
27858   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27859 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27861 printf %s "checking for $ac_word... " >&6; }
27862 if test ${ac_cv_path_PKGCONFIG+y}
27863 then :
27864   printf %s "(cached) " >&6
27865 else $as_nop
27866   case $PKGCONFIG in
27867   [\\/]* | ?:[\\/]*)
27868   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27869   ;;
27870   *)
27871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27872 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27873 for as_dir in $as_dummy
27874 do
27875   IFS=$as_save_IFS
27876   case $as_dir in #(((
27877     '') as_dir=./ ;;
27878     */) ;;
27879     *) as_dir=$as_dir/ ;;
27880   esac
27881     for ac_exec_ext in '' $ac_executable_extensions; do
27882   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27883     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27884     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27885     break 2
27886   fi
27887 done
27888   done
27889 IFS=$as_save_IFS
27890
27891   ;;
27892 esac
27893 fi
27894 PKGCONFIG=$ac_cv_path_PKGCONFIG
27895 if test -n "$PKGCONFIG"; then
27896   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27897 printf "%s\n" "$PKGCONFIG" >&6; }
27898 else
27899   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27900 printf "%s\n" "no" >&6; }
27901 fi
27902
27903
27904 fi
27905 if test -z "$ac_cv_path_PKGCONFIG"; then
27906   ac_pt_PKGCONFIG=$PKGCONFIG
27907   # Extract the first word of "pkg-config", so it can be a program name with args.
27908 set dummy pkg-config; ac_word=$2
27909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27910 printf %s "checking for $ac_word... " >&6; }
27911 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27912 then :
27913   printf %s "(cached) " >&6
27914 else $as_nop
27915   case $ac_pt_PKGCONFIG in
27916   [\\/]* | ?:[\\/]*)
27917   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27918   ;;
27919   *)
27920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27921 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27922 for as_dir in $as_dummy
27923 do
27924   IFS=$as_save_IFS
27925   case $as_dir in #(((
27926     '') as_dir=./ ;;
27927     */) ;;
27928     *) as_dir=$as_dir/ ;;
27929   esac
27930     for ac_exec_ext in '' $ac_executable_extensions; do
27931   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27932     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27933     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27934     break 2
27935   fi
27936 done
27937   done
27938 IFS=$as_save_IFS
27939
27940   ;;
27941 esac
27942 fi
27943 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27944 if test -n "$ac_pt_PKGCONFIG"; then
27945   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27946 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27947 else
27948   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27949 printf "%s\n" "no" >&6; }
27950 fi
27951
27952   if test "x$ac_pt_PKGCONFIG" = x; then
27953     PKGCONFIG="no"
27954   else
27955     case $cross_compiling:$ac_tool_warned in
27956 yes:)
27957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27958 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27959 ac_tool_warned=yes ;;
27960 esac
27961     PKGCONFIG=$ac_pt_PKGCONFIG
27962   fi
27963 else
27964   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27965 fi
27966
27967     fi
27968
27969     if test "x$PKGCONFIG" != "xno"; then
27970       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
27971 printf %s "checking for nss options with pkg-config... " >&6; }
27972             itexists=`
27973     if test -n ""; then
27974       PKG_CONFIG_LIBDIR=""
27975       export PKG_CONFIG_LIBDIR
27976     fi
27977          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
27978
27979       if test -z "$itexists"; then
27980                         PKGCONFIG="no"
27981         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27982 printf "%s\n" "no" >&6; }
27983       else
27984         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27985 printf "%s\n" "found" >&6; }
27986       fi
27987     fi
27988
27989
27990       if test "$PKGCONFIG" != "no" ; then
27991         addlib=`$PKGCONFIG --libs nss`
27992         addcflags=`$PKGCONFIG --cflags nss`
27993         version=`$PKGCONFIG --modversion nss`
27994         nssprefix=`$PKGCONFIG --variable=prefix nss`
27995       else
27996
27997         check=`nss-config --version 2>/dev/null`
27998         if test -n "$check"; then
27999           addlib=`nss-config --libs`
28000           addcflags=`nss-config --cflags`
28001           version=`nss-config --version`
28002           nssprefix=`nss-config --prefix`
28003         else
28004           addlib="-lnss3"
28005           addcflags=""
28006           version="unknown"
28007         fi
28008       fi
28009     else
28010       NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
28011       if test -f "$NSS_PCDIR/nss.pc"; then
28012
28013     if test -n "$PKG_CONFIG"; then
28014       PKGCONFIG="$PKG_CONFIG"
28015     else
28016       if test -n "$ac_tool_prefix"; then
28017   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28018 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28020 printf %s "checking for $ac_word... " >&6; }
28021 if test ${ac_cv_path_PKGCONFIG+y}
28022 then :
28023   printf %s "(cached) " >&6
28024 else $as_nop
28025   case $PKGCONFIG in
28026   [\\/]* | ?:[\\/]*)
28027   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28028   ;;
28029   *)
28030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28031 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28032 for as_dir in $as_dummy
28033 do
28034   IFS=$as_save_IFS
28035   case $as_dir in #(((
28036     '') as_dir=./ ;;
28037     */) ;;
28038     *) as_dir=$as_dir/ ;;
28039   esac
28040     for ac_exec_ext in '' $ac_executable_extensions; do
28041   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28042     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28043     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28044     break 2
28045   fi
28046 done
28047   done
28048 IFS=$as_save_IFS
28049
28050   ;;
28051 esac
28052 fi
28053 PKGCONFIG=$ac_cv_path_PKGCONFIG
28054 if test -n "$PKGCONFIG"; then
28055   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28056 printf "%s\n" "$PKGCONFIG" >&6; }
28057 else
28058   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28059 printf "%s\n" "no" >&6; }
28060 fi
28061
28062
28063 fi
28064 if test -z "$ac_cv_path_PKGCONFIG"; then
28065   ac_pt_PKGCONFIG=$PKGCONFIG
28066   # Extract the first word of "pkg-config", so it can be a program name with args.
28067 set dummy pkg-config; ac_word=$2
28068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28069 printf %s "checking for $ac_word... " >&6; }
28070 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28071 then :
28072   printf %s "(cached) " >&6
28073 else $as_nop
28074   case $ac_pt_PKGCONFIG in
28075   [\\/]* | ?:[\\/]*)
28076   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28077   ;;
28078   *)
28079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28080 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28081 for as_dir in $as_dummy
28082 do
28083   IFS=$as_save_IFS
28084   case $as_dir in #(((
28085     '') as_dir=./ ;;
28086     */) ;;
28087     *) as_dir=$as_dir/ ;;
28088   esac
28089     for ac_exec_ext in '' $ac_executable_extensions; do
28090   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28091     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28092     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28093     break 2
28094   fi
28095 done
28096   done
28097 IFS=$as_save_IFS
28098
28099   ;;
28100 esac
28101 fi
28102 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28103 if test -n "$ac_pt_PKGCONFIG"; then
28104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28105 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28106 else
28107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28108 printf "%s\n" "no" >&6; }
28109 fi
28110
28111   if test "x$ac_pt_PKGCONFIG" = x; then
28112     PKGCONFIG="no"
28113   else
28114     case $cross_compiling:$ac_tool_warned in
28115 yes:)
28116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28117 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28118 ac_tool_warned=yes ;;
28119 esac
28120     PKGCONFIG=$ac_pt_PKGCONFIG
28121   fi
28122 else
28123   PKGCONFIG="$ac_cv_path_PKGCONFIG"
28124 fi
28125
28126     fi
28127
28128     if test "x$PKGCONFIG" != "xno"; then
28129       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
28130 printf %s "checking for nss options with pkg-config... " >&6; }
28131             itexists=`
28132     if test -n "$NSS_PCDIR"; then
28133       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28134       export PKG_CONFIG_LIBDIR
28135     fi
28136          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
28137
28138       if test -z "$itexists"; then
28139                         PKGCONFIG="no"
28140         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28141 printf "%s\n" "no" >&6; }
28142       else
28143         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28144 printf "%s\n" "found" >&6; }
28145       fi
28146     fi
28147
28148         if test "$PKGCONFIG" != "no" ; then
28149           addld=`
28150     if test -n "$NSS_PCDIR"; then
28151       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28152       export PKG_CONFIG_LIBDIR
28153     fi
28154  $PKGCONFIG --libs-only-L nss`
28155           addlib=`
28156     if test -n "$NSS_PCDIR"; then
28157       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28158       export PKG_CONFIG_LIBDIR
28159     fi
28160  $PKGCONFIG --libs-only-l nss`
28161           addcflags=`
28162     if test -n "$NSS_PCDIR"; then
28163       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28164       export PKG_CONFIG_LIBDIR
28165     fi
28166  $PKGCONFIG --cflags nss`
28167           version=`
28168     if test -n "$NSS_PCDIR"; then
28169       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28170       export PKG_CONFIG_LIBDIR
28171     fi
28172  $PKGCONFIG --modversion nss`
28173           nssprefix=`
28174     if test -n "$NSS_PCDIR"; then
28175       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28176       export PKG_CONFIG_LIBDIR
28177     fi
28178  $PKGCONFIG --variable=prefix nss`
28179         fi
28180       fi
28181     fi
28182
28183     if test -z "$addlib"; then
28184       # Without pkg-config, we'll kludge in some defaults
28185       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
28186 printf "%s\n" "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
28187       addld="-L$OPT_NSS/lib"
28188       addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
28189       addcflags="-I$OPT_NSS/include"
28190       version="unknown"
28191       nssprefix=$OPT_NSS
28192     fi
28193
28194     CLEANLDFLAGS="$LDFLAGS"
28195     CLEANLIBS="$LIBS"
28196     CLEANCPPFLAGS="$CPPFLAGS"
28197
28198     LDFLAGS="$addld $LDFLAGS"
28199     LIBS="$addlib $LIBS"
28200     if test "$addcflags" != "-I/usr/include"; then
28201        CPPFLAGS="$CPPFLAGS $addcflags"
28202     fi
28203
28204         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
28205 printf %s "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
28206 if test ${ac_cv_lib_nss3_SSL_VersionRangeSet+y}
28207 then :
28208   printf %s "(cached) " >&6
28209 else $as_nop
28210   ac_check_lib_save_LIBS=$LIBS
28211 LIBS="-lnss3  $LIBS"
28212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28213 /* end confdefs.h.  */
28214
28215
28216 #ifdef __cplusplus
28217 extern "C"
28218 #endif
28219 char SSL_VersionRangeSet ();
28220 int main (void)
28221 {
28222 return SSL_VersionRangeSet ();
28223  ;
28224  return 0;
28225 }
28226 _ACEOF
28227 if ac_fn_c_try_link "$LINENO"
28228 then :
28229   ac_cv_lib_nss3_SSL_VersionRangeSet=yes
28230 else $as_nop
28231   ac_cv_lib_nss3_SSL_VersionRangeSet=no
28232 fi
28233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28234     conftest$ac_exeext conftest.$ac_ext
28235 LIBS=$ac_check_lib_save_LIBS
28236 fi
28237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
28238 printf "%s\n" "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
28239 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes
28240 then :
28241
28242
28243 printf "%s\n" "#define USE_NSS 1" >>confdefs.h
28244
28245      USE_NSS=1
28246
28247      USE_NSS="yes"
28248      NSS_ENABLED=1
28249      ssl_msg="NSS"
28250      test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28251
28252 else $as_nop
28253
28254        LDFLAGS="$CLEANLDFLAGS"
28255        LIBS="$CLEANLIBS"
28256        CPPFLAGS="$CLEANCPPFLAGS"
28257
28258 fi
28259
28260
28261     if test "x$USE_NSS" = "xyes"; then
28262       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
28263 printf "%s\n" "$as_me: detected NSS version $version" >&6;}
28264
28265                         ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
28266 if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes
28267 then :
28268
28269
28270 printf "%s\n" "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
28271
28272
28273 fi
28274
28275
28276             NSS_LIBS=$addlib
28277
28278
28279                               if test "x$cross_compiling" != "xyes"; then
28280         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
28281         export CURL_LIBRARY_PATH
28282         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
28283 printf "%s\n" "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
28284       fi
28285
28286     fi
28287   fi
28288   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28289 fi
28290
28291
28292
28293 if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
28294   LIBS="-ladvapi32 -lcrypt32 $LIBS"
28295 fi
28296
28297 if test "x$curl_cv_native_windows" = "xyes" &&
28298    test "x$curl_mingw_original" = "xno"; then
28299   LIBS="-lbcrypt $LIBS"
28300 fi
28301
28302 case "x$SSL_DISABLED$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$BEARSSL_ENABLED$RUSTLS_ENABLED"
28303 in
28304 x)
28305   as_fn_error $? "TLS not detected, you will not be able to use HTTPS, FTPS, NTLM and more.
28306 Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl or --with-rustls to address this." "$LINENO" 5
28307   ;;
28308 x1)
28309   # one SSL backend is enabled
28310
28311   SSL_ENABLED="1"
28312   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
28313 printf "%s\n" "$as_me: built with one SSL backend" >&6;}
28314   ;;
28315 xD)
28316   # explicitly built without TLS
28317   ;;
28318 xD*)
28319   as_fn_error $? "--without-ssl has been set together with an explicit option to use an ssl library
28320 (e.g. --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl, --with-rustls).
28321 Since these are conflicting parameters, verify which is the desired one and drop the other." "$LINENO" 5
28322   ;;
28323 *)
28324   # more than one SSL backend is enabled
28325
28326   SSL_ENABLED="1"
28327
28328   CURL_WITH_MULTI_SSL="1"
28329
28330 printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
28331
28332   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
28333 printf "%s\n" "$as_me: built with multiple SSL backends" >&6;}
28334   ;;
28335 esac
28336
28337 if test -n "$ssl_backends"; then
28338   curl_ssl_msg="enabled ($ssl_backends)"
28339 fi
28340
28341 if test no = "$VALID_DEFAULT_SSL_BACKEND"
28342 then
28343   if test -n "$SSL_ENABLED"
28344   then
28345     as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
28346   else
28347     as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
28348   fi
28349 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
28350 then
28351
28352 printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h
28353
28354 fi
28355
28356
28357 if test -n "$check_for_ca_bundle"; then
28358
28359
28360   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
28361 printf %s "checking default CA cert bundle/path... " >&6; }
28362
28363
28364 # Check whether --with-ca-bundle was given.
28365 if test ${with_ca_bundle+y}
28366 then :
28367   withval=$with_ca_bundle;
28368     want_ca="$withval"
28369     if test "x$want_ca" = "xyes"; then
28370       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
28371     fi
28372
28373 else $as_nop
28374    want_ca="unset"
28375 fi
28376
28377
28378 # Check whether --with-ca-path was given.
28379 if test ${with_ca_path+y}
28380 then :
28381   withval=$with_ca_path;
28382     want_capath="$withval"
28383     if test "x$want_capath" = "xyes"; then
28384       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
28385     fi
28386
28387 else $as_nop
28388    want_capath="unset"
28389 fi
28390
28391
28392   ca_warning="   (warning: certs not found)"
28393   capath_warning="   (warning: certs not found)"
28394   check_capath=""
28395
28396   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
28397           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28398         ca="$want_ca"
28399     capath="$want_capath"
28400   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
28401         ca="$want_ca"
28402     capath="no"
28403   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28404         if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$MBEDTLS_ENABLED" != "x1"; then
28405       as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or mbedTLS" "$LINENO" 5
28406     fi
28407     capath="$want_capath"
28408     ca="no"
28409   else
28410             ca="no"
28411     capath="no"
28412     if test "x$cross_compiling" != "xyes"; then
28413                   if test "x$want_ca" = "xunset"; then
28414                                 if test "x$prefix" != xNONE; then
28415           cac="${prefix}/share/curl/curl-ca-bundle.crt"
28416         else
28417           cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
28418         fi
28419
28420         for a in /etc/ssl/certs/ca-certificates.crt \
28421                  /etc/pki/tls/certs/ca-bundle.crt \
28422                  /usr/share/ssl/certs/ca-bundle.crt \
28423                  /usr/local/share/certs/ca-root-nss.crt \
28424                  /etc/ssl/cert.pem \
28425                  "$cac"; do
28426           if test -f "$a"; then
28427             ca="$a"
28428             break
28429           fi
28430         done
28431       fi
28432       if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
28433               "x$OPENSSL_ENABLED" = "x1"; then
28434         check_capath="/etc/ssl/certs/"
28435       fi
28436     else
28437             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
28438 printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
28439     fi
28440   fi
28441
28442   if test "x$ca" = "xno" || test -f "$ca"; then
28443     ca_warning=""
28444   fi
28445
28446   if test "x$capath" != "xno"; then
28447     check_capath="$capath"
28448   fi
28449
28450   if test ! -z "$check_capath"; then
28451     for a in "$check_capath"; do
28452       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
28453         if test "x$capath" = "xno"; then
28454           capath="$a"
28455         fi
28456         capath_warning=""
28457         break
28458       fi
28459     done
28460   fi
28461
28462   if test "x$capath" = "xno"; then
28463     capath_warning=""
28464   fi
28465
28466   if test "x$ca" != "xno"; then
28467     CURL_CA_BUNDLE='"'$ca'"'
28468
28469 printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h
28470
28471
28472     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
28473 printf "%s\n" "$ca" >&6; }
28474   fi
28475   if test "x$capath" != "xno"; then
28476     CURL_CA_PATH="\"$capath\""
28477
28478 printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h
28479
28480     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
28481 printf "%s\n" "$capath (capath)" >&6; }
28482   fi
28483   if test "x$ca" = "xno" && test "x$capath" = "xno"; then
28484     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28485 printf "%s\n" "no" >&6; }
28486   fi
28487
28488   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
28489 printf %s "checking whether to use builtin CA store of SSL library... " >&6; }
28490
28491 # Check whether --with-ca-fallback was given.
28492 if test ${with_ca_fallback+y}
28493 then :
28494   withval=$with_ca_fallback;
28495     if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
28496       as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
28497     fi
28498
28499 else $as_nop
28500    with_ca_fallback="no"
28501 fi
28502
28503   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
28504 printf "%s\n" "$with_ca_fallback" >&6; }
28505   if test "x$with_ca_fallback" = "xyes"; then
28506     if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
28507       as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
28508     fi
28509
28510 printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h
28511
28512   fi
28513
28514 fi
28515
28516
28517
28518 # Check whether --with-libpsl was given.
28519 if test ${with_libpsl+y}
28520 then :
28521   withval=$with_libpsl; with_libpsl=$withval
28522 else $as_nop
28523   with_libpsl=yes
28524 fi
28525
28526 if test $with_libpsl != "no"; then
28527   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
28528 printf %s "checking for library containing psl_builtin... " >&6; }
28529 if test ${ac_cv_search_psl_builtin+y}
28530 then :
28531   printf %s "(cached) " >&6
28532 else $as_nop
28533   ac_func_search_save_LIBS=$LIBS
28534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28535 /* end confdefs.h.  */
28536
28537
28538 #ifdef __cplusplus
28539 extern "C"
28540 #endif
28541 char psl_builtin ();
28542 int main (void)
28543 {
28544 return psl_builtin ();
28545  ;
28546  return 0;
28547 }
28548 _ACEOF
28549 for ac_lib in '' psl
28550 do
28551   if test -z "$ac_lib"; then
28552     ac_res="none required"
28553   else
28554     ac_res=-l$ac_lib
28555     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28556   fi
28557   if ac_fn_c_try_link "$LINENO"
28558 then :
28559   ac_cv_search_psl_builtin=$ac_res
28560 fi
28561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28562     conftest$ac_exeext
28563   if test ${ac_cv_search_psl_builtin+y}
28564 then :
28565   break
28566 fi
28567 done
28568 if test ${ac_cv_search_psl_builtin+y}
28569 then :
28570
28571 else $as_nop
28572   ac_cv_search_psl_builtin=no
28573 fi
28574 rm conftest.$ac_ext
28575 LIBS=$ac_func_search_save_LIBS
28576 fi
28577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
28578 printf "%s\n" "$ac_cv_search_psl_builtin" >&6; }
28579 ac_res=$ac_cv_search_psl_builtin
28580 if test "$ac_res" != no
28581 then :
28582   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28583   curl_psl_msg="enabled";
28584
28585 printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h
28586
28587
28588 else $as_nop
28589   curl_psl_msg="no      (libpsl not found)";
28590      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
28591 printf "%s\n" "$as_me: WARNING: libpsl was not found" >&2;}
28592
28593
28594 fi
28595
28596 fi
28597  if test "$curl_psl_msg" = "enabled"; then
28598   USE_LIBPSL_TRUE=
28599   USE_LIBPSL_FALSE='#'
28600 else
28601   USE_LIBPSL_TRUE='#'
28602   USE_LIBPSL_FALSE=
28603 fi
28604
28605
28606
28607
28608
28609 # Check whether --with-libgsasl was given.
28610 if test ${with_libgsasl+y}
28611 then :
28612   withval=$with_libgsasl; with_libgsasl=$withval
28613 else $as_nop
28614   with_libgsasl=yes
28615 fi
28616
28617 if test $with_libgsasl != "no"; then
28618   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5
28619 printf %s "checking for library containing gsasl_init... " >&6; }
28620 if test ${ac_cv_search_gsasl_init+y}
28621 then :
28622   printf %s "(cached) " >&6
28623 else $as_nop
28624   ac_func_search_save_LIBS=$LIBS
28625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28626 /* end confdefs.h.  */
28627
28628
28629 #ifdef __cplusplus
28630 extern "C"
28631 #endif
28632 char gsasl_init ();
28633 int main (void)
28634 {
28635 return gsasl_init ();
28636  ;
28637  return 0;
28638 }
28639 _ACEOF
28640 for ac_lib in '' gsasl
28641 do
28642   if test -z "$ac_lib"; then
28643     ac_res="none required"
28644   else
28645     ac_res=-l$ac_lib
28646     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28647   fi
28648   if ac_fn_c_try_link "$LINENO"
28649 then :
28650   ac_cv_search_gsasl_init=$ac_res
28651 fi
28652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28653     conftest$ac_exeext
28654   if test ${ac_cv_search_gsasl_init+y}
28655 then :
28656   break
28657 fi
28658 done
28659 if test ${ac_cv_search_gsasl_init+y}
28660 then :
28661
28662 else $as_nop
28663   ac_cv_search_gsasl_init=no
28664 fi
28665 rm conftest.$ac_ext
28666 LIBS=$ac_func_search_save_LIBS
28667 fi
28668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5
28669 printf "%s\n" "$ac_cv_search_gsasl_init" >&6; }
28670 ac_res=$ac_cv_search_gsasl_init
28671 if test "$ac_res" != no
28672 then :
28673   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28674   curl_gsasl_msg="enabled";
28675
28676 printf "%s\n" "#define USE_GSASL 1" >>confdefs.h
28677
28678
28679 else $as_nop
28680   curl_gsasl_msg="no      (libgsasl not found)";
28681      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5
28682 printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;}
28683
28684
28685 fi
28686
28687 fi
28688  if test "$curl_gsasl_msg" = "enabled"; then
28689   USE_GSASL_TRUE=
28690   USE_GSASL_FALSE='#'
28691 else
28692   USE_GSASL_TRUE='#'
28693   USE_GSASL_FALSE=
28694 fi
28695
28696
28697
28698 # Check whether --with-libmetalink was given.
28699 if test ${with_libmetalink+y}
28700 then :
28701   withval=$with_libmetalink; as_fn_error $? "--with-libmetalink no longer works!" "$LINENO" 5
28702 fi
28703
28704
28705
28706 OPT_LIBSSH2=off
28707
28708 # Check whether --with-libssh2 was given.
28709 if test ${with_libssh2+y}
28710 then :
28711   withval=$with_libssh2; OPT_LIBSSH2=$withval
28712 else $as_nop
28713   OPT_LIBSSH2=no
28714 fi
28715
28716
28717
28718 OPT_LIBSSH=off
28719
28720 # Check whether --with-libssh was given.
28721 if test ${with_libssh+y}
28722 then :
28723   withval=$with_libssh; OPT_LIBSSH=$withval
28724 else $as_nop
28725   OPT_LIBSSH=no
28726 fi
28727
28728
28729 OPT_WOLFSSH=off
28730
28731 # Check whether --with-wolfssh was given.
28732 if test ${with_wolfssh+y}
28733 then :
28734   withval=$with_wolfssh; OPT_WOLFSSH=$withval
28735 else $as_nop
28736   OPT_WOLFSSH=no
28737 fi
28738
28739
28740 if test X"$OPT_LIBSSH2" != Xno; then
28741     CLEANLDFLAGS="$LDFLAGS"
28742   CLEANCPPFLAGS="$CPPFLAGS"
28743   CLEANLIBS="$LIBS"
28744
28745   case "$OPT_LIBSSH2" in
28746   yes)
28747
28748     if test -n "$PKG_CONFIG"; then
28749       PKGCONFIG="$PKG_CONFIG"
28750     else
28751       if test -n "$ac_tool_prefix"; then
28752   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28753 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28755 printf %s "checking for $ac_word... " >&6; }
28756 if test ${ac_cv_path_PKGCONFIG+y}
28757 then :
28758   printf %s "(cached) " >&6
28759 else $as_nop
28760   case $PKGCONFIG in
28761   [\\/]* | ?:[\\/]*)
28762   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28763   ;;
28764   *)
28765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28766 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28767 for as_dir in $as_dummy
28768 do
28769   IFS=$as_save_IFS
28770   case $as_dir in #(((
28771     '') as_dir=./ ;;
28772     */) ;;
28773     *) as_dir=$as_dir/ ;;
28774   esac
28775     for ac_exec_ext in '' $ac_executable_extensions; do
28776   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28777     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28778     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28779     break 2
28780   fi
28781 done
28782   done
28783 IFS=$as_save_IFS
28784
28785   ;;
28786 esac
28787 fi
28788 PKGCONFIG=$ac_cv_path_PKGCONFIG
28789 if test -n "$PKGCONFIG"; then
28790   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28791 printf "%s\n" "$PKGCONFIG" >&6; }
28792 else
28793   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28794 printf "%s\n" "no" >&6; }
28795 fi
28796
28797
28798 fi
28799 if test -z "$ac_cv_path_PKGCONFIG"; then
28800   ac_pt_PKGCONFIG=$PKGCONFIG
28801   # Extract the first word of "pkg-config", so it can be a program name with args.
28802 set dummy pkg-config; ac_word=$2
28803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28804 printf %s "checking for $ac_word... " >&6; }
28805 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28806 then :
28807   printf %s "(cached) " >&6
28808 else $as_nop
28809   case $ac_pt_PKGCONFIG in
28810   [\\/]* | ?:[\\/]*)
28811   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28812   ;;
28813   *)
28814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28815 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28816 for as_dir in $as_dummy
28817 do
28818   IFS=$as_save_IFS
28819   case $as_dir in #(((
28820     '') as_dir=./ ;;
28821     */) ;;
28822     *) as_dir=$as_dir/ ;;
28823   esac
28824     for ac_exec_ext in '' $ac_executable_extensions; do
28825   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28826     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28827     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28828     break 2
28829   fi
28830 done
28831   done
28832 IFS=$as_save_IFS
28833
28834   ;;
28835 esac
28836 fi
28837 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28838 if test -n "$ac_pt_PKGCONFIG"; then
28839   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28840 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28841 else
28842   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28843 printf "%s\n" "no" >&6; }
28844 fi
28845
28846   if test "x$ac_pt_PKGCONFIG" = x; then
28847     PKGCONFIG="no"
28848   else
28849     case $cross_compiling:$ac_tool_warned in
28850 yes:)
28851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28852 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28853 ac_tool_warned=yes ;;
28854 esac
28855     PKGCONFIG=$ac_pt_PKGCONFIG
28856   fi
28857 else
28858   PKGCONFIG="$ac_cv_path_PKGCONFIG"
28859 fi
28860
28861     fi
28862
28863     if test "x$PKGCONFIG" != "xno"; then
28864       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
28865 printf %s "checking for libssh2 options with pkg-config... " >&6; }
28866             itexists=`
28867     if test -n ""; then
28868       PKG_CONFIG_LIBDIR=""
28869       export PKG_CONFIG_LIBDIR
28870     fi
28871          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
28872
28873       if test -z "$itexists"; then
28874                         PKGCONFIG="no"
28875         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28876 printf "%s\n" "no" >&6; }
28877       else
28878         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28879 printf "%s\n" "found" >&6; }
28880       fi
28881     fi
28882
28883
28884     if test "$PKGCONFIG" != "no" ; then
28885       LIB_SSH2=`$PKGCONFIG --libs libssh2`
28886       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
28887       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
28888       version=`$PKGCONFIG --modversion libssh2`
28889       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
28890     fi
28891
28892     ;;
28893   off)
28894         ;;
28895   *)
28896         PREFIX_SSH2=$OPT_LIBSSH2
28897     ;;
28898   esac
28899
28900     if test -n "$PREFIX_SSH2"; then
28901     LIB_SSH2="-lssh2"
28902     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
28903     CPP_SSH2=-I${PREFIX_SSH2}/include
28904     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
28905   fi
28906
28907   LDFLAGS="$LDFLAGS $LD_SSH2"
28908   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
28909   LIBS="$LIB_SSH2 $LIBS"
28910
28911     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5
28912 printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; }
28913 if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y}
28914 then :
28915   printf %s "(cached) " >&6
28916 else $as_nop
28917   ac_check_lib_save_LIBS=$LIBS
28918 LIBS="-lssh2  $LIBS"
28919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28920 /* end confdefs.h.  */
28921
28922
28923 #ifdef __cplusplus
28924 extern "C"
28925 #endif
28926 char libssh2_session_block_directions ();
28927 int main (void)
28928 {
28929 return libssh2_session_block_directions ();
28930  ;
28931  return 0;
28932 }
28933 _ACEOF
28934 if ac_fn_c_try_link "$LINENO"
28935 then :
28936   ac_cv_lib_ssh2_libssh2_session_block_directions=yes
28937 else $as_nop
28938   ac_cv_lib_ssh2_libssh2_session_block_directions=no
28939 fi
28940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28941     conftest$ac_exeext conftest.$ac_ext
28942 LIBS=$ac_check_lib_save_LIBS
28943 fi
28944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5
28945 printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; }
28946 if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes
28947 then :
28948   printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
28949
28950   LIBS="-lssh2 $LIBS"
28951
28952 fi
28953
28954
28955   ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
28956 if test "x$ac_cv_header_libssh2_h" = xyes
28957 then :
28958   curl_ssh_msg="enabled (libSSH2)"
28959     LIBSSH2_ENABLED=1
28960
28961 printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h
28962
28963     USE_LIBSSH2=1
28964
28965
28966 fi
28967
28968
28969   if test X"$OPT_LIBSSH2" != Xoff &&
28970      test "$LIBSSH2_ENABLED" != "1"; then
28971     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
28972   fi
28973
28974   if test "$LIBSSH2_ENABLED" = "1"; then
28975     if test -n "$DIR_SSH2"; then
28976
28977        if test "x$cross_compiling" != "xyes"; then
28978          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
28979          export CURL_LIBRARY_PATH
28980          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
28981 printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
28982        fi
28983     fi
28984   else
28985         LDFLAGS=$CLEANLDFLAGS
28986     CPPFLAGS=$CLEANCPPFLAGS
28987     LIBS=$CLEANLIBS
28988   fi
28989 elif test X"$OPT_LIBSSH" != Xno; then
28990     CLEANLDFLAGS="$LDFLAGS"
28991   CLEANCPPFLAGS="$CPPFLAGS"
28992   CLEANLIBS="$LIBS"
28993
28994   case "$OPT_LIBSSH" in
28995   yes)
28996
28997     if test -n "$PKG_CONFIG"; then
28998       PKGCONFIG="$PKG_CONFIG"
28999     else
29000       if test -n "$ac_tool_prefix"; then
29001   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29002 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29004 printf %s "checking for $ac_word... " >&6; }
29005 if test ${ac_cv_path_PKGCONFIG+y}
29006 then :
29007   printf %s "(cached) " >&6
29008 else $as_nop
29009   case $PKGCONFIG in
29010   [\\/]* | ?:[\\/]*)
29011   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29012   ;;
29013   *)
29014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29015 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29016 for as_dir in $as_dummy
29017 do
29018   IFS=$as_save_IFS
29019   case $as_dir in #(((
29020     '') as_dir=./ ;;
29021     */) ;;
29022     *) as_dir=$as_dir/ ;;
29023   esac
29024     for ac_exec_ext in '' $ac_executable_extensions; do
29025   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29026     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29027     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29028     break 2
29029   fi
29030 done
29031   done
29032 IFS=$as_save_IFS
29033
29034   ;;
29035 esac
29036 fi
29037 PKGCONFIG=$ac_cv_path_PKGCONFIG
29038 if test -n "$PKGCONFIG"; then
29039   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29040 printf "%s\n" "$PKGCONFIG" >&6; }
29041 else
29042   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29043 printf "%s\n" "no" >&6; }
29044 fi
29045
29046
29047 fi
29048 if test -z "$ac_cv_path_PKGCONFIG"; then
29049   ac_pt_PKGCONFIG=$PKGCONFIG
29050   # Extract the first word of "pkg-config", so it can be a program name with args.
29051 set dummy pkg-config; ac_word=$2
29052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29053 printf %s "checking for $ac_word... " >&6; }
29054 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29055 then :
29056   printf %s "(cached) " >&6
29057 else $as_nop
29058   case $ac_pt_PKGCONFIG in
29059   [\\/]* | ?:[\\/]*)
29060   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29061   ;;
29062   *)
29063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29064 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29065 for as_dir in $as_dummy
29066 do
29067   IFS=$as_save_IFS
29068   case $as_dir in #(((
29069     '') as_dir=./ ;;
29070     */) ;;
29071     *) as_dir=$as_dir/ ;;
29072   esac
29073     for ac_exec_ext in '' $ac_executable_extensions; do
29074   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29075     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29076     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29077     break 2
29078   fi
29079 done
29080   done
29081 IFS=$as_save_IFS
29082
29083   ;;
29084 esac
29085 fi
29086 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29087 if test -n "$ac_pt_PKGCONFIG"; then
29088   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29089 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29090 else
29091   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29092 printf "%s\n" "no" >&6; }
29093 fi
29094
29095   if test "x$ac_pt_PKGCONFIG" = x; then
29096     PKGCONFIG="no"
29097   else
29098     case $cross_compiling:$ac_tool_warned in
29099 yes:)
29100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29102 ac_tool_warned=yes ;;
29103 esac
29104     PKGCONFIG=$ac_pt_PKGCONFIG
29105   fi
29106 else
29107   PKGCONFIG="$ac_cv_path_PKGCONFIG"
29108 fi
29109
29110     fi
29111
29112     if test "x$PKGCONFIG" != "xno"; then
29113       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
29114 printf %s "checking for libssh options with pkg-config... " >&6; }
29115             itexists=`
29116     if test -n ""; then
29117       PKG_CONFIG_LIBDIR=""
29118       export PKG_CONFIG_LIBDIR
29119     fi
29120          $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
29121
29122       if test -z "$itexists"; then
29123                         PKGCONFIG="no"
29124         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29125 printf "%s\n" "no" >&6; }
29126       else
29127         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29128 printf "%s\n" "found" >&6; }
29129       fi
29130     fi
29131
29132
29133     if test "$PKGCONFIG" != "no" ; then
29134       LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
29135       LD_SSH=`$PKGCONFIG --libs-only-L libssh`
29136       CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
29137       version=`$PKGCONFIG --modversion libssh`
29138       DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
29139     fi
29140
29141     ;;
29142   off)
29143         ;;
29144   *)
29145         PREFIX_SSH=$OPT_LIBSSH
29146     ;;
29147   esac
29148
29149     if test -n "$PREFIX_SSH"; then
29150     LIB_SSH="-lssh"
29151     LD_SSH=-L${PREFIX_SSH}/lib$libsuff
29152     CPP_SSH=-I${PREFIX_SSH}/include
29153     DIR_SSH=${PREFIX_SSH}/lib$libsuff
29154   fi
29155
29156   LDFLAGS="$LDFLAGS $LD_SSH"
29157   CPPFLAGS="$CPPFLAGS $CPP_SSH"
29158   LIBS="$LIB_SSH $LIBS"
29159
29160   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
29161 printf %s "checking for ssh_new in -lssh... " >&6; }
29162 if test ${ac_cv_lib_ssh_ssh_new+y}
29163 then :
29164   printf %s "(cached) " >&6
29165 else $as_nop
29166   ac_check_lib_save_LIBS=$LIBS
29167 LIBS="-lssh  $LIBS"
29168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29169 /* end confdefs.h.  */
29170
29171
29172 #ifdef __cplusplus
29173 extern "C"
29174 #endif
29175 char ssh_new ();
29176 int main (void)
29177 {
29178 return ssh_new ();
29179  ;
29180  return 0;
29181 }
29182 _ACEOF
29183 if ac_fn_c_try_link "$LINENO"
29184 then :
29185   ac_cv_lib_ssh_ssh_new=yes
29186 else $as_nop
29187   ac_cv_lib_ssh_ssh_new=no
29188 fi
29189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29190     conftest$ac_exeext conftest.$ac_ext
29191 LIBS=$ac_check_lib_save_LIBS
29192 fi
29193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
29194 printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; }
29195 if test "x$ac_cv_lib_ssh_ssh_new" = xyes
29196 then :
29197   printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h
29198
29199   LIBS="-lssh $LIBS"
29200
29201 fi
29202
29203
29204   ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
29205 if test "x$ac_cv_header_libssh_libssh_h" = xyes
29206 then :
29207   curl_ssh_msg="enabled (libSSH)"
29208     LIBSSH_ENABLED=1
29209
29210 printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h
29211
29212     USE_LIBSSH=1
29213
29214
29215 fi
29216
29217
29218   if test X"$OPT_LIBSSH" != Xoff &&
29219      test "$LIBSSH_ENABLED" != "1"; then
29220     as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
29221   fi
29222
29223   if test "$LIBSSH_ENABLED" = "1"; then
29224     if test -n "$DIR_SSH"; then
29225
29226        if test "x$cross_compiling" != "xyes"; then
29227          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
29228          export CURL_LIBRARY_PATH
29229          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
29230 printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
29231        fi
29232     fi
29233   else
29234         LDFLAGS=$CLEANLDFLAGS
29235     CPPFLAGS=$CLEANCPPFLAGS
29236     LIBS=$CLEANLIBS
29237   fi
29238 elif test X"$OPT_WOLFSSH" != Xno; then
29239     CLEANLDFLAGS="$LDFLAGS"
29240   CLEANCPPFLAGS="$CPPFLAGS"
29241   CLEANLIBS="$LIBS"
29242
29243
29244   if test "$OPT_WOLFSSH" != yes; then
29245      WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
29246      LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
29247      CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
29248   fi
29249
29250   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
29251 printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; }
29252 if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y}
29253 then :
29254   printf %s "(cached) " >&6
29255 else $as_nop
29256   ac_check_lib_save_LIBS=$LIBS
29257 LIBS="-lwolfssh  $LIBS"
29258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29259 /* end confdefs.h.  */
29260
29261
29262 #ifdef __cplusplus
29263 extern "C"
29264 #endif
29265 char wolfSSH_Init ();
29266 int main (void)
29267 {
29268 return wolfSSH_Init ();
29269  ;
29270  return 0;
29271 }
29272 _ACEOF
29273 if ac_fn_c_try_link "$LINENO"
29274 then :
29275   ac_cv_lib_wolfssh_wolfSSH_Init=yes
29276 else $as_nop
29277   ac_cv_lib_wolfssh_wolfSSH_Init=no
29278 fi
29279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29280     conftest$ac_exeext conftest.$ac_ext
29281 LIBS=$ac_check_lib_save_LIBS
29282 fi
29283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
29284 printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
29285 if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes
29286 then :
29287   printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h
29288
29289   LIBS="-lwolfssh $LIBS"
29290
29291 fi
29292
29293
29294          for ac_header in wolfssh/ssh.h
29295 do :
29296   ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
29297 if test "x$ac_cv_header_wolfssh_ssh_h" = xyes
29298 then :
29299   printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h
29300  curl_ssh_msg="enabled (wolfSSH)"
29301     WOLFSSH_ENABLED=1
29302
29303 printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h
29304
29305     USE_WOLFSSH=1
29306
29307
29308 fi
29309
29310 done
29311
29312 fi
29313
29314
29315 OPT_LIBRTMP=off
29316
29317 # Check whether --with-librtmp was given.
29318 if test ${with_librtmp+y}
29319 then :
29320   withval=$with_librtmp; OPT_LIBRTMP=$withval
29321 fi
29322
29323
29324 if test X"$OPT_LIBRTMP" != Xno; then
29325     CLEANLDFLAGS="$LDFLAGS"
29326   CLEANCPPFLAGS="$CPPFLAGS"
29327   CLEANLIBS="$LIBS"
29328
29329   case "$OPT_LIBRTMP" in
29330   yes)
29331
29332     if test -n "$PKG_CONFIG"; then
29333       PKGCONFIG="$PKG_CONFIG"
29334     else
29335       if test -n "$ac_tool_prefix"; then
29336   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29337 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29339 printf %s "checking for $ac_word... " >&6; }
29340 if test ${ac_cv_path_PKGCONFIG+y}
29341 then :
29342   printf %s "(cached) " >&6
29343 else $as_nop
29344   case $PKGCONFIG in
29345   [\\/]* | ?:[\\/]*)
29346   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29347   ;;
29348   *)
29349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29350 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29351 for as_dir in $as_dummy
29352 do
29353   IFS=$as_save_IFS
29354   case $as_dir in #(((
29355     '') as_dir=./ ;;
29356     */) ;;
29357     *) as_dir=$as_dir/ ;;
29358   esac
29359     for ac_exec_ext in '' $ac_executable_extensions; do
29360   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29361     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29362     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29363     break 2
29364   fi
29365 done
29366   done
29367 IFS=$as_save_IFS
29368
29369   ;;
29370 esac
29371 fi
29372 PKGCONFIG=$ac_cv_path_PKGCONFIG
29373 if test -n "$PKGCONFIG"; then
29374   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29375 printf "%s\n" "$PKGCONFIG" >&6; }
29376 else
29377   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29378 printf "%s\n" "no" >&6; }
29379 fi
29380
29381
29382 fi
29383 if test -z "$ac_cv_path_PKGCONFIG"; then
29384   ac_pt_PKGCONFIG=$PKGCONFIG
29385   # Extract the first word of "pkg-config", so it can be a program name with args.
29386 set dummy pkg-config; ac_word=$2
29387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29388 printf %s "checking for $ac_word... " >&6; }
29389 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29390 then :
29391   printf %s "(cached) " >&6
29392 else $as_nop
29393   case $ac_pt_PKGCONFIG in
29394   [\\/]* | ?:[\\/]*)
29395   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29396   ;;
29397   *)
29398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29399 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29400 for as_dir in $as_dummy
29401 do
29402   IFS=$as_save_IFS
29403   case $as_dir in #(((
29404     '') as_dir=./ ;;
29405     */) ;;
29406     *) as_dir=$as_dir/ ;;
29407   esac
29408     for ac_exec_ext in '' $ac_executable_extensions; do
29409   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29410     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29411     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29412     break 2
29413   fi
29414 done
29415   done
29416 IFS=$as_save_IFS
29417
29418   ;;
29419 esac
29420 fi
29421 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29422 if test -n "$ac_pt_PKGCONFIG"; then
29423   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29424 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29425 else
29426   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29427 printf "%s\n" "no" >&6; }
29428 fi
29429
29430   if test "x$ac_pt_PKGCONFIG" = x; then
29431     PKGCONFIG="no"
29432   else
29433     case $cross_compiling:$ac_tool_warned in
29434 yes:)
29435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29436 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29437 ac_tool_warned=yes ;;
29438 esac
29439     PKGCONFIG=$ac_pt_PKGCONFIG
29440   fi
29441 else
29442   PKGCONFIG="$ac_cv_path_PKGCONFIG"
29443 fi
29444
29445     fi
29446
29447     if test "x$PKGCONFIG" != "xno"; then
29448       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
29449 printf %s "checking for librtmp options with pkg-config... " >&6; }
29450             itexists=`
29451     if test -n ""; then
29452       PKG_CONFIG_LIBDIR=""
29453       export PKG_CONFIG_LIBDIR
29454     fi
29455          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
29456
29457       if test -z "$itexists"; then
29458                         PKGCONFIG="no"
29459         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29460 printf "%s\n" "no" >&6; }
29461       else
29462         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29463 printf "%s\n" "found" >&6; }
29464       fi
29465     fi
29466
29467
29468     if test "$PKGCONFIG" != "no" ; then
29469       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
29470       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
29471       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
29472       version=`$PKGCONFIG --modversion librtmp`
29473       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
29474     else
29475                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
29476     fi
29477
29478     ;;
29479   off)
29480         LIB_RTMP="-lrtmp"
29481     ;;
29482   *)
29483         LIB_RTMP="-lrtmp"
29484     PREFIX_RTMP=$OPT_LIBRTMP
29485     ;;
29486   esac
29487
29488     if test -n "$PREFIX_RTMP"; then
29489     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
29490     CPP_RTMP=-I${PREFIX_RTMP}/include
29491     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
29492   fi
29493
29494   LDFLAGS="$LDFLAGS $LD_RTMP"
29495   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
29496   LIBS="$LIB_RTMP $LIBS"
29497
29498   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
29499 printf %s "checking for RTMP_Init in -lrtmp... " >&6; }
29500 if test ${ac_cv_lib_rtmp_RTMP_Init+y}
29501 then :
29502   printf %s "(cached) " >&6
29503 else $as_nop
29504   ac_check_lib_save_LIBS=$LIBS
29505 LIBS="-lrtmp  $LIBS"
29506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29507 /* end confdefs.h.  */
29508
29509
29510 #ifdef __cplusplus
29511 extern "C"
29512 #endif
29513 char RTMP_Init ();
29514 int main (void)
29515 {
29516 return RTMP_Init ();
29517  ;
29518  return 0;
29519 }
29520 _ACEOF
29521 if ac_fn_c_try_link "$LINENO"
29522 then :
29523   ac_cv_lib_rtmp_RTMP_Init=yes
29524 else $as_nop
29525   ac_cv_lib_rtmp_RTMP_Init=no
29526 fi
29527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29528     conftest$ac_exeext conftest.$ac_ext
29529 LIBS=$ac_check_lib_save_LIBS
29530 fi
29531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
29532 printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
29533 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes
29534 then :
29535
29536             for ac_header in librtmp/rtmp.h
29537 do :
29538   ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
29539 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes
29540 then :
29541   printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h
29542  curl_rtmp_msg="enabled (librtmp)"
29543         LIBRTMP_ENABLED=1
29544
29545 printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h
29546
29547         USE_LIBRTMP=1
29548
29549
29550 fi
29551
29552 done
29553
29554 else $as_nop
29555         LDFLAGS=$CLEANLDFLAGS
29556       CPPFLAGS=$CLEANCPPFLAGS
29557       LIBS=$CLEANLIBS
29558
29559 fi
29560
29561
29562   if test X"$OPT_LIBRTMP" != Xoff &&
29563      test "$LIBRTMP_ENABLED" != "1"; then
29564     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
29565   fi
29566
29567 fi
29568
29569
29570 versioned_symbols_flavour=
29571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
29572 printf %s "checking whether versioned symbols are wanted... " >&6; }
29573 # Check whether --enable-versioned-symbols was given.
29574 if test ${enable_versioned_symbols+y}
29575 then :
29576   enableval=$enable_versioned_symbols;  case "$enableval" in
29577   yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29578 printf "%s\n" "yes" >&6; }
29579     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
29580 printf %s "checking if libraries can be versioned... " >&6; }
29581     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
29582     if test -z "$GLD"; then
29583         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29584 printf "%s\n" "no" >&6; }
29585         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
29586 printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
29587     else
29588         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29589 printf "%s\n" "yes" >&6; }
29590         if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
29591           versioned_symbols_flavour="MULTISSL_"
29592         elif test "x$OPENSSL_ENABLED" = "x1"; then
29593           versioned_symbols_flavour="OPENSSL_"
29594         elif test "x$GNUTLS_ENABLED" = "x1"; then
29595           versioned_symbols_flavour="GNUTLS_"
29596         elif test "x$NSS_ENABLED" = "x1"; then
29597           versioned_symbols_flavour="NSS_"
29598         elif test "x$WOLFSSL_ENABLED" = "x1"; then
29599           versioned_symbols_flavour="WOLFSSL_"
29600         elif test "x$SCHANNEL_ENABLED" = "x1"; then
29601           versioned_symbols_flavour="SCHANNEL_"
29602         elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
29603           versioned_symbols_flavour="SECURE_TRANSPORT_"
29604         else
29605           versioned_symbols_flavour=""
29606         fi
29607         versioned_symbols="yes"
29608     fi
29609     ;;
29610
29611   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29612 printf "%s\n" "no" >&6; }
29613     ;;
29614   esac
29615
29616 else $as_nop
29617
29618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29619 printf "%s\n" "no" >&6; }
29620
29621
29622 fi
29623
29624
29625 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
29626
29627  if test "x$versioned_symbols" = 'xyes'; then
29628   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
29629   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
29630 else
29631   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
29632   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
29633 fi
29634
29635
29636 CURL_PLIST_VERSION="$CURLVERSION"
29637
29638
29639
29640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
29641 printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
29642 OPT_WINIDN="default"
29643
29644 # Check whether --with-winidn was given.
29645 if test ${with_winidn+y}
29646 then :
29647   withval=$with_winidn; OPT_WINIDN=$withval
29648 fi
29649
29650 case "$OPT_WINIDN" in
29651   no|default)
29652         want_winidn="no"
29653     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29654 printf "%s\n" "no" >&6; }
29655     ;;
29656   yes)
29657         want_winidn="yes"
29658     want_winidn_path="default"
29659     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29660 printf "%s\n" "yes" >&6; }
29661     ;;
29662   *)
29663         want_winidn="yes"
29664     want_winidn_path="$withval"
29665     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
29666 printf "%s\n" "yes ($withval)" >&6; }
29667     ;;
29668 esac
29669
29670 if test "$want_winidn" = "yes"; then
29671     clean_CFLAGS="$CFLAGS"
29672   clean_CPPFLAGS="$CPPFLAGS"
29673   clean_LDFLAGS="$LDFLAGS"
29674   clean_LIBS="$LIBS"
29675   WINIDN_LIBS="-lnormaliz"
29676   WINIDN_CPPFLAGS=""
29677   #
29678   if test "$want_winidn_path" != "default"; then
29679             WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
29680     WINIDN_CPPFLAGS="-I$want_winidn_path/include"
29681     WINIDN_DIR="$want_winidn_path/lib$libsuff"
29682   fi
29683   #
29684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29685 /* end confdefs.h.  */
29686
29687
29688       #include <windows.h>
29689
29690 int main (void)
29691 {
29692
29693       #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
29694       #error
29695       #endif
29696
29697  ;
29698  return 0;
29699 }
29700
29701 _ACEOF
29702 if ac_fn_c_try_compile "$LINENO"
29703 then :
29704
29705
29706 else $as_nop
29707
29708      CFLAGS=`echo $CFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29709      CFLAGS=`echo $CFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29710      CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29711      CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29712      WINIDN_CPPFLAGS="$WINIDN_CPPFLAGS -DWINVER=0x0600"
29713
29714 fi
29715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29716   #
29717   CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
29718   LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
29719   LIBS="$WINIDN_LIBS $LIBS"
29720   #
29721   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
29722 printf %s "checking if IdnToUnicode can be linked... " >&6; }
29723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29724 /* end confdefs.h.  */
29725
29726
29727       #include <windows.h>
29728
29729 int main (void)
29730 {
29731
29732       IdnToUnicode(0, NULL, 0, NULL, 0);
29733
29734  ;
29735  return 0;
29736 }
29737
29738 _ACEOF
29739 if ac_fn_c_try_link "$LINENO"
29740 then :
29741
29742     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29743 printf "%s\n" "yes" >&6; }
29744     tst_links_winidn="yes"
29745
29746 else $as_nop
29747
29748     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29749 printf "%s\n" "no" >&6; }
29750     tst_links_winidn="no"
29751
29752 fi
29753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29754     conftest$ac_exeext conftest.$ac_ext
29755   #
29756   if test "$tst_links_winidn" = "yes"; then
29757
29758 printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h
29759
29760
29761 printf "%s\n" "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
29762
29763     IDN_ENABLED=1
29764
29765     curl_idn_msg="enabled (Windows-native)"
29766   else
29767     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
29768 printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
29769     CFLAGS="$clean_CFLAGS"
29770     CPPFLAGS="$clean_CPPFLAGS"
29771     LDFLAGS="$clean_LDFLAGS"
29772     LIBS="$clean_LIBS"
29773   fi
29774 fi
29775
29776
29777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
29778 printf %s "checking whether to build with libidn2... " >&6; }
29779 OPT_IDN="default"
29780
29781 # Check whether --with-libidn2 was given.
29782 if test ${with_libidn2+y}
29783 then :
29784   withval=$with_libidn2; OPT_IDN=$withval
29785 fi
29786
29787 if test "x$tst_links_winidn" = "xyes"; then
29788   want_idn="no"
29789   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using winidn instead)" >&5
29790 printf "%s\n" "no (using winidn instead)" >&6; }
29791 else
29792   case "$OPT_IDN" in
29793     no)
29794             want_idn="no"
29795       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29796 printf "%s\n" "no" >&6; }
29797       ;;
29798     default)
29799             want_idn="yes"
29800       want_idn_path="default"
29801       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
29802 printf "%s\n" "(assumed) yes" >&6; }
29803       ;;
29804     yes)
29805             want_idn="yes"
29806       want_idn_path="default"
29807       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29808 printf "%s\n" "yes" >&6; }
29809       ;;
29810     *)
29811             want_idn="yes"
29812       want_idn_path="$withval"
29813       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
29814 printf "%s\n" "yes ($withval)" >&6; }
29815       ;;
29816   esac
29817 fi
29818
29819 if test "$want_idn" = "yes"; then
29820     clean_CPPFLAGS="$CPPFLAGS"
29821   clean_LDFLAGS="$LDFLAGS"
29822   clean_LIBS="$LIBS"
29823   PKGCONFIG="no"
29824   #
29825   if test "$want_idn_path" != "default"; then
29826         IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
29827
29828     if test -n "$PKG_CONFIG"; then
29829       PKGCONFIG="$PKG_CONFIG"
29830     else
29831       if test -n "$ac_tool_prefix"; then
29832   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29833 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29835 printf %s "checking for $ac_word... " >&6; }
29836 if test ${ac_cv_path_PKGCONFIG+y}
29837 then :
29838   printf %s "(cached) " >&6
29839 else $as_nop
29840   case $PKGCONFIG in
29841   [\\/]* | ?:[\\/]*)
29842   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29843   ;;
29844   *)
29845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29846 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29847 for as_dir in $as_dummy
29848 do
29849   IFS=$as_save_IFS
29850   case $as_dir in #(((
29851     '') as_dir=./ ;;
29852     */) ;;
29853     *) as_dir=$as_dir/ ;;
29854   esac
29855     for ac_exec_ext in '' $ac_executable_extensions; do
29856   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29857     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29858     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29859     break 2
29860   fi
29861 done
29862   done
29863 IFS=$as_save_IFS
29864
29865   ;;
29866 esac
29867 fi
29868 PKGCONFIG=$ac_cv_path_PKGCONFIG
29869 if test -n "$PKGCONFIG"; then
29870   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29871 printf "%s\n" "$PKGCONFIG" >&6; }
29872 else
29873   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29874 printf "%s\n" "no" >&6; }
29875 fi
29876
29877
29878 fi
29879 if test -z "$ac_cv_path_PKGCONFIG"; then
29880   ac_pt_PKGCONFIG=$PKGCONFIG
29881   # Extract the first word of "pkg-config", so it can be a program name with args.
29882 set dummy pkg-config; ac_word=$2
29883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29884 printf %s "checking for $ac_word... " >&6; }
29885 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29886 then :
29887   printf %s "(cached) " >&6
29888 else $as_nop
29889   case $ac_pt_PKGCONFIG in
29890   [\\/]* | ?:[\\/]*)
29891   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29892   ;;
29893   *)
29894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29895 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29896 for as_dir in $as_dummy
29897 do
29898   IFS=$as_save_IFS
29899   case $as_dir in #(((
29900     '') as_dir=./ ;;
29901     */) ;;
29902     *) as_dir=$as_dir/ ;;
29903   esac
29904     for ac_exec_ext in '' $ac_executable_extensions; do
29905   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29906     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29907     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29908     break 2
29909   fi
29910 done
29911   done
29912 IFS=$as_save_IFS
29913
29914   ;;
29915 esac
29916 fi
29917 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29918 if test -n "$ac_pt_PKGCONFIG"; then
29919   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29920 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29921 else
29922   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29923 printf "%s\n" "no" >&6; }
29924 fi
29925
29926   if test "x$ac_pt_PKGCONFIG" = x; then
29927     PKGCONFIG="no"
29928   else
29929     case $cross_compiling:$ac_tool_warned in
29930 yes:)
29931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29932 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29933 ac_tool_warned=yes ;;
29934 esac
29935     PKGCONFIG=$ac_pt_PKGCONFIG
29936   fi
29937 else
29938   PKGCONFIG="$ac_cv_path_PKGCONFIG"
29939 fi
29940
29941     fi
29942
29943     if test "x$PKGCONFIG" != "xno"; then
29944       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
29945 printf %s "checking for libidn2 options with pkg-config... " >&6; }
29946             itexists=`
29947     if test -n "$IDN_PCDIR"; then
29948       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
29949       export PKG_CONFIG_LIBDIR
29950     fi
29951          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
29952
29953       if test -z "$itexists"; then
29954                         PKGCONFIG="no"
29955         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29956 printf "%s\n" "no" >&6; }
29957       else
29958         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29959 printf "%s\n" "found" >&6; }
29960       fi
29961     fi
29962
29963     if test "$PKGCONFIG" != "no"; then
29964       IDN_LIBS=`
29965     if test -n "$IDN_PCDIR"; then
29966       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
29967       export PKG_CONFIG_LIBDIR
29968     fi
29969          $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
29970       IDN_LDFLAGS=`
29971     if test -n "$IDN_PCDIR"; then
29972       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
29973       export PKG_CONFIG_LIBDIR
29974     fi
29975          $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
29976       IDN_CPPFLAGS=`
29977     if test -n "$IDN_PCDIR"; then
29978       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
29979       export PKG_CONFIG_LIBDIR
29980     fi
29981          $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
29982       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
29983     else
29984             IDN_LIBS="-lidn2"
29985       IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
29986       IDN_CPPFLAGS="-I$want_idn_path/include"
29987       IDN_DIR="$want_idn_path/lib$libsuff"
29988     fi
29989   else
29990
29991     if test -n "$PKG_CONFIG"; then
29992       PKGCONFIG="$PKG_CONFIG"
29993     else
29994       if test -n "$ac_tool_prefix"; then
29995   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29996 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29998 printf %s "checking for $ac_word... " >&6; }
29999 if test ${ac_cv_path_PKGCONFIG+y}
30000 then :
30001   printf %s "(cached) " >&6
30002 else $as_nop
30003   case $PKGCONFIG in
30004   [\\/]* | ?:[\\/]*)
30005   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30006   ;;
30007   *)
30008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30009 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30010 for as_dir in $as_dummy
30011 do
30012   IFS=$as_save_IFS
30013   case $as_dir in #(((
30014     '') as_dir=./ ;;
30015     */) ;;
30016     *) as_dir=$as_dir/ ;;
30017   esac
30018     for ac_exec_ext in '' $ac_executable_extensions; do
30019   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30020     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30021     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30022     break 2
30023   fi
30024 done
30025   done
30026 IFS=$as_save_IFS
30027
30028   ;;
30029 esac
30030 fi
30031 PKGCONFIG=$ac_cv_path_PKGCONFIG
30032 if test -n "$PKGCONFIG"; then
30033   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30034 printf "%s\n" "$PKGCONFIG" >&6; }
30035 else
30036   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30037 printf "%s\n" "no" >&6; }
30038 fi
30039
30040
30041 fi
30042 if test -z "$ac_cv_path_PKGCONFIG"; then
30043   ac_pt_PKGCONFIG=$PKGCONFIG
30044   # Extract the first word of "pkg-config", so it can be a program name with args.
30045 set dummy pkg-config; ac_word=$2
30046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30047 printf %s "checking for $ac_word... " >&6; }
30048 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30049 then :
30050   printf %s "(cached) " >&6
30051 else $as_nop
30052   case $ac_pt_PKGCONFIG in
30053   [\\/]* | ?:[\\/]*)
30054   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30055   ;;
30056   *)
30057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30058 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30059 for as_dir in $as_dummy
30060 do
30061   IFS=$as_save_IFS
30062   case $as_dir in #(((
30063     '') as_dir=./ ;;
30064     */) ;;
30065     *) as_dir=$as_dir/ ;;
30066   esac
30067     for ac_exec_ext in '' $ac_executable_extensions; do
30068   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30069     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30070     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30071     break 2
30072   fi
30073 done
30074   done
30075 IFS=$as_save_IFS
30076
30077   ;;
30078 esac
30079 fi
30080 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30081 if test -n "$ac_pt_PKGCONFIG"; then
30082   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30083 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30084 else
30085   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30086 printf "%s\n" "no" >&6; }
30087 fi
30088
30089   if test "x$ac_pt_PKGCONFIG" = x; then
30090     PKGCONFIG="no"
30091   else
30092     case $cross_compiling:$ac_tool_warned in
30093 yes:)
30094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30095 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30096 ac_tool_warned=yes ;;
30097 esac
30098     PKGCONFIG=$ac_pt_PKGCONFIG
30099   fi
30100 else
30101   PKGCONFIG="$ac_cv_path_PKGCONFIG"
30102 fi
30103
30104     fi
30105
30106     if test "x$PKGCONFIG" != "xno"; then
30107       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30108 printf %s "checking for libidn2 options with pkg-config... " >&6; }
30109             itexists=`
30110     if test -n ""; then
30111       PKG_CONFIG_LIBDIR=""
30112       export PKG_CONFIG_LIBDIR
30113     fi
30114          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30115
30116       if test -z "$itexists"; then
30117                         PKGCONFIG="no"
30118         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30119 printf "%s\n" "no" >&6; }
30120       else
30121         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30122 printf "%s\n" "found" >&6; }
30123       fi
30124     fi
30125
30126     if test "$PKGCONFIG" != "no"; then
30127       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30128       IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30129       IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30130       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30131     else
30132             IDN_LIBS="-lidn2"
30133     fi
30134   fi
30135   #
30136   if test "$PKGCONFIG" != "no"; then
30137     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
30138 printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30139     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30140 printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30141     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30142 printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30143     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
30144 printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
30145   else
30146     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
30147 printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30148     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30149 printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30150     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30151 printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30152     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
30153 printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
30154   fi
30155   #
30156   CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
30157   LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
30158   LIBS="$IDN_LIBS $LIBS"
30159   #
30160   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
30161 printf %s "checking if idn2_lookup_ul can be linked... " >&6; }
30162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30163 /* end confdefs.h.  */
30164
30165
30166 #define idn2_lookup_ul innocuous_idn2_lookup_ul
30167 #ifdef __STDC__
30168 # include <limits.h>
30169 #else
30170 # include <assert.h>
30171 #endif
30172 #undef idn2_lookup_ul
30173 #ifdef __cplusplus
30174 extern "C"
30175 #endif
30176 char idn2_lookup_ul ();
30177 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
30178 choke me
30179 #endif
30180
30181 int main (void)
30182 {
30183 return idn2_lookup_ul ();
30184  ;
30185  return 0;
30186 }
30187
30188 _ACEOF
30189 if ac_fn_c_try_link "$LINENO"
30190 then :
30191
30192     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30193 printf "%s\n" "yes" >&6; }
30194     tst_links_libidn="yes"
30195
30196 else $as_nop
30197
30198     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30199 printf "%s\n" "no" >&6; }
30200     tst_links_libidn="no"
30201
30202 fi
30203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30204     conftest$ac_exeext conftest.$ac_ext
30205   #
30206   ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
30207 if test "x$ac_cv_header_idn2_h" = xyes
30208 then :
30209   printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
30210
30211 fi
30212
30213
30214   if test "$tst_links_libidn" = "yes"; then
30215
30216 printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
30217
30218
30219     IDN_ENABLED=1
30220
30221     curl_idn_msg="enabled (libidn2)"
30222     if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
30223       CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
30224       export CURL_LIBRARY_PATH
30225       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
30226 printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
30227     fi
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     CPPFLAGS="$clean_CPPFLAGS"
30232     LDFLAGS="$clean_LDFLAGS"
30233     LIBS="$clean_LIBS"
30234   fi
30235 fi
30236
30237
30238 OPT_H2="yes"
30239
30240 if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then
30241   # without HTTP or with Hyper, nghttp2 is no use
30242   OPT_H2="no"
30243 fi
30244
30245
30246 # Check whether --with-nghttp2 was given.
30247 if test ${with_nghttp2+y}
30248 then :
30249   withval=$with_nghttp2; OPT_H2=$withval
30250 fi
30251
30252 case "$OPT_H2" in
30253   no)
30254         want_nghttp2="no"
30255     ;;
30256   yes)
30257         want_nghttp2="default"
30258     want_nghttp2_path=""
30259     want_nghttp2_pkg_config_path=""
30260     ;;
30261   *)
30262         want_nghttp2="yes"
30263     want_nghttp2_path="$withval"
30264     want_nghttp2_pkg_config_path="$withval/lib/pkgconfig"
30265     ;;
30266 esac
30267
30268 if test X"$want_nghttp2" != Xno; then
30269     CLEANLDFLAGS="$LDFLAGS"
30270   CLEANCPPFLAGS="$CPPFLAGS"
30271   CLEANLIBS="$LIBS"
30272
30273
30274     if test -n "$PKG_CONFIG"; then
30275       PKGCONFIG="$PKG_CONFIG"
30276     else
30277       if test -n "$ac_tool_prefix"; then
30278   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30279 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30281 printf %s "checking for $ac_word... " >&6; }
30282 if test ${ac_cv_path_PKGCONFIG+y}
30283 then :
30284   printf %s "(cached) " >&6
30285 else $as_nop
30286   case $PKGCONFIG in
30287   [\\/]* | ?:[\\/]*)
30288   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30289   ;;
30290   *)
30291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30292 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30293 for as_dir in $as_dummy
30294 do
30295   IFS=$as_save_IFS
30296   case $as_dir in #(((
30297     '') as_dir=./ ;;
30298     */) ;;
30299     *) as_dir=$as_dir/ ;;
30300   esac
30301     for ac_exec_ext in '' $ac_executable_extensions; do
30302   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30303     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30304     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30305     break 2
30306   fi
30307 done
30308   done
30309 IFS=$as_save_IFS
30310
30311   ;;
30312 esac
30313 fi
30314 PKGCONFIG=$ac_cv_path_PKGCONFIG
30315 if test -n "$PKGCONFIG"; then
30316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30317 printf "%s\n" "$PKGCONFIG" >&6; }
30318 else
30319   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30320 printf "%s\n" "no" >&6; }
30321 fi
30322
30323
30324 fi
30325 if test -z "$ac_cv_path_PKGCONFIG"; then
30326   ac_pt_PKGCONFIG=$PKGCONFIG
30327   # Extract the first word of "pkg-config", so it can be a program name with args.
30328 set dummy pkg-config; ac_word=$2
30329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30330 printf %s "checking for $ac_word... " >&6; }
30331 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30332 then :
30333   printf %s "(cached) " >&6
30334 else $as_nop
30335   case $ac_pt_PKGCONFIG in
30336   [\\/]* | ?:[\\/]*)
30337   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30338   ;;
30339   *)
30340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30341 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30342 for as_dir in $as_dummy
30343 do
30344   IFS=$as_save_IFS
30345   case $as_dir in #(((
30346     '') as_dir=./ ;;
30347     */) ;;
30348     *) as_dir=$as_dir/ ;;
30349   esac
30350     for ac_exec_ext in '' $ac_executable_extensions; do
30351   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30352     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30353     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30354     break 2
30355   fi
30356 done
30357   done
30358 IFS=$as_save_IFS
30359
30360   ;;
30361 esac
30362 fi
30363 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30364 if test -n "$ac_pt_PKGCONFIG"; then
30365   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30366 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30367 else
30368   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30369 printf "%s\n" "no" >&6; }
30370 fi
30371
30372   if test "x$ac_pt_PKGCONFIG" = x; then
30373     PKGCONFIG="no"
30374   else
30375     case $cross_compiling:$ac_tool_warned in
30376 yes:)
30377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30378 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30379 ac_tool_warned=yes ;;
30380 esac
30381     PKGCONFIG=$ac_pt_PKGCONFIG
30382   fi
30383 else
30384   PKGCONFIG="$ac_cv_path_PKGCONFIG"
30385 fi
30386
30387     fi
30388
30389     if test "x$PKGCONFIG" != "xno"; then
30390       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
30391 printf %s "checking for libnghttp2 options with pkg-config... " >&6; }
30392             itexists=`
30393     if test -n "$want_nghttp2_pkg_config_path"; then
30394       PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30395       export PKG_CONFIG_LIBDIR
30396     fi
30397          $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
30398
30399       if test -z "$itexists"; then
30400                         PKGCONFIG="no"
30401         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30402 printf "%s\n" "no" >&6; }
30403       else
30404         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30405 printf "%s\n" "found" >&6; }
30406       fi
30407     fi
30408
30409
30410   if test "$PKGCONFIG" != "no" ; then
30411     LIB_H2=`
30412     if test -n "$want_nghttp2_pkg_config_path"; then
30413       PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30414       export PKG_CONFIG_LIBDIR
30415     fi
30416
30417       $PKGCONFIG --libs-only-l libnghttp2`
30418     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
30419 printf "%s\n" "$as_me: -l is $LIB_H2" >&6;}
30420
30421     CPP_H2=`
30422     if test -n "$want_nghttp2_pkg_config_path"; then
30423       PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30424       export PKG_CONFIG_LIBDIR
30425     fi
30426        $PKGCONFIG --cflags-only-I libnghttp2`
30427     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
30428 printf "%s\n" "$as_me: -I is $CPP_H2" >&6;}
30429
30430     LD_H2=`
30431     if test -n "$want_nghttp2_pkg_config_path"; then
30432       PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30433       export PKG_CONFIG_LIBDIR
30434     fi
30435
30436       $PKGCONFIG --libs-only-L libnghttp2`
30437     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
30438 printf "%s\n" "$as_me: -L is $LD_H2" >&6;}
30439
30440     DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
30441   elif test x"$want_nghttp2_path" != x; then
30442     LIB_H2="-lnghttp2"
30443     LD_H2=-L${want_nghttp2_path}/lib$libsuff
30444     CPP_H2=-I${want_nghttp2_path}/include
30445     DIR_H2=${want_nghttp2_path}/lib$libsuff
30446   elif test X"$want_nghttp2" != Xdefault; then
30447             as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
30448   fi
30449
30450   LDFLAGS="$LDFLAGS $LD_H2"
30451   CPPFLAGS="$CPPFLAGS $CPP_H2"
30452   LIBS="$LIB_H2 $LIBS"
30453
30454   # use nghttp2_session_set_local_window_size to require nghttp2
30455   # >= 1.12.0
30456   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_set_local_window_size in -lnghttp2" >&5
30457 printf %s "checking for nghttp2_session_set_local_window_size in -lnghttp2... " >&6; }
30458 if test ${ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size+y}
30459 then :
30460   printf %s "(cached) " >&6
30461 else $as_nop
30462   ac_check_lib_save_LIBS=$LIBS
30463 LIBS="-lnghttp2  $LIBS"
30464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30465 /* end confdefs.h.  */
30466
30467
30468 #ifdef __cplusplus
30469 extern "C"
30470 #endif
30471 char nghttp2_session_set_local_window_size ();
30472 int main (void)
30473 {
30474 return nghttp2_session_set_local_window_size ();
30475  ;
30476  return 0;
30477 }
30478 _ACEOF
30479 if ac_fn_c_try_link "$LINENO"
30480 then :
30481   ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=yes
30482 else $as_nop
30483   ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=no
30484 fi
30485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30486     conftest$ac_exeext conftest.$ac_ext
30487 LIBS=$ac_check_lib_save_LIBS
30488 fi
30489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&5
30490 printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&6; }
30491 if test "x$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" = xyes
30492 then :
30493
30494             for ac_header in nghttp2/nghttp2.h
30495 do :
30496   ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
30497 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
30498 then :
30499   printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
30500  curl_h2_msg="enabled (nghttp2)"
30501         NGHTTP2_ENABLED=1
30502
30503 printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h
30504
30505         USE_NGHTTP2=1
30506
30507
30508 fi
30509
30510 done
30511
30512      CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2"
30513      export CURL_LIBRARY_PATH
30514      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_H2 to CURL_LIBRARY_PATH" >&5
30515 printf "%s\n" "$as_me: Added $DIR_H2 to CURL_LIBRARY_PATH" >&6;}
30516
30517 else $as_nop
30518         LDFLAGS=$CLEANLDFLAGS
30519       CPPFLAGS=$CLEANCPPFLAGS
30520       LIBS=$CLEANLIBS
30521
30522 fi
30523
30524 fi
30525
30526
30527 OPT_TCP2="no"
30528
30529 if test "x$disable_http" = "xyes"; then
30530   # without HTTP, ngtcp2 is no use
30531   OPT_TCP2="no"
30532 fi
30533
30534
30535 # Check whether --with-ngtcp2 was given.
30536 if test ${with_ngtcp2+y}
30537 then :
30538   withval=$with_ngtcp2; OPT_TCP2=$withval
30539 fi
30540
30541 case "$OPT_TCP2" in
30542   no)
30543         want_tcp2="no"
30544     ;;
30545   yes)
30546         want_tcp2="default"
30547     want_tcp2_path=""
30548     ;;
30549   *)
30550         want_tcp2="yes"
30551     want_tcp2_path="$withval/lib/pkgconfig"
30552     ;;
30553 esac
30554
30555 curl_tcp2_msg="no      (--with-ngtcp2)"
30556 if test X"$want_tcp2" != Xno; then
30557     CLEANLDFLAGS="$LDFLAGS"
30558   CLEANCPPFLAGS="$CPPFLAGS"
30559   CLEANLIBS="$LIBS"
30560
30561
30562     if test -n "$PKG_CONFIG"; then
30563       PKGCONFIG="$PKG_CONFIG"
30564     else
30565       if test -n "$ac_tool_prefix"; then
30566   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30567 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30569 printf %s "checking for $ac_word... " >&6; }
30570 if test ${ac_cv_path_PKGCONFIG+y}
30571 then :
30572   printf %s "(cached) " >&6
30573 else $as_nop
30574   case $PKGCONFIG in
30575   [\\/]* | ?:[\\/]*)
30576   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30577   ;;
30578   *)
30579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30580 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30581 for as_dir in $as_dummy
30582 do
30583   IFS=$as_save_IFS
30584   case $as_dir in #(((
30585     '') as_dir=./ ;;
30586     */) ;;
30587     *) as_dir=$as_dir/ ;;
30588   esac
30589     for ac_exec_ext in '' $ac_executable_extensions; do
30590   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30591     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30592     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30593     break 2
30594   fi
30595 done
30596   done
30597 IFS=$as_save_IFS
30598
30599   ;;
30600 esac
30601 fi
30602 PKGCONFIG=$ac_cv_path_PKGCONFIG
30603 if test -n "$PKGCONFIG"; then
30604   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30605 printf "%s\n" "$PKGCONFIG" >&6; }
30606 else
30607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30608 printf "%s\n" "no" >&6; }
30609 fi
30610
30611
30612 fi
30613 if test -z "$ac_cv_path_PKGCONFIG"; then
30614   ac_pt_PKGCONFIG=$PKGCONFIG
30615   # Extract the first word of "pkg-config", so it can be a program name with args.
30616 set dummy pkg-config; ac_word=$2
30617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30618 printf %s "checking for $ac_word... " >&6; }
30619 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30620 then :
30621   printf %s "(cached) " >&6
30622 else $as_nop
30623   case $ac_pt_PKGCONFIG in
30624   [\\/]* | ?:[\\/]*)
30625   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30626   ;;
30627   *)
30628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30629 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30630 for as_dir in $as_dummy
30631 do
30632   IFS=$as_save_IFS
30633   case $as_dir in #(((
30634     '') as_dir=./ ;;
30635     */) ;;
30636     *) as_dir=$as_dir/ ;;
30637   esac
30638     for ac_exec_ext in '' $ac_executable_extensions; do
30639   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30640     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30641     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30642     break 2
30643   fi
30644 done
30645   done
30646 IFS=$as_save_IFS
30647
30648   ;;
30649 esac
30650 fi
30651 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30652 if test -n "$ac_pt_PKGCONFIG"; then
30653   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30654 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30655 else
30656   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30657 printf "%s\n" "no" >&6; }
30658 fi
30659
30660   if test "x$ac_pt_PKGCONFIG" = x; then
30661     PKGCONFIG="no"
30662   else
30663     case $cross_compiling:$ac_tool_warned in
30664 yes:)
30665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30666 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30667 ac_tool_warned=yes ;;
30668 esac
30669     PKGCONFIG=$ac_pt_PKGCONFIG
30670   fi
30671 else
30672   PKGCONFIG="$ac_cv_path_PKGCONFIG"
30673 fi
30674
30675     fi
30676
30677     if test "x$PKGCONFIG" != "xno"; then
30678       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
30679 printf %s "checking for libngtcp2 options with pkg-config... " >&6; }
30680             itexists=`
30681     if test -n "$want_tcp2_path"; then
30682       PKG_CONFIG_LIBDIR="$want_tcp2_path"
30683       export PKG_CONFIG_LIBDIR
30684     fi
30685          $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
30686
30687       if test -z "$itexists"; then
30688                         PKGCONFIG="no"
30689         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30690 printf "%s\n" "no" >&6; }
30691       else
30692         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30693 printf "%s\n" "found" >&6; }
30694       fi
30695     fi
30696
30697
30698   if test "$PKGCONFIG" != "no" ; then
30699     LIB_TCP2=`
30700     if test -n "$want_tcp2_path"; then
30701       PKG_CONFIG_LIBDIR="$want_tcp2_path"
30702       export PKG_CONFIG_LIBDIR
30703     fi
30704
30705       $PKGCONFIG --libs-only-l libngtcp2`
30706     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
30707 printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;}
30708
30709     CPP_TCP2=`
30710     if test -n "$want_tcp2_path"; then
30711       PKG_CONFIG_LIBDIR="$want_tcp2_path"
30712       export PKG_CONFIG_LIBDIR
30713     fi
30714        $PKGCONFIG --cflags-only-I libngtcp2`
30715     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
30716 printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;}
30717
30718     LD_TCP2=`
30719     if test -n "$want_tcp2_path"; then
30720       PKG_CONFIG_LIBDIR="$want_tcp2_path"
30721       export PKG_CONFIG_LIBDIR
30722     fi
30723
30724       $PKGCONFIG --libs-only-L libngtcp2`
30725     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
30726 printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;}
30727
30728     LDFLAGS="$LDFLAGS $LD_TCP2"
30729     CPPFLAGS="$CPPFLAGS $CPP_TCP2"
30730     LIBS="$LIB_TCP2 $LIBS"
30731
30732     if test "x$cross_compiling" != "xyes"; then
30733       DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
30734     fi
30735     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5
30736 printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; }
30737 if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y}
30738 then :
30739   printf %s "(cached) " >&6
30740 else $as_nop
30741   ac_check_lib_save_LIBS=$LIBS
30742 LIBS="-lngtcp2  $LIBS"
30743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30744 /* end confdefs.h.  */
30745
30746
30747 #ifdef __cplusplus
30748 extern "C"
30749 #endif
30750 char ngtcp2_conn_client_new_versioned ();
30751 int main (void)
30752 {
30753 return ngtcp2_conn_client_new_versioned ();
30754  ;
30755  return 0;
30756 }
30757 _ACEOF
30758 if ac_fn_c_try_link "$LINENO"
30759 then :
30760   ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes
30761 else $as_nop
30762   ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no
30763 fi
30764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30765     conftest$ac_exeext conftest.$ac_ext
30766 LIBS=$ac_check_lib_save_LIBS
30767 fi
30768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5
30769 printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; }
30770 if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes
30771 then :
30772
30773               for ac_header in ngtcp2/ngtcp2.h
30774 do :
30775   ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
30776 if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
30777 then :
30778   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
30779  NGTCP2_ENABLED=1
30780
30781 printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h
30782
30783           USE_NGTCP2=1
30784
30785           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
30786           export CURL_LIBRARY_PATH
30787           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
30788 printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
30789
30790 fi
30791
30792 done
30793
30794 else $as_nop
30795           LDFLAGS=$CLEANLDFLAGS
30796         CPPFLAGS=$CLEANCPPFLAGS
30797         LIBS=$CLEANLIBS
30798
30799 fi
30800
30801
30802   else
30803         if test X"$want_tcp2" != Xdefault; then
30804                   as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
30805     fi
30806   fi
30807
30808 fi
30809
30810 if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
30811     CLEANLDFLAGS="$LDFLAGS"
30812   CLEANCPPFLAGS="$CPPFLAGS"
30813   CLEANLIBS="$LIBS"
30814
30815
30816     if test -n "$PKG_CONFIG"; then
30817       PKGCONFIG="$PKG_CONFIG"
30818     else
30819       if test -n "$ac_tool_prefix"; then
30820   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30821 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30823 printf %s "checking for $ac_word... " >&6; }
30824 if test ${ac_cv_path_PKGCONFIG+y}
30825 then :
30826   printf %s "(cached) " >&6
30827 else $as_nop
30828   case $PKGCONFIG in
30829   [\\/]* | ?:[\\/]*)
30830   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30831   ;;
30832   *)
30833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30834 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30835 for as_dir in $as_dummy
30836 do
30837   IFS=$as_save_IFS
30838   case $as_dir in #(((
30839     '') as_dir=./ ;;
30840     */) ;;
30841     *) as_dir=$as_dir/ ;;
30842   esac
30843     for ac_exec_ext in '' $ac_executable_extensions; do
30844   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30845     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30846     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30847     break 2
30848   fi
30849 done
30850   done
30851 IFS=$as_save_IFS
30852
30853   ;;
30854 esac
30855 fi
30856 PKGCONFIG=$ac_cv_path_PKGCONFIG
30857 if test -n "$PKGCONFIG"; then
30858   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30859 printf "%s\n" "$PKGCONFIG" >&6; }
30860 else
30861   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30862 printf "%s\n" "no" >&6; }
30863 fi
30864
30865
30866 fi
30867 if test -z "$ac_cv_path_PKGCONFIG"; then
30868   ac_pt_PKGCONFIG=$PKGCONFIG
30869   # Extract the first word of "pkg-config", so it can be a program name with args.
30870 set dummy pkg-config; ac_word=$2
30871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30872 printf %s "checking for $ac_word... " >&6; }
30873 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30874 then :
30875   printf %s "(cached) " >&6
30876 else $as_nop
30877   case $ac_pt_PKGCONFIG in
30878   [\\/]* | ?:[\\/]*)
30879   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30880   ;;
30881   *)
30882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30883 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30884 for as_dir in $as_dummy
30885 do
30886   IFS=$as_save_IFS
30887   case $as_dir in #(((
30888     '') as_dir=./ ;;
30889     */) ;;
30890     *) as_dir=$as_dir/ ;;
30891   esac
30892     for ac_exec_ext in '' $ac_executable_extensions; do
30893   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30894     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30895     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30896     break 2
30897   fi
30898 done
30899   done
30900 IFS=$as_save_IFS
30901
30902   ;;
30903 esac
30904 fi
30905 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30906 if test -n "$ac_pt_PKGCONFIG"; then
30907   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30908 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30909 else
30910   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30911 printf "%s\n" "no" >&6; }
30912 fi
30913
30914   if test "x$ac_pt_PKGCONFIG" = x; then
30915     PKGCONFIG="no"
30916   else
30917     case $cross_compiling:$ac_tool_warned in
30918 yes:)
30919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30920 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30921 ac_tool_warned=yes ;;
30922 esac
30923     PKGCONFIG=$ac_pt_PKGCONFIG
30924   fi
30925 else
30926   PKGCONFIG="$ac_cv_path_PKGCONFIG"
30927 fi
30928
30929     fi
30930
30931     if test "x$PKGCONFIG" != "xno"; then
30932       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl options with pkg-config" >&5
30933 printf %s "checking for libngtcp2_crypto_openssl options with pkg-config... " >&6; }
30934             itexists=`
30935     if test -n "$want_tcp2_path"; then
30936       PKG_CONFIG_LIBDIR="$want_tcp2_path"
30937       export PKG_CONFIG_LIBDIR
30938     fi
30939          $PKGCONFIG --exists libngtcp2_crypto_openssl >/dev/null 2>&1 && echo 1`
30940
30941       if test -z "$itexists"; then
30942                         PKGCONFIG="no"
30943         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30944 printf "%s\n" "no" >&6; }
30945       else
30946         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30947 printf "%s\n" "found" >&6; }
30948       fi
30949     fi
30950
30951
30952   if test "$PKGCONFIG" != "no" ; then
30953     LIB_NGTCP2_CRYPTO_OPENSSL=`
30954     if test -n "$want_tcp2_path"; then
30955       PKG_CONFIG_LIBDIR="$want_tcp2_path"
30956       export PKG_CONFIG_LIBDIR
30957     fi
30958
30959       $PKGCONFIG --libs-only-l libngtcp2_crypto_openssl`
30960     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&5
30961 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&6;}
30962
30963     CPP_NGTCP2_CRYPTO_OPENSSL=`
30964     if test -n "$want_tcp2_path"; then
30965       PKG_CONFIG_LIBDIR="$want_tcp2_path"
30966       export PKG_CONFIG_LIBDIR
30967     fi
30968        $PKGCONFIG --cflags-only-I libngtcp2_crypto_openssl`
30969     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&5
30970 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&6;}
30971
30972     LD_NGTCP2_CRYPTO_OPENSSL=`
30973     if test -n "$want_tcp2_path"; then
30974       PKG_CONFIG_LIBDIR="$want_tcp2_path"
30975       export PKG_CONFIG_LIBDIR
30976     fi
30977
30978       $PKGCONFIG --libs-only-L libngtcp2_crypto_openssl`
30979     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&5
30980 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&6;}
30981
30982     LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_OPENSSL"
30983     CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_OPENSSL"
30984     LIBS="$LIB_NGTCP2_CRYPTO_OPENSSL $LIBS"
30985
30986     if test "x$cross_compiling" != "xyes"; then
30987       DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/^-L//'`
30988     fi
30989     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_openssl" >&5
30990 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_openssl... " >&6; }
30991 if test ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb+y}
30992 then :
30993   printf %s "(cached) " >&6
30994 else $as_nop
30995   ac_check_lib_save_LIBS=$LIBS
30996 LIBS="-lngtcp2_crypto_openssl  $LIBS"
30997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30998 /* end confdefs.h.  */
30999
31000
31001 #ifdef __cplusplus
31002 extern "C"
31003 #endif
31004 char ngtcp2_crypto_recv_client_initial_cb ();
31005 int main (void)
31006 {
31007 return ngtcp2_crypto_recv_client_initial_cb ();
31008  ;
31009  return 0;
31010 }
31011 _ACEOF
31012 if ac_fn_c_try_link "$LINENO"
31013 then :
31014   ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb=yes
31015 else $as_nop
31016   ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb=no
31017 fi
31018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31019     conftest$ac_exeext conftest.$ac_ext
31020 LIBS=$ac_check_lib_save_LIBS
31021 fi
31022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" >&5
31023 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31024 if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
31025 then :
31026
31027               for ac_header in ngtcp2/ngtcp2_crypto.h
31028 do :
31029   ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31030 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31031 then :
31032   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31033  NGTCP2_ENABLED=1
31034
31035 printf "%s\n" "#define USE_NGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
31036
31037           USE_NGTCP2_CRYPTO_OPENSSL=1
31038
31039           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_OPENSSL"
31040           export CURL_LIBRARY_PATH
31041           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&5
31042 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&6;}
31043
31044 fi
31045
31046 done
31047
31048 else $as_nop
31049           LDFLAGS=$CLEANLDFLAGS
31050         CPPFLAGS=$CLEANCPPFLAGS
31051         LIBS=$CLEANLIBS
31052
31053 fi
31054
31055
31056   else
31057         if test X"$want_tcp2" != Xdefault; then
31058                   as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_openssl pkg-config file." "$LINENO" 5
31059     fi
31060   fi
31061 fi
31062
31063 if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
31064     CLEANLDFLAGS="$LDFLAGS"
31065   CLEANCPPFLAGS="$CPPFLAGS"
31066   CLEANLIBS="$LIBS"
31067
31068
31069     if test -n "$PKG_CONFIG"; then
31070       PKGCONFIG="$PKG_CONFIG"
31071     else
31072       if test -n "$ac_tool_prefix"; then
31073   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31074 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31076 printf %s "checking for $ac_word... " >&6; }
31077 if test ${ac_cv_path_PKGCONFIG+y}
31078 then :
31079   printf %s "(cached) " >&6
31080 else $as_nop
31081   case $PKGCONFIG in
31082   [\\/]* | ?:[\\/]*)
31083   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31084   ;;
31085   *)
31086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31087 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31088 for as_dir in $as_dummy
31089 do
31090   IFS=$as_save_IFS
31091   case $as_dir in #(((
31092     '') as_dir=./ ;;
31093     */) ;;
31094     *) as_dir=$as_dir/ ;;
31095   esac
31096     for ac_exec_ext in '' $ac_executable_extensions; do
31097   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31098     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31099     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31100     break 2
31101   fi
31102 done
31103   done
31104 IFS=$as_save_IFS
31105
31106   ;;
31107 esac
31108 fi
31109 PKGCONFIG=$ac_cv_path_PKGCONFIG
31110 if test -n "$PKGCONFIG"; then
31111   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31112 printf "%s\n" "$PKGCONFIG" >&6; }
31113 else
31114   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31115 printf "%s\n" "no" >&6; }
31116 fi
31117
31118
31119 fi
31120 if test -z "$ac_cv_path_PKGCONFIG"; then
31121   ac_pt_PKGCONFIG=$PKGCONFIG
31122   # Extract the first word of "pkg-config", so it can be a program name with args.
31123 set dummy pkg-config; ac_word=$2
31124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31125 printf %s "checking for $ac_word... " >&6; }
31126 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31127 then :
31128   printf %s "(cached) " >&6
31129 else $as_nop
31130   case $ac_pt_PKGCONFIG in
31131   [\\/]* | ?:[\\/]*)
31132   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31133   ;;
31134   *)
31135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31136 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31137 for as_dir in $as_dummy
31138 do
31139   IFS=$as_save_IFS
31140   case $as_dir in #(((
31141     '') as_dir=./ ;;
31142     */) ;;
31143     *) as_dir=$as_dir/ ;;
31144   esac
31145     for ac_exec_ext in '' $ac_executable_extensions; do
31146   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31147     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31148     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31149     break 2
31150   fi
31151 done
31152   done
31153 IFS=$as_save_IFS
31154
31155   ;;
31156 esac
31157 fi
31158 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31159 if test -n "$ac_pt_PKGCONFIG"; then
31160   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31161 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31162 else
31163   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31164 printf "%s\n" "no" >&6; }
31165 fi
31166
31167   if test "x$ac_pt_PKGCONFIG" = x; then
31168     PKGCONFIG="no"
31169   else
31170     case $cross_compiling:$ac_tool_warned in
31171 yes:)
31172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31173 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31174 ac_tool_warned=yes ;;
31175 esac
31176     PKGCONFIG=$ac_pt_PKGCONFIG
31177   fi
31178 else
31179   PKGCONFIG="$ac_cv_path_PKGCONFIG"
31180 fi
31181
31182     fi
31183
31184     if test "x$PKGCONFIG" != "xno"; then
31185       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
31186 printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
31187             itexists=`
31188     if test -n "$want_tcp2_path"; then
31189       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31190       export PKG_CONFIG_LIBDIR
31191     fi
31192          $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
31193
31194       if test -z "$itexists"; then
31195                         PKGCONFIG="no"
31196         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31197 printf "%s\n" "no" >&6; }
31198       else
31199         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31200 printf "%s\n" "found" >&6; }
31201       fi
31202     fi
31203
31204
31205   if test "$PKGCONFIG" != "no" ; then
31206     LIB_NGTCP2_CRYPTO_GNUTLS=`
31207     if test -n "$want_tcp2_path"; then
31208       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31209       export PKG_CONFIG_LIBDIR
31210     fi
31211
31212       $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
31213     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
31214 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
31215
31216     CPP_NGTCP2_CRYPTO_GNUTLS=`
31217     if test -n "$want_tcp2_path"; then
31218       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31219       export PKG_CONFIG_LIBDIR
31220     fi
31221        $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
31222     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
31223 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
31224
31225     LD_NGTCP2_CRYPTO_GNUTLS=`
31226     if test -n "$want_tcp2_path"; then
31227       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31228       export PKG_CONFIG_LIBDIR
31229     fi
31230
31231       $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
31232     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
31233 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
31234
31235     LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
31236     CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
31237     LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
31238
31239     if test "x$cross_compiling" != "xyes"; then
31240       DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
31241     fi
31242     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls" >&5
31243 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls... " >&6; }
31244 if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb+y}
31245 then :
31246   printf %s "(cached) " >&6
31247 else $as_nop
31248   ac_check_lib_save_LIBS=$LIBS
31249 LIBS="-lngtcp2_crypto_gnutls  $LIBS"
31250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31251 /* end confdefs.h.  */
31252
31253
31254 #ifdef __cplusplus
31255 extern "C"
31256 #endif
31257 char ngtcp2_crypto_recv_client_initial_cb ();
31258 int main (void)
31259 {
31260 return ngtcp2_crypto_recv_client_initial_cb ();
31261  ;
31262  return 0;
31263 }
31264 _ACEOF
31265 if ac_fn_c_try_link "$LINENO"
31266 then :
31267   ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=yes
31268 else $as_nop
31269   ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=no
31270 fi
31271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31272     conftest$ac_exeext conftest.$ac_ext
31273 LIBS=$ac_check_lib_save_LIBS
31274 fi
31275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&5
31276 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31277 if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" = xyes
31278 then :
31279
31280               for ac_header in ngtcp2/ngtcp2_crypto.h
31281 do :
31282   ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31283 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31284 then :
31285   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31286  NGTCP2_ENABLED=1
31287
31288 printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
31289
31290           USE_NGTCP2_CRYPTO_GNUTLS=1
31291
31292           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
31293           export CURL_LIBRARY_PATH
31294           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
31295 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
31296
31297 fi
31298
31299 done
31300
31301 else $as_nop
31302           LDFLAGS=$CLEANLDFLAGS
31303         CPPFLAGS=$CLEANCPPFLAGS
31304         LIBS=$CLEANLIBS
31305
31306 fi
31307
31308
31309   else
31310         if test X"$want_tcp2" != Xdefault; then
31311                   as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
31312     fi
31313   fi
31314 fi
31315
31316 if test "x$NGTCP2_ENABLED" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
31317     CLEANLDFLAGS="$LDFLAGS"
31318   CLEANCPPFLAGS="$CPPFLAGS"
31319   CLEANLIBS="$LIBS"
31320
31321
31322     if test -n "$PKG_CONFIG"; then
31323       PKGCONFIG="$PKG_CONFIG"
31324     else
31325       if test -n "$ac_tool_prefix"; then
31326   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31327 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31329 printf %s "checking for $ac_word... " >&6; }
31330 if test ${ac_cv_path_PKGCONFIG+y}
31331 then :
31332   printf %s "(cached) " >&6
31333 else $as_nop
31334   case $PKGCONFIG in
31335   [\\/]* | ?:[\\/]*)
31336   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31337   ;;
31338   *)
31339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31340 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31341 for as_dir in $as_dummy
31342 do
31343   IFS=$as_save_IFS
31344   case $as_dir in #(((
31345     '') as_dir=./ ;;
31346     */) ;;
31347     *) as_dir=$as_dir/ ;;
31348   esac
31349     for ac_exec_ext in '' $ac_executable_extensions; do
31350   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31351     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31352     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31353     break 2
31354   fi
31355 done
31356   done
31357 IFS=$as_save_IFS
31358
31359   ;;
31360 esac
31361 fi
31362 PKGCONFIG=$ac_cv_path_PKGCONFIG
31363 if test -n "$PKGCONFIG"; then
31364   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31365 printf "%s\n" "$PKGCONFIG" >&6; }
31366 else
31367   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31368 printf "%s\n" "no" >&6; }
31369 fi
31370
31371
31372 fi
31373 if test -z "$ac_cv_path_PKGCONFIG"; then
31374   ac_pt_PKGCONFIG=$PKGCONFIG
31375   # Extract the first word of "pkg-config", so it can be a program name with args.
31376 set dummy pkg-config; ac_word=$2
31377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31378 printf %s "checking for $ac_word... " >&6; }
31379 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31380 then :
31381   printf %s "(cached) " >&6
31382 else $as_nop
31383   case $ac_pt_PKGCONFIG in
31384   [\\/]* | ?:[\\/]*)
31385   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31386   ;;
31387   *)
31388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31389 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31390 for as_dir in $as_dummy
31391 do
31392   IFS=$as_save_IFS
31393   case $as_dir in #(((
31394     '') as_dir=./ ;;
31395     */) ;;
31396     *) as_dir=$as_dir/ ;;
31397   esac
31398     for ac_exec_ext in '' $ac_executable_extensions; do
31399   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31400     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31401     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31402     break 2
31403   fi
31404 done
31405   done
31406 IFS=$as_save_IFS
31407
31408   ;;
31409 esac
31410 fi
31411 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31412 if test -n "$ac_pt_PKGCONFIG"; then
31413   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31414 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31415 else
31416   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31417 printf "%s\n" "no" >&6; }
31418 fi
31419
31420   if test "x$ac_pt_PKGCONFIG" = x; then
31421     PKGCONFIG="no"
31422   else
31423     case $cross_compiling:$ac_tool_warned in
31424 yes:)
31425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31426 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31427 ac_tool_warned=yes ;;
31428 esac
31429     PKGCONFIG=$ac_pt_PKGCONFIG
31430   fi
31431 else
31432   PKGCONFIG="$ac_cv_path_PKGCONFIG"
31433 fi
31434
31435     fi
31436
31437     if test "x$PKGCONFIG" != "xno"; then
31438       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_wolfssl options with pkg-config" >&5
31439 printf %s "checking for libngtcp2_crypto_wolfssl options with pkg-config... " >&6; }
31440             itexists=`
31441     if test -n "$want_tcp2_path"; then
31442       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31443       export PKG_CONFIG_LIBDIR
31444     fi
31445          $PKGCONFIG --exists libngtcp2_crypto_wolfssl >/dev/null 2>&1 && echo 1`
31446
31447       if test -z "$itexists"; then
31448                         PKGCONFIG="no"
31449         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31450 printf "%s\n" "no" >&6; }
31451       else
31452         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31453 printf "%s\n" "found" >&6; }
31454       fi
31455     fi
31456
31457
31458   if test "$PKGCONFIG" != "no" ; then
31459     LIB_NGTCP2_CRYPTO_WOLFSSL=`
31460     if test -n "$want_tcp2_path"; then
31461       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31462       export PKG_CONFIG_LIBDIR
31463     fi
31464
31465       $PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl`
31466     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&5
31467 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31468
31469     CPP_NGTCP2_CRYPTO_WOLFSSL=`
31470     if test -n "$want_tcp2_path"; then
31471       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31472       export PKG_CONFIG_LIBDIR
31473     fi
31474        $PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl`
31475     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&5
31476 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31477
31478     LD_NGTCP2_CRYPTO_WOLFSSL=`
31479     if test -n "$want_tcp2_path"; then
31480       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31481       export PKG_CONFIG_LIBDIR
31482     fi
31483
31484       $PKGCONFIG --libs-only-L libngtcp2_crypto_wolfssl`
31485     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&5
31486 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31487
31488     LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_WOLFSSL"
31489     CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_WOLFSSL"
31490     LIBS="$LIB_NGTCP2_CRYPTO_WOLFSSL $LIBS"
31491
31492     if test "x$cross_compiling" != "xyes"; then
31493       DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'`
31494     fi
31495     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl" >&5
31496 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl... " >&6; }
31497 if test ${ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb+y}
31498 then :
31499   printf %s "(cached) " >&6
31500 else $as_nop
31501   ac_check_lib_save_LIBS=$LIBS
31502 LIBS="-lngtcp2_crypto_wolfssl  $LIBS"
31503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31504 /* end confdefs.h.  */
31505
31506
31507 #ifdef __cplusplus
31508 extern "C"
31509 #endif
31510 char ngtcp2_crypto_recv_client_initial_cb ();
31511 int main (void)
31512 {
31513 return ngtcp2_crypto_recv_client_initial_cb ();
31514  ;
31515  return 0;
31516 }
31517 _ACEOF
31518 if ac_fn_c_try_link "$LINENO"
31519 then :
31520   ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=yes
31521 else $as_nop
31522   ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=no
31523 fi
31524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31525     conftest$ac_exeext conftest.$ac_ext
31526 LIBS=$ac_check_lib_save_LIBS
31527 fi
31528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&5
31529 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31530 if test "x$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
31531 then :
31532
31533               for ac_header in ngtcp2/ngtcp2_crypto.h
31534 do :
31535   ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31536 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31537 then :
31538   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31539  NGTCP2_ENABLED=1
31540
31541 printf "%s\n" "#define USE_NGTCP2_CRYPTO_WOLFSSL 1" >>confdefs.h
31542
31543           USE_NGTCP2_CRYPTO_WOLFSSL=1
31544
31545           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_WOLFSSL"
31546           export CURL_LIBRARY_PATH
31547           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&5
31548 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&6;}
31549
31550 fi
31551
31552 done
31553
31554 else $as_nop
31555           LDFLAGS=$CLEANLDFLAGS
31556         CPPFLAGS=$CLEANCPPFLAGS
31557         LIBS=$CLEANLIBS
31558
31559 fi
31560
31561
31562   else
31563         if test X"$want_tcp2" != Xdefault; then
31564                   as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file." "$LINENO" 5
31565     fi
31566   fi
31567 fi
31568
31569
31570 OPT_NGHTTP3="yes"
31571
31572 if test "x$NGTCP2_ENABLED" = "x"; then
31573   # without ngtcp2, nghttp3 is of no use for us
31574   OPT_NGHTTP3="no"
31575 fi
31576
31577
31578 # Check whether --with-nghttp3 was given.
31579 if test ${with_nghttp3+y}
31580 then :
31581   withval=$with_nghttp3; OPT_NGHTTP3=$withval
31582 fi
31583
31584 case "$OPT_NGHTTP3" in
31585   no)
31586         want_nghttp3="no"
31587     ;;
31588   yes)
31589         want_nghttp3="default"
31590     want_nghttp3_path=""
31591     ;;
31592   *)
31593         want_nghttp3="yes"
31594     want_nghttp3_path="$withval/lib/pkgconfig"
31595     ;;
31596 esac
31597
31598 curl_http3_msg="no      (--with-nghttp3)"
31599 if test X"$want_nghttp3" != Xno; then
31600     CLEANLDFLAGS="$LDFLAGS"
31601   CLEANCPPFLAGS="$CPPFLAGS"
31602   CLEANLIBS="$LIBS"
31603
31604
31605     if test -n "$PKG_CONFIG"; then
31606       PKGCONFIG="$PKG_CONFIG"
31607     else
31608       if test -n "$ac_tool_prefix"; then
31609   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31610 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31612 printf %s "checking for $ac_word... " >&6; }
31613 if test ${ac_cv_path_PKGCONFIG+y}
31614 then :
31615   printf %s "(cached) " >&6
31616 else $as_nop
31617   case $PKGCONFIG in
31618   [\\/]* | ?:[\\/]*)
31619   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31620   ;;
31621   *)
31622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31623 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31624 for as_dir in $as_dummy
31625 do
31626   IFS=$as_save_IFS
31627   case $as_dir in #(((
31628     '') as_dir=./ ;;
31629     */) ;;
31630     *) as_dir=$as_dir/ ;;
31631   esac
31632     for ac_exec_ext in '' $ac_executable_extensions; do
31633   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31634     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31635     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31636     break 2
31637   fi
31638 done
31639   done
31640 IFS=$as_save_IFS
31641
31642   ;;
31643 esac
31644 fi
31645 PKGCONFIG=$ac_cv_path_PKGCONFIG
31646 if test -n "$PKGCONFIG"; then
31647   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31648 printf "%s\n" "$PKGCONFIG" >&6; }
31649 else
31650   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31651 printf "%s\n" "no" >&6; }
31652 fi
31653
31654
31655 fi
31656 if test -z "$ac_cv_path_PKGCONFIG"; then
31657   ac_pt_PKGCONFIG=$PKGCONFIG
31658   # Extract the first word of "pkg-config", so it can be a program name with args.
31659 set dummy pkg-config; ac_word=$2
31660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31661 printf %s "checking for $ac_word... " >&6; }
31662 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31663 then :
31664   printf %s "(cached) " >&6
31665 else $as_nop
31666   case $ac_pt_PKGCONFIG in
31667   [\\/]* | ?:[\\/]*)
31668   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31669   ;;
31670   *)
31671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31672 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31673 for as_dir in $as_dummy
31674 do
31675   IFS=$as_save_IFS
31676   case $as_dir in #(((
31677     '') as_dir=./ ;;
31678     */) ;;
31679     *) as_dir=$as_dir/ ;;
31680   esac
31681     for ac_exec_ext in '' $ac_executable_extensions; do
31682   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31683     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31684     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31685     break 2
31686   fi
31687 done
31688   done
31689 IFS=$as_save_IFS
31690
31691   ;;
31692 esac
31693 fi
31694 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31695 if test -n "$ac_pt_PKGCONFIG"; then
31696   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31697 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31698 else
31699   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31700 printf "%s\n" "no" >&6; }
31701 fi
31702
31703   if test "x$ac_pt_PKGCONFIG" = x; then
31704     PKGCONFIG="no"
31705   else
31706     case $cross_compiling:$ac_tool_warned in
31707 yes:)
31708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31709 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31710 ac_tool_warned=yes ;;
31711 esac
31712     PKGCONFIG=$ac_pt_PKGCONFIG
31713   fi
31714 else
31715   PKGCONFIG="$ac_cv_path_PKGCONFIG"
31716 fi
31717
31718     fi
31719
31720     if test "x$PKGCONFIG" != "xno"; then
31721       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
31722 printf %s "checking for libnghttp3 options with pkg-config... " >&6; }
31723             itexists=`
31724     if test -n "$want_nghttp3_path"; then
31725       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31726       export PKG_CONFIG_LIBDIR
31727     fi
31728          $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
31729
31730       if test -z "$itexists"; then
31731                         PKGCONFIG="no"
31732         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31733 printf "%s\n" "no" >&6; }
31734       else
31735         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31736 printf "%s\n" "found" >&6; }
31737       fi
31738     fi
31739
31740
31741   if test "$PKGCONFIG" != "no" ; then
31742     LIB_NGHTTP3=`
31743     if test -n "$want_nghttp3_path"; then
31744       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31745       export PKG_CONFIG_LIBDIR
31746     fi
31747
31748       $PKGCONFIG --libs-only-l libnghttp3`
31749     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
31750 printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;}
31751
31752     CPP_NGHTTP3=`
31753     if test -n "$want_nghttp3_path"; then
31754       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31755       export PKG_CONFIG_LIBDIR
31756     fi
31757        $PKGCONFIG --cflags-only-I libnghttp3`
31758     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
31759 printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;}
31760
31761     LD_NGHTTP3=`
31762     if test -n "$want_nghttp3_path"; then
31763       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31764       export PKG_CONFIG_LIBDIR
31765     fi
31766
31767       $PKGCONFIG --libs-only-L libnghttp3`
31768     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
31769 printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;}
31770
31771     LDFLAGS="$LDFLAGS $LD_NGHTTP3"
31772     CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
31773     LIBS="$LIB_NGHTTP3 $LIBS"
31774
31775     if test "x$cross_compiling" != "xyes"; then
31776       DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
31777     fi
31778     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5
31779 printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; }
31780 if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y}
31781 then :
31782   printf %s "(cached) " >&6
31783 else $as_nop
31784   ac_check_lib_save_LIBS=$LIBS
31785 LIBS="-lnghttp3  $LIBS"
31786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31787 /* end confdefs.h.  */
31788
31789
31790 #ifdef __cplusplus
31791 extern "C"
31792 #endif
31793 char nghttp3_conn_client_new_versioned ();
31794 int main (void)
31795 {
31796 return nghttp3_conn_client_new_versioned ();
31797  ;
31798  return 0;
31799 }
31800 _ACEOF
31801 if ac_fn_c_try_link "$LINENO"
31802 then :
31803   ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes
31804 else $as_nop
31805   ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no
31806 fi
31807 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31808     conftest$ac_exeext conftest.$ac_ext
31809 LIBS=$ac_check_lib_save_LIBS
31810 fi
31811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5
31812 printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; }
31813 if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes
31814 then :
31815
31816               for ac_header in nghttp3/nghttp3.h
31817 do :
31818   ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
31819 if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes
31820 then :
31821   printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h
31822  curl_h3_msg="enabled (ngtcp2 + nghttp3)"
31823           NGHTTP3_ENABLED=1
31824
31825 printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h
31826
31827           USE_NGHTTP3=1
31828
31829           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
31830           export CURL_LIBRARY_PATH
31831           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
31832 printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
31833           experimental="$experimental HTTP3"
31834
31835 fi
31836
31837 done
31838
31839 else $as_nop
31840           LDFLAGS=$CLEANLDFLAGS
31841         CPPFLAGS=$CLEANCPPFLAGS
31842         LIBS=$CLEANLIBS
31843
31844 fi
31845
31846
31847   else
31848         if test X"$want_nghttp3" != Xdefault; then
31849                   as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
31850     fi
31851   fi
31852
31853 fi
31854
31855
31856 OPT_QUICHE="no"
31857
31858 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
31859   # without HTTP or with ngtcp2, quiche is no use
31860   OPT_QUICHE="no"
31861 fi
31862
31863
31864 # Check whether --with-quiche was given.
31865 if test ${with_quiche+y}
31866 then :
31867   withval=$with_quiche; OPT_QUICHE=$withval
31868 fi
31869
31870 case "$OPT_QUICHE" in
31871   no)
31872         want_quiche="no"
31873     ;;
31874   yes)
31875         want_quiche="default"
31876     want_quiche_path=""
31877     ;;
31878   *)
31879         want_quiche="yes"
31880     want_quiche_path="$withval"
31881     ;;
31882 esac
31883
31884 if test X"$want_quiche" != Xno; then
31885
31886   if test "$NGHTTP3_ENABLED" = 1; then
31887     as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
31888   fi
31889
31890     CLEANLDFLAGS="$LDFLAGS"
31891   CLEANCPPFLAGS="$CPPFLAGS"
31892   CLEANLIBS="$LIBS"
31893
31894
31895     if test -n "$PKG_CONFIG"; then
31896       PKGCONFIG="$PKG_CONFIG"
31897     else
31898       if test -n "$ac_tool_prefix"; then
31899   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31900 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31902 printf %s "checking for $ac_word... " >&6; }
31903 if test ${ac_cv_path_PKGCONFIG+y}
31904 then :
31905   printf %s "(cached) " >&6
31906 else $as_nop
31907   case $PKGCONFIG in
31908   [\\/]* | ?:[\\/]*)
31909   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31910   ;;
31911   *)
31912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31913 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31914 for as_dir in $as_dummy
31915 do
31916   IFS=$as_save_IFS
31917   case $as_dir in #(((
31918     '') as_dir=./ ;;
31919     */) ;;
31920     *) as_dir=$as_dir/ ;;
31921   esac
31922     for ac_exec_ext in '' $ac_executable_extensions; do
31923   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31924     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31925     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31926     break 2
31927   fi
31928 done
31929   done
31930 IFS=$as_save_IFS
31931
31932   ;;
31933 esac
31934 fi
31935 PKGCONFIG=$ac_cv_path_PKGCONFIG
31936 if test -n "$PKGCONFIG"; then
31937   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31938 printf "%s\n" "$PKGCONFIG" >&6; }
31939 else
31940   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31941 printf "%s\n" "no" >&6; }
31942 fi
31943
31944
31945 fi
31946 if test -z "$ac_cv_path_PKGCONFIG"; then
31947   ac_pt_PKGCONFIG=$PKGCONFIG
31948   # Extract the first word of "pkg-config", so it can be a program name with args.
31949 set dummy pkg-config; ac_word=$2
31950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31951 printf %s "checking for $ac_word... " >&6; }
31952 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31953 then :
31954   printf %s "(cached) " >&6
31955 else $as_nop
31956   case $ac_pt_PKGCONFIG in
31957   [\\/]* | ?:[\\/]*)
31958   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31959   ;;
31960   *)
31961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31962 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31963 for as_dir in $as_dummy
31964 do
31965   IFS=$as_save_IFS
31966   case $as_dir in #(((
31967     '') as_dir=./ ;;
31968     */) ;;
31969     *) as_dir=$as_dir/ ;;
31970   esac
31971     for ac_exec_ext in '' $ac_executable_extensions; do
31972   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31973     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31974     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31975     break 2
31976   fi
31977 done
31978   done
31979 IFS=$as_save_IFS
31980
31981   ;;
31982 esac
31983 fi
31984 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31985 if test -n "$ac_pt_PKGCONFIG"; then
31986   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31987 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31988 else
31989   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31990 printf "%s\n" "no" >&6; }
31991 fi
31992
31993   if test "x$ac_pt_PKGCONFIG" = x; then
31994     PKGCONFIG="no"
31995   else
31996     case $cross_compiling:$ac_tool_warned in
31997 yes:)
31998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31999 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32000 ac_tool_warned=yes ;;
32001 esac
32002     PKGCONFIG=$ac_pt_PKGCONFIG
32003   fi
32004 else
32005   PKGCONFIG="$ac_cv_path_PKGCONFIG"
32006 fi
32007
32008     fi
32009
32010     if test "x$PKGCONFIG" != "xno"; then
32011       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
32012 printf %s "checking for quiche options with pkg-config... " >&6; }
32013             itexists=`
32014     if test -n "$want_quiche_path"; then
32015       PKG_CONFIG_LIBDIR="$want_quiche_path"
32016       export PKG_CONFIG_LIBDIR
32017     fi
32018          $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
32019
32020       if test -z "$itexists"; then
32021                         PKGCONFIG="no"
32022         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32023 printf "%s\n" "no" >&6; }
32024       else
32025         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32026 printf "%s\n" "found" >&6; }
32027       fi
32028     fi
32029
32030
32031   if test "$PKGCONFIG" != "no" ; then
32032     LIB_QUICHE=`
32033     if test -n "$want_quiche_path"; then
32034       PKG_CONFIG_LIBDIR="$want_quiche_path"
32035       export PKG_CONFIG_LIBDIR
32036     fi
32037
32038       $PKGCONFIG --libs-only-l quiche`
32039     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
32040 printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;}
32041
32042     CPP_QUICHE=`
32043     if test -n "$want_quiche_path"; then
32044       PKG_CONFIG_LIBDIR="$want_quiche_path"
32045       export PKG_CONFIG_LIBDIR
32046     fi
32047        $PKGCONFIG --cflags-only-I quiche`
32048     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
32049 printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;}
32050
32051     LD_QUICHE=`
32052     if test -n "$want_quiche_path"; then
32053       PKG_CONFIG_LIBDIR="$want_quiche_path"
32054       export PKG_CONFIG_LIBDIR
32055     fi
32056
32057       $PKGCONFIG --libs-only-L quiche`
32058     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
32059 printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;}
32060
32061     LDFLAGS="$LDFLAGS $LD_QUICHE"
32062     CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
32063     LIBS="$LIB_QUICHE $LIBS"
32064
32065     if test "x$cross_compiling" != "xyes"; then
32066       DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
32067     fi
32068     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_connect in -lquiche" >&5
32069 printf %s "checking for quiche_connect in -lquiche... " >&6; }
32070 if test ${ac_cv_lib_quiche_quiche_connect+y}
32071 then :
32072   printf %s "(cached) " >&6
32073 else $as_nop
32074   ac_check_lib_save_LIBS=$LIBS
32075 LIBS="-lquiche  $LIBS"
32076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32077 /* end confdefs.h.  */
32078
32079
32080 #ifdef __cplusplus
32081 extern "C"
32082 #endif
32083 char quiche_connect ();
32084 int main (void)
32085 {
32086 return quiche_connect ();
32087  ;
32088  return 0;
32089 }
32090 _ACEOF
32091 if ac_fn_c_try_link "$LINENO"
32092 then :
32093   ac_cv_lib_quiche_quiche_connect=yes
32094 else $as_nop
32095   ac_cv_lib_quiche_quiche_connect=no
32096 fi
32097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32098     conftest$ac_exeext conftest.$ac_ext
32099 LIBS=$ac_check_lib_save_LIBS
32100 fi
32101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_connect" >&5
32102 printf "%s\n" "$ac_cv_lib_quiche_quiche_connect" >&6; }
32103 if test "x$ac_cv_lib_quiche_quiche_connect" = xyes
32104 then :
32105
32106               for ac_header in quiche.h
32107 do :
32108   ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "
32109 $ac_includes_default
32110 #include <sys/socket.h>
32111
32112
32113 "
32114 if test "x$ac_cv_header_quiche_h" = xyes
32115 then :
32116   printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h
32117  experimental="$experimental HTTP3"
32118           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32119 printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32120           curl_h3_msg="enabled (quiche)"
32121           QUICHE_ENABLED=1
32122
32123 printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h
32124
32125           USE_QUICHE=1
32126
32127           ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
32128 if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes
32129 then :
32130   printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h
32131
32132 fi
32133
32134           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
32135           export CURL_LIBRARY_PATH
32136           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
32137 printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
32138 fi
32139
32140 done
32141
32142 else $as_nop
32143           as_fn_error $? "couldn't use quiche" "$LINENO" 5
32144
32145 fi
32146
32147   else
32148         if test X"$want_quiche" != Xdefault; then
32149                   as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
32150     fi
32151   fi
32152 fi
32153
32154
32155 OPT_MSH3="no"
32156
32157 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
32158   # without HTTP or with ngtcp2, msh3 is no use
32159   OPT_MSH3="no"
32160 fi
32161
32162
32163 # Check whether --with-msh3 was given.
32164 if test ${with_msh3+y}
32165 then :
32166   withval=$with_msh3; OPT_MSH3=$withval
32167 fi
32168
32169 case "$OPT_MSH3" in
32170   no)
32171         want_msh3="no"
32172     ;;
32173   yes)
32174         want_msh3="default"
32175     want_msh3_path=""
32176     ;;
32177   *)
32178         want_msh3="yes"
32179     want_msh3_path="$withval"
32180     ;;
32181 esac
32182
32183 if test X"$want_msh3" != Xno; then
32184
32185   if test "$NGHTTP3_ENABLED" = 1; then
32186     as_fn_error $? "--with-msh3 and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32187   fi
32188
32189     CLEANLDFLAGS="$LDFLAGS"
32190   CLEANCPPFLAGS="$CPPFLAGS"
32191   CLEANLIBS="$LIBS"
32192
32193   if test -n "$want_msh3_path"; then
32194     LD_MSH3="-L$want_msh3_path/lib"
32195     CPP_MSH3="-I$want_msh3_path/include"
32196     DIR_MSH3="$want_msh3_path/lib"
32197     LDFLAGS="$LDFLAGS $LD_MSH3"
32198     CPPFLAGS="$CPPFLAGS $CPP_MSH3"
32199   fi
32200   LIBS="-lmsh3 $LIBS"
32201
32202   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MsH3ApiOpen in -lmsh3" >&5
32203 printf %s "checking for MsH3ApiOpen in -lmsh3... " >&6; }
32204 if test ${ac_cv_lib_msh3_MsH3ApiOpen+y}
32205 then :
32206   printf %s "(cached) " >&6
32207 else $as_nop
32208   ac_check_lib_save_LIBS=$LIBS
32209 LIBS="-lmsh3  $LIBS"
32210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32211 /* end confdefs.h.  */
32212
32213
32214 #ifdef __cplusplus
32215 extern "C"
32216 #endif
32217 char MsH3ApiOpen ();
32218 int main (void)
32219 {
32220 return MsH3ApiOpen ();
32221  ;
32222  return 0;
32223 }
32224 _ACEOF
32225 if ac_fn_c_try_link "$LINENO"
32226 then :
32227   ac_cv_lib_msh3_MsH3ApiOpen=yes
32228 else $as_nop
32229   ac_cv_lib_msh3_MsH3ApiOpen=no
32230 fi
32231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32232     conftest$ac_exeext conftest.$ac_ext
32233 LIBS=$ac_check_lib_save_LIBS
32234 fi
32235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msh3_MsH3ApiOpen" >&5
32236 printf "%s\n" "$ac_cv_lib_msh3_MsH3ApiOpen" >&6; }
32237 if test "x$ac_cv_lib_msh3_MsH3ApiOpen" = xyes
32238 then :
32239
32240            for ac_header in msh3.h
32241 do :
32242   ac_fn_c_check_header_compile "$LINENO" "msh3.h" "ac_cv_header_msh3_h" "$ac_includes_default"
32243 if test "x$ac_cv_header_msh3_h" = xyes
32244 then :
32245   printf "%s\n" "#define HAVE_MSH3_H 1" >>confdefs.h
32246  curl_h3_msg="enabled (msh3)"
32247         MSH3_ENABLED=1
32248
32249 printf "%s\n" "#define USE_MSH3 1" >>confdefs.h
32250
32251         USE_MSH3=1
32252
32253         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_MSH3"
32254         export CURL_LIBRARY_PATH
32255         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&5
32256 printf "%s\n" "$as_me: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&6;}
32257 else $as_nop
32258   experimental="$experimental HTTP3"
32259
32260 fi
32261
32262 done
32263
32264 else $as_nop
32265         LDFLAGS=$CLEANLDFLAGS
32266       CPPFLAGS=$CLEANCPPFLAGS
32267       LIBS=$CLEANLIBS
32268
32269 fi
32270
32271 fi
32272
32273
32274 OPT_ZSH_FPATH=default
32275
32276 # Check whether --with-zsh-functions-dir was given.
32277 if test ${with_zsh_functions_dir+y}
32278 then :
32279   withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
32280 fi
32281
32282 case "$OPT_ZSH_FPATH" in
32283   no)
32284         ;;
32285   default|yes)
32286         ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
32287
32288     ;;
32289   *)
32290         ZSH_FUNCTIONS_DIR="$withval"
32291
32292     ;;
32293 esac
32294
32295
32296 OPT_FISH_FPATH=default
32297
32298 # Check whether --with-fish-functions-dir was given.
32299 if test ${with_fish_functions_dir+y}
32300 then :
32301   withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
32302 fi
32303
32304 case "$OPT_FISH_FPATH" in
32305   no)
32306         ;;
32307   default|yes)
32308
32309     if test -n "$PKG_CONFIG"; then
32310       PKGCONFIG="$PKG_CONFIG"
32311     else
32312       if test -n "$ac_tool_prefix"; then
32313   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32314 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32316 printf %s "checking for $ac_word... " >&6; }
32317 if test ${ac_cv_path_PKGCONFIG+y}
32318 then :
32319   printf %s "(cached) " >&6
32320 else $as_nop
32321   case $PKGCONFIG in
32322   [\\/]* | ?:[\\/]*)
32323   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32324   ;;
32325   *)
32326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32327 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32328 for as_dir in $as_dummy
32329 do
32330   IFS=$as_save_IFS
32331   case $as_dir in #(((
32332     '') as_dir=./ ;;
32333     */) ;;
32334     *) as_dir=$as_dir/ ;;
32335   esac
32336     for ac_exec_ext in '' $ac_executable_extensions; do
32337   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32338     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32339     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32340     break 2
32341   fi
32342 done
32343   done
32344 IFS=$as_save_IFS
32345
32346   ;;
32347 esac
32348 fi
32349 PKGCONFIG=$ac_cv_path_PKGCONFIG
32350 if test -n "$PKGCONFIG"; then
32351   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32352 printf "%s\n" "$PKGCONFIG" >&6; }
32353 else
32354   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32355 printf "%s\n" "no" >&6; }
32356 fi
32357
32358
32359 fi
32360 if test -z "$ac_cv_path_PKGCONFIG"; then
32361   ac_pt_PKGCONFIG=$PKGCONFIG
32362   # Extract the first word of "pkg-config", so it can be a program name with args.
32363 set dummy 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_ac_pt_PKGCONFIG+y}
32367 then :
32368   printf %s "(cached) " >&6
32369 else $as_nop
32370   case $ac_pt_PKGCONFIG in
32371   [\\/]* | ?:[\\/]*)
32372   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_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_ac_pt_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 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32399 if test -n "$ac_pt_PKGCONFIG"; then
32400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32401 printf "%s\n" "$ac_pt_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   if test "x$ac_pt_PKGCONFIG" = x; then
32408     PKGCONFIG="no"
32409   else
32410     case $cross_compiling:$ac_tool_warned in
32411 yes:)
32412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32413 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32414 ac_tool_warned=yes ;;
32415 esac
32416     PKGCONFIG=$ac_pt_PKGCONFIG
32417   fi
32418 else
32419   PKGCONFIG="$ac_cv_path_PKGCONFIG"
32420 fi
32421
32422     fi
32423
32424     if test "x$PKGCONFIG" != "xno"; then
32425       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
32426 printf %s "checking for fish options with pkg-config... " >&6; }
32427             itexists=`
32428     if test -n ""; then
32429       PKG_CONFIG_LIBDIR=""
32430       export PKG_CONFIG_LIBDIR
32431     fi
32432          $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
32433
32434       if test -z "$itexists"; then
32435                         PKGCONFIG="no"
32436         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32437 printf "%s\n" "no" >&6; }
32438       else
32439         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32440 printf "%s\n" "found" >&6; }
32441       fi
32442     fi
32443
32444     if test "$PKGCONFIG" != "no" ; then
32445       FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
32446     else
32447       FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
32448     fi
32449
32450     ;;
32451   *)
32452         FISH_FUNCTIONS_DIR="$withval"
32453
32454     ;;
32455 esac
32456
32457 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
32458 #ifdef HAVE_SYS_TYPES_H
32459 #include <sys/types.h>
32460 #endif
32461 #ifdef HAVE_SYS_TIME_H
32462 #include <sys/time.h>
32463 #endif
32464 #ifdef HAVE_SYS_SELECT_H
32465 #include <sys/select.h>
32466 #elif defined(HAVE_UNISTD_H)
32467 #include <unistd.h>
32468 #endif
32469 #ifdef HAVE_SYS_SOCKET_H
32470 #include <sys/socket.h>
32471 #endif
32472 #ifdef HAVE_NETINET_IN_H
32473 #include <netinet/in.h>
32474 #endif
32475 #ifdef HAVE_NETINET_IN6_H
32476 #include <netinet/in6.h>
32477 #endif
32478 #ifdef HAVE_SYS_UN_H
32479 #include <sys/un.h>
32480 #endif
32481
32482
32483 "
32484 if test "x$ac_cv_header_sys_types_h" = xyes
32485 then :
32486   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
32487
32488 fi
32489 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
32490 #ifdef HAVE_SYS_TYPES_H
32491 #include <sys/types.h>
32492 #endif
32493 #ifdef HAVE_SYS_TIME_H
32494 #include <sys/time.h>
32495 #endif
32496 #ifdef HAVE_SYS_SELECT_H
32497 #include <sys/select.h>
32498 #elif defined(HAVE_UNISTD_H)
32499 #include <unistd.h>
32500 #endif
32501 #ifdef HAVE_SYS_SOCKET_H
32502 #include <sys/socket.h>
32503 #endif
32504 #ifdef HAVE_NETINET_IN_H
32505 #include <netinet/in.h>
32506 #endif
32507 #ifdef HAVE_NETINET_IN6_H
32508 #include <netinet/in6.h>
32509 #endif
32510 #ifdef HAVE_SYS_UN_H
32511 #include <sys/un.h>
32512 #endif
32513
32514
32515 "
32516 if test "x$ac_cv_header_sys_time_h" = xyes
32517 then :
32518   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
32519
32520 fi
32521 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
32522 #ifdef HAVE_SYS_TYPES_H
32523 #include <sys/types.h>
32524 #endif
32525 #ifdef HAVE_SYS_TIME_H
32526 #include <sys/time.h>
32527 #endif
32528 #ifdef HAVE_SYS_SELECT_H
32529 #include <sys/select.h>
32530 #elif defined(HAVE_UNISTD_H)
32531 #include <unistd.h>
32532 #endif
32533 #ifdef HAVE_SYS_SOCKET_H
32534 #include <sys/socket.h>
32535 #endif
32536 #ifdef HAVE_NETINET_IN_H
32537 #include <netinet/in.h>
32538 #endif
32539 #ifdef HAVE_NETINET_IN6_H
32540 #include <netinet/in6.h>
32541 #endif
32542 #ifdef HAVE_SYS_UN_H
32543 #include <sys/un.h>
32544 #endif
32545
32546
32547 "
32548 if test "x$ac_cv_header_sys_select_h" = xyes
32549 then :
32550   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
32551
32552 fi
32553 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
32554 #ifdef HAVE_SYS_TYPES_H
32555 #include <sys/types.h>
32556 #endif
32557 #ifdef HAVE_SYS_TIME_H
32558 #include <sys/time.h>
32559 #endif
32560 #ifdef HAVE_SYS_SELECT_H
32561 #include <sys/select.h>
32562 #elif defined(HAVE_UNISTD_H)
32563 #include <unistd.h>
32564 #endif
32565 #ifdef HAVE_SYS_SOCKET_H
32566 #include <sys/socket.h>
32567 #endif
32568 #ifdef HAVE_NETINET_IN_H
32569 #include <netinet/in.h>
32570 #endif
32571 #ifdef HAVE_NETINET_IN6_H
32572 #include <netinet/in6.h>
32573 #endif
32574 #ifdef HAVE_SYS_UN_H
32575 #include <sys/un.h>
32576 #endif
32577
32578
32579 "
32580 if test "x$ac_cv_header_sys_socket_h" = xyes
32581 then :
32582   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
32583
32584 fi
32585 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
32586 #ifdef HAVE_SYS_TYPES_H
32587 #include <sys/types.h>
32588 #endif
32589 #ifdef HAVE_SYS_TIME_H
32590 #include <sys/time.h>
32591 #endif
32592 #ifdef HAVE_SYS_SELECT_H
32593 #include <sys/select.h>
32594 #elif defined(HAVE_UNISTD_H)
32595 #include <unistd.h>
32596 #endif
32597 #ifdef HAVE_SYS_SOCKET_H
32598 #include <sys/socket.h>
32599 #endif
32600 #ifdef HAVE_NETINET_IN_H
32601 #include <netinet/in.h>
32602 #endif
32603 #ifdef HAVE_NETINET_IN6_H
32604 #include <netinet/in6.h>
32605 #endif
32606 #ifdef HAVE_SYS_UN_H
32607 #include <sys/un.h>
32608 #endif
32609
32610
32611 "
32612 if test "x$ac_cv_header_sys_ioctl_h" = xyes
32613 then :
32614   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
32615
32616 fi
32617 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "
32618 #ifdef HAVE_SYS_TYPES_H
32619 #include <sys/types.h>
32620 #endif
32621 #ifdef HAVE_SYS_TIME_H
32622 #include <sys/time.h>
32623 #endif
32624 #ifdef HAVE_SYS_SELECT_H
32625 #include <sys/select.h>
32626 #elif defined(HAVE_UNISTD_H)
32627 #include <unistd.h>
32628 #endif
32629 #ifdef HAVE_SYS_SOCKET_H
32630 #include <sys/socket.h>
32631 #endif
32632 #ifdef HAVE_NETINET_IN_H
32633 #include <netinet/in.h>
32634 #endif
32635 #ifdef HAVE_NETINET_IN6_H
32636 #include <netinet/in6.h>
32637 #endif
32638 #ifdef HAVE_SYS_UN_H
32639 #include <sys/un.h>
32640 #endif
32641
32642
32643 "
32644 if test "x$ac_cv_header_sys_uio_h" = xyes
32645 then :
32646   printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
32647
32648 fi
32649 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "
32650 #ifdef HAVE_SYS_TYPES_H
32651 #include <sys/types.h>
32652 #endif
32653 #ifdef HAVE_SYS_TIME_H
32654 #include <sys/time.h>
32655 #endif
32656 #ifdef HAVE_SYS_SELECT_H
32657 #include <sys/select.h>
32658 #elif defined(HAVE_UNISTD_H)
32659 #include <unistd.h>
32660 #endif
32661 #ifdef HAVE_SYS_SOCKET_H
32662 #include <sys/socket.h>
32663 #endif
32664 #ifdef HAVE_NETINET_IN_H
32665 #include <netinet/in.h>
32666 #endif
32667 #ifdef HAVE_NETINET_IN6_H
32668 #include <netinet/in6.h>
32669 #endif
32670 #ifdef HAVE_SYS_UN_H
32671 #include <sys/un.h>
32672 #endif
32673
32674
32675 "
32676 if test "x$ac_cv_header_assert_h" = xyes
32677 then :
32678   printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
32679
32680 fi
32681 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "
32682 #ifdef HAVE_SYS_TYPES_H
32683 #include <sys/types.h>
32684 #endif
32685 #ifdef HAVE_SYS_TIME_H
32686 #include <sys/time.h>
32687 #endif
32688 #ifdef HAVE_SYS_SELECT_H
32689 #include <sys/select.h>
32690 #elif defined(HAVE_UNISTD_H)
32691 #include <unistd.h>
32692 #endif
32693 #ifdef HAVE_SYS_SOCKET_H
32694 #include <sys/socket.h>
32695 #endif
32696 #ifdef HAVE_NETINET_IN_H
32697 #include <netinet/in.h>
32698 #endif
32699 #ifdef HAVE_NETINET_IN6_H
32700 #include <netinet/in6.h>
32701 #endif
32702 #ifdef HAVE_SYS_UN_H
32703 #include <sys/un.h>
32704 #endif
32705
32706
32707 "
32708 if test "x$ac_cv_header_unistd_h" = xyes
32709 then :
32710   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
32711
32712 fi
32713 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "
32714 #ifdef HAVE_SYS_TYPES_H
32715 #include <sys/types.h>
32716 #endif
32717 #ifdef HAVE_SYS_TIME_H
32718 #include <sys/time.h>
32719 #endif
32720 #ifdef HAVE_SYS_SELECT_H
32721 #include <sys/select.h>
32722 #elif defined(HAVE_UNISTD_H)
32723 #include <unistd.h>
32724 #endif
32725 #ifdef HAVE_SYS_SOCKET_H
32726 #include <sys/socket.h>
32727 #endif
32728 #ifdef HAVE_NETINET_IN_H
32729 #include <netinet/in.h>
32730 #endif
32731 #ifdef HAVE_NETINET_IN6_H
32732 #include <netinet/in6.h>
32733 #endif
32734 #ifdef HAVE_SYS_UN_H
32735 #include <sys/un.h>
32736 #endif
32737
32738
32739 "
32740 if test "x$ac_cv_header_stdlib_h" = xyes
32741 then :
32742   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
32743
32744 fi
32745 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
32746 #ifdef HAVE_SYS_TYPES_H
32747 #include <sys/types.h>
32748 #endif
32749 #ifdef HAVE_SYS_TIME_H
32750 #include <sys/time.h>
32751 #endif
32752 #ifdef HAVE_SYS_SELECT_H
32753 #include <sys/select.h>
32754 #elif defined(HAVE_UNISTD_H)
32755 #include <unistd.h>
32756 #endif
32757 #ifdef HAVE_SYS_SOCKET_H
32758 #include <sys/socket.h>
32759 #endif
32760 #ifdef HAVE_NETINET_IN_H
32761 #include <netinet/in.h>
32762 #endif
32763 #ifdef HAVE_NETINET_IN6_H
32764 #include <netinet/in6.h>
32765 #endif
32766 #ifdef HAVE_SYS_UN_H
32767 #include <sys/un.h>
32768 #endif
32769
32770
32771 "
32772 if test "x$ac_cv_header_arpa_inet_h" = xyes
32773 then :
32774   printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
32775
32776 fi
32777 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
32778 #ifdef HAVE_SYS_TYPES_H
32779 #include <sys/types.h>
32780 #endif
32781 #ifdef HAVE_SYS_TIME_H
32782 #include <sys/time.h>
32783 #endif
32784 #ifdef HAVE_SYS_SELECT_H
32785 #include <sys/select.h>
32786 #elif defined(HAVE_UNISTD_H)
32787 #include <unistd.h>
32788 #endif
32789 #ifdef HAVE_SYS_SOCKET_H
32790 #include <sys/socket.h>
32791 #endif
32792 #ifdef HAVE_NETINET_IN_H
32793 #include <netinet/in.h>
32794 #endif
32795 #ifdef HAVE_NETINET_IN6_H
32796 #include <netinet/in6.h>
32797 #endif
32798 #ifdef HAVE_SYS_UN_H
32799 #include <sys/un.h>
32800 #endif
32801
32802
32803 "
32804 if test "x$ac_cv_header_net_if_h" = xyes
32805 then :
32806   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
32807
32808 fi
32809 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
32810 #ifdef HAVE_SYS_TYPES_H
32811 #include <sys/types.h>
32812 #endif
32813 #ifdef HAVE_SYS_TIME_H
32814 #include <sys/time.h>
32815 #endif
32816 #ifdef HAVE_SYS_SELECT_H
32817 #include <sys/select.h>
32818 #elif defined(HAVE_UNISTD_H)
32819 #include <unistd.h>
32820 #endif
32821 #ifdef HAVE_SYS_SOCKET_H
32822 #include <sys/socket.h>
32823 #endif
32824 #ifdef HAVE_NETINET_IN_H
32825 #include <netinet/in.h>
32826 #endif
32827 #ifdef HAVE_NETINET_IN6_H
32828 #include <netinet/in6.h>
32829 #endif
32830 #ifdef HAVE_SYS_UN_H
32831 #include <sys/un.h>
32832 #endif
32833
32834
32835 "
32836 if test "x$ac_cv_header_netinet_in_h" = xyes
32837 then :
32838   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
32839
32840 fi
32841 ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "
32842 #ifdef HAVE_SYS_TYPES_H
32843 #include <sys/types.h>
32844 #endif
32845 #ifdef HAVE_SYS_TIME_H
32846 #include <sys/time.h>
32847 #endif
32848 #ifdef HAVE_SYS_SELECT_H
32849 #include <sys/select.h>
32850 #elif defined(HAVE_UNISTD_H)
32851 #include <unistd.h>
32852 #endif
32853 #ifdef HAVE_SYS_SOCKET_H
32854 #include <sys/socket.h>
32855 #endif
32856 #ifdef HAVE_NETINET_IN_H
32857 #include <netinet/in.h>
32858 #endif
32859 #ifdef HAVE_NETINET_IN6_H
32860 #include <netinet/in6.h>
32861 #endif
32862 #ifdef HAVE_SYS_UN_H
32863 #include <sys/un.h>
32864 #endif
32865
32866
32867 "
32868 if test "x$ac_cv_header_netinet_in6_h" = xyes
32869 then :
32870   printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
32871
32872 fi
32873 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
32874 #ifdef HAVE_SYS_TYPES_H
32875 #include <sys/types.h>
32876 #endif
32877 #ifdef HAVE_SYS_TIME_H
32878 #include <sys/time.h>
32879 #endif
32880 #ifdef HAVE_SYS_SELECT_H
32881 #include <sys/select.h>
32882 #elif defined(HAVE_UNISTD_H)
32883 #include <unistd.h>
32884 #endif
32885 #ifdef HAVE_SYS_SOCKET_H
32886 #include <sys/socket.h>
32887 #endif
32888 #ifdef HAVE_NETINET_IN_H
32889 #include <netinet/in.h>
32890 #endif
32891 #ifdef HAVE_NETINET_IN6_H
32892 #include <netinet/in6.h>
32893 #endif
32894 #ifdef HAVE_SYS_UN_H
32895 #include <sys/un.h>
32896 #endif
32897
32898
32899 "
32900 if test "x$ac_cv_header_sys_un_h" = xyes
32901 then :
32902   printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
32903
32904 fi
32905 ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "
32906 #ifdef HAVE_SYS_TYPES_H
32907 #include <sys/types.h>
32908 #endif
32909 #ifdef HAVE_SYS_TIME_H
32910 #include <sys/time.h>
32911 #endif
32912 #ifdef HAVE_SYS_SELECT_H
32913 #include <sys/select.h>
32914 #elif defined(HAVE_UNISTD_H)
32915 #include <unistd.h>
32916 #endif
32917 #ifdef HAVE_SYS_SOCKET_H
32918 #include <sys/socket.h>
32919 #endif
32920 #ifdef HAVE_NETINET_IN_H
32921 #include <netinet/in.h>
32922 #endif
32923 #ifdef HAVE_NETINET_IN6_H
32924 #include <netinet/in6.h>
32925 #endif
32926 #ifdef HAVE_SYS_UN_H
32927 #include <sys/un.h>
32928 #endif
32929
32930
32931 "
32932 if test "x$ac_cv_header_linux_tcp_h" = xyes
32933 then :
32934   printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
32935
32936 fi
32937 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
32938 #ifdef HAVE_SYS_TYPES_H
32939 #include <sys/types.h>
32940 #endif
32941 #ifdef HAVE_SYS_TIME_H
32942 #include <sys/time.h>
32943 #endif
32944 #ifdef HAVE_SYS_SELECT_H
32945 #include <sys/select.h>
32946 #elif defined(HAVE_UNISTD_H)
32947 #include <unistd.h>
32948 #endif
32949 #ifdef HAVE_SYS_SOCKET_H
32950 #include <sys/socket.h>
32951 #endif
32952 #ifdef HAVE_NETINET_IN_H
32953 #include <netinet/in.h>
32954 #endif
32955 #ifdef HAVE_NETINET_IN6_H
32956 #include <netinet/in6.h>
32957 #endif
32958 #ifdef HAVE_SYS_UN_H
32959 #include <sys/un.h>
32960 #endif
32961
32962
32963 "
32964 if test "x$ac_cv_header_netinet_tcp_h" = xyes
32965 then :
32966   printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
32967
32968 fi
32969 ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
32970 #ifdef HAVE_SYS_TYPES_H
32971 #include <sys/types.h>
32972 #endif
32973 #ifdef HAVE_SYS_TIME_H
32974 #include <sys/time.h>
32975 #endif
32976 #ifdef HAVE_SYS_SELECT_H
32977 #include <sys/select.h>
32978 #elif defined(HAVE_UNISTD_H)
32979 #include <unistd.h>
32980 #endif
32981 #ifdef HAVE_SYS_SOCKET_H
32982 #include <sys/socket.h>
32983 #endif
32984 #ifdef HAVE_NETINET_IN_H
32985 #include <netinet/in.h>
32986 #endif
32987 #ifdef HAVE_NETINET_IN6_H
32988 #include <netinet/in6.h>
32989 #endif
32990 #ifdef HAVE_SYS_UN_H
32991 #include <sys/un.h>
32992 #endif
32993
32994
32995 "
32996 if test "x$ac_cv_header_netinet_udp_h" = xyes
32997 then :
32998   printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h
32999
33000 fi
33001 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
33002 #ifdef HAVE_SYS_TYPES_H
33003 #include <sys/types.h>
33004 #endif
33005 #ifdef HAVE_SYS_TIME_H
33006 #include <sys/time.h>
33007 #endif
33008 #ifdef HAVE_SYS_SELECT_H
33009 #include <sys/select.h>
33010 #elif defined(HAVE_UNISTD_H)
33011 #include <unistd.h>
33012 #endif
33013 #ifdef HAVE_SYS_SOCKET_H
33014 #include <sys/socket.h>
33015 #endif
33016 #ifdef HAVE_NETINET_IN_H
33017 #include <netinet/in.h>
33018 #endif
33019 #ifdef HAVE_NETINET_IN6_H
33020 #include <netinet/in6.h>
33021 #endif
33022 #ifdef HAVE_SYS_UN_H
33023 #include <sys/un.h>
33024 #endif
33025
33026
33027 "
33028 if test "x$ac_cv_header_netdb_h" = xyes
33029 then :
33030   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
33031
33032 fi
33033 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
33034 #ifdef HAVE_SYS_TYPES_H
33035 #include <sys/types.h>
33036 #endif
33037 #ifdef HAVE_SYS_TIME_H
33038 #include <sys/time.h>
33039 #endif
33040 #ifdef HAVE_SYS_SELECT_H
33041 #include <sys/select.h>
33042 #elif defined(HAVE_UNISTD_H)
33043 #include <unistd.h>
33044 #endif
33045 #ifdef HAVE_SYS_SOCKET_H
33046 #include <sys/socket.h>
33047 #endif
33048 #ifdef HAVE_NETINET_IN_H
33049 #include <netinet/in.h>
33050 #endif
33051 #ifdef HAVE_NETINET_IN6_H
33052 #include <netinet/in6.h>
33053 #endif
33054 #ifdef HAVE_SYS_UN_H
33055 #include <sys/un.h>
33056 #endif
33057
33058
33059 "
33060 if test "x$ac_cv_header_sys_sockio_h" = xyes
33061 then :
33062   printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
33063
33064 fi
33065 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "
33066 #ifdef HAVE_SYS_TYPES_H
33067 #include <sys/types.h>
33068 #endif
33069 #ifdef HAVE_SYS_TIME_H
33070 #include <sys/time.h>
33071 #endif
33072 #ifdef HAVE_SYS_SELECT_H
33073 #include <sys/select.h>
33074 #elif defined(HAVE_UNISTD_H)
33075 #include <unistd.h>
33076 #endif
33077 #ifdef HAVE_SYS_SOCKET_H
33078 #include <sys/socket.h>
33079 #endif
33080 #ifdef HAVE_NETINET_IN_H
33081 #include <netinet/in.h>
33082 #endif
33083 #ifdef HAVE_NETINET_IN6_H
33084 #include <netinet/in6.h>
33085 #endif
33086 #ifdef HAVE_SYS_UN_H
33087 #include <sys/un.h>
33088 #endif
33089
33090
33091 "
33092 if test "x$ac_cv_header_sys_stat_h" = xyes
33093 then :
33094   printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
33095
33096 fi
33097 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
33098 #ifdef HAVE_SYS_TYPES_H
33099 #include <sys/types.h>
33100 #endif
33101 #ifdef HAVE_SYS_TIME_H
33102 #include <sys/time.h>
33103 #endif
33104 #ifdef HAVE_SYS_SELECT_H
33105 #include <sys/select.h>
33106 #elif defined(HAVE_UNISTD_H)
33107 #include <unistd.h>
33108 #endif
33109 #ifdef HAVE_SYS_SOCKET_H
33110 #include <sys/socket.h>
33111 #endif
33112 #ifdef HAVE_NETINET_IN_H
33113 #include <netinet/in.h>
33114 #endif
33115 #ifdef HAVE_NETINET_IN6_H
33116 #include <netinet/in6.h>
33117 #endif
33118 #ifdef HAVE_SYS_UN_H
33119 #include <sys/un.h>
33120 #endif
33121
33122
33123 "
33124 if test "x$ac_cv_header_sys_param_h" = xyes
33125 then :
33126   printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
33127
33128 fi
33129 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "
33130 #ifdef HAVE_SYS_TYPES_H
33131 #include <sys/types.h>
33132 #endif
33133 #ifdef HAVE_SYS_TIME_H
33134 #include <sys/time.h>
33135 #endif
33136 #ifdef HAVE_SYS_SELECT_H
33137 #include <sys/select.h>
33138 #elif defined(HAVE_UNISTD_H)
33139 #include <unistd.h>
33140 #endif
33141 #ifdef HAVE_SYS_SOCKET_H
33142 #include <sys/socket.h>
33143 #endif
33144 #ifdef HAVE_NETINET_IN_H
33145 #include <netinet/in.h>
33146 #endif
33147 #ifdef HAVE_NETINET_IN6_H
33148 #include <netinet/in6.h>
33149 #endif
33150 #ifdef HAVE_SYS_UN_H
33151 #include <sys/un.h>
33152 #endif
33153
33154
33155 "
33156 if test "x$ac_cv_header_termios_h" = xyes
33157 then :
33158   printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
33159
33160 fi
33161 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "
33162 #ifdef HAVE_SYS_TYPES_H
33163 #include <sys/types.h>
33164 #endif
33165 #ifdef HAVE_SYS_TIME_H
33166 #include <sys/time.h>
33167 #endif
33168 #ifdef HAVE_SYS_SELECT_H
33169 #include <sys/select.h>
33170 #elif defined(HAVE_UNISTD_H)
33171 #include <unistd.h>
33172 #endif
33173 #ifdef HAVE_SYS_SOCKET_H
33174 #include <sys/socket.h>
33175 #endif
33176 #ifdef HAVE_NETINET_IN_H
33177 #include <netinet/in.h>
33178 #endif
33179 #ifdef HAVE_NETINET_IN6_H
33180 #include <netinet/in6.h>
33181 #endif
33182 #ifdef HAVE_SYS_UN_H
33183 #include <sys/un.h>
33184 #endif
33185
33186
33187 "
33188 if test "x$ac_cv_header_termio_h" = xyes
33189 then :
33190   printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
33191
33192 fi
33193 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
33194 #ifdef HAVE_SYS_TYPES_H
33195 #include <sys/types.h>
33196 #endif
33197 #ifdef HAVE_SYS_TIME_H
33198 #include <sys/time.h>
33199 #endif
33200 #ifdef HAVE_SYS_SELECT_H
33201 #include <sys/select.h>
33202 #elif defined(HAVE_UNISTD_H)
33203 #include <unistd.h>
33204 #endif
33205 #ifdef HAVE_SYS_SOCKET_H
33206 #include <sys/socket.h>
33207 #endif
33208 #ifdef HAVE_NETINET_IN_H
33209 #include <netinet/in.h>
33210 #endif
33211 #ifdef HAVE_NETINET_IN6_H
33212 #include <netinet/in6.h>
33213 #endif
33214 #ifdef HAVE_SYS_UN_H
33215 #include <sys/un.h>
33216 #endif
33217
33218
33219 "
33220 if test "x$ac_cv_header_fcntl_h" = xyes
33221 then :
33222   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
33223
33224 fi
33225 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "
33226 #ifdef HAVE_SYS_TYPES_H
33227 #include <sys/types.h>
33228 #endif
33229 #ifdef HAVE_SYS_TIME_H
33230 #include <sys/time.h>
33231 #endif
33232 #ifdef HAVE_SYS_SELECT_H
33233 #include <sys/select.h>
33234 #elif defined(HAVE_UNISTD_H)
33235 #include <unistd.h>
33236 #endif
33237 #ifdef HAVE_SYS_SOCKET_H
33238 #include <sys/socket.h>
33239 #endif
33240 #ifdef HAVE_NETINET_IN_H
33241 #include <netinet/in.h>
33242 #endif
33243 #ifdef HAVE_NETINET_IN6_H
33244 #include <netinet/in6.h>
33245 #endif
33246 #ifdef HAVE_SYS_UN_H
33247 #include <sys/un.h>
33248 #endif
33249
33250
33251 "
33252 if test "x$ac_cv_header_io_h" = xyes
33253 then :
33254   printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
33255
33256 fi
33257 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "
33258 #ifdef HAVE_SYS_TYPES_H
33259 #include <sys/types.h>
33260 #endif
33261 #ifdef HAVE_SYS_TIME_H
33262 #include <sys/time.h>
33263 #endif
33264 #ifdef HAVE_SYS_SELECT_H
33265 #include <sys/select.h>
33266 #elif defined(HAVE_UNISTD_H)
33267 #include <unistd.h>
33268 #endif
33269 #ifdef HAVE_SYS_SOCKET_H
33270 #include <sys/socket.h>
33271 #endif
33272 #ifdef HAVE_NETINET_IN_H
33273 #include <netinet/in.h>
33274 #endif
33275 #ifdef HAVE_NETINET_IN6_H
33276 #include <netinet/in6.h>
33277 #endif
33278 #ifdef HAVE_SYS_UN_H
33279 #include <sys/un.h>
33280 #endif
33281
33282
33283 "
33284 if test "x$ac_cv_header_pwd_h" = xyes
33285 then :
33286   printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
33287
33288 fi
33289 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "
33290 #ifdef HAVE_SYS_TYPES_H
33291 #include <sys/types.h>
33292 #endif
33293 #ifdef HAVE_SYS_TIME_H
33294 #include <sys/time.h>
33295 #endif
33296 #ifdef HAVE_SYS_SELECT_H
33297 #include <sys/select.h>
33298 #elif defined(HAVE_UNISTD_H)
33299 #include <unistd.h>
33300 #endif
33301 #ifdef HAVE_SYS_SOCKET_H
33302 #include <sys/socket.h>
33303 #endif
33304 #ifdef HAVE_NETINET_IN_H
33305 #include <netinet/in.h>
33306 #endif
33307 #ifdef HAVE_NETINET_IN6_H
33308 #include <netinet/in6.h>
33309 #endif
33310 #ifdef HAVE_SYS_UN_H
33311 #include <sys/un.h>
33312 #endif
33313
33314
33315 "
33316 if test "x$ac_cv_header_utime_h" = xyes
33317 then :
33318   printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
33319
33320 fi
33321 ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "
33322 #ifdef HAVE_SYS_TYPES_H
33323 #include <sys/types.h>
33324 #endif
33325 #ifdef HAVE_SYS_TIME_H
33326 #include <sys/time.h>
33327 #endif
33328 #ifdef HAVE_SYS_SELECT_H
33329 #include <sys/select.h>
33330 #elif defined(HAVE_UNISTD_H)
33331 #include <unistd.h>
33332 #endif
33333 #ifdef HAVE_SYS_SOCKET_H
33334 #include <sys/socket.h>
33335 #endif
33336 #ifdef HAVE_NETINET_IN_H
33337 #include <netinet/in.h>
33338 #endif
33339 #ifdef HAVE_NETINET_IN6_H
33340 #include <netinet/in6.h>
33341 #endif
33342 #ifdef HAVE_SYS_UN_H
33343 #include <sys/un.h>
33344 #endif
33345
33346
33347 "
33348 if test "x$ac_cv_header_sys_utime_h" = xyes
33349 then :
33350   printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
33351
33352 fi
33353 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "
33354 #ifdef HAVE_SYS_TYPES_H
33355 #include <sys/types.h>
33356 #endif
33357 #ifdef HAVE_SYS_TIME_H
33358 #include <sys/time.h>
33359 #endif
33360 #ifdef HAVE_SYS_SELECT_H
33361 #include <sys/select.h>
33362 #elif defined(HAVE_UNISTD_H)
33363 #include <unistd.h>
33364 #endif
33365 #ifdef HAVE_SYS_SOCKET_H
33366 #include <sys/socket.h>
33367 #endif
33368 #ifdef HAVE_NETINET_IN_H
33369 #include <netinet/in.h>
33370 #endif
33371 #ifdef HAVE_NETINET_IN6_H
33372 #include <netinet/in6.h>
33373 #endif
33374 #ifdef HAVE_SYS_UN_H
33375 #include <sys/un.h>
33376 #endif
33377
33378
33379 "
33380 if test "x$ac_cv_header_sys_poll_h" = xyes
33381 then :
33382   printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
33383
33384 fi
33385 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
33386 #ifdef HAVE_SYS_TYPES_H
33387 #include <sys/types.h>
33388 #endif
33389 #ifdef HAVE_SYS_TIME_H
33390 #include <sys/time.h>
33391 #endif
33392 #ifdef HAVE_SYS_SELECT_H
33393 #include <sys/select.h>
33394 #elif defined(HAVE_UNISTD_H)
33395 #include <unistd.h>
33396 #endif
33397 #ifdef HAVE_SYS_SOCKET_H
33398 #include <sys/socket.h>
33399 #endif
33400 #ifdef HAVE_NETINET_IN_H
33401 #include <netinet/in.h>
33402 #endif
33403 #ifdef HAVE_NETINET_IN6_H
33404 #include <netinet/in6.h>
33405 #endif
33406 #ifdef HAVE_SYS_UN_H
33407 #include <sys/un.h>
33408 #endif
33409
33410
33411 "
33412 if test "x$ac_cv_header_poll_h" = xyes
33413 then :
33414   printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
33415
33416 fi
33417 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
33418 #ifdef HAVE_SYS_TYPES_H
33419 #include <sys/types.h>
33420 #endif
33421 #ifdef HAVE_SYS_TIME_H
33422 #include <sys/time.h>
33423 #endif
33424 #ifdef HAVE_SYS_SELECT_H
33425 #include <sys/select.h>
33426 #elif defined(HAVE_UNISTD_H)
33427 #include <unistd.h>
33428 #endif
33429 #ifdef HAVE_SYS_SOCKET_H
33430 #include <sys/socket.h>
33431 #endif
33432 #ifdef HAVE_NETINET_IN_H
33433 #include <netinet/in.h>
33434 #endif
33435 #ifdef HAVE_NETINET_IN6_H
33436 #include <netinet/in6.h>
33437 #endif
33438 #ifdef HAVE_SYS_UN_H
33439 #include <sys/un.h>
33440 #endif
33441
33442
33443 "
33444 if test "x$ac_cv_header_socket_h" = xyes
33445 then :
33446   printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
33447
33448 fi
33449 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
33450 #ifdef HAVE_SYS_TYPES_H
33451 #include <sys/types.h>
33452 #endif
33453 #ifdef HAVE_SYS_TIME_H
33454 #include <sys/time.h>
33455 #endif
33456 #ifdef HAVE_SYS_SELECT_H
33457 #include <sys/select.h>
33458 #elif defined(HAVE_UNISTD_H)
33459 #include <unistd.h>
33460 #endif
33461 #ifdef HAVE_SYS_SOCKET_H
33462 #include <sys/socket.h>
33463 #endif
33464 #ifdef HAVE_NETINET_IN_H
33465 #include <netinet/in.h>
33466 #endif
33467 #ifdef HAVE_NETINET_IN6_H
33468 #include <netinet/in6.h>
33469 #endif
33470 #ifdef HAVE_SYS_UN_H
33471 #include <sys/un.h>
33472 #endif
33473
33474
33475 "
33476 if test "x$ac_cv_header_sys_resource_h" = xyes
33477 then :
33478   printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
33479
33480 fi
33481 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
33482 #ifdef HAVE_SYS_TYPES_H
33483 #include <sys/types.h>
33484 #endif
33485 #ifdef HAVE_SYS_TIME_H
33486 #include <sys/time.h>
33487 #endif
33488 #ifdef HAVE_SYS_SELECT_H
33489 #include <sys/select.h>
33490 #elif defined(HAVE_UNISTD_H)
33491 #include <unistd.h>
33492 #endif
33493 #ifdef HAVE_SYS_SOCKET_H
33494 #include <sys/socket.h>
33495 #endif
33496 #ifdef HAVE_NETINET_IN_H
33497 #include <netinet/in.h>
33498 #endif
33499 #ifdef HAVE_NETINET_IN6_H
33500 #include <netinet/in6.h>
33501 #endif
33502 #ifdef HAVE_SYS_UN_H
33503 #include <sys/un.h>
33504 #endif
33505
33506
33507 "
33508 if test "x$ac_cv_header_libgen_h" = xyes
33509 then :
33510   printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
33511
33512 fi
33513 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "
33514 #ifdef HAVE_SYS_TYPES_H
33515 #include <sys/types.h>
33516 #endif
33517 #ifdef HAVE_SYS_TIME_H
33518 #include <sys/time.h>
33519 #endif
33520 #ifdef HAVE_SYS_SELECT_H
33521 #include <sys/select.h>
33522 #elif defined(HAVE_UNISTD_H)
33523 #include <unistd.h>
33524 #endif
33525 #ifdef HAVE_SYS_SOCKET_H
33526 #include <sys/socket.h>
33527 #endif
33528 #ifdef HAVE_NETINET_IN_H
33529 #include <netinet/in.h>
33530 #endif
33531 #ifdef HAVE_NETINET_IN6_H
33532 #include <netinet/in6.h>
33533 #endif
33534 #ifdef HAVE_SYS_UN_H
33535 #include <sys/un.h>
33536 #endif
33537
33538
33539 "
33540 if test "x$ac_cv_header_locale_h" = xyes
33541 then :
33542   printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
33543
33544 fi
33545 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "
33546 #ifdef HAVE_SYS_TYPES_H
33547 #include <sys/types.h>
33548 #endif
33549 #ifdef HAVE_SYS_TIME_H
33550 #include <sys/time.h>
33551 #endif
33552 #ifdef HAVE_SYS_SELECT_H
33553 #include <sys/select.h>
33554 #elif defined(HAVE_UNISTD_H)
33555 #include <unistd.h>
33556 #endif
33557 #ifdef HAVE_SYS_SOCKET_H
33558 #include <sys/socket.h>
33559 #endif
33560 #ifdef HAVE_NETINET_IN_H
33561 #include <netinet/in.h>
33562 #endif
33563 #ifdef HAVE_NETINET_IN6_H
33564 #include <netinet/in6.h>
33565 #endif
33566 #ifdef HAVE_SYS_UN_H
33567 #include <sys/un.h>
33568 #endif
33569
33570
33571 "
33572 if test "x$ac_cv_header_errno_h" = xyes
33573 then :
33574   printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
33575
33576 fi
33577 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
33578 #ifdef HAVE_SYS_TYPES_H
33579 #include <sys/types.h>
33580 #endif
33581 #ifdef HAVE_SYS_TIME_H
33582 #include <sys/time.h>
33583 #endif
33584 #ifdef HAVE_SYS_SELECT_H
33585 #include <sys/select.h>
33586 #elif defined(HAVE_UNISTD_H)
33587 #include <unistd.h>
33588 #endif
33589 #ifdef HAVE_SYS_SOCKET_H
33590 #include <sys/socket.h>
33591 #endif
33592 #ifdef HAVE_NETINET_IN_H
33593 #include <netinet/in.h>
33594 #endif
33595 #ifdef HAVE_NETINET_IN6_H
33596 #include <netinet/in6.h>
33597 #endif
33598 #ifdef HAVE_SYS_UN_H
33599 #include <sys/un.h>
33600 #endif
33601
33602
33603 "
33604 if test "x$ac_cv_header_stdbool_h" = xyes
33605 then :
33606   printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
33607
33608 fi
33609 ac_fn_c_check_header_compile "$LINENO" "arpa/tftp.h" "ac_cv_header_arpa_tftp_h" "
33610 #ifdef HAVE_SYS_TYPES_H
33611 #include <sys/types.h>
33612 #endif
33613 #ifdef HAVE_SYS_TIME_H
33614 #include <sys/time.h>
33615 #endif
33616 #ifdef HAVE_SYS_SELECT_H
33617 #include <sys/select.h>
33618 #elif defined(HAVE_UNISTD_H)
33619 #include <unistd.h>
33620 #endif
33621 #ifdef HAVE_SYS_SOCKET_H
33622 #include <sys/socket.h>
33623 #endif
33624 #ifdef HAVE_NETINET_IN_H
33625 #include <netinet/in.h>
33626 #endif
33627 #ifdef HAVE_NETINET_IN6_H
33628 #include <netinet/in6.h>
33629 #endif
33630 #ifdef HAVE_SYS_UN_H
33631 #include <sys/un.h>
33632 #endif
33633
33634
33635 "
33636 if test "x$ac_cv_header_arpa_tftp_h" = xyes
33637 then :
33638   printf "%s\n" "#define HAVE_ARPA_TFTP_H 1" >>confdefs.h
33639
33640 fi
33641 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
33642 #ifdef HAVE_SYS_TYPES_H
33643 #include <sys/types.h>
33644 #endif
33645 #ifdef HAVE_SYS_TIME_H
33646 #include <sys/time.h>
33647 #endif
33648 #ifdef HAVE_SYS_SELECT_H
33649 #include <sys/select.h>
33650 #elif defined(HAVE_UNISTD_H)
33651 #include <unistd.h>
33652 #endif
33653 #ifdef HAVE_SYS_SOCKET_H
33654 #include <sys/socket.h>
33655 #endif
33656 #ifdef HAVE_NETINET_IN_H
33657 #include <netinet/in.h>
33658 #endif
33659 #ifdef HAVE_NETINET_IN6_H
33660 #include <netinet/in6.h>
33661 #endif
33662 #ifdef HAVE_SYS_UN_H
33663 #include <sys/un.h>
33664 #endif
33665
33666
33667 "
33668 if test "x$ac_cv_header_sys_filio_h" = xyes
33669 then :
33670   printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
33671
33672 fi
33673 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "
33674 #ifdef HAVE_SYS_TYPES_H
33675 #include <sys/types.h>
33676 #endif
33677 #ifdef HAVE_SYS_TIME_H
33678 #include <sys/time.h>
33679 #endif
33680 #ifdef HAVE_SYS_SELECT_H
33681 #include <sys/select.h>
33682 #elif defined(HAVE_UNISTD_H)
33683 #include <unistd.h>
33684 #endif
33685 #ifdef HAVE_SYS_SOCKET_H
33686 #include <sys/socket.h>
33687 #endif
33688 #ifdef HAVE_NETINET_IN_H
33689 #include <netinet/in.h>
33690 #endif
33691 #ifdef HAVE_NETINET_IN6_H
33692 #include <netinet/in6.h>
33693 #endif
33694 #ifdef HAVE_SYS_UN_H
33695 #include <sys/un.h>
33696 #endif
33697
33698
33699 "
33700 if test "x$ac_cv_header_sys_wait_h" = xyes
33701 then :
33702   printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
33703
33704 fi
33705 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "
33706 #ifdef HAVE_SYS_TYPES_H
33707 #include <sys/types.h>
33708 #endif
33709 #ifdef HAVE_SYS_TIME_H
33710 #include <sys/time.h>
33711 #endif
33712 #ifdef HAVE_SYS_SELECT_H
33713 #include <sys/select.h>
33714 #elif defined(HAVE_UNISTD_H)
33715 #include <unistd.h>
33716 #endif
33717 #ifdef HAVE_SYS_SOCKET_H
33718 #include <sys/socket.h>
33719 #endif
33720 #ifdef HAVE_NETINET_IN_H
33721 #include <netinet/in.h>
33722 #endif
33723 #ifdef HAVE_NETINET_IN6_H
33724 #include <netinet/in6.h>
33725 #endif
33726 #ifdef HAVE_SYS_UN_H
33727 #include <sys/un.h>
33728 #endif
33729
33730
33731 "
33732 if test "x$ac_cv_header_setjmp_h" = xyes
33733 then :
33734   printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
33735
33736 fi
33737
33738
33739
33740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
33741 printf %s "checking for an ANSI C-conforming const... " >&6; }
33742 if test ${ac_cv_c_const+y}
33743 then :
33744   printf %s "(cached) " >&6
33745 else $as_nop
33746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33747 /* end confdefs.h.  */
33748
33749 int main (void)
33750 {
33751
33752 #ifndef __cplusplus
33753   /* Ultrix mips cc rejects this sort of thing.  */
33754   typedef int charset[2];
33755   const charset cs = { 0, 0 };
33756   /* SunOS 4.1.1 cc rejects this.  */
33757   char const *const *pcpcc;
33758   char **ppc;
33759   /* NEC SVR4.0.2 mips cc rejects this.  */
33760   struct point {int x, y;};
33761   static struct point const zero = {0,0};
33762   /* IBM XL C 1.02.0.0 rejects this.
33763      It does not let you subtract one const X* pointer from another in
33764      an arm of an if-expression whose if-part is not a constant
33765      expression */
33766   const char *g = "string";
33767   pcpcc = &g + (g ? g-g : 0);
33768   /* HPUX 7.0 cc rejects these. */
33769   ++pcpcc;
33770   ppc = (char**) pcpcc;
33771   pcpcc = (char const *const *) ppc;
33772   { /* SCO 3.2v4 cc rejects this sort of thing.  */
33773     char tx;
33774     char *t = &tx;
33775     char const *s = 0 ? (char *) 0 : (char const *) 0;
33776
33777     *t++ = 0;
33778     if (s) return 0;
33779   }
33780   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33781     int x[] = {25, 17};
33782     const int *foo = &x[0];
33783     ++foo;
33784   }
33785   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33786     typedef const int *iptr;
33787     iptr p = 0;
33788     ++p;
33789   }
33790   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
33791        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33792     struct s { int j; const int *ap[3]; } bx;
33793     struct s *b = &bx; b->j = 5;
33794   }
33795   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33796     const int foo = 10;
33797     if (!foo) return 0;
33798   }
33799   return !cs[0] && !zero.x;
33800 #endif
33801
33802  ;
33803  return 0;
33804 }
33805 _ACEOF
33806 if ac_fn_c_try_compile "$LINENO"
33807 then :
33808   ac_cv_c_const=yes
33809 else $as_nop
33810   ac_cv_c_const=no
33811 fi
33812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33813 fi
33814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
33815 printf "%s\n" "$ac_cv_c_const" >&6; }
33816 if test $ac_cv_c_const = no; then
33817
33818 printf "%s\n" "#define const /**/" >>confdefs.h
33819
33820 fi
33821
33822
33823   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
33824 printf %s "checking for compiler support of C99 variadic macro style... " >&6; }
33825 if test ${curl_cv_variadic_macros_c99+y}
33826 then :
33827   printf %s "(cached) " >&6
33828 else $as_nop
33829
33830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33831 /* end confdefs.h.  */
33832
33833
33834 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
33835 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
33836         int fun3(int arg1, int arg2, int arg3);
33837         int fun2(int arg1, int arg2);
33838         int fun3(int arg1, int arg2, int arg3)
33839         { return arg1 + arg2 + arg3; }
33840         int fun2(int arg1, int arg2)
33841         { return arg1 + arg2; }
33842
33843 int main (void)
33844 {
33845
33846         int res3 = c99_vmacro3(1, 2, 3);
33847         int res2 = c99_vmacro2(1, 2);
33848
33849  ;
33850  return 0;
33851 }
33852
33853 _ACEOF
33854 if ac_fn_c_try_compile "$LINENO"
33855 then :
33856
33857       curl_cv_variadic_macros_c99="yes"
33858
33859 else $as_nop
33860
33861       curl_cv_variadic_macros_c99="no"
33862
33863 fi
33864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33865
33866 fi
33867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
33868 printf "%s\n" "$curl_cv_variadic_macros_c99" >&6; }
33869   case "$curl_cv_variadic_macros_c99" in
33870     yes)
33871
33872 printf "%s\n" "#define HAVE_VARIADIC_MACROS_C99 1" >>confdefs.h
33873
33874       ;;
33875   esac
33876   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
33877 printf %s "checking for compiler support of old gcc variadic macro style... " >&6; }
33878 if test ${curl_cv_variadic_macros_gcc+y}
33879 then :
33880   printf %s "(cached) " >&6
33881 else $as_nop
33882
33883     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33884 /* end confdefs.h.  */
33885
33886
33887 #define gcc_vmacro3(first, args...) fun3(first, args)
33888 #define gcc_vmacro2(first, args...) fun2(first, args)
33889         int fun3(int arg1, int arg2, int arg3);
33890         int fun2(int arg1, int arg2);
33891         int fun3(int arg1, int arg2, int arg3)
33892         { return arg1 + arg2 + arg3; }
33893         int fun2(int arg1, int arg2)
33894         { return arg1 + arg2; }
33895
33896 int main (void)
33897 {
33898
33899         int res3 = gcc_vmacro3(1, 2, 3);
33900         int res2 = gcc_vmacro2(1, 2);
33901
33902  ;
33903  return 0;
33904 }
33905
33906 _ACEOF
33907 if ac_fn_c_try_compile "$LINENO"
33908 then :
33909
33910       curl_cv_variadic_macros_gcc="yes"
33911
33912 else $as_nop
33913
33914       curl_cv_variadic_macros_gcc="no"
33915
33916 fi
33917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33918
33919 fi
33920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
33921 printf "%s\n" "$curl_cv_variadic_macros_gcc" >&6; }
33922   case "$curl_cv_variadic_macros_gcc" in
33923     yes)
33924
33925 printf "%s\n" "#define HAVE_VARIADIC_MACROS_GCC 1" >>confdefs.h
33926
33927       ;;
33928   esac
33929
33930 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
33931 if test "x$ac_cv_type_size_t" = xyes
33932 then :
33933
33934 else $as_nop
33935
33936 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
33937
33938 fi
33939
33940
33941
33942     ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
33943 if test "x$ac_cv_header_sys_types_h" = xyes
33944 then :
33945   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
33946
33947 fi
33948 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
33949 if test "x$ac_cv_header_sys_time_h" = xyes
33950 then :
33951   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
33952
33953 fi
33954 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
33955 if test "x$ac_cv_header_sys_socket_h" = xyes
33956 then :
33957   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
33958
33959 fi
33960
33961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
33962 printf %s "checking for struct timeval... " >&6; }
33963 if test ${curl_cv_struct_timeval+y}
33964 then :
33965   printf %s "(cached) " >&6
33966 else $as_nop
33967
33968     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33969 /* end confdefs.h.  */
33970
33971
33972 #undef inline
33973 #ifdef HAVE_WINDOWS_H
33974 #ifndef WIN32_LEAN_AND_MEAN
33975 #define WIN32_LEAN_AND_MEAN
33976 #endif
33977 #include <windows.h>
33978 #ifdef HAVE_WINSOCK2_H
33979 #include <winsock2.h>
33980 #endif
33981 #endif
33982 #ifdef HAVE_SYS_TYPES_H
33983 #include <sys/types.h>
33984 #endif
33985 #ifdef HAVE_SYS_TIME_H
33986 #include <sys/time.h>
33987 #endif
33988 #include <time.h>
33989 #ifdef HAVE_SYS_SOCKET_H
33990 #include <sys/socket.h>
33991 #endif
33992
33993 int main (void)
33994 {
33995
33996         struct timeval ts;
33997         ts.tv_sec  = 0;
33998         ts.tv_usec = 0;
33999
34000  ;
34001  return 0;
34002 }
34003
34004 _ACEOF
34005 if ac_fn_c_try_compile "$LINENO"
34006 then :
34007
34008       curl_cv_struct_timeval="yes"
34009
34010 else $as_nop
34011
34012       curl_cv_struct_timeval="no"
34013
34014 fi
34015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34016
34017 fi
34018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
34019 printf "%s\n" "$curl_cv_struct_timeval" >&6; }
34020   case "$curl_cv_struct_timeval" in
34021     yes)
34022
34023 printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
34024
34025       ;;
34026   esac
34027
34028
34029
34030     if test "x$cross_compiling" != xyes; then
34031
34032             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
34033 printf %s "checking run-time libs availability... " >&6; }
34034
34035    case $host_os in
34036      darwin*)
34037       if test "$cross_compiling" = yes
34038 then :
34039   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34040 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34041 as_fn_error $? "cannot run test program while cross compiling
34042 See \`config.log' for more details" "$LINENO" 5; }
34043 else $as_nop
34044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34045 /* end confdefs.h.  */
34046
34047 int main()
34048 {
34049   return 0;
34050 }
34051
34052 _ACEOF
34053 if ac_fn_c_try_run "$LINENO"
34054 then :
34055   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34056 printf "%s\n" "fine" >&6; }
34057 else $as_nop
34058   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34059 printf "%s\n" "failed" >&6; }
34060     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34061
34062 fi
34063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34064   conftest.$ac_objext conftest.beam conftest.$ac_ext
34065 fi
34066
34067      ;;
34068      *)
34069       old=$LD_LIBRARY_PATH
34070       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34071       export LD_LIBRARY_PATH
34072       if test "$cross_compiling" = yes
34073 then :
34074   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34075 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34076 as_fn_error $? "cannot run test program while cross compiling
34077 See \`config.log' for more details" "$LINENO" 5; }
34078 else $as_nop
34079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34080 /* end confdefs.h.  */
34081
34082 int main()
34083 {
34084   return 0;
34085 }
34086
34087 _ACEOF
34088 if ac_fn_c_try_run "$LINENO"
34089 then :
34090   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34091 printf "%s\n" "fine" >&6; }
34092 else $as_nop
34093   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34094 printf "%s\n" "failed" >&6; }
34095     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34096
34097 fi
34098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34099   conftest.$ac_objext conftest.beam conftest.$ac_ext
34100 fi
34101
34102       LD_LIBRARY_PATH=$old # restore
34103      ;;
34104    esac
34105
34106
34107       fi
34108
34109
34110
34111
34112   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
34113 printf %s "checking size of size_t... " >&6; }
34114   r=0
34115     for typesize in 8 4 2 16 1; do
34116      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34117 /* end confdefs.h.  */
34118
34119 #include <sys/types.h>
34120
34121
34122 int main (void)
34123 {
34124 switch(0) {
34125        case 0:
34126        case (sizeof(size_t) == $typesize):;
34127      }
34128
34129  ;
34130  return 0;
34131 }
34132 _ACEOF
34133 if ac_fn_c_try_compile "$LINENO"
34134 then :
34135
34136        r=$typesize
34137 else $as_nop
34138
34139        r=0
34140 fi
34141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34142         if test $r -gt 0; then
34143       break;
34144     fi
34145   done
34146   if test $r -eq 0; then
34147     as_fn_error $? "Failed to find size of size_t" "$LINENO" 5
34148   fi
34149   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34150 printf "%s\n" "$r" >&6; }
34151     tname=$(echo "ac_cv_sizeof_size_t" | tr A-Z a-z | tr " " "_")
34152   eval "$tname=$r"
34153
34154
34155 printf "%s\n" "#define SIZEOF_SIZE_T $r" >>confdefs.h
34156
34157
34158
34159
34160
34161   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
34162 printf %s "checking size of long... " >&6; }
34163   r=0
34164     for typesize in 8 4 2 16 1; do
34165      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34166 /* end confdefs.h.  */
34167
34168 #include <sys/types.h>
34169
34170
34171 int main (void)
34172 {
34173 switch(0) {
34174        case 0:
34175        case (sizeof(long) == $typesize):;
34176      }
34177
34178  ;
34179  return 0;
34180 }
34181 _ACEOF
34182 if ac_fn_c_try_compile "$LINENO"
34183 then :
34184
34185        r=$typesize
34186 else $as_nop
34187
34188        r=0
34189 fi
34190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34191         if test $r -gt 0; then
34192       break;
34193     fi
34194   done
34195   if test $r -eq 0; then
34196     as_fn_error $? "Failed to find size of long" "$LINENO" 5
34197   fi
34198   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34199 printf "%s\n" "$r" >&6; }
34200     tname=$(echo "ac_cv_sizeof_long" | tr A-Z a-z | tr " " "_")
34201   eval "$tname=$r"
34202
34203
34204 printf "%s\n" "#define SIZEOF_LONG $r" >>confdefs.h
34205
34206
34207
34208
34209
34210   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
34211 printf %s "checking size of int... " >&6; }
34212   r=0
34213     for typesize in 8 4 2 16 1; do
34214      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34215 /* end confdefs.h.  */
34216
34217 #include <sys/types.h>
34218
34219
34220 int main (void)
34221 {
34222 switch(0) {
34223        case 0:
34224        case (sizeof(int) == $typesize):;
34225      }
34226
34227  ;
34228  return 0;
34229 }
34230 _ACEOF
34231 if ac_fn_c_try_compile "$LINENO"
34232 then :
34233
34234        r=$typesize
34235 else $as_nop
34236
34237        r=0
34238 fi
34239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34240         if test $r -gt 0; then
34241       break;
34242     fi
34243   done
34244   if test $r -eq 0; then
34245     as_fn_error $? "Failed to find size of int" "$LINENO" 5
34246   fi
34247   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34248 printf "%s\n" "$r" >&6; }
34249     tname=$(echo "ac_cv_sizeof_int" | tr A-Z a-z | tr " " "_")
34250   eval "$tname=$r"
34251
34252
34253 printf "%s\n" "#define SIZEOF_INT $r" >>confdefs.h
34254
34255
34256
34257
34258
34259   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
34260 printf %s "checking size of time_t... " >&6; }
34261   r=0
34262     for typesize in 8 4 2 16 1; do
34263      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34264 /* end confdefs.h.  */
34265
34266 #include <sys/types.h>
34267
34268
34269 int main (void)
34270 {
34271 switch(0) {
34272        case 0:
34273        case (sizeof(time_t) == $typesize):;
34274      }
34275
34276  ;
34277  return 0;
34278 }
34279 _ACEOF
34280 if ac_fn_c_try_compile "$LINENO"
34281 then :
34282
34283        r=$typesize
34284 else $as_nop
34285
34286        r=0
34287 fi
34288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34289         if test $r -gt 0; then
34290       break;
34291     fi
34292   done
34293   if test $r -eq 0; then
34294     as_fn_error $? "Failed to find size of time_t" "$LINENO" 5
34295   fi
34296   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34297 printf "%s\n" "$r" >&6; }
34298     tname=$(echo "ac_cv_sizeof_time_t" | tr A-Z a-z | tr " " "_")
34299   eval "$tname=$r"
34300
34301
34302 printf "%s\n" "#define SIZEOF_TIME_T $r" >>confdefs.h
34303
34304
34305
34306
34307
34308   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
34309 printf %s "checking size of off_t... " >&6; }
34310   r=0
34311     for typesize in 8 4 2 16 1; do
34312      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34313 /* end confdefs.h.  */
34314
34315 #include <sys/types.h>
34316
34317
34318 int main (void)
34319 {
34320 switch(0) {
34321        case 0:
34322        case (sizeof(off_t) == $typesize):;
34323      }
34324
34325  ;
34326  return 0;
34327 }
34328 _ACEOF
34329 if ac_fn_c_try_compile "$LINENO"
34330 then :
34331
34332        r=$typesize
34333 else $as_nop
34334
34335        r=0
34336 fi
34337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34338         if test $r -gt 0; then
34339       break;
34340     fi
34341   done
34342   if test $r -eq 0; then
34343     as_fn_error $? "Failed to find size of off_t" "$LINENO" 5
34344   fi
34345   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34346 printf "%s\n" "$r" >&6; }
34347     tname=$(echo "ac_cv_sizeof_off_t" | tr A-Z a-z | tr " " "_")
34348   eval "$tname=$r"
34349
34350
34351 printf "%s\n" "#define SIZEOF_OFF_T $r" >>confdefs.h
34352
34353
34354
34355
34356 o=$CPPFLAGS
34357 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
34358
34359
34360   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
34361 printf %s "checking size of curl_off_t... " >&6; }
34362   r=0
34363     for typesize in 8 4 2 16 1; do
34364      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34365 /* end confdefs.h.  */
34366
34367 #include <sys/types.h>
34368
34369 #include <curl/system.h>
34370
34371
34372 int main (void)
34373 {
34374 switch(0) {
34375        case 0:
34376        case (sizeof(curl_off_t) == $typesize):;
34377      }
34378
34379  ;
34380  return 0;
34381 }
34382 _ACEOF
34383 if ac_fn_c_try_compile "$LINENO"
34384 then :
34385
34386        r=$typesize
34387 else $as_nop
34388
34389        r=0
34390 fi
34391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34392         if test $r -gt 0; then
34393       break;
34394     fi
34395   done
34396   if test $r -eq 0; then
34397     as_fn_error $? "Failed to find size of curl_off_t" "$LINENO" 5
34398   fi
34399   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34400 printf "%s\n" "$r" >&6; }
34401     tname=$(echo "ac_cv_sizeof_curl_off_t" | tr A-Z a-z | tr " " "_")
34402   eval "$tname=$r"
34403
34404
34405 printf "%s\n" "#define SIZEOF_CURL_OFF_T $r" >>confdefs.h
34406
34407
34408
34409 CPPFLAGS=$o
34410
34411 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
34412 if test "x$ac_cv_type_long_long" = xyes
34413 then :
34414
34415 printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
34416
34417    longlong="yes"
34418
34419 fi
34420
34421
34422
34423 if test ${ac_cv_sizeof_curl_off_t} -lt 8; then
34424
34425 # Check whether --with-n64-deprecated was given.
34426 if test ${with_n64_deprecated+y}
34427 then :
34428   withval=$with_n64_deprecated; if test X"$withval" != Xno; then
34429     OPT_N64_AWARE=$withval
34430   fi
34431
34432 fi
34433
34434   if test -z "$OPT_N64_AWARE"; then
34435     as_fn_error $? "support for systems without 64 bit curl_off_t is deprecated, use --with-n64-deprecated until then" "$LINENO" 5
34436   fi
34437 fi
34438
34439 # check for ssize_t
34440 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
34441 if test "x$ac_cv_type_ssize_t" = xyes
34442 then :
34443
34444 else $as_nop
34445
34446 printf "%s\n" "#define ssize_t int" >>confdefs.h
34447
34448 fi
34449
34450
34451 # check for bool type
34452 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
34453 #ifdef HAVE_SYS_TYPES_H
34454 #include <sys/types.h>
34455 #endif
34456 #ifdef HAVE_STDBOOL_H
34457 #include <stdbool.h>
34458 #endif
34459
34460 "
34461 if test "x$ac_cv_type_bool" = xyes
34462 then :
34463
34464
34465 printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
34466
34467
34468 fi
34469
34470
34471 # check for sa_family_t
34472 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
34473 #ifdef HAVE_SYS_SOCKET_H
34474 #include <sys/socket.h>
34475 #endif
34476
34477 "
34478 if test "x$ac_cv_type_sa_family_t" = xyes
34479 then :
34480
34481 printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
34482
34483 else $as_nop
34484
34485    # The windows name?
34486    ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
34487 #ifdef HAVE_SYS_SOCKET_H
34488 #include <sys/socket.h>
34489 #endif
34490
34491 "
34492 if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes
34493 then :
34494
34495 printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
34496
34497 else $as_nop
34498
34499 printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
34500
34501 fi
34502
34503
34504 fi
34505
34506
34507 # check for suseconds_t
34508 ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
34509 #ifdef HAVE_SYS_TYPES_H
34510 #include <sys/types.h>
34511 #endif
34512 #ifdef HAVE_SYS_TIME_H
34513 #include <sys/time.h>
34514 #endif
34515
34516 "
34517 if test "x$ac_cv_type_suseconds_t" = xyes
34518 then :
34519
34520
34521 printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h
34522
34523
34524 fi
34525
34526
34527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
34528 printf %s "checking if time_t is unsigned... " >&6; }
34529
34530    case $host_os in
34531      darwin*)
34532       if test "$cross_compiling" = yes
34533 then :
34534     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34535 printf "%s\n" "no" >&6; }
34536
34537 else $as_nop
34538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34539 /* end confdefs.h.  */
34540
34541   #include <time.h>
34542   #include <limits.h>
34543   time_t t = -1;
34544   return (t > 0);
34545
34546 _ACEOF
34547 if ac_fn_c_try_run "$LINENO"
34548 then :
34549   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34550 printf "%s\n" "yes" >&6; }
34551
34552 printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34553
34554
34555 else $as_nop
34556   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34557 printf "%s\n" "no" >&6; }
34558
34559 fi
34560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34561   conftest.$ac_objext conftest.beam conftest.$ac_ext
34562 fi
34563
34564      ;;
34565      *)
34566       old=$LD_LIBRARY_PATH
34567       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34568       export LD_LIBRARY_PATH
34569       if test "$cross_compiling" = yes
34570 then :
34571     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34572 printf "%s\n" "no" >&6; }
34573
34574 else $as_nop
34575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34576 /* end confdefs.h.  */
34577
34578   #include <time.h>
34579   #include <limits.h>
34580   time_t t = -1;
34581   return (t > 0);
34582
34583 _ACEOF
34584 if ac_fn_c_try_run "$LINENO"
34585 then :
34586   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34587 printf "%s\n" "yes" >&6; }
34588
34589 printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34590
34591
34592 else $as_nop
34593   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34594 printf "%s\n" "no" >&6; }
34595
34596 fi
34597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34598   conftest.$ac_objext conftest.beam conftest.$ac_ext
34599 fi
34600
34601       LD_LIBRARY_PATH=$old # restore
34602      ;;
34603    esac
34604
34605
34606
34607 curl_includes_poll="\
34608 /* includes start */
34609 #ifdef HAVE_SYS_TYPES_H
34610 #  include <sys/types.h>
34611 #endif
34612 #ifdef HAVE_POLL_H
34613 #  include <poll.h>
34614 #endif
34615 #ifdef HAVE_SYS_POLL_H
34616 #  include <sys/poll.h>
34617 #endif
34618 /* includes end */"
34619   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_poll
34620 "
34621 if test "x$ac_cv_header_sys_types_h" = xyes
34622 then :
34623   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34624
34625 fi
34626 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$curl_includes_poll
34627 "
34628 if test "x$ac_cv_header_poll_h" = xyes
34629 then :
34630   printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
34631
34632 fi
34633 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$curl_includes_poll
34634 "
34635 if test "x$ac_cv_header_sys_poll_h" = xyes
34636 then :
34637   printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
34638
34639 fi
34640
34641
34642
34643     #
34644   tst_poll_events_macro_defined="unknown"
34645   #
34646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34647 /* end confdefs.h.  */
34648
34649
34650       $curl_includes_poll
34651
34652 int main (void)
34653 {
34654
34655 #if defined(events) || defined(revents)
34656       return 0;
34657 #else
34658       force compilation error
34659 #endif
34660
34661  ;
34662  return 0;
34663 }
34664
34665 _ACEOF
34666 if ac_fn_c_try_compile "$LINENO"
34667 then :
34668
34669     tst_poll_events_macro_defined="yes"
34670
34671 else $as_nop
34672
34673     tst_poll_events_macro_defined="no"
34674
34675 fi
34676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34677   #
34678   if test "$tst_poll_events_macro_defined" = "yes"; then
34679     if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
34680
34681 cat >>confdefs.h <<_EOF
34682 #define CURL_PULL_SYS_POLL_H 1
34683 _EOF
34684
34685     fi
34686   fi
34687   #
34688
34689
34690
34691   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
34692 #undef inline
34693 #ifdef HAVE_WINDOWS_H
34694 #ifndef WIN32_LEAN_AND_MEAN
34695 #define WIN32_LEAN_AND_MEAN
34696 #endif
34697 #include <windows.h>
34698 #ifdef HAVE_WINSOCK2_H
34699 #include <winsock2.h>
34700 #endif
34701 #else
34702 #ifdef HAVE_SYS_TYPES_H
34703 #include <sys/types.h>
34704 #endif
34705 #ifdef HAVE_SYS_SOCKET_H
34706 #include <sys/socket.h>
34707 #endif
34708 #ifdef HAVE_NETINET_IN_H
34709 #include <netinet/in.h>
34710 #endif
34711 #ifdef HAVE_ARPA_INET_H
34712 #include <arpa/inet.h>
34713 #endif
34714 #endif
34715
34716 "
34717 if test "x$ac_cv_type_in_addr_t" = xyes
34718 then :
34719
34720 else $as_nop
34721
34722         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
34723 printf %s "checking for in_addr_t equivalent... " >&6; }
34724 if test ${curl_cv_in_addr_t_equiv+y}
34725 then :
34726   printf %s "(cached) " >&6
34727 else $as_nop
34728
34729       curl_cv_in_addr_t_equiv="unknown"
34730       for t in "unsigned long" int size_t unsigned long; do
34731         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
34732           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34733 /* end confdefs.h.  */
34734
34735
34736 #undef inline
34737 #ifdef HAVE_WINDOWS_H
34738 #ifndef WIN32_LEAN_AND_MEAN
34739 #define WIN32_LEAN_AND_MEAN
34740 #endif
34741 #include <windows.h>
34742 #ifdef HAVE_WINSOCK2_H
34743 #include <winsock2.h>
34744 #endif
34745 #else
34746 #ifdef HAVE_SYS_TYPES_H
34747 #include <sys/types.h>
34748 #endif
34749 #ifdef HAVE_SYS_SOCKET_H
34750 #include <sys/socket.h>
34751 #endif
34752 #ifdef HAVE_NETINET_IN_H
34753 #include <netinet/in.h>
34754 #endif
34755 #ifdef HAVE_ARPA_INET_H
34756 #include <arpa/inet.h>
34757 #endif
34758 #endif
34759
34760 int main (void)
34761 {
34762
34763               $t data = inet_addr ("1.2.3.4");
34764
34765  ;
34766  return 0;
34767 }
34768
34769 _ACEOF
34770 if ac_fn_c_try_link "$LINENO"
34771 then :
34772
34773             curl_cv_in_addr_t_equiv="$t"
34774
34775 fi
34776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34777     conftest$ac_exeext conftest.$ac_ext
34778         fi
34779       done
34780
34781 fi
34782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
34783 printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
34784     case "$curl_cv_in_addr_t_equiv" in
34785       unknown)
34786         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
34787         ;;
34788       *)
34789
34790 printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
34791
34792         ;;
34793     esac
34794
34795 fi
34796
34797
34798
34799
34800    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
34801 #undef inline
34802 #ifdef HAVE_WINDOWS_H
34803 #ifndef WIN32_LEAN_AND_MEAN
34804 #define WIN32_LEAN_AND_MEAN
34805 #endif
34806 #include <windows.h>
34807 #ifdef HAVE_WINSOCK2_H
34808 #include <winsock2.h>
34809 #endif
34810 #else
34811 #ifdef HAVE_SYS_TYPES_H
34812 #include <sys/types.h>
34813 #endif
34814 #ifdef HAVE_SYS_SOCKET_H
34815 #include <sys/socket.h>
34816 #endif
34817 #ifdef HAVE_NETINET_IN_H
34818 #include <netinet/in.h>
34819 #endif
34820 #ifdef HAVE_ARPA_INET_H
34821 #include <arpa/inet.h>
34822 #endif
34823 #endif
34824
34825 "
34826 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
34827 then :
34828
34829 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
34830
34831 fi
34832
34833
34834
34835
34836       ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
34837 if test "x$ac_cv_header_sys_select_h" = xyes
34838 then :
34839   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
34840
34841 fi
34842 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34843 if test "x$ac_cv_header_sys_socket_h" = xyes
34844 then :
34845   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34846
34847 fi
34848
34849   #
34850   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
34851 printf %s "checking for select... " >&6; }
34852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34853 /* end confdefs.h.  */
34854
34855
34856 #undef inline
34857 #ifdef HAVE_WINDOWS_H
34858 #ifndef WIN32_LEAN_AND_MEAN
34859 #define WIN32_LEAN_AND_MEAN
34860 #endif
34861 #include <windows.h>
34862 #ifdef HAVE_WINSOCK2_H
34863 #include <winsock2.h>
34864 #endif
34865 #endif
34866 #ifdef HAVE_SYS_TYPES_H
34867 #include <sys/types.h>
34868 #endif
34869 #ifdef HAVE_SYS_TIME_H
34870 #include <sys/time.h>
34871 #endif
34872 #include <time.h>
34873 #ifndef HAVE_WINDOWS_H
34874 #ifdef HAVE_SYS_SELECT_H
34875 #include <sys/select.h>
34876 #elif defined(HAVE_UNISTD_H)
34877 #include <unistd.h>
34878 #endif
34879 #ifdef HAVE_SYS_SOCKET_H
34880 #include <sys/socket.h>
34881 #endif
34882 $curl_includes_bsdsocket
34883 #endif
34884
34885 int main (void)
34886 {
34887
34888       select(0, 0, 0, 0, 0);
34889
34890  ;
34891  return 0;
34892 }
34893
34894 _ACEOF
34895 if ac_fn_c_try_link "$LINENO"
34896 then :
34897
34898     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34899 printf "%s\n" "yes" >&6; }
34900     curl_cv_select="yes"
34901
34902 else $as_nop
34903
34904     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34905 printf "%s\n" "no" >&6; }
34906     curl_cv_select="no"
34907
34908 fi
34909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34910     conftest$ac_exeext conftest.$ac_ext
34911   #
34912   if test "$curl_cv_select" = "yes"; then
34913
34914 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
34915
34916     curl_cv_func_select="yes"
34917   fi
34918
34919
34920
34921       ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34922 if test "x$ac_cv_header_sys_types_h" = xyes
34923 then :
34924   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34925
34926 fi
34927 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34928 if test "x$ac_cv_header_sys_socket_h" = xyes
34929 then :
34930   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34931
34932 fi
34933
34934   #
34935   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
34936 printf %s "checking for recv... " >&6; }
34937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34938 /* end confdefs.h.  */
34939
34940
34941 #undef inline
34942 #ifdef HAVE_WINDOWS_H
34943 #ifndef WIN32_LEAN_AND_MEAN
34944 #define WIN32_LEAN_AND_MEAN
34945 #endif
34946 #include <windows.h>
34947 #ifdef HAVE_WINSOCK2_H
34948 #include <winsock2.h>
34949 #endif
34950 #else
34951 $curl_includes_bsdsocket
34952 #ifdef HAVE_SYS_TYPES_H
34953 #include <sys/types.h>
34954 #endif
34955 #ifdef HAVE_SYS_SOCKET_H
34956 #include <sys/socket.h>
34957 #endif
34958 #endif
34959
34960 int main (void)
34961 {
34962
34963       recv(0, 0, 0, 0);
34964
34965  ;
34966  return 0;
34967 }
34968
34969 _ACEOF
34970 if ac_fn_c_try_link "$LINENO"
34971 then :
34972
34973     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34974 printf "%s\n" "yes" >&6; }
34975     curl_cv_recv="yes"
34976
34977 else $as_nop
34978
34979     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34980 printf "%s\n" "no" >&6; }
34981     curl_cv_recv="no"
34982
34983 fi
34984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34985     conftest$ac_exeext conftest.$ac_ext
34986   #
34987   if test "$curl_cv_recv" = "yes"; then
34988
34989 printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
34990
34991       curl_cv_func_recv="yes"
34992   else
34993     as_fn_error $? "Unable to link function recv" "$LINENO" 5
34994   fi
34995
34996
34997       ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34998 if test "x$ac_cv_header_sys_types_h" = xyes
34999 then :
35000   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35001
35002 fi
35003 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35004 if test "x$ac_cv_header_sys_socket_h" = xyes
35005 then :
35006   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35007
35008 fi
35009
35010   #
35011   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
35012 printf %s "checking for send... " >&6; }
35013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35014 /* end confdefs.h.  */
35015
35016
35017 #undef inline
35018 #ifdef HAVE_WINDOWS_H
35019 #ifndef WIN32_LEAN_AND_MEAN
35020 #define WIN32_LEAN_AND_MEAN
35021 #endif
35022 #include <windows.h>
35023 #ifdef HAVE_WINSOCK2_H
35024 #include <winsock2.h>
35025 #endif
35026 #else
35027 $curl_includes_bsdsocket
35028 #ifdef HAVE_SYS_TYPES_H
35029 #include <sys/types.h>
35030 #endif
35031 #ifdef HAVE_SYS_SOCKET_H
35032 #include <sys/socket.h>
35033 #endif
35034 #endif
35035
35036 int main (void)
35037 {
35038
35039       send(0, 0, 0, 0);
35040
35041  ;
35042  return 0;
35043 }
35044
35045 _ACEOF
35046 if ac_fn_c_try_link "$LINENO"
35047 then :
35048
35049     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35050 printf "%s\n" "yes" >&6; }
35051     curl_cv_send="yes"
35052
35053 else $as_nop
35054
35055     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35056 printf "%s\n" "no" >&6; }
35057     curl_cv_send="no"
35058
35059 fi
35060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35061     conftest$ac_exeext conftest.$ac_ext
35062   #
35063   if test "$curl_cv_send" = "yes"; then
35064
35065 printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
35066
35067     curl_cv_func_send="yes"
35068   else
35069     as_fn_error $? "Unable to link function send" "$LINENO" 5
35070   fi
35071
35072
35073   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35074 if test "x$ac_cv_header_sys_types_h" = xyes
35075 then :
35076   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35077
35078 fi
35079 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35080 if test "x$ac_cv_header_sys_socket_h" = xyes
35081 then :
35082   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35083
35084 fi
35085
35086   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
35087 printf %s "checking for MSG_NOSIGNAL... " >&6; }
35088 if test ${curl_cv_msg_nosignal+y}
35089 then :
35090   printf %s "(cached) " >&6
35091 else $as_nop
35092
35093     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35094 /* end confdefs.h.  */
35095
35096
35097 #undef inline
35098 #ifdef HAVE_WINDOWS_H
35099 #ifndef WIN32_LEAN_AND_MEAN
35100 #define WIN32_LEAN_AND_MEAN
35101 #endif
35102 #include <windows.h>
35103 #ifdef HAVE_WINSOCK2_H
35104 #include <winsock2.h>
35105 #endif
35106 #else
35107 #ifdef HAVE_SYS_TYPES_H
35108 #include <sys/types.h>
35109 #endif
35110 #ifdef HAVE_SYS_SOCKET_H
35111 #include <sys/socket.h>
35112 #endif
35113 #endif
35114
35115 int main (void)
35116 {
35117
35118         int flag=MSG_NOSIGNAL;
35119
35120  ;
35121  return 0;
35122 }
35123
35124 _ACEOF
35125 if ac_fn_c_try_compile "$LINENO"
35126 then :
35127
35128       curl_cv_msg_nosignal="yes"
35129
35130 else $as_nop
35131
35132       curl_cv_msg_nosignal="no"
35133
35134 fi
35135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35136
35137 fi
35138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
35139 printf "%s\n" "$curl_cv_msg_nosignal" >&6; }
35140   case "$curl_cv_msg_nosignal" in
35141     yes)
35142
35143 printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
35144
35145       ;;
35146   esac
35147
35148
35149
35150 curl_includes_unistd="\
35151 /* includes start */
35152 #ifdef HAVE_SYS_TYPES_H
35153 #  include <sys/types.h>
35154 #endif
35155 #ifdef HAVE_UNISTD_H
35156 #  include <unistd.h>
35157 #endif
35158 /* includes end */"
35159   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd
35160 "
35161 if test "x$ac_cv_header_sys_types_h" = xyes
35162 then :
35163   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35164
35165 fi
35166 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd
35167 "
35168 if test "x$ac_cv_header_unistd_h" = xyes
35169 then :
35170   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
35171
35172 fi
35173
35174
35175
35176     #
35177   tst_links_alarm="unknown"
35178   tst_proto_alarm="unknown"
35179   tst_compi_alarm="unknown"
35180   tst_allow_alarm="unknown"
35181   #
35182   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
35183 printf %s "checking if alarm can be linked... " >&6; }
35184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35185 /* end confdefs.h.  */
35186
35187
35188 #define alarm innocuous_alarm
35189 #ifdef __STDC__
35190 # include <limits.h>
35191 #else
35192 # include <assert.h>
35193 #endif
35194 #undef alarm
35195 #ifdef __cplusplus
35196 extern "C"
35197 #endif
35198 char alarm ();
35199 #if defined __stub_alarm || defined __stub___alarm
35200 choke me
35201 #endif
35202
35203 int main (void)
35204 {
35205 return alarm ();
35206  ;
35207  return 0;
35208 }
35209
35210 _ACEOF
35211 if ac_fn_c_try_link "$LINENO"
35212 then :
35213
35214     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35215 printf "%s\n" "yes" >&6; }
35216     tst_links_alarm="yes"
35217
35218 else $as_nop
35219
35220     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35221 printf "%s\n" "no" >&6; }
35222     tst_links_alarm="no"
35223
35224 fi
35225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35226     conftest$ac_exeext conftest.$ac_ext
35227   #
35228   if test "$tst_links_alarm" = "yes"; then
35229     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
35230 printf %s "checking if alarm is prototyped... " >&6; }
35231     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35232 /* end confdefs.h.  */
35233
35234       $curl_includes_unistd
35235
35236 _ACEOF
35237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35238   $EGREP "alarm" >/dev/null 2>&1
35239 then :
35240
35241       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35242 printf "%s\n" "yes" >&6; }
35243       tst_proto_alarm="yes"
35244
35245 else $as_nop
35246
35247       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35248 printf "%s\n" "no" >&6; }
35249       tst_proto_alarm="no"
35250
35251 fi
35252 rm -rf conftest*
35253
35254   fi
35255   #
35256   if test "$tst_proto_alarm" = "yes"; then
35257     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
35258 printf %s "checking if alarm is compilable... " >&6; }
35259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35260 /* end confdefs.h.  */
35261
35262
35263         $curl_includes_unistd
35264
35265 int main (void)
35266 {
35267
35268         if(0 != alarm(0))
35269           return 1;
35270
35271  ;
35272  return 0;
35273 }
35274
35275 _ACEOF
35276 if ac_fn_c_try_compile "$LINENO"
35277 then :
35278
35279       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35280 printf "%s\n" "yes" >&6; }
35281       tst_compi_alarm="yes"
35282
35283 else $as_nop
35284
35285       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35286 printf "%s\n" "no" >&6; }
35287       tst_compi_alarm="no"
35288
35289 fi
35290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35291   fi
35292   #
35293   if test "$tst_compi_alarm" = "yes"; then
35294     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
35295 printf %s "checking if alarm usage allowed... " >&6; }
35296     if test "x$curl_disallow_alarm" != "xyes"; then
35297       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35298 printf "%s\n" "yes" >&6; }
35299       tst_allow_alarm="yes"
35300     else
35301       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35302 printf "%s\n" "no" >&6; }
35303       tst_allow_alarm="no"
35304     fi
35305   fi
35306   #
35307   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
35308 printf %s "checking if alarm might be used... " >&6; }
35309   if test "$tst_links_alarm" = "yes" &&
35310      test "$tst_proto_alarm" = "yes" &&
35311      test "$tst_compi_alarm" = "yes" &&
35312      test "$tst_allow_alarm" = "yes"; then
35313     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35314 printf "%s\n" "yes" >&6; }
35315
35316 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
35317
35318     curl_cv_func_alarm="yes"
35319   else
35320     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35321 printf "%s\n" "no" >&6; }
35322     curl_cv_func_alarm="no"
35323   fi
35324
35325
35326 curl_includes_string="\
35327 /* includes start */
35328 #ifdef HAVE_SYS_TYPES_H
35329 #  include <sys/types.h>
35330 #endif
35331 #ifdef HAVE_STRING_H
35332 #  include <string.h>
35333 #endif
35334 #ifdef HAVE_STRINGS_H
35335 #  include <strings.h>
35336 #endif
35337 /* includes end */"
35338   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string
35339 "
35340 if test "x$ac_cv_header_sys_types_h" = xyes
35341 then :
35342   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35343
35344 fi
35345 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$curl_includes_string
35346 "
35347 if test "x$ac_cv_header_string_h" = xyes
35348 then :
35349   printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
35350
35351 fi
35352 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string
35353 "
35354 if test "x$ac_cv_header_strings_h" = xyes
35355 then :
35356   printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
35357
35358 fi
35359
35360
35361
35362 curl_includes_libgen="\
35363 /* includes start */
35364 #ifdef HAVE_SYS_TYPES_H
35365 #  include <sys/types.h>
35366 #endif
35367 #ifdef HAVE_LIBGEN_H
35368 #  include <libgen.h>
35369 #endif
35370 /* includes end */"
35371   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen
35372 "
35373 if test "x$ac_cv_header_sys_types_h" = xyes
35374 then :
35375   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35376
35377 fi
35378 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen
35379 "
35380 if test "x$ac_cv_header_libgen_h" = xyes
35381 then :
35382   printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
35383
35384 fi
35385
35386
35387
35388         #
35389   tst_links_basename="unknown"
35390   tst_proto_basename="unknown"
35391   tst_compi_basename="unknown"
35392   tst_allow_basename="unknown"
35393   #
35394   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
35395 printf %s "checking if basename can be linked... " >&6; }
35396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35397 /* end confdefs.h.  */
35398
35399
35400 #define basename innocuous_basename
35401 #ifdef __STDC__
35402 # include <limits.h>
35403 #else
35404 # include <assert.h>
35405 #endif
35406 #undef basename
35407 #ifdef __cplusplus
35408 extern "C"
35409 #endif
35410 char basename ();
35411 #if defined __stub_basename || defined __stub___basename
35412 choke me
35413 #endif
35414
35415 int main (void)
35416 {
35417 return basename ();
35418  ;
35419  return 0;
35420 }
35421
35422 _ACEOF
35423 if ac_fn_c_try_link "$LINENO"
35424 then :
35425
35426     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35427 printf "%s\n" "yes" >&6; }
35428     tst_links_basename="yes"
35429
35430 else $as_nop
35431
35432     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35433 printf "%s\n" "no" >&6; }
35434     tst_links_basename="no"
35435
35436 fi
35437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35438     conftest$ac_exeext conftest.$ac_ext
35439   #
35440   if test "$tst_links_basename" = "yes"; then
35441     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
35442 printf %s "checking if basename is prototyped... " >&6; }
35443     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35444 /* end confdefs.h.  */
35445
35446       $curl_includes_string
35447       $curl_includes_libgen
35448       $curl_includes_unistd
35449
35450 _ACEOF
35451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35452   $EGREP "basename" >/dev/null 2>&1
35453 then :
35454
35455       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35456 printf "%s\n" "yes" >&6; }
35457       tst_proto_basename="yes"
35458
35459 else $as_nop
35460
35461       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35462 printf "%s\n" "no" >&6; }
35463       tst_proto_basename="no"
35464
35465 fi
35466 rm -rf conftest*
35467
35468   fi
35469   #
35470   if test "$tst_proto_basename" = "yes"; then
35471     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
35472 printf %s "checking if basename is compilable... " >&6; }
35473     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35474 /* end confdefs.h.  */
35475
35476
35477         $curl_includes_string
35478         $curl_includes_libgen
35479         $curl_includes_unistd
35480
35481 int main (void)
35482 {
35483
35484         if(0 != basename(0))
35485           return 1;
35486
35487  ;
35488  return 0;
35489 }
35490
35491 _ACEOF
35492 if ac_fn_c_try_compile "$LINENO"
35493 then :
35494
35495       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35496 printf "%s\n" "yes" >&6; }
35497       tst_compi_basename="yes"
35498
35499 else $as_nop
35500
35501       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35502 printf "%s\n" "no" >&6; }
35503       tst_compi_basename="no"
35504
35505 fi
35506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35507   fi
35508   #
35509   if test "$tst_compi_basename" = "yes"; then
35510     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
35511 printf %s "checking if basename usage allowed... " >&6; }
35512     if test "x$curl_disallow_basename" != "xyes"; then
35513       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35514 printf "%s\n" "yes" >&6; }
35515       tst_allow_basename="yes"
35516     else
35517       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35518 printf "%s\n" "no" >&6; }
35519       tst_allow_basename="no"
35520     fi
35521   fi
35522   #
35523   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
35524 printf %s "checking if basename might be used... " >&6; }
35525   if test "$tst_links_basename" = "yes" &&
35526      test "$tst_proto_basename" = "yes" &&
35527      test "$tst_compi_basename" = "yes" &&
35528      test "$tst_allow_basename" = "yes"; then
35529     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35530 printf "%s\n" "yes" >&6; }
35531
35532 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
35533
35534     curl_cv_func_basename="yes"
35535   else
35536     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35537 printf "%s\n" "no" >&6; }
35538     curl_cv_func_basename="no"
35539   fi
35540
35541
35542 curl_includes_socket="\
35543 /* includes start */
35544 #ifdef HAVE_SYS_TYPES_H
35545 #  include <sys/types.h>
35546 #endif
35547 #ifdef HAVE_SOCKET_H
35548 #  include <socket.h>
35549 #endif
35550 /* includes end */"
35551   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_socket
35552 "
35553 if test "x$ac_cv_header_sys_types_h" = xyes
35554 then :
35555   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35556
35557 fi
35558 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$curl_includes_socket
35559 "
35560 if test "x$ac_cv_header_socket_h" = xyes
35561 then :
35562   printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
35563
35564 fi
35565
35566
35567
35568       #
35569   tst_links_closesocket="unknown"
35570   tst_proto_closesocket="unknown"
35571   tst_compi_closesocket="unknown"
35572   tst_allow_closesocket="unknown"
35573   #
35574   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
35575 printf %s "checking if closesocket can be linked... " >&6; }
35576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35577 /* end confdefs.h.  */
35578
35579
35580       $curl_includes_winsock2
35581       $curl_includes_socket
35582
35583 int main (void)
35584 {
35585
35586       if(0 != closesocket(0))
35587         return 1;
35588
35589  ;
35590  return 0;
35591 }
35592
35593 _ACEOF
35594 if ac_fn_c_try_link "$LINENO"
35595 then :
35596
35597     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35598 printf "%s\n" "yes" >&6; }
35599     tst_links_closesocket="yes"
35600
35601 else $as_nop
35602
35603     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35604 printf "%s\n" "no" >&6; }
35605     tst_links_closesocket="no"
35606
35607 fi
35608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35609     conftest$ac_exeext conftest.$ac_ext
35610   #
35611   if test "$tst_links_closesocket" = "yes"; then
35612     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
35613 printf %s "checking if closesocket is prototyped... " >&6; }
35614     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35615 /* end confdefs.h.  */
35616
35617       $curl_includes_winsock2
35618       $curl_includes_socket
35619
35620 _ACEOF
35621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35622   $EGREP "closesocket" >/dev/null 2>&1
35623 then :
35624
35625       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35626 printf "%s\n" "yes" >&6; }
35627       tst_proto_closesocket="yes"
35628
35629 else $as_nop
35630
35631       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35632 printf "%s\n" "no" >&6; }
35633       tst_proto_closesocket="no"
35634
35635 fi
35636 rm -rf conftest*
35637
35638   fi
35639   #
35640   if test "$tst_proto_closesocket" = "yes"; then
35641     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
35642 printf %s "checking if closesocket is compilable... " >&6; }
35643     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35644 /* end confdefs.h.  */
35645
35646
35647         $curl_includes_winsock2
35648         $curl_includes_socket
35649
35650 int main (void)
35651 {
35652
35653         if(0 != closesocket(0))
35654           return 1;
35655
35656  ;
35657  return 0;
35658 }
35659
35660 _ACEOF
35661 if ac_fn_c_try_compile "$LINENO"
35662 then :
35663
35664       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35665 printf "%s\n" "yes" >&6; }
35666       tst_compi_closesocket="yes"
35667
35668 else $as_nop
35669
35670       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35671 printf "%s\n" "no" >&6; }
35672       tst_compi_closesocket="no"
35673
35674 fi
35675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35676   fi
35677   #
35678   if test "$tst_compi_closesocket" = "yes"; then
35679     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
35680 printf %s "checking if closesocket usage allowed... " >&6; }
35681     if test "x$curl_disallow_closesocket" != "xyes"; then
35682       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35683 printf "%s\n" "yes" >&6; }
35684       tst_allow_closesocket="yes"
35685     else
35686       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35687 printf "%s\n" "no" >&6; }
35688       tst_allow_closesocket="no"
35689     fi
35690   fi
35691   #
35692   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
35693 printf %s "checking if closesocket might be used... " >&6; }
35694   if test "$tst_links_closesocket" = "yes" &&
35695      test "$tst_proto_closesocket" = "yes" &&
35696      test "$tst_compi_closesocket" = "yes" &&
35697      test "$tst_allow_closesocket" = "yes"; then
35698     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35699 printf "%s\n" "yes" >&6; }
35700
35701 printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
35702
35703     curl_cv_func_closesocket="yes"
35704   else
35705     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35706 printf "%s\n" "no" >&6; }
35707     curl_cv_func_closesocket="no"
35708   fi
35709
35710
35711 curl_includes_sys_socket="\
35712 /* includes start */
35713 #ifdef HAVE_SYS_TYPES_H
35714 #  include <sys/types.h>
35715 #endif
35716 #ifdef HAVE_SYS_SOCKET_H
35717 #  include <sys/socket.h>
35718 #endif
35719 /* includes end */"
35720   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket
35721 "
35722 if test "x$ac_cv_header_sys_types_h" = xyes
35723 then :
35724   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35725
35726 fi
35727 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket
35728 "
35729 if test "x$ac_cv_header_sys_socket_h" = xyes
35730 then :
35731   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35732
35733 fi
35734
35735
35736
35737       #
35738   tst_links_closesocket_camel="unknown"
35739   tst_proto_closesocket_camel="unknown"
35740   tst_compi_closesocket_camel="unknown"
35741   tst_allow_closesocket_camel="unknown"
35742   #
35743   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
35744 printf %s "checking if CloseSocket can be linked... " >&6; }
35745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35746 /* end confdefs.h.  */
35747
35748
35749       $curl_includes_bsdsocket
35750       $curl_includes_sys_socket
35751
35752 int main (void)
35753 {
35754
35755       if(0 != CloseSocket(0))
35756         return 1;
35757
35758  ;
35759  return 0;
35760 }
35761
35762 _ACEOF
35763 if ac_fn_c_try_link "$LINENO"
35764 then :
35765
35766     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35767 printf "%s\n" "yes" >&6; }
35768     tst_links_closesocket_camel="yes"
35769
35770 else $as_nop
35771
35772     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35773 printf "%s\n" "no" >&6; }
35774     tst_links_closesocket_camel="no"
35775
35776 fi
35777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35778     conftest$ac_exeext conftest.$ac_ext
35779   #
35780   if test "$tst_links_closesocket_camel" = "yes"; then
35781     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
35782 printf %s "checking if CloseSocket is prototyped... " >&6; }
35783     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35784 /* end confdefs.h.  */
35785
35786       $curl_includes_bsdsocket
35787       $curl_includes_sys_socket
35788
35789 _ACEOF
35790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35791   $EGREP "CloseSocket" >/dev/null 2>&1
35792 then :
35793
35794       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35795 printf "%s\n" "yes" >&6; }
35796       tst_proto_closesocket_camel="yes"
35797
35798 else $as_nop
35799
35800       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35801 printf "%s\n" "no" >&6; }
35802       tst_proto_closesocket_camel="no"
35803
35804 fi
35805 rm -rf conftest*
35806
35807   fi
35808   #
35809   if test "$tst_proto_closesocket_camel" = "yes"; then
35810     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
35811 printf %s "checking if CloseSocket is compilable... " >&6; }
35812     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35813 /* end confdefs.h.  */
35814
35815
35816         $curl_includes_bsdsocket
35817         $curl_includes_sys_socket
35818
35819 int main (void)
35820 {
35821
35822         if(0 != CloseSocket(0))
35823           return 1;
35824
35825  ;
35826  return 0;
35827 }
35828
35829 _ACEOF
35830 if ac_fn_c_try_compile "$LINENO"
35831 then :
35832
35833       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35834 printf "%s\n" "yes" >&6; }
35835       tst_compi_closesocket_camel="yes"
35836
35837 else $as_nop
35838
35839       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35840 printf "%s\n" "no" >&6; }
35841       tst_compi_closesocket_camel="no"
35842
35843 fi
35844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35845   fi
35846   #
35847   if test "$tst_compi_closesocket_camel" = "yes"; then
35848     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
35849 printf %s "checking if CloseSocket usage allowed... " >&6; }
35850     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
35851       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35852 printf "%s\n" "yes" >&6; }
35853       tst_allow_closesocket_camel="yes"
35854     else
35855       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35856 printf "%s\n" "no" >&6; }
35857       tst_allow_closesocket_camel="no"
35858     fi
35859   fi
35860   #
35861   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
35862 printf %s "checking if CloseSocket might be used... " >&6; }
35863   if test "$tst_links_closesocket_camel" = "yes" &&
35864      test "$tst_proto_closesocket_camel" = "yes" &&
35865      test "$tst_compi_closesocket_camel" = "yes" &&
35866      test "$tst_allow_closesocket_camel" = "yes"; then
35867     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35868 printf "%s\n" "yes" >&6; }
35869
35870 printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
35871
35872     curl_cv_func_closesocket_camel="yes"
35873   else
35874     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35875 printf "%s\n" "no" >&6; }
35876     curl_cv_func_closesocket_camel="no"
35877   fi
35878
35879
35880           #
35881   tst_links_connect="unknown"
35882   tst_proto_connect="unknown"
35883   tst_compi_connect="unknown"
35884   tst_allow_connect="unknown"
35885   #
35886   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
35887 printf %s "checking if connect can be linked... " >&6; }
35888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35889 /* end confdefs.h.  */
35890
35891
35892       $curl_includes_winsock2
35893       $curl_includes_bsdsocket
35894       $curl_includes_sys_socket
35895       $curl_includes_socket
35896
35897 int main (void)
35898 {
35899
35900       if(0 != connect(0, 0, 0))
35901         return 1;
35902
35903  ;
35904  return 0;
35905 }
35906
35907 _ACEOF
35908 if ac_fn_c_try_link "$LINENO"
35909 then :
35910
35911     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35912 printf "%s\n" "yes" >&6; }
35913     tst_links_connect="yes"
35914
35915 else $as_nop
35916
35917     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35918 printf "%s\n" "no" >&6; }
35919     tst_links_connect="no"
35920
35921 fi
35922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35923     conftest$ac_exeext conftest.$ac_ext
35924   #
35925   if test "$tst_links_connect" = "yes"; then
35926     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
35927 printf %s "checking if connect is prototyped... " >&6; }
35928     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35929 /* end confdefs.h.  */
35930
35931       $curl_includes_winsock2
35932       $curl_includes_bsdsocket
35933       $curl_includes_sys_socket
35934       $curl_includes_socket
35935
35936 _ACEOF
35937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35938   $EGREP "connect" >/dev/null 2>&1
35939 then :
35940
35941       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35942 printf "%s\n" "yes" >&6; }
35943       tst_proto_connect="yes"
35944
35945 else $as_nop
35946
35947       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35948 printf "%s\n" "no" >&6; }
35949       tst_proto_connect="no"
35950
35951 fi
35952 rm -rf conftest*
35953
35954   fi
35955   #
35956   if test "$tst_proto_connect" = "yes"; then
35957     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
35958 printf %s "checking if connect is compilable... " >&6; }
35959     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35960 /* end confdefs.h.  */
35961
35962
35963         $curl_includes_winsock2
35964         $curl_includes_bsdsocket
35965         $curl_includes_sys_socket
35966         $curl_includes_socket
35967
35968 int main (void)
35969 {
35970
35971         if(0 != connect(0, 0, 0))
35972           return 1;
35973
35974  ;
35975  return 0;
35976 }
35977
35978 _ACEOF
35979 if ac_fn_c_try_compile "$LINENO"
35980 then :
35981
35982       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35983 printf "%s\n" "yes" >&6; }
35984       tst_compi_connect="yes"
35985
35986 else $as_nop
35987
35988       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35989 printf "%s\n" "no" >&6; }
35990       tst_compi_connect="no"
35991
35992 fi
35993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35994   fi
35995   #
35996   if test "$tst_compi_connect" = "yes"; then
35997     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
35998 printf %s "checking if connect usage allowed... " >&6; }
35999     if test "x$curl_disallow_connect" != "xyes"; then
36000       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36001 printf "%s\n" "yes" >&6; }
36002       tst_allow_connect="yes"
36003     else
36004       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36005 printf "%s\n" "no" >&6; }
36006       tst_allow_connect="no"
36007     fi
36008   fi
36009   #
36010   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
36011 printf %s "checking if connect might be used... " >&6; }
36012   if test "$tst_links_connect" = "yes" &&
36013      test "$tst_proto_connect" = "yes" &&
36014      test "$tst_compi_connect" = "yes" &&
36015      test "$tst_allow_connect" = "yes"; then
36016     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36017 printf "%s\n" "yes" >&6; }
36018
36019 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
36020
36021     curl_cv_func_connect="yes"
36022   else
36023     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36024 printf "%s\n" "no" >&6; }
36025     curl_cv_func_connect="no"
36026   fi
36027
36028
36029 curl_includes_fcntl="\
36030 /* includes start */
36031 #ifdef HAVE_SYS_TYPES_H
36032 #  include <sys/types.h>
36033 #endif
36034 #ifdef HAVE_UNISTD_H
36035 #  include <unistd.h>
36036 #endif
36037 #ifdef HAVE_FCNTL_H
36038 #  include <fcntl.h>
36039 #endif
36040 /* includes end */"
36041   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl
36042 "
36043 if test "x$ac_cv_header_sys_types_h" = xyes
36044 then :
36045   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36046
36047 fi
36048 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl
36049 "
36050 if test "x$ac_cv_header_unistd_h" = xyes
36051 then :
36052   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
36053
36054 fi
36055 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl
36056 "
36057 if test "x$ac_cv_header_fcntl_h" = xyes
36058 then :
36059   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
36060
36061 fi
36062
36063
36064
36065     #
36066   tst_links_fcntl="unknown"
36067   tst_proto_fcntl="unknown"
36068   tst_compi_fcntl="unknown"
36069   tst_allow_fcntl="unknown"
36070   #
36071   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
36072 printf %s "checking if fcntl can be linked... " >&6; }
36073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36074 /* end confdefs.h.  */
36075
36076
36077 #define fcntl innocuous_fcntl
36078 #ifdef __STDC__
36079 # include <limits.h>
36080 #else
36081 # include <assert.h>
36082 #endif
36083 #undef fcntl
36084 #ifdef __cplusplus
36085 extern "C"
36086 #endif
36087 char fcntl ();
36088 #if defined __stub_fcntl || defined __stub___fcntl
36089 choke me
36090 #endif
36091
36092 int main (void)
36093 {
36094 return fcntl ();
36095  ;
36096  return 0;
36097 }
36098
36099 _ACEOF
36100 if ac_fn_c_try_link "$LINENO"
36101 then :
36102
36103     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36104 printf "%s\n" "yes" >&6; }
36105     tst_links_fcntl="yes"
36106
36107 else $as_nop
36108
36109     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36110 printf "%s\n" "no" >&6; }
36111     tst_links_fcntl="no"
36112
36113 fi
36114 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36115     conftest$ac_exeext conftest.$ac_ext
36116   #
36117   if test "$tst_links_fcntl" = "yes"; then
36118     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
36119 printf %s "checking if fcntl is prototyped... " >&6; }
36120     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36121 /* end confdefs.h.  */
36122
36123       $curl_includes_fcntl
36124
36125 _ACEOF
36126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36127   $EGREP "fcntl" >/dev/null 2>&1
36128 then :
36129
36130       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36131 printf "%s\n" "yes" >&6; }
36132       tst_proto_fcntl="yes"
36133
36134 else $as_nop
36135
36136       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36137 printf "%s\n" "no" >&6; }
36138       tst_proto_fcntl="no"
36139
36140 fi
36141 rm -rf conftest*
36142
36143   fi
36144   #
36145   if test "$tst_proto_fcntl" = "yes"; then
36146     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
36147 printf %s "checking if fcntl is compilable... " >&6; }
36148     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36149 /* end confdefs.h.  */
36150
36151
36152         $curl_includes_fcntl
36153
36154 int main (void)
36155 {
36156
36157         if(0 != fcntl(0, 0, 0))
36158           return 1;
36159
36160  ;
36161  return 0;
36162 }
36163
36164 _ACEOF
36165 if ac_fn_c_try_compile "$LINENO"
36166 then :
36167
36168       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36169 printf "%s\n" "yes" >&6; }
36170       tst_compi_fcntl="yes"
36171
36172 else $as_nop
36173
36174       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36175 printf "%s\n" "no" >&6; }
36176       tst_compi_fcntl="no"
36177
36178 fi
36179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36180   fi
36181   #
36182   if test "$tst_compi_fcntl" = "yes"; then
36183     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
36184 printf %s "checking if fcntl usage allowed... " >&6; }
36185     if test "x$curl_disallow_fcntl" != "xyes"; then
36186       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36187 printf "%s\n" "yes" >&6; }
36188       tst_allow_fcntl="yes"
36189     else
36190       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36191 printf "%s\n" "no" >&6; }
36192       tst_allow_fcntl="no"
36193     fi
36194   fi
36195   #
36196   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
36197 printf %s "checking if fcntl might be used... " >&6; }
36198   if test "$tst_links_fcntl" = "yes" &&
36199      test "$tst_proto_fcntl" = "yes" &&
36200      test "$tst_compi_fcntl" = "yes" &&
36201      test "$tst_allow_fcntl" = "yes"; then
36202     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36203 printf "%s\n" "yes" >&6; }
36204
36205 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
36206
36207     curl_cv_func_fcntl="yes"
36208
36209   #
36210   tst_compi_fcntl_o_nonblock="unknown"
36211   tst_allow_fcntl_o_nonblock="unknown"
36212   #
36213   case $host_os in
36214     sunos4* | aix3*)
36215             curl_disallow_fcntl_o_nonblock="yes"
36216       ;;
36217   esac
36218   #
36219   if test "$curl_cv_func_fcntl" = "yes"; then
36220     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
36221 printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
36222     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36223 /* end confdefs.h.  */
36224
36225
36226         $curl_includes_fcntl
36227
36228 int main (void)
36229 {
36230
36231         int flags = 0;
36232         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
36233           return 1;
36234
36235  ;
36236  return 0;
36237 }
36238
36239 _ACEOF
36240 if ac_fn_c_try_compile "$LINENO"
36241 then :
36242
36243       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36244 printf "%s\n" "yes" >&6; }
36245       tst_compi_fcntl_o_nonblock="yes"
36246
36247 else $as_nop
36248
36249       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36250 printf "%s\n" "no" >&6; }
36251       tst_compi_fcntl_o_nonblock="no"
36252
36253 fi
36254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36255   fi
36256   #
36257   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
36258     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
36259 printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
36260     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
36261       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36262 printf "%s\n" "yes" >&6; }
36263       tst_allow_fcntl_o_nonblock="yes"
36264     else
36265       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36266 printf "%s\n" "no" >&6; }
36267       tst_allow_fcntl_o_nonblock="no"
36268     fi
36269   fi
36270   #
36271   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
36272 printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
36273   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
36274      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
36275     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36276 printf "%s\n" "yes" >&6; }
36277
36278 printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
36279
36280     curl_cv_func_fcntl_o_nonblock="yes"
36281   else
36282     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36283 printf "%s\n" "no" >&6; }
36284     curl_cv_func_fcntl_o_nonblock="no"
36285   fi
36286
36287   else
36288     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36289 printf "%s\n" "no" >&6; }
36290     curl_cv_func_fcntl="no"
36291   fi
36292
36293
36294 curl_includes_ws2tcpip="\
36295 /* includes start */
36296 #ifdef HAVE_WINDOWS_H
36297 #  ifndef WIN32_LEAN_AND_MEAN
36298 #    define WIN32_LEAN_AND_MEAN
36299 #  endif
36300 #  include <windows.h>
36301 #  ifdef HAVE_WINSOCK2_H
36302 #    include <winsock2.h>
36303 #    ifdef HAVE_WS2TCPIP_H
36304 #       include <ws2tcpip.h>
36305 #    endif
36306 #  endif
36307 #endif
36308 /* includes end */"
36309
36310   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
36311 printf %s "checking for windows.h... " >&6; }
36312 if test ${curl_cv_header_windows_h+y}
36313 then :
36314   printf %s "(cached) " >&6
36315 else $as_nop
36316
36317     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36318 /* end confdefs.h.  */
36319
36320
36321 #undef inline
36322 #ifndef WIN32_LEAN_AND_MEAN
36323 #define WIN32_LEAN_AND_MEAN
36324 #endif
36325 #include <windows.h>
36326
36327 int main (void)
36328 {
36329
36330 #if defined(__CYGWIN__) || defined(__CEGCC__)
36331         HAVE_WINDOWS_H shall not be defined.
36332 #else
36333         int dummy=2*WINVER;
36334 #endif
36335
36336  ;
36337  return 0;
36338 }
36339
36340 _ACEOF
36341 if ac_fn_c_try_compile "$LINENO"
36342 then :
36343
36344       curl_cv_header_windows_h="yes"
36345
36346 else $as_nop
36347
36348       curl_cv_header_windows_h="no"
36349
36350 fi
36351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36352
36353 fi
36354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
36355 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
36356   case "$curl_cv_header_windows_h" in
36357     yes)
36358
36359 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
36360
36361       ;;
36362   esac
36363
36364
36365     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
36366 printf %s "checking for winsock2.h... " >&6; }
36367 if test ${curl_cv_header_winsock2_h+y}
36368 then :
36369   printf %s "(cached) " >&6
36370 else $as_nop
36371
36372     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36373 /* end confdefs.h.  */
36374
36375
36376 #undef inline
36377 #ifndef WIN32_LEAN_AND_MEAN
36378 #define WIN32_LEAN_AND_MEAN
36379 #endif
36380 #include <windows.h>
36381 #include <winsock2.h>
36382
36383 int main (void)
36384 {
36385
36386 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36387         HAVE_WINSOCK2_H shall not be defined.
36388 #else
36389         int dummy=2*IPPROTO_ESP;
36390 #endif
36391
36392  ;
36393  return 0;
36394 }
36395
36396 _ACEOF
36397 if ac_fn_c_try_compile "$LINENO"
36398 then :
36399
36400       curl_cv_header_winsock2_h="yes"
36401
36402 else $as_nop
36403
36404       curl_cv_header_winsock2_h="no"
36405
36406 fi
36407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36408
36409 fi
36410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
36411 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
36412   case "$curl_cv_header_winsock2_h" in
36413     yes)
36414
36415 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
36416
36417       ;;
36418   esac
36419
36420
36421     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
36422 printf %s "checking for ws2tcpip.h... " >&6; }
36423 if test ${curl_cv_header_ws2tcpip_h+y}
36424 then :
36425   printf %s "(cached) " >&6
36426 else $as_nop
36427
36428     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36429 /* end confdefs.h.  */
36430
36431
36432 #undef inline
36433 #ifndef WIN32_LEAN_AND_MEAN
36434 #define WIN32_LEAN_AND_MEAN
36435 #endif
36436 #include <windows.h>
36437 #include <winsock2.h>
36438 #include <ws2tcpip.h>
36439
36440 int main (void)
36441 {
36442
36443 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36444         HAVE_WS2TCPIP_H shall not be defined.
36445 #else
36446         int dummy=2*IP_PKTINFO;
36447 #endif
36448
36449  ;
36450  return 0;
36451 }
36452
36453 _ACEOF
36454 if ac_fn_c_try_compile "$LINENO"
36455 then :
36456
36457       curl_cv_header_ws2tcpip_h="yes"
36458
36459 else $as_nop
36460
36461       curl_cv_header_ws2tcpip_h="no"
36462
36463 fi
36464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36465
36466 fi
36467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
36468 printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
36469   case "$curl_cv_header_ws2tcpip_h" in
36470     yes)
36471
36472 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
36473
36474       ;;
36475   esac
36476
36477
36478
36479 curl_includes_netdb="\
36480 /* includes start */
36481 #ifdef HAVE_SYS_TYPES_H
36482 #  include <sys/types.h>
36483 #endif
36484 #ifdef HAVE_NETDB_H
36485 #  include <netdb.h>
36486 #endif
36487 /* includes end */"
36488   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb
36489 "
36490 if test "x$ac_cv_header_sys_types_h" = xyes
36491 then :
36492   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36493
36494 fi
36495 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb
36496 "
36497 if test "x$ac_cv_header_netdb_h" = xyes
36498 then :
36499   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
36500
36501 fi
36502
36503
36504
36505         #
36506   tst_links_freeaddrinfo="unknown"
36507   tst_proto_freeaddrinfo="unknown"
36508   tst_compi_freeaddrinfo="unknown"
36509   tst_allow_freeaddrinfo="unknown"
36510   #
36511   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
36512 printf %s "checking if freeaddrinfo can be linked... " >&6; }
36513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36514 /* end confdefs.h.  */
36515
36516
36517       $curl_includes_ws2tcpip
36518       $curl_includes_sys_socket
36519       $curl_includes_netdb
36520
36521 int main (void)
36522 {
36523
36524       freeaddrinfo(0);
36525
36526  ;
36527  return 0;
36528 }
36529
36530 _ACEOF
36531 if ac_fn_c_try_link "$LINENO"
36532 then :
36533
36534     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36535 printf "%s\n" "yes" >&6; }
36536     tst_links_freeaddrinfo="yes"
36537
36538 else $as_nop
36539
36540     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36541 printf "%s\n" "no" >&6; }
36542     tst_links_freeaddrinfo="no"
36543
36544 fi
36545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36546     conftest$ac_exeext conftest.$ac_ext
36547   #
36548   if test "$tst_links_freeaddrinfo" = "yes"; then
36549     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
36550 printf %s "checking if freeaddrinfo is prototyped... " >&6; }
36551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36552 /* end confdefs.h.  */
36553
36554       $curl_includes_ws2tcpip
36555       $curl_includes_sys_socket
36556       $curl_includes_netdb
36557
36558 _ACEOF
36559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36560   $EGREP "freeaddrinfo" >/dev/null 2>&1
36561 then :
36562
36563       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36564 printf "%s\n" "yes" >&6; }
36565       tst_proto_freeaddrinfo="yes"
36566
36567 else $as_nop
36568
36569       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36570 printf "%s\n" "no" >&6; }
36571       tst_proto_freeaddrinfo="no"
36572
36573 fi
36574 rm -rf conftest*
36575
36576   fi
36577   #
36578   if test "$tst_proto_freeaddrinfo" = "yes"; then
36579     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
36580 printf %s "checking if freeaddrinfo is compilable... " >&6; }
36581     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36582 /* end confdefs.h.  */
36583
36584
36585         $curl_includes_ws2tcpip
36586         $curl_includes_sys_socket
36587         $curl_includes_netdb
36588
36589 int main (void)
36590 {
36591
36592         freeaddrinfo(0);
36593
36594  ;
36595  return 0;
36596 }
36597
36598 _ACEOF
36599 if ac_fn_c_try_compile "$LINENO"
36600 then :
36601
36602       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36603 printf "%s\n" "yes" >&6; }
36604       tst_compi_freeaddrinfo="yes"
36605
36606 else $as_nop
36607
36608       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36609 printf "%s\n" "no" >&6; }
36610       tst_compi_freeaddrinfo="no"
36611
36612 fi
36613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36614   fi
36615   #
36616   if test "$tst_compi_freeaddrinfo" = "yes"; then
36617     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
36618 printf %s "checking if freeaddrinfo usage allowed... " >&6; }
36619     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
36620       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36621 printf "%s\n" "yes" >&6; }
36622       tst_allow_freeaddrinfo="yes"
36623     else
36624       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36625 printf "%s\n" "no" >&6; }
36626       tst_allow_freeaddrinfo="no"
36627     fi
36628   fi
36629   #
36630   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
36631 printf %s "checking if freeaddrinfo might be used... " >&6; }
36632   if test "$tst_links_freeaddrinfo" = "yes" &&
36633      test "$tst_proto_freeaddrinfo" = "yes" &&
36634      test "$tst_compi_freeaddrinfo" = "yes" &&
36635      test "$tst_allow_freeaddrinfo" = "yes"; then
36636     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36637 printf "%s\n" "yes" >&6; }
36638
36639 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
36640
36641     curl_cv_func_freeaddrinfo="yes"
36642   else
36643     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36644 printf "%s\n" "no" >&6; }
36645     curl_cv_func_freeaddrinfo="no"
36646   fi
36647
36648
36649 curl_includes_sys_xattr="\
36650 /* includes start */
36651 #ifdef HAVE_SYS_TYPES_H
36652 #  include <sys/types.h>
36653 #endif
36654 #ifdef HAVE_SYS_XATTR_H
36655 #  include <sys/xattr.h>
36656 #endif
36657 /* includes end */"
36658   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr
36659 "
36660 if test "x$ac_cv_header_sys_types_h" = xyes
36661 then :
36662   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36663
36664 fi
36665 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr
36666 "
36667 if test "x$ac_cv_header_sys_xattr_h" = xyes
36668 then :
36669   printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
36670
36671 fi
36672
36673
36674
36675     #
36676   tst_links_fsetxattr="unknown"
36677   tst_proto_fsetxattr="unknown"
36678   tst_compi_fsetxattr="unknown"
36679   tst_allow_fsetxattr="unknown"
36680   tst_nargs_fsetxattr="unknown"
36681   #
36682   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
36683 printf %s "checking if fsetxattr can be linked... " >&6; }
36684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36685 /* end confdefs.h.  */
36686
36687
36688 #define fsetxattr innocuous_fsetxattr
36689 #ifdef __STDC__
36690 # include <limits.h>
36691 #else
36692 # include <assert.h>
36693 #endif
36694 #undef fsetxattr
36695 #ifdef __cplusplus
36696 extern "C"
36697 #endif
36698 char fsetxattr ();
36699 #if defined __stub_fsetxattr || defined __stub___fsetxattr
36700 choke me
36701 #endif
36702
36703 int main (void)
36704 {
36705 return fsetxattr ();
36706  ;
36707  return 0;
36708 }
36709
36710 _ACEOF
36711 if ac_fn_c_try_link "$LINENO"
36712 then :
36713
36714     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36715 printf "%s\n" "yes" >&6; }
36716     tst_links_fsetxattr="yes"
36717
36718 else $as_nop
36719
36720     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36721 printf "%s\n" "no" >&6; }
36722     tst_links_fsetxattr="no"
36723
36724 fi
36725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36726     conftest$ac_exeext conftest.$ac_ext
36727   #
36728   if test "$tst_links_fsetxattr" = "yes"; then
36729     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
36730 printf %s "checking if fsetxattr is prototyped... " >&6; }
36731     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36732 /* end confdefs.h.  */
36733
36734       $curl_includes_sys_xattr
36735
36736 _ACEOF
36737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36738   $EGREP "fsetxattr" >/dev/null 2>&1
36739 then :
36740
36741       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36742 printf "%s\n" "yes" >&6; }
36743       tst_proto_fsetxattr="yes"
36744
36745 else $as_nop
36746
36747       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36748 printf "%s\n" "no" >&6; }
36749       tst_proto_fsetxattr="no"
36750
36751 fi
36752 rm -rf conftest*
36753
36754   fi
36755   #
36756   if test "$tst_proto_fsetxattr" = "yes"; then
36757     if test "$tst_nargs_fsetxattr" = "unknown"; then
36758       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
36759 printf %s "checking if fsetxattr takes 5 args.... " >&6; }
36760       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36761 /* end confdefs.h.  */
36762
36763
36764           $curl_includes_sys_xattr
36765
36766 int main (void)
36767 {
36768
36769           if(0 != fsetxattr(0, 0, 0, 0, 0))
36770             return 1;
36771
36772  ;
36773  return 0;
36774 }
36775
36776 _ACEOF
36777 if ac_fn_c_try_compile "$LINENO"
36778 then :
36779
36780         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36781 printf "%s\n" "yes" >&6; }
36782         tst_compi_fsetxattr="yes"
36783         tst_nargs_fsetxattr="5"
36784
36785 else $as_nop
36786
36787         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36788 printf "%s\n" "no" >&6; }
36789         tst_compi_fsetxattr="no"
36790
36791 fi
36792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36793     fi
36794     if test "$tst_nargs_fsetxattr" = "unknown"; then
36795       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
36796 printf %s "checking if fsetxattr takes 6 args.... " >&6; }
36797       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36798 /* end confdefs.h.  */
36799
36800
36801           $curl_includes_sys_xattr
36802
36803 int main (void)
36804 {
36805
36806           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
36807             return 1;
36808
36809  ;
36810  return 0;
36811 }
36812
36813 _ACEOF
36814 if ac_fn_c_try_compile "$LINENO"
36815 then :
36816
36817         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36818 printf "%s\n" "yes" >&6; }
36819         tst_compi_fsetxattr="yes"
36820         tst_nargs_fsetxattr="6"
36821
36822 else $as_nop
36823
36824         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36825 printf "%s\n" "no" >&6; }
36826         tst_compi_fsetxattr="no"
36827
36828 fi
36829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36830     fi
36831     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
36832 printf %s "checking if fsetxattr is compilable... " >&6; }
36833     if test "$tst_compi_fsetxattr" = "yes"; then
36834       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36835 printf "%s\n" "yes" >&6; }
36836     else
36837       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36838 printf "%s\n" "no" >&6; }
36839     fi
36840   fi
36841   #
36842   if test "$tst_compi_fsetxattr" = "yes"; then
36843     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
36844 printf %s "checking if fsetxattr usage allowed... " >&6; }
36845     if test "x$curl_disallow_fsetxattr" != "xyes"; then
36846       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36847 printf "%s\n" "yes" >&6; }
36848       tst_allow_fsetxattr="yes"
36849     else
36850       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36851 printf "%s\n" "no" >&6; }
36852       tst_allow_fsetxattr="no"
36853     fi
36854   fi
36855   #
36856   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
36857 printf %s "checking if fsetxattr might be used... " >&6; }
36858   if test "$tst_links_fsetxattr" = "yes" &&
36859      test "$tst_proto_fsetxattr" = "yes" &&
36860      test "$tst_compi_fsetxattr" = "yes" &&
36861      test "$tst_allow_fsetxattr" = "yes"; then
36862     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36863 printf "%s\n" "yes" >&6; }
36864
36865 printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h
36866
36867             #
36868     if test "$tst_nargs_fsetxattr" -eq "5"; then
36869
36870 printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h
36871
36872     elif test "$tst_nargs_fsetxattr" -eq "6"; then
36873
36874 printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h
36875
36876     fi
36877     #
36878     curl_cv_func_fsetxattr="yes"
36879   else
36880     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36881 printf "%s\n" "no" >&6; }
36882     curl_cv_func_fsetxattr="no"
36883   fi
36884
36885
36886     #
36887   tst_links_ftruncate="unknown"
36888   tst_proto_ftruncate="unknown"
36889   tst_compi_ftruncate="unknown"
36890   tst_allow_ftruncate="unknown"
36891   #
36892   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
36893 printf %s "checking if ftruncate can be linked... " >&6; }
36894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36895 /* end confdefs.h.  */
36896
36897
36898 #define ftruncate innocuous_ftruncate
36899 #ifdef __STDC__
36900 # include <limits.h>
36901 #else
36902 # include <assert.h>
36903 #endif
36904 #undef ftruncate
36905 #ifdef __cplusplus
36906 extern "C"
36907 #endif
36908 char ftruncate ();
36909 #if defined __stub_ftruncate || defined __stub___ftruncate
36910 choke me
36911 #endif
36912
36913 int main (void)
36914 {
36915 return ftruncate ();
36916  ;
36917  return 0;
36918 }
36919
36920 _ACEOF
36921 if ac_fn_c_try_link "$LINENO"
36922 then :
36923
36924     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36925 printf "%s\n" "yes" >&6; }
36926     tst_links_ftruncate="yes"
36927
36928 else $as_nop
36929
36930     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36931 printf "%s\n" "no" >&6; }
36932     tst_links_ftruncate="no"
36933
36934 fi
36935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36936     conftest$ac_exeext conftest.$ac_ext
36937   #
36938   if test "$tst_links_ftruncate" = "yes"; then
36939     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
36940 printf %s "checking if ftruncate is prototyped... " >&6; }
36941     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36942 /* end confdefs.h.  */
36943
36944       $curl_includes_unistd
36945
36946 _ACEOF
36947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36948   $EGREP "ftruncate" >/dev/null 2>&1
36949 then :
36950
36951       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36952 printf "%s\n" "yes" >&6; }
36953       tst_proto_ftruncate="yes"
36954
36955 else $as_nop
36956
36957       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36958 printf "%s\n" "no" >&6; }
36959       tst_proto_ftruncate="no"
36960
36961 fi
36962 rm -rf conftest*
36963
36964   fi
36965   #
36966   if test "$tst_proto_ftruncate" = "yes"; then
36967     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
36968 printf %s "checking if ftruncate is compilable... " >&6; }
36969     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36970 /* end confdefs.h.  */
36971
36972
36973         $curl_includes_unistd
36974
36975 int main (void)
36976 {
36977
36978         if(0 != ftruncate(0, 0))
36979           return 1;
36980
36981  ;
36982  return 0;
36983 }
36984
36985 _ACEOF
36986 if ac_fn_c_try_compile "$LINENO"
36987 then :
36988
36989       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36990 printf "%s\n" "yes" >&6; }
36991       tst_compi_ftruncate="yes"
36992
36993 else $as_nop
36994
36995       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36996 printf "%s\n" "no" >&6; }
36997       tst_compi_ftruncate="no"
36998
36999 fi
37000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37001   fi
37002   #
37003   if test "$tst_compi_ftruncate" = "yes"; then
37004     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
37005 printf %s "checking if ftruncate usage allowed... " >&6; }
37006     if test "x$curl_disallow_ftruncate" != "xyes"; then
37007       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37008 printf "%s\n" "yes" >&6; }
37009       tst_allow_ftruncate="yes"
37010     else
37011       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37012 printf "%s\n" "no" >&6; }
37013       tst_allow_ftruncate="no"
37014     fi
37015   fi
37016   #
37017   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
37018 printf %s "checking if ftruncate might be used... " >&6; }
37019   if test "$tst_links_ftruncate" = "yes" &&
37020      test "$tst_proto_ftruncate" = "yes" &&
37021      test "$tst_compi_ftruncate" = "yes" &&
37022      test "$tst_allow_ftruncate" = "yes"; then
37023     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37024 printf "%s\n" "yes" >&6; }
37025
37026 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
37027
37028     curl_cv_func_ftruncate="yes"
37029   else
37030     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37031 printf "%s\n" "no" >&6; }
37032     curl_cv_func_ftruncate="no"
37033   fi
37034
37035
37036 curl_includes_stdlib="\
37037 /* includes start */
37038 #ifdef HAVE_SYS_TYPES_H
37039 #  include <sys/types.h>
37040 #endif
37041 #ifdef HAVE_STDLIB_H
37042 #  include <stdlib.h>
37043 #endif
37044 /* includes end */"
37045   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib
37046 "
37047 if test "x$ac_cv_header_sys_types_h" = xyes
37048 then :
37049   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
37050
37051 fi
37052 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$curl_includes_stdlib
37053 "
37054 if test "x$ac_cv_header_stdlib_h" = xyes
37055 then :
37056   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
37057
37058 fi
37059
37060
37061
37062               #
37063   tst_links_getaddrinfo="unknown"
37064   tst_proto_getaddrinfo="unknown"
37065   tst_compi_getaddrinfo="unknown"
37066   tst_works_getaddrinfo="unknown"
37067   tst_allow_getaddrinfo="unknown"
37068   tst_tsafe_getaddrinfo="unknown"
37069   #
37070   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
37071 printf %s "checking if getaddrinfo can be linked... " >&6; }
37072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37073 /* end confdefs.h.  */
37074
37075
37076       $curl_includes_ws2tcpip
37077       $curl_includes_sys_socket
37078       $curl_includes_netdb
37079
37080 int main (void)
37081 {
37082
37083       if(0 != getaddrinfo(0, 0, 0, 0))
37084         return 1;
37085
37086  ;
37087  return 0;
37088 }
37089
37090 _ACEOF
37091 if ac_fn_c_try_link "$LINENO"
37092 then :
37093
37094     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37095 printf "%s\n" "yes" >&6; }
37096     tst_links_getaddrinfo="yes"
37097
37098 else $as_nop
37099
37100     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37101 printf "%s\n" "no" >&6; }
37102     tst_links_getaddrinfo="no"
37103
37104 fi
37105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37106     conftest$ac_exeext conftest.$ac_ext
37107   #
37108   if test "$tst_links_getaddrinfo" = "yes"; then
37109     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
37110 printf %s "checking if getaddrinfo is prototyped... " >&6; }
37111     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37112 /* end confdefs.h.  */
37113
37114       $curl_includes_ws2tcpip
37115       $curl_includes_sys_socket
37116       $curl_includes_netdb
37117
37118 _ACEOF
37119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37120   $EGREP "getaddrinfo" >/dev/null 2>&1
37121 then :
37122
37123       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37124 printf "%s\n" "yes" >&6; }
37125       tst_proto_getaddrinfo="yes"
37126
37127 else $as_nop
37128
37129       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37130 printf "%s\n" "no" >&6; }
37131       tst_proto_getaddrinfo="no"
37132
37133 fi
37134 rm -rf conftest*
37135
37136   fi
37137   #
37138   if test "$tst_proto_getaddrinfo" = "yes"; then
37139     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
37140 printf %s "checking if getaddrinfo is compilable... " >&6; }
37141     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37142 /* end confdefs.h.  */
37143
37144
37145         $curl_includes_ws2tcpip
37146         $curl_includes_sys_socket
37147         $curl_includes_netdb
37148
37149 int main (void)
37150 {
37151
37152         if(0 != getaddrinfo(0, 0, 0, 0))
37153           return 1;
37154
37155  ;
37156  return 0;
37157 }
37158
37159 _ACEOF
37160 if ac_fn_c_try_compile "$LINENO"
37161 then :
37162
37163       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37164 printf "%s\n" "yes" >&6; }
37165       tst_compi_getaddrinfo="yes"
37166
37167 else $as_nop
37168
37169       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37170 printf "%s\n" "no" >&6; }
37171       tst_compi_getaddrinfo="no"
37172
37173 fi
37174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37175   fi
37176   #
37177     if test "x$cross_compiling" != "xyes" &&
37178     test "$tst_compi_getaddrinfo" = "yes"; then
37179     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
37180 printf %s "checking if getaddrinfo seems to work... " >&6; }
37181
37182    case $host_os in
37183      darwin*)
37184       if test "$cross_compiling" = yes
37185 then :
37186   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37187 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37188 as_fn_error $? "cannot run test program while cross compiling
37189 See \`config.log' for more details" "$LINENO" 5; }
37190 else $as_nop
37191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37192 /* end confdefs.h.  */
37193
37194
37195         $curl_includes_ws2tcpip
37196         $curl_includes_stdlib
37197         $curl_includes_string
37198         $curl_includes_sys_socket
37199         $curl_includes_netdb
37200
37201 int main (void)
37202 {
37203
37204         struct addrinfo hints;
37205         struct addrinfo *ai = 0;
37206         int error;
37207
37208         #ifdef HAVE_WINSOCK2_H
37209         WSADATA wsa;
37210         if (WSAStartup(MAKEWORD(2,2), &wsa))
37211                 exit(2);
37212         #endif
37213
37214         memset(&hints, 0, sizeof(hints));
37215         hints.ai_flags = AI_NUMERICHOST;
37216         hints.ai_family = AF_UNSPEC;
37217         hints.ai_socktype = SOCK_STREAM;
37218         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37219         if(error || !ai)
37220           exit(1); /* fail */
37221         else
37222           exit(0);
37223
37224  ;
37225  return 0;
37226 }
37227
37228 _ACEOF
37229 if ac_fn_c_try_run "$LINENO"
37230 then :
37231   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37232 printf "%s\n" "yes" >&6; }
37233       tst_works_getaddrinfo="yes"
37234
37235 else $as_nop
37236   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37237 printf "%s\n" "no" >&6; }
37238       tst_works_getaddrinfo="no"
37239
37240 fi
37241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37242   conftest.$ac_objext conftest.beam conftest.$ac_ext
37243 fi
37244
37245      ;;
37246      *)
37247       old=$LD_LIBRARY_PATH
37248       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37249       export LD_LIBRARY_PATH
37250       if test "$cross_compiling" = yes
37251 then :
37252   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37253 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37254 as_fn_error $? "cannot run test program while cross compiling
37255 See \`config.log' for more details" "$LINENO" 5; }
37256 else $as_nop
37257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37258 /* end confdefs.h.  */
37259
37260
37261         $curl_includes_ws2tcpip
37262         $curl_includes_stdlib
37263         $curl_includes_string
37264         $curl_includes_sys_socket
37265         $curl_includes_netdb
37266
37267 int main (void)
37268 {
37269
37270         struct addrinfo hints;
37271         struct addrinfo *ai = 0;
37272         int error;
37273
37274         #ifdef HAVE_WINSOCK2_H
37275         WSADATA wsa;
37276         if (WSAStartup(MAKEWORD(2,2), &wsa))
37277                 exit(2);
37278         #endif
37279
37280         memset(&hints, 0, sizeof(hints));
37281         hints.ai_flags = AI_NUMERICHOST;
37282         hints.ai_family = AF_UNSPEC;
37283         hints.ai_socktype = SOCK_STREAM;
37284         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37285         if(error || !ai)
37286           exit(1); /* fail */
37287         else
37288           exit(0);
37289
37290  ;
37291  return 0;
37292 }
37293
37294 _ACEOF
37295 if ac_fn_c_try_run "$LINENO"
37296 then :
37297   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37298 printf "%s\n" "yes" >&6; }
37299       tst_works_getaddrinfo="yes"
37300
37301 else $as_nop
37302   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37303 printf "%s\n" "no" >&6; }
37304       tst_works_getaddrinfo="no"
37305
37306 fi
37307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37308   conftest.$ac_objext conftest.beam conftest.$ac_ext
37309 fi
37310
37311       LD_LIBRARY_PATH=$old # restore
37312      ;;
37313    esac
37314
37315   fi
37316   #
37317   if test "$tst_compi_getaddrinfo" = "yes" &&
37318     test "$tst_works_getaddrinfo" != "no"; then
37319     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
37320 printf %s "checking if getaddrinfo usage allowed... " >&6; }
37321     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
37322       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37323 printf "%s\n" "yes" >&6; }
37324       tst_allow_getaddrinfo="yes"
37325     else
37326       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37327 printf "%s\n" "no" >&6; }
37328       tst_allow_getaddrinfo="no"
37329     fi
37330   fi
37331   #
37332   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
37333 printf %s "checking if getaddrinfo might be used... " >&6; }
37334   if test "$tst_links_getaddrinfo" = "yes" &&
37335      test "$tst_proto_getaddrinfo" = "yes" &&
37336      test "$tst_compi_getaddrinfo" = "yes" &&
37337      test "$tst_allow_getaddrinfo" = "yes" &&
37338      test "$tst_works_getaddrinfo" != "no"; then
37339     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37340 printf "%s\n" "yes" >&6; }
37341
37342 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
37343
37344     curl_cv_func_getaddrinfo="yes"
37345   else
37346     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37347 printf "%s\n" "no" >&6; }
37348     curl_cv_func_getaddrinfo="no"
37349     curl_cv_func_getaddrinfo_threadsafe="no"
37350   fi
37351   #
37352   if test "$curl_cv_func_getaddrinfo" = "yes"; then
37353     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
37354 printf %s "checking if getaddrinfo is threadsafe... " >&6; }
37355     case $host_os in
37356       aix[1234].* | aix5.[01].*)
37357                 tst_tsafe_getaddrinfo="no"
37358         ;;
37359       aix*)
37360                 tst_tsafe_getaddrinfo="yes"
37361         ;;
37362       darwin[12345].*)
37363                 tst_tsafe_getaddrinfo="no"
37364         ;;
37365       darwin*)
37366                 tst_tsafe_getaddrinfo="yes"
37367         ;;
37368       freebsd[1234].* | freebsd5.[1234]*)
37369                 tst_tsafe_getaddrinfo="no"
37370         ;;
37371       freebsd*)
37372                 tst_tsafe_getaddrinfo="yes"
37373         ;;
37374       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
37375                 tst_tsafe_getaddrinfo="no"
37376         ;;
37377       hpux*)
37378                 tst_tsafe_getaddrinfo="yes"
37379         ;;
37380       midnightbsd*)
37381                 tst_tsafe_getaddrinfo="yes"
37382         ;;
37383       netbsd[123].*)
37384                 tst_tsafe_getaddrinfo="no"
37385         ;;
37386       netbsd*)
37387                 tst_tsafe_getaddrinfo="yes"
37388         ;;
37389       *bsd*)
37390                 tst_tsafe_getaddrinfo="no"
37391         ;;
37392       solaris2*)
37393                 tst_tsafe_getaddrinfo="yes"
37394         ;;
37395     esac
37396     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
37397        test "$curl_cv_native_windows" = "yes"; then
37398       tst_tsafe_getaddrinfo="yes"
37399     fi
37400     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
37401
37402
37403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37404 /* end confdefs.h.  */
37405
37406
37407         $curl_includes_sys_socket
37408         $curl_includes_netdb
37409
37410 int main (void)
37411 {
37412 #ifdef h_errno
37413   return 0;
37414 #else
37415   force compilation error
37416 #endif
37417 }
37418
37419
37420 _ACEOF
37421 if ac_fn_c_try_compile "$LINENO"
37422 then :
37423
37424     tst_symbol_defined="yes"
37425
37426 else $as_nop
37427
37428     tst_symbol_defined="no"
37429
37430 fi
37431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37432   if test "$tst_symbol_defined" = "yes"; then
37433     curl_cv_have_def_h_errno=yes
37434
37435   else
37436     curl_cv_have_def_h_errno=no
37437
37438   fi
37439
37440       if test "$curl_cv_have_def_h_errno" = "yes"; then
37441         tst_h_errno_macro="yes"
37442       else
37443         tst_h_errno_macro="no"
37444       fi
37445       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37446 /* end confdefs.h.  */
37447
37448
37449           $curl_includes_sys_socket
37450           $curl_includes_netdb
37451
37452 int main (void)
37453 {
37454
37455           h_errno = 2;
37456           if(0 != h_errno)
37457             return 1;
37458
37459  ;
37460  return 0;
37461 }
37462
37463 _ACEOF
37464 if ac_fn_c_try_compile "$LINENO"
37465 then :
37466
37467         tst_h_errno_modifiable_lvalue="yes"
37468
37469 else $as_nop
37470
37471         tst_h_errno_modifiable_lvalue="no"
37472
37473 fi
37474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37475       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37476 /* end confdefs.h.  */
37477
37478
37479
37480 int main (void)
37481 {
37482
37483 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
37484           return 0;
37485 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
37486           return 0;
37487 #else
37488           force compilation error
37489 #endif
37490
37491  ;
37492  return 0;
37493 }
37494
37495 _ACEOF
37496 if ac_fn_c_try_compile "$LINENO"
37497 then :
37498
37499         tst_h_errno_sbs_issue_7="yes"
37500
37501 else $as_nop
37502
37503         tst_h_errno_sbs_issue_7="no"
37504
37505 fi
37506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37507       if test "$tst_h_errno_macro" = "no" &&
37508          test "$tst_h_errno_modifiable_lvalue" = "no" &&
37509          test "$tst_h_errno_sbs_issue_7" = "no"; then
37510         tst_tsafe_getaddrinfo="no"
37511       else
37512         tst_tsafe_getaddrinfo="yes"
37513       fi
37514     fi
37515     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
37516 printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
37517     if test "$tst_tsafe_getaddrinfo" = "yes"; then
37518
37519 printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
37520
37521       curl_cv_func_getaddrinfo_threadsafe="yes"
37522     else
37523       curl_cv_func_getaddrinfo_threadsafe="no"
37524     fi
37525   fi
37526
37527
37528       #
37529   tst_links_gethostbyname="unknown"
37530   tst_proto_gethostbyname="unknown"
37531   tst_compi_gethostbyname="unknown"
37532   tst_allow_gethostbyname="unknown"
37533   #
37534   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
37535 printf %s "checking if gethostbyname can be linked... " >&6; }
37536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37537 /* end confdefs.h.  */
37538
37539
37540       $curl_includes_winsock2
37541       $curl_includes_bsdsocket
37542       $curl_includes_netdb
37543
37544 int main (void)
37545 {
37546
37547       if(0 != gethostbyname(0))
37548         return 1;
37549
37550  ;
37551  return 0;
37552 }
37553
37554 _ACEOF
37555 if ac_fn_c_try_link "$LINENO"
37556 then :
37557
37558     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37559 printf "%s\n" "yes" >&6; }
37560     tst_links_gethostbyname="yes"
37561
37562 else $as_nop
37563
37564     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37565 printf "%s\n" "no" >&6; }
37566     tst_links_gethostbyname="no"
37567
37568 fi
37569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37570     conftest$ac_exeext conftest.$ac_ext
37571   #
37572   if test "$tst_links_gethostbyname" = "yes"; then
37573     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
37574 printf %s "checking if gethostbyname is prototyped... " >&6; }
37575     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37576 /* end confdefs.h.  */
37577
37578       $curl_includes_winsock2
37579       $curl_includes_bsdsocket
37580       $curl_includes_netdb
37581
37582 _ACEOF
37583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37584   $EGREP "gethostbyname" >/dev/null 2>&1
37585 then :
37586
37587       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37588 printf "%s\n" "yes" >&6; }
37589       tst_proto_gethostbyname="yes"
37590
37591 else $as_nop
37592
37593       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37594 printf "%s\n" "no" >&6; }
37595       tst_proto_gethostbyname="no"
37596
37597 fi
37598 rm -rf conftest*
37599
37600   fi
37601   #
37602   if test "$tst_proto_gethostbyname" = "yes"; then
37603     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
37604 printf %s "checking if gethostbyname is compilable... " >&6; }
37605     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37606 /* end confdefs.h.  */
37607
37608
37609         $curl_includes_winsock2
37610         $curl_includes_bsdsocket
37611         $curl_includes_netdb
37612
37613 int main (void)
37614 {
37615
37616         if(0 != gethostbyname(0))
37617           return 1;
37618
37619  ;
37620  return 0;
37621 }
37622
37623 _ACEOF
37624 if ac_fn_c_try_compile "$LINENO"
37625 then :
37626
37627       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37628 printf "%s\n" "yes" >&6; }
37629       tst_compi_gethostbyname="yes"
37630
37631 else $as_nop
37632
37633       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37634 printf "%s\n" "no" >&6; }
37635       tst_compi_gethostbyname="no"
37636
37637 fi
37638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37639   fi
37640   #
37641   if test "$tst_compi_gethostbyname" = "yes"; then
37642     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
37643 printf %s "checking if gethostbyname usage allowed... " >&6; }
37644     if test "x$curl_disallow_gethostbyname" != "xyes"; then
37645       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37646 printf "%s\n" "yes" >&6; }
37647       tst_allow_gethostbyname="yes"
37648     else
37649       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37650 printf "%s\n" "no" >&6; }
37651       tst_allow_gethostbyname="no"
37652     fi
37653   fi
37654   #
37655   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
37656 printf %s "checking if gethostbyname might be used... " >&6; }
37657   if test "$tst_links_gethostbyname" = "yes" &&
37658      test "$tst_proto_gethostbyname" = "yes" &&
37659      test "$tst_compi_gethostbyname" = "yes" &&
37660      test "$tst_allow_gethostbyname" = "yes"; then
37661     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37662 printf "%s\n" "yes" >&6; }
37663
37664 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
37665
37666     curl_cv_func_gethostbyname="yes"
37667   else
37668     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37669 printf "%s\n" "no" >&6; }
37670     curl_cv_func_gethostbyname="no"
37671   fi
37672
37673
37674     #
37675   tst_links_gethostbyname_r="unknown"
37676   tst_proto_gethostbyname_r="unknown"
37677   tst_compi_gethostbyname_r="unknown"
37678   tst_allow_gethostbyname_r="unknown"
37679   tst_nargs_gethostbyname_r="unknown"
37680   #
37681   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
37682 printf %s "checking if gethostbyname_r can be linked... " >&6; }
37683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37684 /* end confdefs.h.  */
37685
37686
37687 #define gethostbyname_r innocuous_gethostbyname_r
37688 #ifdef __STDC__
37689 # include <limits.h>
37690 #else
37691 # include <assert.h>
37692 #endif
37693 #undef gethostbyname_r
37694 #ifdef __cplusplus
37695 extern "C"
37696 #endif
37697 char gethostbyname_r ();
37698 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
37699 choke me
37700 #endif
37701
37702 int main (void)
37703 {
37704 return gethostbyname_r ();
37705  ;
37706  return 0;
37707 }
37708
37709 _ACEOF
37710 if ac_fn_c_try_link "$LINENO"
37711 then :
37712
37713     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37714 printf "%s\n" "yes" >&6; }
37715     tst_links_gethostbyname_r="yes"
37716
37717 else $as_nop
37718
37719     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37720 printf "%s\n" "no" >&6; }
37721     tst_links_gethostbyname_r="no"
37722
37723 fi
37724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37725     conftest$ac_exeext conftest.$ac_ext
37726   #
37727   if test "$tst_links_gethostbyname_r" = "yes"; then
37728     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
37729 printf %s "checking if gethostbyname_r is prototyped... " >&6; }
37730     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37731 /* end confdefs.h.  */
37732
37733       $curl_includes_netdb
37734
37735 _ACEOF
37736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37737   $EGREP "gethostbyname_r" >/dev/null 2>&1
37738 then :
37739
37740       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37741 printf "%s\n" "yes" >&6; }
37742       tst_proto_gethostbyname_r="yes"
37743
37744 else $as_nop
37745
37746       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37747 printf "%s\n" "no" >&6; }
37748       tst_proto_gethostbyname_r="no"
37749
37750 fi
37751 rm -rf conftest*
37752
37753   fi
37754   #
37755   if test "$tst_proto_gethostbyname_r" = "yes"; then
37756     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37757       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
37758 printf %s "checking if gethostbyname_r takes 3 args.... " >&6; }
37759       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37760 /* end confdefs.h.  */
37761
37762
37763           $curl_includes_netdb
37764           $curl_includes_bsdsocket
37765
37766 int main (void)
37767 {
37768
37769           if(0 != gethostbyname_r(0, 0, 0))
37770             return 1;
37771
37772  ;
37773  return 0;
37774 }
37775
37776 _ACEOF
37777 if ac_fn_c_try_compile "$LINENO"
37778 then :
37779
37780         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37781 printf "%s\n" "yes" >&6; }
37782         tst_compi_gethostbyname_r="yes"
37783         tst_nargs_gethostbyname_r="3"
37784
37785 else $as_nop
37786
37787         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37788 printf "%s\n" "no" >&6; }
37789         tst_compi_gethostbyname_r="no"
37790
37791 fi
37792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37793     fi
37794     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37795       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
37796 printf %s "checking if gethostbyname_r takes 5 args.... " >&6; }
37797       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37798 /* end confdefs.h.  */
37799
37800
37801           $curl_includes_netdb
37802           $curl_includes_bsdsocket
37803
37804 int main (void)
37805 {
37806
37807           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
37808             return 1;
37809
37810  ;
37811  return 0;
37812 }
37813
37814 _ACEOF
37815 if ac_fn_c_try_compile "$LINENO"
37816 then :
37817
37818         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37819 printf "%s\n" "yes" >&6; }
37820         tst_compi_gethostbyname_r="yes"
37821         tst_nargs_gethostbyname_r="5"
37822
37823 else $as_nop
37824
37825         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37826 printf "%s\n" "no" >&6; }
37827         tst_compi_gethostbyname_r="no"
37828
37829 fi
37830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37831     fi
37832     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37833       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
37834 printf %s "checking if gethostbyname_r takes 6 args.... " >&6; }
37835       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37836 /* end confdefs.h.  */
37837
37838
37839           $curl_includes_netdb
37840           $curl_includes_bsdsocket
37841
37842 int main (void)
37843 {
37844
37845           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
37846             return 1;
37847
37848  ;
37849  return 0;
37850 }
37851
37852 _ACEOF
37853 if ac_fn_c_try_compile "$LINENO"
37854 then :
37855
37856         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37857 printf "%s\n" "yes" >&6; }
37858         tst_compi_gethostbyname_r="yes"
37859         tst_nargs_gethostbyname_r="6"
37860
37861 else $as_nop
37862
37863         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37864 printf "%s\n" "no" >&6; }
37865         tst_compi_gethostbyname_r="no"
37866
37867 fi
37868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37869     fi
37870     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
37871 printf %s "checking if gethostbyname_r is compilable... " >&6; }
37872     if test "$tst_compi_gethostbyname_r" = "yes"; then
37873       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37874 printf "%s\n" "yes" >&6; }
37875     else
37876       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37877 printf "%s\n" "no" >&6; }
37878     fi
37879   fi
37880   #
37881   if test "$tst_compi_gethostbyname_r" = "yes"; then
37882     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
37883 printf %s "checking if gethostbyname_r usage allowed... " >&6; }
37884     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
37885       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37886 printf "%s\n" "yes" >&6; }
37887       tst_allow_gethostbyname_r="yes"
37888     else
37889       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37890 printf "%s\n" "no" >&6; }
37891       tst_allow_gethostbyname_r="no"
37892     fi
37893   fi
37894   #
37895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
37896 printf %s "checking if gethostbyname_r might be used... " >&6; }
37897   if test "$tst_links_gethostbyname_r" = "yes" &&
37898      test "$tst_proto_gethostbyname_r" = "yes" &&
37899      test "$tst_compi_gethostbyname_r" = "yes" &&
37900      test "$tst_allow_gethostbyname_r" = "yes"; then
37901     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37902 printf "%s\n" "yes" >&6; }
37903
37904 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
37905
37906             #
37907     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
37908
37909 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
37910
37911     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
37912
37913 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
37914
37915     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
37916
37917 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
37918
37919     fi
37920     #
37921     curl_cv_func_gethostbyname_r="yes"
37922   else
37923     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37924 printf "%s\n" "no" >&6; }
37925     curl_cv_func_gethostbyname_r="no"
37926   fi
37927
37928
37929 curl_preprocess_callconv="\
37930 /* preprocess start */
37931 #ifdef HAVE_WINDOWS_H
37932 #  define FUNCALLCONV __stdcall
37933 #else
37934 #  define FUNCALLCONV
37935 #endif
37936 /* preprocess end */"
37937
37938
37939           #
37940   tst_links_gethostname="unknown"
37941   tst_proto_gethostname="unknown"
37942   tst_compi_gethostname="unknown"
37943   tst_allow_gethostname="unknown"
37944   #
37945   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
37946 printf %s "checking if gethostname can be linked... " >&6; }
37947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37948 /* end confdefs.h.  */
37949
37950
37951       $curl_includes_winsock2
37952       $curl_includes_unistd
37953       $curl_includes_bsdsocket
37954
37955 int main (void)
37956 {
37957
37958       if(0 != gethostname(0, 0))
37959         return 1;
37960
37961  ;
37962  return 0;
37963 }
37964
37965 _ACEOF
37966 if ac_fn_c_try_link "$LINENO"
37967 then :
37968
37969     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37970 printf "%s\n" "yes" >&6; }
37971     tst_links_gethostname="yes"
37972
37973 else $as_nop
37974
37975     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37976 printf "%s\n" "no" >&6; }
37977     tst_links_gethostname="no"
37978
37979 fi
37980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37981     conftest$ac_exeext conftest.$ac_ext
37982   #
37983   if test "$tst_links_gethostname" = "yes"; then
37984     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
37985 printf %s "checking if gethostname is prototyped... " >&6; }
37986     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37987 /* end confdefs.h.  */
37988
37989       $curl_includes_winsock2
37990       $curl_includes_unistd
37991       $curl_includes_bsdsocket
37992
37993 _ACEOF
37994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37995   $EGREP "gethostname" >/dev/null 2>&1
37996 then :
37997
37998       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37999 printf "%s\n" "yes" >&6; }
38000       tst_proto_gethostname="yes"
38001
38002 else $as_nop
38003
38004       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38005 printf "%s\n" "no" >&6; }
38006       tst_proto_gethostname="no"
38007
38008 fi
38009 rm -rf conftest*
38010
38011   fi
38012   #
38013   if test "$tst_proto_gethostname" = "yes"; then
38014     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
38015 printf %s "checking if gethostname is compilable... " >&6; }
38016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38017 /* end confdefs.h.  */
38018
38019
38020         $curl_includes_winsock2
38021         $curl_includes_unistd
38022         $curl_includes_bsdsocket
38023
38024 int main (void)
38025 {
38026
38027         if(0 != gethostname(0, 0))
38028           return 1;
38029
38030  ;
38031  return 0;
38032 }
38033
38034 _ACEOF
38035 if ac_fn_c_try_compile "$LINENO"
38036 then :
38037
38038       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38039 printf "%s\n" "yes" >&6; }
38040       tst_compi_gethostname="yes"
38041
38042 else $as_nop
38043
38044       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38045 printf "%s\n" "no" >&6; }
38046       tst_compi_gethostname="no"
38047
38048 fi
38049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38050   fi
38051   #
38052   if test "$tst_compi_gethostname" = "yes"; then
38053     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
38054 printf %s "checking for gethostname arg 2 data type... " >&6; }
38055     tst_gethostname_type_arg2="unknown"
38056     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
38057       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
38058         if test "$tst_gethostname_type_arg2" = "unknown"; then
38059           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38060 /* end confdefs.h.  */
38061
38062
38063               $curl_includes_winsock2
38064               $curl_includes_unistd
38065               $curl_includes_bsdsocket
38066               $curl_preprocess_callconv
38067               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
38068
38069 int main (void)
38070 {
38071
38072               if(0 != gethostname(0, 0))
38073                 return 1;
38074
38075  ;
38076  return 0;
38077 }
38078
38079 _ACEOF
38080 if ac_fn_c_try_compile "$LINENO"
38081 then :
38082
38083             tst_gethostname_type_arg2="$tst_arg2"
38084
38085 fi
38086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38087         fi
38088       done
38089     done
38090     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
38091 printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
38092     if test "$tst_gethostname_type_arg2" != "unknown"; then
38093
38094 printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
38095
38096     fi
38097   fi
38098   #
38099   if test "$tst_compi_gethostname" = "yes"; then
38100     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
38101 printf %s "checking if gethostname usage allowed... " >&6; }
38102     if test "x$curl_disallow_gethostname" != "xyes"; then
38103       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38104 printf "%s\n" "yes" >&6; }
38105       tst_allow_gethostname="yes"
38106     else
38107       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38108 printf "%s\n" "no" >&6; }
38109       tst_allow_gethostname="no"
38110     fi
38111   fi
38112   #
38113   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
38114 printf %s "checking if gethostname might be used... " >&6; }
38115   if test "$tst_links_gethostname" = "yes" &&
38116      test "$tst_proto_gethostname" = "yes" &&
38117      test "$tst_compi_gethostname" = "yes" &&
38118      test "$tst_allow_gethostname" = "yes"; then
38119     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38120 printf "%s\n" "yes" >&6; }
38121
38122 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
38123
38124     curl_cv_func_gethostname="yes"
38125   else
38126     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38127 printf "%s\n" "no" >&6; }
38128     curl_cv_func_gethostname="no"
38129   fi
38130
38131
38132           #
38133   tst_links_getpeername="unknown"
38134   tst_proto_getpeername="unknown"
38135   tst_compi_getpeername="unknown"
38136   tst_allow_getpeername="unknown"
38137   #
38138   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
38139 printf %s "checking if getpeername can be linked... " >&6; }
38140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38141 /* end confdefs.h.  */
38142
38143
38144       $curl_includes_winsock2
38145       $curl_includes_bsdsocket
38146       $curl_includes_sys_socket
38147
38148 int main (void)
38149 {
38150
38151       if(0 != getpeername(0, (void *)0, (void *)0))
38152         return 1;
38153
38154  ;
38155  return 0;
38156 }
38157
38158 _ACEOF
38159 if ac_fn_c_try_link "$LINENO"
38160 then :
38161
38162     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38163 printf "%s\n" "yes" >&6; }
38164     tst_links_getpeername="yes"
38165
38166 else $as_nop
38167
38168     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38169 printf "%s\n" "no" >&6; }
38170     tst_links_getpeername="no"
38171
38172 fi
38173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38174     conftest$ac_exeext conftest.$ac_ext
38175   #
38176   if test "$tst_links_getpeername" = "yes"; then
38177     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
38178 printf %s "checking if getpeername is prototyped... " >&6; }
38179     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38180 /* end confdefs.h.  */
38181
38182       $curl_includes_winsock2
38183       $curl_includes_bsdsocket
38184       $curl_includes_sys_socket
38185
38186 _ACEOF
38187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38188   $EGREP "getpeername" >/dev/null 2>&1
38189 then :
38190
38191       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38192 printf "%s\n" "yes" >&6; }
38193       tst_proto_getpeername="yes"
38194
38195 else $as_nop
38196
38197       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38198 printf "%s\n" "no" >&6; }
38199       tst_proto_getpeername="no"
38200
38201 fi
38202 rm -rf conftest*
38203
38204   fi
38205   #
38206   if test "$tst_proto_getpeername" = "yes"; then
38207     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
38208 printf %s "checking if getpeername is compilable... " >&6; }
38209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38210 /* end confdefs.h.  */
38211
38212
38213         $curl_includes_winsock2
38214         $curl_includes_bsdsocket
38215         $curl_includes_sys_socket
38216
38217 int main (void)
38218 {
38219
38220         if(0 != getpeername(0, (void *)0, (void *)0))
38221           return 1;
38222
38223  ;
38224  return 0;
38225 }
38226
38227 _ACEOF
38228 if ac_fn_c_try_compile "$LINENO"
38229 then :
38230
38231       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38232 printf "%s\n" "yes" >&6; }
38233       tst_compi_getpeername="yes"
38234
38235 else $as_nop
38236
38237       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38238 printf "%s\n" "no" >&6; }
38239       tst_compi_getpeername="no"
38240
38241 fi
38242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38243   fi
38244   #
38245   if test "$tst_compi_getpeername" = "yes"; then
38246     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
38247 printf %s "checking if getpeername usage allowed... " >&6; }
38248     if test "x$curl_disallow_getpeername" != "xyes"; then
38249       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38250 printf "%s\n" "yes" >&6; }
38251       tst_allow_getpeername="yes"
38252     else
38253       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38254 printf "%s\n" "no" >&6; }
38255       tst_allow_getpeername="no"
38256     fi
38257   fi
38258   #
38259   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
38260 printf %s "checking if getpeername might be used... " >&6; }
38261   if test "$tst_links_getpeername" = "yes" &&
38262      test "$tst_proto_getpeername" = "yes" &&
38263      test "$tst_compi_getpeername" = "yes" &&
38264      test "$tst_allow_getpeername" = "yes"; then
38265     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38266 printf "%s\n" "yes" >&6; }
38267
38268 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
38269
38270     curl_cv_func_getpeername="yes"
38271   else
38272     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38273 printf "%s\n" "no" >&6; }
38274     curl_cv_func_getpeername="no"
38275   fi
38276
38277
38278           #
38279   tst_links_getsockname="unknown"
38280   tst_proto_getsockname="unknown"
38281   tst_compi_getsockname="unknown"
38282   tst_allow_getsockname="unknown"
38283   #
38284   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
38285 printf %s "checking if getsockname can be linked... " >&6; }
38286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38287 /* end confdefs.h.  */
38288
38289
38290       $curl_includes_winsock2
38291       $curl_includes_bsdsocket
38292       $curl_includes_sys_socket
38293
38294 int main (void)
38295 {
38296
38297       if(0 != getsockname(0, (void *)0, (void *)0))
38298         return 1;
38299
38300  ;
38301  return 0;
38302 }
38303
38304 _ACEOF
38305 if ac_fn_c_try_link "$LINENO"
38306 then :
38307
38308     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38309 printf "%s\n" "yes" >&6; }
38310     tst_links_getsockname="yes"
38311
38312 else $as_nop
38313
38314     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38315 printf "%s\n" "no" >&6; }
38316     tst_links_getsockname="no"
38317
38318 fi
38319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38320     conftest$ac_exeext conftest.$ac_ext
38321   #
38322   if test "$tst_links_getsockname" = "yes"; then
38323     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
38324 printf %s "checking if getsockname is prototyped... " >&6; }
38325     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38326 /* end confdefs.h.  */
38327
38328       $curl_includes_winsock2
38329       $curl_includes_bsdsocket
38330       $curl_includes_sys_socket
38331
38332 _ACEOF
38333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38334   $EGREP "getsockname" >/dev/null 2>&1
38335 then :
38336
38337       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38338 printf "%s\n" "yes" >&6; }
38339       tst_proto_getsockname="yes"
38340
38341 else $as_nop
38342
38343       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38344 printf "%s\n" "no" >&6; }
38345       tst_proto_getsockname="no"
38346
38347 fi
38348 rm -rf conftest*
38349
38350   fi
38351   #
38352   if test "$tst_proto_getsockname" = "yes"; then
38353     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
38354 printf %s "checking if getsockname is compilable... " >&6; }
38355     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38356 /* end confdefs.h.  */
38357
38358
38359         $curl_includes_winsock2
38360         $curl_includes_bsdsocket
38361         $curl_includes_sys_socket
38362
38363 int main (void)
38364 {
38365
38366         if(0 != getsockname(0, (void *)0, (void *)0))
38367           return 1;
38368
38369  ;
38370  return 0;
38371 }
38372
38373 _ACEOF
38374 if ac_fn_c_try_compile "$LINENO"
38375 then :
38376
38377       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38378 printf "%s\n" "yes" >&6; }
38379       tst_compi_getsockname="yes"
38380
38381 else $as_nop
38382
38383       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38384 printf "%s\n" "no" >&6; }
38385       tst_compi_getsockname="no"
38386
38387 fi
38388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38389   fi
38390   #
38391   if test "$tst_compi_getsockname" = "yes"; then
38392     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
38393 printf %s "checking if getsockname usage allowed... " >&6; }
38394     if test "x$curl_disallow_getsockname" != "xyes"; then
38395       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38396 printf "%s\n" "yes" >&6; }
38397       tst_allow_getsockname="yes"
38398     else
38399       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38400 printf "%s\n" "no" >&6; }
38401       tst_allow_getsockname="no"
38402     fi
38403   fi
38404   #
38405   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
38406 printf %s "checking if getsockname might be used... " >&6; }
38407   if test "$tst_links_getsockname" = "yes" &&
38408      test "$tst_proto_getsockname" = "yes" &&
38409      test "$tst_compi_getsockname" = "yes" &&
38410      test "$tst_allow_getsockname" = "yes"; then
38411     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38412 printf "%s\n" "yes" >&6; }
38413
38414 printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
38415
38416     curl_cv_func_getsockname="yes"
38417   else
38418     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38419 printf "%s\n" "no" >&6; }
38420     curl_cv_func_getsockname="no"
38421   fi
38422
38423
38424 curl_includes_netif="\
38425 /* includes start */
38426 #ifdef HAVE_NET_IF_H
38427 #  include <net/if.h>
38428 #endif
38429 /* includes end */"
38430   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
38431 "
38432 if test "x$ac_cv_header_net_if_h" = xyes
38433 then :
38434   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
38435
38436 fi
38437
38438
38439
38440         #
38441   tst_links_if_nametoindex="unknown"
38442   tst_proto_if_nametoindex="unknown"
38443   tst_compi_if_nametoindex="unknown"
38444   tst_allow_if_nametoindex="unknown"
38445   #
38446   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
38447 printf %s "checking if if_nametoindex can be linked... " >&6; }
38448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38449 /* end confdefs.h.  */
38450
38451
38452       $curl_includes_winsock2
38453       $curl_includes_bsdsocket
38454       #include <net/if.h>
38455
38456 int main (void)
38457 {
38458
38459       if(0 != if_nametoindex(""))
38460         return 1;
38461
38462  ;
38463  return 0;
38464 }
38465
38466 _ACEOF
38467 if ac_fn_c_try_link "$LINENO"
38468 then :
38469
38470     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38471 printf "%s\n" "yes" >&6; }
38472     tst_links_if_nametoindex="yes"
38473
38474 else $as_nop
38475
38476     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38477 printf "%s\n" "no" >&6; }
38478     tst_links_if_nametoindex="no"
38479
38480 fi
38481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38482     conftest$ac_exeext conftest.$ac_ext
38483   #
38484   if test "$tst_links_if_nametoindex" = "yes"; then
38485     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
38486 printf %s "checking if if_nametoindex is prototyped... " >&6; }
38487     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38488 /* end confdefs.h.  */
38489
38490       $curl_includes_winsock2
38491       $curl_includes_netif
38492
38493 _ACEOF
38494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38495   $EGREP "if_nametoindex" >/dev/null 2>&1
38496 then :
38497
38498       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38499 printf "%s\n" "yes" >&6; }
38500       tst_proto_if_nametoindex="yes"
38501
38502 else $as_nop
38503
38504       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38505 printf "%s\n" "no" >&6; }
38506       tst_proto_if_nametoindex="no"
38507
38508 fi
38509 rm -rf conftest*
38510
38511   fi
38512   #
38513   if test "$tst_proto_if_nametoindex" = "yes"; then
38514     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
38515 printf %s "checking if if_nametoindex is compilable... " >&6; }
38516     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38517 /* end confdefs.h.  */
38518
38519
38520         $curl_includes_winsock2
38521         $curl_includes_netif
38522
38523 int main (void)
38524 {
38525
38526         if(0 != if_nametoindex(""))
38527           return 1;
38528
38529  ;
38530  return 0;
38531 }
38532
38533 _ACEOF
38534 if ac_fn_c_try_compile "$LINENO"
38535 then :
38536
38537       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38538 printf "%s\n" "yes" >&6; }
38539       tst_compi_if_nametoindex="yes"
38540
38541 else $as_nop
38542
38543       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38544 printf "%s\n" "no" >&6; }
38545       tst_compi_if_nametoindex="no"
38546
38547 fi
38548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38549   fi
38550   #
38551   if test "$tst_compi_if_nametoindex" = "yes"; then
38552     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
38553 printf %s "checking if if_nametoindex usage allowed... " >&6; }
38554     if test "x$curl_disallow_if_nametoindex" != "xyes"; then
38555       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38556 printf "%s\n" "yes" >&6; }
38557       tst_allow_if_nametoindex="yes"
38558     else
38559       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38560 printf "%s\n" "no" >&6; }
38561       tst_allow_if_nametoindex="no"
38562     fi
38563   fi
38564   #
38565   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
38566 printf %s "checking if if_nametoindex might be used... " >&6; }
38567   if test "$tst_links_if_nametoindex" = "yes" &&
38568      test "$tst_proto_if_nametoindex" = "yes" &&
38569      test "$tst_compi_if_nametoindex" = "yes" &&
38570      test "$tst_allow_if_nametoindex" = "yes"; then
38571     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38572 printf "%s\n" "yes" >&6; }
38573
38574 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
38575
38576     curl_cv_func_if_nametoindex="yes"
38577   else
38578     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38579 printf "%s\n" "no" >&6; }
38580     curl_cv_func_if_nametoindex="no"
38581   fi
38582
38583
38584 curl_includes_ifaddrs="\
38585 /* includes start */
38586 #ifdef HAVE_SYS_TYPES_H
38587 #  include <sys/types.h>
38588 #endif
38589 #ifdef HAVE_SYS_SOCKET_H
38590 #  include <sys/socket.h>
38591 #endif
38592 #ifdef HAVE_NETINET_IN_H
38593 #  include <netinet/in.h>
38594 #endif
38595 #ifdef HAVE_IFADDRS_H
38596 #  include <ifaddrs.h>
38597 #endif
38598 /* includes end */"
38599   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs
38600 "
38601 if test "x$ac_cv_header_sys_types_h" = xyes
38602 then :
38603   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38604
38605 fi
38606 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs
38607 "
38608 if test "x$ac_cv_header_sys_socket_h" = xyes
38609 then :
38610   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
38611
38612 fi
38613 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs
38614 "
38615 if test "x$ac_cv_header_netinet_in_h" = xyes
38616 then :
38617   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
38618
38619 fi
38620 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs
38621 "
38622 if test "x$ac_cv_header_ifaddrs_h" = xyes
38623 then :
38624   printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
38625
38626 fi
38627
38628
38629
38630       #
38631   tst_links_getifaddrs="unknown"
38632   tst_proto_getifaddrs="unknown"
38633   tst_compi_getifaddrs="unknown"
38634   tst_works_getifaddrs="unknown"
38635   tst_allow_getifaddrs="unknown"
38636   #
38637   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
38638 printf %s "checking if getifaddrs can be linked... " >&6; }
38639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38640 /* end confdefs.h.  */
38641
38642
38643 #define getifaddrs innocuous_getifaddrs
38644 #ifdef __STDC__
38645 # include <limits.h>
38646 #else
38647 # include <assert.h>
38648 #endif
38649 #undef getifaddrs
38650 #ifdef __cplusplus
38651 extern "C"
38652 #endif
38653 char getifaddrs ();
38654 #if defined __stub_getifaddrs || defined __stub___getifaddrs
38655 choke me
38656 #endif
38657
38658 int main (void)
38659 {
38660 return getifaddrs ();
38661  ;
38662  return 0;
38663 }
38664
38665 _ACEOF
38666 if ac_fn_c_try_link "$LINENO"
38667 then :
38668
38669     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38670 printf "%s\n" "yes" >&6; }
38671     tst_links_getifaddrs="yes"
38672
38673 else $as_nop
38674
38675     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38676 printf "%s\n" "no" >&6; }
38677     tst_links_getifaddrs="no"
38678
38679 fi
38680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38681     conftest$ac_exeext conftest.$ac_ext
38682   #
38683   if test "$tst_links_getifaddrs" = "yes"; then
38684     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
38685 printf %s "checking if getifaddrs is prototyped... " >&6; }
38686     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38687 /* end confdefs.h.  */
38688
38689       $curl_includes_ifaddrs
38690
38691 _ACEOF
38692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38693   $EGREP "getifaddrs" >/dev/null 2>&1
38694 then :
38695
38696       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38697 printf "%s\n" "yes" >&6; }
38698       tst_proto_getifaddrs="yes"
38699
38700 else $as_nop
38701
38702       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38703 printf "%s\n" "no" >&6; }
38704       tst_proto_getifaddrs="no"
38705
38706 fi
38707 rm -rf conftest*
38708
38709   fi
38710   #
38711   if test "$tst_proto_getifaddrs" = "yes"; then
38712     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
38713 printf %s "checking if getifaddrs is compilable... " >&6; }
38714     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38715 /* end confdefs.h.  */
38716
38717
38718         $curl_includes_ifaddrs
38719
38720 int main (void)
38721 {
38722
38723         if(0 != getifaddrs(0))
38724           return 1;
38725
38726  ;
38727  return 0;
38728 }
38729
38730 _ACEOF
38731 if ac_fn_c_try_compile "$LINENO"
38732 then :
38733
38734       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38735 printf "%s\n" "yes" >&6; }
38736       tst_compi_getifaddrs="yes"
38737
38738 else $as_nop
38739
38740       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38741 printf "%s\n" "no" >&6; }
38742       tst_compi_getifaddrs="no"
38743
38744 fi
38745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38746   fi
38747   #
38748     if test "x$cross_compiling" != "xyes" &&
38749     test "$tst_compi_getifaddrs" = "yes"; then
38750     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
38751 printf %s "checking if getifaddrs seems to work... " >&6; }
38752
38753    case $host_os in
38754      darwin*)
38755       if test "$cross_compiling" = yes
38756 then :
38757   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38758 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38759 as_fn_error $? "cannot run test program while cross compiling
38760 See \`config.log' for more details" "$LINENO" 5; }
38761 else $as_nop
38762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38763 /* end confdefs.h.  */
38764
38765
38766         $curl_includes_stdlib
38767         $curl_includes_ifaddrs
38768
38769 int main (void)
38770 {
38771
38772         struct ifaddrs *ifa = 0;
38773         int error;
38774
38775         error = getifaddrs(&ifa);
38776         if(error || !ifa)
38777           exit(1); /* fail */
38778         else
38779           exit(0);
38780
38781  ;
38782  return 0;
38783 }
38784
38785 _ACEOF
38786 if ac_fn_c_try_run "$LINENO"
38787 then :
38788   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38789 printf "%s\n" "yes" >&6; }
38790       tst_works_getifaddrs="yes"
38791
38792 else $as_nop
38793   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38794 printf "%s\n" "no" >&6; }
38795       tst_works_getifaddrs="no"
38796
38797 fi
38798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38799   conftest.$ac_objext conftest.beam conftest.$ac_ext
38800 fi
38801
38802      ;;
38803      *)
38804       old=$LD_LIBRARY_PATH
38805       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38806       export LD_LIBRARY_PATH
38807       if test "$cross_compiling" = yes
38808 then :
38809   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38810 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38811 as_fn_error $? "cannot run test program while cross compiling
38812 See \`config.log' for more details" "$LINENO" 5; }
38813 else $as_nop
38814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38815 /* end confdefs.h.  */
38816
38817
38818         $curl_includes_stdlib
38819         $curl_includes_ifaddrs
38820
38821 int main (void)
38822 {
38823
38824         struct ifaddrs *ifa = 0;
38825         int error;
38826
38827         error = getifaddrs(&ifa);
38828         if(error || !ifa)
38829           exit(1); /* fail */
38830         else
38831           exit(0);
38832
38833  ;
38834  return 0;
38835 }
38836
38837 _ACEOF
38838 if ac_fn_c_try_run "$LINENO"
38839 then :
38840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38841 printf "%s\n" "yes" >&6; }
38842       tst_works_getifaddrs="yes"
38843
38844 else $as_nop
38845   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38846 printf "%s\n" "no" >&6; }
38847       tst_works_getifaddrs="no"
38848
38849 fi
38850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38851   conftest.$ac_objext conftest.beam conftest.$ac_ext
38852 fi
38853
38854       LD_LIBRARY_PATH=$old # restore
38855      ;;
38856    esac
38857
38858   fi
38859   #
38860   if test "$tst_compi_getifaddrs" = "yes" &&
38861     test "$tst_works_getifaddrs" != "no"; then
38862     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
38863 printf %s "checking if getifaddrs usage allowed... " >&6; }
38864     if test "x$curl_disallow_getifaddrs" != "xyes"; then
38865       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38866 printf "%s\n" "yes" >&6; }
38867       tst_allow_getifaddrs="yes"
38868     else
38869       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38870 printf "%s\n" "no" >&6; }
38871       tst_allow_getifaddrs="no"
38872     fi
38873   fi
38874   #
38875   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
38876 printf %s "checking if getifaddrs might be used... " >&6; }
38877   if test "$tst_links_getifaddrs" = "yes" &&
38878      test "$tst_proto_getifaddrs" = "yes" &&
38879      test "$tst_compi_getifaddrs" = "yes" &&
38880      test "$tst_allow_getifaddrs" = "yes" &&
38881      test "$tst_works_getifaddrs" != "no"; then
38882     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38883 printf "%s\n" "yes" >&6; }
38884
38885 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
38886
38887     curl_cv_func_getifaddrs="yes"
38888   else
38889     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38890 printf "%s\n" "no" >&6; }
38891     curl_cv_func_getifaddrs="no"
38892   fi
38893
38894
38895 curl_includes_time="\
38896 /* includes start */
38897 #ifdef HAVE_SYS_TYPES_H
38898 #  include <sys/types.h>
38899 #endif
38900 #ifdef HAVE_SYS_TIME_H
38901 #  include <sys/time.h>
38902 #endif
38903 #include <time.h>
38904 /* includes end */"
38905   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time
38906 "
38907 if test "x$ac_cv_header_sys_types_h" = xyes
38908 then :
38909   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38910
38911 fi
38912 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time
38913 "
38914 if test "x$ac_cv_header_sys_time_h" = xyes
38915 then :
38916   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
38917
38918 fi
38919
38920
38921
38922       #
38923   tst_links_gmtime_r="unknown"
38924   tst_proto_gmtime_r="unknown"
38925   tst_compi_gmtime_r="unknown"
38926   tst_works_gmtime_r="unknown"
38927   tst_allow_gmtime_r="unknown"
38928   #
38929   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
38930 printf %s "checking if gmtime_r can be linked... " >&6; }
38931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38932 /* end confdefs.h.  */
38933
38934
38935 #define gmtime_r innocuous_gmtime_r
38936 #ifdef __STDC__
38937 # include <limits.h>
38938 #else
38939 # include <assert.h>
38940 #endif
38941 #undef gmtime_r
38942 #ifdef __cplusplus
38943 extern "C"
38944 #endif
38945 char gmtime_r ();
38946 #if defined __stub_gmtime_r || defined __stub___gmtime_r
38947 choke me
38948 #endif
38949
38950 int main (void)
38951 {
38952 return gmtime_r ();
38953  ;
38954  return 0;
38955 }
38956
38957 _ACEOF
38958 if ac_fn_c_try_link "$LINENO"
38959 then :
38960
38961     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38962 printf "%s\n" "yes" >&6; }
38963     tst_links_gmtime_r="yes"
38964
38965 else $as_nop
38966
38967     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38968 printf "%s\n" "no" >&6; }
38969     tst_links_gmtime_r="no"
38970
38971 fi
38972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38973     conftest$ac_exeext conftest.$ac_ext
38974   #
38975   if test "$tst_links_gmtime_r" = "yes"; then
38976     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
38977 printf %s "checking if gmtime_r is prototyped... " >&6; }
38978     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38979 /* end confdefs.h.  */
38980
38981       $curl_includes_time
38982
38983 _ACEOF
38984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38985   $EGREP "gmtime_r" >/dev/null 2>&1
38986 then :
38987
38988       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38989 printf "%s\n" "yes" >&6; }
38990       tst_proto_gmtime_r="yes"
38991
38992 else $as_nop
38993
38994       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38995 printf "%s\n" "no" >&6; }
38996       tst_proto_gmtime_r="no"
38997
38998 fi
38999 rm -rf conftest*
39000
39001   fi
39002   #
39003   if test "$tst_proto_gmtime_r" = "yes"; then
39004     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
39005 printf %s "checking if gmtime_r is compilable... " >&6; }
39006     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39007 /* end confdefs.h.  */
39008
39009
39010         $curl_includes_time
39011
39012 int main (void)
39013 {
39014
39015         if(0 != gmtime_r(0, 0))
39016           return 1;
39017
39018  ;
39019  return 0;
39020 }
39021
39022 _ACEOF
39023 if ac_fn_c_try_compile "$LINENO"
39024 then :
39025
39026       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39027 printf "%s\n" "yes" >&6; }
39028       tst_compi_gmtime_r="yes"
39029
39030 else $as_nop
39031
39032       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39033 printf "%s\n" "no" >&6; }
39034       tst_compi_gmtime_r="no"
39035
39036 fi
39037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39038   fi
39039   #
39040     if test "x$cross_compiling" != "xyes" &&
39041     test "$tst_compi_gmtime_r" = "yes"; then
39042     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
39043 printf %s "checking if gmtime_r seems to work... " >&6; }
39044
39045    case $host_os in
39046      darwin*)
39047       if test "$cross_compiling" = yes
39048 then :
39049   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39050 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39051 as_fn_error $? "cannot run test program while cross compiling
39052 See \`config.log' for more details" "$LINENO" 5; }
39053 else $as_nop
39054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39055 /* end confdefs.h.  */
39056
39057
39058         $curl_includes_stdlib
39059         $curl_includes_time
39060
39061 int main (void)
39062 {
39063
39064         time_t local = 1170352587;
39065         struct tm *gmt = 0;
39066         struct tm result;
39067         gmt = gmtime_r(&local, &result);
39068         if(gmt)
39069           exit(0);
39070         else
39071           exit(1);
39072
39073  ;
39074  return 0;
39075 }
39076
39077 _ACEOF
39078 if ac_fn_c_try_run "$LINENO"
39079 then :
39080   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39081 printf "%s\n" "yes" >&6; }
39082       tst_works_gmtime_r="yes"
39083
39084 else $as_nop
39085   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39086 printf "%s\n" "no" >&6; }
39087       tst_works_gmtime_r="no"
39088
39089 fi
39090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39091   conftest.$ac_objext conftest.beam conftest.$ac_ext
39092 fi
39093
39094      ;;
39095      *)
39096       old=$LD_LIBRARY_PATH
39097       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39098       export LD_LIBRARY_PATH
39099       if test "$cross_compiling" = yes
39100 then :
39101   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39102 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39103 as_fn_error $? "cannot run test program while cross compiling
39104 See \`config.log' for more details" "$LINENO" 5; }
39105 else $as_nop
39106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39107 /* end confdefs.h.  */
39108
39109
39110         $curl_includes_stdlib
39111         $curl_includes_time
39112
39113 int main (void)
39114 {
39115
39116         time_t local = 1170352587;
39117         struct tm *gmt = 0;
39118         struct tm result;
39119         gmt = gmtime_r(&local, &result);
39120         if(gmt)
39121           exit(0);
39122         else
39123           exit(1);
39124
39125  ;
39126  return 0;
39127 }
39128
39129 _ACEOF
39130 if ac_fn_c_try_run "$LINENO"
39131 then :
39132   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39133 printf "%s\n" "yes" >&6; }
39134       tst_works_gmtime_r="yes"
39135
39136 else $as_nop
39137   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39138 printf "%s\n" "no" >&6; }
39139       tst_works_gmtime_r="no"
39140
39141 fi
39142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39143   conftest.$ac_objext conftest.beam conftest.$ac_ext
39144 fi
39145
39146       LD_LIBRARY_PATH=$old # restore
39147      ;;
39148    esac
39149
39150   fi
39151   #
39152   if test "$tst_compi_gmtime_r" = "yes" &&
39153     test "$tst_works_gmtime_r" != "no"; then
39154     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
39155 printf %s "checking if gmtime_r usage allowed... " >&6; }
39156     if test "x$curl_disallow_gmtime_r" != "xyes"; then
39157       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39158 printf "%s\n" "yes" >&6; }
39159       tst_allow_gmtime_r="yes"
39160     else
39161       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39162 printf "%s\n" "no" >&6; }
39163       tst_allow_gmtime_r="no"
39164     fi
39165   fi
39166   #
39167   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
39168 printf %s "checking if gmtime_r might be used... " >&6; }
39169   if test "$tst_links_gmtime_r" = "yes" &&
39170      test "$tst_proto_gmtime_r" = "yes" &&
39171      test "$tst_compi_gmtime_r" = "yes" &&
39172      test "$tst_allow_gmtime_r" = "yes" &&
39173      test "$tst_works_gmtime_r" != "no"; then
39174     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39175 printf "%s\n" "yes" >&6; }
39176
39177 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
39178
39179     curl_cv_func_gmtime_r="yes"
39180   else
39181     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39182 printf "%s\n" "no" >&6; }
39183     curl_cv_func_gmtime_r="no"
39184   fi
39185
39186
39187 curl_includes_arpa_inet="\
39188 /* includes start */
39189 #ifdef HAVE_SYS_TYPES_H
39190 #  include <sys/types.h>
39191 #endif
39192 #ifdef HAVE_SYS_SOCKET_H
39193 #  include <sys/socket.h>
39194 #endif
39195 #ifdef HAVE_NETINET_IN_H
39196 #  include <netinet/in.h>
39197 #endif
39198 #ifdef HAVE_ARPA_INET_H
39199 #  include <arpa/inet.h>
39200 #endif
39201 #ifdef HAVE_WINSOCK2_H
39202 #include <winsock2.h>
39203 #include <ws2tcpip.h>
39204 #endif
39205 /* includes end */"
39206   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet
39207 "
39208 if test "x$ac_cv_header_sys_types_h" = xyes
39209 then :
39210   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39211
39212 fi
39213 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet
39214 "
39215 if test "x$ac_cv_header_sys_socket_h" = xyes
39216 then :
39217   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39218
39219 fi
39220 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet
39221 "
39222 if test "x$ac_cv_header_netinet_in_h" = xyes
39223 then :
39224   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
39225
39226 fi
39227 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet
39228 "
39229 if test "x$ac_cv_header_arpa_inet_h" = xyes
39230 then :
39231   printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
39232
39233 fi
39234
39235
39236
39237         #
39238   tst_links_inet_ntop="unknown"
39239   tst_proto_inet_ntop="unknown"
39240   tst_compi_inet_ntop="unknown"
39241   tst_works_inet_ntop="unknown"
39242   tst_allow_inet_ntop="unknown"
39243   #
39244   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
39245 printf %s "checking if inet_ntop can be linked... " >&6; }
39246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39247 /* end confdefs.h.  */
39248
39249
39250 #define inet_ntop innocuous_inet_ntop
39251 #ifdef __STDC__
39252 # include <limits.h>
39253 #else
39254 # include <assert.h>
39255 #endif
39256 #undef inet_ntop
39257 #ifdef __cplusplus
39258 extern "C"
39259 #endif
39260 char inet_ntop ();
39261 #if defined __stub_inet_ntop || defined __stub___inet_ntop
39262 choke me
39263 #endif
39264
39265 int main (void)
39266 {
39267 return inet_ntop ();
39268  ;
39269  return 0;
39270 }
39271
39272 _ACEOF
39273 if ac_fn_c_try_link "$LINENO"
39274 then :
39275
39276     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39277 printf "%s\n" "yes" >&6; }
39278     tst_links_inet_ntop="yes"
39279
39280 else $as_nop
39281
39282     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39283 printf "%s\n" "no" >&6; }
39284     tst_links_inet_ntop="no"
39285
39286 fi
39287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39288     conftest$ac_exeext conftest.$ac_ext
39289   #
39290   if test "$tst_links_inet_ntop" = "yes"; then
39291     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
39292 printf %s "checking if inet_ntop is prototyped... " >&6; }
39293     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39294 /* end confdefs.h.  */
39295
39296       $curl_includes_arpa_inet
39297
39298 _ACEOF
39299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39300   $EGREP "inet_ntop" >/dev/null 2>&1
39301 then :
39302
39303       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39304 printf "%s\n" "yes" >&6; }
39305       tst_proto_inet_ntop="yes"
39306
39307 else $as_nop
39308
39309       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39310 printf "%s\n" "no" >&6; }
39311       tst_proto_inet_ntop="no"
39312
39313 fi
39314 rm -rf conftest*
39315
39316   fi
39317   #
39318   if test "$tst_proto_inet_ntop" = "yes"; then
39319     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
39320 printf %s "checking if inet_ntop is compilable... " >&6; }
39321     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39322 /* end confdefs.h.  */
39323
39324
39325         $curl_includes_arpa_inet
39326
39327 int main (void)
39328 {
39329
39330         if(0 != inet_ntop(0, 0, 0, 0))
39331           return 1;
39332
39333  ;
39334  return 0;
39335 }
39336
39337 _ACEOF
39338 if ac_fn_c_try_compile "$LINENO"
39339 then :
39340
39341       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39342 printf "%s\n" "yes" >&6; }
39343       tst_compi_inet_ntop="yes"
39344
39345 else $as_nop
39346
39347       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39348 printf "%s\n" "no" >&6; }
39349       tst_compi_inet_ntop="no"
39350
39351 fi
39352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39353   fi
39354   #
39355     if test "x$cross_compiling" != "xyes" &&
39356     test "$tst_compi_inet_ntop" = "yes"; then
39357     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
39358 printf %s "checking if inet_ntop seems to work... " >&6; }
39359
39360    case $host_os in
39361      darwin*)
39362       if test "$cross_compiling" = yes
39363 then :
39364   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39365 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39366 as_fn_error $? "cannot run test program while cross compiling
39367 See \`config.log' for more details" "$LINENO" 5; }
39368 else $as_nop
39369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39370 /* end confdefs.h.  */
39371
39372
39373         $curl_includes_stdlib
39374         $curl_includes_arpa_inet
39375         $curl_includes_string
39376
39377 int main (void)
39378 {
39379
39380         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39381         char ipv4res[sizeof "255.255.255.255"];
39382         unsigned char ipv6a[26];
39383         unsigned char ipv4a[5];
39384         char *ipv6ptr = 0;
39385         char *ipv4ptr = 0;
39386         /* - */
39387         ipv4res[0] = '\0';
39388         ipv4a[0] = 0xc0;
39389         ipv4a[1] = 0xa8;
39390         ipv4a[2] = 0x64;
39391         ipv4a[3] = 0x01;
39392         ipv4a[4] = 0x01;
39393         /* - */
39394         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39395         if(!ipv4ptr)
39396           exit(1); /* fail */
39397         if(ipv4ptr != ipv4res)
39398           exit(1); /* fail */
39399         if(!ipv4ptr[0])
39400           exit(1); /* fail */
39401         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39402           exit(1); /* fail */
39403         /* - */
39404         ipv6res[0] = '\0';
39405         memset(ipv6a, 0, sizeof(ipv6a));
39406         ipv6a[0] = 0xfe;
39407         ipv6a[1] = 0x80;
39408         ipv6a[8] = 0x02;
39409         ipv6a[9] = 0x14;
39410         ipv6a[10] = 0x4f;
39411         ipv6a[11] = 0xff;
39412         ipv6a[12] = 0xfe;
39413         ipv6a[13] = 0x0b;
39414         ipv6a[14] = 0x76;
39415         ipv6a[15] = 0xc8;
39416         ipv6a[25] = 0x01;
39417         /* - */
39418         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39419         if(!ipv6ptr)
39420           exit(1); /* fail */
39421         if(ipv6ptr != ipv6res)
39422           exit(1); /* fail */
39423         if(!ipv6ptr[0])
39424           exit(1); /* fail */
39425         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39426           exit(1); /* fail */
39427         /* - */
39428         exit(0);
39429
39430  ;
39431  return 0;
39432 }
39433
39434 _ACEOF
39435 if ac_fn_c_try_run "$LINENO"
39436 then :
39437   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39438 printf "%s\n" "yes" >&6; }
39439       tst_works_inet_ntop="yes"
39440
39441 else $as_nop
39442   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39443 printf "%s\n" "no" >&6; }
39444       tst_works_inet_ntop="no"
39445
39446 fi
39447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39448   conftest.$ac_objext conftest.beam conftest.$ac_ext
39449 fi
39450
39451      ;;
39452      *)
39453       old=$LD_LIBRARY_PATH
39454       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39455       export LD_LIBRARY_PATH
39456       if test "$cross_compiling" = yes
39457 then :
39458   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39459 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39460 as_fn_error $? "cannot run test program while cross compiling
39461 See \`config.log' for more details" "$LINENO" 5; }
39462 else $as_nop
39463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39464 /* end confdefs.h.  */
39465
39466
39467         $curl_includes_stdlib
39468         $curl_includes_arpa_inet
39469         $curl_includes_string
39470
39471 int main (void)
39472 {
39473
39474         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39475         char ipv4res[sizeof "255.255.255.255"];
39476         unsigned char ipv6a[26];
39477         unsigned char ipv4a[5];
39478         char *ipv6ptr = 0;
39479         char *ipv4ptr = 0;
39480         /* - */
39481         ipv4res[0] = '\0';
39482         ipv4a[0] = 0xc0;
39483         ipv4a[1] = 0xa8;
39484         ipv4a[2] = 0x64;
39485         ipv4a[3] = 0x01;
39486         ipv4a[4] = 0x01;
39487         /* - */
39488         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39489         if(!ipv4ptr)
39490           exit(1); /* fail */
39491         if(ipv4ptr != ipv4res)
39492           exit(1); /* fail */
39493         if(!ipv4ptr[0])
39494           exit(1); /* fail */
39495         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39496           exit(1); /* fail */
39497         /* - */
39498         ipv6res[0] = '\0';
39499         memset(ipv6a, 0, sizeof(ipv6a));
39500         ipv6a[0] = 0xfe;
39501         ipv6a[1] = 0x80;
39502         ipv6a[8] = 0x02;
39503         ipv6a[9] = 0x14;
39504         ipv6a[10] = 0x4f;
39505         ipv6a[11] = 0xff;
39506         ipv6a[12] = 0xfe;
39507         ipv6a[13] = 0x0b;
39508         ipv6a[14] = 0x76;
39509         ipv6a[15] = 0xc8;
39510         ipv6a[25] = 0x01;
39511         /* - */
39512         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39513         if(!ipv6ptr)
39514           exit(1); /* fail */
39515         if(ipv6ptr != ipv6res)
39516           exit(1); /* fail */
39517         if(!ipv6ptr[0])
39518           exit(1); /* fail */
39519         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39520           exit(1); /* fail */
39521         /* - */
39522         exit(0);
39523
39524  ;
39525  return 0;
39526 }
39527
39528 _ACEOF
39529 if ac_fn_c_try_run "$LINENO"
39530 then :
39531   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39532 printf "%s\n" "yes" >&6; }
39533       tst_works_inet_ntop="yes"
39534
39535 else $as_nop
39536   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39537 printf "%s\n" "no" >&6; }
39538       tst_works_inet_ntop="no"
39539
39540 fi
39541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39542   conftest.$ac_objext conftest.beam conftest.$ac_ext
39543 fi
39544
39545       LD_LIBRARY_PATH=$old # restore
39546      ;;
39547    esac
39548
39549   fi
39550   #
39551   if test "$tst_compi_inet_ntop" = "yes" &&
39552     test "$tst_works_inet_ntop" != "no"; then
39553     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
39554 printf %s "checking if inet_ntop usage allowed... " >&6; }
39555     if test "x$curl_disallow_inet_ntop" != "xyes"; then
39556       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39557 printf "%s\n" "yes" >&6; }
39558       tst_allow_inet_ntop="yes"
39559     else
39560       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39561 printf "%s\n" "no" >&6; }
39562       tst_allow_inet_ntop="no"
39563     fi
39564   fi
39565   #
39566   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
39567 printf %s "checking if inet_ntop might be used... " >&6; }
39568   if test "$tst_links_inet_ntop" = "yes" &&
39569      test "$tst_proto_inet_ntop" = "yes" &&
39570      test "$tst_compi_inet_ntop" = "yes" &&
39571      test "$tst_allow_inet_ntop" = "yes" &&
39572      test "$tst_works_inet_ntop" != "no"; then
39573     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39574 printf "%s\n" "yes" >&6; }
39575
39576 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
39577
39578     curl_cv_func_inet_ntop="yes"
39579   else
39580     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39581 printf "%s\n" "no" >&6; }
39582     curl_cv_func_inet_ntop="no"
39583   fi
39584
39585
39586         #
39587   tst_links_inet_pton="unknown"
39588   tst_proto_inet_pton="unknown"
39589   tst_compi_inet_pton="unknown"
39590   tst_works_inet_pton="unknown"
39591   tst_allow_inet_pton="unknown"
39592   #
39593   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
39594 printf %s "checking if inet_pton can be linked... " >&6; }
39595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39596 /* end confdefs.h.  */
39597
39598
39599 #define inet_pton innocuous_inet_pton
39600 #ifdef __STDC__
39601 # include <limits.h>
39602 #else
39603 # include <assert.h>
39604 #endif
39605 #undef inet_pton
39606 #ifdef __cplusplus
39607 extern "C"
39608 #endif
39609 char inet_pton ();
39610 #if defined __stub_inet_pton || defined __stub___inet_pton
39611 choke me
39612 #endif
39613
39614 int main (void)
39615 {
39616 return inet_pton ();
39617  ;
39618  return 0;
39619 }
39620
39621 _ACEOF
39622 if ac_fn_c_try_link "$LINENO"
39623 then :
39624
39625     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39626 printf "%s\n" "yes" >&6; }
39627     tst_links_inet_pton="yes"
39628
39629 else $as_nop
39630
39631     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39632 printf "%s\n" "no" >&6; }
39633     tst_links_inet_pton="no"
39634
39635 fi
39636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39637     conftest$ac_exeext conftest.$ac_ext
39638   #
39639   if test "$tst_links_inet_pton" = "yes"; then
39640     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
39641 printf %s "checking if inet_pton is prototyped... " >&6; }
39642     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39643 /* end confdefs.h.  */
39644
39645       $curl_includes_arpa_inet
39646
39647 _ACEOF
39648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39649   $EGREP "inet_pton" >/dev/null 2>&1
39650 then :
39651
39652       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39653 printf "%s\n" "yes" >&6; }
39654       tst_proto_inet_pton="yes"
39655
39656 else $as_nop
39657
39658       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39659 printf "%s\n" "no" >&6; }
39660       tst_proto_inet_pton="no"
39661
39662 fi
39663 rm -rf conftest*
39664
39665   fi
39666   #
39667   if test "$tst_proto_inet_pton" = "yes"; then
39668     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
39669 printf %s "checking if inet_pton is compilable... " >&6; }
39670     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39671 /* end confdefs.h.  */
39672
39673
39674         $curl_includes_arpa_inet
39675
39676 int main (void)
39677 {
39678
39679         if(0 != inet_pton(0, 0, 0))
39680           return 1;
39681
39682  ;
39683  return 0;
39684 }
39685
39686 _ACEOF
39687 if ac_fn_c_try_compile "$LINENO"
39688 then :
39689
39690       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39691 printf "%s\n" "yes" >&6; }
39692       tst_compi_inet_pton="yes"
39693
39694 else $as_nop
39695
39696       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39697 printf "%s\n" "no" >&6; }
39698       tst_compi_inet_pton="no"
39699
39700 fi
39701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39702   fi
39703   #
39704     if test "x$cross_compiling" != "xyes" &&
39705     test "$tst_compi_inet_pton" = "yes"; then
39706     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
39707 printf %s "checking if inet_pton seems to work... " >&6; }
39708
39709    case $host_os in
39710      darwin*)
39711       if test "$cross_compiling" = yes
39712 then :
39713   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39714 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39715 as_fn_error $? "cannot run test program while cross compiling
39716 See \`config.log' for more details" "$LINENO" 5; }
39717 else $as_nop
39718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39719 /* end confdefs.h.  */
39720
39721
39722         $curl_includes_stdlib
39723         $curl_includes_arpa_inet
39724         $curl_includes_string
39725
39726 int main (void)
39727 {
39728
39729         unsigned char ipv6a[16+1];
39730         unsigned char ipv4a[4+1];
39731         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39732         const char *ipv4src = "192.168.100.1";
39733         /* - */
39734         memset(ipv4a, 1, sizeof(ipv4a));
39735         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39736           exit(1); /* fail */
39737         /* - */
39738         if( (ipv4a[0] != 0xc0) ||
39739             (ipv4a[1] != 0xa8) ||
39740             (ipv4a[2] != 0x64) ||
39741             (ipv4a[3] != 0x01) ||
39742             (ipv4a[4] != 0x01) )
39743           exit(1); /* fail */
39744         /* - */
39745         memset(ipv6a, 1, sizeof(ipv6a));
39746         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39747           exit(1); /* fail */
39748         /* - */
39749         if( (ipv6a[0]  != 0xfe) ||
39750             (ipv6a[1]  != 0x80) ||
39751             (ipv6a[8]  != 0x02) ||
39752             (ipv6a[9]  != 0x14) ||
39753             (ipv6a[10] != 0x4f) ||
39754             (ipv6a[11] != 0xff) ||
39755             (ipv6a[12] != 0xfe) ||
39756             (ipv6a[13] != 0x0b) ||
39757             (ipv6a[14] != 0x76) ||
39758             (ipv6a[15] != 0xc8) ||
39759             (ipv6a[16] != 0x01) )
39760           exit(1); /* fail */
39761         /* - */
39762         if( (ipv6a[2]  != 0x0) ||
39763             (ipv6a[3]  != 0x0) ||
39764             (ipv6a[4]  != 0x0) ||
39765             (ipv6a[5]  != 0x0) ||
39766             (ipv6a[6]  != 0x0) ||
39767             (ipv6a[7]  != 0x0) )
39768           exit(1); /* fail */
39769         /* - */
39770         exit(0);
39771
39772  ;
39773  return 0;
39774 }
39775
39776 _ACEOF
39777 if ac_fn_c_try_run "$LINENO"
39778 then :
39779   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39780 printf "%s\n" "yes" >&6; }
39781       tst_works_inet_pton="yes"
39782
39783 else $as_nop
39784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39785 printf "%s\n" "no" >&6; }
39786       tst_works_inet_pton="no"
39787
39788 fi
39789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39790   conftest.$ac_objext conftest.beam conftest.$ac_ext
39791 fi
39792
39793      ;;
39794      *)
39795       old=$LD_LIBRARY_PATH
39796       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39797       export LD_LIBRARY_PATH
39798       if test "$cross_compiling" = yes
39799 then :
39800   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39801 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39802 as_fn_error $? "cannot run test program while cross compiling
39803 See \`config.log' for more details" "$LINENO" 5; }
39804 else $as_nop
39805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39806 /* end confdefs.h.  */
39807
39808
39809         $curl_includes_stdlib
39810         $curl_includes_arpa_inet
39811         $curl_includes_string
39812
39813 int main (void)
39814 {
39815
39816         unsigned char ipv6a[16+1];
39817         unsigned char ipv4a[4+1];
39818         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39819         const char *ipv4src = "192.168.100.1";
39820         /* - */
39821         memset(ipv4a, 1, sizeof(ipv4a));
39822         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39823           exit(1); /* fail */
39824         /* - */
39825         if( (ipv4a[0] != 0xc0) ||
39826             (ipv4a[1] != 0xa8) ||
39827             (ipv4a[2] != 0x64) ||
39828             (ipv4a[3] != 0x01) ||
39829             (ipv4a[4] != 0x01) )
39830           exit(1); /* fail */
39831         /* - */
39832         memset(ipv6a, 1, sizeof(ipv6a));
39833         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39834           exit(1); /* fail */
39835         /* - */
39836         if( (ipv6a[0]  != 0xfe) ||
39837             (ipv6a[1]  != 0x80) ||
39838             (ipv6a[8]  != 0x02) ||
39839             (ipv6a[9]  != 0x14) ||
39840             (ipv6a[10] != 0x4f) ||
39841             (ipv6a[11] != 0xff) ||
39842             (ipv6a[12] != 0xfe) ||
39843             (ipv6a[13] != 0x0b) ||
39844             (ipv6a[14] != 0x76) ||
39845             (ipv6a[15] != 0xc8) ||
39846             (ipv6a[16] != 0x01) )
39847           exit(1); /* fail */
39848         /* - */
39849         if( (ipv6a[2]  != 0x0) ||
39850             (ipv6a[3]  != 0x0) ||
39851             (ipv6a[4]  != 0x0) ||
39852             (ipv6a[5]  != 0x0) ||
39853             (ipv6a[6]  != 0x0) ||
39854             (ipv6a[7]  != 0x0) )
39855           exit(1); /* fail */
39856         /* - */
39857         exit(0);
39858
39859  ;
39860  return 0;
39861 }
39862
39863 _ACEOF
39864 if ac_fn_c_try_run "$LINENO"
39865 then :
39866   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39867 printf "%s\n" "yes" >&6; }
39868       tst_works_inet_pton="yes"
39869
39870 else $as_nop
39871   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39872 printf "%s\n" "no" >&6; }
39873       tst_works_inet_pton="no"
39874
39875 fi
39876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39877   conftest.$ac_objext conftest.beam conftest.$ac_ext
39878 fi
39879
39880       LD_LIBRARY_PATH=$old # restore
39881      ;;
39882    esac
39883
39884   fi
39885   #
39886   if test "$tst_compi_inet_pton" = "yes" &&
39887     test "$tst_works_inet_pton" != "no"; then
39888     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
39889 printf %s "checking if inet_pton usage allowed... " >&6; }
39890     if test "x$curl_disallow_inet_pton" != "xyes"; then
39891       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39892 printf "%s\n" "yes" >&6; }
39893       tst_allow_inet_pton="yes"
39894     else
39895       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39896 printf "%s\n" "no" >&6; }
39897       tst_allow_inet_pton="no"
39898     fi
39899   fi
39900   #
39901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
39902 printf %s "checking if inet_pton might be used... " >&6; }
39903   if test "$tst_links_inet_pton" = "yes" &&
39904      test "$tst_proto_inet_pton" = "yes" &&
39905      test "$tst_compi_inet_pton" = "yes" &&
39906      test "$tst_allow_inet_pton" = "yes" &&
39907      test "$tst_works_inet_pton" != "no"; then
39908     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39909 printf "%s\n" "yes" >&6; }
39910
39911 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
39912
39913     curl_cv_func_inet_pton="yes"
39914   else
39915     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39916 printf "%s\n" "no" >&6; }
39917     curl_cv_func_inet_pton="no"
39918   fi
39919
39920
39921     #
39922   tst_links_ioctlsocket="unknown"
39923   tst_proto_ioctlsocket="unknown"
39924   tst_compi_ioctlsocket="unknown"
39925   tst_allow_ioctlsocket="unknown"
39926   #
39927   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
39928 printf %s "checking if ioctlsocket can be linked... " >&6; }
39929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39930 /* end confdefs.h.  */
39931
39932
39933       $curl_includes_winsock2
39934
39935 int main (void)
39936 {
39937
39938       if(0 != ioctlsocket(0, 0, 0))
39939         return 1;
39940
39941  ;
39942  return 0;
39943 }
39944
39945 _ACEOF
39946 if ac_fn_c_try_link "$LINENO"
39947 then :
39948
39949     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39950 printf "%s\n" "yes" >&6; }
39951     tst_links_ioctlsocket="yes"
39952
39953 else $as_nop
39954
39955     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39956 printf "%s\n" "no" >&6; }
39957     tst_links_ioctlsocket="no"
39958
39959 fi
39960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39961     conftest$ac_exeext conftest.$ac_ext
39962   #
39963   if test "$tst_links_ioctlsocket" = "yes"; then
39964     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
39965 printf %s "checking if ioctlsocket is prototyped... " >&6; }
39966     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39967 /* end confdefs.h.  */
39968
39969       $curl_includes_winsock2
39970
39971 _ACEOF
39972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39973   $EGREP "ioctlsocket" >/dev/null 2>&1
39974 then :
39975
39976       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39977 printf "%s\n" "yes" >&6; }
39978       tst_proto_ioctlsocket="yes"
39979
39980 else $as_nop
39981
39982       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39983 printf "%s\n" "no" >&6; }
39984       tst_proto_ioctlsocket="no"
39985
39986 fi
39987 rm -rf conftest*
39988
39989   fi
39990   #
39991   if test "$tst_proto_ioctlsocket" = "yes"; then
39992     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
39993 printf %s "checking if ioctlsocket is compilable... " >&6; }
39994     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39995 /* end confdefs.h.  */
39996
39997
39998         $curl_includes_winsock2
39999
40000 int main (void)
40001 {
40002
40003         if(0 != ioctlsocket(0, 0, 0))
40004           return 1;
40005
40006  ;
40007  return 0;
40008 }
40009
40010 _ACEOF
40011 if ac_fn_c_try_compile "$LINENO"
40012 then :
40013
40014       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40015 printf "%s\n" "yes" >&6; }
40016       tst_compi_ioctlsocket="yes"
40017
40018 else $as_nop
40019
40020       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40021 printf "%s\n" "no" >&6; }
40022       tst_compi_ioctlsocket="no"
40023
40024 fi
40025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40026   fi
40027   #
40028   if test "$tst_compi_ioctlsocket" = "yes"; then
40029     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
40030 printf %s "checking if ioctlsocket usage allowed... " >&6; }
40031     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
40032       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40033 printf "%s\n" "yes" >&6; }
40034       tst_allow_ioctlsocket="yes"
40035     else
40036       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40037 printf "%s\n" "no" >&6; }
40038       tst_allow_ioctlsocket="no"
40039     fi
40040   fi
40041   #
40042   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
40043 printf %s "checking if ioctlsocket might be used... " >&6; }
40044   if test "$tst_links_ioctlsocket" = "yes" &&
40045      test "$tst_proto_ioctlsocket" = "yes" &&
40046      test "$tst_compi_ioctlsocket" = "yes" &&
40047      test "$tst_allow_ioctlsocket" = "yes"; then
40048     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40049 printf "%s\n" "yes" >&6; }
40050
40051 printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
40052
40053     curl_cv_func_ioctlsocket="yes"
40054
40055   #
40056   tst_compi_ioctlsocket_fionbio="unknown"
40057   tst_allow_ioctlsocket_fionbio="unknown"
40058   #
40059   if test "$curl_cv_func_ioctlsocket" = "yes"; then
40060     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
40061 printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
40062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40063 /* end confdefs.h.  */
40064
40065
40066         $curl_includes_winsock2
40067
40068 int main (void)
40069 {
40070
40071         int flags = 0;
40072         if(0 != ioctlsocket(0, FIONBIO, &flags))
40073           return 1;
40074
40075  ;
40076  return 0;
40077 }
40078
40079 _ACEOF
40080 if ac_fn_c_try_compile "$LINENO"
40081 then :
40082
40083       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40084 printf "%s\n" "yes" >&6; }
40085       tst_compi_ioctlsocket_fionbio="yes"
40086
40087 else $as_nop
40088
40089       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40090 printf "%s\n" "no" >&6; }
40091       tst_compi_ioctlsocket_fionbio="no"
40092
40093 fi
40094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40095   fi
40096   #
40097   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
40098     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
40099 printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
40100     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
40101       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40102 printf "%s\n" "yes" >&6; }
40103       tst_allow_ioctlsocket_fionbio="yes"
40104     else
40105       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40106 printf "%s\n" "no" >&6; }
40107       tst_allow_ioctlsocket_fionbio="no"
40108     fi
40109   fi
40110   #
40111   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
40112 printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
40113   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
40114      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
40115     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40116 printf "%s\n" "yes" >&6; }
40117
40118 printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
40119
40120     curl_cv_func_ioctlsocket_fionbio="yes"
40121   else
40122     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40123 printf "%s\n" "no" >&6; }
40124     curl_cv_func_ioctlsocket_fionbio="no"
40125   fi
40126
40127   else
40128     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40129 printf "%s\n" "no" >&6; }
40130     curl_cv_func_ioctlsocket="no"
40131   fi
40132
40133
40134     #
40135   tst_links_ioctlsocket_camel="unknown"
40136   tst_proto_ioctlsocket_camel="unknown"
40137   tst_compi_ioctlsocket_camel="unknown"
40138   tst_allow_ioctlsocket_camel="unknown"
40139   #
40140   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
40141 printf %s "checking if IoctlSocket can be linked... " >&6; }
40142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40143 /* end confdefs.h.  */
40144
40145
40146       $curl_includes_bsdsocket
40147
40148 int main (void)
40149 {
40150
40151       IoctlSocket(0, 0, 0);
40152
40153  ;
40154  return 0;
40155 }
40156
40157 _ACEOF
40158 if ac_fn_c_try_link "$LINENO"
40159 then :
40160
40161     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40162 printf "%s\n" "yes" >&6; }
40163     tst_links_ioctlsocket_camel="yes"
40164
40165 else $as_nop
40166
40167     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40168 printf "%s\n" "no" >&6; }
40169     tst_links_ioctlsocket_camel="no"
40170
40171 fi
40172 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40173     conftest$ac_exeext conftest.$ac_ext
40174   #
40175   if test "$tst_links_ioctlsocket_camel" = "yes"; then
40176     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
40177 printf %s "checking if IoctlSocket is prototyped... " >&6; }
40178     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40179 /* end confdefs.h.  */
40180
40181       $curl_includes_bsdsocket
40182
40183 _ACEOF
40184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40185   $EGREP "IoctlSocket" >/dev/null 2>&1
40186 then :
40187
40188       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40189 printf "%s\n" "yes" >&6; }
40190       tst_proto_ioctlsocket_camel="yes"
40191
40192 else $as_nop
40193
40194       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40195 printf "%s\n" "no" >&6; }
40196       tst_proto_ioctlsocket_camel="no"
40197
40198 fi
40199 rm -rf conftest*
40200
40201   fi
40202   #
40203   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
40204     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
40205 printf %s "checking if IoctlSocket is compilable... " >&6; }
40206     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40207 /* end confdefs.h.  */
40208
40209
40210         $curl_includes_bsdsocket
40211
40212 int main (void)
40213 {
40214
40215         if(0 != IoctlSocket(0, 0, 0))
40216           return 1;
40217
40218  ;
40219  return 0;
40220 }
40221
40222 _ACEOF
40223 if ac_fn_c_try_compile "$LINENO"
40224 then :
40225
40226       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40227 printf "%s\n" "yes" >&6; }
40228       tst_compi_ioctlsocket_camel="yes"
40229
40230 else $as_nop
40231
40232       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40233 printf "%s\n" "no" >&6; }
40234       tst_compi_ioctlsocket_camel="no"
40235
40236 fi
40237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40238   fi
40239   #
40240   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
40241     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
40242 printf %s "checking if IoctlSocket usage allowed... " >&6; }
40243     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
40244       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40245 printf "%s\n" "yes" >&6; }
40246       tst_allow_ioctlsocket_camel="yes"
40247     else
40248       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40249 printf "%s\n" "no" >&6; }
40250       tst_allow_ioctlsocket_camel="no"
40251     fi
40252   fi
40253   #
40254   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
40255 printf %s "checking if IoctlSocket might be used... " >&6; }
40256   if test "$tst_links_ioctlsocket_camel" = "yes" &&
40257      test "$tst_proto_ioctlsocket_camel" = "yes" &&
40258      test "$tst_compi_ioctlsocket_camel" = "yes" &&
40259      test "$tst_allow_ioctlsocket_camel" = "yes"; then
40260     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40261 printf "%s\n" "yes" >&6; }
40262
40263 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
40264
40265     curl_cv_func_ioctlsocket_camel="yes"
40266
40267     #
40268   tst_compi_ioctlsocket_camel_fionbio="unknown"
40269   tst_allow_ioctlsocket_camel_fionbio="unknown"
40270   #
40271   if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
40272     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
40273 printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
40274     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40275 /* end confdefs.h.  */
40276
40277
40278         $curl_includes_bsdsocket
40279
40280 int main (void)
40281 {
40282
40283         long flags = 0;
40284         if(0 != IoctlSocket(0, FIONBIO, &flags))
40285           return 1;
40286
40287  ;
40288  return 0;
40289 }
40290
40291 _ACEOF
40292 if ac_fn_c_try_compile "$LINENO"
40293 then :
40294
40295       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40296 printf "%s\n" "yes" >&6; }
40297       tst_compi_ioctlsocket_camel_fionbio="yes"
40298
40299 else $as_nop
40300
40301       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40302 printf "%s\n" "no" >&6; }
40303       tst_compi_ioctlsocket_camel_fionbio="no"
40304
40305 fi
40306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40307   fi
40308   #
40309   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
40310     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
40311 printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
40312     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
40313       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40314 printf "%s\n" "yes" >&6; }
40315       tst_allow_ioctlsocket_camel_fionbio="yes"
40316     else
40317       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40318 printf "%s\n" "no" >&6; }
40319       tst_allow_ioctlsocket_camel_fionbio="no"
40320     fi
40321   fi
40322   #
40323   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
40324 printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
40325   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
40326      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
40327     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40328 printf "%s\n" "yes" >&6; }
40329
40330 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
40331
40332     curl_cv_func_ioctlsocket_camel_fionbio="yes"
40333   else
40334     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40335 printf "%s\n" "no" >&6; }
40336     curl_cv_func_ioctlsocket_camel_fionbio="no"
40337   fi
40338
40339   else
40340     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40341 printf "%s\n" "no" >&6; }
40342     curl_cv_func_ioctlsocket_camel="no"
40343   fi
40344
40345
40346     #
40347   tst_links_memrchr="unknown"
40348   tst_macro_memrchr="unknown"
40349   tst_proto_memrchr="unknown"
40350   tst_compi_memrchr="unknown"
40351   tst_allow_memrchr="unknown"
40352   #
40353   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
40354 printf %s "checking if memrchr can be linked... " >&6; }
40355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40356 /* end confdefs.h.  */
40357
40358
40359 #define memrchr innocuous_memrchr
40360 #ifdef __STDC__
40361 # include <limits.h>
40362 #else
40363 # include <assert.h>
40364 #endif
40365 #undef memrchr
40366 #ifdef __cplusplus
40367 extern "C"
40368 #endif
40369 char memrchr ();
40370 #if defined __stub_memrchr || defined __stub___memrchr
40371 choke me
40372 #endif
40373
40374 int main (void)
40375 {
40376 return memrchr ();
40377  ;
40378  return 0;
40379 }
40380
40381 _ACEOF
40382 if ac_fn_c_try_link "$LINENO"
40383 then :
40384
40385     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40386 printf "%s\n" "yes" >&6; }
40387     tst_links_memrchr="yes"
40388
40389 else $as_nop
40390
40391     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40392 printf "%s\n" "no" >&6; }
40393     tst_links_memrchr="no"
40394
40395 fi
40396 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40397     conftest$ac_exeext conftest.$ac_ext
40398   #
40399   if test "$tst_links_memrchr" = "no"; then
40400     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
40401 printf %s "checking if memrchr seems a macro... " >&6; }
40402     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40403 /* end confdefs.h.  */
40404
40405
40406         $curl_includes_string
40407
40408 int main (void)
40409 {
40410
40411         if(0 != memrchr(0, 0, 0))
40412           return 1;
40413
40414  ;
40415  return 0;
40416 }
40417
40418 _ACEOF
40419 if ac_fn_c_try_link "$LINENO"
40420 then :
40421
40422       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40423 printf "%s\n" "yes" >&6; }
40424       tst_macro_memrchr="yes"
40425
40426 else $as_nop
40427
40428       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40429 printf "%s\n" "no" >&6; }
40430       tst_macro_memrchr="no"
40431
40432 fi
40433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40434     conftest$ac_exeext conftest.$ac_ext
40435   fi
40436   #
40437   if test "$tst_links_memrchr" = "yes"; then
40438     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
40439 printf %s "checking if memrchr is prototyped... " >&6; }
40440     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40441 /* end confdefs.h.  */
40442
40443       $curl_includes_string
40444
40445 _ACEOF
40446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40447   $EGREP "memrchr" >/dev/null 2>&1
40448 then :
40449
40450       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40451 printf "%s\n" "yes" >&6; }
40452       tst_proto_memrchr="yes"
40453
40454 else $as_nop
40455
40456       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40457 printf "%s\n" "no" >&6; }
40458       tst_proto_memrchr="no"
40459
40460 fi
40461 rm -rf conftest*
40462
40463   fi
40464   #
40465   if test "$tst_proto_memrchr" = "yes" ||
40466      test "$tst_macro_memrchr" = "yes"; then
40467     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
40468 printf %s "checking if memrchr is compilable... " >&6; }
40469     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40470 /* end confdefs.h.  */
40471
40472
40473         $curl_includes_string
40474
40475 int main (void)
40476 {
40477
40478         if(0 != memrchr(0, 0, 0))
40479           return 1;
40480
40481  ;
40482  return 0;
40483 }
40484
40485 _ACEOF
40486 if ac_fn_c_try_compile "$LINENO"
40487 then :
40488
40489       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40490 printf "%s\n" "yes" >&6; }
40491       tst_compi_memrchr="yes"
40492
40493 else $as_nop
40494
40495       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40496 printf "%s\n" "no" >&6; }
40497       tst_compi_memrchr="no"
40498
40499 fi
40500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40501   fi
40502   #
40503   if test "$tst_compi_memrchr" = "yes"; then
40504     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
40505 printf %s "checking if memrchr usage allowed... " >&6; }
40506     if test "x$curl_disallow_memrchr" != "xyes"; then
40507       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40508 printf "%s\n" "yes" >&6; }
40509       tst_allow_memrchr="yes"
40510     else
40511       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40512 printf "%s\n" "no" >&6; }
40513       tst_allow_memrchr="no"
40514     fi
40515   fi
40516   #
40517   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
40518 printf %s "checking if memrchr might be used... " >&6; }
40519   if (test "$tst_proto_memrchr" = "yes" ||
40520       test "$tst_macro_memrchr" = "yes") &&
40521      test "$tst_compi_memrchr" = "yes" &&
40522      test "$tst_allow_memrchr" = "yes"; then
40523     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40524 printf "%s\n" "yes" >&6; }
40525
40526 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
40527
40528     curl_cv_func_memrchr="yes"
40529   else
40530     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40531 printf "%s\n" "no" >&6; }
40532     curl_cv_func_memrchr="no"
40533   fi
40534
40535
40536       #
40537   tst_links_poll="unknown"
40538   tst_proto_poll="unknown"
40539   tst_compi_poll="unknown"
40540   tst_works_poll="unknown"
40541   tst_allow_poll="unknown"
40542   #
40543   case $host_os in
40544     darwin*|interix*)
40545                                           curl_disallow_poll="yes"
40546       tst_compi_poll="no"
40547       ;;
40548   esac
40549   #
40550   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
40551 printf %s "checking if poll can be linked... " >&6; }
40552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40553 /* end confdefs.h.  */
40554
40555
40556       $curl_includes_poll
40557
40558 int main (void)
40559 {
40560
40561       if(0 != poll(0, 0, 0))
40562         return 1;
40563
40564  ;
40565  return 0;
40566 }
40567
40568 _ACEOF
40569 if ac_fn_c_try_link "$LINENO"
40570 then :
40571
40572     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40573 printf "%s\n" "yes" >&6; }
40574     tst_links_poll="yes"
40575
40576 else $as_nop
40577
40578     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40579 printf "%s\n" "no" >&6; }
40580     tst_links_poll="no"
40581
40582 fi
40583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40584     conftest$ac_exeext conftest.$ac_ext
40585   #
40586   if test "$tst_links_poll" = "yes"; then
40587     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
40588 printf %s "checking if poll is prototyped... " >&6; }
40589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40590 /* end confdefs.h.  */
40591
40592       $curl_includes_poll
40593
40594 _ACEOF
40595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40596   $EGREP "poll" >/dev/null 2>&1
40597 then :
40598
40599       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40600 printf "%s\n" "yes" >&6; }
40601       tst_proto_poll="yes"
40602
40603 else $as_nop
40604
40605       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40606 printf "%s\n" "no" >&6; }
40607       tst_proto_poll="no"
40608
40609 fi
40610 rm -rf conftest*
40611
40612   fi
40613   #
40614   if test "$tst_proto_poll" = "yes"; then
40615     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
40616 printf %s "checking if poll is compilable... " >&6; }
40617     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40618 /* end confdefs.h.  */
40619
40620
40621         $curl_includes_poll
40622
40623 int main (void)
40624 {
40625
40626         if(0 != poll(0, 0, 0))
40627           return 1;
40628
40629  ;
40630  return 0;
40631 }
40632
40633 _ACEOF
40634 if ac_fn_c_try_compile "$LINENO"
40635 then :
40636
40637       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40638 printf "%s\n" "yes" >&6; }
40639       tst_compi_poll="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_compi_poll="no"
40646
40647 fi
40648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40649   fi
40650   #
40651     if test "x$cross_compiling" != "xyes" &&
40652     test "$tst_compi_poll" = "yes"; then
40653     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
40654 printf %s "checking if poll seems to work... " >&6; }
40655
40656    case $host_os in
40657      darwin*)
40658       if test "$cross_compiling" = yes
40659 then :
40660   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40661 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40662 as_fn_error $? "cannot run test program while cross compiling
40663 See \`config.log' for more details" "$LINENO" 5; }
40664 else $as_nop
40665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40666 /* end confdefs.h.  */
40667
40668
40669         $curl_includes_stdlib
40670         $curl_includes_poll
40671         $curl_includes_time
40672
40673 int main (void)
40674 {
40675
40676         /* detect the original poll() breakage */
40677         if(0 != poll(0, 0, 10))
40678           exit(1); /* fail */
40679         else {
40680           /* detect the 10.12 poll() breakage */
40681           struct timeval before, after;
40682           int rc;
40683           size_t us;
40684
40685           gettimeofday(&before, NULL);
40686           rc = poll(NULL, 0, 500);
40687           gettimeofday(&after, NULL);
40688
40689           us = (after.tv_sec - before.tv_sec) * 1000000 +
40690             (after.tv_usec - before.tv_usec);
40691
40692           if(us < 400000)
40693             exit(1);
40694         }
40695
40696  ;
40697  return 0;
40698 }
40699
40700 _ACEOF
40701 if ac_fn_c_try_run "$LINENO"
40702 then :
40703   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40704 printf "%s\n" "yes" >&6; }
40705       tst_works_poll="yes"
40706
40707 else $as_nop
40708   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40709 printf "%s\n" "no" >&6; }
40710       tst_works_poll="no"
40711
40712 fi
40713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40714   conftest.$ac_objext conftest.beam conftest.$ac_ext
40715 fi
40716
40717      ;;
40718      *)
40719       old=$LD_LIBRARY_PATH
40720       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
40721       export LD_LIBRARY_PATH
40722       if test "$cross_compiling" = yes
40723 then :
40724   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40725 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40726 as_fn_error $? "cannot run test program while cross compiling
40727 See \`config.log' for more details" "$LINENO" 5; }
40728 else $as_nop
40729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40730 /* end confdefs.h.  */
40731
40732
40733         $curl_includes_stdlib
40734         $curl_includes_poll
40735         $curl_includes_time
40736
40737 int main (void)
40738 {
40739
40740         /* detect the original poll() breakage */
40741         if(0 != poll(0, 0, 10))
40742           exit(1); /* fail */
40743         else {
40744           /* detect the 10.12 poll() breakage */
40745           struct timeval before, after;
40746           int rc;
40747           size_t us;
40748
40749           gettimeofday(&before, NULL);
40750           rc = poll(NULL, 0, 500);
40751           gettimeofday(&after, NULL);
40752
40753           us = (after.tv_sec - before.tv_sec) * 1000000 +
40754             (after.tv_usec - before.tv_usec);
40755
40756           if(us < 400000)
40757             exit(1);
40758         }
40759
40760  ;
40761  return 0;
40762 }
40763
40764 _ACEOF
40765 if ac_fn_c_try_run "$LINENO"
40766 then :
40767   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40768 printf "%s\n" "yes" >&6; }
40769       tst_works_poll="yes"
40770
40771 else $as_nop
40772   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40773 printf "%s\n" "no" >&6; }
40774       tst_works_poll="no"
40775
40776 fi
40777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40778   conftest.$ac_objext conftest.beam conftest.$ac_ext
40779 fi
40780
40781       LD_LIBRARY_PATH=$old # restore
40782      ;;
40783    esac
40784
40785   fi
40786   #
40787   if test "$tst_compi_poll" = "yes" &&
40788     test "$tst_works_poll" != "no"; then
40789     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
40790 printf %s "checking if poll usage allowed... " >&6; }
40791     if test "x$curl_disallow_poll" != "xyes"; then
40792       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40793 printf "%s\n" "yes" >&6; }
40794       tst_allow_poll="yes"
40795     else
40796       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40797 printf "%s\n" "no" >&6; }
40798       tst_allow_poll="no"
40799     fi
40800   fi
40801   #
40802   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
40803 printf %s "checking if poll might be used... " >&6; }
40804   if test "$tst_links_poll" = "yes" &&
40805      test "$tst_proto_poll" = "yes" &&
40806      test "$tst_compi_poll" = "yes" &&
40807      test "$tst_allow_poll" = "yes" &&
40808      test "$tst_works_poll" != "no"; then
40809     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40810 printf "%s\n" "yes" >&6; }
40811
40812 printf "%s\n" "#define HAVE_POLL_FINE 1" >>confdefs.h
40813
40814     curl_cv_func_poll="yes"
40815   else
40816     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40817 printf "%s\n" "no" >&6; }
40818     curl_cv_func_poll="no"
40819   fi
40820
40821
40822 curl_includes_signal="\
40823 /* includes start */
40824 #ifdef HAVE_SYS_TYPES_H
40825 #  include <sys/types.h>
40826 #endif
40827 #ifdef HAVE_SIGNAL_H
40828 #  include <signal.h>
40829 #endif
40830 /* includes end */"
40831   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal
40832 "
40833 if test "x$ac_cv_header_sys_types_h" = xyes
40834 then :
40835   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
40836
40837 fi
40838 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$curl_includes_signal
40839 "
40840 if test "x$ac_cv_header_signal_h" = xyes
40841 then :
40842   printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
40843
40844 fi
40845
40846
40847
40848     #
40849   tst_links_sigaction="unknown"
40850   tst_proto_sigaction="unknown"
40851   tst_compi_sigaction="unknown"
40852   tst_allow_sigaction="unknown"
40853   #
40854   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
40855 printf %s "checking if sigaction can be linked... " >&6; }
40856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40857 /* end confdefs.h.  */
40858
40859
40860 #define sigaction innocuous_sigaction
40861 #ifdef __STDC__
40862 # include <limits.h>
40863 #else
40864 # include <assert.h>
40865 #endif
40866 #undef sigaction
40867 #ifdef __cplusplus
40868 extern "C"
40869 #endif
40870 char sigaction ();
40871 #if defined __stub_sigaction || defined __stub___sigaction
40872 choke me
40873 #endif
40874
40875 int main (void)
40876 {
40877 return sigaction ();
40878  ;
40879  return 0;
40880 }
40881
40882 _ACEOF
40883 if ac_fn_c_try_link "$LINENO"
40884 then :
40885
40886     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40887 printf "%s\n" "yes" >&6; }
40888     tst_links_sigaction="yes"
40889
40890 else $as_nop
40891
40892     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40893 printf "%s\n" "no" >&6; }
40894     tst_links_sigaction="no"
40895
40896 fi
40897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40898     conftest$ac_exeext conftest.$ac_ext
40899   #
40900   if test "$tst_links_sigaction" = "yes"; then
40901     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
40902 printf %s "checking if sigaction is prototyped... " >&6; }
40903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40904 /* end confdefs.h.  */
40905
40906       $curl_includes_signal
40907
40908 _ACEOF
40909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40910   $EGREP "sigaction" >/dev/null 2>&1
40911 then :
40912
40913       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40914 printf "%s\n" "yes" >&6; }
40915       tst_proto_sigaction="yes"
40916
40917 else $as_nop
40918
40919       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40920 printf "%s\n" "no" >&6; }
40921       tst_proto_sigaction="no"
40922
40923 fi
40924 rm -rf conftest*
40925
40926   fi
40927   #
40928   if test "$tst_proto_sigaction" = "yes"; then
40929     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
40930 printf %s "checking if sigaction is compilable... " >&6; }
40931     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40932 /* end confdefs.h.  */
40933
40934
40935         $curl_includes_signal
40936
40937 int main (void)
40938 {
40939
40940         if(0 != sigaction(0, 0, 0))
40941           return 1;
40942
40943  ;
40944  return 0;
40945 }
40946
40947 _ACEOF
40948 if ac_fn_c_try_compile "$LINENO"
40949 then :
40950
40951       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40952 printf "%s\n" "yes" >&6; }
40953       tst_compi_sigaction="yes"
40954
40955 else $as_nop
40956
40957       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40958 printf "%s\n" "no" >&6; }
40959       tst_compi_sigaction="no"
40960
40961 fi
40962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40963   fi
40964   #
40965   if test "$tst_compi_sigaction" = "yes"; then
40966     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
40967 printf %s "checking if sigaction usage allowed... " >&6; }
40968     if test "x$curl_disallow_sigaction" != "xyes"; then
40969       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40970 printf "%s\n" "yes" >&6; }
40971       tst_allow_sigaction="yes"
40972     else
40973       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40974 printf "%s\n" "no" >&6; }
40975       tst_allow_sigaction="no"
40976     fi
40977   fi
40978   #
40979   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
40980 printf %s "checking if sigaction might be used... " >&6; }
40981   if test "$tst_links_sigaction" = "yes" &&
40982      test "$tst_proto_sigaction" = "yes" &&
40983      test "$tst_compi_sigaction" = "yes" &&
40984      test "$tst_allow_sigaction" = "yes"; then
40985     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40986 printf "%s\n" "yes" >&6; }
40987
40988 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
40989
40990     curl_cv_func_sigaction="yes"
40991   else
40992     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40993 printf "%s\n" "no" >&6; }
40994     curl_cv_func_sigaction="no"
40995   fi
40996
40997
40998     #
40999   tst_links_siginterrupt="unknown"
41000   tst_proto_siginterrupt="unknown"
41001   tst_compi_siginterrupt="unknown"
41002   tst_allow_siginterrupt="unknown"
41003   #
41004   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
41005 printf %s "checking if siginterrupt can be linked... " >&6; }
41006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41007 /* end confdefs.h.  */
41008
41009
41010 #define siginterrupt innocuous_siginterrupt
41011 #ifdef __STDC__
41012 # include <limits.h>
41013 #else
41014 # include <assert.h>
41015 #endif
41016 #undef siginterrupt
41017 #ifdef __cplusplus
41018 extern "C"
41019 #endif
41020 char siginterrupt ();
41021 #if defined __stub_siginterrupt || defined __stub___siginterrupt
41022 choke me
41023 #endif
41024
41025 int main (void)
41026 {
41027 return siginterrupt ();
41028  ;
41029  return 0;
41030 }
41031
41032 _ACEOF
41033 if ac_fn_c_try_link "$LINENO"
41034 then :
41035
41036     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41037 printf "%s\n" "yes" >&6; }
41038     tst_links_siginterrupt="yes"
41039
41040 else $as_nop
41041
41042     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41043 printf "%s\n" "no" >&6; }
41044     tst_links_siginterrupt="no"
41045
41046 fi
41047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41048     conftest$ac_exeext conftest.$ac_ext
41049   #
41050   if test "$tst_links_siginterrupt" = "yes"; then
41051     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
41052 printf %s "checking if siginterrupt is prototyped... " >&6; }
41053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41054 /* end confdefs.h.  */
41055
41056       $curl_includes_signal
41057
41058 _ACEOF
41059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41060   $EGREP "siginterrupt" >/dev/null 2>&1
41061 then :
41062
41063       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41064 printf "%s\n" "yes" >&6; }
41065       tst_proto_siginterrupt="yes"
41066
41067 else $as_nop
41068
41069       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41070 printf "%s\n" "no" >&6; }
41071       tst_proto_siginterrupt="no"
41072
41073 fi
41074 rm -rf conftest*
41075
41076   fi
41077   #
41078   if test "$tst_proto_siginterrupt" = "yes"; then
41079     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
41080 printf %s "checking if siginterrupt is compilable... " >&6; }
41081     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41082 /* end confdefs.h.  */
41083
41084
41085         $curl_includes_signal
41086
41087 int main (void)
41088 {
41089
41090         if(0 != siginterrupt(0, 0))
41091           return 1;
41092
41093  ;
41094  return 0;
41095 }
41096
41097 _ACEOF
41098 if ac_fn_c_try_compile "$LINENO"
41099 then :
41100
41101       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41102 printf "%s\n" "yes" >&6; }
41103       tst_compi_siginterrupt="yes"
41104
41105 else $as_nop
41106
41107       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41108 printf "%s\n" "no" >&6; }
41109       tst_compi_siginterrupt="no"
41110
41111 fi
41112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41113   fi
41114   #
41115   if test "$tst_compi_siginterrupt" = "yes"; then
41116     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
41117 printf %s "checking if siginterrupt usage allowed... " >&6; }
41118     if test "x$curl_disallow_siginterrupt" != "xyes"; then
41119       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41120 printf "%s\n" "yes" >&6; }
41121       tst_allow_siginterrupt="yes"
41122     else
41123       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41124 printf "%s\n" "no" >&6; }
41125       tst_allow_siginterrupt="no"
41126     fi
41127   fi
41128   #
41129   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
41130 printf %s "checking if siginterrupt might be used... " >&6; }
41131   if test "$tst_links_siginterrupt" = "yes" &&
41132      test "$tst_proto_siginterrupt" = "yes" &&
41133      test "$tst_compi_siginterrupt" = "yes" &&
41134      test "$tst_allow_siginterrupt" = "yes"; then
41135     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41136 printf "%s\n" "yes" >&6; }
41137
41138 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
41139
41140     curl_cv_func_siginterrupt="yes"
41141   else
41142     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41143 printf "%s\n" "no" >&6; }
41144     curl_cv_func_siginterrupt="no"
41145   fi
41146
41147
41148     #
41149   tst_links_signal="unknown"
41150   tst_proto_signal="unknown"
41151   tst_compi_signal="unknown"
41152   tst_allow_signal="unknown"
41153   #
41154   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
41155 printf %s "checking if signal can be linked... " >&6; }
41156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41157 /* end confdefs.h.  */
41158
41159
41160 #define signal innocuous_signal
41161 #ifdef __STDC__
41162 # include <limits.h>
41163 #else
41164 # include <assert.h>
41165 #endif
41166 #undef signal
41167 #ifdef __cplusplus
41168 extern "C"
41169 #endif
41170 char signal ();
41171 #if defined __stub_signal || defined __stub___signal
41172 choke me
41173 #endif
41174
41175 int main (void)
41176 {
41177 return signal ();
41178  ;
41179  return 0;
41180 }
41181
41182 _ACEOF
41183 if ac_fn_c_try_link "$LINENO"
41184 then :
41185
41186     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41187 printf "%s\n" "yes" >&6; }
41188     tst_links_signal="yes"
41189
41190 else $as_nop
41191
41192     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41193 printf "%s\n" "no" >&6; }
41194     tst_links_signal="no"
41195
41196 fi
41197 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41198     conftest$ac_exeext conftest.$ac_ext
41199   #
41200   if test "$tst_links_signal" = "yes"; then
41201     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
41202 printf %s "checking if signal is prototyped... " >&6; }
41203     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41204 /* end confdefs.h.  */
41205
41206       $curl_includes_signal
41207
41208 _ACEOF
41209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41210   $EGREP "signal" >/dev/null 2>&1
41211 then :
41212
41213       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41214 printf "%s\n" "yes" >&6; }
41215       tst_proto_signal="yes"
41216
41217 else $as_nop
41218
41219       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41220 printf "%s\n" "no" >&6; }
41221       tst_proto_signal="no"
41222
41223 fi
41224 rm -rf conftest*
41225
41226   fi
41227   #
41228   if test "$tst_proto_signal" = "yes"; then
41229     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
41230 printf %s "checking if signal is compilable... " >&6; }
41231     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41232 /* end confdefs.h.  */
41233
41234
41235         $curl_includes_signal
41236
41237 int main (void)
41238 {
41239
41240         if(0 != signal(0, 0))
41241           return 1;
41242
41243  ;
41244  return 0;
41245 }
41246
41247 _ACEOF
41248 if ac_fn_c_try_compile "$LINENO"
41249 then :
41250
41251       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41252 printf "%s\n" "yes" >&6; }
41253       tst_compi_signal="yes"
41254
41255 else $as_nop
41256
41257       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41258 printf "%s\n" "no" >&6; }
41259       tst_compi_signal="no"
41260
41261 fi
41262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41263   fi
41264   #
41265   if test "$tst_compi_signal" = "yes"; then
41266     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
41267 printf %s "checking if signal usage allowed... " >&6; }
41268     if test "x$curl_disallow_signal" != "xyes"; then
41269       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41270 printf "%s\n" "yes" >&6; }
41271       tst_allow_signal="yes"
41272     else
41273       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41274 printf "%s\n" "no" >&6; }
41275       tst_allow_signal="no"
41276     fi
41277   fi
41278   #
41279   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
41280 printf %s "checking if signal might be used... " >&6; }
41281   if test "$tst_links_signal" = "yes" &&
41282      test "$tst_proto_signal" = "yes" &&
41283      test "$tst_compi_signal" = "yes" &&
41284      test "$tst_allow_signal" = "yes"; then
41285     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41286 printf "%s\n" "yes" >&6; }
41287
41288 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
41289
41290     curl_cv_func_signal="yes"
41291   else
41292     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41293 printf "%s\n" "no" >&6; }
41294     curl_cv_func_signal="no"
41295   fi
41296
41297
41298 curl_includes_setjmp="\
41299 /* includes start */
41300 #ifdef HAVE_SYS_TYPES_H
41301 #  include <sys/types.h>
41302 #endif
41303 #ifdef HAVE_SETJMP_H
41304 #  include <setjmp.h>
41305 #endif
41306 /* includes end */"
41307   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp
41308 "
41309 if test "x$ac_cv_header_sys_types_h" = xyes
41310 then :
41311   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41312
41313 fi
41314 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$curl_includes_setjmp
41315 "
41316 if test "x$ac_cv_header_setjmp_h" = xyes
41317 then :
41318   printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
41319
41320 fi
41321
41322
41323
41324     #
41325   tst_links_sigsetjmp="unknown"
41326   tst_macro_sigsetjmp="unknown"
41327   tst_proto_sigsetjmp="unknown"
41328   tst_compi_sigsetjmp="unknown"
41329   tst_allow_sigsetjmp="unknown"
41330   #
41331   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
41332 printf %s "checking if sigsetjmp can be linked... " >&6; }
41333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41334 /* end confdefs.h.  */
41335
41336
41337 #define sigsetjmp innocuous_sigsetjmp
41338 #ifdef __STDC__
41339 # include <limits.h>
41340 #else
41341 # include <assert.h>
41342 #endif
41343 #undef sigsetjmp
41344 #ifdef __cplusplus
41345 extern "C"
41346 #endif
41347 char sigsetjmp ();
41348 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
41349 choke me
41350 #endif
41351
41352 int main (void)
41353 {
41354 return sigsetjmp ();
41355  ;
41356  return 0;
41357 }
41358
41359 _ACEOF
41360 if ac_fn_c_try_link "$LINENO"
41361 then :
41362
41363     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41364 printf "%s\n" "yes" >&6; }
41365     tst_links_sigsetjmp="yes"
41366
41367 else $as_nop
41368
41369     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41370 printf "%s\n" "no" >&6; }
41371     tst_links_sigsetjmp="no"
41372
41373 fi
41374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41375     conftest$ac_exeext conftest.$ac_ext
41376   #
41377   if test "$tst_links_sigsetjmp" = "no"; then
41378     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
41379 printf %s "checking if sigsetjmp seems a macro... " >&6; }
41380     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41381 /* end confdefs.h.  */
41382
41383
41384         $curl_includes_setjmp
41385
41386 int main (void)
41387 {
41388
41389         sigjmp_buf env;
41390         if(0 != sigsetjmp(env, 0))
41391           return 1;
41392
41393  ;
41394  return 0;
41395 }
41396
41397 _ACEOF
41398 if ac_fn_c_try_link "$LINENO"
41399 then :
41400
41401       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41402 printf "%s\n" "yes" >&6; }
41403       tst_macro_sigsetjmp="yes"
41404
41405 else $as_nop
41406
41407       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41408 printf "%s\n" "no" >&6; }
41409       tst_macro_sigsetjmp="no"
41410
41411 fi
41412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41413     conftest$ac_exeext conftest.$ac_ext
41414   fi
41415   #
41416   if test "$tst_links_sigsetjmp" = "yes"; then
41417     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
41418 printf %s "checking if sigsetjmp is prototyped... " >&6; }
41419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41420 /* end confdefs.h.  */
41421
41422       $curl_includes_setjmp
41423
41424 _ACEOF
41425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41426   $EGREP "sigsetjmp" >/dev/null 2>&1
41427 then :
41428
41429       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41430 printf "%s\n" "yes" >&6; }
41431       tst_proto_sigsetjmp="yes"
41432
41433 else $as_nop
41434
41435       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41436 printf "%s\n" "no" >&6; }
41437       tst_proto_sigsetjmp="no"
41438
41439 fi
41440 rm -rf conftest*
41441
41442   fi
41443   #
41444   if test "$tst_proto_sigsetjmp" = "yes" ||
41445      test "$tst_macro_sigsetjmp" = "yes"; then
41446     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
41447 printf %s "checking if sigsetjmp is compilable... " >&6; }
41448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41449 /* end confdefs.h.  */
41450
41451
41452         $curl_includes_setjmp
41453
41454 int main (void)
41455 {
41456
41457         sigjmp_buf env;
41458         if(0 != sigsetjmp(env, 0))
41459           return 1;
41460
41461  ;
41462  return 0;
41463 }
41464
41465 _ACEOF
41466 if ac_fn_c_try_compile "$LINENO"
41467 then :
41468
41469       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41470 printf "%s\n" "yes" >&6; }
41471       tst_compi_sigsetjmp="yes"
41472
41473 else $as_nop
41474
41475       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41476 printf "%s\n" "no" >&6; }
41477       tst_compi_sigsetjmp="no"
41478
41479 fi
41480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41481   fi
41482   #
41483   if test "$tst_compi_sigsetjmp" = "yes"; then
41484     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
41485 printf %s "checking if sigsetjmp usage allowed... " >&6; }
41486     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
41487       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41488 printf "%s\n" "yes" >&6; }
41489       tst_allow_sigsetjmp="yes"
41490     else
41491       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41492 printf "%s\n" "no" >&6; }
41493       tst_allow_sigsetjmp="no"
41494     fi
41495   fi
41496   #
41497   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
41498 printf %s "checking if sigsetjmp might be used... " >&6; }
41499   if (test "$tst_proto_sigsetjmp" = "yes" ||
41500       test "$tst_macro_sigsetjmp" = "yes") &&
41501      test "$tst_compi_sigsetjmp" = "yes" &&
41502      test "$tst_allow_sigsetjmp" = "yes"; then
41503     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41504 printf "%s\n" "yes" >&6; }
41505
41506 printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
41507
41508     curl_cv_func_sigsetjmp="yes"
41509   else
41510     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41511 printf "%s\n" "no" >&6; }
41512     curl_cv_func_sigsetjmp="no"
41513   fi
41514
41515
41516         #
41517   tst_links_socket="unknown"
41518   tst_proto_socket="unknown"
41519   tst_compi_socket="unknown"
41520   tst_allow_socket="unknown"
41521   #
41522   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
41523 printf %s "checking if socket can be linked... " >&6; }
41524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41525 /* end confdefs.h.  */
41526
41527
41528       $curl_includes_winsock2
41529       $curl_includes_bsdsocket
41530       $curl_includes_sys_socket
41531       $curl_includes_socket
41532
41533 int main (void)
41534 {
41535
41536       if(0 != socket(0, 0, 0))
41537         return 1;
41538
41539  ;
41540  return 0;
41541 }
41542
41543 _ACEOF
41544 if ac_fn_c_try_link "$LINENO"
41545 then :
41546
41547     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41548 printf "%s\n" "yes" >&6; }
41549     tst_links_socket="yes"
41550
41551 else $as_nop
41552
41553     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41554 printf "%s\n" "no" >&6; }
41555     tst_links_socket="no"
41556
41557 fi
41558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41559     conftest$ac_exeext conftest.$ac_ext
41560   #
41561   if test "$tst_links_socket" = "yes"; then
41562     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
41563 printf %s "checking if socket is prototyped... " >&6; }
41564     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41565 /* end confdefs.h.  */
41566
41567       $curl_includes_winsock2
41568       $curl_includes_bsdsocket
41569       $curl_includes_sys_socket
41570       $curl_includes_socket
41571
41572 _ACEOF
41573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41574   $EGREP "socket" >/dev/null 2>&1
41575 then :
41576
41577       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41578 printf "%s\n" "yes" >&6; }
41579       tst_proto_socket="yes"
41580
41581 else $as_nop
41582
41583       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41584 printf "%s\n" "no" >&6; }
41585       tst_proto_socket="no"
41586
41587 fi
41588 rm -rf conftest*
41589
41590   fi
41591   #
41592   if test "$tst_proto_socket" = "yes"; then
41593     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
41594 printf %s "checking if socket is compilable... " >&6; }
41595     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41596 /* end confdefs.h.  */
41597
41598
41599         $curl_includes_winsock2
41600         $curl_includes_bsdsocket
41601         $curl_includes_sys_socket
41602         $curl_includes_socket
41603
41604 int main (void)
41605 {
41606
41607         if(0 != socket(0, 0, 0))
41608           return 1;
41609
41610  ;
41611  return 0;
41612 }
41613
41614 _ACEOF
41615 if ac_fn_c_try_compile "$LINENO"
41616 then :
41617
41618       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41619 printf "%s\n" "yes" >&6; }
41620       tst_compi_socket="yes"
41621
41622 else $as_nop
41623
41624       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41625 printf "%s\n" "no" >&6; }
41626       tst_compi_socket="no"
41627
41628 fi
41629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41630   fi
41631   #
41632   if test "$tst_compi_socket" = "yes"; then
41633     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
41634 printf %s "checking if socket usage allowed... " >&6; }
41635     if test "x$curl_disallow_socket" != "xyes"; then
41636       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41637 printf "%s\n" "yes" >&6; }
41638       tst_allow_socket="yes"
41639     else
41640       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41641 printf "%s\n" "no" >&6; }
41642       tst_allow_socket="no"
41643     fi
41644   fi
41645   #
41646   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
41647 printf %s "checking if socket might be used... " >&6; }
41648   if test "$tst_links_socket" = "yes" &&
41649      test "$tst_proto_socket" = "yes" &&
41650      test "$tst_compi_socket" = "yes" &&
41651      test "$tst_allow_socket" = "yes"; then
41652     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41653 printf "%s\n" "yes" >&6; }
41654
41655 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
41656
41657     curl_cv_func_socket="yes"
41658   else
41659     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41660 printf "%s\n" "no" >&6; }
41661     curl_cv_func_socket="no"
41662   fi
41663
41664
41665       #
41666   tst_links_socketpair="unknown"
41667   tst_proto_socketpair="unknown"
41668   tst_compi_socketpair="unknown"
41669   tst_allow_socketpair="unknown"
41670   #
41671   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
41672 printf %s "checking if socketpair can be linked... " >&6; }
41673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41674 /* end confdefs.h.  */
41675
41676
41677 #define socketpair innocuous_socketpair
41678 #ifdef __STDC__
41679 # include <limits.h>
41680 #else
41681 # include <assert.h>
41682 #endif
41683 #undef socketpair
41684 #ifdef __cplusplus
41685 extern "C"
41686 #endif
41687 char socketpair ();
41688 #if defined __stub_socketpair || defined __stub___socketpair
41689 choke me
41690 #endif
41691
41692 int main (void)
41693 {
41694 return socketpair ();
41695  ;
41696  return 0;
41697 }
41698
41699 _ACEOF
41700 if ac_fn_c_try_link "$LINENO"
41701 then :
41702
41703     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41704 printf "%s\n" "yes" >&6; }
41705     tst_links_socketpair="yes"
41706
41707 else $as_nop
41708
41709     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41710 printf "%s\n" "no" >&6; }
41711     tst_links_socketpair="no"
41712
41713 fi
41714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41715     conftest$ac_exeext conftest.$ac_ext
41716   #
41717   if test "$tst_links_socketpair" = "yes"; then
41718     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
41719 printf %s "checking if socketpair is prototyped... " >&6; }
41720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41721 /* end confdefs.h.  */
41722
41723       $curl_includes_sys_socket
41724       $curl_includes_socket
41725
41726 _ACEOF
41727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41728   $EGREP "socketpair" >/dev/null 2>&1
41729 then :
41730
41731       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41732 printf "%s\n" "yes" >&6; }
41733       tst_proto_socketpair="yes"
41734
41735 else $as_nop
41736
41737       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41738 printf "%s\n" "no" >&6; }
41739       tst_proto_socketpair="no"
41740
41741 fi
41742 rm -rf conftest*
41743
41744   fi
41745   #
41746   if test "$tst_proto_socketpair" = "yes"; then
41747     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
41748 printf %s "checking if socketpair is compilable... " >&6; }
41749     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41750 /* end confdefs.h.  */
41751
41752
41753         $curl_includes_sys_socket
41754         $curl_includes_socket
41755
41756 int main (void)
41757 {
41758
41759         int sv[2];
41760         if(0 != socketpair(0, 0, 0, sv))
41761           return 1;
41762
41763  ;
41764  return 0;
41765 }
41766
41767 _ACEOF
41768 if ac_fn_c_try_compile "$LINENO"
41769 then :
41770
41771       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41772 printf "%s\n" "yes" >&6; }
41773       tst_compi_socketpair="yes"
41774
41775 else $as_nop
41776
41777       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41778 printf "%s\n" "no" >&6; }
41779       tst_compi_socketpair="no"
41780
41781 fi
41782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41783   fi
41784   #
41785   if test "$tst_compi_socketpair" = "yes"; then
41786     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
41787 printf %s "checking if socketpair usage allowed... " >&6; }
41788     if test "x$curl_disallow_socketpair" != "xyes"; then
41789       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41790 printf "%s\n" "yes" >&6; }
41791       tst_allow_socketpair="yes"
41792     else
41793       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41794 printf "%s\n" "no" >&6; }
41795       tst_allow_socketpair="no"
41796     fi
41797   fi
41798   #
41799   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
41800 printf %s "checking if socketpair might be used... " >&6; }
41801   if test "$tst_links_socketpair" = "yes" &&
41802      test "$tst_proto_socketpair" = "yes" &&
41803      test "$tst_compi_socketpair" = "yes" &&
41804      test "$tst_allow_socketpair" = "yes"; then
41805     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41806 printf "%s\n" "yes" >&6; }
41807
41808 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
41809
41810     curl_cv_func_socketpair="yes"
41811   else
41812     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41813 printf "%s\n" "no" >&6; }
41814     curl_cv_func_socketpair="no"
41815   fi
41816
41817
41818     #
41819   tst_links_strcasecmp="unknown"
41820   tst_proto_strcasecmp="unknown"
41821   tst_compi_strcasecmp="unknown"
41822   tst_allow_strcasecmp="unknown"
41823   #
41824   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
41825 printf %s "checking if strcasecmp can be linked... " >&6; }
41826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41827 /* end confdefs.h.  */
41828
41829
41830 #define strcasecmp innocuous_strcasecmp
41831 #ifdef __STDC__
41832 # include <limits.h>
41833 #else
41834 # include <assert.h>
41835 #endif
41836 #undef strcasecmp
41837 #ifdef __cplusplus
41838 extern "C"
41839 #endif
41840 char strcasecmp ();
41841 #if defined __stub_strcasecmp || defined __stub___strcasecmp
41842 choke me
41843 #endif
41844
41845 int main (void)
41846 {
41847 return strcasecmp ();
41848  ;
41849  return 0;
41850 }
41851
41852 _ACEOF
41853 if ac_fn_c_try_link "$LINENO"
41854 then :
41855
41856     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41857 printf "%s\n" "yes" >&6; }
41858     tst_links_strcasecmp="yes"
41859
41860 else $as_nop
41861
41862     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41863 printf "%s\n" "no" >&6; }
41864     tst_links_strcasecmp="no"
41865
41866 fi
41867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41868     conftest$ac_exeext conftest.$ac_ext
41869   #
41870   if test "$tst_links_strcasecmp" = "yes"; then
41871     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
41872 printf %s "checking if strcasecmp is prototyped... " >&6; }
41873     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41874 /* end confdefs.h.  */
41875
41876       $curl_includes_string
41877
41878 _ACEOF
41879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41880   $EGREP "strcasecmp" >/dev/null 2>&1
41881 then :
41882
41883       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41884 printf "%s\n" "yes" >&6; }
41885       tst_proto_strcasecmp="yes"
41886
41887 else $as_nop
41888
41889       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41890 printf "%s\n" "no" >&6; }
41891       tst_proto_strcasecmp="no"
41892
41893 fi
41894 rm -rf conftest*
41895
41896   fi
41897   #
41898   if test "$tst_proto_strcasecmp" = "yes"; then
41899     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
41900 printf %s "checking if strcasecmp is compilable... " >&6; }
41901     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41902 /* end confdefs.h.  */
41903
41904
41905         $curl_includes_string
41906
41907 int main (void)
41908 {
41909
41910         if(0 != strcasecmp(0, 0))
41911           return 1;
41912
41913  ;
41914  return 0;
41915 }
41916
41917 _ACEOF
41918 if ac_fn_c_try_compile "$LINENO"
41919 then :
41920
41921       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41922 printf "%s\n" "yes" >&6; }
41923       tst_compi_strcasecmp="yes"
41924
41925 else $as_nop
41926
41927       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41928 printf "%s\n" "no" >&6; }
41929       tst_compi_strcasecmp="no"
41930
41931 fi
41932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41933   fi
41934   #
41935   if test "$tst_compi_strcasecmp" = "yes"; then
41936     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
41937 printf %s "checking if strcasecmp usage allowed... " >&6; }
41938     if test "x$curl_disallow_strcasecmp" != "xyes"; then
41939       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41940 printf "%s\n" "yes" >&6; }
41941       tst_allow_strcasecmp="yes"
41942     else
41943       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41944 printf "%s\n" "no" >&6; }
41945       tst_allow_strcasecmp="no"
41946     fi
41947   fi
41948   #
41949   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
41950 printf %s "checking if strcasecmp might be used... " >&6; }
41951   if test "$tst_links_strcasecmp" = "yes" &&
41952      test "$tst_proto_strcasecmp" = "yes" &&
41953      test "$tst_compi_strcasecmp" = "yes" &&
41954      test "$tst_allow_strcasecmp" = "yes"; then
41955     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41956 printf "%s\n" "yes" >&6; }
41957
41958 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
41959
41960     curl_cv_func_strcasecmp="yes"
41961   else
41962     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41963 printf "%s\n" "no" >&6; }
41964     curl_cv_func_strcasecmp="no"
41965   fi
41966
41967
41968     #
41969   tst_links_strcmpi="unknown"
41970   tst_proto_strcmpi="unknown"
41971   tst_compi_strcmpi="unknown"
41972   tst_allow_strcmpi="unknown"
41973   #
41974   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
41975 printf %s "checking if strcmpi can be linked... " >&6; }
41976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41977 /* end confdefs.h.  */
41978
41979
41980 #define strcmpi innocuous_strcmpi
41981 #ifdef __STDC__
41982 # include <limits.h>
41983 #else
41984 # include <assert.h>
41985 #endif
41986 #undef strcmpi
41987 #ifdef __cplusplus
41988 extern "C"
41989 #endif
41990 char strcmpi ();
41991 #if defined __stub_strcmpi || defined __stub___strcmpi
41992 choke me
41993 #endif
41994
41995 int main (void)
41996 {
41997 return strcmpi ();
41998  ;
41999  return 0;
42000 }
42001
42002 _ACEOF
42003 if ac_fn_c_try_link "$LINENO"
42004 then :
42005
42006     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42007 printf "%s\n" "yes" >&6; }
42008     tst_links_strcmpi="yes"
42009
42010 else $as_nop
42011
42012     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42013 printf "%s\n" "no" >&6; }
42014     tst_links_strcmpi="no"
42015
42016 fi
42017 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42018     conftest$ac_exeext conftest.$ac_ext
42019   #
42020   if test "$tst_links_strcmpi" = "yes"; then
42021     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
42022 printf %s "checking if strcmpi is prototyped... " >&6; }
42023     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42024 /* end confdefs.h.  */
42025
42026       $curl_includes_string
42027
42028 _ACEOF
42029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42030   $EGREP "strcmpi" >/dev/null 2>&1
42031 then :
42032
42033       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42034 printf "%s\n" "yes" >&6; }
42035       tst_proto_strcmpi="yes"
42036
42037 else $as_nop
42038
42039       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42040 printf "%s\n" "no" >&6; }
42041       tst_proto_strcmpi="no"
42042
42043 fi
42044 rm -rf conftest*
42045
42046   fi
42047   #
42048   if test "$tst_proto_strcmpi" = "yes"; then
42049     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
42050 printf %s "checking if strcmpi is compilable... " >&6; }
42051     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42052 /* end confdefs.h.  */
42053
42054
42055         $curl_includes_string
42056
42057 int main (void)
42058 {
42059
42060         if(0 != strcmpi(0, 0))
42061           return 1;
42062
42063  ;
42064  return 0;
42065 }
42066
42067 _ACEOF
42068 if ac_fn_c_try_compile "$LINENO"
42069 then :
42070
42071       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42072 printf "%s\n" "yes" >&6; }
42073       tst_compi_strcmpi="yes"
42074
42075 else $as_nop
42076
42077       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42078 printf "%s\n" "no" >&6; }
42079       tst_compi_strcmpi="no"
42080
42081 fi
42082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42083   fi
42084   #
42085   if test "$tst_compi_strcmpi" = "yes"; then
42086     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
42087 printf %s "checking if strcmpi usage allowed... " >&6; }
42088     if test "x$curl_disallow_strcmpi" != "xyes"; then
42089       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42090 printf "%s\n" "yes" >&6; }
42091       tst_allow_strcmpi="yes"
42092     else
42093       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42094 printf "%s\n" "no" >&6; }
42095       tst_allow_strcmpi="no"
42096     fi
42097   fi
42098   #
42099   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
42100 printf %s "checking if strcmpi might be used... " >&6; }
42101   if test "$tst_links_strcmpi" = "yes" &&
42102      test "$tst_proto_strcmpi" = "yes" &&
42103      test "$tst_compi_strcmpi" = "yes" &&
42104      test "$tst_allow_strcmpi" = "yes"; then
42105     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42106 printf "%s\n" "yes" >&6; }
42107
42108 printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
42109
42110     curl_cv_func_strcmpi="yes"
42111   else
42112     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42113 printf "%s\n" "no" >&6; }
42114     curl_cv_func_strcmpi="no"
42115   fi
42116
42117
42118     #
42119   tst_links_strdup="unknown"
42120   tst_proto_strdup="unknown"
42121   tst_compi_strdup="unknown"
42122   tst_allow_strdup="unknown"
42123   #
42124   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
42125 printf %s "checking if strdup can be linked... " >&6; }
42126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42127 /* end confdefs.h.  */
42128
42129
42130 #define strdup innocuous_strdup
42131 #ifdef __STDC__
42132 # include <limits.h>
42133 #else
42134 # include <assert.h>
42135 #endif
42136 #undef strdup
42137 #ifdef __cplusplus
42138 extern "C"
42139 #endif
42140 char strdup ();
42141 #if defined __stub_strdup || defined __stub___strdup
42142 choke me
42143 #endif
42144
42145 int main (void)
42146 {
42147 return strdup ();
42148  ;
42149  return 0;
42150 }
42151
42152 _ACEOF
42153 if ac_fn_c_try_link "$LINENO"
42154 then :
42155
42156     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42157 printf "%s\n" "yes" >&6; }
42158     tst_links_strdup="yes"
42159
42160 else $as_nop
42161
42162     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42163 printf "%s\n" "no" >&6; }
42164     tst_links_strdup="no"
42165
42166 fi
42167 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42168     conftest$ac_exeext conftest.$ac_ext
42169   #
42170   if test "$tst_links_strdup" = "yes"; then
42171     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
42172 printf %s "checking if strdup is prototyped... " >&6; }
42173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42174 /* end confdefs.h.  */
42175
42176       $curl_includes_string
42177
42178 _ACEOF
42179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42180   $EGREP "strdup" >/dev/null 2>&1
42181 then :
42182
42183       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42184 printf "%s\n" "yes" >&6; }
42185       tst_proto_strdup="yes"
42186
42187 else $as_nop
42188
42189       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42190 printf "%s\n" "no" >&6; }
42191       tst_proto_strdup="no"
42192
42193 fi
42194 rm -rf conftest*
42195
42196   fi
42197   #
42198   if test "$tst_proto_strdup" = "yes"; then
42199     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
42200 printf %s "checking if strdup is compilable... " >&6; }
42201     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42202 /* end confdefs.h.  */
42203
42204
42205         $curl_includes_string
42206
42207 int main (void)
42208 {
42209
42210         if(0 != strdup(0))
42211           return 1;
42212
42213  ;
42214  return 0;
42215 }
42216
42217 _ACEOF
42218 if ac_fn_c_try_compile "$LINENO"
42219 then :
42220
42221       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42222 printf "%s\n" "yes" >&6; }
42223       tst_compi_strdup="yes"
42224
42225 else $as_nop
42226
42227       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42228 printf "%s\n" "no" >&6; }
42229       tst_compi_strdup="no"
42230
42231 fi
42232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42233   fi
42234   #
42235   if test "$tst_compi_strdup" = "yes"; then
42236     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
42237 printf %s "checking if strdup usage allowed... " >&6; }
42238     if test "x$curl_disallow_strdup" != "xyes"; then
42239       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42240 printf "%s\n" "yes" >&6; }
42241       tst_allow_strdup="yes"
42242     else
42243       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42244 printf "%s\n" "no" >&6; }
42245       tst_allow_strdup="no"
42246     fi
42247   fi
42248   #
42249   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
42250 printf %s "checking if strdup might be used... " >&6; }
42251   if test "$tst_links_strdup" = "yes" &&
42252      test "$tst_proto_strdup" = "yes" &&
42253      test "$tst_compi_strdup" = "yes" &&
42254      test "$tst_allow_strdup" = "yes"; then
42255     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42256 printf "%s\n" "yes" >&6; }
42257
42258 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
42259
42260     curl_cv_func_strdup="yes"
42261   else
42262     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42263 printf "%s\n" "no" >&6; }
42264     curl_cv_func_strdup="no"
42265   fi
42266
42267
42268       #
42269   tst_links_strerror_r="unknown"
42270   tst_proto_strerror_r="unknown"
42271   tst_compi_strerror_r="unknown"
42272   tst_glibc_strerror_r="unknown"
42273   tst_posix_strerror_r="unknown"
42274   tst_allow_strerror_r="unknown"
42275   tst_works_glibc_strerror_r="unknown"
42276   tst_works_posix_strerror_r="unknown"
42277   tst_glibc_strerror_r_type_arg3="unknown"
42278   tst_posix_strerror_r_type_arg3="unknown"
42279   #
42280   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
42281 printf %s "checking if strerror_r can be linked... " >&6; }
42282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42283 /* end confdefs.h.  */
42284
42285
42286 #define strerror_r innocuous_strerror_r
42287 #ifdef __STDC__
42288 # include <limits.h>
42289 #else
42290 # include <assert.h>
42291 #endif
42292 #undef strerror_r
42293 #ifdef __cplusplus
42294 extern "C"
42295 #endif
42296 char strerror_r ();
42297 #if defined __stub_strerror_r || defined __stub___strerror_r
42298 choke me
42299 #endif
42300
42301 int main (void)
42302 {
42303 return strerror_r ();
42304  ;
42305  return 0;
42306 }
42307
42308 _ACEOF
42309 if ac_fn_c_try_link "$LINENO"
42310 then :
42311
42312     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42313 printf "%s\n" "yes" >&6; }
42314     tst_links_strerror_r="yes"
42315
42316 else $as_nop
42317
42318     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42319 printf "%s\n" "no" >&6; }
42320     tst_links_strerror_r="no"
42321
42322 fi
42323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42324     conftest$ac_exeext conftest.$ac_ext
42325   #
42326   if test "$tst_links_strerror_r" = "yes"; then
42327     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
42328 printf %s "checking if strerror_r is prototyped... " >&6; }
42329     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42330 /* end confdefs.h.  */
42331
42332       $curl_includes_string
42333
42334 _ACEOF
42335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42336   $EGREP "strerror_r" >/dev/null 2>&1
42337 then :
42338
42339       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42340 printf "%s\n" "yes" >&6; }
42341       tst_proto_strerror_r="yes"
42342
42343 else $as_nop
42344
42345       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42346 printf "%s\n" "no" >&6; }
42347       tst_proto_strerror_r="no"
42348
42349 fi
42350 rm -rf conftest*
42351
42352   fi
42353   #
42354   if test "$tst_proto_strerror_r" = "yes"; then
42355     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
42356 printf %s "checking if strerror_r is compilable... " >&6; }
42357     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42358 /* end confdefs.h.  */
42359
42360
42361         $curl_includes_string
42362
42363 int main (void)
42364 {
42365
42366         if(0 != strerror_r(0, 0, 0))
42367           return 1;
42368
42369  ;
42370  return 0;
42371 }
42372
42373 _ACEOF
42374 if ac_fn_c_try_compile "$LINENO"
42375 then :
42376
42377       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42378 printf "%s\n" "yes" >&6; }
42379       tst_compi_strerror_r="yes"
42380
42381 else $as_nop
42382
42383       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42384 printf "%s\n" "no" >&6; }
42385       tst_compi_strerror_r="no"
42386
42387 fi
42388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42389   fi
42390   #
42391   if test "$tst_compi_strerror_r" = "yes"; then
42392     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
42393 printf %s "checking if strerror_r is glibc like... " >&6; }
42394     tst_glibc_strerror_r_type_arg3="unknown"
42395     for arg3 in 'size_t' 'int' 'unsigned int'; do
42396       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
42397         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42398 /* end confdefs.h.  */
42399
42400
42401             $curl_includes_string
42402             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
42403
42404 int main (void)
42405 {
42406
42407             if(0 != strerror_r(0, 0, 0))
42408               return 1;
42409
42410  ;
42411  return 0;
42412 }
42413
42414 _ACEOF
42415 if ac_fn_c_try_compile "$LINENO"
42416 then :
42417
42418           tst_glibc_strerror_r_type_arg3="$arg3"
42419
42420 fi
42421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42422       fi
42423     done
42424     case "$tst_glibc_strerror_r_type_arg3" in
42425       unknown)
42426         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42427 printf "%s\n" "no" >&6; }
42428         tst_glibc_strerror_r="no"
42429         ;;
42430       *)
42431         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42432 printf "%s\n" "yes" >&6; }
42433         tst_glibc_strerror_r="yes"
42434         ;;
42435     esac
42436   fi
42437   #
42438     if test "x$cross_compiling" != "xyes" &&
42439     test "$tst_glibc_strerror_r" = "yes"; then
42440     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
42441 printf %s "checking if strerror_r seems to work... " >&6; }
42442
42443    case $host_os in
42444      darwin*)
42445       if test "$cross_compiling" = yes
42446 then :
42447   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42448 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42449 as_fn_error $? "cannot run test program while cross compiling
42450 See \`config.log' for more details" "$LINENO" 5; }
42451 else $as_nop
42452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42453 /* end confdefs.h.  */
42454
42455
42456         $curl_includes_stdlib
42457         $curl_includes_string
42458 #       include <errno.h>
42459
42460 int main (void)
42461 {
42462
42463         char buffer[1024];
42464         char *string = 0;
42465         buffer[0] = '\0';
42466         string = strerror_r(EACCES, buffer, sizeof(buffer));
42467         if(!string)
42468           exit(1); /* fail */
42469         if(!string[0])
42470           exit(1); /* fail */
42471         else
42472           exit(0);
42473
42474  ;
42475  return 0;
42476 }
42477
42478 _ACEOF
42479 if ac_fn_c_try_run "$LINENO"
42480 then :
42481   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42482 printf "%s\n" "yes" >&6; }
42483       tst_works_glibc_strerror_r="yes"
42484
42485 else $as_nop
42486   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42487 printf "%s\n" "no" >&6; }
42488       tst_works_glibc_strerror_r="no"
42489
42490 fi
42491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42492   conftest.$ac_objext conftest.beam conftest.$ac_ext
42493 fi
42494
42495      ;;
42496      *)
42497       old=$LD_LIBRARY_PATH
42498       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
42499       export LD_LIBRARY_PATH
42500       if test "$cross_compiling" = yes
42501 then :
42502   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42503 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42504 as_fn_error $? "cannot run test program while cross compiling
42505 See \`config.log' for more details" "$LINENO" 5; }
42506 else $as_nop
42507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42508 /* end confdefs.h.  */
42509
42510
42511         $curl_includes_stdlib
42512         $curl_includes_string
42513 #       include <errno.h>
42514
42515 int main (void)
42516 {
42517
42518         char buffer[1024];
42519         char *string = 0;
42520         buffer[0] = '\0';
42521         string = strerror_r(EACCES, buffer, sizeof(buffer));
42522         if(!string)
42523           exit(1); /* fail */
42524         if(!string[0])
42525           exit(1); /* fail */
42526         else
42527           exit(0);
42528
42529  ;
42530  return 0;
42531 }
42532
42533 _ACEOF
42534 if ac_fn_c_try_run "$LINENO"
42535 then :
42536   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42537 printf "%s\n" "yes" >&6; }
42538       tst_works_glibc_strerror_r="yes"
42539
42540 else $as_nop
42541   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42542 printf "%s\n" "no" >&6; }
42543       tst_works_glibc_strerror_r="no"
42544
42545 fi
42546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42547   conftest.$ac_objext conftest.beam conftest.$ac_ext
42548 fi
42549
42550       LD_LIBRARY_PATH=$old # restore
42551      ;;
42552    esac
42553
42554   fi
42555   #
42556   if test "$tst_compi_strerror_r" = "yes" &&
42557     test "$tst_works_glibc_strerror_r" != "yes"; then
42558     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
42559 printf %s "checking if strerror_r is POSIX like... " >&6; }
42560     tst_posix_strerror_r_type_arg3="unknown"
42561     for arg3 in 'size_t' 'int' 'unsigned int'; do
42562       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
42563         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42564 /* end confdefs.h.  */
42565
42566
42567             $curl_includes_string
42568             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
42569
42570 int main (void)
42571 {
42572
42573             if(0 != strerror_r(0, 0, 0))
42574               return 1;
42575
42576  ;
42577  return 0;
42578 }
42579
42580 _ACEOF
42581 if ac_fn_c_try_compile "$LINENO"
42582 then :
42583
42584           tst_posix_strerror_r_type_arg3="$arg3"
42585
42586 fi
42587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42588       fi
42589     done
42590     case "$tst_posix_strerror_r_type_arg3" in
42591       unknown)
42592         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42593 printf "%s\n" "no" >&6; }
42594         tst_posix_strerror_r="no"
42595         ;;
42596       *)
42597         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42598 printf "%s\n" "yes" >&6; }
42599         tst_posix_strerror_r="yes"
42600         ;;
42601     esac
42602   fi
42603   #
42604     if test "x$cross_compiling" != "xyes" &&
42605     test "$tst_posix_strerror_r" = "yes"; then
42606     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
42607 printf %s "checking if strerror_r seems to work... " >&6; }
42608
42609    case $host_os in
42610      darwin*)
42611       if test "$cross_compiling" = yes
42612 then :
42613   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42614 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42615 as_fn_error $? "cannot run test program while cross compiling
42616 See \`config.log' for more details" "$LINENO" 5; }
42617 else $as_nop
42618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42619 /* end confdefs.h.  */
42620
42621
42622         $curl_includes_stdlib
42623         $curl_includes_string
42624 #       include <errno.h>
42625
42626 int main (void)
42627 {
42628
42629         char buffer[1024];
42630         int error = 1;
42631         buffer[0] = '\0';
42632         error = strerror_r(EACCES, buffer, sizeof(buffer));
42633         if(error)
42634           exit(1); /* fail */
42635         if(buffer[0] == '\0')
42636           exit(1); /* fail */
42637         else
42638           exit(0);
42639
42640  ;
42641  return 0;
42642 }
42643
42644 _ACEOF
42645 if ac_fn_c_try_run "$LINENO"
42646 then :
42647   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42648 printf "%s\n" "yes" >&6; }
42649       tst_works_posix_strerror_r="yes"
42650
42651 else $as_nop
42652   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42653 printf "%s\n" "no" >&6; }
42654       tst_works_posix_strerror_r="no"
42655
42656 fi
42657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42658   conftest.$ac_objext conftest.beam conftest.$ac_ext
42659 fi
42660
42661      ;;
42662      *)
42663       old=$LD_LIBRARY_PATH
42664       LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
42665       export LD_LIBRARY_PATH
42666       if test "$cross_compiling" = yes
42667 then :
42668   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42669 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42670 as_fn_error $? "cannot run test program while cross compiling
42671 See \`config.log' for more details" "$LINENO" 5; }
42672 else $as_nop
42673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42674 /* end confdefs.h.  */
42675
42676
42677         $curl_includes_stdlib
42678         $curl_includes_string
42679 #       include <errno.h>
42680
42681 int main (void)
42682 {
42683
42684         char buffer[1024];
42685         int error = 1;
42686         buffer[0] = '\0';
42687         error = strerror_r(EACCES, buffer, sizeof(buffer));
42688         if(error)
42689           exit(1); /* fail */
42690         if(buffer[0] == '\0')
42691           exit(1); /* fail */
42692         else
42693           exit(0);
42694
42695  ;
42696  return 0;
42697 }
42698
42699 _ACEOF
42700 if ac_fn_c_try_run "$LINENO"
42701 then :
42702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42703 printf "%s\n" "yes" >&6; }
42704       tst_works_posix_strerror_r="yes"
42705
42706 else $as_nop
42707   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42708 printf "%s\n" "no" >&6; }
42709       tst_works_posix_strerror_r="no"
42710
42711 fi
42712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42713   conftest.$ac_objext conftest.beam conftest.$ac_ext
42714 fi
42715
42716       LD_LIBRARY_PATH=$old # restore
42717      ;;
42718    esac
42719
42720   fi
42721   #
42722   if test "$tst_works_glibc_strerror_r" = "yes"; then
42723     tst_posix_strerror_r="no"
42724   fi
42725   if test "$tst_works_posix_strerror_r" = "yes"; then
42726     tst_glibc_strerror_r="no"
42727   fi
42728   if test "$tst_glibc_strerror_r" = "yes" &&
42729     test "$tst_works_glibc_strerror_r" != "no" &&
42730     test "$tst_posix_strerror_r" != "yes"; then
42731     tst_allow_strerror_r="check"
42732   fi
42733   if test "$tst_posix_strerror_r" = "yes" &&
42734     test "$tst_works_posix_strerror_r" != "no" &&
42735     test "$tst_glibc_strerror_r" != "yes"; then
42736     tst_allow_strerror_r="check"
42737   fi
42738   if test "$tst_allow_strerror_r" = "check"; then
42739     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
42740 printf %s "checking if strerror_r usage allowed... " >&6; }
42741     if test "x$curl_disallow_strerror_r" != "xyes"; then
42742       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42743 printf "%s\n" "yes" >&6; }
42744       tst_allow_strerror_r="yes"
42745     else
42746       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42747 printf "%s\n" "no" >&6; }
42748       tst_allow_strerror_r="no"
42749     fi
42750   fi
42751   #
42752   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
42753 printf %s "checking if strerror_r might be used... " >&6; }
42754   if test "$tst_links_strerror_r" = "yes" &&
42755      test "$tst_proto_strerror_r" = "yes" &&
42756      test "$tst_compi_strerror_r" = "yes" &&
42757      test "$tst_allow_strerror_r" = "yes"; then
42758     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42759 printf "%s\n" "yes" >&6; }
42760     if test "$tst_glibc_strerror_r" = "yes"; then
42761
42762 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
42763
42764
42765 printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h
42766
42767     fi
42768     if test "$tst_posix_strerror_r" = "yes"; then
42769
42770 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
42771
42772
42773 printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h
42774
42775     fi
42776     curl_cv_func_strerror_r="yes"
42777   else
42778     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42779 printf "%s\n" "no" >&6; }
42780     curl_cv_func_strerror_r="no"
42781   fi
42782   #
42783   if test "$tst_compi_strerror_r" = "yes" &&
42784      test "$tst_allow_strerror_r" = "unknown"; then
42785     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
42786 printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
42787   fi
42788   #
42789
42790
42791     #
42792   tst_links_stricmp="unknown"
42793   tst_proto_stricmp="unknown"
42794   tst_compi_stricmp="unknown"
42795   tst_allow_stricmp="unknown"
42796   #
42797   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
42798 printf %s "checking if stricmp can be linked... " >&6; }
42799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42800 /* end confdefs.h.  */
42801
42802
42803 #define stricmp innocuous_stricmp
42804 #ifdef __STDC__
42805 # include <limits.h>
42806 #else
42807 # include <assert.h>
42808 #endif
42809 #undef stricmp
42810 #ifdef __cplusplus
42811 extern "C"
42812 #endif
42813 char stricmp ();
42814 #if defined __stub_stricmp || defined __stub___stricmp
42815 choke me
42816 #endif
42817
42818 int main (void)
42819 {
42820 return stricmp ();
42821  ;
42822  return 0;
42823 }
42824
42825 _ACEOF
42826 if ac_fn_c_try_link "$LINENO"
42827 then :
42828
42829     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42830 printf "%s\n" "yes" >&6; }
42831     tst_links_stricmp="yes"
42832
42833 else $as_nop
42834
42835     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42836 printf "%s\n" "no" >&6; }
42837     tst_links_stricmp="no"
42838
42839 fi
42840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42841     conftest$ac_exeext conftest.$ac_ext
42842   #
42843   if test "$tst_links_stricmp" = "yes"; then
42844     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
42845 printf %s "checking if stricmp is prototyped... " >&6; }
42846     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42847 /* end confdefs.h.  */
42848
42849       $curl_includes_string
42850
42851 _ACEOF
42852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42853   $EGREP "stricmp" >/dev/null 2>&1
42854 then :
42855
42856       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42857 printf "%s\n" "yes" >&6; }
42858       tst_proto_stricmp="yes"
42859
42860 else $as_nop
42861
42862       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42863 printf "%s\n" "no" >&6; }
42864       tst_proto_stricmp="no"
42865
42866 fi
42867 rm -rf conftest*
42868
42869   fi
42870   #
42871   if test "$tst_proto_stricmp" = "yes"; then
42872     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
42873 printf %s "checking if stricmp is compilable... " >&6; }
42874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42875 /* end confdefs.h.  */
42876
42877
42878         $curl_includes_string
42879
42880 int main (void)
42881 {
42882
42883         if(0 != stricmp(0, 0))
42884           return 1;
42885
42886  ;
42887  return 0;
42888 }
42889
42890 _ACEOF
42891 if ac_fn_c_try_compile "$LINENO"
42892 then :
42893
42894       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42895 printf "%s\n" "yes" >&6; }
42896       tst_compi_stricmp="yes"
42897
42898 else $as_nop
42899
42900       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42901 printf "%s\n" "no" >&6; }
42902       tst_compi_stricmp="no"
42903
42904 fi
42905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42906   fi
42907   #
42908   if test "$tst_compi_stricmp" = "yes"; then
42909     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
42910 printf %s "checking if stricmp usage allowed... " >&6; }
42911     if test "x$curl_disallow_stricmp" != "xyes"; then
42912       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42913 printf "%s\n" "yes" >&6; }
42914       tst_allow_stricmp="yes"
42915     else
42916       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42917 printf "%s\n" "no" >&6; }
42918       tst_allow_stricmp="no"
42919     fi
42920   fi
42921   #
42922   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
42923 printf %s "checking if stricmp might be used... " >&6; }
42924   if test "$tst_links_stricmp" = "yes" &&
42925      test "$tst_proto_stricmp" = "yes" &&
42926      test "$tst_compi_stricmp" = "yes" &&
42927      test "$tst_allow_stricmp" = "yes"; then
42928     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42929 printf "%s\n" "yes" >&6; }
42930
42931 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
42932
42933     curl_cv_func_stricmp="yes"
42934   else
42935     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42936 printf "%s\n" "no" >&6; }
42937     curl_cv_func_stricmp="no"
42938   fi
42939
42940
42941     #
42942   tst_links_strtok_r="unknown"
42943   tst_proto_strtok_r="unknown"
42944   tst_compi_strtok_r="unknown"
42945   tst_allow_strtok_r="unknown"
42946   #
42947   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
42948 printf %s "checking if strtok_r can be linked... " >&6; }
42949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42950 /* end confdefs.h.  */
42951
42952
42953 #define strtok_r innocuous_strtok_r
42954 #ifdef __STDC__
42955 # include <limits.h>
42956 #else
42957 # include <assert.h>
42958 #endif
42959 #undef strtok_r
42960 #ifdef __cplusplus
42961 extern "C"
42962 #endif
42963 char strtok_r ();
42964 #if defined __stub_strtok_r || defined __stub___strtok_r
42965 choke me
42966 #endif
42967
42968 int main (void)
42969 {
42970 return strtok_r ();
42971  ;
42972  return 0;
42973 }
42974
42975 _ACEOF
42976 if ac_fn_c_try_link "$LINENO"
42977 then :
42978
42979     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42980 printf "%s\n" "yes" >&6; }
42981     tst_links_strtok_r="yes"
42982
42983 else $as_nop
42984
42985     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42986 printf "%s\n" "no" >&6; }
42987     tst_links_strtok_r="no"
42988
42989 fi
42990 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42991     conftest$ac_exeext conftest.$ac_ext
42992   #
42993   if test "$tst_links_strtok_r" = "yes"; then
42994     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
42995 printf %s "checking if strtok_r is prototyped... " >&6; }
42996     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42997 /* end confdefs.h.  */
42998
42999       $curl_includes_string
43000
43001 _ACEOF
43002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43003   $EGREP "strtok_r" >/dev/null 2>&1
43004 then :
43005
43006       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43007 printf "%s\n" "yes" >&6; }
43008       tst_proto_strtok_r="yes"
43009
43010 else $as_nop
43011
43012       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43013 printf "%s\n" "no" >&6; }
43014       tst_proto_strtok_r="no"
43015
43016 fi
43017 rm -rf conftest*
43018
43019   fi
43020   #
43021   if test "$tst_proto_strtok_r" = "yes"; then
43022     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
43023 printf %s "checking if strtok_r is compilable... " >&6; }
43024     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43025 /* end confdefs.h.  */
43026
43027
43028         $curl_includes_string
43029
43030 int main (void)
43031 {
43032
43033         if(0 != strtok_r(0, 0, 0))
43034           return 1;
43035
43036  ;
43037  return 0;
43038 }
43039
43040 _ACEOF
43041 if ac_fn_c_try_compile "$LINENO"
43042 then :
43043
43044       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43045 printf "%s\n" "yes" >&6; }
43046       tst_compi_strtok_r="yes"
43047
43048 else $as_nop
43049
43050       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43051 printf "%s\n" "no" >&6; }
43052       tst_compi_strtok_r="no"
43053
43054 fi
43055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43056   fi
43057   #
43058   if test "$tst_compi_strtok_r" = "yes"; then
43059     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
43060 printf %s "checking if strtok_r usage allowed... " >&6; }
43061     if test "x$curl_disallow_strtok_r" != "xyes"; then
43062       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43063 printf "%s\n" "yes" >&6; }
43064       tst_allow_strtok_r="yes"
43065     else
43066       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43067 printf "%s\n" "no" >&6; }
43068       tst_allow_strtok_r="no"
43069     fi
43070   fi
43071   #
43072   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
43073 printf %s "checking if strtok_r might be used... " >&6; }
43074   if test "$tst_links_strtok_r" = "yes" &&
43075      test "$tst_proto_strtok_r" = "yes" &&
43076      test "$tst_compi_strtok_r" = "yes" &&
43077      test "$tst_allow_strtok_r" = "yes"; then
43078     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43079 printf "%s\n" "yes" >&6; }
43080
43081 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
43082
43083     curl_cv_func_strtok_r="yes"
43084   else
43085     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43086 printf "%s\n" "no" >&6; }
43087     curl_cv_func_strtok_r="no"
43088   fi
43089
43090
43091     #
43092   tst_links_strtoll="unknown"
43093   tst_proto_strtoll="unknown"
43094   tst_compi_strtoll="unknown"
43095   tst_allow_strtoll="unknown"
43096   #
43097   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
43098 printf %s "checking if strtoll can be linked... " >&6; }
43099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43100 /* end confdefs.h.  */
43101
43102
43103 #define strtoll innocuous_strtoll
43104 #ifdef __STDC__
43105 # include <limits.h>
43106 #else
43107 # include <assert.h>
43108 #endif
43109 #undef strtoll
43110 #ifdef __cplusplus
43111 extern "C"
43112 #endif
43113 char strtoll ();
43114 #if defined __stub_strtoll || defined __stub___strtoll
43115 choke me
43116 #endif
43117
43118 int main (void)
43119 {
43120 return strtoll ();
43121  ;
43122  return 0;
43123 }
43124
43125 _ACEOF
43126 if ac_fn_c_try_link "$LINENO"
43127 then :
43128
43129     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43130 printf "%s\n" "yes" >&6; }
43131     tst_links_strtoll="yes"
43132
43133 else $as_nop
43134
43135     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43136 printf "%s\n" "no" >&6; }
43137     tst_links_strtoll="no"
43138
43139 fi
43140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43141     conftest$ac_exeext conftest.$ac_ext
43142   #
43143   if test "$tst_links_strtoll" = "yes"; then
43144     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
43145 printf %s "checking if strtoll is prototyped... " >&6; }
43146     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43147 /* end confdefs.h.  */
43148
43149       $curl_includes_stdlib
43150
43151 _ACEOF
43152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43153   $EGREP "strtoll" >/dev/null 2>&1
43154 then :
43155
43156       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43157 printf "%s\n" "yes" >&6; }
43158       tst_proto_strtoll="yes"
43159
43160 else $as_nop
43161
43162       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43163 printf "%s\n" "no" >&6; }
43164       tst_proto_strtoll="no"
43165
43166 fi
43167 rm -rf conftest*
43168
43169   fi
43170   #
43171   if test "$tst_proto_strtoll" = "yes"; then
43172     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
43173 printf %s "checking if strtoll is compilable... " >&6; }
43174     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43175 /* end confdefs.h.  */
43176
43177
43178         $curl_includes_stdlib
43179
43180 int main (void)
43181 {
43182
43183         if(0 != strtoll(0, 0, 0))
43184           return 1;
43185
43186  ;
43187  return 0;
43188 }
43189
43190 _ACEOF
43191 if ac_fn_c_try_compile "$LINENO"
43192 then :
43193
43194       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43195 printf "%s\n" "yes" >&6; }
43196       tst_compi_strtoll="yes"
43197
43198 else $as_nop
43199
43200       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43201 printf "%s\n" "no" >&6; }
43202       tst_compi_strtoll="no"
43203
43204 fi
43205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43206   fi
43207   #
43208   if test "$tst_compi_strtoll" = "yes"; then
43209     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
43210 printf %s "checking if strtoll usage allowed... " >&6; }
43211     if test "x$curl_disallow_strtoll" != "xyes"; then
43212       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43213 printf "%s\n" "yes" >&6; }
43214       tst_allow_strtoll="yes"
43215     else
43216       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43217 printf "%s\n" "no" >&6; }
43218       tst_allow_strtoll="no"
43219     fi
43220   fi
43221   #
43222   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
43223 printf %s "checking if strtoll might be used... " >&6; }
43224   if test "$tst_links_strtoll" = "yes" &&
43225      test "$tst_proto_strtoll" = "yes" &&
43226      test "$tst_compi_strtoll" = "yes" &&
43227      test "$tst_allow_strtoll" = "yes"; then
43228     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43229 printf "%s\n" "yes" >&6; }
43230
43231 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
43232
43233     curl_cv_func_strtoll="yes"
43234   else
43235     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43236 printf "%s\n" "no" >&6; }
43237     curl_cv_func_strtoll="no"
43238   fi
43239
43240
43241 case $host in
43242   *msdosdjgpp)
43243      ac_cv_func_pipe=no
43244      skipcheck_pipe=yes
43245      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
43246 printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;}
43247     ;;
43248 esac
43249
43250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
43251 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
43252 if test ${ac_cv_c_undeclared_builtin_options+y}
43253 then :
43254   printf %s "(cached) " >&6
43255 else $as_nop
43256   ac_save_CFLAGS=$CFLAGS
43257    ac_cv_c_undeclared_builtin_options='cannot detect'
43258    for ac_arg in '' -fno-builtin; do
43259      CFLAGS="$ac_save_CFLAGS $ac_arg"
43260      # This test program should *not* compile successfully.
43261      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43262 /* end confdefs.h.  */
43263
43264 int main (void)
43265 {
43266 (void) strchr;
43267  ;
43268  return 0;
43269 }
43270 _ACEOF
43271 if ac_fn_c_try_compile "$LINENO"
43272 then :
43273
43274 else $as_nop
43275   # This test program should compile successfully.
43276         # No library function is consistently available on
43277         # freestanding implementations, so test against a dummy
43278         # declaration.  Include always-available headers on the
43279         # off chance that they somehow elicit warnings.
43280         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43281 /* end confdefs.h.  */
43282 #include <float.h>
43283 #include <limits.h>
43284 #include <stdarg.h>
43285 #include <stddef.h>
43286 extern void ac_decl (int, char *);
43287
43288 int main (void)
43289 {
43290 (void) ac_decl (0, (char *) 0);
43291   (void) ac_decl;
43292
43293  ;
43294  return 0;
43295 }
43296 _ACEOF
43297 if ac_fn_c_try_compile "$LINENO"
43298 then :
43299   if test x"$ac_arg" = x
43300 then :
43301   ac_cv_c_undeclared_builtin_options='none needed'
43302 else $as_nop
43303   ac_cv_c_undeclared_builtin_options=$ac_arg
43304 fi
43305           break
43306 fi
43307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43308 fi
43309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43310     done
43311     CFLAGS=$ac_save_CFLAGS
43312
43313 fi
43314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
43315 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
43316   case $ac_cv_c_undeclared_builtin_options in #(
43317   'cannot detect') :
43318     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43319 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43320 as_fn_error $? "cannot make $CC report undeclared builtins
43321 See \`config.log' for more details" "$LINENO" 5; } ;; #(
43322   'none needed') :
43323     ac_c_undeclared_builtin_options='' ;; #(
43324   *) :
43325     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
43326 esac
43327
43328 ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
43329           #include <sys/types.h>
43330 " "$ac_c_undeclared_builtin_options" "CFLAGS"
43331 if test "x$ac_cv_have_decl_getpwuid_r" = xyes
43332 then :
43333   ac_have_decl=1
43334 else $as_nop
43335   ac_have_decl=0
43336 fi
43337 printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h
43338 if test $ac_have_decl = 1
43339 then :
43340
43341 else $as_nop
43342
43343 printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
43344
43345 fi
43346
43347
43348
43349
43350   for ac_func in fnmatch fchmod geteuid getpass_r getppid getpwuid getpwuid_r getrlimit gettimeofday if_nametoindex mach_absolute_time pipe sched_yield sendmsg setlocale setmode setrlimit snprintf utime utimes
43351 do :
43352   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
43353 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43354 if eval test \"x\$"$as_ac_var"\" = x"yes"
43355 then :
43356   cat >>confdefs.h <<_ACEOF
43357 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
43358 _ACEOF
43359
43360
43361 else $as_nop
43362
43363   func="$ac_func"
43364   eval skipcheck=\$skipcheck_$func
43365   if test "x$skipcheck" != "xyes"; then
43366     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
43367 printf %s "checking deeper for $func... " >&6; }
43368     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43369 /* end confdefs.h.  */
43370
43371
43372
43373 int main (void)
43374 {
43375
43376         $func ();
43377
43378  ;
43379  return 0;
43380 }
43381
43382 _ACEOF
43383 if ac_fn_c_try_link "$LINENO"
43384 then :
43385
43386       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43387 printf "%s\n" "yes" >&6; }
43388       eval "ac_cv_func_$func=yes"
43389
43390 cat >>confdefs.h <<_ACEOF
43391 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
43392 _ACEOF
43393
43394
43395 else $as_nop
43396
43397       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
43398 printf "%s\n" "but still no" >&6; }
43399
43400 fi
43401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43402     conftest$ac_exeext conftest.$ac_ext
43403   fi
43404
43405 fi
43406
43407 done
43408
43409
43410         #
43411   tst_method="unknown"
43412
43413   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
43414 printf %s "checking how to set a socket into non-blocking mode... " >&6; }
43415   if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
43416     tst_method="fcntl O_NONBLOCK"
43417   elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
43418     tst_method="ioctl FIONBIO"
43419   elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
43420     tst_method="ioctlsocket FIONBIO"
43421   elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
43422     tst_method="IoctlSocket FIONBIO"
43423   elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
43424     tst_method="setsockopt SO_NONBLOCK"
43425   fi
43426   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
43427 printf "%s\n" "$tst_method" >&6; }
43428   if test "$tst_method" = "unknown"; then
43429     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
43430 printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
43431   fi
43432
43433
43434
43435 # Extract the first word of "perl", so it can be a program name with args.
43436 set dummy perl; ac_word=$2
43437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43438 printf %s "checking for $ac_word... " >&6; }
43439 if test ${ac_cv_path_PERL+y}
43440 then :
43441   printf %s "(cached) " >&6
43442 else $as_nop
43443   case $PERL in
43444   [\\/]* | ?:[\\/]*)
43445   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
43446   ;;
43447   *)
43448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43449 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
43450 for as_dir in $as_dummy
43451 do
43452   IFS=$as_save_IFS
43453   case $as_dir in #(((
43454     '') as_dir=./ ;;
43455     */) ;;
43456     *) as_dir=$as_dir/ ;;
43457   esac
43458     for ac_exec_ext in '' $ac_executable_extensions; do
43459   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43460     ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
43461     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43462     break 2
43463   fi
43464 done
43465   done
43466 IFS=$as_save_IFS
43467
43468   ;;
43469 esac
43470 fi
43471 PERL=$ac_cv_path_PERL
43472 if test -n "$PERL"; then
43473   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
43474 printf "%s\n" "$PERL" >&6; }
43475 else
43476   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43477 printf "%s\n" "no" >&6; }
43478 fi
43479
43480
43481
43482
43483 for ac_prog in gnroff nroff
43484 do
43485   # Extract the first word of "$ac_prog", so it can be a program name with args.
43486 set dummy $ac_prog; ac_word=$2
43487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43488 printf %s "checking for $ac_word... " >&6; }
43489 if test ${ac_cv_path_NROFF+y}
43490 then :
43491   printf %s "(cached) " >&6
43492 else $as_nop
43493   case $NROFF in
43494   [\\/]* | ?:[\\/]*)
43495   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
43496   ;;
43497   *)
43498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43499 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
43500 for as_dir in $as_dummy
43501 do
43502   IFS=$as_save_IFS
43503   case $as_dir in #(((
43504     '') as_dir=./ ;;
43505     */) ;;
43506     *) as_dir=$as_dir/ ;;
43507   esac
43508     for ac_exec_ext in '' $ac_executable_extensions; do
43509   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43510     ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
43511     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43512     break 2
43513   fi
43514 done
43515   done
43516 IFS=$as_save_IFS
43517
43518   ;;
43519 esac
43520 fi
43521 NROFF=$ac_cv_path_NROFF
43522 if test -n "$NROFF"; then
43523   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
43524 printf "%s\n" "$NROFF" >&6; }
43525 else
43526   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43527 printf "%s\n" "no" >&6; }
43528 fi
43529
43530
43531   test -n "$NROFF" && break
43532 done
43533
43534
43535
43536 if test -n "$NROFF"; then
43537
43538   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
43539 printf %s "checking how to use *nroff to get plain text from man pages... " >&6; }
43540   MANOPT="-man"
43541   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43542   if test -z "$mancheck"; then
43543     MANOPT="-mandoc"
43544    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43545     if test -z "$mancheck"; then
43546       MANOPT=""
43547       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
43548 printf "%s\n" "failed" >&6; }
43549       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
43550 printf "%s\n" "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
43551     else
43552       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43553 printf "%s\n" "$MANOPT" >&6; }
43554     fi
43555   else
43556     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43557 printf "%s\n" "$MANOPT" >&6; }
43558   fi
43559
43560 fi
43561
43562 if test -z "$MANOPT"
43563 then
43564       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
43565 printf "%s\n" "$as_me: WARNING: disabling built-in manual" >&2;}
43566   USE_MANUAL="no";
43567 fi
43568
43569
43570 if test "$USE_MANUAL" = "1"; then
43571
43572 printf "%s\n" "#define USE_MANUAL 1" >>confdefs.h
43573
43574   curl_manual_msg="enabled"
43575 fi
43576
43577  if test x"$USE_MANUAL" = x1; then
43578   USE_MANUAL_TRUE=
43579   USE_MANUAL_FALSE='#'
43580 else
43581   USE_MANUAL_TRUE='#'
43582   USE_MANUAL_FALSE=
43583 fi
43584
43585
43586
43587   #
43588   if test "$want_ares" = "yes"; then
43589         clean_CPPFLAGS="$CPPFLAGS"
43590     clean_LDFLAGS="$LDFLAGS"
43591     clean_LIBS="$LIBS"
43592     configure_runpath=`pwd`
43593     if test -n "$want_ares_path"; then
43594             ARES_PCDIR="$want_ares_path/lib/pkgconfig"
43595
43596     if test -n "$PKG_CONFIG"; then
43597       PKGCONFIG="$PKG_CONFIG"
43598     else
43599       if test -n "$ac_tool_prefix"; then
43600   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43601 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43603 printf %s "checking for $ac_word... " >&6; }
43604 if test ${ac_cv_path_PKGCONFIG+y}
43605 then :
43606   printf %s "(cached) " >&6
43607 else $as_nop
43608   case $PKGCONFIG in
43609   [\\/]* | ?:[\\/]*)
43610   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
43611   ;;
43612   *)
43613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43614 as_dummy="$PATH:/usr/bin:/usr/local/bin"
43615 for as_dir in $as_dummy
43616 do
43617   IFS=$as_save_IFS
43618   case $as_dir in #(((
43619     '') as_dir=./ ;;
43620     */) ;;
43621     *) as_dir=$as_dir/ ;;
43622   esac
43623     for ac_exec_ext in '' $ac_executable_extensions; do
43624   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43625     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43626     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43627     break 2
43628   fi
43629 done
43630   done
43631 IFS=$as_save_IFS
43632
43633   ;;
43634 esac
43635 fi
43636 PKGCONFIG=$ac_cv_path_PKGCONFIG
43637 if test -n "$PKGCONFIG"; then
43638   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
43639 printf "%s\n" "$PKGCONFIG" >&6; }
43640 else
43641   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43642 printf "%s\n" "no" >&6; }
43643 fi
43644
43645
43646 fi
43647 if test -z "$ac_cv_path_PKGCONFIG"; then
43648   ac_pt_PKGCONFIG=$PKGCONFIG
43649   # Extract the first word of "pkg-config", so it can be a program name with args.
43650 set dummy pkg-config; ac_word=$2
43651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43652 printf %s "checking for $ac_word... " >&6; }
43653 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
43654 then :
43655   printf %s "(cached) " >&6
43656 else $as_nop
43657   case $ac_pt_PKGCONFIG in
43658   [\\/]* | ?:[\\/]*)
43659   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
43660   ;;
43661   *)
43662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43663 as_dummy="$PATH:/usr/bin:/usr/local/bin"
43664 for as_dir in $as_dummy
43665 do
43666   IFS=$as_save_IFS
43667   case $as_dir in #(((
43668     '') as_dir=./ ;;
43669     */) ;;
43670     *) as_dir=$as_dir/ ;;
43671   esac
43672     for ac_exec_ext in '' $ac_executable_extensions; do
43673   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43674     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43675     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43676     break 2
43677   fi
43678 done
43679   done
43680 IFS=$as_save_IFS
43681
43682   ;;
43683 esac
43684 fi
43685 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
43686 if test -n "$ac_pt_PKGCONFIG"; then
43687   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
43688 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
43689 else
43690   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43691 printf "%s\n" "no" >&6; }
43692 fi
43693
43694   if test "x$ac_pt_PKGCONFIG" = x; then
43695     PKGCONFIG="no"
43696   else
43697     case $cross_compiling:$ac_tool_warned in
43698 yes:)
43699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43700 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43701 ac_tool_warned=yes ;;
43702 esac
43703     PKGCONFIG=$ac_pt_PKGCONFIG
43704   fi
43705 else
43706   PKGCONFIG="$ac_cv_path_PKGCONFIG"
43707 fi
43708
43709     fi
43710
43711     if test "x$PKGCONFIG" != "xno"; then
43712       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
43713 printf %s "checking for libcares options with pkg-config... " >&6; }
43714             itexists=`
43715     if test -n "$ARES_PCDIR"; then
43716       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43717       export PKG_CONFIG_LIBDIR
43718     fi
43719          $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
43720
43721       if test -z "$itexists"; then
43722                         PKGCONFIG="no"
43723         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43724 printf "%s\n" "no" >&6; }
43725       else
43726         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
43727 printf "%s\n" "found" >&6; }
43728       fi
43729     fi
43730
43731       if test "$PKGCONFIG" != "no" ; then
43732         ares_LIBS=`
43733     if test -n "$ARES_PCDIR"; then
43734       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43735       export PKG_CONFIG_LIBDIR
43736     fi
43737
43738           $PKGCONFIG --libs-only-l libcares`
43739         ares_LDFLAGS=`
43740     if test -n "$ARES_PCDIR"; then
43741       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43742       export PKG_CONFIG_LIBDIR
43743     fi
43744
43745           $PKGCONFIG --libs-only-L libcares`
43746         ares_CPPFLAGS=`
43747     if test -n "$ARES_PCDIR"; then
43748       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43749       export PKG_CONFIG_LIBDIR
43750     fi
43751
43752           $PKGCONFIG --cflags-only-I libcares`
43753         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
43754 printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
43755         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
43756 printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
43757         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
43758 printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
43759       else
43760                 ares_CPPFLAGS="-I$want_ares_path/include"
43761         ares_LDFLAGS="-L$want_ares_path/lib"
43762         ares_LIBS="-lcares"
43763       fi
43764     else
43765
43766     if test -n "$PKG_CONFIG"; then
43767       PKGCONFIG="$PKG_CONFIG"
43768     else
43769       if test -n "$ac_tool_prefix"; then
43770   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43771 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43773 printf %s "checking for $ac_word... " >&6; }
43774 if test ${ac_cv_path_PKGCONFIG+y}
43775 then :
43776   printf %s "(cached) " >&6
43777 else $as_nop
43778   case $PKGCONFIG in
43779   [\\/]* | ?:[\\/]*)
43780   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
43781   ;;
43782   *)
43783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43784 as_dummy="$PATH:/usr/bin:/usr/local/bin"
43785 for as_dir in $as_dummy
43786 do
43787   IFS=$as_save_IFS
43788   case $as_dir in #(((
43789     '') as_dir=./ ;;
43790     */) ;;
43791     *) as_dir=$as_dir/ ;;
43792   esac
43793     for ac_exec_ext in '' $ac_executable_extensions; do
43794   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43795     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43796     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43797     break 2
43798   fi
43799 done
43800   done
43801 IFS=$as_save_IFS
43802
43803   ;;
43804 esac
43805 fi
43806 PKGCONFIG=$ac_cv_path_PKGCONFIG
43807 if test -n "$PKGCONFIG"; then
43808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
43809 printf "%s\n" "$PKGCONFIG" >&6; }
43810 else
43811   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43812 printf "%s\n" "no" >&6; }
43813 fi
43814
43815
43816 fi
43817 if test -z "$ac_cv_path_PKGCONFIG"; then
43818   ac_pt_PKGCONFIG=$PKGCONFIG
43819   # Extract the first word of "pkg-config", so it can be a program name with args.
43820 set dummy pkg-config; ac_word=$2
43821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43822 printf %s "checking for $ac_word... " >&6; }
43823 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
43824 then :
43825   printf %s "(cached) " >&6
43826 else $as_nop
43827   case $ac_pt_PKGCONFIG in
43828   [\\/]* | ?:[\\/]*)
43829   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
43830   ;;
43831   *)
43832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43833 as_dummy="$PATH:/usr/bin:/usr/local/bin"
43834 for as_dir in $as_dummy
43835 do
43836   IFS=$as_save_IFS
43837   case $as_dir in #(((
43838     '') as_dir=./ ;;
43839     */) ;;
43840     *) as_dir=$as_dir/ ;;
43841   esac
43842     for ac_exec_ext in '' $ac_executable_extensions; do
43843   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43844     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43845     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43846     break 2
43847   fi
43848 done
43849   done
43850 IFS=$as_save_IFS
43851
43852   ;;
43853 esac
43854 fi
43855 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
43856 if test -n "$ac_pt_PKGCONFIG"; then
43857   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
43858 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
43859 else
43860   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43861 printf "%s\n" "no" >&6; }
43862 fi
43863
43864   if test "x$ac_pt_PKGCONFIG" = x; then
43865     PKGCONFIG="no"
43866   else
43867     case $cross_compiling:$ac_tool_warned in
43868 yes:)
43869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43870 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43871 ac_tool_warned=yes ;;
43872 esac
43873     PKGCONFIG=$ac_pt_PKGCONFIG
43874   fi
43875 else
43876   PKGCONFIG="$ac_cv_path_PKGCONFIG"
43877 fi
43878
43879     fi
43880
43881     if test "x$PKGCONFIG" != "xno"; then
43882       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
43883 printf %s "checking for libcares options with pkg-config... " >&6; }
43884             itexists=`
43885     if test -n ""; then
43886       PKG_CONFIG_LIBDIR=""
43887       export PKG_CONFIG_LIBDIR
43888     fi
43889          $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
43890
43891       if test -z "$itexists"; then
43892                         PKGCONFIG="no"
43893         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43894 printf "%s\n" "no" >&6; }
43895       else
43896         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
43897 printf "%s\n" "found" >&6; }
43898       fi
43899     fi
43900
43901       if test "$PKGCONFIG" != "no" ; then
43902         ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
43903         ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
43904         ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
43905         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
43906 printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
43907         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
43908 printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
43909         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
43910 printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
43911       else
43912         ares_CPPFLAGS=""
43913         ares_LDFLAGS=""
43914         ares_LIBS="-lcares"
43915       fi
43916     fi
43917     #
43918     CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
43919     LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
43920     LIBS="$ares_LIBS $clean_LIBS"
43921     #
43922
43923         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
43924 printf %s "checking that c-ares is good and recent enough... " >&6; }
43925     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43926 /* end confdefs.h.  */
43927
43928
43929 #include <ares.h>
43930         /* set of dummy functions in case c-ares was built with debug */
43931         void curl_dofree() { }
43932         void curl_sclose() { }
43933         void curl_domalloc() { }
43934         void curl_docalloc() { }
43935         void curl_socket() { }
43936
43937 int main (void)
43938 {
43939
43940         ares_channel channel;
43941         ares_cancel(channel); /* added in 1.2.0 */
43942         ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
43943         ares_dup(&channel, channel); /* added in 1.6.0 */
43944
43945  ;
43946  return 0;
43947 }
43948
43949 _ACEOF
43950 if ac_fn_c_try_link "$LINENO"
43951 then :
43952
43953       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43954 printf "%s\n" "yes" >&6; }
43955
43956 else $as_nop
43957
43958       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43959 printf "%s\n" "no" >&6; }
43960       as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
43961             CPPFLAGS="$clean_CPPFLAGS"
43962       LDFLAGS="$clean_LDFLAGS"
43963       LIBS="$clean_LIBS"
43964       # prevent usage
43965       want_ares="no"
43966
43967 fi
43968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43969     conftest$ac_exeext conftest.$ac_ext
43970
43971     if test "$want_ares" = "yes"; then
43972
43973 printf "%s\n" "#define USE_ARES 1" >>confdefs.h
43974
43975       USE_ARES=1
43976
43977       curl_res_msg="c-ares"
43978     fi
43979   fi
43980
43981
43982 if test "x$curl_cv_native_windows" != "xyes" &&
43983    test "x$enable_shared" = "xyes"; then
43984   build_libhostname=yes
43985 else
43986   build_libhostname=no
43987 fi
43988  if test x$build_libhostname = xyes; then
43989   BUILD_LIBHOSTNAME_TRUE=
43990   BUILD_LIBHOSTNAME_FALSE='#'
43991 else
43992   BUILD_LIBHOSTNAME_TRUE='#'
43993   BUILD_LIBHOSTNAME_FALSE=
43994 fi
43995
43996
43997 if test "x$want_ares" != xyes; then
43998
43999   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
44000 printf %s "checking whether to enable the threaded resolver... " >&6; }
44001   OPT_THRES="default"
44002   # Check whether --enable-threaded_resolver was given.
44003 if test ${enable_threaded_resolver+y}
44004 then :
44005   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
44006 fi
44007
44008   case "$OPT_THRES" in
44009     no)
44010             want_thres="no"
44011       ;;
44012     *)
44013             want_thres="yes"
44014       ;;
44015   esac
44016   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
44017 printf "%s\n" "$want_thres" >&6; }
44018
44019 fi
44020
44021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
44022 printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; }
44023 # Check whether --enable-pthreads was given.
44024 if test ${enable_pthreads+y}
44025 then :
44026   enableval=$enable_pthreads;  case "$enableval" in
44027   no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44028 printf "%s\n" "no" >&6; }
44029        want_pthreads=no
44030        ;;
44031   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44032 printf "%s\n" "yes" >&6; }
44033        want_pthreads=yes
44034        ;;
44035   esac
44036 else $as_nop
44037
44038        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44039 printf "%s\n" "auto" >&6; }
44040        want_pthreads=auto
44041
44042
44043 fi
44044
44045
44046 if test "$want_pthreads" != "no"; then
44047   if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
44048     as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
44049   fi
44050   if test "$dontwant_rt" != "no"; then
44051         if test "$want_pthreads" = "yes"; then
44052       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
44053 printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
44054     fi
44055     want_pthreads=no
44056   fi
44057 fi
44058
44059 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
44060   want_pthreads=no
44061 fi
44062
44063 if test "$want_pthreads" != "no"; then
44064   ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
44065 if test "x$ac_cv_header_pthread_h" = xyes
44066 then :
44067
44068 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
44069
44070       save_CFLAGS="$CFLAGS"
44071                                     save_LIBS="$LIBS"
44072
44073       LIBS=
44074             ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
44075 if test "x$ac_cv_func_pthread_create" = xyes
44076 then :
44077   USE_THREADS_POSIX=1
44078 fi
44079
44080       LIBS="$save_LIBS"
44081
44082             case $host in
44083       *-hp-hpux*)
44084                   USE_THREADS_POSIX=""
44085          ;;
44086       *)
44087          ;;
44088       esac
44089
44090             if test "$USE_THREADS_POSIX" != "1"
44091       then
44092         # assign PTHREAD for pkg-config use
44093         PTHREAD=" -pthread"
44094
44095         case $host in
44096         *-ibm-aix*)
44097                       COMPILER_VERSION=`"$CC" -qversion 2>/dev/null`
44098            if test x"$COMPILER_VERSION" = "x"; then
44099              CFLAGS="$CFLAGS -pthread"
44100            else
44101              CFLAGS="$CFLAGS -qthreaded"
44102            fi
44103            ;;
44104         powerpc-*amigaos*)
44105                       PTHREAD=" -lpthread"
44106            ;;
44107         *)
44108            CFLAGS="$CFLAGS -pthread"
44109            ;;
44110         esac
44111         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
44112 printf %s "checking for pthread_create in -lpthread... " >&6; }
44113 if test ${ac_cv_lib_pthread_pthread_create+y}
44114 then :
44115   printf %s "(cached) " >&6
44116 else $as_nop
44117   ac_check_lib_save_LIBS=$LIBS
44118 LIBS="-lpthread  $LIBS"
44119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44120 /* end confdefs.h.  */
44121
44122
44123 #ifdef __cplusplus
44124 extern "C"
44125 #endif
44126 char pthread_create ();
44127 int main (void)
44128 {
44129 return pthread_create ();
44130  ;
44131  return 0;
44132 }
44133 _ACEOF
44134 if ac_fn_c_try_link "$LINENO"
44135 then :
44136   ac_cv_lib_pthread_pthread_create=yes
44137 else $as_nop
44138   ac_cv_lib_pthread_pthread_create=no
44139 fi
44140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44141     conftest$ac_exeext conftest.$ac_ext
44142 LIBS=$ac_check_lib_save_LIBS
44143 fi
44144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
44145 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
44146 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
44147 then :
44148   USE_THREADS_POSIX=1
44149 else $as_nop
44150    CFLAGS="$save_CFLAGS"
44151 fi
44152
44153       fi
44154
44155       if test "x$USE_THREADS_POSIX" = "x1"
44156       then
44157
44158 printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h
44159
44160         curl_res_msg="POSIX threaded"
44161       fi
44162
44163 fi
44164
44165 fi
44166
44167 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
44168   if test "$want_pthreads" = "yes"; then
44169     as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
44170   fi
44171     if test "$curl_cv_native_windows" = "yes"; then
44172     USE_THREADS_WIN32=1
44173
44174 printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h
44175
44176     curl_res_msg="Win32 threaded"
44177   else
44178     as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
44179   fi
44180 fi
44181
44182
44183       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
44184 printf %s "checking convert -I options to -isystem... " >&6; }
44185   if test "$compiler_id" = "GNU_C" ||
44186     test "$compiler_id" = "CLANG"; then
44187     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44188 printf "%s\n" "yes" >&6; }
44189     tmp_has_include="no"
44190     tmp_chg_FLAGS="$CFLAGS"
44191     for word1 in $tmp_chg_FLAGS; do
44192       case "$word1" in
44193         -I*)
44194           tmp_has_include="yes"
44195           ;;
44196       esac
44197     done
44198     if test "$tmp_has_include" = "yes"; then
44199       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44200       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44201       CFLAGS="$tmp_chg_FLAGS"
44202       squeeze CFLAGS
44203     fi
44204     tmp_has_include="no"
44205     tmp_chg_FLAGS="$CPPFLAGS"
44206     for word1 in $tmp_chg_FLAGS; do
44207       case "$word1" in
44208         -I*)
44209           tmp_has_include="yes"
44210           ;;
44211       esac
44212     done
44213     if test "$tmp_has_include" = "yes"; then
44214       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44215       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44216       CPPFLAGS="$tmp_chg_FLAGS"
44217       squeeze CPPFLAGS
44218     fi
44219   else
44220     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44221 printf "%s\n" "no" >&6; }
44222   fi
44223
44224
44225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
44226 printf %s "checking whether to enable verbose strings... " >&6; }
44227 # Check whether --enable-verbose was given.
44228 if test ${enable_verbose+y}
44229 then :
44230   enableval=$enable_verbose;  case "$enableval" in
44231   no)
44232        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44233 printf "%s\n" "no" >&6; }
44234
44235 printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
44236
44237        curl_verbose_msg="no"
44238        ;;
44239   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44240 printf "%s\n" "yes" >&6; }
44241        ;;
44242   esac
44243 else $as_nop
44244   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44245 printf "%s\n" "yes" >&6; }
44246
44247 fi
44248
44249
44250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
44251 printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
44252 # Check whether --enable-sspi was given.
44253 if test ${enable_sspi+y}
44254 then :
44255   enableval=$enable_sspi;  case "$enableval" in
44256   yes)
44257        if test "$curl_cv_native_windows" = "yes"; then
44258          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44259 printf "%s\n" "yes" >&6; }
44260
44261 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
44262
44263          USE_WINDOWS_SSPI=1
44264
44265          curl_sspi_msg="enabled"
44266        else
44267          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44268 printf "%s\n" "no" >&6; }
44269          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
44270 printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
44271        fi
44272        ;;
44273   *)
44274        if test "x$SCHANNEL_ENABLED" = "x1"; then
44275          # --with-schannel implies --enable-sspi
44276          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44277 printf "%s\n" "yes" >&6; }
44278        else
44279          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44280 printf "%s\n" "no" >&6; }
44281        fi
44282        ;;
44283   esac
44284 else $as_nop
44285   if test "x$SCHANNEL_ENABLED" = "x1"; then
44286          # --with-schannel implies --enable-sspi
44287          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44288 printf "%s\n" "yes" >&6; }
44289        else
44290          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44291 printf "%s\n" "no" >&6; }
44292        fi
44293
44294 fi
44295
44296
44297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
44298 printf %s "checking whether to enable cryptographic authentication methods... " >&6; }
44299 # Check whether --enable-crypto-auth was given.
44300 if test ${enable_crypto_auth+y}
44301 then :
44302   enableval=$enable_crypto_auth;  case "$enableval" in
44303   no)
44304        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44305 printf "%s\n" "no" >&6; }
44306
44307 printf "%s\n" "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
44308
44309        CURL_DISABLE_CRYPTO_AUTH=1
44310        ;;
44311   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44312 printf "%s\n" "yes" >&6; }
44313        ;;
44314   esac
44315 else $as_nop
44316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44317 printf "%s\n" "yes" >&6; }
44318
44319 fi
44320
44321
44322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5
44323 printf %s "checking whether to support NTLM... " >&6; }
44324 # Check whether --enable-ntlm was given.
44325 if test ${enable_ntlm+y}
44326 then :
44327   enableval=$enable_ntlm;  case "$enableval" in
44328   no)
44329        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44330 printf "%s\n" "no" >&6; }
44331
44332 printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h
44333
44334        CURL_DISABLE_NTLM=1
44335        ;;
44336   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44337 printf "%s\n" "yes" >&6; }
44338        ;;
44339   esac
44340 else $as_nop
44341   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44342 printf "%s\n" "yes" >&6; }
44343
44344 fi
44345
44346
44347
44348     OPT_NTLM_WB="default"
44349   # Check whether --enable-ntlm-wb was given.
44350 if test ${enable_ntlm_wb+y}
44351 then :
44352   enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
44353 fi
44354
44355   want_ntlm_wb_file="/usr/bin/ntlm_auth"
44356   case "$OPT_NTLM_WB" in
44357     no)
44358             want_ntlm_wb="no"
44359       ;;
44360     default)
44361             want_ntlm_wb="yes"
44362       ;;
44363     *)
44364             want_ntlm_wb="yes"
44365       if test -n "$enableval" && test "$enableval" != "yes"; then
44366         want_ntlm_wb_file="$enableval"
44367       fi
44368       ;;
44369   esac
44370
44371
44372
44373       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
44374 printf %s "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
44375   if test "$curl_cv_native_windows" = "yes" ||
44376     test "x$SSL_ENABLED" = "x"; then
44377     want_ntlm_wb_file=""
44378     want_ntlm_wb="no"
44379   fi
44380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
44381 printf "%s\n" "$want_ntlm_wb" >&6; }
44382   if test "$want_ntlm_wb" = "yes"; then
44383
44384 printf "%s\n" "#define NTLM_WB_ENABLED 1" >>confdefs.h
44385
44386
44387 printf "%s\n" "#define NTLM_WB_FILE \"$want_ntlm_wb_file\"" >>confdefs.h
44388
44389     NTLM_WB_ENABLED=1
44390   fi
44391
44392
44393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
44394 printf %s "checking whether to enable TLS-SRP authentication... " >&6; }
44395 # Check whether --enable-tls-srp was given.
44396 if test ${enable_tls_srp+y}
44397 then :
44398   enableval=$enable_tls_srp;  case "$enableval" in
44399   no)
44400        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44401 printf "%s\n" "no" >&6; }
44402        want_tls_srp=no
44403        ;;
44404   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44405 printf "%s\n" "yes" >&6; }
44406        want_tls_srp=yes
44407        ;;
44408   esac
44409 else $as_nop
44410   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44411 printf "%s\n" "yes" >&6; }
44412        want_tls_srp=yes
44413
44414 fi
44415
44416
44417 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
44418
44419 printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h
44420
44421    USE_TLS_SRP=1
44422    curl_tls_srp_msg="enabled"
44423 fi
44424
44425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
44426 printf %s "checking whether to enable Unix domain sockets... " >&6; }
44427 # Check whether --enable-unix-sockets was given.
44428 if test ${enable_unix_sockets+y}
44429 then :
44430   enableval=$enable_unix_sockets;  case "$enableval" in
44431   no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44432 printf "%s\n" "no" >&6; }
44433        want_unix_sockets=no
44434        ;;
44435   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44436 printf "%s\n" "yes" >&6; }
44437        want_unix_sockets=yes
44438        ;;
44439   esac
44440 else $as_nop
44441
44442        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44443 printf "%s\n" "auto" >&6; }
44444        want_unix_sockets=auto
44445
44446
44447 fi
44448
44449 if test "x$want_unix_sockets" != "xno"; then
44450   if test "x$curl_cv_native_windows" = "xyes"; then
44451     USE_UNIX_SOCKETS=1
44452
44453 printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
44454
44455     curl_unix_sockets_msg="enabled"
44456   else
44457     ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
44458       #include <sys/un.h>
44459
44460 "
44461 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
44462 then :
44463
44464
44465 printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
44466
44467       USE_UNIX_SOCKETS=1
44468
44469       curl_unix_sockets_msg="enabled"
44470
44471 else $as_nop
44472
44473       if test "x$want_unix_sockets" = "xyes"; then
44474         as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
44475       fi
44476
44477 fi
44478
44479   fi
44480 fi
44481
44482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
44483 printf %s "checking whether to support cookies... " >&6; }
44484 # Check whether --enable-cookies was given.
44485 if test ${enable_cookies+y}
44486 then :
44487   enableval=$enable_cookies;  case "$enableval" in
44488   no)
44489        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44490 printf "%s\n" "no" >&6; }
44491
44492 printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
44493
44494        ;;
44495   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44496 printf "%s\n" "yes" >&6; }
44497        ;;
44498   esac
44499 else $as_nop
44500   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44501 printf "%s\n" "yes" >&6; }
44502
44503 fi
44504
44505
44506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
44507 printf %s "checking whether to support socketpair... " >&6; }
44508 # Check whether --enable-socketpair was given.
44509 if test ${enable_socketpair+y}
44510 then :
44511   enableval=$enable_socketpair;  case "$enableval" in
44512   no)
44513        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44514 printf "%s\n" "no" >&6; }
44515
44516 printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
44517
44518        ;;
44519   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44520 printf "%s\n" "yes" >&6; }
44521        ;;
44522   esac
44523 else $as_nop
44524   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44525 printf "%s\n" "yes" >&6; }
44526
44527 fi
44528
44529
44530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
44531 printf %s "checking whether to support HTTP authentication... " >&6; }
44532 # Check whether --enable-http-auth was given.
44533 if test ${enable_http_auth+y}
44534 then :
44535   enableval=$enable_http_auth;  case "$enableval" in
44536   no)
44537        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44538 printf "%s\n" "no" >&6; }
44539
44540 printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
44541
44542        ;;
44543   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44544 printf "%s\n" "yes" >&6; }
44545        ;;
44546   esac
44547 else $as_nop
44548   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44549 printf "%s\n" "yes" >&6; }
44550
44551 fi
44552
44553
44554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
44555 printf %s "checking whether to support DoH... " >&6; }
44556 # Check whether --enable-doh was given.
44557 if test ${enable_doh+y}
44558 then :
44559   enableval=$enable_doh;  case "$enableval" in
44560   no)
44561        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44562 printf "%s\n" "no" >&6; }
44563
44564 printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h
44565
44566        ;;
44567   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44568 printf "%s\n" "yes" >&6; }
44569        ;;
44570   esac
44571 else $as_nop
44572   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44573 printf "%s\n" "yes" >&6; }
44574
44575 fi
44576
44577
44578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
44579 printf %s "checking whether to support the MIME API... " >&6; }
44580 # Check whether --enable-mime was given.
44581 if test ${enable_mime+y}
44582 then :
44583   enableval=$enable_mime;  case "$enableval" in
44584   no)
44585        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44586 printf "%s\n" "no" >&6; }
44587
44588 printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h
44589
44590        ;;
44591   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44592 printf "%s\n" "yes" >&6; }
44593        ;;
44594   esac
44595 else $as_nop
44596   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44597 printf "%s\n" "yes" >&6; }
44598
44599 fi
44600
44601
44602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
44603 printf %s "checking whether to support date parsing... " >&6; }
44604 # Check whether --enable-dateparse was given.
44605 if test ${enable_dateparse+y}
44606 then :
44607   enableval=$enable_dateparse;  case "$enableval" in
44608   no)
44609        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44610 printf "%s\n" "no" >&6; }
44611
44612 printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
44613
44614        ;;
44615   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44616 printf "%s\n" "yes" >&6; }
44617        ;;
44618   esac
44619 else $as_nop
44620   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44621 printf "%s\n" "yes" >&6; }
44622
44623 fi
44624
44625
44626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
44627 printf %s "checking whether to support netrc parsing... " >&6; }
44628 # Check whether --enable-netrc was given.
44629 if test ${enable_netrc+y}
44630 then :
44631   enableval=$enable_netrc;  case "$enableval" in
44632   no)
44633        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44634 printf "%s\n" "no" >&6; }
44635
44636 printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h
44637
44638        ;;
44639   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44640 printf "%s\n" "yes" >&6; }
44641        ;;
44642   esac
44643 else $as_nop
44644   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44645 printf "%s\n" "yes" >&6; }
44646
44647 fi
44648
44649
44650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
44651 printf %s "checking whether to support progress-meter... " >&6; }
44652 # Check whether --enable-progress-meter was given.
44653 if test ${enable_progress_meter+y}
44654 then :
44655   enableval=$enable_progress_meter;  case "$enableval" in
44656   no)
44657        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44658 printf "%s\n" "no" >&6; }
44659
44660 printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
44661
44662        ;;
44663   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44664 printf "%s\n" "yes" >&6; }
44665        ;;
44666   esac
44667 else $as_nop
44668   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44669 printf "%s\n" "yes" >&6; }
44670
44671 fi
44672
44673
44674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
44675 printf %s "checking whether to support DNS shuffling... " >&6; }
44676 # Check whether --enable-dnsshuffle was given.
44677 if test ${enable_dnsshuffle+y}
44678 then :
44679   enableval=$enable_dnsshuffle;  case "$enableval" in
44680   no)
44681        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44682 printf "%s\n" "no" >&6; }
44683
44684 printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
44685
44686        ;;
44687   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44688 printf "%s\n" "yes" >&6; }
44689        ;;
44690   esac
44691 else $as_nop
44692   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44693 printf "%s\n" "yes" >&6; }
44694
44695 fi
44696
44697
44698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
44699 printf %s "checking whether to support curl_easy_option*... " >&6; }
44700 # Check whether --enable-get-easy-options was given.
44701 if test ${enable_get_easy_options+y}
44702 then :
44703   enableval=$enable_get_easy_options;  case "$enableval" in
44704   no)
44705        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44706 printf "%s\n" "no" >&6; }
44707
44708 printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
44709
44710        ;;
44711   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44712 printf "%s\n" "yes" >&6; }
44713        ;;
44714   esac
44715 else $as_nop
44716   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44717 printf "%s\n" "yes" >&6; }
44718
44719 fi
44720
44721
44722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
44723 printf %s "checking whether to support alt-svc... " >&6; }
44724 # Check whether --enable-alt-svc was given.
44725 if test ${enable_alt_svc+y}
44726 then :
44727   enableval=$enable_alt_svc;  case "$enableval" in
44728   no)
44729        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44730 printf "%s\n" "no" >&6; }
44731
44732 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
44733
44734        curl_altsvc_msg="no";
44735        enable_altsvc="no"
44736        ;;
44737   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44738 printf "%s\n" "yes" >&6; }
44739        ;;
44740   esac
44741 else $as_nop
44742   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44743 printf "%s\n" "yes" >&6; }
44744
44745 fi
44746
44747
44748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support headers-api" >&5
44749 printf %s "checking whether to support headers-api... " >&6; }
44750 # Check whether --enable-headers-api was given.
44751 if test ${enable_headers_api+y}
44752 then :
44753   enableval=$enable_headers_api;  case "$enableval" in
44754   no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44755 printf "%s\n" "no" >&6; }
44756        curl_headers_msg="no      (--enable-headers-api)"
44757
44758 printf "%s\n" "#define CURL_DISABLE_HEADERS_API 1" >>confdefs.h
44759
44760        ;;
44761   *)
44762        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44763 printf "%s\n" "yes" >&6; }
44764        ;;
44765   esac
44766 else $as_nop
44767   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44768 printf "%s\n" "yes" >&6; }
44769
44770 fi
44771
44772
44773 if test -n "$SSL_ENABLED"; then
44774
44775         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5
44776 printf %s "checking whether to support HSTS... " >&6; }
44777   # Check whether --enable-hsts was given.
44778 if test ${enable_hsts+y}
44779 then :
44780   enableval=$enable_hsts;  case "$enableval" in
44781     no)
44782        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44783 printf "%s\n" "no" >&6; }
44784        hsts="no"
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: $hsts" >&5
44792 printf "%s\n" "$hsts" >&6; }
44793
44794 fi
44795
44796 else
44797   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5
44798 printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;}
44799   hsts="no"
44800 fi
44801
44802 if test "x$hsts" != "xyes"; then
44803   curl_hsts_msg="no      (--enable-hsts)";
44804
44805 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
44806
44807 fi
44808
44809 if test "x$want_ech" != "xno"; then
44810   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
44811 printf %s "checking whether ECH support is available... " >&6; }
44812
44813     ECH_ENABLED=0
44814   ECH_SUPPORT=''
44815
44816       if test "x$OPENSSL_ENABLED" = "x1"; then
44817
44818   for ac_func in SSL_get_ech_status
44819 do :
44820   ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
44821 if test "x$ac_cv_func_SSL_get_ech_status" = xyes
44822 then :
44823   printf "%s\n" "#define HAVE_SSL_GET_ECH_STATUS 1" >>confdefs.h
44824  ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
44825       ECH_ENABLED=1
44826 fi
44827
44828 done
44829
44830     fi
44831
44832     if test "x$ECH_ENABLED" = "x1"; then
44833
44834 printf "%s\n" "#define USE_ECH 1" >>confdefs.h
44835
44836     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
44837 printf "%s\n" "$ECH_SUPPORT" >&6; }
44838     experimental="$experimental ECH"
44839   else
44840     as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
44841   fi
44842 fi
44843
44844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support WebSockets" >&5
44845 printf %s "checking whether to support WebSockets... " >&6; }
44846 # Check whether --enable-websockets was given.
44847 if test ${enable_websockets+y}
44848 then :
44849   enableval=$enable_websockets;  case "$enableval" in
44850   no)
44851      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44852 printf "%s\n" "no" >&6; }
44853      ;;
44854   *)
44855      if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
44856          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44857 printf "%s\n" "yes" >&6; }
44858          curl_ws_msg="enabled"
44859
44860 printf "%s\n" "#define USE_WEBSOCKETS 1" >>confdefs.h
44861
44862          SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS"
44863          if test "x$SSL_ENABLED" = "x1"; then
44864            SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS"
44865          fi
44866          experimental="$experimental Websockets"
44867      else
44868                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44869 printf "%s\n" "no" >&6; }
44870          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&5
44871 printf "%s\n" "$as_me: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&2;}
44872      fi
44873      ;;
44874   esac
44875 else $as_nop
44876   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44877 printf "%s\n" "no" >&6; }
44878
44879 fi
44880
44881
44882
44883
44884   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
44885 printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
44886   CFLAG_CURL_SYMBOL_HIDING=""
44887   doing_symbol_hiding="no"
44888   if test "$want_symbol_hiding" = "yes" &&
44889     test "$supports_symbol_hiding" = "yes"; then
44890     doing_symbol_hiding="yes"
44891     CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
44892
44893 printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h
44894
44895     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44896 printf "%s\n" "yes" >&6; }
44897   else
44898     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44899 printf "%s\n" "no" >&6; }
44900   fi
44901    if test x$doing_symbol_hiding = xyes; then
44902   DOING_CURL_SYMBOL_HIDING_TRUE=
44903   DOING_CURL_SYMBOL_HIDING_FALSE='#'
44904 else
44905   DOING_CURL_SYMBOL_HIDING_TRUE='#'
44906   DOING_CURL_SYMBOL_HIDING_FALSE=
44907 fi
44908
44909
44910
44911
44912 LIBCURL_LIBS="$LIBS$PTHREAD"
44913
44914
44915
44916
44917
44918 BLANK_AT_MAKETIME=
44919
44920
44921  if test x$cross_compiling = xyes; then
44922   CROSSCOMPILING_TRUE=
44923   CROSSCOMPILING_FALSE='#'
44924 else
44925   CROSSCOMPILING_TRUE='#'
44926   CROSSCOMPILING_FALSE=
44927 fi
44928
44929
44930 ENABLE_SHARED="$enable_shared"
44931
44932
44933 ENABLE_STATIC="$enable_static"
44934
44935
44936 if test "x$enable_shared" = "xno"; then
44937   LIBCURL_NO_SHARED=$LIBCURL_LIBS
44938 else
44939   LIBCURL_NO_SHARED=
44940 fi
44941
44942
44943
44944 if test "x$OPENSSL_ENABLED" = "x1"; then
44945   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
44946 elif test -n "$SSL_ENABLED"; then
44947   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
44948 fi
44949 if test "x$IPV6_ENABLED" = "x1"; then
44950   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
44951 fi
44952 if test "x$USE_UNIX_SOCKETS" = "x1"; then
44953   SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
44954 fi
44955 if test "x$HAVE_LIBZ" = "x1"; then
44956   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
44957 fi
44958 if test "x$HAVE_BROTLI" = "x1"; then
44959   SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
44960 fi
44961 if test "x$HAVE_ZSTD" = "x1"; then
44962   SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
44963 fi
44964 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
44965                             -o "x$USE_THREADS_WIN32" = "x1"; then
44966   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
44967 fi
44968 if test "x$IDN_ENABLED" = "x1"; then
44969   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
44970 fi
44971 if test "x$USE_WINDOWS_SSPI" = "x1"; then
44972   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
44973 fi
44974
44975 if test "x$HAVE_GSSAPI" = "x1"; then
44976   SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
44977 fi
44978
44979 if test "x$curl_psl_msg" = "xenabled"; then
44980   SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
44981 fi
44982
44983 if test "x$curl_gsasl_msg" = "xenabled"; then
44984   SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
44985 fi
44986
44987 if test "x$enable_altsvc" = "xyes"; then
44988   SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
44989 fi
44990 if test "x$hsts" = "xyes"; then
44991   SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
44992 fi
44993
44994 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
44995     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
44996   SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
44997 fi
44998
44999 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
45000     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45001   SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
45002 fi
45003
45004 use_curl_ntlm_core=no
45005
45006 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
45007     "x$CURL_DISABLE_NTLM" != "x1"; then
45008   if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
45009       -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
45010       -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45011       -o "x$USE_WIN32_CRYPTO" = "x1" \
45012       -o "x$WOLFSSL_NTLM" = "x1"; then
45013     use_curl_ntlm_core=yes
45014   fi
45015
45016   if test "x$use_curl_ntlm_core" = "xyes" \
45017       -o "x$USE_WINDOWS_SSPI" = "x1"; then
45018     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
45019
45020     if test "x$CURL_DISABLE_HTTP" != "x1" -a \
45021         "x$NTLM_WB_ENABLED" = "x1"; then
45022       SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
45023     fi
45024   fi
45025 fi
45026
45027 if test "x$USE_TLS_SRP" = "x1"; then
45028   SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
45029 fi
45030
45031 if test "x$USE_NGHTTP2" = "x1" -o "x$USE_HYPER" = "x1"; then
45032   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
45033 fi
45034
45035 if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1" \
45036     -o "x$USE_MSH3" = "x1"; then
45037   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
45038 fi
45039
45040 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
45041   SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
45042 fi
45043
45044 if test "x$https_proxy" != "xno"; then
45045   if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
45046       -o "x$NSS_ENABLED" = "x1"; then
45047     SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
45048   fi
45049 fi
45050
45051 if test "x$ECH_ENABLED" = "x1"; then
45052   SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
45053 fi
45054
45055 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45056   if test ${ac_cv_sizeof_off_t} -gt 4 -o \
45057      "$curl_win32_file_api" = "win32_large_files"; then
45058     SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
45059   fi
45060 fi
45061
45062 if test "$tst_atomic" = "yes"; then
45063   SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45064 else
45065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45066 /* end confdefs.h.  */
45067
45068
45069       #include <windows.h>
45070
45071 int main (void)
45072 {
45073
45074       #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
45075       #error
45076       #endif
45077
45078  ;
45079  return 0;
45080 }
45081
45082 _ACEOF
45083 if ac_fn_c_try_compile "$LINENO"
45084 then :
45085
45086      SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45087
45088 fi
45089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45090 fi
45091
45092 SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
45093
45094
45095 if test "x$CURL_DISABLE_HTTP" != "x1"; then
45096   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
45097   if test "x$SSL_ENABLED" = "x1"; then
45098     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
45099   fi
45100 fi
45101 if test "x$CURL_DISABLE_FTP" != "x1"; then
45102   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
45103   if test "x$SSL_ENABLED" = "x1"; then
45104     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
45105   fi
45106 fi
45107 if test "x$CURL_DISABLE_FILE" != "x1"; then
45108   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
45109 fi
45110 if test "x$CURL_DISABLE_TELNET" != "x1"; then
45111   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
45112 fi
45113 if test "x$CURL_DISABLE_LDAP" != "x1"; then
45114   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
45115   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
45116     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
45117       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
45118       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
45119     fi
45120   fi
45121 fi
45122 if test "x$CURL_DISABLE_DICT" != "x1"; then
45123   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
45124 fi
45125 if test "x$CURL_DISABLE_TFTP" != "x1"; then
45126   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
45127 fi
45128 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
45129   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
45130   if test "x$SSL_ENABLED" = "x1"; then
45131     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
45132   fi
45133 fi
45134 if test "x$CURL_DISABLE_MQTT" != "x1"; then
45135   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
45136 fi
45137 if test "x$CURL_DISABLE_POP3" != "x1"; then
45138   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
45139   if test "x$SSL_ENABLED" = "x1"; then
45140     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
45141   fi
45142 fi
45143 if test "x$CURL_DISABLE_IMAP" != "x1"; then
45144   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
45145   if test "x$SSL_ENABLED" = "x1"; then
45146     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
45147   fi
45148 fi
45149 if test "x$CURL_DISABLE_SMB" != "x1" \
45150     -a "x$use_curl_ntlm_core" = "xyes"; then
45151   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
45152   if test "x$SSL_ENABLED" = "x1"; then
45153     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
45154   fi
45155 fi
45156 if test "x$CURL_DISABLE_SMTP" != "x1"; then
45157   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
45158   if test "x$SSL_ENABLED" = "x1"; then
45159     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
45160   fi
45161 fi
45162 if test "x$USE_LIBSSH2" = "x1"; then
45163   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45164   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45165 fi
45166 if test "x$USE_LIBSSH" = "x1"; then
45167   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45168   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45169 fi
45170 if test "x$USE_WOLFSSH" = "x1"; then
45171   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45172 fi
45173 if test "x$CURL_DISABLE_RTSP" != "x1"; then
45174   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
45175 fi
45176 if test "x$USE_LIBRTMP" = "x1"; then
45177   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
45178 fi
45179
45180 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
45181
45182
45183
45184
45185 squeeze CFLAGS
45186 squeeze CPPFLAGS
45187 squeeze DEFS
45188 squeeze LDFLAGS
45189 squeeze LIBS
45190
45191 squeeze LIBCURL_LIBS
45192 squeeze CURL_NETWORK_LIBS
45193 squeeze CURL_NETWORK_AND_TIME_LIBS
45194
45195 squeeze SUPPORT_FEATURES
45196 squeeze SUPPORT_PROTOCOLS
45197
45198
45199
45200   xc_bad_var_libs=no
45201   for xc_word in $LIBS; do
45202     case "$xc_word" in
45203       -l* | --library=*)
45204         :
45205         ;;
45206       *)
45207         xc_bad_var_libs=yes
45208         ;;
45209     esac
45210   done
45211   if test $xc_bad_var_libs = yes; then
45212     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
45213 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
45214     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
45215 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
45216   fi
45217
45218
45219   xc_bad_var_ldflags=no
45220   for xc_word in $LDFLAGS; do
45221     case "$xc_word" in
45222       -D*)
45223         xc_bad_var_ldflags=yes
45224         ;;
45225       -U*)
45226         xc_bad_var_ldflags=yes
45227         ;;
45228       -I*)
45229         xc_bad_var_ldflags=yes
45230         ;;
45231       -l* | --library=*)
45232         xc_bad_var_ldflags=yes
45233         ;;
45234     esac
45235   done
45236   if test $xc_bad_var_ldflags = yes; then
45237     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
45238 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
45239     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
45240     for xc_word in $LDFLAGS; do
45241       case "$xc_word" in
45242         -D*)
45243           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45244 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45245           ;;
45246         -U*)
45247           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45248 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45249           ;;
45250         -I*)
45251           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45252 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45253           ;;
45254         -l* | --library=*)
45255           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45256 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45257           ;;
45258       esac
45259     done
45260   fi
45261
45262
45263   xc_bad_var_cppflags=no
45264   for xc_word in $CPPFLAGS; do
45265     case "$xc_word" in
45266       -rpath*)
45267         xc_bad_var_cppflags=yes
45268         ;;
45269       -L* | --library-path=*)
45270         xc_bad_var_cppflags=yes
45271         ;;
45272       -l* | --library=*)
45273         xc_bad_var_cppflags=yes
45274         ;;
45275     esac
45276   done
45277   if test $xc_bad_var_cppflags = yes; then
45278     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
45279 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
45280     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
45281     for xc_word in $CPPFLAGS; do
45282       case "$xc_word" in
45283         -rpath*)
45284           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45285 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45286           ;;
45287         -L* | --library-path=*)
45288           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45289 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45290           ;;
45291         -l* | --library=*)
45292           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45293 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45294           ;;
45295       esac
45296     done
45297   fi
45298
45299
45300   xc_bad_var_cflags=no
45301   for xc_word in $CFLAGS; do
45302     case "$xc_word" in
45303       -D*)
45304         xc_bad_var_cflags=yes
45305         ;;
45306       -U*)
45307         xc_bad_var_cflags=yes
45308         ;;
45309       -I*)
45310         xc_bad_var_cflags=yes
45311         ;;
45312       -rpath*)
45313         xc_bad_var_cflags=yes
45314         ;;
45315       -L* | --library-path=*)
45316         xc_bad_var_cflags=yes
45317         ;;
45318       -l* | --library=*)
45319         xc_bad_var_cflags=yes
45320         ;;
45321     esac
45322   done
45323   if test $xc_bad_var_cflags = yes; then
45324     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
45325 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
45326     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
45327     for xc_word in $CFLAGS; do
45328       case "$xc_word" in
45329         -D*)
45330           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45331 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45332           ;;
45333         -U*)
45334           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45335 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45336           ;;
45337         -I*)
45338           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45339 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45340           ;;
45341         -rpath*)
45342           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45343 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45344           ;;
45345         -L* | --library-path=*)
45346           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45347 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45348           ;;
45349         -l* | --library=*)
45350           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45351 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45352           ;;
45353       esac
45354     done
45355   fi
45356
45357   if test $xc_bad_var_libs = yes ||
45358      test $xc_bad_var_cflags = yes ||
45359      test $xc_bad_var_ldflags = yes ||
45360      test $xc_bad_var_cppflags = yes; then
45361      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
45362 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
45363   fi
45364
45365
45366 SSL_BACKENDS=${ssl_backends}
45367
45368
45369 if test "x$want_curldebug_assumed" = "xyes" &&
45370   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
45371   ac_configure_args="$ac_configure_args --enable-curldebug"
45372 fi
45373
45374 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/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc"
45375
45376 cat >confcache <<\_ACEOF
45377 # This file is a shell script that caches the results of configure
45378 # tests run on this system so they can be shared between configure
45379 # scripts and configure runs, see configure's option --config-cache.
45380 # It is not useful on other systems.  If it contains results you don't
45381 # want to keep, you may remove or edit it.
45382 #
45383 # config.status only pays attention to the cache file if you give it
45384 # the --recheck option to rerun configure.
45385 #
45386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45388 # following values.
45389
45390 _ACEOF
45391
45392 # The following way of writing the cache mishandles newlines in values,
45393 # but we know of no workaround that is simple, portable, and efficient.
45394 # So, we kill variables containing newlines.
45395 # Ultrix sh set writes to stderr and can't be redirected directly,
45396 # and sets the high bit in the cache file unless we assign to the vars.
45397 (
45398   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45399     eval ac_val=\$$ac_var
45400     case $ac_val in #(
45401     *${as_nl}*)
45402       case $ac_var in #(
45403       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
45404 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45405       esac
45406       case $ac_var in #(
45407       _ | IFS | as_nl) ;; #(
45408       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45409       *) { eval $ac_var=; unset $ac_var;} ;;
45410       esac ;;
45411     esac
45412   done
45413
45414   (set) 2>&1 |
45415     case $as_nl`(ac_space=' '; set) 2>&1` in #(
45416     *${as_nl}ac_space=\ *)
45417       # `set' does not quote correctly, so add quotes: double-quote
45418       # substitution turns \\\\ into \\, and sed turns \\ into \.
45419       sed -n \
45420         "s/'/'\\\\''/g;
45421           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45422       ;; #(
45423     *)
45424       # `set' quotes correctly as required by POSIX, so do not add quotes.
45425       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45426       ;;
45427     esac |
45428     sort
45429 ) |
45430   sed '
45431      /^ac_cv_env_/b end
45432      t clear
45433      :clear
45434      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
45435      t end
45436      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45437      :end' >>confcache
45438 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45439   if test -w "$cache_file"; then
45440     if test "x$cache_file" != "x/dev/null"; then
45441       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
45442 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
45443       if test ! -f "$cache_file" || test -h "$cache_file"; then
45444         cat confcache >"$cache_file"
45445       else
45446         case $cache_file in #(
45447         */* | ?:*)
45448           mv -f confcache "$cache_file"$$ &&
45449           mv -f "$cache_file"$$ "$cache_file" ;; #(
45450         *)
45451           mv -f confcache "$cache_file" ;;
45452         esac
45453       fi
45454     fi
45455   else
45456     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
45457 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
45458   fi
45459 fi
45460 rm -f confcache
45461
45462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45463 # Let make expand exec_prefix.
45464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45465
45466 DEFS=-DHAVE_CONFIG_H
45467
45468 ac_libobjs=
45469 ac_ltlibobjs=
45470 U=
45471 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45472   # 1. Remove the extension, and $U if already installed.
45473   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45474   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
45475   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
45476   #    will be set to the directory where LIBOBJS objects are built.
45477   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45478   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
45479 done
45480 LIBOBJS=$ac_libobjs
45481
45482 LTLIBOBJS=$ac_ltlibobjs
45483
45484
45485 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
45486   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
45487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45488 fi
45489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
45490 printf %s "checking that generated files are newer than configure... " >&6; }
45491    if test -n "$am_sleep_pid"; then
45492      # Hide warnings about reused PIDs.
45493      wait $am_sleep_pid 2>/dev/null
45494    fi
45495    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
45496 printf "%s\n" "done" >&6; }
45497 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45498   as_fn_error $? "conditional \"AMDEP\" was never defined.
45499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45500 fi
45501 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45502   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
45503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45504 fi
45505  if test -n "$EXEEXT"; then
45506   am__EXEEXT_TRUE=
45507   am__EXEEXT_FALSE='#'
45508 else
45509   am__EXEEXT_TRUE='#'
45510   am__EXEEXT_FALSE=
45511 fi
45512
45513 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
45514   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
45515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45516 fi
45517 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
45518   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
45519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45520 fi
45521 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
45522   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
45523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45524 fi
45525 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
45526   as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
45527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45528 fi
45529 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
45530   as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
45531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45532 fi
45533 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
45534   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
45535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45536 fi
45537 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
45538   as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
45539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45540 fi
45541 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
45542   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
45543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45544 fi
45545 if test -z "${OS_WINDOWS_TRUE}" && test -z "${OS_WINDOWS_FALSE}"; then
45546   as_fn_error $? "conditional \"OS_WINDOWS\" was never defined.
45547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45548 fi
45549 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
45550   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
45551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45552 fi
45553 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
45554   as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
45555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45556 fi
45557 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
45558   as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
45559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45560 fi
45561 if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then
45562   as_fn_error $? "conditional \"USE_GSASL\" was never defined.
45563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45564 fi
45565 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
45566   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
45567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45568 fi
45569 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
45570   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
45571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45572 fi
45573 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
45574   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
45575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45576 fi
45577 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
45578   as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
45579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45580 fi
45581 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
45582   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
45583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45584 fi
45585
45586 : "${CONFIG_STATUS=./config.status}"
45587 ac_write_fail=0
45588 ac_clean_files_save=$ac_clean_files
45589 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
45591 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
45592 as_write_fail=0
45593 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
45594 #! $SHELL
45595 # Generated by $as_me.
45596 # Run this file to recreate the current configuration.
45597 # Compiler output produced by configure, useful for debugging
45598 # configure, is in config.log if it exists.
45599
45600 debug=false
45601 ac_cs_recheck=false
45602 ac_cs_silent=false
45603
45604 SHELL=\${CONFIG_SHELL-$SHELL}
45605 export SHELL
45606 _ASEOF
45607 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
45608 ## -------------------- ##
45609 ## M4sh Initialization. ##
45610 ## -------------------- ##
45611
45612 # Be more Bourne compatible
45613 DUALCASE=1; export DUALCASE # for MKS sh
45614 as_nop=:
45615 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
45616 then :
45617   emulate sh
45618   NULLCMD=:
45619   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45620   # is contrary to our usage.  Disable this feature.
45621   alias -g '${1+"$@"}'='"$@"'
45622   setopt NO_GLOB_SUBST
45623 else $as_nop
45624   case `(set -o) 2>/dev/null` in #(
45625   *posix*) :
45626     set -o posix ;; #(
45627   *) :
45628      ;;
45629 esac
45630 fi
45631
45632
45633
45634 # Reset variables that may have inherited troublesome values from
45635 # the environment.
45636
45637 # IFS needs to be set, to space, tab, and newline, in precisely that order.
45638 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45639 # side effect of setting IFS to empty, thus disabling word splitting.)
45640 # Quoting is to prevent editors from complaining about space-tab.
45641 as_nl='
45642 '
45643 export as_nl
45644 IFS=" ""        $as_nl"
45645
45646 PS1='$ '
45647 PS2='> '
45648 PS4='+ '
45649
45650 # Ensure predictable behavior from utilities with locale-dependent output.
45651 LC_ALL=C
45652 export LC_ALL
45653 LANGUAGE=C
45654 export LANGUAGE
45655
45656 # We cannot yet rely on "unset" to work, but we need these variables
45657 # to be unset--not just set to an empty or harmless value--now, to
45658 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
45659 # also avoids known problems related to "unset" and subshell syntax
45660 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
45661 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
45662 do eval test \${$as_var+y} \
45663   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
45664 done
45665
45666 # Ensure that fds 0, 1, and 2 are open.
45667 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
45668 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
45669 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
45670
45671
45672
45673 # Find who we are.  Look in the path if we contain no directory separator.
45674 as_myself=
45675 case $0 in #((
45676   *[\\/]* ) as_myself=$0 ;;
45677   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45678 for as_dir in $PATH
45679 do
45680   IFS=$as_save_IFS
45681   case $as_dir in #(((
45682     '') as_dir=./ ;;
45683     */) ;;
45684     *) as_dir=$as_dir/ ;;
45685   esac
45686     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
45687   done
45688 IFS=$as_save_IFS
45689
45690      ;;
45691 esac
45692 # We did not find ourselves, most probably we were run as `sh COMMAND'
45693 # in which case we are not to be found in the path.
45694 if test "x$as_myself" = x; then
45695   as_myself=$0
45696 fi
45697 if test ! -f "$as_myself"; then
45698   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45699   exit 1
45700 fi
45701
45702
45703
45704 # as_fn_error STATUS ERROR [LINENO LOG_FD]
45705 # ----------------------------------------
45706 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
45707 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
45708 # script with STATUS, using 1 if that was 0.
45709 as_fn_error ()
45710 {
45711   as_status=$1; test $as_status -eq 0 && as_status=1
45712   if test "$4"; then
45713     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
45714     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
45715   fi
45716   printf "%s\n" "$as_me: error: $2" >&2
45717   as_fn_exit $as_status
45718 } # as_fn_error
45719
45720
45721
45722 # as_fn_set_status STATUS
45723 # -----------------------
45724 # Set $? to STATUS, without forking.
45725 as_fn_set_status ()
45726 {
45727   return $1
45728 } # as_fn_set_status
45729
45730 # as_fn_exit STATUS
45731 # -----------------
45732 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
45733 as_fn_exit ()
45734 {
45735   set +e
45736   as_fn_set_status $1
45737   exit $1
45738 } # as_fn_exit
45739
45740 # as_fn_unset VAR
45741 # ---------------
45742 # Portably unset VAR.
45743 as_fn_unset ()
45744 {
45745   { eval $1=; unset $1;}
45746 }
45747 as_unset=as_fn_unset
45748
45749 # as_fn_append VAR VALUE
45750 # ----------------------
45751 # Append the text in VALUE to the end of the definition contained in VAR. Take
45752 # advantage of any shell optimizations that allow amortized linear growth over
45753 # repeated appends, instead of the typical quadratic growth present in naive
45754 # implementations.
45755 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
45756 then :
45757   eval 'as_fn_append ()
45758   {
45759     eval $1+=\$2
45760   }'
45761 else $as_nop
45762   as_fn_append ()
45763   {
45764     eval $1=\$$1\$2
45765   }
45766 fi # as_fn_append
45767
45768 # as_fn_arith ARG...
45769 # ------------------
45770 # Perform arithmetic evaluation on the ARGs, and store the result in the
45771 # global $as_val. Take advantage of shells that can avoid forks. The arguments
45772 # must be portable across $(()) and expr.
45773 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
45774 then :
45775   eval 'as_fn_arith ()
45776   {
45777     as_val=$(( $* ))
45778   }'
45779 else $as_nop
45780   as_fn_arith ()
45781   {
45782     as_val=`expr "$@" || test $? -eq 1`
45783   }
45784 fi # as_fn_arith
45785
45786
45787 if expr a : '\(a\)' >/dev/null 2>&1 &&
45788    test "X`expr 00001 : '.*\(...\)'`" = X001; then
45789   as_expr=expr
45790 else
45791   as_expr=false
45792 fi
45793
45794 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45795   as_basename=basename
45796 else
45797   as_basename=false
45798 fi
45799
45800 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45801   as_dirname=dirname
45802 else
45803   as_dirname=false
45804 fi
45805
45806 as_me=`$as_basename -- "$0" ||
45807 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45808          X"$0" : 'X\(//\)$' \| \
45809          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45810 printf "%s\n" X/"$0" |
45811     sed '/^.*\/\([^/][^/]*\)\/*$/{
45812             s//\1/
45813             q
45814           }
45815           /^X\/\(\/\/\)$/{
45816             s//\1/
45817             q
45818           }
45819           /^X\/\(\/\).*/{
45820             s//\1/
45821             q
45822           }
45823           s/.*/./; q'`
45824
45825 # Avoid depending upon Character Ranges.
45826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45829 as_cr_digits='0123456789'
45830 as_cr_alnum=$as_cr_Letters$as_cr_digits
45831
45832
45833 # Determine whether it's possible to make 'echo' print without a newline.
45834 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
45835 # for compatibility with existing Makefiles.
45836 ECHO_C= ECHO_N= ECHO_T=
45837 case `echo -n x` in #(((((
45838 -n*)
45839   case `echo 'xy\c'` in
45840   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
45841   xy)  ECHO_C='\c';;
45842   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
45843        ECHO_T=' ';;
45844   esac;;
45845 *)
45846   ECHO_N='-n';;
45847 esac
45848
45849 # For backward compatibility with old third-party macros, we provide
45850 # the shell variables $as_echo and $as_echo_n.  New code should use
45851 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
45852 as_echo='printf %s\n'
45853 as_echo_n='printf %s'
45854
45855 rm -f conf$$ conf$$.exe conf$$.file
45856 if test -d conf$$.dir; then
45857   rm -f conf$$.dir/conf$$.file
45858 else
45859   rm -f conf$$.dir
45860   mkdir conf$$.dir 2>/dev/null
45861 fi
45862 if (echo >conf$$.file) 2>/dev/null; then
45863   if ln -s conf$$.file conf$$ 2>/dev/null; then
45864     as_ln_s='ln -s'
45865     # ... but there are two gotchas:
45866     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45867     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45868     # In both cases, we have to default to `cp -pR'.
45869     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45870       as_ln_s='cp -pR'
45871   elif ln conf$$.file conf$$ 2>/dev/null; then
45872     as_ln_s=ln
45873   else
45874     as_ln_s='cp -pR'
45875   fi
45876 else
45877   as_ln_s='cp -pR'
45878 fi
45879 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45880 rmdir conf$$.dir 2>/dev/null
45881
45882
45883 # as_fn_mkdir_p
45884 # -------------
45885 # Create "$as_dir" as a directory, including parents if necessary.
45886 as_fn_mkdir_p ()
45887 {
45888
45889   case $as_dir in #(
45890   -*) as_dir=./$as_dir;;
45891   esac
45892   test -d "$as_dir" || eval $as_mkdir_p || {
45893     as_dirs=
45894     while :; do
45895       case $as_dir in #(
45896       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
45897       *) as_qdir=$as_dir;;
45898       esac
45899       as_dirs="'$as_qdir' $as_dirs"
45900       as_dir=`$as_dirname -- "$as_dir" ||
45901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45902          X"$as_dir" : 'X\(//\)[^/]' \| \
45903          X"$as_dir" : 'X\(//\)$' \| \
45904          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45905 printf "%s\n" X"$as_dir" |
45906     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45907             s//\1/
45908             q
45909           }
45910           /^X\(\/\/\)[^/].*/{
45911             s//\1/
45912             q
45913           }
45914           /^X\(\/\/\)$/{
45915             s//\1/
45916             q
45917           }
45918           /^X\(\/\).*/{
45919             s//\1/
45920             q
45921           }
45922           s/.*/./; q'`
45923       test -d "$as_dir" && break
45924     done
45925     test -z "$as_dirs" || eval "mkdir $as_dirs"
45926   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
45927
45928
45929 } # as_fn_mkdir_p
45930 if mkdir -p . 2>/dev/null; then
45931   as_mkdir_p='mkdir -p "$as_dir"'
45932 else
45933   test -d ./-p && rmdir ./-p
45934   as_mkdir_p=false
45935 fi
45936
45937
45938 # as_fn_executable_p FILE
45939 # -----------------------
45940 # Test if FILE is an executable regular file.
45941 as_fn_executable_p ()
45942 {
45943   test -f "$1" && test -x "$1"
45944 } # as_fn_executable_p
45945 as_test_x='test -x'
45946 as_executable_p=as_fn_executable_p
45947
45948 # Sed expression to map a string onto a valid CPP name.
45949 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45950
45951 # Sed expression to map a string onto a valid variable name.
45952 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45953
45954
45955 exec 6>&1
45956 ## ----------------------------------- ##
45957 ## Main body of $CONFIG_STATUS script. ##
45958 ## ----------------------------------- ##
45959 _ASEOF
45960 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
45961
45962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45963 # Save the log message, to keep $0 and so on meaningful, and to
45964 # report actual input values of CONFIG_FILES etc. instead of their
45965 # values after options handling.
45966 ac_log="
45967 This file was extended by curl $as_me -, which was
45968 generated by GNU Autoconf 2.71.  Invocation command line was
45969
45970   CONFIG_FILES    = $CONFIG_FILES
45971   CONFIG_HEADERS  = $CONFIG_HEADERS
45972   CONFIG_LINKS    = $CONFIG_LINKS
45973   CONFIG_COMMANDS = $CONFIG_COMMANDS
45974   $ $0 $@
45975
45976 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45977 "
45978
45979 _ACEOF
45980
45981 case $ac_config_files in *"
45982 "*) set x $ac_config_files; shift; ac_config_files=$*;;
45983 esac
45984
45985 case $ac_config_headers in *"
45986 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
45987 esac
45988
45989
45990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45991 # Files that config.status was made for.
45992 config_files="$ac_config_files"
45993 config_headers="$ac_config_headers"
45994 config_commands="$ac_config_commands"
45995
45996 _ACEOF
45997
45998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45999 ac_cs_usage="\
46000 \`$as_me' instantiates files and other configuration actions
46001 from templates according to the current configuration.  Unless the files
46002 and actions are specified as TAGs, all are instantiated by default.
46003
46004 Usage: $0 [OPTION]... [TAG]...
46005
46006   -h, --help       print this help, then exit
46007   -V, --version    print version number and configuration settings, then exit
46008       --config     print configuration, then exit
46009   -q, --quiet, --silent
46010                    do not print progress messages
46011   -d, --debug      don't remove temporary files
46012       --recheck    update $as_me by reconfiguring in the same conditions
46013       --file=FILE[:TEMPLATE]
46014                    instantiate the configuration file FILE
46015       --header=FILE[:TEMPLATE]
46016                    instantiate the configuration header FILE
46017
46018 Configuration files:
46019 $config_files
46020
46021 Configuration headers:
46022 $config_headers
46023
46024 Configuration commands:
46025 $config_commands
46026
46027 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>."
46028
46029 _ACEOF
46030 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
46031 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
46032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46033 ac_cs_config='$ac_cs_config_escaped'
46034 ac_cs_version="\\
46035 curl config.status -
46036 configured by $0, generated by GNU Autoconf 2.71,
46037   with options \\"\$ac_cs_config\\"
46038
46039 Copyright (C) 2021 Free Software Foundation, Inc.
46040 This config.status script is free software; the Free Software Foundation
46041 gives unlimited permission to copy, distribute and modify it."
46042
46043 ac_pwd='$ac_pwd'
46044 srcdir='$srcdir'
46045 INSTALL='$INSTALL'
46046 MKDIR_P='$MKDIR_P'
46047 AWK='$AWK'
46048 test -n "\$AWK" || AWK=awk
46049 _ACEOF
46050
46051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46052 # The default lists apply if the user does not specify any file.
46053 ac_need_defaults=:
46054 while test $# != 0
46055 do
46056   case $1 in
46057   --*=?*)
46058     ac_option=`expr "X$1" : 'X\([^=]*\)='`
46059     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46060     ac_shift=:
46061     ;;
46062   --*=)
46063     ac_option=`expr "X$1" : 'X\([^=]*\)='`
46064     ac_optarg=
46065     ac_shift=:
46066     ;;
46067   *)
46068     ac_option=$1
46069     ac_optarg=$2
46070     ac_shift=shift
46071     ;;
46072   esac
46073
46074   case $ac_option in
46075   # Handling of the options.
46076   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46077     ac_cs_recheck=: ;;
46078   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46079     printf "%s\n" "$ac_cs_version"; exit ;;
46080   --config | --confi | --conf | --con | --co | --c )
46081     printf "%s\n" "$ac_cs_config"; exit ;;
46082   --debug | --debu | --deb | --de | --d | -d )
46083     debug=: ;;
46084   --file | --fil | --fi | --f )
46085     $ac_shift
46086     case $ac_optarg in
46087     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46088     '') as_fn_error $? "missing file argument" ;;
46089     esac
46090     as_fn_append CONFIG_FILES " '$ac_optarg'"
46091     ac_need_defaults=false;;
46092   --header | --heade | --head | --hea )
46093     $ac_shift
46094     case $ac_optarg in
46095     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46096     esac
46097     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
46098     ac_need_defaults=false;;
46099   --he | --h)
46100     # Conflict between --help and --header
46101     as_fn_error $? "ambiguous option: \`$1'
46102 Try \`$0 --help' for more information.";;
46103   --help | --hel | -h )
46104     printf "%s\n" "$ac_cs_usage"; exit ;;
46105   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46106   | -silent | --silent | --silen | --sile | --sil | --si | --s)
46107     ac_cs_silent=: ;;
46108
46109   # This is an error.
46110   -*) as_fn_error $? "unrecognized option: \`$1'
46111 Try \`$0 --help' for more information." ;;
46112
46113   *) as_fn_append ac_config_targets " $1"
46114      ac_need_defaults=false ;;
46115
46116   esac
46117   shift
46118 done
46119
46120 ac_configure_extra_args=
46121
46122 if $ac_cs_silent; then
46123   exec 6>/dev/null
46124   ac_configure_extra_args="$ac_configure_extra_args --silent"
46125 fi
46126
46127 _ACEOF
46128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46129 if \$ac_cs_recheck; then
46130   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46131   shift
46132   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
46133   CONFIG_SHELL='$SHELL'
46134   export CONFIG_SHELL
46135   exec "\$@"
46136 fi
46137
46138 _ACEOF
46139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46140 exec 5>>config.log
46141 {
46142   echo
46143   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46144 ## Running $as_me. ##
46145 _ASBOX
46146   printf "%s\n" "$ac_log"
46147 } >&5
46148
46149 _ACEOF
46150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46151 #
46152 # INIT-COMMANDS
46153 #
46154 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
46155
46156
46157 # The HP-UX ksh and POSIX shell print the target directory to stdout
46158 # if CDPATH is set.
46159 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46160
46161 sed_quote_subst='$sed_quote_subst'
46162 double_quote_subst='$double_quote_subst'
46163 delay_variable_subst='$delay_variable_subst'
46164 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
46165 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
46166 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
46167 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
46168 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
46169 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
46170 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
46171 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
46172 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
46173 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
46174 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
46175 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
46176 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
46177 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
46178 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
46179 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
46180 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
46181 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
46182 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
46183 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
46184 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
46185 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
46186 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
46187 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
46188 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
46189 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
46190 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
46191 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
46192 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
46193 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
46194 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
46195 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
46196 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
46197 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
46198 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
46199 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
46200 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
46201 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
46202 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
46203 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
46204 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
46205 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
46206 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
46207 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
46208 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
46209 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
46210 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
46211 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
46212 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
46213 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46214 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46215 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
46216 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
46217 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
46218 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
46219 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
46220 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
46221 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
46222 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
46223 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
46224 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
46225 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"`'
46226 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
46227 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
46228 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
46229 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
46230 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
46231 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
46232 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
46233 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
46234 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
46235 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
46236 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
46237 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
46238 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
46239 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
46240 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
46241 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
46242 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
46243 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
46244 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
46245 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
46246 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46247 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
46248 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
46249 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
46250 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
46251 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
46252 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
46253 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46254 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
46255 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46256 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
46257 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46258 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
46259 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
46260 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
46261 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
46262 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
46263 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
46264 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
46265 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
46266 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
46267 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
46268 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
46269 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
46270 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
46271 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
46272 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
46273 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
46274 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
46275 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
46276 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
46277 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
46278 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
46279 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
46280 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46281 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46282 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46283 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46284 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46285 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46286 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46287 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46288 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46289 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46290 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46291 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46292 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46293 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46294 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
46295 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
46296 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46297 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46298 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46299 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
46300 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
46301 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
46302 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
46303 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
46304 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
46305 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
46306 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
46307 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
46308 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
46309 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
46310 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
46311 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
46312 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
46313 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
46314 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
46315 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46316 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46317 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
46318 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
46319 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
46320 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
46321 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
46322 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
46323 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
46324 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
46325 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
46326 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
46327 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46328 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
46329 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
46330 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
46331 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
46332 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
46333 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
46334 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
46335 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
46336 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
46337 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
46338 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
46339 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
46340 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
46341 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
46342 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
46343 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
46344
46345 LTCC='$LTCC'
46346 LTCFLAGS='$LTCFLAGS'
46347 compiler='$compiler_DEFAULT'
46348
46349 # A function that is used when there is no print builtin or printf.
46350 func_fallback_echo ()
46351 {
46352   eval 'cat <<_LTECHO_EOF
46353 \$1
46354 _LTECHO_EOF'
46355 }
46356
46357 # Quote evaled strings.
46358 for var in AS \
46359 DLLTOOL \
46360 OBJDUMP \
46361 SHELL \
46362 ECHO \
46363 PATH_SEPARATOR \
46364 SED \
46365 GREP \
46366 EGREP \
46367 FGREP \
46368 LD \
46369 NM \
46370 LN_S \
46371 lt_SP2NL \
46372 lt_NL2SP \
46373 reload_flag \
46374 FILECMD \
46375 deplibs_check_method \
46376 file_magic_cmd \
46377 file_magic_glob \
46378 want_nocaseglob \
46379 sharedlib_from_linklib_cmd \
46380 AR \
46381 archiver_list_spec \
46382 STRIP \
46383 RANLIB \
46384 CC \
46385 CFLAGS \
46386 compiler \
46387 lt_cv_sys_global_symbol_pipe \
46388 lt_cv_sys_global_symbol_to_cdecl \
46389 lt_cv_sys_global_symbol_to_import \
46390 lt_cv_sys_global_symbol_to_c_name_address \
46391 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46392 lt_cv_nm_interface \
46393 nm_file_list_spec \
46394 lt_cv_truncate_bin \
46395 lt_prog_compiler_no_builtin_flag \
46396 lt_prog_compiler_pic \
46397 lt_prog_compiler_wl \
46398 lt_prog_compiler_static \
46399 lt_cv_prog_compiler_c_o \
46400 need_locks \
46401 MANIFEST_TOOL \
46402 DSYMUTIL \
46403 NMEDIT \
46404 LIPO \
46405 OTOOL \
46406 OTOOL64 \
46407 shrext_cmds \
46408 export_dynamic_flag_spec \
46409 whole_archive_flag_spec \
46410 compiler_needs_object \
46411 with_gnu_ld \
46412 allow_undefined_flag \
46413 no_undefined_flag \
46414 hardcode_libdir_flag_spec \
46415 hardcode_libdir_separator \
46416 exclude_expsyms \
46417 include_expsyms \
46418 file_list_spec \
46419 variables_saved_for_relink \
46420 libname_spec \
46421 library_names_spec \
46422 soname_spec \
46423 install_override_mode \
46424 finish_eval \
46425 old_striplib \
46426 striplib \
46427 LD_RC \
46428 reload_flag_RC \
46429 compiler_RC \
46430 lt_prog_compiler_no_builtin_flag_RC \
46431 lt_prog_compiler_pic_RC \
46432 lt_prog_compiler_wl_RC \
46433 lt_prog_compiler_static_RC \
46434 lt_cv_prog_compiler_c_o_RC \
46435 export_dynamic_flag_spec_RC \
46436 whole_archive_flag_spec_RC \
46437 compiler_needs_object_RC \
46438 with_gnu_ld_RC \
46439 allow_undefined_flag_RC \
46440 no_undefined_flag_RC \
46441 hardcode_libdir_flag_spec_RC \
46442 hardcode_libdir_separator_RC \
46443 exclude_expsyms_RC \
46444 include_expsyms_RC \
46445 file_list_spec_RC; do
46446     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46447     *[\\\\\\\`\\"\\\$]*)
46448       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46449       ;;
46450     *)
46451       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46452       ;;
46453     esac
46454 done
46455
46456 # Double-quote double-evaled strings.
46457 for var in reload_cmds \
46458 old_postinstall_cmds \
46459 old_postuninstall_cmds \
46460 old_archive_cmds \
46461 extract_expsyms_cmds \
46462 old_archive_from_new_cmds \
46463 old_archive_from_expsyms_cmds \
46464 archive_cmds \
46465 archive_expsym_cmds \
46466 module_cmds \
46467 module_expsym_cmds \
46468 export_symbols_cmds \
46469 prelink_cmds \
46470 postlink_cmds \
46471 postinstall_cmds \
46472 postuninstall_cmds \
46473 finish_cmds \
46474 sys_lib_search_path_spec \
46475 configure_time_dlsearch_path \
46476 configure_time_lt_sys_library_path \
46477 reload_cmds_RC \
46478 old_archive_cmds_RC \
46479 old_archive_from_new_cmds_RC \
46480 old_archive_from_expsyms_cmds_RC \
46481 archive_cmds_RC \
46482 archive_expsym_cmds_RC \
46483 module_cmds_RC \
46484 module_expsym_cmds_RC \
46485 export_symbols_cmds_RC \
46486 prelink_cmds_RC \
46487 postlink_cmds_RC; do
46488     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46489     *[\\\\\\\`\\"\\\$]*)
46490       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46491       ;;
46492     *)
46493       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46494       ;;
46495     esac
46496 done
46497
46498 ac_aux_dir='$ac_aux_dir'
46499
46500 # See if we are running on zsh, and set the options that allow our
46501 # commands through without removal of \ escapes INIT.
46502 if test -n "\${ZSH_VERSION+set}"; then
46503    setopt NO_GLOB_SUBST
46504 fi
46505
46506
46507     PACKAGE='$PACKAGE'
46508     VERSION='$VERSION'
46509     RM='$RM'
46510     ofile='$ofile'
46511
46512
46513
46514
46515
46516
46517 _ACEOF
46518
46519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46520
46521 # Handling of arguments.
46522 for ac_config_target in $ac_config_targets
46523 do
46524   case $ac_config_target in
46525     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
46526     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46527     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46528     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46529     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
46530     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
46531     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
46532     "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
46533     "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
46534     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
46535     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
46536     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46537     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
46538     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46539     "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
46540     "lib/libcurl.plist") CONFIG_FILES="$CONFIG_FILES lib/libcurl.plist" ;;
46541     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
46542     "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
46543     "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
46544     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
46545     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
46546     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
46547     "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
46548     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
46549     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
46550     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
46551     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
46552
46553   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46554   esac
46555 done
46556
46557
46558 # If the user did not use the arguments to specify the items to instantiate,
46559 # then the envvar interface is used.  Set only those that are not.
46560 # We use the long form for the default assignment because of an extremely
46561 # bizarre bug on SunOS 4.1.3.
46562 if $ac_need_defaults; then
46563   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
46564   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
46565   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
46566 fi
46567
46568 # Have a temporary directory for convenience.  Make it in the build tree
46569 # simply because there is no reason against having it here, and in addition,
46570 # creating and moving files from /tmp can sometimes cause problems.
46571 # Hook for its removal unless debugging.
46572 # Note that there is a small window in which the directory will not be cleaned:
46573 # after its creation but before its name has been assigned to `$tmp'.
46574 $debug ||
46575 {
46576   tmp= ac_tmp=
46577   trap 'exit_status=$?
46578   : "${ac_tmp:=$tmp}"
46579   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
46580 ' 0
46581   trap 'as_fn_exit 1' 1 2 13 15
46582 }
46583 # Create a (secure) tmp directory for tmp files.
46584
46585 {
46586   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46587   test -d "$tmp"
46588 }  ||
46589 {
46590   tmp=./conf$$-$RANDOM
46591   (umask 077 && mkdir "$tmp")
46592 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
46593 ac_tmp=$tmp
46594
46595 # Set up the scripts for CONFIG_FILES section.
46596 # No need to generate them if there are no CONFIG_FILES.
46597 # This happens for instance with `./config.status config.h'.
46598 if test -n "$CONFIG_FILES"; then
46599
46600
46601 ac_cr=`echo X | tr X '\015'`
46602 # On cygwin, bash can eat \r inside `` if the user requested igncr.
46603 # But we know of no other shell where ac_cr would be empty at this
46604 # point, so we can use a bashism as a fallback.
46605 if test "x$ac_cr" = x; then
46606   eval ac_cr=\$\'\\r\'
46607 fi
46608 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46609 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46610   ac_cs_awk_cr='\\r'
46611 else
46612   ac_cs_awk_cr=$ac_cr
46613 fi
46614
46615 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
46616 _ACEOF
46617
46618
46619 {
46620   echo "cat >conf$$subs.awk <<_ACEOF" &&
46621   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46622   echo "_ACEOF"
46623 } >conf$$subs.sh ||
46624   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46625 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
46626 ac_delim='%!_!# '
46627 for ac_last_try in false false false false false :; do
46628   . ./conf$$subs.sh ||
46629     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46630
46631   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46632   if test $ac_delim_n = $ac_delim_num; then
46633     break
46634   elif $ac_last_try; then
46635     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46636   else
46637     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46638   fi
46639 done
46640 rm -f conf$$subs.sh
46641
46642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46643 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
46644 _ACEOF
46645 sed -n '
46646 h
46647 s/^/S["/; s/!.*/"]=/
46648 p
46649 g
46650 s/^[^!]*!//
46651 :repl
46652 t repl
46653 s/'"$ac_delim"'$//
46654 t delim
46655 :nl
46656 h
46657 s/\(.\{148\}\)..*/\1/
46658 t more1
46659 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46660 p
46661 n
46662 b repl
46663 :more1
46664 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46665 p
46666 g
46667 s/.\{148\}//
46668 t nl
46669 :delim
46670 h
46671 s/\(.\{148\}\)..*/\1/
46672 t more2
46673 s/["\\]/\\&/g; s/^/"/; s/$/"/
46674 p
46675 b
46676 :more2
46677 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46678 p
46679 g
46680 s/.\{148\}//
46681 t delim
46682 ' <conf$$subs.awk | sed '
46683 /^[^""]/{
46684   N
46685   s/\n//
46686 }
46687 ' >>$CONFIG_STATUS || ac_write_fail=1
46688 rm -f conf$$subs.awk
46689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46690 _ACAWK
46691 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
46692   for (key in S) S_is_set[key] = 1
46693   FS = "\a"
46694
46695 }
46696 {
46697   line = $ 0
46698   nfields = split(line, field, "@")
46699   substed = 0
46700   len = length(field[1])
46701   for (i = 2; i < nfields; i++) {
46702     key = field[i]
46703     keylen = length(key)
46704     if (S_is_set[key]) {
46705       value = S[key]
46706       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46707       len += length(value) + length(field[++i])
46708       substed = 1
46709     } else
46710       len += 1 + keylen
46711   }
46712
46713   print line
46714 }
46715
46716 _ACAWK
46717 _ACEOF
46718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46719 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46720   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46721 else
46722   cat
46723 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
46724   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
46725 _ACEOF
46726
46727 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
46728 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
46729 # trailing colons and then remove the whole line if VPATH becomes empty
46730 # (actually we leave an empty line to preserve line numbers).
46731 if test "x$srcdir" = x.; then
46732   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
46733 h
46734 s///
46735 s/^/:/
46736 s/[      ]*$/:/
46737 s/:\$(srcdir):/:/g
46738 s/:\${srcdir}:/:/g
46739 s/:@srcdir@:/:/g
46740 s/^:*//
46741 s/:*$//
46742 x
46743 s/\(=[   ]*\).*/\1/
46744 G
46745 s/\n//
46746 s/^[^=]*=[       ]*$//
46747 }'
46748 fi
46749
46750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46751 fi # test -n "$CONFIG_FILES"
46752
46753 # Set up the scripts for CONFIG_HEADERS section.
46754 # No need to generate them if there are no CONFIG_HEADERS.
46755 # This happens for instance with `./config.status Makefile'.
46756 if test -n "$CONFIG_HEADERS"; then
46757 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
46758 BEGIN {
46759 _ACEOF
46760
46761 # Transform confdefs.h into an awk script `defines.awk', embedded as
46762 # here-document in config.status, that substitutes the proper values into
46763 # config.h.in to produce config.h.
46764
46765 # Create a delimiter string that does not exist in confdefs.h, to ease
46766 # handling of long lines.
46767 ac_delim='%!_!# '
46768 for ac_last_try in false false :; do
46769   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
46770   if test -z "$ac_tt"; then
46771     break
46772   elif $ac_last_try; then
46773     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
46774   else
46775     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46776   fi
46777 done
46778
46779 # For the awk script, D is an array of macro values keyed by name,
46780 # likewise P contains macro parameters if any.  Preserve backslash
46781 # newline sequences.
46782
46783 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46784 sed -n '
46785 s/.\{148\}/&'"$ac_delim"'/g
46786 t rset
46787 :rset
46788 s/^[     ]*#[    ]*define[       ][      ]*/ /
46789 t def
46790 d
46791 :def
46792 s/\\$//
46793 t bsnl
46794 s/["\\]/\\&/g
46795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
46796 D["\1"]=" \3"/p
46797 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
46798 d
46799 :bsnl
46800 s/["\\]/\\&/g
46801 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
46802 D["\1"]=" \3\\\\\\n"\\/p
46803 t cont
46804 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
46805 t cont
46806 d
46807 :cont
46808 n
46809 s/.\{148\}/&'"$ac_delim"'/g
46810 t clear
46811 :clear
46812 s/\\$//
46813 t bsnlc
46814 s/["\\]/\\&/g; s/^/"/; s/$/"/p
46815 d
46816 :bsnlc
46817 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
46818 b cont
46819 ' <confdefs.h | sed '
46820 s/'"$ac_delim"'/"\\\
46821 "/g' >>$CONFIG_STATUS || ac_write_fail=1
46822
46823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46824   for (key in D) D_is_set[key] = 1
46825   FS = "\a"
46826 }
46827 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
46828   line = \$ 0
46829   split(line, arg, " ")
46830   if (arg[1] == "#") {
46831     defundef = arg[2]
46832     mac1 = arg[3]
46833   } else {
46834     defundef = substr(arg[1], 2)
46835     mac1 = arg[2]
46836   }
46837   split(mac1, mac2, "(") #)
46838   macro = mac2[1]
46839   prefix = substr(line, 1, index(line, defundef) - 1)
46840   if (D_is_set[macro]) {
46841     # Preserve the white space surrounding the "#".
46842     print prefix "define", macro P[macro] D[macro]
46843     next
46844   } else {
46845     # Replace #undef with comments.  This is necessary, for example,
46846     # in the case of _POSIX_SOURCE, which is predefined and required
46847     # on some systems where configure will not decide to define it.
46848     if (defundef == "undef") {
46849       print "/*", prefix defundef, macro, "*/"
46850       next
46851     }
46852   }
46853 }
46854 { print }
46855 _ACAWK
46856 _ACEOF
46857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46858   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
46859 fi # test -n "$CONFIG_HEADERS"
46860
46861
46862 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
46863 shift
46864 for ac_tag
46865 do
46866   case $ac_tag in
46867   :[FHLC]) ac_mode=$ac_tag; continue;;
46868   esac
46869   case $ac_mode$ac_tag in
46870   :[FHL]*:*);;
46871   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
46872   :[FH]-) ac_tag=-:-;;
46873   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46874   esac
46875   ac_save_IFS=$IFS
46876   IFS=:
46877   set x $ac_tag
46878   IFS=$ac_save_IFS
46879   shift
46880   ac_file=$1
46881   shift
46882
46883   case $ac_mode in
46884   :L) ac_source=$1;;
46885   :[FH])
46886     ac_file_inputs=
46887     for ac_f
46888     do
46889       case $ac_f in
46890       -) ac_f="$ac_tmp/stdin";;
46891       *) # Look for the file first in the build tree, then in the source tree
46892          # (if the path is not absolute).  The absolute path cannot be DOS-style,
46893          # because $ac_f cannot contain `:'.
46894          test -f "$ac_f" ||
46895            case $ac_f in
46896            [\\/$]*) false;;
46897            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46898            esac ||
46899            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
46900       esac
46901       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
46902       as_fn_append ac_file_inputs " '$ac_f'"
46903     done
46904
46905     # Let's still pretend it is `configure' which instantiates (i.e., don't
46906     # use $as_me), people would be surprised to read:
46907     #    /* config.h.  Generated by config.status.  */
46908     configure_input='Generated from '`
46909           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
46910         `' by configure.'
46911     if test x"$ac_file" != x-; then
46912       configure_input="$ac_file.  $configure_input"
46913       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
46914 printf "%s\n" "$as_me: creating $ac_file" >&6;}
46915     fi
46916     # Neutralize special characters interpreted by sed in replacement strings.
46917     case $configure_input in #(
46918     *\&* | *\|* | *\\* )
46919        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
46920        sed 's/[\\\\&|]/\\\\&/g'`;; #(
46921     *) ac_sed_conf_input=$configure_input;;
46922     esac
46923
46924     case $ac_tag in
46925     *:-:* | *:-) cat >"$ac_tmp/stdin" \
46926       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
46927     esac
46928     ;;
46929   esac
46930
46931   ac_dir=`$as_dirname -- "$ac_file" ||
46932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46933          X"$ac_file" : 'X\(//\)[^/]' \| \
46934          X"$ac_file" : 'X\(//\)$' \| \
46935          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46936 printf "%s\n" X"$ac_file" |
46937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46938             s//\1/
46939             q
46940           }
46941           /^X\(\/\/\)[^/].*/{
46942             s//\1/
46943             q
46944           }
46945           /^X\(\/\/\)$/{
46946             s//\1/
46947             q
46948           }
46949           /^X\(\/\).*/{
46950             s//\1/
46951             q
46952           }
46953           s/.*/./; q'`
46954   as_dir="$ac_dir"; as_fn_mkdir_p
46955   ac_builddir=.
46956
46957 case "$ac_dir" in
46958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46959 *)
46960   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
46961   # A ".." for each directory in $ac_dir_suffix.
46962   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
46963   case $ac_top_builddir_sub in
46964   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46965   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46966   esac ;;
46967 esac
46968 ac_abs_top_builddir=$ac_pwd
46969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46970 # for backward compatibility:
46971 ac_top_builddir=$ac_top_build_prefix
46972
46973 case $srcdir in
46974   .)  # We are building in place.
46975     ac_srcdir=.
46976     ac_top_srcdir=$ac_top_builddir_sub
46977     ac_abs_top_srcdir=$ac_pwd ;;
46978   [\\/]* | ?:[\\/]* )  # Absolute name.
46979     ac_srcdir=$srcdir$ac_dir_suffix;
46980     ac_top_srcdir=$srcdir
46981     ac_abs_top_srcdir=$srcdir ;;
46982   *) # Relative name.
46983     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46984     ac_top_srcdir=$ac_top_build_prefix$srcdir
46985     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46986 esac
46987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46988
46989
46990   case $ac_mode in
46991   :F)
46992   #
46993   # CONFIG_FILE
46994   #
46995
46996   case $INSTALL in
46997   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46998   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46999   esac
47000   ac_MKDIR_P=$MKDIR_P
47001   case $MKDIR_P in
47002   [\\/$]* | ?:[\\/]* ) ;;
47003   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
47004   esac
47005 _ACEOF
47006
47007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47008 # If the template does not know about datarootdir, expand it.
47009 # FIXME: This hack should be removed a few years after 2.60.
47010 ac_datarootdir_hack=; ac_datarootdir_seen=
47011 ac_sed_dataroot='
47012 /datarootdir/ {
47013   p
47014   q
47015 }
47016 /@datadir@/p
47017 /@docdir@/p
47018 /@infodir@/p
47019 /@localedir@/p
47020 /@mandir@/p'
47021 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47022 *datarootdir*) ac_datarootdir_seen=yes;;
47023 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47025 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47026 _ACEOF
47027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47028   ac_datarootdir_hack='
47029   s&@datadir@&$datadir&g
47030   s&@docdir@&$docdir&g
47031   s&@infodir@&$infodir&g
47032   s&@localedir@&$localedir&g
47033   s&@mandir@&$mandir&g
47034   s&\\\${datarootdir}&$datarootdir&g' ;;
47035 esac
47036 _ACEOF
47037
47038 # Neutralize VPATH when `$srcdir' = `.'.
47039 # Shell code in configure.ac might set extrasub.
47040 # FIXME: do we really want to maintain this feature?
47041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47042 ac_sed_extra="$ac_vpsub
47043 $extrasub
47044 _ACEOF
47045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47046 :t
47047 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47048 s|@configure_input@|$ac_sed_conf_input|;t t
47049 s&@top_builddir@&$ac_top_builddir_sub&;t t
47050 s&@top_build_prefix@&$ac_top_build_prefix&;t t
47051 s&@srcdir@&$ac_srcdir&;t t
47052 s&@abs_srcdir@&$ac_abs_srcdir&;t t
47053 s&@top_srcdir@&$ac_top_srcdir&;t t
47054 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47055 s&@builddir@&$ac_builddir&;t t
47056 s&@abs_builddir@&$ac_abs_builddir&;t t
47057 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47058 s&@INSTALL@&$ac_INSTALL&;t t
47059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
47060 $ac_datarootdir_hack
47061 "
47062 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
47063   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47064
47065 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47066   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
47067   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
47068       "$ac_tmp/out"`; test -z "$ac_out"; } &&
47069   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47070 which seems to be undefined.  Please make sure it is defined" >&5
47071 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47072 which seems to be undefined.  Please make sure it is defined" >&2;}
47073
47074   rm -f "$ac_tmp/stdin"
47075   case $ac_file in
47076   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
47077   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
47078   esac \
47079   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47080  ;;
47081   :H)
47082   #
47083   # CONFIG_HEADER
47084   #
47085   if test x"$ac_file" != x-; then
47086     {
47087       printf "%s\n" "/* $configure_input  */" >&1 \
47088       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
47089     } >"$ac_tmp/config.h" \
47090       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47091     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
47092       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
47093 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
47094     else
47095       rm -f "$ac_file"
47096       mv "$ac_tmp/config.h" "$ac_file" \
47097         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47098     fi
47099   else
47100     printf "%s\n" "/* $configure_input  */" >&1 \
47101       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
47102       || as_fn_error $? "could not create -" "$LINENO" 5
47103   fi
47104 # Compute "$ac_file"'s index in $config_headers.
47105 _am_arg="$ac_file"
47106 _am_stamp_count=1
47107 for _am_header in $config_headers :; do
47108   case $_am_header in
47109     $_am_arg | $_am_arg:* )
47110       break ;;
47111     * )
47112       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47113   esac
47114 done
47115 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47116 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47117          X"$_am_arg" : 'X\(//\)[^/]' \| \
47118          X"$_am_arg" : 'X\(//\)$' \| \
47119          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47120 printf "%s\n" X"$_am_arg" |
47121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47122             s//\1/
47123             q
47124           }
47125           /^X\(\/\/\)[^/].*/{
47126             s//\1/
47127             q
47128           }
47129           /^X\(\/\/\)$/{
47130             s//\1/
47131             q
47132           }
47133           /^X\(\/\).*/{
47134             s//\1/
47135             q
47136           }
47137           s/.*/./; q'`/stamp-h$_am_stamp_count
47138  ;;
47139
47140   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
47141 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
47142  ;;
47143   esac
47144
47145
47146   case $ac_file$ac_mode in
47147     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
47148   # Older Autoconf quotes --file arguments for eval, but not when files
47149   # are listed without --file.  Let's play safe and only enable the eval
47150   # if we detect the quoting.
47151   # TODO: see whether this extra hack can be removed once we start
47152   # requiring Autoconf 2.70 or later.
47153   case $CONFIG_FILES in #(
47154   *\'*) :
47155     eval set x "$CONFIG_FILES" ;; #(
47156   *) :
47157     set x $CONFIG_FILES ;; #(
47158   *) :
47159      ;;
47160 esac
47161   shift
47162   # Used to flag and report bootstrapping failures.
47163   am_rc=0
47164   for am_mf
47165   do
47166     # Strip MF so we end up with the name of the file.
47167     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
47168     # Check whether this is an Automake generated Makefile which includes
47169     # dependency-tracking related rules and includes.
47170     # Grep'ing the whole file directly is not great: AIX grep has a line
47171     # limit of 2048, but all sed's we know have understand at least 4000.
47172     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
47173       || continue
47174     am_dirpart=`$as_dirname -- "$am_mf" ||
47175 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47176          X"$am_mf" : 'X\(//\)[^/]' \| \
47177          X"$am_mf" : 'X\(//\)$' \| \
47178          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47179 printf "%s\n" X"$am_mf" |
47180     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47181             s//\1/
47182             q
47183           }
47184           /^X\(\/\/\)[^/].*/{
47185             s//\1/
47186             q
47187           }
47188           /^X\(\/\/\)$/{
47189             s//\1/
47190             q
47191           }
47192           /^X\(\/\).*/{
47193             s//\1/
47194             q
47195           }
47196           s/.*/./; q'`
47197     am_filepart=`$as_basename -- "$am_mf" ||
47198 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
47199          X"$am_mf" : 'X\(//\)$' \| \
47200          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47201 printf "%s\n" X/"$am_mf" |
47202     sed '/^.*\/\([^/][^/]*\)\/*$/{
47203             s//\1/
47204             q
47205           }
47206           /^X\/\(\/\/\)$/{
47207             s//\1/
47208             q
47209           }
47210           /^X\/\(\/\).*/{
47211             s//\1/
47212             q
47213           }
47214           s/.*/./; q'`
47215     { echo "$as_me:$LINENO: cd "$am_dirpart" \
47216       && sed -e '/# am--include-marker/d' "$am_filepart" \
47217         | $MAKE -f - am--depfiles" >&5
47218    (cd "$am_dirpart" \
47219       && sed -e '/# am--include-marker/d' "$am_filepart" \
47220         | $MAKE -f - am--depfiles) >&5 2>&5
47221    ac_status=$?
47222    echo "$as_me:$LINENO: \$? = $ac_status" >&5
47223    (exit $ac_status); } || am_rc=$?
47224   done
47225   if test $am_rc -ne 0; then
47226     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47227 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
47228 as_fn_error $? "Something went wrong bootstrapping makefile fragments
47229     for automatic dependency tracking.  If GNU make was not used, consider
47230     re-running the configure script with MAKE=\"gmake\" (or whatever is
47231     necessary).  You can also try re-running configure with the
47232     '--disable-dependency-tracking' option to at least be able to build
47233     the package (albeit without support for automatic dependency tracking).
47234 See \`config.log' for more details" "$LINENO" 5; }
47235   fi
47236   { am_dirpart=; unset am_dirpart;}
47237   { am_filepart=; unset am_filepart;}
47238   { am_mf=; unset am_mf;}
47239   { am_rc=; unset am_rc;}
47240   rm -f conftest-deps.mk
47241 }
47242  ;;
47243     "libtool":C)
47244
47245     # See if we are running on zsh, and set the options that allow our
47246     # commands through without removal of \ escapes.
47247     if test -n "${ZSH_VERSION+set}"; then
47248       setopt NO_GLOB_SUBST
47249     fi
47250
47251     cfgfile=${ofile}T
47252     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47253     $RM "$cfgfile"
47254
47255     cat <<_LT_EOF >> "$cfgfile"
47256 #! $SHELL
47257 # Generated automatically by $as_me ($PACKAGE) $VERSION
47258 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47259
47260 # Provide generalized library-building support services.
47261 # Written by Gordon Matzigkeit, 1996
47262
47263 # Copyright (C) 2014 Free Software Foundation, Inc.
47264 # This is free software; see the source for copying conditions.  There is NO
47265 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
47266
47267 # GNU Libtool is free software; you can redistribute it and/or modify
47268 # it under the terms of the GNU General Public License as published by
47269 # the Free Software Foundation; either version 2 of of the License, or
47270 # (at your option) any later version.
47271 #
47272 # As a special exception to the GNU General Public License, if you
47273 # distribute this file as part of a program or library that is built
47274 # using GNU Libtool, you may include this file under the  same
47275 # distribution terms that you use for the rest of that program.
47276 #
47277 # GNU Libtool is distributed in the hope that it will be useful, but
47278 # WITHOUT ANY WARRANTY; without even the implied warranty of
47279 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47280 # GNU General Public License for more details.
47281 #
47282 # You should have received a copy of the GNU General Public License
47283 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
47284
47285
47286 # The names of the tagged configurations supported by this script.
47287 available_tags='RC '
47288
47289 # Configured defaults for sys_lib_dlsearch_path munging.
47290 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
47291
47292 # ### BEGIN LIBTOOL CONFIG
47293
47294 # Which release of libtool.m4 was used?
47295 macro_version=$macro_version
47296 macro_revision=$macro_revision
47297
47298 # Assembler program.
47299 AS=$lt_AS
47300
47301 # DLL creation program.
47302 DLLTOOL=$lt_DLLTOOL
47303
47304 # Object dumper program.
47305 OBJDUMP=$lt_OBJDUMP
47306
47307 # Whether or not to build shared libraries.
47308 build_libtool_libs=$enable_shared
47309
47310 # Whether or not to build static libraries.
47311 build_old_libs=$enable_static
47312
47313 # What type of objects to build.
47314 pic_mode=$pic_mode
47315
47316 # Whether or not to optimize for fast installation.
47317 fast_install=$enable_fast_install
47318
47319 # Shared archive member basename,for filename based shared library versioning on AIX.
47320 shared_archive_member_spec=$shared_archive_member_spec
47321
47322 # Shell to use when invoking shell scripts.
47323 SHELL=$lt_SHELL
47324
47325 # An echo program that protects backslashes.
47326 ECHO=$lt_ECHO
47327
47328 # The PATH separator for the build system.
47329 PATH_SEPARATOR=$lt_PATH_SEPARATOR
47330
47331 # The host system.
47332 host_alias=$host_alias
47333 host=$host
47334 host_os=$host_os
47335
47336 # The build system.
47337 build_alias=$build_alias
47338 build=$build
47339 build_os=$build_os
47340
47341 # A sed program that does not truncate output.
47342 SED=$lt_SED
47343
47344 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47345 Xsed="\$SED -e 1s/^X//"
47346
47347 # A grep program that handles long lines.
47348 GREP=$lt_GREP
47349
47350 # An ERE matcher.
47351 EGREP=$lt_EGREP
47352
47353 # A literal string matcher.
47354 FGREP=$lt_FGREP
47355
47356 # A BSD- or MS-compatible name lister.
47357 NM=$lt_NM
47358
47359 # Whether we need soft or hard links.
47360 LN_S=$lt_LN_S
47361
47362 # What is the maximum length of a command?
47363 max_cmd_len=$max_cmd_len
47364
47365 # Object file suffix (normally "o").
47366 objext=$ac_objext
47367
47368 # Executable file suffix (normally "").
47369 exeext=$exeext
47370
47371 # whether the shell understands "unset".
47372 lt_unset=$lt_unset
47373
47374 # turn spaces into newlines.
47375 SP2NL=$lt_lt_SP2NL
47376
47377 # turn newlines into spaces.
47378 NL2SP=$lt_lt_NL2SP
47379
47380 # convert \$build file names to \$host format.
47381 to_host_file_cmd=$lt_cv_to_host_file_cmd
47382
47383 # convert \$build files to toolchain format.
47384 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
47385
47386 # A file(cmd) program that detects file types.
47387 FILECMD=$lt_FILECMD
47388
47389 # Method to check whether dependent libraries are shared objects.
47390 deplibs_check_method=$lt_deplibs_check_method
47391
47392 # Command to use when deplibs_check_method = "file_magic".
47393 file_magic_cmd=$lt_file_magic_cmd
47394
47395 # How to find potential files when deplibs_check_method = "file_magic".
47396 file_magic_glob=$lt_file_magic_glob
47397
47398 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
47399 want_nocaseglob=$lt_want_nocaseglob
47400
47401 # Command to associate shared and link libraries.
47402 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
47403
47404 # The archiver.
47405 AR=$lt_AR
47406
47407 # Flags to create an archive (by configure).
47408 lt_ar_flags=$lt_ar_flags
47409
47410 # Flags to create an archive.
47411 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
47412
47413 # How to feed a file listing to the archiver.
47414 archiver_list_spec=$lt_archiver_list_spec
47415
47416 # A symbol stripping program.
47417 STRIP=$lt_STRIP
47418
47419 # Commands used to install an old-style archive.
47420 RANLIB=$lt_RANLIB
47421 old_postinstall_cmds=$lt_old_postinstall_cmds
47422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47423
47424 # Whether to use a lock for old archive extraction.
47425 lock_old_archive_extraction=$lock_old_archive_extraction
47426
47427 # A C compiler.
47428 LTCC=$lt_CC
47429
47430 # LTCC compiler flags.
47431 LTCFLAGS=$lt_CFLAGS
47432
47433 # Take the output of nm and produce a listing of raw symbols and C names.
47434 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47435
47436 # Transform the output of nm in a proper C declaration.
47437 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47438
47439 # Transform the output of nm into a list of symbols to manually relocate.
47440 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
47441
47442 # Transform the output of nm in a C name address pair.
47443 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47444
47445 # Transform the output of nm in a C name address pair when lib prefix is needed.
47446 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47447
47448 # The name lister interface.
47449 nm_interface=$lt_lt_cv_nm_interface
47450
47451 # Specify filename containing input files for \$NM.
47452 nm_file_list_spec=$lt_nm_file_list_spec
47453
47454 # The root where to search for dependent libraries,and where our libraries should be installed.
47455 lt_sysroot=$lt_sysroot
47456
47457 # Command to truncate a binary pipe.
47458 lt_truncate_bin=$lt_lt_cv_truncate_bin
47459
47460 # The name of the directory that contains temporary libtool files.
47461 objdir=$objdir
47462
47463 # Used to examine libraries when file_magic_cmd begins with "file".
47464 MAGIC_CMD=$MAGIC_CMD
47465
47466 # Must we lock files when doing compilation?
47467 need_locks=$lt_need_locks
47468
47469 # Manifest tool.
47470 MANIFEST_TOOL=$lt_MANIFEST_TOOL
47471
47472 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47473 DSYMUTIL=$lt_DSYMUTIL
47474
47475 # Tool to change global to local symbols on Mac OS X.
47476 NMEDIT=$lt_NMEDIT
47477
47478 # Tool to manipulate fat objects and archives on Mac OS X.
47479 LIPO=$lt_LIPO
47480
47481 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47482 OTOOL=$lt_OTOOL
47483
47484 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47485 OTOOL64=$lt_OTOOL64
47486
47487 # Old archive suffix (normally "a").
47488 libext=$libext
47489
47490 # Shared library suffix (normally ".so").
47491 shrext_cmds=$lt_shrext_cmds
47492
47493 # The commands to extract the exported symbol list from a shared archive.
47494 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47495
47496 # Variables whose values should be saved in libtool wrapper scripts and
47497 # restored at link time.
47498 variables_saved_for_relink=$lt_variables_saved_for_relink
47499
47500 # Do we need the "lib" prefix for modules?
47501 need_lib_prefix=$need_lib_prefix
47502
47503 # Do we need a version for libraries?
47504 need_version=$need_version
47505
47506 # Library versioning type.
47507 version_type=$version_type
47508
47509 # Shared library runtime path variable.
47510 runpath_var=$runpath_var
47511
47512 # Shared library path variable.
47513 shlibpath_var=$shlibpath_var
47514
47515 # Is shlibpath searched before the hard-coded library search path?
47516 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47517
47518 # Format of library name prefix.
47519 libname_spec=$lt_libname_spec
47520
47521 # List of archive names.  First name is the real one, the rest are links.
47522 # The last name is the one that the linker finds with -lNAME
47523 library_names_spec=$lt_library_names_spec
47524
47525 # The coded name of the library, if different from the real name.
47526 soname_spec=$lt_soname_spec
47527
47528 # Permission mode override for installation of shared libraries.
47529 install_override_mode=$lt_install_override_mode
47530
47531 # Command to use after installation of a shared archive.
47532 postinstall_cmds=$lt_postinstall_cmds
47533
47534 # Command to use after uninstallation of a shared archive.
47535 postuninstall_cmds=$lt_postuninstall_cmds
47536
47537 # Commands used to finish a libtool library installation in a directory.
47538 finish_cmds=$lt_finish_cmds
47539
47540 # As "finish_cmds", except a single script fragment to be evaled but
47541 # not shown.
47542 finish_eval=$lt_finish_eval
47543
47544 # Whether we should hardcode library paths into libraries.
47545 hardcode_into_libs=$hardcode_into_libs
47546
47547 # Compile-time system search path for libraries.
47548 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47549
47550 # Detected run-time system search path for libraries.
47551 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
47552
47553 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
47554 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
47555
47556 # Whether dlopen is supported.
47557 dlopen_support=$enable_dlopen
47558
47559 # Whether dlopen of programs is supported.
47560 dlopen_self=$enable_dlopen_self
47561
47562 # Whether dlopen of statically linked programs is supported.
47563 dlopen_self_static=$enable_dlopen_self_static
47564
47565 # Commands to strip libraries.
47566 old_striplib=$lt_old_striplib
47567 striplib=$lt_striplib
47568
47569
47570 # The linker used to build libraries.
47571 LD=$lt_LD
47572
47573 # How to create reloadable object files.
47574 reload_flag=$lt_reload_flag
47575 reload_cmds=$lt_reload_cmds
47576
47577 # Commands used to build an old-style archive.
47578 old_archive_cmds=$lt_old_archive_cmds
47579
47580 # A language specific compiler.
47581 CC=$lt_compiler
47582
47583 # Is the compiler the GNU compiler?
47584 with_gcc=$GCC
47585
47586 # Compiler flag to turn off builtin functions.
47587 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47588
47589 # Additional compiler flags for building library objects.
47590 pic_flag=$lt_lt_prog_compiler_pic
47591
47592 # How to pass a linker flag through the compiler.
47593 wl=$lt_lt_prog_compiler_wl
47594
47595 # Compiler flag to prevent dynamic linking.
47596 link_static_flag=$lt_lt_prog_compiler_static
47597
47598 # Does compiler simultaneously support -c and -o options?
47599 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47600
47601 # Whether or not to add -lc for building shared libraries.
47602 build_libtool_need_lc=$archive_cmds_need_lc
47603
47604 # Whether or not to disallow shared libs when runtime libs are static.
47605 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47606
47607 # Compiler flag to allow reflexive dlopens.
47608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47609
47610 # Compiler flag to generate shared objects directly from archives.
47611 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47612
47613 # Whether the compiler copes with passing no objects directly.
47614 compiler_needs_object=$lt_compiler_needs_object
47615
47616 # Create an old-style archive from a shared archive.
47617 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47618
47619 # Create a temporary old-style archive to link instead of a shared archive.
47620 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47621
47622 # Commands used to build a shared archive.
47623 archive_cmds=$lt_archive_cmds
47624 archive_expsym_cmds=$lt_archive_expsym_cmds
47625
47626 # Commands used to build a loadable module if different from building
47627 # a shared archive.
47628 module_cmds=$lt_module_cmds
47629 module_expsym_cmds=$lt_module_expsym_cmds
47630
47631 # Whether we are building with GNU ld or not.
47632 with_gnu_ld=$lt_with_gnu_ld
47633
47634 # Flag that allows shared libraries with undefined symbols to be built.
47635 allow_undefined_flag=$lt_allow_undefined_flag
47636
47637 # Flag that enforces no undefined symbols.
47638 no_undefined_flag=$lt_no_undefined_flag
47639
47640 # Flag to hardcode \$libdir into a binary during linking.
47641 # This must work even if \$libdir does not exist
47642 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47643
47644 # Whether we need a single "-rpath" flag with a separated argument.
47645 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47646
47647 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47648 # DIR into the resulting binary.
47649 hardcode_direct=$hardcode_direct
47650
47651 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47652 # DIR into the resulting binary and the resulting library dependency is
47653 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
47654 # library is relocated.
47655 hardcode_direct_absolute=$hardcode_direct_absolute
47656
47657 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47658 # into the resulting binary.
47659 hardcode_minus_L=$hardcode_minus_L
47660
47661 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47662 # into the resulting binary.
47663 hardcode_shlibpath_var=$hardcode_shlibpath_var
47664
47665 # Set to "yes" if building a shared library automatically hardcodes DIR
47666 # into the library and all subsequent libraries and executables linked
47667 # against it.
47668 hardcode_automatic=$hardcode_automatic
47669
47670 # Set to yes if linker adds runtime paths of dependent libraries
47671 # to runtime path list.
47672 inherit_rpath=$inherit_rpath
47673
47674 # Whether libtool must link a program against all its dependency libraries.
47675 link_all_deplibs=$link_all_deplibs
47676
47677 # Set to "yes" if exported symbols are required.
47678 always_export_symbols=$always_export_symbols
47679
47680 # The commands to list exported symbols.
47681 export_symbols_cmds=$lt_export_symbols_cmds
47682
47683 # Symbols that should not be listed in the preloaded symbols.
47684 exclude_expsyms=$lt_exclude_expsyms
47685
47686 # Symbols that must always be exported.
47687 include_expsyms=$lt_include_expsyms
47688
47689 # Commands necessary for linking programs (against libraries) with templates.
47690 prelink_cmds=$lt_prelink_cmds
47691
47692 # Commands necessary for finishing linking programs.
47693 postlink_cmds=$lt_postlink_cmds
47694
47695 # Specify filename containing input files.
47696 file_list_spec=$lt_file_list_spec
47697
47698 # How to hardcode a shared library path into an executable.
47699 hardcode_action=$hardcode_action
47700
47701 # ### END LIBTOOL CONFIG
47702
47703 _LT_EOF
47704
47705     cat <<'_LT_EOF' >> "$cfgfile"
47706
47707 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
47708
47709 # func_munge_path_list VARIABLE PATH
47710 # -----------------------------------
47711 # VARIABLE is name of variable containing _space_ separated list of
47712 # directories to be munged by the contents of PATH, which is string
47713 # having a format:
47714 # "DIR[:DIR]:"
47715 #       string "DIR[ DIR]" will be prepended to VARIABLE
47716 # ":DIR[:DIR]"
47717 #       string "DIR[ DIR]" will be appended to VARIABLE
47718 # "DIRP[:DIRP]::[DIRA:]DIRA"
47719 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
47720 #       "DIRA[ DIRA]" will be appended to VARIABLE
47721 # "DIR[:DIR]"
47722 #       VARIABLE will be replaced by "DIR[ DIR]"
47723 func_munge_path_list ()
47724 {
47725     case x$2 in
47726     x)
47727         ;;
47728     *:)
47729         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
47730         ;;
47731     x:*)
47732         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
47733         ;;
47734     *::*)
47735         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
47736         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
47737         ;;
47738     *)
47739         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
47740         ;;
47741     esac
47742 }
47743
47744
47745 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
47746 func_cc_basename ()
47747 {
47748     for cc_temp in $*""; do
47749       case $cc_temp in
47750         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47751         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47752         \-*) ;;
47753         *) break;;
47754       esac
47755     done
47756     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
47757 }
47758
47759
47760 # ### END FUNCTIONS SHARED WITH CONFIGURE
47761
47762 _LT_EOF
47763
47764   case $host_os in
47765   aix3*)
47766     cat <<\_LT_EOF >> "$cfgfile"
47767 # AIX sometimes has problems with the GCC collect2 program.  For some
47768 # reason, if we set the COLLECT_NAMES environment variable, the problems
47769 # vanish in a puff of smoke.
47770 if test set != "${COLLECT_NAMES+set}"; then
47771   COLLECT_NAMES=
47772   export COLLECT_NAMES
47773 fi
47774 _LT_EOF
47775     ;;
47776   esac
47777
47778
47779
47780 ltmain=$ac_aux_dir/ltmain.sh
47781
47782
47783   # We use sed instead of cat because bash on DJGPP gets confused if
47784   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
47785   # text mode, it properly converts lines to CR/LF.  This bash problem
47786   # is reportedly fixed, but why not run on old versions too?
47787   $SED '$q' "$ltmain" >> "$cfgfile" \
47788      || (rm -f "$cfgfile"; exit 1)
47789
47790    mv -f "$cfgfile" "$ofile" ||
47791     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47792   chmod +x "$ofile"
47793
47794
47795     cat <<_LT_EOF >> "$ofile"
47796
47797 # ### BEGIN LIBTOOL TAG CONFIG: RC
47798
47799 # The linker used to build libraries.
47800 LD=$lt_LD_RC
47801
47802 # How to create reloadable object files.
47803 reload_flag=$lt_reload_flag_RC
47804 reload_cmds=$lt_reload_cmds_RC
47805
47806 # Commands used to build an old-style archive.
47807 old_archive_cmds=$lt_old_archive_cmds_RC
47808
47809 # A language specific compiler.
47810 CC=$lt_compiler_RC
47811
47812 # Is the compiler the GNU compiler?
47813 with_gcc=$GCC_RC
47814
47815 # Compiler flag to turn off builtin functions.
47816 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
47817
47818 # Additional compiler flags for building library objects.
47819 pic_flag=$lt_lt_prog_compiler_pic_RC
47820
47821 # How to pass a linker flag through the compiler.
47822 wl=$lt_lt_prog_compiler_wl_RC
47823
47824 # Compiler flag to prevent dynamic linking.
47825 link_static_flag=$lt_lt_prog_compiler_static_RC
47826
47827 # Does compiler simultaneously support -c and -o options?
47828 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
47829
47830 # Whether or not to add -lc for building shared libraries.
47831 build_libtool_need_lc=$archive_cmds_need_lc_RC
47832
47833 # Whether or not to disallow shared libs when runtime libs are static.
47834 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
47835
47836 # Compiler flag to allow reflexive dlopens.
47837 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
47838
47839 # Compiler flag to generate shared objects directly from archives.
47840 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
47841
47842 # Whether the compiler copes with passing no objects directly.
47843 compiler_needs_object=$lt_compiler_needs_object_RC
47844
47845 # Create an old-style archive from a shared archive.
47846 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
47847
47848 # Create a temporary old-style archive to link instead of a shared archive.
47849 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
47850
47851 # Commands used to build a shared archive.
47852 archive_cmds=$lt_archive_cmds_RC
47853 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
47854
47855 # Commands used to build a loadable module if different from building
47856 # a shared archive.
47857 module_cmds=$lt_module_cmds_RC
47858 module_expsym_cmds=$lt_module_expsym_cmds_RC
47859
47860 # Whether we are building with GNU ld or not.
47861 with_gnu_ld=$lt_with_gnu_ld_RC
47862
47863 # Flag that allows shared libraries with undefined symbols to be built.
47864 allow_undefined_flag=$lt_allow_undefined_flag_RC
47865
47866 # Flag that enforces no undefined symbols.
47867 no_undefined_flag=$lt_no_undefined_flag_RC
47868
47869 # Flag to hardcode \$libdir into a binary during linking.
47870 # This must work even if \$libdir does not exist
47871 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
47872
47873 # Whether we need a single "-rpath" flag with a separated argument.
47874 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
47875
47876 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47877 # DIR into the resulting binary.
47878 hardcode_direct=$hardcode_direct_RC
47879
47880 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47881 # DIR into the resulting binary and the resulting library dependency is
47882 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
47883 # library is relocated.
47884 hardcode_direct_absolute=$hardcode_direct_absolute_RC
47885
47886 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47887 # into the resulting binary.
47888 hardcode_minus_L=$hardcode_minus_L_RC
47889
47890 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47891 # into the resulting binary.
47892 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
47893
47894 # Set to "yes" if building a shared library automatically hardcodes DIR
47895 # into the library and all subsequent libraries and executables linked
47896 # against it.
47897 hardcode_automatic=$hardcode_automatic_RC
47898
47899 # Set to yes if linker adds runtime paths of dependent libraries
47900 # to runtime path list.
47901 inherit_rpath=$inherit_rpath_RC
47902
47903 # Whether libtool must link a program against all its dependency libraries.
47904 link_all_deplibs=$link_all_deplibs_RC
47905
47906 # Set to "yes" if exported symbols are required.
47907 always_export_symbols=$always_export_symbols_RC
47908
47909 # The commands to list exported symbols.
47910 export_symbols_cmds=$lt_export_symbols_cmds_RC
47911
47912 # Symbols that should not be listed in the preloaded symbols.
47913 exclude_expsyms=$lt_exclude_expsyms_RC
47914
47915 # Symbols that must always be exported.
47916 include_expsyms=$lt_include_expsyms_RC
47917
47918 # Commands necessary for linking programs (against libraries) with templates.
47919 prelink_cmds=$lt_prelink_cmds_RC
47920
47921 # Commands necessary for finishing linking programs.
47922 postlink_cmds=$lt_postlink_cmds_RC
47923
47924 # Specify filename containing input files.
47925 file_list_spec=$lt_file_list_spec_RC
47926
47927 # How to hardcode a shared library path into an executable.
47928 hardcode_action=$hardcode_action_RC
47929
47930 # ### END LIBTOOL TAG CONFIG: RC
47931 _LT_EOF
47932
47933  ;;
47934
47935   esac
47936 done # for ac_tag
47937
47938
47939 as_fn_exit 0
47940 _ACEOF
47941 ac_clean_files=$ac_clean_files_save
47942
47943 test $ac_write_fail = 0 ||
47944   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
47945
47946
47947 # configure is writing to config.log, and then calls config.status.
47948 # config.status does its own redirection, appending to config.log.
47949 # Unfortunately, on DOS this fails, as config.log is still kept open
47950 # by configure, so config.status won't be able to write to it; its
47951 # output is simply discarded.  So we exec the FD to /dev/null,
47952 # effectively closing config.log, so it can be properly (re)opened and
47953 # appended to by config.status.  When coming back to configure, we
47954 # need to make the FD available again.
47955 if test "$no_create" != yes; then
47956   ac_cs_success=:
47957   ac_config_status_args=
47958   test "$silent" = yes &&
47959     ac_config_status_args="$ac_config_status_args --quiet"
47960   exec 5>/dev/null
47961   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47962   exec 5>>config.log
47963   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47964   # would make configure fail if this is the last instruction.
47965   $ac_cs_success || as_fn_exit 1
47966 fi
47967 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
47968   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
47969 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
47970 fi
47971
47972
47973
47974     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
47975   if test -z "$tmp_cpp"; then
47976     tmp_cpp='cpp'
47977   fi
47978   cat >./tests/configurehelp.pm <<_EOF
47979 # This is a generated file.  Do not edit.
47980
47981 package configurehelp;
47982
47983 use strict;
47984 use warnings;
47985 use Exporter;
47986
47987 use vars qw(
47988     @ISA
47989     @EXPORT_OK
47990     \$Cpreprocessor
47991     );
47992
47993 @ISA = qw(Exporter);
47994
47995 @EXPORT_OK = qw(
47996     \$Cpreprocessor
47997     );
47998
47999 \$Cpreprocessor = '$tmp_cpp';
48000
48001 1;
48002 _EOF
48003
48004
48005
48006 ## ---------------------------------- ##
48007 ##  Start of distclean amending code  ##
48008 ## ---------------------------------- ##
48009
48010 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
48011 do
48012
48013 if test ! -f "$xc_subdir/Makefile"; then
48014   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
48015   exit 1
48016 fi
48017
48018 # Fetch dependency tracking file list from Makefile include lines.
48019
48020 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
48021 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
48022
48023 # --disable-dependency-tracking might have been used, consequently
48024 # there is nothing to amend without a dependency tracking file list.
48025
48026 if test $xc_cnt_words -gt 0; then
48027
48028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
48029 printf "%s\n" "$as_me: amending $xc_subdir/Makefile" >&6;}
48030
48031 # Build Makefile specific patch hunk.
48032
48033 xc_p="$xc_subdir/xc_patch.tmp"
48034
48035 xc_rm_depfiles=`echo "$xc_inc_lines" \
48036   | $SED 's%include%    -rm -f%' 2>/dev/null`
48037
48038 xc_dep_subdirs=`echo "$xc_inc_lines" \
48039   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
48040   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
48041   | sort | uniq`
48042
48043 echo "$xc_rm_depfiles" >$xc_p
48044
48045 for xc_dep_dir in $xc_dep_subdirs; do
48046   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
48047   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
48048   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
48049   echo "${xc_tab}fi"                                                                >>$xc_p
48050 done
48051
48052 # Build Makefile patching sed scripts.
48053
48054 xc_s1="$xc_subdir/xc_script_1.tmp"
48055 xc_s2="$xc_subdir/xc_script_2.tmp"
48056 xc_s3="$xc_subdir/xc_script_3.tmp"
48057
48058 cat >$xc_s1 <<\_EOT
48059 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
48060   s/^.*(DEPDIR)/___xc_depdir_line___/
48061 }
48062 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
48063   s/^.*(DEPDIR)/___xc_depdir_line___/
48064 }
48065 _EOT
48066
48067 cat >$xc_s2 <<\_EOT
48068 /___xc_depdir_line___$/{
48069   N
48070   /___xc_depdir_line___$/D
48071 }
48072 _EOT
48073
48074 cat >$xc_s3 <<_EOT
48075 /^___xc_depdir_line___/{
48076   r $xc_p
48077   d
48078 }
48079 _EOT
48080
48081 # Apply patch to Makefile and cleanup.
48082
48083 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
48084 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
48085 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
48086
48087 if test -f "$xc_subdir/Makefile.tmp3"; then
48088   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
48089 fi
48090
48091 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
48092 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
48093 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
48094
48095 test -f "$xc_p"  && rm -f "$xc_p"
48096 test -f "$xc_s1" && rm -f "$xc_s1"
48097 test -f "$xc_s2" && rm -f "$xc_s2"
48098 test -f "$xc_s3" && rm -f "$xc_s3"
48099
48100 fi
48101
48102 done
48103
48104 ## -------------------------------- ##
48105 ##  End of distclean amending code  ##
48106 ## -------------------------------- ##
48107
48108
48109
48110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
48111
48112   Host setup:       ${host}
48113   Install prefix:   ${prefix}
48114   Compiler:         ${CC}
48115    CFLAGS:          ${CFLAGS}
48116    CPPFLAGS:        ${CPPFLAGS}
48117    LDFLAGS:         ${LDFLAGS}
48118    LIBS:            ${LIBS}
48119
48120   curl version:     ${CURLVERSION}
48121   SSL:              ${curl_ssl_msg}
48122   SSH:              ${curl_ssh_msg}
48123   zlib:             ${curl_zlib_msg}
48124   brotli:           ${curl_brotli_msg}
48125   zstd:             ${curl_zstd_msg}
48126   GSS-API:          ${curl_gss_msg}
48127   GSASL:            ${curl_gsasl_msg}
48128   TLS-SRP:          ${curl_tls_srp_msg}
48129   resolver:         ${curl_res_msg}
48130   IPv6:             ${curl_ipv6_msg}
48131   Unix sockets:     ${curl_unix_sockets_msg}
48132   IDN:              ${curl_idn_msg}
48133   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
48134   Built-in manual:  ${curl_manual_msg}
48135   --libcurl option: ${curl_libcurl_msg}
48136   Verbose errors:   ${curl_verbose_msg}
48137   Code coverage:    ${curl_coverage_msg}
48138   SSPI:             ${curl_sspi_msg}
48139   ca cert bundle:   ${ca}${ca_warning}
48140   ca cert path:     ${capath}${capath_warning}
48141   ca fallback:      ${with_ca_fallback}
48142   LDAP:             ${curl_ldap_msg}
48143   LDAPS:            ${curl_ldaps_msg}
48144   RTSP:             ${curl_rtsp_msg}
48145   RTMP:             ${curl_rtmp_msg}
48146   PSL:              ${curl_psl_msg}
48147   Alt-svc:          ${curl_altsvc_msg}
48148   Headers API:      ${curl_headers_msg}
48149   HSTS:             ${curl_hsts_msg}
48150   HTTP1:            ${curl_h1_msg}
48151   HTTP2:            ${curl_h2_msg}
48152   HTTP3:            ${curl_h3_msg}
48153   ECH:              ${curl_ech_msg}
48154   WebSockets:       ${curl_ws_msg}
48155   Protocols:        ${SUPPORT_PROTOCOLS}
48156   Features:         ${SUPPORT_FEATURES}
48157 " >&5
48158 printf "%s\n" "$as_me: Configured to build curl/libcurl:
48159
48160   Host setup:       ${host}
48161   Install prefix:   ${prefix}
48162   Compiler:         ${CC}
48163    CFLAGS:          ${CFLAGS}
48164    CPPFLAGS:        ${CPPFLAGS}
48165    LDFLAGS:         ${LDFLAGS}
48166    LIBS:            ${LIBS}
48167
48168   curl version:     ${CURLVERSION}
48169   SSL:              ${curl_ssl_msg}
48170   SSH:              ${curl_ssh_msg}
48171   zlib:             ${curl_zlib_msg}
48172   brotli:           ${curl_brotli_msg}
48173   zstd:             ${curl_zstd_msg}
48174   GSS-API:          ${curl_gss_msg}
48175   GSASL:            ${curl_gsasl_msg}
48176   TLS-SRP:          ${curl_tls_srp_msg}
48177   resolver:         ${curl_res_msg}
48178   IPv6:             ${curl_ipv6_msg}
48179   Unix sockets:     ${curl_unix_sockets_msg}
48180   IDN:              ${curl_idn_msg}
48181   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
48182   Built-in manual:  ${curl_manual_msg}
48183   --libcurl option: ${curl_libcurl_msg}
48184   Verbose errors:   ${curl_verbose_msg}
48185   Code coverage:    ${curl_coverage_msg}
48186   SSPI:             ${curl_sspi_msg}
48187   ca cert bundle:   ${ca}${ca_warning}
48188   ca cert path:     ${capath}${capath_warning}
48189   ca fallback:      ${with_ca_fallback}
48190   LDAP:             ${curl_ldap_msg}
48191   LDAPS:            ${curl_ldaps_msg}
48192   RTSP:             ${curl_rtsp_msg}
48193   RTMP:             ${curl_rtmp_msg}
48194   PSL:              ${curl_psl_msg}
48195   Alt-svc:          ${curl_altsvc_msg}
48196   Headers API:      ${curl_headers_msg}
48197   HSTS:             ${curl_hsts_msg}
48198   HTTP1:            ${curl_h1_msg}
48199   HTTP2:            ${curl_h2_msg}
48200   HTTP3:            ${curl_h3_msg}
48201   ECH:              ${curl_ech_msg}
48202   WebSockets:       ${curl_ws_msg}
48203   Protocols:        ${SUPPORT_PROTOCOLS}
48204   Features:         ${SUPPORT_FEATURES}
48205 " >&6;}
48206 if test -n "$experimental"; then
48207  cat >&2 << _EOF
48208   WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!
48209 _EOF
48210 fi
48211