Imported Upstream version 7.62.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.69 for curl -.
4 #
5 # Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
15 # This configure script may be copied, distributed and modified under the
16 # terms of the curl license; see COPYING for more details
17
18 ## -------------------------------- ##
19 ##  XC_CONFIGURE_PREAMBLE ver: 1.0  ##
20 ## -------------------------------- ##
21
22 xc_configure_preamble_ver_major='1'
23 xc_configure_preamble_ver_minor='0'
24
25 #
26 # Set IFS to space, tab and newline.
27 #
28
29 xc_space=' '
30 xc_tab='        '
31 xc_newline='
32 '
33 IFS="$xc_space$xc_tab$xc_newline"
34
35 #
36 # Set internationalization behavior variables.
37 #
38
39 LANG='C'
40 LC_ALL='C'
41 LANGUAGE='C'
42 export LANG
43 export LC_ALL
44 export LANGUAGE
45
46 #
47 # Some useful variables.
48 #
49
50 xc_msg_warn='configure: WARNING:'
51 xc_msg_abrt='Can not continue.'
52 xc_msg_err='configure: error:'
53
54 #
55 # Verify that 'echo' command is available, otherwise abort.
56 #
57
58 xc_tst_str='unknown'
59 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60 case "x$xc_tst_str" in # ((
61   xsuccess)
62     :
63     ;;
64   *)
65     # Try built-in echo, and fail.
66     echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
67     exit 1
68     ;;
69 esac
70
71 #
72 # Verify that 'test' command is available, otherwise abort.
73 #
74
75 xc_tst_str='unknown'
76 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77 case "x$xc_tst_str" in # ((
78   xsuccess)
79     :
80     ;;
81   *)
82     echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
83     exit 1
84     ;;
85 esac
86
87 #
88 # Verify that 'PATH' variable is set, otherwise abort.
89 #
90
91 xc_tst_str='unknown'
92 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93 case "x$xc_tst_str" in # ((
94   xsuccess)
95     :
96     ;;
97   *)
98     echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
99     exit 1
100     ;;
101 esac
102
103 #
104 # Verify that 'expr' command is available, otherwise abort.
105 #
106
107 xc_tst_str='unknown'
108 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109 case "x$xc_tst_str" in # ((
110   x7)
111     :
112     ;;
113   *)
114     echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
115     exit 1
116     ;;
117 esac
118
119 #
120 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
121 #
122
123 xc_tst_str='unknown'
124 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125   | sed -e 's:unknown:success:' 2>/dev/null`
126 case "x$xc_tst_str" in # ((
127   xsuccess)
128     :
129     ;;
130   *)
131     echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
132     exit 1
133     ;;
134 esac
135
136 #
137 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
138 #
139
140 xc_tst_str='unknown'
141 (`echo "$xc_tst_str" 2>/dev/null \
142   | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143 case "x$xc_tst_str" in # ((
144   xsuccess)
145     :
146     ;;
147   *)
148     echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
149     exit 1
150     ;;
151 esac
152
153 #
154 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
155 #
156
157 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159   | tr -d "0123456789$xc_tab" 2>/dev/null`
160 case "x$xc_tst_str" in # ((
161   xsuccess)
162     :
163     ;;
164   *)
165     echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
166     exit 1
167     ;;
168 esac
169
170 #
171 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
172 #
173
174 xc_tst_str='unknown unknown unknown unknown'
175 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176   | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177 case "x$xc_tst_str" in # ((
178   x4)
179     :
180     ;;
181   *)
182     echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
183     exit 1
184     ;;
185 esac
186
187 #
188 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
189 #
190
191 xc_tst_str='unknown'
192 xc_tst_str=`cat <<_EOT 2>/dev/null \
193   | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194 unknown
195 unknown
196 unknown
197 _EOT`
198 case "x$xc_tst_str" in # ((
199   x3)
200     :
201     ;;
202   *)
203     echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
204     exit 1
205     ;;
206 esac
207
208 #
209 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
210 #
211
212 # Directory count in 'PATH' when using a colon separator.
213 xc_tst_dirs_col='x'
214 xc_tst_prev_IFS=$IFS; IFS=':'
215 for xc_tst_dir in $PATH; do
216   IFS=$xc_tst_prev_IFS
217   xc_tst_dirs_col="x$xc_tst_dirs_col"
218 done
219 IFS=$xc_tst_prev_IFS
220 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
221
222 # Directory count in 'PATH' when using a semicolon separator.
223 xc_tst_dirs_sem='x'
224 xc_tst_prev_IFS=$IFS; IFS=';'
225 for xc_tst_dir in $PATH; do
226   IFS=$xc_tst_prev_IFS
227   xc_tst_dirs_sem="x$xc_tst_dirs_sem"
228 done
229 IFS=$xc_tst_prev_IFS
230 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
231
232 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233   # When both counting methods give the same result we do not want to
234   # chose one over the other, and consider auto-detection not possible.
235   if test -z "$PATH_SEPARATOR"; then
236     # User should provide the correct 'PATH_SEPARATOR' definition.
237     # Until then, guess that it is colon!
238     echo "$xc_msg_warn path separator not determined, guessing colon" >&2
239     PATH_SEPARATOR=':'
240   fi
241 else
242   # Separator with the greater directory count is the auto-detected one.
243   if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
244     xc_tst_auto_separator=';'
245   else
246     xc_tst_auto_separator=':'
247   fi
248   if test -z "$PATH_SEPARATOR"; then
249     # Simply use the auto-detected one when not already set.
250     PATH_SEPARATOR=$xc_tst_auto_separator
251   elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
252     echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
253   fi
254 fi
255 xc_PATH_SEPARATOR=$PATH_SEPARATOR
256
257 xc_configure_preamble_result='yes'
258
259
260 ## -------------------- ##
261 ## M4sh Initialization. ##
262 ## -------------------- ##
263
264 # Be more Bourne compatible
265 DUALCASE=1; export DUALCASE # for MKS sh
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
267   emulate sh
268   NULLCMD=:
269   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
270   # is contrary to our usage.  Disable this feature.
271   alias -g '${1+"$@"}'='"$@"'
272   setopt NO_GLOB_SUBST
273 else
274   case `(set -o) 2>/dev/null` in #(
275   *posix*) :
276     set -o posix ;; #(
277   *) :
278      ;;
279 esac
280 fi
281
282
283 as_nl='
284 '
285 export as_nl
286 # Printing a long string crashes Solaris 7 /usr/bin/printf.
287 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
290 # Prefer a ksh shell builtin over an external printf program on Solaris,
291 # but without wasting forks for bash or zsh.
292 if test -z "$BASH_VERSION$ZSH_VERSION" \
293     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
294   as_echo='print -r --'
295   as_echo_n='print -rn --'
296 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
297   as_echo='printf %s\n'
298   as_echo_n='printf %s'
299 else
300   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
301     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
302     as_echo_n='/usr/ucb/echo -n'
303   else
304     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
305     as_echo_n_body='eval
306       arg=$1;
307       case $arg in #(
308       *"$as_nl"*)
309         expr "X$arg" : "X\\(.*\\)$as_nl";
310         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
311       esac;
312       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
313     '
314     export as_echo_n_body
315     as_echo_n='sh -c $as_echo_n_body as_echo'
316   fi
317   export as_echo_body
318   as_echo='sh -c $as_echo_body as_echo'
319 fi
320
321
322
323 # IFS
324 # We need space, tab and new line, in precisely that order.  Quoting is
325 # there to prevent editors from complaining about space-tab.
326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
327 # splitting by setting IFS to empty value.)
328 IFS=" ""        $as_nl"
329
330 # Find who we are.  Look in the path if we contain no directory separator.
331 as_myself=
332 case $0 in #((
333   *[\\/]* ) as_myself=$0 ;;
334   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
335 for as_dir in $PATH
336 do
337   IFS=$as_save_IFS
338   test -z "$as_dir" && as_dir=.
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   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352   exit 1
353 fi
354
355 # Unset variables that we do not need and which cause bugs (e.g. in
356 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
357 # suppresses any "Segmentation fault" message there.  '((' could
358 # trigger a bug in pdksh 5.2.14.
359 for as_var in BASH_ENV ENV MAIL MAILPATH
360 do eval test x\${$as_var+set} = xset \
361   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
362 done
363 PS1='$ '
364 PS2='> '
365 PS4='+ '
366
367 # NLS nuisances.
368 LC_ALL=C
369 export LC_ALL
370 LANGUAGE=C
371 export LANGUAGE
372
373 # CDPATH.
374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
375
376 # Use a proper internal environment variable to ensure we don't fall
377   # into an infinite loop, continuously re-executing ourselves.
378   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
379     _as_can_reexec=no; export _as_can_reexec;
380     # We cannot yet assume a decent shell, so we have to provide a
381 # neutralization value for shells without unset; and this also
382 # works around shells that cannot unset nonexistent variables.
383 # Preserve -v and -x to the replacement shell.
384 BASH_ENV=/dev/null
385 ENV=/dev/null
386 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
387 case $- in # ((((
388   *v*x* | *x*v* ) as_opts=-vx ;;
389   *v* ) as_opts=-v ;;
390   *x* ) as_opts=-x ;;
391   * ) as_opts= ;;
392 esac
393 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
394 # Admittedly, this is quite paranoid, since all the known shells bail
395 # out after a failed `exec'.
396 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
397 as_fn_exit 255
398   fi
399   # We don't want this to propagate to other subprocesses.
400           { _as_can_reexec=; unset _as_can_reexec;}
401 if test "x$CONFIG_SHELL" = x; then
402   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
403   emulate sh
404   NULLCMD=:
405   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
406   # is contrary to our usage.  Disable this feature.
407   alias -g '\${1+\"\$@\"}'='\"\$@\"'
408   setopt NO_GLOB_SUBST
409 else
410   case \`(set -o) 2>/dev/null\` in #(
411   *posix*) :
412     set -o posix ;; #(
413   *) :
414      ;;
415 esac
416 fi
417 "
418   as_required="as_fn_return () { (exit \$1); }
419 as_fn_success () { as_fn_return 0; }
420 as_fn_failure () { as_fn_return 1; }
421 as_fn_ret_success () { return 0; }
422 as_fn_ret_failure () { return 1; }
423
424 exitcode=0
425 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
426 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
427 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
428 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
429 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
430
431 else
432   exitcode=1; echo positional parameters were not saved.
433 fi
434 test x\$exitcode = x0 || exit 1
435 test -x / || exit 1"
436   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
437   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
438   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
439   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
440 test \$(( 1 + 1 )) = 2 || exit 1
441
442   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
443     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
444     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
446     PATH=/empty FPATH=/empty; export PATH FPATH
447     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
448       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
449   if (eval "$as_required") 2>/dev/null; then :
450   as_have_required=yes
451 else
452   as_have_required=no
453 fi
454   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
455
456 else
457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
458 as_found=false
459 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
460 do
461   IFS=$as_save_IFS
462   test -z "$as_dir" && as_dir=.
463   as_found=:
464   case $as_dir in #(
465          /*)
466            for as_base in sh bash ksh sh5; do
467              # Try only shells that exist, to save several forks.
468              as_shell=$as_dir/$as_base
469              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
470                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
471   CONFIG_SHELL=$as_shell as_have_required=yes
472                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
473   break 2
474 fi
475 fi
476            done;;
477        esac
478   as_found=false
479 done
480 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
481               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
482   CONFIG_SHELL=$SHELL as_have_required=yes
483 fi; }
484 IFS=$as_save_IFS
485
486
487       if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
506 exit 255
507 fi
508
509     if test x$as_have_required = xno; then :
510   $as_echo "$0: This script requires a shell more modern than all"
511   $as_echo "$0: the shells that I found on your system."
512   if test x${ZSH_VERSION+set} = xset ; then
513     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
514     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
515   else
516     $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
517 $0: mailing list: https://curl.haxx.se/mail/ about your
518 $0: system, including any error possibly output before this
519 $0: message. Then install a modern shell, or manually run
520 $0: the script under such a shell if you do have one."
521   fi
522   exit 1
523 fi
524 fi
525 fi
526 SHELL=${CONFIG_SHELL-/bin/sh}
527 export SHELL
528 # Unset more variables known to interfere with behavior of common tools.
529 CLICOLOR_FORCE= GREP_OPTIONS=
530 unset CLICOLOR_FORCE GREP_OPTIONS
531
532 ## --------------------- ##
533 ## M4sh Shell Functions. ##
534 ## --------------------- ##
535 # as_fn_unset VAR
536 # ---------------
537 # Portably unset VAR.
538 as_fn_unset ()
539 {
540   { eval $1=; unset $1;}
541 }
542 as_unset=as_fn_unset
543
544 # as_fn_set_status STATUS
545 # -----------------------
546 # Set $? to STATUS, without forking.
547 as_fn_set_status ()
548 {
549   return $1
550 } # as_fn_set_status
551
552 # as_fn_exit STATUS
553 # -----------------
554 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
555 as_fn_exit ()
556 {
557   set +e
558   as_fn_set_status $1
559   exit $1
560 } # as_fn_exit
561
562 # as_fn_mkdir_p
563 # -------------
564 # Create "$as_dir" as a directory, including parents if necessary.
565 as_fn_mkdir_p ()
566 {
567
568   case $as_dir in #(
569   -*) as_dir=./$as_dir;;
570   esac
571   test -d "$as_dir" || eval $as_mkdir_p || {
572     as_dirs=
573     while :; do
574       case $as_dir in #(
575       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
576       *) as_qdir=$as_dir;;
577       esac
578       as_dirs="'$as_qdir' $as_dirs"
579       as_dir=`$as_dirname -- "$as_dir" ||
580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
581          X"$as_dir" : 'X\(//\)[^/]' \| \
582          X"$as_dir" : 'X\(//\)$' \| \
583          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
584 $as_echo X"$as_dir" |
585     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
586             s//\1/
587             q
588           }
589           /^X\(\/\/\)[^/].*/{
590             s//\1/
591             q
592           }
593           /^X\(\/\/\)$/{
594             s//\1/
595             q
596           }
597           /^X\(\/\).*/{
598             s//\1/
599             q
600           }
601           s/.*/./; q'`
602       test -d "$as_dir" && break
603     done
604     test -z "$as_dirs" || eval "mkdir $as_dirs"
605   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
606
607
608 } # as_fn_mkdir_p
609
610 # as_fn_executable_p FILE
611 # -----------------------
612 # Test if FILE is an executable regular file.
613 as_fn_executable_p ()
614 {
615   test -f "$1" && test -x "$1"
616 } # as_fn_executable_p
617 # as_fn_append VAR VALUE
618 # ----------------------
619 # Append the text in VALUE to the end of the definition contained in VAR. Take
620 # advantage of any shell optimizations that allow amortized linear growth over
621 # repeated appends, instead of the typical quadratic growth present in naive
622 # implementations.
623 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
624   eval 'as_fn_append ()
625   {
626     eval $1+=\$2
627   }'
628 else
629   as_fn_append ()
630   {
631     eval $1=\$$1\$2
632   }
633 fi # as_fn_append
634
635 # as_fn_arith ARG...
636 # ------------------
637 # Perform arithmetic evaluation on the ARGs, and store the result in the
638 # global $as_val. Take advantage of shells that can avoid forks. The arguments
639 # must be portable across $(()) and expr.
640 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
641   eval 'as_fn_arith ()
642   {
643     as_val=$(( $* ))
644   }'
645 else
646   as_fn_arith ()
647   {
648     as_val=`expr "$@" || test $? -eq 1`
649   }
650 fi # as_fn_arith
651
652
653 # as_fn_error STATUS ERROR [LINENO LOG_FD]
654 # ----------------------------------------
655 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
656 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
657 # script with STATUS, using 1 if that was 0.
658 as_fn_error ()
659 {
660   as_status=$1; test $as_status -eq 0 && as_status=1
661   if test "$4"; then
662     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
663     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
664   fi
665   $as_echo "$as_me: error: $2" >&2
666   as_fn_exit $as_status
667 } # as_fn_error
668
669 if expr a : '\(a\)' >/dev/null 2>&1 &&
670    test "X`expr 00001 : '.*\(...\)'`" = X001; then
671   as_expr=expr
672 else
673   as_expr=false
674 fi
675
676 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
677   as_basename=basename
678 else
679   as_basename=false
680 fi
681
682 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
683   as_dirname=dirname
684 else
685   as_dirname=false
686 fi
687
688 as_me=`$as_basename -- "$0" ||
689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
690          X"$0" : 'X\(//\)$' \| \
691          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
692 $as_echo X/"$0" |
693     sed '/^.*\/\([^/][^/]*\)\/*$/{
694             s//\1/
695             q
696           }
697           /^X\/\(\/\/\)$/{
698             s//\1/
699             q
700           }
701           /^X\/\(\/\).*/{
702             s//\1/
703             q
704           }
705           s/.*/./; q'`
706
707 # Avoid depending upon Character Ranges.
708 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
711 as_cr_digits='0123456789'
712 as_cr_alnum=$as_cr_Letters$as_cr_digits
713
714
715   as_lineno_1=$LINENO as_lineno_1a=$LINENO
716   as_lineno_2=$LINENO as_lineno_2a=$LINENO
717   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
718   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
719   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
720   sed -n '
721     p
722     /[$]LINENO/=
723   ' <$as_myself |
724     sed '
725       s/[$]LINENO.*/&-/
726       t lineno
727       b
728       :lineno
729       N
730       :loop
731       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
732       t loop
733       s/-\n.*//
734     ' >$as_me.lineno &&
735   chmod +x "$as_me.lineno" ||
736     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
737
738   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
739   # already done that, so ensure we don't try to do so again and fall
740   # in an infinite loop.  This has already happened in practice.
741   _as_can_reexec=no; export _as_can_reexec
742   # Don't try to exec as it changes $[0], causing all sort of problems
743   # (the dirname of $[0] is not the place where we might find the
744   # original and so on.  Autoconf is especially sensitive to this).
745   . "./$as_me.lineno"
746   # Exit status is that of the last command.
747   exit
748 }
749
750 ECHO_C= ECHO_N= ECHO_T=
751 case `echo -n x` in #(((((
752 -n*)
753   case `echo 'xy\c'` in
754   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
755   xy)  ECHO_C='\c';;
756   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
757        ECHO_T=' ';;
758   esac;;
759 *)
760   ECHO_N='-n';;
761 esac
762
763 rm -f conf$$ conf$$.exe conf$$.file
764 if test -d conf$$.dir; then
765   rm -f conf$$.dir/conf$$.file
766 else
767   rm -f conf$$.dir
768   mkdir conf$$.dir 2>/dev/null
769 fi
770 if (echo >conf$$.file) 2>/dev/null; then
771   if ln -s conf$$.file conf$$ 2>/dev/null; then
772     as_ln_s='ln -s'
773     # ... but there are two gotchas:
774     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
775     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
776     # In both cases, we have to default to `cp -pR'.
777     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
778       as_ln_s='cp -pR'
779   elif ln conf$$.file conf$$ 2>/dev/null; then
780     as_ln_s=ln
781   else
782     as_ln_s='cp -pR'
783   fi
784 else
785   as_ln_s='cp -pR'
786 fi
787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
788 rmdir conf$$.dir 2>/dev/null
789
790 if mkdir -p . 2>/dev/null; then
791   as_mkdir_p='mkdir -p "$as_dir"'
792 else
793   test -d ./-p && rmdir ./-p
794   as_mkdir_p=false
795 fi
796
797 as_test_x='test -x'
798 as_executable_p=as_fn_executable_p
799
800 # Sed expression to map a string onto a valid CPP name.
801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
802
803 # Sed expression to map a string onto a valid variable name.
804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
805
806 SHELL=${CONFIG_SHELL-/bin/sh}
807
808
809 test -n "$DJDIR" || exec 7<&0 </dev/null
810 exec 6>&1
811
812 # Name of the host.
813 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
814 # so uname gets run too.
815 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
816
817 #
818 # Initializations.
819 #
820 ac_default_prefix=/usr/local
821 ac_clean_files=
822 ac_config_libobj_dir=.
823 LIBOBJS=
824 cross_compiling=no
825 subdirs=
826 MFLAGS=
827 MAKEFLAGS=
828
829 # Identity of this package.
830 PACKAGE_NAME='curl'
831 PACKAGE_TARNAME='curl'
832 PACKAGE_VERSION='-'
833 PACKAGE_STRING='curl -'
834 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
835 PACKAGE_URL=''
836
837 ac_unique_file="lib/urldata.h"
838 # Factoring default headers for most tests.
839 ac_includes_default="\
840 #include <stdio.h>
841 #ifdef HAVE_SYS_TYPES_H
842 # include <sys/types.h>
843 #endif
844 #ifdef HAVE_SYS_STAT_H
845 # include <sys/stat.h>
846 #endif
847 #ifdef STDC_HEADERS
848 # include <stdlib.h>
849 # include <stddef.h>
850 #else
851 # ifdef HAVE_STDLIB_H
852 #  include <stdlib.h>
853 # endif
854 #endif
855 #ifdef HAVE_STRING_H
856 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
857 #  include <memory.h>
858 # endif
859 # include <string.h>
860 #endif
861 #ifdef HAVE_STRINGS_H
862 # include <strings.h>
863 #endif
864 #ifdef HAVE_INTTYPES_H
865 # include <inttypes.h>
866 #endif
867 #ifdef HAVE_STDINT_H
868 # include <stdint.h>
869 #endif
870 #ifdef HAVE_UNISTD_H
871 # include <unistd.h>
872 #endif"
873
874 enable_option_checking=no
875 ac_subst_vars='am__EXEEXT_FALSE
876 am__EXEEXT_TRUE
877 LTLIBOBJS
878 LIBOBJS
879 SSL_BACKENDS
880 SUPPORT_PROTOCOLS
881 SUPPORT_FEATURES
882 ENABLE_STATIC
883 ENABLE_SHARED
884 CROSSCOMPILING_FALSE
885 CROSSCOMPILING_TRUE
886 BLANK_AT_MAKETIME
887 CURL_NETWORK_AND_TIME_LIBS
888 CURL_NETWORK_LIBS
889 LIBCURL_LIBS
890 CFLAG_CURL_SYMBOL_HIDING
891 DOING_CURL_SYMBOL_HIDING_FALSE
892 DOING_CURL_SYMBOL_HIDING_TRUE
893 USE_UNIX_SOCKETS
894 BUILD_LIBHOSTNAME_FALSE
895 BUILD_LIBHOSTNAME_TRUE
896 USE_EMBEDDED_ARES_FALSE
897 USE_EMBEDDED_ARES_TRUE
898 USE_ARES
899 subdirs
900 USE_MANUAL_FALSE
901 USE_MANUAL_TRUE
902 MANOPT
903 NROFF
904 PERL
905 IPV6_ENABLED
906 ZSH_FUNCTIONS_DIR
907 USE_NGHTTP2
908 IDN_ENABLED
909 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
910 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
911 CURL_LT_SHLIB_VERSIONED_FLAVOUR
912 USE_LIBRTMP
913 USE_LIBSSH
914 USE_LIBSSH2
915 LIBMETALINK_CPPFLAGS
916 LIBMETALINK_LDFLAGS
917 LIBMETALINK_LIBS
918 USE_LIBPSL_FALSE
919 USE_LIBPSL_TRUE
920 CURL_CA_BUNDLE
921 CURL_WITH_MULTI_SSL
922 SSL_ENABLED
923 USE_AXTLS
924 NSS_LIBS
925 USE_NSS
926 USE_MESALINK
927 USE_CYASSL
928 USE_MBEDTLS
929 USE_POLARSSL
930 HAVE_GNUTLS_SRP
931 USE_GNUTLS_NETTLE
932 USE_GNUTLS
933 HAVE_OPENSSL_SRP
934 RANDOM_FILE
935 SSL_LIBS
936 USE_DARWINSSL
937 USE_WINDOWS_SSPI
938 USE_SCHANNEL
939 DEFAULT_SSL_BACKEND
940 BUILD_STUB_GSS_FALSE
941 BUILD_STUB_GSS_TRUE
942 USE_OPENLDAP
943 HAVE_BROTLI
944 ZLIB_LIBS
945 HAVE_LIBZ_FALSE
946 HAVE_LIBZ_TRUE
947 HAVE_LIBZ
948 PKGCONFIG
949 CURL_DISABLE_GOPHER
950 CURL_DISABLE_SMTP
951 CURL_DISABLE_SMB
952 CURL_DISABLE_IMAP
953 CURL_DISABLE_POP3
954 CURL_DISABLE_TFTP
955 CURL_DISABLE_TELNET
956 CURL_DISABLE_DICT
957 CURL_DISABLE_PROXY
958 HAVE_LDAP_SSL
959 CURL_DISABLE_LDAPS
960 CURL_DISABLE_LDAP
961 CURL_DISABLE_FILE
962 CURL_DISABLE_FTP
963 CURL_DISABLE_RTSP
964 CURL_DISABLE_HTTP
965 DOING_NATIVE_WINDOWS_FALSE
966 DOING_NATIVE_WINDOWS_TRUE
967 BUILD_UNITTESTS_FALSE
968 BUILD_UNITTESTS_TRUE
969 CURLDEBUG_FALSE
970 CURLDEBUG_TRUE
971 USE_EXPLICIT_LIB_DEPS_FALSE
972 USE_EXPLICIT_LIB_DEPS_TRUE
973 REQUIRE_LIB_DEPS
974 CPPFLAG_CURL_STATICLIB
975 USE_CPPFLAG_CURL_STATICLIB_FALSE
976 USE_CPPFLAG_CURL_STATICLIB_TRUE
977 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
978 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
979 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
980 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
981 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
982 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
983 LT_SYS_LIBRARY_PATH
984 OTOOL64
985 OTOOL
986 LIPO
987 NMEDIT
988 DSYMUTIL
989 MANIFEST_TOOL
990 RANLIB
991 ac_ct_AR
992 LN_S
993 NM
994 ac_ct_DUMPBIN
995 DUMPBIN
996 LD
997 FGREP
998 LIBTOOL
999 OBJDUMP
1000 DLLTOOL
1001 AS
1002 AR_FLAGS
1003 host_os
1004 host_vendor
1005 host_cpu
1006 host
1007 build_os
1008 build_vendor
1009 build_cpu
1010 build
1011 PKGADD_VENDOR
1012 PKGADD_NAME
1013 PKGADD_PKG
1014 VERSIONNUM
1015 CURLVERSION
1016 am__fastdepCC_FALSE
1017 am__fastdepCC_TRUE
1018 CCDEPMODE
1019 am__nodep
1020 AMDEPBACKSLASH
1021 AMDEP_FALSE
1022 AMDEP_TRUE
1023 am__include
1024 DEPDIR
1025 am__untar
1026 am__tar
1027 AMTAR
1028 am__leading_dot
1029 SET_MAKE
1030 AWK
1031 mkdir_p
1032 MKDIR_P
1033 INSTALL_STRIP_PROGRAM
1034 STRIP
1035 install_sh
1036 MAKEINFO
1037 AUTOHEADER
1038 AUTOMAKE
1039 AUTOCONF
1040 ACLOCAL
1041 VERSION
1042 PACKAGE
1043 CYGPATH_W
1044 am__isrc
1045 CODE_COVERAGE_RULES
1046 CODE_COVERAGE_LDFLAGS
1047 CODE_COVERAGE_LIBS
1048 CODE_COVERAGE_CXXFLAGS
1049 CODE_COVERAGE_CFLAGS
1050 CODE_COVERAGE_CPPFLAGS
1051 GENHTML
1052 LCOV
1053 GCOV
1054 CODE_COVERAGE_ENABLED
1055 CODE_COVERAGE_ENABLED_FALSE
1056 CODE_COVERAGE_ENABLED_TRUE
1057 CPP
1058 OBJEXT
1059 EXEEXT
1060 ac_ct_CC
1061 CPPFLAGS
1062 LDFLAGS
1063 CFLAGS
1064 CC
1065 INSTALL_DATA
1066 INSTALL_SCRIPT
1067 INSTALL_PROGRAM
1068 libext
1069 AR
1070 EGREP
1071 GREP
1072 SED
1073 CURL_CFLAG_EXTRAS
1074 CONFIGURE_OPTIONS
1075 AM_BACKSLASH
1076 AM_DEFAULT_VERBOSITY
1077 AM_DEFAULT_V
1078 AM_V
1079 MAINT
1080 MAINTAINER_MODE_FALSE
1081 MAINTAINER_MODE_TRUE
1082 target_alias
1083 host_alias
1084 build_alias
1085 LIBS
1086 ECHO_T
1087 ECHO_N
1088 ECHO_C
1089 DEFS
1090 mandir
1091 localedir
1092 libdir
1093 psdir
1094 pdfdir
1095 dvidir
1096 htmldir
1097 infodir
1098 docdir
1099 oldincludedir
1100 includedir
1101 runstatedir
1102 localstatedir
1103 sharedstatedir
1104 sysconfdir
1105 datadir
1106 datarootdir
1107 libexecdir
1108 sbindir
1109 bindir
1110 program_transform_name
1111 prefix
1112 exec_prefix
1113 PACKAGE_URL
1114 PACKAGE_BUGREPORT
1115 PACKAGE_STRING
1116 PACKAGE_VERSION
1117 PACKAGE_TARNAME
1118 PACKAGE_NAME
1119 SHELL
1120 PATH_SEPARATOR
1121 am__quote'
1122 ac_subst_files=''
1123 ac_user_opts='
1124 enable_option_checking
1125 enable_maintainer_mode
1126 enable_silent_rules
1127 enable_debug
1128 enable_optimize
1129 enable_warnings
1130 enable_werror
1131 enable_curldebug
1132 enable_symbol_hiding
1133 enable_hidden_symbols
1134 enable_ares
1135 enable_rt
1136 with_gcov
1137 enable_code_coverage
1138 enable_dependency_tracking
1139 enable_largefile
1140 enable_shared
1141 enable_static
1142 with_pic
1143 enable_fast_install
1144 with_aix_soname
1145 with_gnu_ld
1146 with_sysroot
1147 enable_libtool_lock
1148 enable_http
1149 enable_ftp
1150 enable_file
1151 enable_ldap
1152 enable_ldaps
1153 enable_rtsp
1154 enable_proxy
1155 enable_dict
1156 enable_telnet
1157 enable_tftp
1158 enable_pop3
1159 enable_imap
1160 enable_smb
1161 enable_smtp
1162 enable_gopher
1163 enable_manual
1164 enable_libcurl_option
1165 enable_libgcc
1166 with_zlib
1167 with_brotli
1168 with_ldap_lib
1169 with_lber_lib
1170 enable_ipv6
1171 with_gssapi_includes
1172 with_gssapi_libs
1173 with_gssapi
1174 with_default_ssl_backend
1175 with_winssl
1176 with_darwinssl
1177 with_ssl
1178 with_egd_socket
1179 with_random
1180 enable_openssl_auto_load_config
1181 with_gnutls
1182 with_polarssl
1183 with_mbedtls
1184 with_cyassl
1185 with_wolfssl
1186 with_mesalink
1187 with_nss
1188 with_axtls
1189 with_ca_bundle
1190 with_ca_path
1191 with_ca_fallback
1192 with_libpsl
1193 with_libmetalink
1194 with_libssh2
1195 with_libssh
1196 with_librtmp
1197 enable_versioned_symbols
1198 with_winidn
1199 with_libidn2
1200 with_nghttp2
1201 with_zsh_functions_dir
1202 enable_threaded_resolver
1203 enable_pthreads
1204 enable_verbose
1205 enable_sspi
1206 enable_crypto_auth
1207 enable_ntlm_wb
1208 enable_tls_srp
1209 enable_unix_sockets
1210 enable_cookies
1211 '
1212       ac_precious_vars='build_alias
1213 host_alias
1214 target_alias
1215 CC
1216 CFLAGS
1217 LDFLAGS
1218 LIBS
1219 CPPFLAGS
1220 CPP
1221 LT_SYS_LIBRARY_PATH'
1222 ac_subdirs_all='ares'
1223
1224 # Initialize some variables set by options.
1225 ac_init_help=
1226 ac_init_version=false
1227 ac_unrecognized_opts=
1228 ac_unrecognized_sep=
1229 # The variables have the same names as the options, with
1230 # dashes changed to underlines.
1231 cache_file=/dev/null
1232 exec_prefix=NONE
1233 no_create=
1234 no_recursion=
1235 prefix=NONE
1236 program_prefix=NONE
1237 program_suffix=NONE
1238 program_transform_name=s,x,x,
1239 silent=
1240 site=
1241 srcdir=
1242 verbose=
1243 x_includes=NONE
1244 x_libraries=NONE
1245
1246 # Installation directory options.
1247 # These are left unexpanded so users can "make install exec_prefix=/foo"
1248 # and all the variables that are supposed to be based on exec_prefix
1249 # by default will actually change.
1250 # Use braces instead of parens because sh, perl, etc. also accept them.
1251 # (The list follows the same order as the GNU Coding Standards.)
1252 bindir='${exec_prefix}/bin'
1253 sbindir='${exec_prefix}/sbin'
1254 libexecdir='${exec_prefix}/libexec'
1255 datarootdir='${prefix}/share'
1256 datadir='${datarootdir}'
1257 sysconfdir='${prefix}/etc'
1258 sharedstatedir='${prefix}/com'
1259 localstatedir='${prefix}/var'
1260 runstatedir='${localstatedir}/run'
1261 includedir='${prefix}/include'
1262 oldincludedir='/usr/include'
1263 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1264 infodir='${datarootdir}/info'
1265 htmldir='${docdir}'
1266 dvidir='${docdir}'
1267 pdfdir='${docdir}'
1268 psdir='${docdir}'
1269 libdir='${exec_prefix}/lib'
1270 localedir='${datarootdir}/locale'
1271 mandir='${datarootdir}/man'
1272
1273 ac_prev=
1274 ac_dashdash=
1275 for ac_option
1276 do
1277   # If the previous option needs an argument, assign it.
1278   if test -n "$ac_prev"; then
1279     eval $ac_prev=\$ac_option
1280     ac_prev=
1281     continue
1282   fi
1283
1284   case $ac_option in
1285   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1286   *=)   ac_optarg= ;;
1287   *)    ac_optarg=yes ;;
1288   esac
1289
1290   # Accept the important Cygnus configure options, so we can diagnose typos.
1291
1292   case $ac_dashdash$ac_option in
1293   --)
1294     ac_dashdash=yes ;;
1295
1296   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1297     ac_prev=bindir ;;
1298   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1299     bindir=$ac_optarg ;;
1300
1301   -build | --build | --buil | --bui | --bu)
1302     ac_prev=build_alias ;;
1303   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1304     build_alias=$ac_optarg ;;
1305
1306   -cache-file | --cache-file | --cache-fil | --cache-fi \
1307   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1308     ac_prev=cache_file ;;
1309   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1310   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1311     cache_file=$ac_optarg ;;
1312
1313   --config-cache | -C)
1314     cache_file=config.cache ;;
1315
1316   -datadir | --datadir | --datadi | --datad)
1317     ac_prev=datadir ;;
1318   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1319     datadir=$ac_optarg ;;
1320
1321   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1322   | --dataroo | --dataro | --datar)
1323     ac_prev=datarootdir ;;
1324   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1325   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1326     datarootdir=$ac_optarg ;;
1327
1328   -disable-* | --disable-*)
1329     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1330     # Reject names that are not valid shell variable names.
1331     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332       as_fn_error $? "invalid feature name: $ac_useropt"
1333     ac_useropt_orig=$ac_useropt
1334     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335     case $ac_user_opts in
1336       *"
1337 "enable_$ac_useropt"
1338 "*) ;;
1339       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1340          ac_unrecognized_sep=', ';;
1341     esac
1342     eval enable_$ac_useropt=no ;;
1343
1344   -docdir | --docdir | --docdi | --doc | --do)
1345     ac_prev=docdir ;;
1346   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1347     docdir=$ac_optarg ;;
1348
1349   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1350     ac_prev=dvidir ;;
1351   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1352     dvidir=$ac_optarg ;;
1353
1354   -enable-* | --enable-*)
1355     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1356     # Reject names that are not valid shell variable names.
1357     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358       as_fn_error $? "invalid feature name: $ac_useropt"
1359     ac_useropt_orig=$ac_useropt
1360     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361     case $ac_user_opts in
1362       *"
1363 "enable_$ac_useropt"
1364 "*) ;;
1365       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1366          ac_unrecognized_sep=', ';;
1367     esac
1368     eval enable_$ac_useropt=\$ac_optarg ;;
1369
1370   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1371   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1372   | --exec | --exe | --ex)
1373     ac_prev=exec_prefix ;;
1374   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1375   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1376   | --exec=* | --exe=* | --ex=*)
1377     exec_prefix=$ac_optarg ;;
1378
1379   -gas | --gas | --ga | --g)
1380     # Obsolete; use --with-gas.
1381     with_gas=yes ;;
1382
1383   -help | --help | --hel | --he | -h)
1384     ac_init_help=long ;;
1385   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1386     ac_init_help=recursive ;;
1387   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1388     ac_init_help=short ;;
1389
1390   -host | --host | --hos | --ho)
1391     ac_prev=host_alias ;;
1392   -host=* | --host=* | --hos=* | --ho=*)
1393     host_alias=$ac_optarg ;;
1394
1395   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1396     ac_prev=htmldir ;;
1397   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1398   | --ht=*)
1399     htmldir=$ac_optarg ;;
1400
1401   -includedir | --includedir | --includedi | --included | --include \
1402   | --includ | --inclu | --incl | --inc)
1403     ac_prev=includedir ;;
1404   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1405   | --includ=* | --inclu=* | --incl=* | --inc=*)
1406     includedir=$ac_optarg ;;
1407
1408   -infodir | --infodir | --infodi | --infod | --info | --inf)
1409     ac_prev=infodir ;;
1410   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1411     infodir=$ac_optarg ;;
1412
1413   -libdir | --libdir | --libdi | --libd)
1414     ac_prev=libdir ;;
1415   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1416     libdir=$ac_optarg ;;
1417
1418   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1419   | --libexe | --libex | --libe)
1420     ac_prev=libexecdir ;;
1421   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1422   | --libexe=* | --libex=* | --libe=*)
1423     libexecdir=$ac_optarg ;;
1424
1425   -localedir | --localedir | --localedi | --localed | --locale)
1426     ac_prev=localedir ;;
1427   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1428     localedir=$ac_optarg ;;
1429
1430   -localstatedir | --localstatedir | --localstatedi | --localstated \
1431   | --localstate | --localstat | --localsta | --localst | --locals)
1432     ac_prev=localstatedir ;;
1433   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1434   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1435     localstatedir=$ac_optarg ;;
1436
1437   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1438     ac_prev=mandir ;;
1439   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1440     mandir=$ac_optarg ;;
1441
1442   -nfp | --nfp | --nf)
1443     # Obsolete; use --without-fp.
1444     with_fp=no ;;
1445
1446   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1447   | --no-cr | --no-c | -n)
1448     no_create=yes ;;
1449
1450   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1451   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1452     no_recursion=yes ;;
1453
1454   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1455   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1456   | --oldin | --oldi | --old | --ol | --o)
1457     ac_prev=oldincludedir ;;
1458   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1459   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1460   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1461     oldincludedir=$ac_optarg ;;
1462
1463   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1464     ac_prev=prefix ;;
1465   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1466     prefix=$ac_optarg ;;
1467
1468   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1469   | --program-pre | --program-pr | --program-p)
1470     ac_prev=program_prefix ;;
1471   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1472   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1473     program_prefix=$ac_optarg ;;
1474
1475   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1476   | --program-suf | --program-su | --program-s)
1477     ac_prev=program_suffix ;;
1478   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1479   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1480     program_suffix=$ac_optarg ;;
1481
1482   -program-transform-name | --program-transform-name \
1483   | --program-transform-nam | --program-transform-na \
1484   | --program-transform-n | --program-transform- \
1485   | --program-transform | --program-transfor \
1486   | --program-transfo | --program-transf \
1487   | --program-trans | --program-tran \
1488   | --progr-tra | --program-tr | --program-t)
1489     ac_prev=program_transform_name ;;
1490   -program-transform-name=* | --program-transform-name=* \
1491   | --program-transform-nam=* | --program-transform-na=* \
1492   | --program-transform-n=* | --program-transform-=* \
1493   | --program-transform=* | --program-transfor=* \
1494   | --program-transfo=* | --program-transf=* \
1495   | --program-trans=* | --program-tran=* \
1496   | --progr-tra=* | --program-tr=* | --program-t=*)
1497     program_transform_name=$ac_optarg ;;
1498
1499   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1500     ac_prev=pdfdir ;;
1501   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1502     pdfdir=$ac_optarg ;;
1503
1504   -psdir | --psdir | --psdi | --psd | --ps)
1505     ac_prev=psdir ;;
1506   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1507     psdir=$ac_optarg ;;
1508
1509   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510   | -silent | --silent | --silen | --sile | --sil)
1511     silent=yes ;;
1512
1513   -runstatedir | --runstatedir | --runstatedi | --runstated \
1514   | --runstate | --runstat | --runsta | --runst | --runs \
1515   | --run | --ru | --r)
1516     ac_prev=runstatedir ;;
1517   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1518   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1519   | --run=* | --ru=* | --r=*)
1520     runstatedir=$ac_optarg ;;
1521
1522   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1523     ac_prev=sbindir ;;
1524   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1525   | --sbi=* | --sb=*)
1526     sbindir=$ac_optarg ;;
1527
1528   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1529   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1530   | --sharedst | --shareds | --shared | --share | --shar \
1531   | --sha | --sh)
1532     ac_prev=sharedstatedir ;;
1533   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1534   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1535   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1536   | --sha=* | --sh=*)
1537     sharedstatedir=$ac_optarg ;;
1538
1539   -site | --site | --sit)
1540     ac_prev=site ;;
1541   -site=* | --site=* | --sit=*)
1542     site=$ac_optarg ;;
1543
1544   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1545     ac_prev=srcdir ;;
1546   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1547     srcdir=$ac_optarg ;;
1548
1549   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1550   | --syscon | --sysco | --sysc | --sys | --sy)
1551     ac_prev=sysconfdir ;;
1552   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1553   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1554     sysconfdir=$ac_optarg ;;
1555
1556   -target | --target | --targe | --targ | --tar | --ta | --t)
1557     ac_prev=target_alias ;;
1558   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1559     target_alias=$ac_optarg ;;
1560
1561   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1562     verbose=yes ;;
1563
1564   -version | --version | --versio | --versi | --vers | -V)
1565     ac_init_version=: ;;
1566
1567   -with-* | --with-*)
1568     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1569     # Reject names that are not valid shell variable names.
1570     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1571       as_fn_error $? "invalid package name: $ac_useropt"
1572     ac_useropt_orig=$ac_useropt
1573     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1574     case $ac_user_opts in
1575       *"
1576 "with_$ac_useropt"
1577 "*) ;;
1578       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1579          ac_unrecognized_sep=', ';;
1580     esac
1581     eval with_$ac_useropt=\$ac_optarg ;;
1582
1583   -without-* | --without-*)
1584     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1585     # Reject names that are not valid shell variable names.
1586     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1587       as_fn_error $? "invalid package name: $ac_useropt"
1588     ac_useropt_orig=$ac_useropt
1589     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1590     case $ac_user_opts in
1591       *"
1592 "with_$ac_useropt"
1593 "*) ;;
1594       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1595          ac_unrecognized_sep=', ';;
1596     esac
1597     eval with_$ac_useropt=no ;;
1598
1599   --x)
1600     # Obsolete; use --with-x.
1601     with_x=yes ;;
1602
1603   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1604   | --x-incl | --x-inc | --x-in | --x-i)
1605     ac_prev=x_includes ;;
1606   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1607   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1608     x_includes=$ac_optarg ;;
1609
1610   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1611   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1612     ac_prev=x_libraries ;;
1613   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1614   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1615     x_libraries=$ac_optarg ;;
1616
1617   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1618 Try \`$0 --help' for more information"
1619     ;;
1620
1621   *=*)
1622     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1623     # Reject names that are not valid shell variable names.
1624     case $ac_envvar in #(
1625       '' | [0-9]* | *[!_$as_cr_alnum]* )
1626       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1627     esac
1628     eval $ac_envvar=\$ac_optarg
1629     export $ac_envvar ;;
1630
1631   *)
1632     # FIXME: should be removed in autoconf 3.0.
1633     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1634     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1635       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1636     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1637     ;;
1638
1639   esac
1640 done
1641
1642 if test -n "$ac_prev"; then
1643   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1644   as_fn_error $? "missing argument to $ac_option"
1645 fi
1646
1647 if test -n "$ac_unrecognized_opts"; then
1648   case $enable_option_checking in
1649     no) ;;
1650     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1651     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1652   esac
1653 fi
1654
1655 # Check all directory arguments for consistency.
1656 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1657                 datadir sysconfdir sharedstatedir localstatedir includedir \
1658                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1659                 libdir localedir mandir runstatedir
1660 do
1661   eval ac_val=\$$ac_var
1662   # Remove trailing slashes.
1663   case $ac_val in
1664     */ )
1665       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1666       eval $ac_var=\$ac_val;;
1667   esac
1668   # Be sure to have absolute directory names.
1669   case $ac_val in
1670     [\\/$]* | ?:[\\/]* )  continue;;
1671     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1672   esac
1673   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1674 done
1675
1676 # There might be people who depend on the old broken behavior: `$host'
1677 # used to hold the argument of --host etc.
1678 # FIXME: To remove some day.
1679 build=$build_alias
1680 host=$host_alias
1681 target=$target_alias
1682
1683 # FIXME: To remove some day.
1684 if test "x$host_alias" != x; then
1685   if test "x$build_alias" = x; then
1686     cross_compiling=maybe
1687   elif test "x$build_alias" != "x$host_alias"; then
1688     cross_compiling=yes
1689   fi
1690 fi
1691
1692 ac_tool_prefix=
1693 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1694
1695 test "$silent" = yes && exec 6>/dev/null
1696
1697
1698 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1699 ac_ls_di=`ls -di .` &&
1700 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1701   as_fn_error $? "working directory cannot be determined"
1702 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1703   as_fn_error $? "pwd does not report name of working directory"
1704
1705
1706 # Find the source files, if location was not specified.
1707 if test -z "$srcdir"; then
1708   ac_srcdir_defaulted=yes
1709   # Try the directory containing this script, then the parent directory.
1710   ac_confdir=`$as_dirname -- "$as_myself" ||
1711 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1712          X"$as_myself" : 'X\(//\)[^/]' \| \
1713          X"$as_myself" : 'X\(//\)$' \| \
1714          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1715 $as_echo X"$as_myself" |
1716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1717             s//\1/
1718             q
1719           }
1720           /^X\(\/\/\)[^/].*/{
1721             s//\1/
1722             q
1723           }
1724           /^X\(\/\/\)$/{
1725             s//\1/
1726             q
1727           }
1728           /^X\(\/\).*/{
1729             s//\1/
1730             q
1731           }
1732           s/.*/./; q'`
1733   srcdir=$ac_confdir
1734   if test ! -r "$srcdir/$ac_unique_file"; then
1735     srcdir=..
1736   fi
1737 else
1738   ac_srcdir_defaulted=no
1739 fi
1740 if test ! -r "$srcdir/$ac_unique_file"; then
1741   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1742   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1743 fi
1744 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1745 ac_abs_confdir=`(
1746         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1747         pwd)`
1748 # When building in place, set srcdir=.
1749 if test "$ac_abs_confdir" = "$ac_pwd"; then
1750   srcdir=.
1751 fi
1752 # Remove unnecessary trailing slashes from srcdir.
1753 # Double slashes in file names in object file debugging info
1754 # mess up M-x gdb in Emacs.
1755 case $srcdir in
1756 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1757 esac
1758 for ac_var in $ac_precious_vars; do
1759   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1760   eval ac_env_${ac_var}_value=\$${ac_var}
1761   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1762   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1763 done
1764
1765 #
1766 # Report the --help message.
1767 #
1768 if test "$ac_init_help" = "long"; then
1769   # Omit some internal or obsolete options to make the list less imposing.
1770   # This message is too long to be a string in the A/UX 3.1 sh.
1771   cat <<_ACEOF
1772 \`configure' configures curl - to adapt to many kinds of systems.
1773
1774 Usage: $0 [OPTION]... [VAR=VALUE]...
1775
1776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1777 VAR=VALUE.  See below for descriptions of some of the useful variables.
1778
1779 Defaults for the options are specified in brackets.
1780
1781 Configuration:
1782   -h, --help              display this help and exit
1783       --help=short        display options specific to this package
1784       --help=recursive    display the short help of all the included packages
1785   -V, --version           display version information and exit
1786   -q, --quiet, --silent   do not print \`checking ...' messages
1787       --cache-file=FILE   cache test results in FILE [disabled]
1788   -C, --config-cache      alias for \`--cache-file=config.cache'
1789   -n, --no-create         do not create output files
1790       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1791
1792 Installation directories:
1793   --prefix=PREFIX         install architecture-independent files in PREFIX
1794                           [$ac_default_prefix]
1795   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1796                           [PREFIX]
1797
1798 By default, \`make install' will install all the files in
1799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1800 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1801 for instance \`--prefix=\$HOME'.
1802
1803 For better control, use the options below.
1804
1805 Fine tuning of the installation directories:
1806   --bindir=DIR            user executables [EPREFIX/bin]
1807   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1808   --libexecdir=DIR        program executables [EPREFIX/libexec]
1809   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1810   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1811   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1812   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1813   --libdir=DIR            object code libraries [EPREFIX/lib]
1814   --includedir=DIR        C header files [PREFIX/include]
1815   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1816   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1817   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1818   --infodir=DIR           info documentation [DATAROOTDIR/info]
1819   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1820   --mandir=DIR            man documentation [DATAROOTDIR/man]
1821   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1822   --htmldir=DIR           html documentation [DOCDIR]
1823   --dvidir=DIR            dvi documentation [DOCDIR]
1824   --pdfdir=DIR            pdf documentation [DOCDIR]
1825   --psdir=DIR             ps documentation [DOCDIR]
1826 _ACEOF
1827
1828   cat <<\_ACEOF
1829
1830 Program names:
1831   --program-prefix=PREFIX            prepend PREFIX to installed program names
1832   --program-suffix=SUFFIX            append SUFFIX to installed program names
1833   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1834
1835 System types:
1836   --build=BUILD     configure for building on BUILD [guessed]
1837   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1838 _ACEOF
1839 fi
1840
1841 if test -n "$ac_init_help"; then
1842   case $ac_init_help in
1843      short | recursive ) echo "Configuration of curl -:";;
1844    esac
1845   cat <<\_ACEOF
1846
1847 Optional Features:
1848   --disable-option-checking  ignore unrecognized --enable/--with options
1849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1851   --enable-maintainer-mode
1852                           enable make rules and dependencies not useful (and
1853                           sometimes confusing) to the casual installer
1854   --enable-silent-rules   less verbose build output (undo: "make V=1")
1855   --disable-silent-rules  verbose build output (undo: "make V=0")
1856   --enable-debug          Enable debug build options
1857   --disable-debug         Disable debug build options
1858   --enable-optimize       Enable compiler optimizations
1859   --disable-optimize      Disable compiler optimizations
1860   --enable-warnings       Enable strict compiler warnings
1861   --disable-warnings      Disable strict compiler warnings
1862   --enable-werror         Enable compiler warnings as errors
1863   --disable-werror        Disable compiler warnings as errors
1864   --enable-curldebug      Enable curl debug memory tracking
1865   --disable-curldebug     Disable curl debug memory tracking
1866   --enable-symbol-hiding  Enable hiding of library internal symbols
1867   --disable-symbol-hiding Disable hiding of library internal symbols
1868   --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1869   --disable-hidden-symbols
1870                           To be deprecated, use --disable-symbol-hiding
1871   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1872   --disable-ares          Disable c-ares for DNS lookups
1873   --disable-rt            disable dependency on -lrt
1874   --enable-code-coverage  Whether to enable code coverage support
1875   --enable-dependency-tracking
1876                           do not reject slow dependency extractors
1877   --disable-dependency-tracking
1878                           speeds up one-time build
1879   --disable-largefile     omit support for large files
1880   --enable-shared[=PKGS]  build shared libraries [default=yes]
1881   --enable-static[=PKGS]  build static libraries [default=yes]
1882   --enable-fast-install[=PKGS]
1883                           optimize for fast installation [default=yes]
1884   --disable-libtool-lock  avoid locking (might break parallel builds)
1885   --enable-http           Enable HTTP support
1886   --disable-http          Disable HTTP support
1887   --enable-ftp            Enable FTP support
1888   --disable-ftp           Disable FTP support
1889   --enable-file           Enable FILE support
1890   --disable-file          Disable FILE support
1891   --enable-ldap           Enable LDAP support
1892   --disable-ldap          Disable LDAP support
1893   --enable-ldaps          Enable LDAPS support
1894   --disable-ldaps         Disable LDAPS support
1895   --enable-rtsp           Enable RTSP support
1896   --disable-rtsp          Disable RTSP support
1897   --enable-proxy          Enable proxy support
1898   --disable-proxy         Disable proxy support
1899   --enable-dict           Enable DICT support
1900   --disable-dict          Disable DICT support
1901   --enable-telnet         Enable TELNET support
1902   --disable-telnet        Disable TELNET support
1903   --enable-tftp           Enable TFTP support
1904   --disable-tftp          Disable TFTP support
1905   --enable-pop3           Enable POP3 support
1906   --disable-pop3          Disable POP3 support
1907   --enable-imap           Enable IMAP support
1908   --disable-imap          Disable IMAP support
1909   --enable-smb            Enable SMB/CIFS support
1910   --disable-smb           Disable SMB/CIFS support
1911   --enable-smtp           Enable SMTP support
1912   --disable-smtp          Disable SMTP support
1913   --enable-gopher         Enable Gopher support
1914   --disable-gopher        Disable Gopher support
1915   --enable-manual         Enable built-in manual
1916   --disable-manual        Disable built-in manual
1917   --enable-libcurl-option Enable --libcurl C code generation support
1918   --disable-libcurl-option
1919                           Disable --libcurl C code generation support
1920   --enable-libgcc         use libgcc when linking
1921   --enable-ipv6           Enable IPv6 (with IPv4) support
1922   --disable-ipv6          Disable IPv6 support
1923   --enable-openssl-auto-load-config
1924                           Enable automatic loading of OpenSSL configuration
1925   --disable-openssl-auto-load-config
1926                           Disable automatic loading of OpenSSL configuration
1927   --enable-versioned-symbols
1928                           Enable versioned symbols in shared library
1929   --disable-versioned-symbols
1930                           Disable versioned symbols in shared library
1931   --enable-threaded-resolver
1932                           Enable threaded resolver
1933   --disable-threaded-resolver
1934                           Disable threaded resolver
1935   --enable-pthreads       Enable POSIX threads (default for threaded resolver)
1936   --disable-pthreads      Disable POSIX threads
1937   --enable-verbose        Enable verbose strings
1938   --disable-verbose       Disable verbose strings
1939   --enable-sspi           Enable SSPI
1940   --disable-sspi          Disable SSPI
1941   --enable-crypto-auth    Enable cryptographic authentication
1942   --disable-crypto-auth   Disable cryptographic authentication
1943   --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1944                           helper, where FILE is ntlm_auth's absolute filename
1945                           (default: /usr/bin/ntlm_auth)
1946   --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
1947                           helper
1948   --enable-tls-srp        Enable TLS-SRP authentication
1949   --disable-tls-srp       Disable TLS-SRP authentication
1950   --enable-unix-sockets   Enable Unix domain sockets
1951   --disable-unix-sockets  Disable Unix domain sockets
1952   --enable-cookies        Enable cookies support
1953   --disable-cookies       Disable cookies support
1954
1955 Optional Packages:
1956   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1957   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1958   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1959   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1960                           both]
1961   --with-aix-soname=aix|svr4|both
1962                           shared library versioning (aka "SONAME") variant to
1963                           provide on AIX, [default=aix].
1964   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1965   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1966                           compiler's sysroot if not specified).
1967   --with-zlib=PATH        search for zlib in PATH
1968   --without-zlib          disable use of zlib
1969   --with-brotli=PATH      Where to look for brotli, PATH points to the BROTLI
1970                           installation; when possible, set the PKG_CONFIG_PATH
1971                           environment variable instead of using this option
1972   --without-brotli        disable BROTLI
1973   --with-ldap-lib=libname Specify name of ldap lib file
1974   --with-lber-lib=libname Specify name of lber lib file
1975   --with-gssapi-includes=DIR
1976                           Specify location of GSS-API headers
1977   --with-gssapi-libs=DIR  Specify location of GSS-API libs
1978   --with-gssapi=DIR       Where to look for GSS-API
1979   --with-default-ssl-backend=NAME
1980                           Use NAME as default SSL backend
1981   --without-default-ssl-backend
1982                           Use implicit default SSL backend
1983   --with-winssl           enable Windows native SSL/TLS
1984   --without-winssl        disable Windows native SSL/TLS
1985   --with-darwinssl        enable Apple OS native SSL/TLS
1986   --without-darwinssl     disable Apple OS native SSL/TLS
1987   --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
1988                           installation (default: /usr/local/ssl); when
1989                           possible, set the PKG_CONFIG_PATH environment
1990                           variable instead of using this option
1991   --without-ssl           disable OpenSSL
1992   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1993   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1994   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
1995                           installation root
1996   --without-gnutls        disable GnuTLS detection
1997   --with-polarssl=PATH    where to look for PolarSSL, PATH points to the
1998                           installation root
1999   --without-polarssl      disable PolarSSL detection
2000   --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
2001                           installation root
2002   --without-mbedtls       disable mbedTLS detection
2003   --with-cyassl=PATH      where to look for CyaSSL, PATH points to the
2004                           installation root (default: system lib default)
2005   --without-cyassl        disable CyaSSL detection
2006   --with-wolfssl=PATH     where to look for WolfSSL, PATH points to the
2007                           installation root (default: system lib default)
2008   --without-wolfssl       disable WolfSSL detection
2009   --with-mesalink=PATH    where to look for MesaLink, PATH points to the
2010                           installation root
2011   --without-mesalink      disable MesaLink detection
2012   --with-nss=PATH         where to look for NSS, PATH points to the
2013                           installation root
2014   --without-nss           disable NSS detection
2015   --with-axtls=PATH       Where to look for axTLS, PATH points to the axTLS
2016                           installation prefix (default: /usr/local). Ignored
2017                           if another SSL engine is selected.
2018   --without-axtls         disable axTLS
2019   --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
2020                           /etc/ca-bundle.crt)
2021   --without-ca-bundle     Don't use a default CA bundle
2022   --with-ca-path=DIRECTORY
2023                           Path to a directory containing CA certificates
2024                           stored individually, with their filenames in a hash
2025                           format. This option can be used with OpenSSL, GnuTLS
2026                           and PolarSSL backends. Refer to OpenSSL c_rehash for
2027                           details. (example: /etc/certificates)
2028   --without-ca-path       Don't use a default CA path
2029   --with-ca-fallback      Use the built in CA store of the SSL library
2030   --without-ca-fallback   Don't use the built in CA store of the SSL library
2031   --without-libpsl        disable support for libpsl cookie checking
2032   --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2033                           installation root
2034   --without-libmetalink   disable libmetalink detection
2035   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
2036                           LIBSSH2 installation; when possible, set the
2037                           PKG_CONFIG_PATH environment variable instead of
2038                           using this option
2039   --with-libssh2          enable LIBSSH2
2040   --with-libssh=PATH      Where to look for libssh, PATH points to the LIBSSH
2041                           installation; when possible, set the PKG_CONFIG_PATH
2042                           environment variable instead of using this option
2043   --with-libssh           enable LIBSSH
2044   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
2045                           LIBRTMP installation; when possible, set the
2046                           PKG_CONFIG_PATH environment variable instead of
2047                           using this option
2048   --without-librtmp       disable LIBRTMP
2049   --with-winidn=PATH      enable Windows native IDN
2050   --without-winidn        disable Windows native IDN
2051   --with-libidn2=PATH     Enable libidn2 usage
2052   --without-libidn2       Disable libidn2 usage
2053   --with-nghttp2=PATH     Enable nghttp2 usage
2054   --without-nghttp2       Disable nghttp2 usage
2055   --with-zsh-functions-dir=PATH
2056                           Install zsh completions to PATH
2057   --without-zsh-functions-dir
2058                           Do not install zsh completions
2059
2060 Some influential environment variables:
2061   CC          C compiler command
2062   CFLAGS      C compiler flags
2063   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2064               nonstandard directory <lib dir>
2065   LIBS        libraries to pass to the linker, e.g. -l<library>
2066   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2067               you have headers in a nonstandard directory <include dir>
2068   CPP         C preprocessor
2069   LT_SYS_LIBRARY_PATH
2070               User-defined run-time library search path.
2071
2072 Use these variables to override the choices made by `configure' or to help
2073 it to find libraries and programs with nonstandard names/locations.
2074
2075 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2076 _ACEOF
2077 ac_status=$?
2078 fi
2079
2080 if test "$ac_init_help" = "recursive"; then
2081   # If there are subdirs, report their specific --help.
2082   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2083     test -d "$ac_dir" ||
2084       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2085       continue
2086     ac_builddir=.
2087
2088 case "$ac_dir" in
2089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2090 *)
2091   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2092   # A ".." for each directory in $ac_dir_suffix.
2093   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2094   case $ac_top_builddir_sub in
2095   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2096   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2097   esac ;;
2098 esac
2099 ac_abs_top_builddir=$ac_pwd
2100 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2101 # for backward compatibility:
2102 ac_top_builddir=$ac_top_build_prefix
2103
2104 case $srcdir in
2105   .)  # We are building in place.
2106     ac_srcdir=.
2107     ac_top_srcdir=$ac_top_builddir_sub
2108     ac_abs_top_srcdir=$ac_pwd ;;
2109   [\\/]* | ?:[\\/]* )  # Absolute name.
2110     ac_srcdir=$srcdir$ac_dir_suffix;
2111     ac_top_srcdir=$srcdir
2112     ac_abs_top_srcdir=$srcdir ;;
2113   *) # Relative name.
2114     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2115     ac_top_srcdir=$ac_top_build_prefix$srcdir
2116     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2117 esac
2118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2119
2120     cd "$ac_dir" || { ac_status=$?; continue; }
2121     # Check for guested configure.
2122     if test -f "$ac_srcdir/configure.gnu"; then
2123       echo &&
2124       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2125     elif test -f "$ac_srcdir/configure"; then
2126       echo &&
2127       $SHELL "$ac_srcdir/configure" --help=recursive
2128     else
2129       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2130     fi || ac_status=$?
2131     cd "$ac_pwd" || { ac_status=$?; break; }
2132   done
2133 fi
2134
2135 test -n "$ac_init_help" && exit $ac_status
2136 if $ac_init_version; then
2137   cat <<\_ACEOF
2138 curl configure -
2139 generated by GNU Autoconf 2.69
2140
2141 Copyright (C) 2012 Free Software Foundation, Inc.
2142 This configure script is free software; the Free Software Foundation
2143 gives unlimited permission to copy, distribute and modify it.
2144
2145 Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2146 This configure script may be copied, distributed and modified under the
2147 terms of the curl license; see COPYING for more details
2148 _ACEOF
2149   exit
2150 fi
2151
2152 ## ------------------------ ##
2153 ## Autoconf initialization. ##
2154 ## ------------------------ ##
2155
2156 # ac_fn_c_try_compile LINENO
2157 # --------------------------
2158 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2159 ac_fn_c_try_compile ()
2160 {
2161   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162   rm -f conftest.$ac_objext
2163   if { { ac_try="$ac_compile"
2164 case "(($ac_try" in
2165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166   *) ac_try_echo=$ac_try;;
2167 esac
2168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2169 $as_echo "$ac_try_echo"; } >&5
2170   (eval "$ac_compile") 2>conftest.err
2171   ac_status=$?
2172   if test -s conftest.err; then
2173     grep -v '^ *+' conftest.err >conftest.er1
2174     cat conftest.er1 >&5
2175     mv -f conftest.er1 conftest.err
2176   fi
2177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2178   test $ac_status = 0; } && {
2179          test -z "$ac_c_werror_flag" ||
2180          test ! -s conftest.err
2181        } && test -s conftest.$ac_objext; then :
2182   ac_retval=0
2183 else
2184   $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187         ac_retval=1
2188 fi
2189   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190   as_fn_set_status $ac_retval
2191
2192 } # ac_fn_c_try_compile
2193
2194 # ac_fn_c_try_cpp LINENO
2195 # ----------------------
2196 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2197 ac_fn_c_try_cpp ()
2198 {
2199   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200   if { { ac_try="$ac_cpp conftest.$ac_ext"
2201 case "(($ac_try" in
2202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203   *) ac_try_echo=$ac_try;;
2204 esac
2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2208   ac_status=$?
2209   if test -s conftest.err; then
2210     grep -v '^ *+' conftest.err >conftest.er1
2211     cat conftest.er1 >&5
2212     mv -f conftest.er1 conftest.err
2213   fi
2214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215   test $ac_status = 0; } > conftest.i && {
2216          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2217          test ! -s conftest.err
2218        }; then :
2219   ac_retval=0
2220 else
2221   $as_echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2223
2224     ac_retval=1
2225 fi
2226   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227   as_fn_set_status $ac_retval
2228
2229 } # ac_fn_c_try_cpp
2230
2231 # ac_fn_c_try_link LINENO
2232 # -----------------------
2233 # Try to link conftest.$ac_ext, and return whether this succeeded.
2234 ac_fn_c_try_link ()
2235 {
2236   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237   rm -f conftest.$ac_objext conftest$ac_exeext
2238   if { { ac_try="$ac_link"
2239 case "(($ac_try" in
2240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241   *) ac_try_echo=$ac_try;;
2242 esac
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245   (eval "$ac_link") 2>conftest.err
2246   ac_status=$?
2247   if test -s conftest.err; then
2248     grep -v '^ *+' conftest.err >conftest.er1
2249     cat conftest.er1 >&5
2250     mv -f conftest.er1 conftest.err
2251   fi
2252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253   test $ac_status = 0; } && {
2254          test -z "$ac_c_werror_flag" ||
2255          test ! -s conftest.err
2256        } && test -s conftest$ac_exeext && {
2257          test "$cross_compiling" = yes ||
2258          test -x conftest$ac_exeext
2259        }; then :
2260   ac_retval=0
2261 else
2262   $as_echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2264
2265         ac_retval=1
2266 fi
2267   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2268   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2269   # interfere with the next link command; also delete a directory that is
2270   # left behind by Apple's compiler.  We do this before executing the actions.
2271   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2272   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273   as_fn_set_status $ac_retval
2274
2275 } # ac_fn_c_try_link
2276
2277 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2278 # -------------------------------------------------------
2279 # Tests whether HEADER exists and can be compiled using the include files in
2280 # INCLUDES, setting the cache variable VAR accordingly.
2281 ac_fn_c_check_header_compile ()
2282 {
2283   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2285 $as_echo_n "checking for $2... " >&6; }
2286 if eval \${$3+:} false; then :
2287   $as_echo_n "(cached) " >&6
2288 else
2289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h.  */
2291 $4
2292 #include <$2>
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295   eval "$3=yes"
2296 else
2297   eval "$3=no"
2298 fi
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 fi
2301 eval ac_res=\$$3
2302                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305
2306 } # ac_fn_c_check_header_compile
2307
2308 # ac_fn_c_try_run LINENO
2309 # ----------------------
2310 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2311 # that executables *can* be run.
2312 ac_fn_c_try_run ()
2313 {
2314   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315   if { { ac_try="$ac_link"
2316 case "(($ac_try" in
2317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318   *) ac_try_echo=$ac_try;;
2319 esac
2320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2321 $as_echo "$ac_try_echo"; } >&5
2322   (eval "$ac_link") 2>&5
2323   ac_status=$?
2324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2325   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2326   { { case "(($ac_try" in
2327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328   *) ac_try_echo=$ac_try;;
2329 esac
2330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331 $as_echo "$ac_try_echo"; } >&5
2332   (eval "$ac_try") 2>&5
2333   ac_status=$?
2334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2335   test $ac_status = 0; }; }; then :
2336   ac_retval=0
2337 else
2338   $as_echo "$as_me: program exited with status $ac_status" >&5
2339        $as_echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2341
2342        ac_retval=$ac_status
2343 fi
2344   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2345   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346   as_fn_set_status $ac_retval
2347
2348 } # ac_fn_c_try_run
2349
2350 # ac_fn_c_check_func LINENO FUNC VAR
2351 # ----------------------------------
2352 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2353 ac_fn_c_check_func ()
2354 {
2355   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2357 $as_echo_n "checking for $2... " >&6; }
2358 if eval \${$3+:} false; then :
2359   $as_echo_n "(cached) " >&6
2360 else
2361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h.  */
2363
2364 #define $2 innocuous_$2
2365 #ifdef __STDC__
2366 # include <limits.h>
2367 #else
2368 # include <assert.h>
2369 #endif
2370 #undef $2
2371 #ifdef __cplusplus
2372 extern "C"
2373 #endif
2374 char $2 ();
2375 #if defined __stub_$2 || defined __stub___$2
2376 choke me
2377 #endif
2378
2379 int main (void)
2380 {
2381 return $2 ();
2382  ;
2383  return 0;
2384 }
2385 _ACEOF
2386 if ac_fn_c_try_link "$LINENO"; then :
2387   eval "$3=yes"
2388 else
2389   eval "$3=no"
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext \
2392     conftest$ac_exeext conftest.$ac_ext
2393 fi
2394 eval ac_res=\$$3
2395                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396 $as_echo "$ac_res" >&6; }
2397   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398
2399 } # ac_fn_c_check_func
2400
2401 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2402 # -------------------------------------------------------
2403 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2404 # the include files in INCLUDES and setting the cache variable VAR
2405 # accordingly.
2406 ac_fn_c_check_header_mongrel ()
2407 {
2408   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409   if eval \${$3+:} false; then :
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if eval \${$3+:} false; then :
2413   $as_echo_n "(cached) " >&6
2414 fi
2415 eval ac_res=\$$3
2416                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417 $as_echo "$ac_res" >&6; }
2418 else
2419   # Is the header compilable?
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2421 $as_echo_n "checking $2 usability... " >&6; }
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h.  */
2424 $4
2425 #include <$2>
2426 _ACEOF
2427 if ac_fn_c_try_compile "$LINENO"; then :
2428   ac_header_compiler=yes
2429 else
2430   ac_header_compiler=no
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2434 $as_echo "$ac_header_compiler" >&6; }
2435
2436 # Is the header present?
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2438 $as_echo_n "checking $2 presence... " >&6; }
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h.  */
2441 #include <$2>
2442 _ACEOF
2443 if ac_fn_c_try_cpp "$LINENO"; then :
2444   ac_header_preproc=yes
2445 else
2446   ac_header_preproc=no
2447 fi
2448 rm -f conftest.err conftest.i conftest.$ac_ext
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2450 $as_echo "$ac_header_preproc" >&6; }
2451
2452 # So?  What about this header?
2453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2454   yes:no: )
2455     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2456 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2458 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2459     ;;
2460   no:yes:* )
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2462 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2463     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2464 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2465     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2466 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2467     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2468 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2469     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2470 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2471 ( $as_echo "## ----------------------------------------------------------------------- ##
2472 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2473 ## ----------------------------------------------------------------------- ##"
2474      ) | sed "s/^/$as_me: WARNING:     /" >&2
2475     ;;
2476 esac
2477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2478 $as_echo_n "checking for $2... " >&6; }
2479 if eval \${$3+:} false; then :
2480   $as_echo_n "(cached) " >&6
2481 else
2482   eval "$3=\$ac_header_compiler"
2483 fi
2484 eval ac_res=\$$3
2485                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2486 $as_echo "$ac_res" >&6; }
2487 fi
2488   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2489
2490 } # ac_fn_c_check_header_mongrel
2491
2492 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2493 # -------------------------------------------
2494 # Tests whether TYPE exists after having included INCLUDES, setting cache
2495 # variable VAR accordingly.
2496 ac_fn_c_check_type ()
2497 {
2498   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2500 $as_echo_n "checking for $2... " >&6; }
2501 if eval \${$3+:} false; then :
2502   $as_echo_n "(cached) " >&6
2503 else
2504   eval "$3=no"
2505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506 /* end confdefs.h.  */
2507 $4
2508 int main (void)
2509 {
2510 if (sizeof ($2))
2511          return 0;
2512  ;
2513  return 0;
2514 }
2515 _ACEOF
2516 if ac_fn_c_try_compile "$LINENO"; then :
2517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h.  */
2519 $4
2520 int main (void)
2521 {
2522 if (sizeof (($2)))
2523             return 0;
2524  ;
2525  return 0;
2526 }
2527 _ACEOF
2528 if ac_fn_c_try_compile "$LINENO"; then :
2529
2530 else
2531   eval "$3=yes"
2532 fi
2533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534 fi
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536 fi
2537 eval ac_res=\$$3
2538                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2539 $as_echo "$ac_res" >&6; }
2540   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2541
2542 } # ac_fn_c_check_type
2543
2544 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2545 # ---------------------------------------------
2546 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2547 # accordingly.
2548 ac_fn_c_check_decl ()
2549 {
2550   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551   as_decl_name=`echo $2|sed 's/ *(.*//'`
2552   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2554 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2555 if eval \${$3+:} false; then :
2556   $as_echo_n "(cached) " >&6
2557 else
2558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h.  */
2560 $4
2561 int main (void)
2562 {
2563 #ifndef $as_decl_name
2564 #ifdef __cplusplus
2565   (void) $as_decl_use;
2566 #else
2567   (void) $as_decl_name;
2568 #endif
2569 #endif
2570
2571  ;
2572  return 0;
2573 }
2574 _ACEOF
2575 if ac_fn_c_try_compile "$LINENO"; then :
2576   eval "$3=yes"
2577 else
2578   eval "$3=no"
2579 fi
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 fi
2582 eval ac_res=\$$3
2583                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2584 $as_echo "$ac_res" >&6; }
2585   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2586
2587 } # ac_fn_c_check_decl
2588
2589 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2590 # ----------------------------------------------------
2591 # Tries to find if the field MEMBER exists in type AGGR, after including
2592 # INCLUDES, setting cache variable VAR accordingly.
2593 ac_fn_c_check_member ()
2594 {
2595   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2597 $as_echo_n "checking for $2.$3... " >&6; }
2598 if eval \${$4+:} false; then :
2599   $as_echo_n "(cached) " >&6
2600 else
2601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h.  */
2603 $5
2604 int main (void)
2605 {
2606 static $2 ac_aggr;
2607 if (ac_aggr.$3)
2608 return 0;
2609  ;
2610  return 0;
2611 }
2612 _ACEOF
2613 if ac_fn_c_try_compile "$LINENO"; then :
2614   eval "$4=yes"
2615 else
2616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h.  */
2618 $5
2619 int main (void)
2620 {
2621 static $2 ac_aggr;
2622 if (sizeof ac_aggr.$3)
2623 return 0;
2624  ;
2625  return 0;
2626 }
2627 _ACEOF
2628 if ac_fn_c_try_compile "$LINENO"; then :
2629   eval "$4=yes"
2630 else
2631   eval "$4=no"
2632 fi
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 fi
2637 eval ac_res=\$$4
2638                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639 $as_echo "$ac_res" >&6; }
2640   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2641
2642 } # ac_fn_c_check_member
2643 cat >config.log <<_ACEOF
2644 This file contains any messages produced by compilers while
2645 running configure, to aid debugging if configure makes a mistake.
2646
2647 It was created by curl $as_me -, which was
2648 generated by GNU Autoconf 2.69.  Invocation command line was
2649
2650   $ $0 $@
2651
2652 _ACEOF
2653 exec 5>>config.log
2654 {
2655 cat <<_ASUNAME
2656 ## --------- ##
2657 ## Platform. ##
2658 ## --------- ##
2659
2660 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2661 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2662 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2663 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2664 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2665
2666 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2667 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2668
2669 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2670 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2671 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2672 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2673 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2674 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2675 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2676
2677 _ASUNAME
2678
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682   IFS=$as_save_IFS
2683   test -z "$as_dir" && as_dir=.
2684     $as_echo "PATH: $as_dir"
2685   done
2686 IFS=$as_save_IFS
2687
2688 } >&5
2689
2690 cat >&5 <<_ACEOF
2691
2692
2693 ## ----------- ##
2694 ## Core tests. ##
2695 ## ----------- ##
2696
2697 _ACEOF
2698
2699
2700 # Keep a trace of the command line.
2701 # Strip out --no-create and --no-recursion so they do not pile up.
2702 # Strip out --silent because we don't want to record it for future runs.
2703 # Also quote any args containing shell meta-characters.
2704 # Make two passes to allow for proper duplicate-argument suppression.
2705 ac_configure_args=
2706 ac_configure_args0=
2707 ac_configure_args1=
2708 ac_must_keep_next=false
2709 for ac_pass in 1 2
2710 do
2711   for ac_arg
2712   do
2713     case $ac_arg in
2714     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2715     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2716     | -silent | --silent | --silen | --sile | --sil)
2717       continue ;;
2718     *\'*)
2719       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2720     esac
2721     case $ac_pass in
2722     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2723     2)
2724       as_fn_append ac_configure_args1 " '$ac_arg'"
2725       if test $ac_must_keep_next = true; then
2726         ac_must_keep_next=false # Got value, back to normal.
2727       else
2728         case $ac_arg in
2729           *=* | --config-cache | -C | -disable-* | --disable-* \
2730           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2731           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2732           | -with-* | --with-* | -without-* | --without-* | --x)
2733             case "$ac_configure_args0 " in
2734               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2735             esac
2736             ;;
2737           -* ) ac_must_keep_next=true ;;
2738         esac
2739       fi
2740       as_fn_append ac_configure_args " '$ac_arg'"
2741       ;;
2742     esac
2743   done
2744 done
2745 { ac_configure_args0=; unset ac_configure_args0;}
2746 { ac_configure_args1=; unset ac_configure_args1;}
2747
2748 # When interrupted or exit'd, cleanup temporary files, and complete
2749 # config.log.  We remove comments because anyway the quotes in there
2750 # would cause problems or look ugly.
2751 # WARNING: Use '\'' to represent an apostrophe within the trap.
2752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2753 trap 'exit_status=$?
2754   # Save into config.log some information that might help in debugging.
2755   {
2756     echo
2757
2758     $as_echo "## ---------------- ##
2759 ## Cache variables. ##
2760 ## ---------------- ##"
2761     echo
2762     # The following way of writing the cache mishandles newlines in values,
2763 (
2764   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2765     eval ac_val=\$$ac_var
2766     case $ac_val in #(
2767     *${as_nl}*)
2768       case $ac_var in #(
2769       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2770 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2771       esac
2772       case $ac_var in #(
2773       _ | IFS | as_nl) ;; #(
2774       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2775       *) { eval $ac_var=; unset $ac_var;} ;;
2776       esac ;;
2777     esac
2778   done
2779   (set) 2>&1 |
2780     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2781     *${as_nl}ac_space=\ *)
2782       sed -n \
2783         "s/'\''/'\''\\\\'\'''\''/g;
2784           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2785       ;; #(
2786     *)
2787       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2788       ;;
2789     esac |
2790     sort
2791 )
2792     echo
2793
2794     $as_echo "## ----------------- ##
2795 ## Output variables. ##
2796 ## ----------------- ##"
2797     echo
2798     for ac_var in $ac_subst_vars
2799     do
2800       eval ac_val=\$$ac_var
2801       case $ac_val in
2802       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2803       esac
2804       $as_echo "$ac_var='\''$ac_val'\''"
2805     done | sort
2806     echo
2807
2808     if test -n "$ac_subst_files"; then
2809       $as_echo "## ------------------- ##
2810 ## File substitutions. ##
2811 ## ------------------- ##"
2812       echo
2813       for ac_var in $ac_subst_files
2814       do
2815         eval ac_val=\$$ac_var
2816         case $ac_val in
2817         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818         esac
2819         $as_echo "$ac_var='\''$ac_val'\''"
2820       done | sort
2821       echo
2822     fi
2823
2824     if test -s confdefs.h; then
2825       $as_echo "## ----------- ##
2826 ## confdefs.h. ##
2827 ## ----------- ##"
2828       echo
2829       cat confdefs.h
2830       echo
2831     fi
2832     test "$ac_signal" != 0 &&
2833       $as_echo "$as_me: caught signal $ac_signal"
2834     $as_echo "$as_me: exit $exit_status"
2835   } >&5
2836   rm -f core *.core core.conftest.* &&
2837     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2838     exit $exit_status
2839 ' 0
2840 for ac_signal in 1 2 13 15; do
2841   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2842 done
2843 ac_signal=0
2844
2845 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2846 rm -f -r conftest* confdefs.h
2847
2848 $as_echo "/* confdefs.h */" > confdefs.h
2849
2850 # Predefined preprocessor variables.
2851
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_NAME "$PACKAGE_NAME"
2854 _ACEOF
2855
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2858 _ACEOF
2859
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2862 _ACEOF
2863
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE_STRING "$PACKAGE_STRING"
2866 _ACEOF
2867
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2870 _ACEOF
2871
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_URL "$PACKAGE_URL"
2874 _ACEOF
2875
2876
2877 # Let the site file select an alternate cache file if it wants to.
2878 # Prefer an explicitly selected file to automatically selected ones.
2879 ac_site_file1=NONE
2880 ac_site_file2=NONE
2881 if test -n "$CONFIG_SITE"; then
2882   # We do not want a PATH search for config.site.
2883   case $CONFIG_SITE in #((
2884     -*)  ac_site_file1=./$CONFIG_SITE;;
2885     */*) ac_site_file1=$CONFIG_SITE;;
2886     *)   ac_site_file1=./$CONFIG_SITE;;
2887   esac
2888 elif test "x$prefix" != xNONE; then
2889   ac_site_file1=$prefix/share/config.site
2890   ac_site_file2=$prefix/etc/config.site
2891 else
2892   ac_site_file1=$ac_default_prefix/share/config.site
2893   ac_site_file2=$ac_default_prefix/etc/config.site
2894 fi
2895 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2896 do
2897   test "x$ac_site_file" = xNONE && continue
2898   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2899     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2900 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2901     sed 's/^/| /' "$ac_site_file" >&5
2902     . "$ac_site_file" \
2903       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2905 as_fn_error $? "failed to load site script $ac_site_file
2906 See \`config.log' for more details" "$LINENO" 5; }
2907   fi
2908 done
2909
2910 if test -r "$cache_file"; then
2911   # Some versions of bash will fail to source /dev/null (special files
2912   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2913   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2914     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2915 $as_echo "$as_me: loading cache $cache_file" >&6;}
2916     case $cache_file in
2917       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2918       *)                      . "./$cache_file";;
2919     esac
2920   fi
2921 else
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2923 $as_echo "$as_me: creating cache $cache_file" >&6;}
2924   >$cache_file
2925 fi
2926
2927 # Check that the precious variables saved in the cache have kept the same
2928 # value.
2929 ac_cache_corrupted=false
2930 for ac_var in $ac_precious_vars; do
2931   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2932   eval ac_new_set=\$ac_env_${ac_var}_set
2933   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2934   eval ac_new_val=\$ac_env_${ac_var}_value
2935   case $ac_old_set,$ac_new_set in
2936     set,)
2937       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2938 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2939       ac_cache_corrupted=: ;;
2940     ,set)
2941       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2942 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2943       ac_cache_corrupted=: ;;
2944     ,);;
2945     *)
2946       if test "x$ac_old_val" != "x$ac_new_val"; then
2947         # differences in whitespace do not lead to failure.
2948         ac_old_val_w=`echo x $ac_old_val`
2949         ac_new_val_w=`echo x $ac_new_val`
2950         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2951           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2952 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2953           ac_cache_corrupted=:
2954         else
2955           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2956 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2957           eval $ac_var=\$ac_old_val
2958         fi
2959         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2960 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2961         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2962 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2963       fi;;
2964   esac
2965   # Pass precious variables to config.status.
2966   if test "$ac_new_set" = set; then
2967     case $ac_new_val in
2968     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2969     *) ac_arg=$ac_var=$ac_new_val ;;
2970     esac
2971     case " $ac_configure_args " in
2972       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2973       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2974     esac
2975   fi
2976 done
2977 if $ac_cache_corrupted; then
2978   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2981 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2982   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2983 fi
2984 ## -------------------- ##
2985 ## Main body of script. ##
2986 ## -------------------- ##
2987
2988 ac_ext=c
2989 ac_cpp='$CPP $CPPFLAGS'
2990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993
2994
2995
2996
2997
2998
2999
3000 # using curl-override.m4
3001
3002
3003
3004
3005
3006 ac_config_headers="$ac_config_headers lib/curl_config.h"
3007
3008
3009
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3011 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3012     # Check whether --enable-maintainer-mode was given.
3013 if test "${enable_maintainer_mode+set}" = set; then :
3014   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3015 else
3016   USE_MAINTAINER_MODE=no
3017 fi
3018
3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3020 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3021    if test $USE_MAINTAINER_MODE = yes; then
3022   MAINTAINER_MODE_TRUE=
3023   MAINTAINER_MODE_FALSE='#'
3024 else
3025   MAINTAINER_MODE_TRUE='#'
3026   MAINTAINER_MODE_FALSE=
3027 fi
3028
3029   MAINT=$MAINTAINER_MODE_TRUE
3030
3031
3032 # Check whether --enable-silent-rules was given.
3033 if test "${enable_silent_rules+set}" = set; then :
3034   enableval=$enable_silent_rules;
3035 fi
3036
3037 case $enable_silent_rules in # (((
3038   yes) AM_DEFAULT_VERBOSITY=0;;
3039    no) AM_DEFAULT_VERBOSITY=1;;
3040     *) AM_DEFAULT_VERBOSITY=0;;
3041 esac
3042 am_make=${MAKE-make}
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3044 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3045 if ${am_cv_make_support_nested_variables+:} false; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   if $as_echo 'TRUE=$(BAR$(V))
3049 BAR0=false
3050 BAR1=true
3051 V=1
3052 am__doit:
3053         @$(TRUE)
3054 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3055   am_cv_make_support_nested_variables=yes
3056 else
3057   am_cv_make_support_nested_variables=no
3058 fi
3059 fi
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3061 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3062 if test $am_cv_make_support_nested_variables = yes; then
3063     AM_V='$(V)'
3064   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3065 else
3066   AM_V=$AM_DEFAULT_VERBOSITY
3067   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3068 fi
3069 AM_BACKSLASH='\'
3070
3071
3072
3073         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3074 $as_echo_n "checking whether to enable debug build options... " >&6; }
3075   OPT_DEBUG_BUILD="default"
3076   # Check whether --enable-debug was given.
3077 if test "${enable_debug+set}" = set; then :
3078   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3079 fi
3080
3081   case "$OPT_DEBUG_BUILD" in
3082     no)
3083             want_debug="no"
3084       ;;
3085     default)
3086             want_debug="no"
3087       ;;
3088     *)
3089             want_debug="yes"
3090
3091 $as_echo "#define DEBUGBUILD 1" >>confdefs.h
3092
3093       ;;
3094   esac
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3096 $as_echo "$want_debug" >&6; }
3097
3098
3099       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3100 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3101   OPT_COMPILER_OPTIMIZE="default"
3102   # Check whether --enable-optimize was given.
3103 if test "${enable_optimize+set}" = set; then :
3104   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3105 fi
3106
3107   case "$OPT_COMPILER_OPTIMIZE" in
3108     no)
3109                               want_optimize="no"
3110       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112       ;;
3113     default)
3114                                                                         if test "$want_debug" = "yes"; then
3115         want_optimize="assume_no"
3116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3117 $as_echo "(assumed) no" >&6; }
3118       else
3119         want_optimize="assume_yes"
3120         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3121 $as_echo "(assumed) yes" >&6; }
3122       fi
3123       ;;
3124     *)
3125                               want_optimize="yes"
3126       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3127 $as_echo "yes" >&6; }
3128       ;;
3129   esac
3130
3131
3132         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3133 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3134   OPT_COMPILER_WARNINGS="default"
3135   # Check whether --enable-warnings was given.
3136 if test "${enable_warnings+set}" = set; then :
3137   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3138 fi
3139
3140   case "$OPT_COMPILER_WARNINGS" in
3141     no)
3142             want_warnings="no"
3143       ;;
3144     default)
3145                   want_warnings="$want_debug"
3146       ;;
3147     *)
3148             want_warnings="yes"
3149       ;;
3150   esac
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3152 $as_echo "$want_warnings" >&6; }
3153
3154
3155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3156 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3157   OPT_COMPILER_WERROR="default"
3158   # Check whether --enable-werror was given.
3159 if test "${enable_werror+set}" = set; then :
3160   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3161 fi
3162
3163   case "$OPT_COMPILER_WERROR" in
3164     no)
3165             want_werror="no"
3166       ;;
3167     default)
3168             want_werror="no"
3169       ;;
3170     *)
3171             want_werror="yes"
3172       ;;
3173   esac
3174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3175 $as_echo "$want_werror" >&6; }
3176
3177
3178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3179 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3180   OPT_CURLDEBUG_BUILD="default"
3181   # Check whether --enable-curldebug was given.
3182 if test "${enable_curldebug+set}" = set; then :
3183   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3184 fi
3185
3186   case "$OPT_CURLDEBUG_BUILD" in
3187     no)
3188             want_curldebug="no"
3189       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191       ;;
3192     default)
3193                                           if test "$want_debug" = "yes"; then
3194         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3195 $as_echo "(assumed) yes" >&6; }
3196
3197 $as_echo "#define CURLDEBUG 1" >>confdefs.h
3198
3199       else
3200         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202       fi
3203       want_curldebug_assumed="yes"
3204       want_curldebug="$want_debug"
3205       ;;
3206     *)
3207                                                       want_curldebug="yes"
3208
3209 $as_echo "#define CURLDEBUG 1" >>confdefs.h
3210
3211       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212 $as_echo "yes" >&6; }
3213       ;;
3214   esac
3215
3216
3217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3218 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3219   OPT_SYMBOL_HIDING="default"
3220   # Check whether --enable-symbol-hiding was given.
3221 if test "${enable_symbol_hiding+set}" = set; then :
3222   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3223 fi
3224
3225   # Check whether --enable-hidden-symbols was given.
3226 if test "${enable_hidden_symbols+set}" = set; then :
3227   enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3228 fi
3229
3230   case "$OPT_SYMBOL_HIDING" in
3231     no)
3232                               want_symbol_hiding="no"
3233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235       ;;
3236     default)
3237                   want_symbol_hiding="yes"
3238       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3240       ;;
3241     *)
3242                         want_symbol_hiding="yes"
3243       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3244 $as_echo "yes" >&6; }
3245       ;;
3246   esac
3247
3248
3249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3250 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3251   OPT_ARES="default"
3252   # Check whether --enable-ares was given.
3253 if test "${enable_ares+set}" = set; then :
3254   enableval=$enable_ares; OPT_ARES=$enableval
3255 fi
3256
3257   case "$OPT_ARES" in
3258     no)
3259             want_ares="no"
3260       ;;
3261     default)
3262             want_ares="no"
3263       ;;
3264     *)
3265             want_ares="yes"
3266       if test -n "$enableval" && test "$enableval" != "yes"; then
3267         want_ares_path="$enableval"
3268       fi
3269       ;;
3270   esac
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3272 $as_echo "$want_ares" >&6; }
3273
3274
3275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3276 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3277   OPT_RT="default"
3278   # Check whether --enable-rt was given.
3279 if test "${enable_rt+set}" = set; then :
3280   enableval=$enable_rt; OPT_RT=$enableval
3281 fi
3282
3283   case "$OPT_RT" in
3284     no)
3285             dontwant_rt="yes"
3286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287 $as_echo "yes" >&6; }
3288       ;;
3289     default)
3290             dontwant_rt="no"
3291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3292 $as_echo "(assumed no)" >&6; }
3293       ;;
3294     *)
3295             dontwant_rt="no"
3296       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298       ;;
3299   esac
3300
3301
3302 #
3303 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3304 #
3305
3306 if test -z "$xc_configure_preamble_result"; then
3307   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3308 fi
3309
3310 #
3311 # Check that 'PATH_SEPARATOR' has already been set.
3312 #
3313
3314 if test -z "$xc_PATH_SEPARATOR"; then
3315   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3316 fi
3317 if test -z "$PATH_SEPARATOR"; then
3318   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3319 fi
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3321 $as_echo_n "checking for path separator... " >&6; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3323 $as_echo "$PATH_SEPARATOR" >&6; }
3324 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3326 $as_echo_n "checking for initial path separator... " >&6; }
3327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3328 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3329   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3330 fi
3331
3332
3333 #
3334 # save the configure arguments
3335 #
3336 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3337
3338
3339 CURL_CFLAG_EXTRAS=""
3340 if test X"$want_werror" = Xyes; then
3341   CURL_CFLAG_EXTRAS="-Werror"
3342   if test "$compiler_id" = "GNU_C"; then
3343             if test "$compiler_num" -ge "500"; then
3344       CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
3345     fi
3346   fi
3347 fi
3348
3349
3350 if test -z "$SED"; then
3351     # Extract the first word of "sed", so it can be a program name with args.
3352 set dummy sed; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_path_SED+:} false; then :
3356   $as_echo_n "(cached) " >&6
3357 else
3358   case $SED in
3359   [\\/]* | ?:[\\/]*)
3360   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3361   ;;
3362   *)
3363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3365 for as_dir in $as_dummy
3366 do
3367   IFS=$as_save_IFS
3368   test -z "$as_dir" && as_dir=.
3369     for ac_exec_ext in '' $ac_executable_extensions; do
3370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373     break 2
3374   fi
3375 done
3376   done
3377 IFS=$as_save_IFS
3378
3379   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3380   ;;
3381 esac
3382 fi
3383 SED=$ac_cv_path_SED
3384 if test -n "$SED"; then
3385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3386 $as_echo "$SED" >&6; }
3387 else
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3390 fi
3391
3392
3393   if test -z "$SED" || test "$SED" = "not_found"; then
3394     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3395   fi
3396 fi
3397
3398
3399 if test -z "$GREP"; then
3400     # Extract the first word of "grep", so it can be a program name with args.
3401 set dummy grep; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if ${ac_cv_path_GREP+:} false; then :
3405   $as_echo_n "(cached) " >&6
3406 else
3407   case $GREP in
3408   [\\/]* | ?:[\\/]*)
3409   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3410   ;;
3411   *)
3412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3414 for as_dir in $as_dummy
3415 do
3416   IFS=$as_save_IFS
3417   test -z "$as_dir" && as_dir=.
3418     for ac_exec_ext in '' $ac_executable_extensions; do
3419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422     break 2
3423   fi
3424 done
3425   done
3426 IFS=$as_save_IFS
3427
3428   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3429   ;;
3430 esac
3431 fi
3432 GREP=$ac_cv_path_GREP
3433 if test -n "$GREP"; then
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3435 $as_echo "$GREP" >&6; }
3436 else
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3439 fi
3440
3441
3442   if test -z "$GREP" || test "$GREP" = "not_found"; then
3443     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3444   fi
3445 fi
3446
3447
3448 if test -z "$EGREP"; then
3449     if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3451 $as_echo_n "checking for egrep... " >&6; }
3452     EGREP="$GREP -E"
3453     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3454 $as_echo "$EGREP" >&6; }
3455   else
3456     # Extract the first word of "egrep", so it can be a program name with args.
3457 set dummy egrep; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if ${ac_cv_path_EGREP+:} false; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463   case $EGREP in
3464   [\\/]* | ?:[\\/]*)
3465   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3466   ;;
3467   *)
3468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3470 for as_dir in $as_dummy
3471 do
3472   IFS=$as_save_IFS
3473   test -z "$as_dir" && as_dir=.
3474     for ac_exec_ext in '' $ac_executable_extensions; do
3475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478     break 2
3479   fi
3480 done
3481   done
3482 IFS=$as_save_IFS
3483
3484   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3485   ;;
3486 esac
3487 fi
3488 EGREP=$ac_cv_path_EGREP
3489 if test -n "$EGREP"; then
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3491 $as_echo "$EGREP" >&6; }
3492 else
3493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 fi
3496
3497
3498   fi
3499 fi
3500 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3501   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3502 fi
3503
3504
3505 if test -z "$AR"; then
3506     if test -n "$ac_tool_prefix"; then
3507   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3508 set dummy ${ac_tool_prefix}ar; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if ${ac_cv_path_AR+:} false; then :
3512   $as_echo_n "(cached) " >&6
3513 else
3514   case $AR in
3515   [\\/]* | ?:[\\/]*)
3516   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3517   ;;
3518   *)
3519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3521 for as_dir in $as_dummy
3522 do
3523   IFS=$as_save_IFS
3524   test -z "$as_dir" && as_dir=.
3525     for ac_exec_ext in '' $ac_executable_extensions; do
3526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529     break 2
3530   fi
3531 done
3532   done
3533 IFS=$as_save_IFS
3534
3535   ;;
3536 esac
3537 fi
3538 AR=$ac_cv_path_AR
3539 if test -n "$AR"; then
3540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3541 $as_echo "$AR" >&6; }
3542 else
3543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3545 fi
3546
3547
3548 fi
3549 if test -z "$ac_cv_path_AR"; then
3550   ac_pt_AR=$AR
3551   # Extract the first word of "ar", so it can be a program name with args.
3552 set dummy ar; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if ${ac_cv_path_ac_pt_AR+:} false; then :
3556   $as_echo_n "(cached) " >&6
3557 else
3558   case $ac_pt_AR in
3559   [\\/]* | ?:[\\/]*)
3560   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3561   ;;
3562   *)
3563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3565 for as_dir in $as_dummy
3566 do
3567   IFS=$as_save_IFS
3568   test -z "$as_dir" && as_dir=.
3569     for ac_exec_ext in '' $ac_executable_extensions; do
3570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573     break 2
3574   fi
3575 done
3576   done
3577 IFS=$as_save_IFS
3578
3579   ;;
3580 esac
3581 fi
3582 ac_pt_AR=$ac_cv_path_ac_pt_AR
3583 if test -n "$ac_pt_AR"; then
3584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3585 $as_echo "$ac_pt_AR" >&6; }
3586 else
3587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3589 fi
3590
3591   if test "x$ac_pt_AR" = x; then
3592     AR="not_found"
3593   else
3594     case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600     AR=$ac_pt_AR
3601   fi
3602 else
3603   AR="$ac_cv_path_AR"
3604 fi
3605
3606   if test -z "$AR" || test "$AR" = "not_found"; then
3607     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3608   fi
3609 fi
3610
3611
3612
3613
3614 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3615
3616   xc_prog_cc_prev_IFS=$IFS
3617   xc_prog_cc_prev_LIBS=$LIBS
3618   xc_prog_cc_prev_CFLAGS=$CFLAGS
3619   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3620   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3621
3622
3623
3624   xc_bad_var_libs=no
3625   for xc_word in $LIBS; do
3626     case "$xc_word" in
3627       -l* | --library=*)
3628         :
3629         ;;
3630       *)
3631         xc_bad_var_libs=yes
3632         ;;
3633     esac
3634   done
3635   if test $xc_bad_var_libs = yes; then
3636     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3637 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3638     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3639 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3640   fi
3641
3642
3643   xc_bad_var_ldflags=no
3644   for xc_word in $LDFLAGS; do
3645     case "$xc_word" in
3646       -D*)
3647         xc_bad_var_ldflags=yes
3648         ;;
3649       -U*)
3650         xc_bad_var_ldflags=yes
3651         ;;
3652       -I*)
3653         xc_bad_var_ldflags=yes
3654         ;;
3655       -l* | --library=*)
3656         xc_bad_var_ldflags=yes
3657         ;;
3658     esac
3659   done
3660   if test $xc_bad_var_ldflags = yes; then
3661     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3662 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3663     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3664     for xc_word in $LDFLAGS; do
3665       case "$xc_word" in
3666         -D*)
3667           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3668 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3669           ;;
3670         -U*)
3671           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3672 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3673           ;;
3674         -I*)
3675           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3676 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3677           ;;
3678         -l* | --library=*)
3679           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3680 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3681           ;;
3682       esac
3683     done
3684   fi
3685
3686
3687   xc_bad_var_cppflags=no
3688   for xc_word in $CPPFLAGS; do
3689     case "$xc_word" in
3690       -rpath*)
3691         xc_bad_var_cppflags=yes
3692         ;;
3693       -L* | --library-path=*)
3694         xc_bad_var_cppflags=yes
3695         ;;
3696       -l* | --library=*)
3697         xc_bad_var_cppflags=yes
3698         ;;
3699     esac
3700   done
3701   if test $xc_bad_var_cppflags = yes; then
3702     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3703 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3704     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3705     for xc_word in $CPPFLAGS; do
3706       case "$xc_word" in
3707         -rpath*)
3708           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3709 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3710           ;;
3711         -L* | --library-path=*)
3712           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3713 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3714           ;;
3715         -l* | --library=*)
3716           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3717 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3718           ;;
3719       esac
3720     done
3721   fi
3722
3723
3724   xc_bad_var_cflags=no
3725   for xc_word in $CFLAGS; do
3726     case "$xc_word" in
3727       -D*)
3728         xc_bad_var_cflags=yes
3729         ;;
3730       -U*)
3731         xc_bad_var_cflags=yes
3732         ;;
3733       -I*)
3734         xc_bad_var_cflags=yes
3735         ;;
3736       -rpath*)
3737         xc_bad_var_cflags=yes
3738         ;;
3739       -L* | --library-path=*)
3740         xc_bad_var_cflags=yes
3741         ;;
3742       -l* | --library=*)
3743         xc_bad_var_cflags=yes
3744         ;;
3745     esac
3746   done
3747   if test $xc_bad_var_cflags = yes; then
3748     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3749 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3750     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3751     for xc_word in $CFLAGS; do
3752       case "$xc_word" in
3753         -D*)
3754           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3755 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3756           ;;
3757         -U*)
3758           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3759 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3760           ;;
3761         -I*)
3762           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3763 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3764           ;;
3765         -rpath*)
3766           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3767 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3768           ;;
3769         -L* | --library-path=*)
3770           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3771 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3772           ;;
3773         -l* | --library=*)
3774           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3775 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3776           ;;
3777       esac
3778     done
3779   fi
3780
3781   if test $xc_bad_var_libs = yes ||
3782      test $xc_bad_var_cflags = yes ||
3783      test $xc_bad_var_ldflags = yes ||
3784      test $xc_bad_var_cppflags = yes; then
3785      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3786 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3787   fi
3788
3789 ac_aux_dir=
3790 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3791   if test -f "$ac_dir/install-sh"; then
3792     ac_aux_dir=$ac_dir
3793     ac_install_sh="$ac_aux_dir/install-sh -c"
3794     break
3795   elif test -f "$ac_dir/install.sh"; then
3796     ac_aux_dir=$ac_dir
3797     ac_install_sh="$ac_aux_dir/install.sh -c"
3798     break
3799   elif test -f "$ac_dir/shtool"; then
3800     ac_aux_dir=$ac_dir
3801     ac_install_sh="$ac_aux_dir/shtool install -c"
3802     break
3803   fi
3804 done
3805 if test -z "$ac_aux_dir"; then
3806   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3807 fi
3808
3809 # These three variables are undocumented and unsupported,
3810 # and are intended to be withdrawn in a future Autoconf release.
3811 # They can cause serious problems if a builder's source tree is in a directory
3812 # whose full name contains unusual characters.
3813 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3814 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3815 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3816
3817
3818 # Find a good install program.  We prefer a C program (faster),
3819 # so one script is as good as another.  But avoid the broken or
3820 # incompatible versions:
3821 # SysV /etc/install, /usr/sbin/install
3822 # SunOS /usr/etc/install
3823 # IRIX /sbin/install
3824 # AIX /bin/install
3825 # AmigaOS /C/install, which installs bootblocks on floppy discs
3826 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3827 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3828 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3829 # OS/2's system install, which has a completely different semantic
3830 # ./install, which can be erroneously created by make from ./install.sh.
3831 # Reject install programs that cannot install multiple files.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3833 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3834 if test -z "$INSTALL"; then
3835 if ${ac_cv_path_install+:} false; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3840 do
3841   IFS=$as_save_IFS
3842   test -z "$as_dir" && as_dir=.
3843     # Account for people who put trailing slashes in PATH elements.
3844 case $as_dir/ in #((
3845   ./ | .// | /[cC]/* | \
3846   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3847   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3848   /usr/ucb/* ) ;;
3849   *)
3850     # OSF1 and SCO ODT 3.0 have their own names for install.
3851     # Don't use installbsd from OSF since it installs stuff as root
3852     # by default.
3853     for ac_prog in ginstall scoinst install; do
3854       for ac_exec_ext in '' $ac_executable_extensions; do
3855         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3856           if test $ac_prog = install &&
3857             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3858             # AIX install.  It has an incompatible calling convention.
3859             :
3860           elif test $ac_prog = install &&
3861             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3862             # program-specific install script used by HP pwplus--don't use.
3863             :
3864           else
3865             rm -rf conftest.one conftest.two conftest.dir
3866             echo one > conftest.one
3867             echo two > conftest.two
3868             mkdir conftest.dir
3869             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3870               test -s conftest.one && test -s conftest.two &&
3871               test -s conftest.dir/conftest.one &&
3872               test -s conftest.dir/conftest.two
3873             then
3874               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3875               break 3
3876             fi
3877           fi
3878         fi
3879       done
3880     done
3881     ;;
3882 esac
3883
3884   done
3885 IFS=$as_save_IFS
3886
3887 rm -rf conftest.one conftest.two conftest.dir
3888
3889 fi
3890   if test "${ac_cv_path_install+set}" = set; then
3891     INSTALL=$ac_cv_path_install
3892   else
3893     # As a last resort, use the slow shell script.  Don't cache a
3894     # value for INSTALL within a source directory, because that will
3895     # break other packages using the cache if that directory is
3896     # removed, or if the value is a relative name.
3897     INSTALL=$ac_install_sh
3898   fi
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3901 $as_echo "$INSTALL" >&6; }
3902
3903 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3904 # It thinks the first close brace ends the variable substitution.
3905 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3906
3907 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3908
3909 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3910
3911 # Expand $ac_aux_dir to an absolute path.
3912 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3913
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919 if test -n "$ac_tool_prefix"; then
3920   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_prog_CC+:} false; then :
3925   $as_echo_n "(cached) " >&6
3926 else
3927   if test -n "$CC"; then
3928   ac_cv_prog_CC="$CC" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935     for ac_exec_ext in '' $ac_executable_extensions; do
3936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942   done
3943 IFS=$as_save_IFS
3944
3945 fi
3946 fi
3947 CC=$ac_cv_prog_CC
3948 if test -n "$CC"; then
3949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 $as_echo "$CC" >&6; }
3951 else
3952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3954 fi
3955
3956
3957 fi
3958 if test -z "$ac_cv_prog_CC"; then
3959   ac_ct_CC=$CC
3960   # Extract the first word of "gcc", so it can be a program name with args.
3961 set dummy gcc; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3965   $as_echo_n "(cached) " >&6
3966 else
3967   if test -n "$ac_ct_CC"; then
3968   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973   IFS=$as_save_IFS
3974   test -z "$as_dir" && as_dir=.
3975     for ac_exec_ext in '' $ac_executable_extensions; do
3976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977     ac_cv_prog_ac_ct_CC="gcc"
3978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979     break 2
3980   fi
3981 done
3982   done
3983 IFS=$as_save_IFS
3984
3985 fi
3986 fi
3987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3988 if test -n "$ac_ct_CC"; then
3989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3990 $as_echo "$ac_ct_CC" >&6; }
3991 else
3992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3994 fi
3995
3996   if test "x$ac_ct_CC" = x; then
3997     CC=""
3998   else
3999     case $cross_compiling:$ac_tool_warned in
4000 yes:)
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003 ac_tool_warned=yes ;;
4004 esac
4005     CC=$ac_ct_CC
4006   fi
4007 else
4008   CC="$ac_cv_prog_CC"
4009 fi
4010
4011 if test -z "$CC"; then
4012           if test -n "$ac_tool_prefix"; then
4013     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}cc; ac_word=$2
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 $as_echo_n "checking for $ac_word... " >&6; }
4017 if ${ac_cv_prog_CC+:} false; then :
4018   $as_echo_n "(cached) " >&6
4019 else
4020   if test -n "$CC"; then
4021   ac_cv_prog_CC="$CC" # Let the user override the test.
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4025 do
4026   IFS=$as_save_IFS
4027   test -z "$as_dir" && as_dir=.
4028     for ac_exec_ext in '' $ac_executable_extensions; do
4029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030     ac_cv_prog_CC="${ac_tool_prefix}cc"
4031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032     break 2
4033   fi
4034 done
4035   done
4036 IFS=$as_save_IFS
4037
4038 fi
4039 fi
4040 CC=$ac_cv_prog_CC
4041 if test -n "$CC"; then
4042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4043 $as_echo "$CC" >&6; }
4044 else
4045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046 $as_echo "no" >&6; }
4047 fi
4048
4049
4050   fi
4051 fi
4052 if test -z "$CC"; then
4053   # Extract the first word of "cc", so it can be a program name with args.
4054 set dummy cc; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_CC+:} false; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   if test -n "$CC"; then
4061   ac_cv_prog_CC="$CC" # Let the user override the test.
4062 else
4063   ac_prog_rejected=no
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4066 do
4067   IFS=$as_save_IFS
4068   test -z "$as_dir" && as_dir=.
4069     for ac_exec_ext in '' $ac_executable_extensions; do
4070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4071     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4072        ac_prog_rejected=yes
4073        continue
4074      fi
4075     ac_cv_prog_CC="cc"
4076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4077     break 2
4078   fi
4079 done
4080   done
4081 IFS=$as_save_IFS
4082
4083 if test $ac_prog_rejected = yes; then
4084   # We found a bogon in the path, so make sure we never use it.
4085   set dummy $ac_cv_prog_CC
4086   shift
4087   if test $# != 0; then
4088     # We chose a different compiler from the bogus one.
4089     # However, it has the same basename, so the bogon will be chosen
4090     # first if we set CC to just the basename; use the full file name.
4091     shift
4092     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4093   fi
4094 fi
4095 fi
4096 fi
4097 CC=$ac_cv_prog_CC
4098 if test -n "$CC"; then
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4100 $as_echo "$CC" >&6; }
4101 else
4102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4104 fi
4105
4106
4107 fi
4108 if test -z "$CC"; then
4109   if test -n "$ac_tool_prefix"; then
4110   for ac_prog in cl.exe
4111   do
4112     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if ${ac_cv_prog_CC+:} false; then :
4117   $as_echo_n "(cached) " >&6
4118 else
4119   if test -n "$CC"; then
4120   ac_cv_prog_CC="$CC" # Let the user override the test.
4121 else
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4124 do
4125   IFS=$as_save_IFS
4126   test -z "$as_dir" && as_dir=.
4127     for ac_exec_ext in '' $ac_executable_extensions; do
4128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131     break 2
4132   fi
4133 done
4134   done
4135 IFS=$as_save_IFS
4136
4137 fi
4138 fi
4139 CC=$ac_cv_prog_CC
4140 if test -n "$CC"; then
4141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4142 $as_echo "$CC" >&6; }
4143 else
4144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4146 fi
4147
4148
4149     test -n "$CC" && break
4150   done
4151 fi
4152 if test -z "$CC"; then
4153   ac_ct_CC=$CC
4154   for ac_prog in cl.exe
4155 do
4156   # Extract the first word of "$ac_prog", so it can be a program name with args.
4157 set dummy $ac_prog; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4161   $as_echo_n "(cached) " >&6
4162 else
4163   if test -n "$ac_ct_CC"; then
4164   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169   IFS=$as_save_IFS
4170   test -z "$as_dir" && as_dir=.
4171     for ac_exec_ext in '' $ac_executable_extensions; do
4172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173     ac_cv_prog_ac_ct_CC="$ac_prog"
4174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175     break 2
4176   fi
4177 done
4178   done
4179 IFS=$as_save_IFS
4180
4181 fi
4182 fi
4183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4184 if test -n "$ac_ct_CC"; then
4185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4186 $as_echo "$ac_ct_CC" >&6; }
4187 else
4188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4190 fi
4191
4192
4193   test -n "$ac_ct_CC" && break
4194 done
4195
4196   if test "x$ac_ct_CC" = x; then
4197     CC=""
4198   else
4199     case $cross_compiling:$ac_tool_warned in
4200 yes:)
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4203 ac_tool_warned=yes ;;
4204 esac
4205     CC=$ac_ct_CC
4206   fi
4207 fi
4208
4209 fi
4210
4211
4212 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4214 as_fn_error $? "no acceptable C compiler found in \$PATH
4215 See \`config.log' for more details" "$LINENO" 5; }
4216
4217 # Provide some information about the compiler.
4218 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4219 set X $ac_compile
4220 ac_compiler=$2
4221 for ac_option in --version -v -V -qversion; do
4222   { { ac_try="$ac_compiler $ac_option >&5"
4223 case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4228 $as_echo "$ac_try_echo"; } >&5
4229   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4230   ac_status=$?
4231   if test -s conftest.err; then
4232     sed '10a\
4233 ... rest of stderr output deleted ...
4234          10q' conftest.err >conftest.er1
4235     cat conftest.er1 >&5
4236   fi
4237   rm -f conftest.er1 conftest.err
4238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4239   test $ac_status = 0; }
4240 done
4241
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h.  */
4244
4245 int main (void)
4246 {
4247
4248  ;
4249  return 0;
4250 }
4251 _ACEOF
4252 ac_clean_files_save=$ac_clean_files
4253 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4254 # Try to create an executable without -o first, disregard a.out.
4255 # It will help us diagnose broken compilers, and finding out an intuition
4256 # of exeext.
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4258 $as_echo_n "checking whether the C compiler works... " >&6; }
4259 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4260
4261 # The possible output files:
4262 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4263
4264 ac_rmfiles=
4265 for ac_file in $ac_files
4266 do
4267   case $ac_file in
4268     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4269     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4270   esac
4271 done
4272 rm -f $ac_rmfiles
4273
4274 if { { ac_try="$ac_link_default"
4275 case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281   (eval "$ac_link_default") 2>&5
4282   ac_status=$?
4283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284   test $ac_status = 0; }; then :
4285   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4286 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4287 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4288 # so that the user can short-circuit this test for compilers unknown to
4289 # Autoconf.
4290 for ac_file in $ac_files ''
4291 do
4292   test -f "$ac_file" || continue
4293   case $ac_file in
4294     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4295         ;;
4296     [ab].out )
4297         # We found the default executable, but exeext='' is most
4298         # certainly right.
4299         break;;
4300     *.* )
4301         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4302         then :; else
4303            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4304         fi
4305         # We set ac_cv_exeext here because the later test for it is not
4306         # safe: cross compilers may not add the suffix if given an `-o'
4307         # argument, so we may need to know it at that point already.
4308         # Even if this section looks crufty: it has the advantage of
4309         # actually working.
4310         break;;
4311     * )
4312         break;;
4313   esac
4314 done
4315 test "$ac_cv_exeext" = no && ac_cv_exeext=
4316
4317 else
4318   ac_file=''
4319 fi
4320 if test -z "$ac_file"; then :
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323 $as_echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4325
4326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4328 as_fn_error 77 "C compiler cannot create executables
4329 See \`config.log' for more details" "$LINENO" 5; }
4330 else
4331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4332 $as_echo "yes" >&6; }
4333 fi
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4335 $as_echo_n "checking for C compiler default output file name... " >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4337 $as_echo "$ac_file" >&6; }
4338 ac_exeext=$ac_cv_exeext
4339
4340 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4341 ac_clean_files=$ac_clean_files_save
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4343 $as_echo_n "checking for suffix of executables... " >&6; }
4344 if { { ac_try="$ac_link"
4345 case "(($ac_try" in
4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347   *) ac_try_echo=$ac_try;;
4348 esac
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 $as_echo "$ac_try_echo"; } >&5
4351   (eval "$ac_link") 2>&5
4352   ac_status=$?
4353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354   test $ac_status = 0; }; then :
4355   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4356 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4357 # work properly (i.e., refer to `conftest.exe'), while it won't with
4358 # `rm'.
4359 for ac_file in conftest.exe conftest conftest.*; do
4360   test -f "$ac_file" || continue
4361   case $ac_file in
4362     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4363     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4364           break;;
4365     * ) break;;
4366   esac
4367 done
4368 else
4369   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4372 See \`config.log' for more details" "$LINENO" 5; }
4373 fi
4374 rm -f conftest conftest$ac_cv_exeext
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4376 $as_echo "$ac_cv_exeext" >&6; }
4377
4378 rm -f conftest.$ac_ext
4379 EXEEXT=$ac_cv_exeext
4380 ac_exeext=$EXEEXT
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h.  */
4383 #include <stdio.h>
4384 int main (void)
4385 {
4386 FILE *f = fopen ("conftest.out", "w");
4387  return ferror (f) || fclose (f) != 0;
4388
4389  ;
4390  return 0;
4391 }
4392 _ACEOF
4393 ac_clean_files="$ac_clean_files conftest.out"
4394 # Check that the compiler produces executables we can run.  If not, either
4395 # the compiler is broken, or we cross compile.
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4397 $as_echo_n "checking whether we are cross compiling... " >&6; }
4398 if test "$cross_compiling" != yes; then
4399   { { ac_try="$ac_link"
4400 case "(($ac_try" in
4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402   *) ac_try_echo=$ac_try;;
4403 esac
4404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405 $as_echo "$ac_try_echo"; } >&5
4406   (eval "$ac_link") 2>&5
4407   ac_status=$?
4408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409   test $ac_status = 0; }
4410   if { ac_try='./conftest$ac_cv_exeext'
4411   { { case "(($ac_try" in
4412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413   *) ac_try_echo=$ac_try;;
4414 esac
4415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417   (eval "$ac_try") 2>&5
4418   ac_status=$?
4419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4420   test $ac_status = 0; }; }; then
4421     cross_compiling=no
4422   else
4423     if test "$cross_compiling" = maybe; then
4424         cross_compiling=yes
4425     else
4426         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 as_fn_error $? "cannot run C compiled programs.
4429 If you meant to cross compile, use \`--host'.
4430 See \`config.log' for more details" "$LINENO" 5; }
4431     fi
4432   fi
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4435 $as_echo "$cross_compiling" >&6; }
4436
4437 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4438 ac_clean_files=$ac_clean_files_save
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4440 $as_echo_n "checking for suffix of object files... " >&6; }
4441 if ${ac_cv_objext+:} false; then :
4442   $as_echo_n "(cached) " >&6
4443 else
4444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h.  */
4446
4447 int main (void)
4448 {
4449
4450  ;
4451  return 0;
4452 }
4453 _ACEOF
4454 rm -f conftest.o conftest.obj
4455 if { { ac_try="$ac_compile"
4456 case "(($ac_try" in
4457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458   *) ac_try_echo=$ac_try;;
4459 esac
4460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461 $as_echo "$ac_try_echo"; } >&5
4462   (eval "$ac_compile") 2>&5
4463   ac_status=$?
4464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465   test $ac_status = 0; }; then :
4466   for ac_file in conftest.o conftest.obj conftest.*; do
4467   test -f "$ac_file" || continue;
4468   case $ac_file in
4469     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4470     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4471        break;;
4472   esac
4473 done
4474 else
4475   $as_echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4480 as_fn_error $? "cannot compute suffix of object files: cannot compile
4481 See \`config.log' for more details" "$LINENO" 5; }
4482 fi
4483 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4486 $as_echo "$ac_cv_objext" >&6; }
4487 OBJEXT=$ac_cv_objext
4488 ac_objext=$OBJEXT
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4490 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4491 if ${ac_cv_c_compiler_gnu+:} false; then :
4492   $as_echo_n "(cached) " >&6
4493 else
4494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h.  */
4496
4497 int main (void)
4498 {
4499 #ifndef __GNUC__
4500        choke me
4501 #endif
4502
4503  ;
4504  return 0;
4505 }
4506 _ACEOF
4507 if ac_fn_c_try_compile "$LINENO"; then :
4508   ac_compiler_gnu=yes
4509 else
4510   ac_compiler_gnu=no
4511 fi
4512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4514
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4517 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4518 if test $ac_compiler_gnu = yes; then
4519   GCC=yes
4520 else
4521   GCC=
4522 fi
4523 ac_test_CFLAGS=${CFLAGS+set}
4524 ac_save_CFLAGS=$CFLAGS
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4526 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4527 if ${ac_cv_prog_cc_g+:} false; then :
4528   $as_echo_n "(cached) " >&6
4529 else
4530   ac_save_c_werror_flag=$ac_c_werror_flag
4531    ac_c_werror_flag=yes
4532    ac_cv_prog_cc_g=no
4533    CFLAGS="-g"
4534    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h.  */
4536
4537 int main (void)
4538 {
4539
4540  ;
4541  return 0;
4542 }
4543 _ACEOF
4544 if ac_fn_c_try_compile "$LINENO"; then :
4545   ac_cv_prog_cc_g=yes
4546 else
4547   CFLAGS=""
4548       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h.  */
4550
4551 int main (void)
4552 {
4553
4554  ;
4555  return 0;
4556 }
4557 _ACEOF
4558 if ac_fn_c_try_compile "$LINENO"; then :
4559
4560 else
4561   ac_c_werror_flag=$ac_save_c_werror_flag
4562          CFLAGS="-g"
4563          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h.  */
4565
4566 int main (void)
4567 {
4568
4569  ;
4570  return 0;
4571 }
4572 _ACEOF
4573 if ac_fn_c_try_compile "$LINENO"; then :
4574   ac_cv_prog_cc_g=yes
4575 fi
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 fi
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 fi
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581    ac_c_werror_flag=$ac_save_c_werror_flag
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4584 $as_echo "$ac_cv_prog_cc_g" >&6; }
4585 if test "$ac_test_CFLAGS" = set; then
4586   CFLAGS=$ac_save_CFLAGS
4587 elif test $ac_cv_prog_cc_g = yes; then
4588   if test "$GCC" = yes; then
4589     CFLAGS="-g -O2"
4590   else
4591     CFLAGS="-g"
4592   fi
4593 else
4594   if test "$GCC" = yes; then
4595     CFLAGS="-O2"
4596   else
4597     CFLAGS=
4598   fi
4599 fi
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4601 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4602 if ${ac_cv_prog_cc_c89+:} false; then :
4603   $as_echo_n "(cached) " >&6
4604 else
4605   ac_cv_prog_cc_c89=no
4606 ac_save_CC=$CC
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h.  */
4609 #include <stdarg.h>
4610 #include <stdio.h>
4611 struct stat;
4612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4613 struct buf { int x; };
4614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4615 static char *e (p, i)
4616      char **p;
4617      int i;
4618 {
4619   return p[i];
4620 }
4621 static char *f (char * (*g) (char **, int), char **p, ...)
4622 {
4623   char *s;
4624   va_list v;
4625   va_start (v,p);
4626   s = g (p, va_arg (v,int));
4627   va_end (v);
4628   return s;
4629 }
4630
4631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4632    function prototypes and stuff, but not '\xHH' hex character constants.
4633    These don't provoke an error unfortunately, instead are silently treated
4634    as 'x'.  The following induces an error, until -std is added to get
4635    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4636    array size at least.  It's necessary to write '\x00'==0 to get something
4637    that's true only with -std.  */
4638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4639
4640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4641    inside strings and character constants.  */
4642 #define FOO(x) 'x'
4643 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4644
4645 int test (int i, double x);
4646 struct s1 {int (*f) (int a);};
4647 struct s2 {int (*f) (double a);};
4648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4649 int argc;
4650 char **argv;
4651 int main (void)
4652 {
4653 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4654  ;
4655  return 0;
4656 }
4657 _ACEOF
4658 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4659         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4660 do
4661   CC="$ac_save_CC $ac_arg"
4662   if ac_fn_c_try_compile "$LINENO"; then :
4663   ac_cv_prog_cc_c89=$ac_arg
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext
4666   test "x$ac_cv_prog_cc_c89" != "xno" && break
4667 done
4668 rm -f conftest.$ac_ext
4669 CC=$ac_save_CC
4670
4671 fi
4672 # AC_CACHE_VAL
4673 case "x$ac_cv_prog_cc_c89" in
4674   x)
4675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4676 $as_echo "none needed" >&6; } ;;
4677   xno)
4678     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4679 $as_echo "unsupported" >&6; } ;;
4680   *)
4681     CC="$CC $ac_cv_prog_cc_c89"
4682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4683 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4684 esac
4685 if test "x$ac_cv_prog_cc_c89" != xno; then :
4686
4687 fi
4688
4689 ac_ext=c
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694
4695 ac_ext=c
4696 ac_cpp='$CPP $CPPFLAGS'
4697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4701 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4702 if ${am_cv_prog_cc_c_o+:} false; then :
4703   $as_echo_n "(cached) " >&6
4704 else
4705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h.  */
4707
4708 int main (void)
4709 {
4710
4711  ;
4712  return 0;
4713 }
4714 _ACEOF
4715   # Make sure it works both with $CC and with simple cc.
4716   # Following AC_PROG_CC_C_O, we do the test twice because some
4717   # compilers refuse to overwrite an existing .o file with -o,
4718   # though they will create one.
4719   am_cv_prog_cc_c_o=yes
4720   for am_i in 1 2; do
4721     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4722    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4723    ac_status=$?
4724    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725    (exit $ac_status); } \
4726          && test -f conftest2.$ac_objext; then
4727       : OK
4728     else
4729       am_cv_prog_cc_c_o=no
4730       break
4731     fi
4732   done
4733   rm -f core conftest*
4734   unset am_i
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4737 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4738 if test "$am_cv_prog_cc_c_o" != yes; then
4739    # Losing compiler, so override with the script.
4740    # FIXME: It is wrong to rewrite CC.
4741    # But if we don't then we get into trouble of one sort or another.
4742    # A longer-term fix would be to have automake use am__CC in this case,
4743    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4744    CC="$am_aux_dir/compile $CC"
4745 fi
4746 ac_ext=c
4747 ac_cpp='$CPP $CPPFLAGS'
4748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751
4752
4753
4754 ac_ext=c
4755 ac_cpp='$CPP $CPPFLAGS'
4756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4760 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4761 # On Suns, sometimes $CPP names a directory.
4762 if test -n "$CPP" && test -d "$CPP"; then
4763   CPP=
4764 fi
4765 if test -z "$CPP"; then
4766   if ${ac_cv_prog_CPP+:} false; then :
4767   $as_echo_n "(cached) " >&6
4768 else
4769       # Double quotes because CPP needs to be expanded
4770     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4771     do
4772       ac_preproc_ok=false
4773 for ac_c_preproc_warn_flag in '' yes
4774 do
4775   # Use a header file that comes with gcc, so configuring glibc
4776   # with a fresh cross-compiler works.
4777   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4778   # <limits.h> exists even on freestanding compilers.
4779   # On the NeXT, cc -E runs the code through the compiler's parser,
4780   # not just through cpp. "Syntax error" is here to catch this case.
4781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h.  */
4783 #ifdef __STDC__
4784 # include <limits.h>
4785 #else
4786 # include <assert.h>
4787 #endif
4788                      Syntax error
4789 _ACEOF
4790 if ac_fn_c_try_cpp "$LINENO"; then :
4791
4792 else
4793   # Broken: fails on valid input.
4794 continue
4795 fi
4796 rm -f conftest.err conftest.i conftest.$ac_ext
4797
4798   # OK, works on sane cases.  Now check whether nonexistent headers
4799   # can be detected and how.
4800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h.  */
4802 #include <ac_nonexistent.h>
4803 _ACEOF
4804 if ac_fn_c_try_cpp "$LINENO"; then :
4805   # Broken: success on invalid input.
4806 continue
4807 else
4808   # Passes both tests.
4809 ac_preproc_ok=:
4810 break
4811 fi
4812 rm -f conftest.err conftest.i conftest.$ac_ext
4813
4814 done
4815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4816 rm -f conftest.i conftest.err conftest.$ac_ext
4817 if $ac_preproc_ok; then :
4818   break
4819 fi
4820
4821     done
4822     ac_cv_prog_CPP=$CPP
4823
4824 fi
4825   CPP=$ac_cv_prog_CPP
4826 else
4827   ac_cv_prog_CPP=$CPP
4828 fi
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4830 $as_echo "$CPP" >&6; }
4831 ac_preproc_ok=false
4832 for ac_c_preproc_warn_flag in '' yes
4833 do
4834   # Use a header file that comes with gcc, so configuring glibc
4835   # with a fresh cross-compiler works.
4836   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4837   # <limits.h> exists even on freestanding compilers.
4838   # On the NeXT, cc -E runs the code through the compiler's parser,
4839   # not just through cpp. "Syntax error" is here to catch this case.
4840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h.  */
4842 #ifdef __STDC__
4843 # include <limits.h>
4844 #else
4845 # include <assert.h>
4846 #endif
4847                      Syntax error
4848 _ACEOF
4849 if ac_fn_c_try_cpp "$LINENO"; then :
4850
4851 else
4852   # Broken: fails on valid input.
4853 continue
4854 fi
4855 rm -f conftest.err conftest.i conftest.$ac_ext
4856
4857   # OK, works on sane cases.  Now check whether nonexistent headers
4858   # can be detected and how.
4859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h.  */
4861 #include <ac_nonexistent.h>
4862 _ACEOF
4863 if ac_fn_c_try_cpp "$LINENO"; then :
4864   # Broken: success on invalid input.
4865 continue
4866 else
4867   # Passes both tests.
4868 ac_preproc_ok=:
4869 break
4870 fi
4871 rm -f conftest.err conftest.i conftest.$ac_ext
4872
4873 done
4874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4875 rm -f conftest.i conftest.err conftest.$ac_ext
4876 if $ac_preproc_ok; then :
4877
4878 else
4879   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4881 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4882 See \`config.log' for more details" "$LINENO" 5; }
4883 fi
4884
4885 ac_ext=c
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890
4891
4892   IFS=$xc_prog_cc_prev_IFS
4893   LIBS=$xc_prog_cc_prev_LIBS
4894   CFLAGS=$xc_prog_cc_prev_CFLAGS
4895   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4896   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4897
4898
4899
4900
4901
4902
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4904 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4905 if ${ac_cv_path_SED+:} false; then :
4906   $as_echo_n "(cached) " >&6
4907 else
4908             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4909      for ac_i in 1 2 3 4 5 6 7; do
4910        ac_script="$ac_script$as_nl$ac_script"
4911      done
4912      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4913      { ac_script=; unset ac_script;}
4914      if test -z "$SED"; then
4915   ac_path_SED_found=false
4916   # Loop through the user's path and test for each of PROGNAME-LIST
4917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920   IFS=$as_save_IFS
4921   test -z "$as_dir" && as_dir=.
4922     for ac_prog in sed gsed; do
4923     for ac_exec_ext in '' $ac_executable_extensions; do
4924       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4925       as_fn_executable_p "$ac_path_SED" || continue
4926 # Check for GNU ac_path_SED and select it if it is found.
4927   # Check for GNU $ac_path_SED
4928 case `"$ac_path_SED" --version 2>&1` in
4929 *GNU*)
4930   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4931 *)
4932   ac_count=0
4933   $as_echo_n 0123456789 >"conftest.in"
4934   while :
4935   do
4936     cat "conftest.in" "conftest.in" >"conftest.tmp"
4937     mv "conftest.tmp" "conftest.in"
4938     cp "conftest.in" "conftest.nl"
4939     $as_echo '' >> "conftest.nl"
4940     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4941     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4942     as_fn_arith $ac_count + 1 && ac_count=$as_val
4943     if test $ac_count -gt ${ac_path_SED_max-0}; then
4944       # Best one so far, save it but keep looking for a better one
4945       ac_cv_path_SED="$ac_path_SED"
4946       ac_path_SED_max=$ac_count
4947     fi
4948     # 10*(2^10) chars as input seems more than enough
4949     test $ac_count -gt 10 && break
4950   done
4951   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4952 esac
4953
4954       $ac_path_SED_found && break 3
4955     done
4956   done
4957   done
4958 IFS=$as_save_IFS
4959   if test -z "$ac_cv_path_SED"; then
4960     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4961   fi
4962 else
4963   ac_cv_path_SED=$SED
4964 fi
4965
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4968 $as_echo "$ac_cv_path_SED" >&6; }
4969  SED="$ac_cv_path_SED"
4970   rm -f conftest.sed
4971
4972 if  test "$GCC" = "yes" ; then :
4973
4974
4975
4976         # allow to override gcov location
4977
4978 # Check whether --with-gcov was given.
4979 if test "${with_gcov+set}" = set; then :
4980   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
4981 else
4982   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
4983 fi
4984
4985
4986         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
4987 $as_echo_n "checking whether to build with code coverage support... " >&6; }
4988         # Check whether --enable-code-coverage was given.
4989 if test "${enable_code_coverage+set}" = set; then :
4990   enableval=$enable_code_coverage;
4991 else
4992   enable_code_coverage=no
4993 fi
4994
4995
4996          if test x$enable_code_coverage = xyes; then
4997   CODE_COVERAGE_ENABLED_TRUE=
4998   CODE_COVERAGE_ENABLED_FALSE='#'
4999 else
5000   CODE_COVERAGE_ENABLED_TRUE='#'
5001   CODE_COVERAGE_ENABLED_FALSE=
5002 fi
5003
5004         CODE_COVERAGE_ENABLED=$enable_code_coverage
5005
5006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
5007 $as_echo "$enable_code_coverage" >&6; }
5008
5009         if  test "$enable_code_coverage" = "yes" ; then :
5010
5011                 # check for gcov
5012                 if test -n "$ac_tool_prefix"; then
5013   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5014 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_prog_GCOV+:} false; then :
5018   $as_echo_n "(cached) " >&6
5019 else
5020   if test -n "$GCOV"; then
5021   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026   IFS=$as_save_IFS
5027   test -z "$as_dir" && as_dir=.
5028     for ac_exec_ext in '' $ac_executable_extensions; do
5029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032     break 2
5033   fi
5034 done
5035   done
5036 IFS=$as_save_IFS
5037
5038 fi
5039 fi
5040 GCOV=$ac_cv_prog_GCOV
5041 if test -n "$GCOV"; then
5042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5043 $as_echo "$GCOV" >&6; }
5044 else
5045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5047 fi
5048
5049
5050 fi
5051 if test -z "$ac_cv_prog_GCOV"; then
5052   ac_ct_GCOV=$GCOV
5053   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5054 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5058   $as_echo_n "(cached) " >&6
5059 else
5060   if test -n "$ac_ct_GCOV"; then
5061   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5065 do
5066   IFS=$as_save_IFS
5067   test -z "$as_dir" && as_dir=.
5068     for ac_exec_ext in '' $ac_executable_extensions; do
5069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072     break 2
5073   fi
5074 done
5075   done
5076 IFS=$as_save_IFS
5077
5078 fi
5079 fi
5080 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5081 if test -n "$ac_ct_GCOV"; then
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5083 $as_echo "$ac_ct_GCOV" >&6; }
5084 else
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5087 fi
5088
5089   if test "x$ac_ct_GCOV" = x; then
5090     GCOV=":"
5091   else
5092     case $cross_compiling:$ac_tool_warned in
5093 yes:)
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096 ac_tool_warned=yes ;;
5097 esac
5098     GCOV=$ac_ct_GCOV
5099   fi
5100 else
5101   GCOV="$ac_cv_prog_GCOV"
5102 fi
5103
5104                 if test "X$GCOV" = "X:"; then :
5105   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
5106 fi
5107
5108
5109                                 if  test "$GCC" = "no" ; then :
5110
5111                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
5112
5113 fi
5114
5115                 # Extract the first word of "lcov", so it can be a program name with args.
5116 set dummy lcov; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_LCOV+:} false; then :
5120   $as_echo_n "(cached) " >&6
5121 else
5122   if test -n "$LCOV"; then
5123   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128   IFS=$as_save_IFS
5129   test -z "$as_dir" && as_dir=.
5130     for ac_exec_ext in '' $ac_executable_extensions; do
5131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132     ac_cv_prog_LCOV="lcov"
5133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134     break 2
5135   fi
5136 done
5137   done
5138 IFS=$as_save_IFS
5139
5140 fi
5141 fi
5142 LCOV=$ac_cv_prog_LCOV
5143 if test -n "$LCOV"; then
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5145 $as_echo "$LCOV" >&6; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152                 # Extract the first word of "genhtml", so it can be a program name with args.
5153 set dummy genhtml; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_prog_GENHTML+:} false; then :
5157   $as_echo_n "(cached) " >&6
5158 else
5159   if test -n "$GENHTML"; then
5160   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165   IFS=$as_save_IFS
5166   test -z "$as_dir" && as_dir=.
5167     for ac_exec_ext in '' $ac_executable_extensions; do
5168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169     ac_cv_prog_GENHTML="genhtml"
5170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174   done
5175 IFS=$as_save_IFS
5176
5177 fi
5178 fi
5179 GENHTML=$ac_cv_prog_GENHTML
5180 if test -n "$GENHTML"; then
5181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5182 $as_echo "$GENHTML" >&6; }
5183 else
5184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5186 fi
5187
5188
5189
5190                 if  test -z "$LCOV" ; then :
5191
5192                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
5193
5194 fi
5195
5196                 if  test -z "$GENHTML" ; then :
5197
5198                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
5199
5200 fi
5201
5202                                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
5203                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5204                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5205                 CODE_COVERAGE_LIBS="-lgcov"
5206                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
5207
5208
5209
5210
5211
5212
5213
5214                 CODE_COVERAGE_RULES_CHECK='
5215         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
5216         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
5217 '
5218                 CODE_COVERAGE_RULES_CAPTURE='
5219         $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
5220         $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
5221         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
5222         $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
5223         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
5224 '
5225                 CODE_COVERAGE_RULES_CLEAN='
5226 clean: code-coverage-clean
5227 distclean: code-coverage-clean
5228 code-coverage-clean:
5229         -$(LCOV) --directory $(top_builddir) -z
5230         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5231         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
5232 '
5233
5234 else
5235
5236                 CODE_COVERAGE_RULES_CHECK='
5237         @echo "Need to reconfigure with --enable-code-coverage"
5238 '
5239                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
5240                 CODE_COVERAGE_RULES_CLEAN=''
5241
5242 fi
5243
5244 CODE_COVERAGE_RULES='
5245 # Code coverage
5246 #
5247 # Optional:
5248 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
5249 #    Multiple directories may be specified, separated by whitespace.
5250 #    (Default: $(top_builddir))
5251 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
5252 #    by lcov for code coverage. (Default:
5253 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
5254 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
5255 #    reports to be created. (Default:
5256 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
5257 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
5258 #    set to 0 to disable it and leave empty to stay with the default.
5259 #    (Default: empty)
5260 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
5261 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5262 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
5263 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5264 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
5265 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
5266 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5267 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
5268 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5269 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
5270 #    lcov instance. (Default: empty)
5271 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
5272 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5273 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
5274 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5275 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
5276 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5277 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
5278 #
5279 # The generated report will be titled using the $(PACKAGE_NAME) and
5280 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
5281 # use the git-version-gen script, available online.
5282
5283 # Optional variables
5284 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
5285 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
5286 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
5287 CODE_COVERAGE_BRANCH_COVERAGE ?=
5288 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5289 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5290 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5291 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
5292 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5293 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5294 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
5295 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5296 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
5297 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5298 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5299 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5300 CODE_COVERAGE_IGNORE_PATTERN ?=
5301
5302 GITIGNOREFILES ?=
5303 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5304
5305 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
5306 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
5307 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
5308  $(CODE_COVERAGE_OUTPUT_FILE);
5309 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
5310 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
5311 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
5312  $(CODE_COVERAGE_IGNORE_PATTERN);
5313 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
5314 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
5315 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
5316 code_coverage_quiet = $(code_coverage_quiet_$(V))
5317 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
5318 code_coverage_quiet_0 = --quiet
5319
5320 # sanitizes the test-name: replaces with underscores: dashes and dots
5321 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
5322
5323 # Use recursive makes in order to ignore errors during check
5324 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
5325
5326 # Capture code coverage data
5327 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
5328
5329 # Hook rule executed before code-coverage-capture, overridable by the user
5330 code-coverage-capture-hook:
5331
5332 '"$CODE_COVERAGE_RULES_CLEAN"'
5333
5334 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
5335 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
5336
5337 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
5338 '
5339
5340
5341
5342
5343 else
5344   # not using GCC so pass a test below - CODE_COVERAGE_ENABLED_TRUE is not zero length
5345   CODE_COVERAGE_ENABLED_TRUE='#'
5346
5347 fi
5348
5349 am__api_version='1.16'
5350
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5352 $as_echo_n "checking whether build environment is sane... " >&6; }
5353 # Reject unsafe characters in $srcdir or the absolute working directory
5354 # name.  Accept space and tab only in the latter.
5355 am_lf='
5356 '
5357 case `pwd` in
5358   *[\\\"\#\$\&\'\`$am_lf]*)
5359     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5360 esac
5361 case $srcdir in
5362   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
5363     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5364 esac
5365
5366 # Do 'set' in a subshell so we don't clobber the current shell's
5367 # arguments.  Must try -L first in case configure is actually a
5368 # symlink; some systems play weird games with the mod time of symlinks
5369 # (eg FreeBSD returns the mod time of the symlink's containing
5370 # directory).
5371 if (
5372    am_has_slept=no
5373    for am_try in 1 2; do
5374      echo "timestamp, slept: $am_has_slept" > conftest.file
5375      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5376      if test "$*" = "X"; then
5377         # -L didn't work.
5378         set X `ls -t "$srcdir/configure" conftest.file`
5379      fi
5380      if test "$*" != "X $srcdir/configure conftest.file" \
5381         && test "$*" != "X conftest.file $srcdir/configure"; then
5382
5383         # If neither matched, then we have a broken ls.  This can happen
5384         # if, for instance, CONFIG_SHELL is bash and it inherits a
5385         # broken ls alias from the environment.  This has actually
5386         # happened.  Such a system could not be considered "sane".
5387         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5388   alias in your environment" "$LINENO" 5
5389      fi
5390      if test "$2" = conftest.file || test $am_try -eq 2; then
5391        break
5392      fi
5393      # Just in case.
5394      sleep 1
5395      am_has_slept=yes
5396    done
5397    test "$2" = conftest.file
5398    )
5399 then
5400    # Ok.
5401    :
5402 else
5403    as_fn_error $? "newly created file is older than distributed files!
5404 Check your system clock" "$LINENO" 5
5405 fi
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5407 $as_echo "yes" >&6; }
5408 # If we didn't sleep, we still need to ensure time stamps of config.status and
5409 # generated files are strictly newer.
5410 am_sleep_pid=
5411 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5412   ( sleep 1 ) &
5413   am_sleep_pid=$!
5414 fi
5415
5416 rm -f conftest.file
5417
5418 test "$program_prefix" != NONE &&
5419   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5420 # Use a double $ so make ignores it.
5421 test "$program_suffix" != NONE &&
5422   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5423 # Double any \ or $.
5424 # By default was `s,x,x', remove it if useless.
5425 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5426 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5427
5428 if test x"${MISSING+set}" != xset; then
5429   case $am_aux_dir in
5430   *\ * | *\     *)
5431     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5432   *)
5433     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5434   esac
5435 fi
5436 # Use eval to expand $SHELL
5437 if eval "$MISSING --is-lightweight"; then
5438   am_missing_run="$MISSING "
5439 else
5440   am_missing_run=
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5442 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5443 fi
5444
5445 if test x"${install_sh+set}" != xset; then
5446   case $am_aux_dir in
5447   *\ * | *\     *)
5448     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5449   *)
5450     install_sh="\${SHELL} $am_aux_dir/install-sh"
5451   esac
5452 fi
5453
5454 # Installed binaries are usually stripped using 'strip' when the user
5455 # run "make install-strip".  However 'strip' might not be the right
5456 # tool to use in cross-compilation environments, therefore Automake
5457 # will honor the 'STRIP' environment variable to overrule this program.
5458 if test "$cross_compiling" != no; then
5459   if test -n "$ac_tool_prefix"; then
5460   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5461 set dummy ${ac_tool_prefix}strip; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_STRIP+:} false; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   if test -n "$STRIP"; then
5468   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475     for ac_exec_ext in '' $ac_executable_extensions; do
5476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482   done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 STRIP=$ac_cv_prog_STRIP
5488 if test -n "$STRIP"; then
5489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5490 $as_echo "$STRIP" >&6; }
5491 else
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496
5497 fi
5498 if test -z "$ac_cv_prog_STRIP"; then
5499   ac_ct_STRIP=$STRIP
5500   # Extract the first word of "strip", so it can be a program name with args.
5501 set dummy strip; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507   if test -n "$ac_ct_STRIP"; then
5508   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513   IFS=$as_save_IFS
5514   test -z "$as_dir" && as_dir=.
5515     for ac_exec_ext in '' $ac_executable_extensions; do
5516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517     ac_cv_prog_ac_ct_STRIP="strip"
5518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519     break 2
5520   fi
5521 done
5522   done
5523 IFS=$as_save_IFS
5524
5525 fi
5526 fi
5527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5528 if test -n "$ac_ct_STRIP"; then
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5530 $as_echo "$ac_ct_STRIP" >&6; }
5531 else
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5534 fi
5535
5536   if test "x$ac_ct_STRIP" = x; then
5537     STRIP=":"
5538   else
5539     case $cross_compiling:$ac_tool_warned in
5540 yes:)
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543 ac_tool_warned=yes ;;
5544 esac
5545     STRIP=$ac_ct_STRIP
5546   fi
5547 else
5548   STRIP="$ac_cv_prog_STRIP"
5549 fi
5550
5551 fi
5552 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5555 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556 if test -z "$MKDIR_P"; then
5557   if ${ac_cv_path_mkdir+:} false; then :
5558   $as_echo_n "(cached) " >&6
5559 else
5560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5562 do
5563   IFS=$as_save_IFS
5564   test -z "$as_dir" && as_dir=.
5565     for ac_prog in mkdir gmkdir; do
5566          for ac_exec_ext in '' $ac_executable_extensions; do
5567            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5568            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5569              'mkdir (GNU coreutils) '* | \
5570              'mkdir (coreutils) '* | \
5571              'mkdir (fileutils) '4.1*)
5572                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5573                break 3;;
5574            esac
5575          done
5576        done
5577   done
5578 IFS=$as_save_IFS
5579
5580 fi
5581
5582   test -d ./--version && rmdir ./--version
5583   if test "${ac_cv_path_mkdir+set}" = set; then
5584     MKDIR_P="$ac_cv_path_mkdir -p"
5585   else
5586     # As a last resort, use the slow shell script.  Don't cache a
5587     # value for MKDIR_P within a source directory, because that will
5588     # break other packages using the cache if that directory is
5589     # removed, or if the value is a relative name.
5590     MKDIR_P="$ac_install_sh -d"
5591   fi
5592 fi
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5594 $as_echo "$MKDIR_P" >&6; }
5595
5596 for ac_prog in gawk mawk nawk awk
5597 do
5598   # Extract the first word of "$ac_prog", so it can be a program name with args.
5599 set dummy $ac_prog; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_AWK+:} false; then :
5603   $as_echo_n "(cached) " >&6
5604 else
5605   if test -n "$AWK"; then
5606   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611   IFS=$as_save_IFS
5612   test -z "$as_dir" && as_dir=.
5613     for ac_exec_ext in '' $ac_executable_extensions; do
5614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615     ac_cv_prog_AWK="$ac_prog"
5616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617     break 2
5618   fi
5619 done
5620   done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 AWK=$ac_cv_prog_AWK
5626 if test -n "$AWK"; then
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5628 $as_echo "$AWK" >&6; }
5629 else
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634
5635   test -n "$AWK" && break
5636 done
5637
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5639 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5640 set x ${MAKE-make}
5641 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5642 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   cat >conftest.make <<\_ACEOF
5646 SHELL = /bin/sh
5647 all:
5648         @echo '@@@%%%=$(MAKE)=@@@%%%'
5649 _ACEOF
5650 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5651 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5652   *@@@%%%=?*=@@@%%%*)
5653     eval ac_cv_prog_make_${ac_make}_set=yes;;
5654   *)
5655     eval ac_cv_prog_make_${ac_make}_set=no;;
5656 esac
5657 rm -f conftest.make
5658 fi
5659 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661 $as_echo "yes" >&6; }
5662   SET_MAKE=
5663 else
5664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666   SET_MAKE="MAKE=${MAKE-make}"
5667 fi
5668
5669 rm -rf .tst 2>/dev/null
5670 mkdir .tst 2>/dev/null
5671 if test -d .tst; then
5672   am__leading_dot=.
5673 else
5674   am__leading_dot=_
5675 fi
5676 rmdir .tst 2>/dev/null
5677
5678 DEPDIR="${am__leading_dot}deps"
5679
5680 ac_config_commands="$ac_config_commands depfiles"
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5683 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5684 cat > confinc.mk << 'END'
5685 am__doit:
5686         @echo this is the am__doit target >confinc.out
5687 .PHONY: am__doit
5688 END
5689 am__include="#"
5690 am__quote=
5691 # BSD make does it like this.
5692 echo '.include "confinc.mk" # ignored' > confmf.BSD
5693 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5694 echo 'include confinc.mk # ignored' > confmf.GNU
5695 _am_result=no
5696 for s in GNU BSD; do
5697   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5698    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5699    ac_status=$?
5700    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701    (exit $ac_status); }
5702   case $?:`cat confinc.out 2>/dev/null` in #(
5703   '0:this is the am__doit target') :
5704     case $s in #(
5705   BSD) :
5706     am__include='.include' am__quote='"' ;; #(
5707   *) :
5708     am__include='include' am__quote='' ;;
5709 esac ;; #(
5710   *) :
5711      ;;
5712 esac
5713   if test "$am__include" != "#"; then
5714     _am_result="yes ($s style)"
5715     break
5716   fi
5717 done
5718 rm -f confinc.* confmf.*
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5720 $as_echo "${_am_result}" >&6; }
5721
5722 # Check whether --enable-dependency-tracking was given.
5723 if test "${enable_dependency_tracking+set}" = set; then :
5724   enableval=$enable_dependency_tracking;
5725 fi
5726
5727 if test "x$enable_dependency_tracking" != xno; then
5728   am_depcomp="$ac_aux_dir/depcomp"
5729   AMDEPBACKSLASH='\'
5730   am__nodep='_no'
5731 fi
5732  if test "x$enable_dependency_tracking" != xno; then
5733   AMDEP_TRUE=
5734   AMDEP_FALSE='#'
5735 else
5736   AMDEP_TRUE='#'
5737   AMDEP_FALSE=
5738 fi
5739
5740
5741 ## --------------------------------------- ##
5742 ##  Start of automake initialization code  ##
5743 ## --------------------------------------- ##
5744
5745 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5746   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5747   # is not polluted with repeated "-I."
5748   am__isrc=' -I$(srcdir)'
5749   # test to see if srcdir already configured
5750   if test -f $srcdir/config.status; then
5751     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5752   fi
5753 fi
5754
5755 # test whether we have cygpath
5756 if test -z "$CYGPATH_W"; then
5757   if (cygpath --version) >/dev/null 2>/dev/null; then
5758     CYGPATH_W='cygpath -w'
5759   else
5760     CYGPATH_W=echo
5761   fi
5762 fi
5763
5764
5765 # Define the identity of the package.
5766  PACKAGE='curl'
5767  VERSION='-'
5768
5769
5770 cat >>confdefs.h <<_ACEOF
5771 #define PACKAGE "$PACKAGE"
5772 _ACEOF
5773
5774
5775 cat >>confdefs.h <<_ACEOF
5776 #define VERSION "$VERSION"
5777 _ACEOF
5778
5779 # Some tools Automake needs.
5780
5781 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5782
5783
5784 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5785
5786
5787 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5788
5789
5790 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5791
5792
5793 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5794
5795 # For better backward compatibility.  To be removed once Automake 1.9.x
5796 # dies out for good.  For more background, see:
5797 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5798 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5799 mkdir_p='$(MKDIR_P)'
5800
5801 # We need awk for the "check" target (and possibly the TAP driver).  The
5802 # system "awk" is bad on some platforms.
5803 # Always define AMTAR for backward compatibility.  Yes, it's still used
5804 # in the wild :-(  We should find a proper way to deprecate it ...
5805 AMTAR='$${TAR-tar}'
5806
5807
5808 # We'll loop over all known methods to create a tar archive until one works.
5809 _am_tools='gnutar  pax cpio none'
5810
5811 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5812
5813
5814
5815
5816
5817 depcc="$CC"   am_compiler_list=
5818
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5820 $as_echo_n "checking dependency style of $depcc... " >&6; }
5821 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5825   # We make a subdir and do the tests there.  Otherwise we can end up
5826   # making bogus files that we don't know about and never remove.  For
5827   # instance it was reported that on HP-UX the gcc test will end up
5828   # making a dummy file named 'D' -- because '-MD' means "put the output
5829   # in D".
5830   rm -rf conftest.dir
5831   mkdir conftest.dir
5832   # Copy depcomp to subdir because otherwise we won't find it if we're
5833   # using a relative directory.
5834   cp "$am_depcomp" conftest.dir
5835   cd conftest.dir
5836   # We will build objects and dependencies in a subdirectory because
5837   # it helps to detect inapplicable dependency modes.  For instance
5838   # both Tru64's cc and ICC support -MD to output dependencies as a
5839   # side effect of compilation, but ICC will put the dependencies in
5840   # the current directory while Tru64 will put them in the object
5841   # directory.
5842   mkdir sub
5843
5844   am_cv_CC_dependencies_compiler_type=none
5845   if test "$am_compiler_list" = ""; then
5846      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5847   fi
5848   am__universal=false
5849   case " $depcc " in #(
5850      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5851      esac
5852
5853   for depmode in $am_compiler_list; do
5854     # Setup a source with many dependencies, because some compilers
5855     # like to wrap large dependency lists on column 80 (with \), and
5856     # we should not choose a depcomp mode which is confused by this.
5857     #
5858     # We need to recreate these files for each test, as the compiler may
5859     # overwrite some of them when testing with obscure command lines.
5860     # This happens at least with the AIX C compiler.
5861     : > sub/conftest.c
5862     for i in 1 2 3 4 5 6; do
5863       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5864       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5865       # Solaris 10 /bin/sh.
5866       echo '/* dummy */' > sub/conftst$i.h
5867     done
5868     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5869
5870     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5871     # mode.  It turns out that the SunPro C++ compiler does not properly
5872     # handle '-M -o', and we need to detect this.  Also, some Intel
5873     # versions had trouble with output in subdirs.
5874     am__obj=sub/conftest.${OBJEXT-o}
5875     am__minus_obj="-o $am__obj"
5876     case $depmode in
5877     gcc)
5878       # This depmode causes a compiler race in universal mode.
5879       test "$am__universal" = false || continue
5880       ;;
5881     nosideeffect)
5882       # After this tag, mechanisms are not by side-effect, so they'll
5883       # only be used when explicitly requested.
5884       if test "x$enable_dependency_tracking" = xyes; then
5885         continue
5886       else
5887         break
5888       fi
5889       ;;
5890     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5891       # This compiler won't grok '-c -o', but also, the minuso test has
5892       # not run yet.  These depmodes are late enough in the game, and
5893       # so weak that their functioning should not be impacted.
5894       am__obj=conftest.${OBJEXT-o}
5895       am__minus_obj=
5896       ;;
5897     none) break ;;
5898     esac
5899     if depmode=$depmode \
5900        source=sub/conftest.c object=$am__obj \
5901        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5902        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5903          >/dev/null 2>conftest.err &&
5904        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5905        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5906        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5907        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5908       # icc doesn't choke on unknown options, it will just issue warnings
5909       # or remarks (even with -Werror).  So we grep stderr for any message
5910       # that says an option was ignored or not supported.
5911       # When given -MP, icc 7.0 and 7.1 complain thusly:
5912       #   icc: Command line warning: ignoring option '-M'; no argument required
5913       # The diagnosis changed in icc 8.0:
5914       #   icc: Command line remark: option '-MP' not supported
5915       if (grep 'ignoring option' conftest.err ||
5916           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5917         am_cv_CC_dependencies_compiler_type=$depmode
5918         break
5919       fi
5920     fi
5921   done
5922
5923   cd ..
5924   rm -rf conftest.dir
5925 else
5926   am_cv_CC_dependencies_compiler_type=none
5927 fi
5928
5929 fi
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5931 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5932 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5933
5934  if
5935   test "x$enable_dependency_tracking" != xno \
5936   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5937   am__fastdepCC_TRUE=
5938   am__fastdepCC_FALSE='#'
5939 else
5940   am__fastdepCC_TRUE='#'
5941   am__fastdepCC_FALSE=
5942 fi
5943
5944
5945
5946 # POSIX will say in a future version that running "rm -f" with no argument
5947 # is OK; and we want to be able to make that assumption in our Makefile
5948 # recipes.  So use an aggressive probe to check that the usage we want is
5949 # actually supported "in the wild" to an acceptable degree.
5950 # See automake bug#10828.
5951 # To make any issue more visible, cause the running configure to be aborted
5952 # by default if the 'rm' program in use doesn't match our expectations; the
5953 # user can still override this though.
5954 if rm -f && rm -fr && rm -rf; then : OK; else
5955   cat >&2 <<'END'
5956 Oops!
5957
5958 Your 'rm' program seems unable to run without file operands specified
5959 on the command line, even when the '-f' option is present.  This is contrary
5960 to the behaviour of most rm programs out there, and not conforming with
5961 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5962
5963 Please tell bug-automake@gnu.org about your system, including the value
5964 of your $PATH and any error possibly output before this message.  This
5965 can help us improve future automake versions.
5966
5967 END
5968   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5969     echo 'Configuration will proceed anyway, since you have set the' >&2
5970     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5971     echo >&2
5972   else
5973     cat >&2 <<'END'
5974 Aborting the configuration process, to ensure you take notice of the issue.
5975
5976 You can download and install GNU coreutils to get an 'rm' implementation
5977 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5978
5979 If you want to complete the configuration process using your problematic
5980 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5981 to "yes", and re-run configure.
5982
5983 END
5984     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5985   fi
5986 fi
5987
5988 ## ------------------------------------- ##
5989 ##  End of automake initialization code  ##
5990 ## ------------------------------------- ##
5991
5992
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5994 $as_echo_n "checking curl version... " >&6; }
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5996 $as_echo "$CURLVERSION" >&6; }
5997
5998
5999
6000 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6001
6002
6003 PKGADD_PKG="HAXXcurl"
6004 PKGADD_NAME="curl - a client that groks URLs"
6005 PKGADD_VENDOR="curl.haxx.se"
6006
6007
6008
6009
6010     curl_ssl_msg="no      (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl,mesalink} )"
6011     curl_ssh_msg="no      (--with-libssh2)"
6012    curl_zlib_msg="no      (--with-zlib)"
6013  curl_brotli_msg="no      (--with-brotli)"
6014     curl_gss_msg="no      (--with-gssapi)"
6015 curl_tls_srp_msg="no      (--enable-tls-srp)"
6016     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6017    curl_ipv6_msg="no      (--enable-ipv6)"
6018 curl_unix_sockets_msg="no      (--enable-unix-sockets)"
6019     curl_idn_msg="no      (--with-{libidn2,winidn})"
6020  curl_manual_msg="no      (--enable-manual)"
6021 curl_libcurl_msg="enabled (--disable-libcurl-option)"
6022 curl_verbose_msg="enabled (--disable-verbose)"
6023    curl_sspi_msg="no      (--enable-sspi)"
6024    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6025   curl_ldaps_msg="no      (--enable-ldaps)"
6026    curl_rtsp_msg="no      (--enable-rtsp)"
6027    curl_rtmp_msg="no      (--with-librtmp)"
6028   curl_mtlnk_msg="no      (--with-libmetalink)"
6029     curl_psl_msg="no      (--with-libpsl)"
6030
6031     ssl_backends=
6032
6033 INITIAL_LDFLAGS=$LDFLAGS
6034 INITIAL_LIBS=$LIBS
6035
6036
6037 # Make sure we can run config.sub.
6038 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6039   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6040
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6042 $as_echo_n "checking build system type... " >&6; }
6043 if ${ac_cv_build+:} false; then :
6044   $as_echo_n "(cached) " >&6
6045 else
6046   ac_build_alias=$build_alias
6047 test "x$ac_build_alias" = x &&
6048   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6049 test "x$ac_build_alias" = x &&
6050   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6052   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6053
6054 fi
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6056 $as_echo "$ac_cv_build" >&6; }
6057 case $ac_cv_build in
6058 *-*-*) ;;
6059 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6060 esac
6061 build=$ac_cv_build
6062 ac_save_IFS=$IFS; IFS='-'
6063 set x $ac_cv_build
6064 shift
6065 build_cpu=$1
6066 build_vendor=$2
6067 shift; shift
6068 # Remember, the first character of IFS is used to create $*,
6069 # except with old shells:
6070 build_os=$*
6071 IFS=$ac_save_IFS
6072 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6073
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6076 $as_echo_n "checking host system type... " >&6; }
6077 if ${ac_cv_host+:} false; then :
6078   $as_echo_n "(cached) " >&6
6079 else
6080   if test "x$host_alias" = x; then
6081   ac_cv_host=$ac_cv_build
6082 else
6083   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6084     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6085 fi
6086
6087 fi
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6089 $as_echo "$ac_cv_host" >&6; }
6090 case $ac_cv_host in
6091 *-*-*) ;;
6092 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6093 esac
6094 host=$ac_cv_host
6095 ac_save_IFS=$IFS; IFS='-'
6096 set x $ac_cv_host
6097 shift
6098 host_cpu=$1
6099 host_vendor=$2
6100 shift; shift
6101 # Remember, the first character of IFS is used to create $*,
6102 # except with old shells:
6103 host_os=$*
6104 IFS=$ac_save_IFS
6105 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6106
6107
6108
6109 cat >>confdefs.h <<_ACEOF
6110 #define OS "${host}"
6111 _ACEOF
6112
6113
6114 # Silence warning: ar: 'u' modifier ignored since 'D' is the default
6115 AR_FLAGS=cr
6116
6117
6118
6119
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6121 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6122 if ${ac_cv_path_GREP+:} false; then :
6123   $as_echo_n "(cached) " >&6
6124 else
6125   if test -z "$GREP"; then
6126   ac_path_GREP_found=false
6127   # Loop through the user's path and test for each of PROGNAME-LIST
6128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6130 do
6131   IFS=$as_save_IFS
6132   test -z "$as_dir" && as_dir=.
6133     for ac_prog in grep ggrep; do
6134     for ac_exec_ext in '' $ac_executable_extensions; do
6135       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6136       as_fn_executable_p "$ac_path_GREP" || continue
6137 # Check for GNU ac_path_GREP and select it if it is found.
6138   # Check for GNU $ac_path_GREP
6139 case `"$ac_path_GREP" --version 2>&1` in
6140 *GNU*)
6141   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6142 *)
6143   ac_count=0
6144   $as_echo_n 0123456789 >"conftest.in"
6145   while :
6146   do
6147     cat "conftest.in" "conftest.in" >"conftest.tmp"
6148     mv "conftest.tmp" "conftest.in"
6149     cp "conftest.in" "conftest.nl"
6150     $as_echo 'GREP' >> "conftest.nl"
6151     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6152     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6153     as_fn_arith $ac_count + 1 && ac_count=$as_val
6154     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6155       # Best one so far, save it but keep looking for a better one
6156       ac_cv_path_GREP="$ac_path_GREP"
6157       ac_path_GREP_max=$ac_count
6158     fi
6159     # 10*(2^10) chars as input seems more than enough
6160     test $ac_count -gt 10 && break
6161   done
6162   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6163 esac
6164
6165       $ac_path_GREP_found && break 3
6166     done
6167   done
6168   done
6169 IFS=$as_save_IFS
6170   if test -z "$ac_cv_path_GREP"; then
6171     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6172   fi
6173 else
6174   ac_cv_path_GREP=$GREP
6175 fi
6176
6177 fi
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6179 $as_echo "$ac_cv_path_GREP" >&6; }
6180  GREP="$ac_cv_path_GREP"
6181
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6184 $as_echo_n "checking for egrep... " >&6; }
6185 if ${ac_cv_path_EGREP+:} false; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6189    then ac_cv_path_EGREP="$GREP -E"
6190    else
6191      if test -z "$EGREP"; then
6192   ac_path_EGREP_found=false
6193   # Loop through the user's path and test for each of PROGNAME-LIST
6194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6196 do
6197   IFS=$as_save_IFS
6198   test -z "$as_dir" && as_dir=.
6199     for ac_prog in egrep; do
6200     for ac_exec_ext in '' $ac_executable_extensions; do
6201       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6202       as_fn_executable_p "$ac_path_EGREP" || continue
6203 # Check for GNU ac_path_EGREP and select it if it is found.
6204   # Check for GNU $ac_path_EGREP
6205 case `"$ac_path_EGREP" --version 2>&1` in
6206 *GNU*)
6207   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6208 *)
6209   ac_count=0
6210   $as_echo_n 0123456789 >"conftest.in"
6211   while :
6212   do
6213     cat "conftest.in" "conftest.in" >"conftest.tmp"
6214     mv "conftest.tmp" "conftest.in"
6215     cp "conftest.in" "conftest.nl"
6216     $as_echo 'EGREP' >> "conftest.nl"
6217     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6218     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6219     as_fn_arith $ac_count + 1 && ac_count=$as_val
6220     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6221       # Best one so far, save it but keep looking for a better one
6222       ac_cv_path_EGREP="$ac_path_EGREP"
6223       ac_path_EGREP_max=$ac_count
6224     fi
6225     # 10*(2^10) chars as input seems more than enough
6226     test $ac_count -gt 10 && break
6227   done
6228   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6229 esac
6230
6231       $ac_path_EGREP_found && break 3
6232     done
6233   done
6234   done
6235 IFS=$as_save_IFS
6236   if test -z "$ac_cv_path_EGREP"; then
6237     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6238   fi
6239 else
6240   ac_cv_path_EGREP=$EGREP
6241 fi
6242
6243    fi
6244 fi
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6246 $as_echo "$ac_cv_path_EGREP" >&6; }
6247  EGREP="$ac_cv_path_EGREP"
6248
6249
6250
6251
6252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6253 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h.  */
6256
6257 #ifdef _AIX
6258    yes_this_is_aix
6259 #endif
6260
6261 _ACEOF
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6264
6265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6266 $as_echo "yes" >&6; }
6267     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6268
6269
6270 else
6271
6272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6274
6275 fi
6276 rm -f conftest*
6277
6278
6279
6280
6281     #
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6283 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h.  */
6286
6287
6288
6289 int main (void)
6290 {
6291
6292 #ifdef _THREAD_SAFE
6293       int dummy=1;
6294 #else
6295       force compilation error
6296 #endif
6297
6298  ;
6299  return 0;
6300 }
6301
6302 _ACEOF
6303 if ac_fn_c_try_compile "$LINENO"; then :
6304
6305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6306 $as_echo "yes" >&6; }
6307     tmp_thread_safe_initially_defined="yes"
6308
6309 else
6310
6311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6313     tmp_thread_safe_initially_defined="no"
6314
6315 fi
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317   #
6318   if test "$tmp_thread_safe_initially_defined" = "no"; then
6319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6320 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6321
6322   case $host_os in
6323     aix[123].* | aix4.[012].*)
6324             tmp_need_thread_safe="no"
6325       ;;
6326     aix*)
6327             tmp_need_thread_safe="yes"
6328       ;;
6329     *)
6330       tmp_need_thread_safe="no"
6331       ;;
6332   esac
6333
6334     if test "$tmp_need_thread_safe" = "yes"; then
6335       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6336 $as_echo "yes" >&6; }
6337     else
6338       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6340     fi
6341   fi
6342   #
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6344 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6345   if test "$tmp_thread_safe_initially_defined" = "yes" ||
6346     test "$tmp_need_thread_safe" = "yes"; then
6347
6348
6349 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6350
6351 cat >>confdefs.h <<_EOF
6352 #ifndef _THREAD_SAFE
6353 #  define _THREAD_SAFE
6354 #endif
6355 _EOF
6356
6357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6358 $as_echo "yes" >&6; }
6359   else
6360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6362   fi
6363   #
6364
6365
6366     #
6367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6368 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h.  */
6371
6372
6373
6374 int main (void)
6375 {
6376
6377 #ifdef _REENTRANT
6378       int dummy=1;
6379 #else
6380       force compilation error
6381 #endif
6382
6383  ;
6384  return 0;
6385 }
6386
6387 _ACEOF
6388 if ac_fn_c_try_compile "$LINENO"; then :
6389
6390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6391 $as_echo "yes" >&6; }
6392     tmp_reentrant_initially_defined="yes"
6393
6394 else
6395
6396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6398     tmp_reentrant_initially_defined="no"
6399
6400 fi
6401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402   #
6403   if test "$tmp_reentrant_initially_defined" = "no"; then
6404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6405 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6406
6407   case $host_os in
6408     solaris*)
6409       tmp_need_reentrant="yes"
6410       ;;
6411     *)
6412       tmp_need_reentrant="no"
6413       ;;
6414   esac
6415
6416     if test "$tmp_need_reentrant" = "no"; then
6417
6418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h.  */
6420
6421
6422 #include <errno.h>
6423
6424 int main (void)
6425 {
6426
6427       if(0 != errno)
6428         return 1;
6429
6430  ;
6431  return 0;
6432 }
6433
6434 _ACEOF
6435 if ac_fn_c_try_compile "$LINENO"; then :
6436
6437     tmp_errno="yes"
6438
6439 else
6440
6441     tmp_errno="no"
6442
6443 fi
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445   if test "$tmp_errno" = "yes"; then
6446     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h.  */
6448
6449
6450 #include <errno.h>
6451
6452 int main (void)
6453 {
6454
6455 #ifdef errno
6456         int dummy=1;
6457 #else
6458         force compilation error
6459 #endif
6460
6461  ;
6462  return 0;
6463 }
6464
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467
6468       tmp_errno="errno_macro_defined"
6469
6470 else
6471
6472       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h.  */
6474
6475
6476 #define _REENTRANT
6477 #include <errno.h>
6478
6479 int main (void)
6480 {
6481
6482 #ifdef errno
6483           int dummy=1;
6484 #else
6485           force compilation error
6486 #endif
6487
6488  ;
6489  return 0;
6490 }
6491
6492 _ACEOF
6493 if ac_fn_c_try_compile "$LINENO"; then :
6494
6495         tmp_errno="errno_macro_needs_reentrant"
6496         tmp_need_reentrant="yes"
6497
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500
6501 fi
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503   fi
6504
6505     fi
6506     if test "$tmp_need_reentrant" = "no"; then
6507
6508   if test "$tmp_need_reentrant" = "no"; then
6509
6510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h.  */
6512
6513
6514 #define gmtime_r innocuous_gmtime_r
6515 #ifdef __STDC__
6516 # include <limits.h>
6517 #else
6518 # include <assert.h>
6519 #endif
6520 #undef gmtime_r
6521 #ifdef __cplusplus
6522 extern "C"
6523 #endif
6524 char gmtime_r ();
6525 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6526 choke me
6527 #endif
6528
6529 int main (void)
6530 {
6531 return gmtime_r ();
6532  ;
6533  return 0;
6534 }
6535
6536 _ACEOF
6537 if ac_fn_c_try_link "$LINENO"; then :
6538
6539     tmp_gmtime_r="yes"
6540
6541 else
6542
6543     tmp_gmtime_r="no"
6544
6545 fi
6546 rm -f core conftest.err conftest.$ac_objext \
6547     conftest$ac_exeext conftest.$ac_ext
6548   if test "$tmp_gmtime_r" = "yes"; then
6549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h.  */
6551
6552 #include <sys/types.h>
6553 #include <time.h>
6554
6555 _ACEOF
6556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6557   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6558
6559       tmp_gmtime_r="proto_declared"
6560
6561 else
6562
6563       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h.  */
6565
6566 #define _REENTRANT
6567 #include <sys/types.h>
6568 #include <time.h>
6569
6570 _ACEOF
6571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6572   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6573
6574         tmp_gmtime_r="proto_needs_reentrant"
6575         tmp_need_reentrant="yes"
6576
6577 fi
6578 rm -f conftest*
6579
6580
6581 fi
6582 rm -f conftest*
6583
6584   fi
6585
6586   fi
6587   if test "$tmp_need_reentrant" = "no"; then
6588
6589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h.  */
6591
6592
6593 #define localtime_r innocuous_localtime_r
6594 #ifdef __STDC__
6595 # include <limits.h>
6596 #else
6597 # include <assert.h>
6598 #endif
6599 #undef localtime_r
6600 #ifdef __cplusplus
6601 extern "C"
6602 #endif
6603 char localtime_r ();
6604 #if defined __stub_localtime_r || defined __stub___localtime_r
6605 choke me
6606 #endif
6607
6608 int main (void)
6609 {
6610 return localtime_r ();
6611  ;
6612  return 0;
6613 }
6614
6615 _ACEOF
6616 if ac_fn_c_try_link "$LINENO"; then :
6617
6618     tmp_localtime_r="yes"
6619
6620 else
6621
6622     tmp_localtime_r="no"
6623
6624 fi
6625 rm -f core conftest.err conftest.$ac_objext \
6626     conftest$ac_exeext conftest.$ac_ext
6627   if test "$tmp_localtime_r" = "yes"; then
6628     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h.  */
6630
6631 #include <sys/types.h>
6632 #include <time.h>
6633
6634 _ACEOF
6635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6636   $EGREP "localtime_r" >/dev/null 2>&1; then :
6637
6638       tmp_localtime_r="proto_declared"
6639
6640 else
6641
6642       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h.  */
6644
6645 #define _REENTRANT
6646 #include <sys/types.h>
6647 #include <time.h>
6648
6649 _ACEOF
6650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651   $EGREP "localtime_r" >/dev/null 2>&1; then :
6652
6653         tmp_localtime_r="proto_needs_reentrant"
6654         tmp_need_reentrant="yes"
6655
6656 fi
6657 rm -f conftest*
6658
6659
6660 fi
6661 rm -f conftest*
6662
6663   fi
6664
6665   fi
6666   if test "$tmp_need_reentrant" = "no"; then
6667
6668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h.  */
6670
6671
6672 #define strerror_r innocuous_strerror_r
6673 #ifdef __STDC__
6674 # include <limits.h>
6675 #else
6676 # include <assert.h>
6677 #endif
6678 #undef strerror_r
6679 #ifdef __cplusplus
6680 extern "C"
6681 #endif
6682 char strerror_r ();
6683 #if defined __stub_strerror_r || defined __stub___strerror_r
6684 choke me
6685 #endif
6686
6687 int main (void)
6688 {
6689 return strerror_r ();
6690  ;
6691  return 0;
6692 }
6693
6694 _ACEOF
6695 if ac_fn_c_try_link "$LINENO"; then :
6696
6697     tmp_strerror_r="yes"
6698
6699 else
6700
6701     tmp_strerror_r="no"
6702
6703 fi
6704 rm -f core conftest.err conftest.$ac_objext \
6705     conftest$ac_exeext conftest.$ac_ext
6706   if test "$tmp_strerror_r" = "yes"; then
6707     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h.  */
6709
6710 #include <sys/types.h>
6711 #include <string.h>
6712
6713 _ACEOF
6714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6715   $EGREP "strerror_r" >/dev/null 2>&1; then :
6716
6717       tmp_strerror_r="proto_declared"
6718
6719 else
6720
6721       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h.  */
6723
6724 #define _REENTRANT
6725 #include <sys/types.h>
6726 #include <string.h>
6727
6728 _ACEOF
6729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6730   $EGREP "strerror_r" >/dev/null 2>&1; then :
6731
6732         tmp_strerror_r="proto_needs_reentrant"
6733         tmp_need_reentrant="yes"
6734
6735 fi
6736 rm -f conftest*
6737
6738
6739 fi
6740 rm -f conftest*
6741
6742   fi
6743
6744   fi
6745   if test "$tmp_need_reentrant" = "no"; then
6746
6747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h.  */
6749
6750
6751 #define strtok_r innocuous_strtok_r
6752 #ifdef __STDC__
6753 # include <limits.h>
6754 #else
6755 # include <assert.h>
6756 #endif
6757 #undef strtok_r
6758 #ifdef __cplusplus
6759 extern "C"
6760 #endif
6761 char strtok_r ();
6762 #if defined __stub_strtok_r || defined __stub___strtok_r
6763 choke me
6764 #endif
6765
6766 int main (void)
6767 {
6768 return strtok_r ();
6769  ;
6770  return 0;
6771 }
6772
6773 _ACEOF
6774 if ac_fn_c_try_link "$LINENO"; then :
6775
6776     tmp_strtok_r="yes"
6777
6778 else
6779
6780     tmp_strtok_r="no"
6781
6782 fi
6783 rm -f core conftest.err conftest.$ac_objext \
6784     conftest$ac_exeext conftest.$ac_ext
6785   if test "$tmp_strtok_r" = "yes"; then
6786     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h.  */
6788
6789 #include <sys/types.h>
6790 #include <string.h>
6791
6792 _ACEOF
6793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6794   $EGREP "strtok_r" >/dev/null 2>&1; then :
6795
6796       tmp_strtok_r="proto_declared"
6797
6798 else
6799
6800       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h.  */
6802
6803 #define _REENTRANT
6804 #include <sys/types.h>
6805 #include <string.h>
6806
6807 _ACEOF
6808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809   $EGREP "strtok_r" >/dev/null 2>&1; then :
6810
6811         tmp_strtok_r="proto_needs_reentrant"
6812         tmp_need_reentrant="yes"
6813
6814 fi
6815 rm -f conftest*
6816
6817
6818 fi
6819 rm -f conftest*
6820
6821   fi
6822
6823   fi
6824   if test "$tmp_need_reentrant" = "no"; then
6825
6826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h.  */
6828
6829
6830 #define inet_ntoa_r innocuous_inet_ntoa_r
6831 #ifdef __STDC__
6832 # include <limits.h>
6833 #else
6834 # include <assert.h>
6835 #endif
6836 #undef inet_ntoa_r
6837 #ifdef __cplusplus
6838 extern "C"
6839 #endif
6840 char inet_ntoa_r ();
6841 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6842 choke me
6843 #endif
6844
6845 int main (void)
6846 {
6847 return inet_ntoa_r ();
6848  ;
6849  return 0;
6850 }
6851
6852 _ACEOF
6853 if ac_fn_c_try_link "$LINENO"; then :
6854
6855     tmp_inet_ntoa_r="yes"
6856
6857 else
6858
6859     tmp_inet_ntoa_r="no"
6860
6861 fi
6862 rm -f core conftest.err conftest.$ac_objext \
6863     conftest$ac_exeext conftest.$ac_ext
6864   if test "$tmp_inet_ntoa_r" = "yes"; then
6865     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h.  */
6867
6868 #include <sys/types.h>
6869 #include <sys/socket.h>
6870 #include <netinet/in.h>
6871 #include <arpa/inet.h>
6872
6873 _ACEOF
6874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6875   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6876
6877       tmp_inet_ntoa_r="proto_declared"
6878
6879 else
6880
6881       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h.  */
6883
6884 #define _REENTRANT
6885 #include <sys/types.h>
6886 #include <sys/socket.h>
6887 #include <netinet/in.h>
6888 #include <arpa/inet.h>
6889
6890 _ACEOF
6891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6892   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6893
6894         tmp_inet_ntoa_r="proto_needs_reentrant"
6895         tmp_need_reentrant="yes"
6896
6897 fi
6898 rm -f conftest*
6899
6900
6901 fi
6902 rm -f conftest*
6903
6904   fi
6905
6906   fi
6907   if test "$tmp_need_reentrant" = "no"; then
6908
6909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h.  */
6911
6912
6913 #define gethostbyaddr_r innocuous_gethostbyaddr_r
6914 #ifdef __STDC__
6915 # include <limits.h>
6916 #else
6917 # include <assert.h>
6918 #endif
6919 #undef gethostbyaddr_r
6920 #ifdef __cplusplus
6921 extern "C"
6922 #endif
6923 char gethostbyaddr_r ();
6924 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6925 choke me
6926 #endif
6927
6928 int main (void)
6929 {
6930 return gethostbyaddr_r ();
6931  ;
6932  return 0;
6933 }
6934
6935 _ACEOF
6936 if ac_fn_c_try_link "$LINENO"; then :
6937
6938     tmp_gethostbyaddr_r="yes"
6939
6940 else
6941
6942     tmp_gethostbyaddr_r="no"
6943
6944 fi
6945 rm -f core conftest.err conftest.$ac_objext \
6946     conftest$ac_exeext conftest.$ac_ext
6947   if test "$tmp_gethostbyaddr_r" = "yes"; then
6948     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h.  */
6950
6951 #include <sys/types.h>
6952 #include <netdb.h>
6953
6954 _ACEOF
6955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6956   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6957
6958       tmp_gethostbyaddr_r="proto_declared"
6959
6960 else
6961
6962       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h.  */
6964
6965 #define _REENTRANT
6966 #include <sys/types.h>
6967 #include <netdb.h>
6968
6969 _ACEOF
6970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6971   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6972
6973         tmp_gethostbyaddr_r="proto_needs_reentrant"
6974         tmp_need_reentrant="yes"
6975
6976 fi
6977 rm -f conftest*
6978
6979
6980 fi
6981 rm -f conftest*
6982
6983   fi
6984
6985   fi
6986   if test "$tmp_need_reentrant" = "no"; then
6987
6988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h.  */
6990
6991
6992 #define gethostbyname_r innocuous_gethostbyname_r
6993 #ifdef __STDC__
6994 # include <limits.h>
6995 #else
6996 # include <assert.h>
6997 #endif
6998 #undef gethostbyname_r
6999 #ifdef __cplusplus
7000 extern "C"
7001 #endif
7002 char gethostbyname_r ();
7003 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7004 choke me
7005 #endif
7006
7007 int main (void)
7008 {
7009 return gethostbyname_r ();
7010  ;
7011  return 0;
7012 }
7013
7014 _ACEOF
7015 if ac_fn_c_try_link "$LINENO"; then :
7016
7017     tmp_gethostbyname_r="yes"
7018
7019 else
7020
7021     tmp_gethostbyname_r="no"
7022
7023 fi
7024 rm -f core conftest.err conftest.$ac_objext \
7025     conftest$ac_exeext conftest.$ac_ext
7026   if test "$tmp_gethostbyname_r" = "yes"; then
7027     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h.  */
7029
7030 #include <sys/types.h>
7031 #include <netdb.h>
7032
7033 _ACEOF
7034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7035   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7036
7037       tmp_gethostbyname_r="proto_declared"
7038
7039 else
7040
7041       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h.  */
7043
7044 #define _REENTRANT
7045 #include <sys/types.h>
7046 #include <netdb.h>
7047
7048 _ACEOF
7049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7050   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7051
7052         tmp_gethostbyname_r="proto_needs_reentrant"
7053         tmp_need_reentrant="yes"
7054
7055 fi
7056 rm -f conftest*
7057
7058
7059 fi
7060 rm -f conftest*
7061
7062   fi
7063
7064   fi
7065   if test "$tmp_need_reentrant" = "no"; then
7066
7067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h.  */
7069
7070
7071 #define getprotobyname_r innocuous_getprotobyname_r
7072 #ifdef __STDC__
7073 # include <limits.h>
7074 #else
7075 # include <assert.h>
7076 #endif
7077 #undef getprotobyname_r
7078 #ifdef __cplusplus
7079 extern "C"
7080 #endif
7081 char getprotobyname_r ();
7082 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7083 choke me
7084 #endif
7085
7086 int main (void)
7087 {
7088 return getprotobyname_r ();
7089  ;
7090  return 0;
7091 }
7092
7093 _ACEOF
7094 if ac_fn_c_try_link "$LINENO"; then :
7095
7096     tmp_getprotobyname_r="yes"
7097
7098 else
7099
7100     tmp_getprotobyname_r="no"
7101
7102 fi
7103 rm -f core conftest.err conftest.$ac_objext \
7104     conftest$ac_exeext conftest.$ac_ext
7105   if test "$tmp_getprotobyname_r" = "yes"; then
7106     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h.  */
7108
7109 #include <sys/types.h>
7110 #include <netdb.h>
7111
7112 _ACEOF
7113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7114   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7115
7116       tmp_getprotobyname_r="proto_declared"
7117
7118 else
7119
7120       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h.  */
7122
7123 #define _REENTRANT
7124 #include <sys/types.h>
7125 #include <netdb.h>
7126
7127 _ACEOF
7128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7129   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7130
7131         tmp_getprotobyname_r="proto_needs_reentrant"
7132         tmp_need_reentrant="yes"
7133
7134 fi
7135 rm -f conftest*
7136
7137
7138 fi
7139 rm -f conftest*
7140
7141   fi
7142
7143   fi
7144   if test "$tmp_need_reentrant" = "no"; then
7145
7146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h.  */
7148
7149
7150 #define getservbyport_r innocuous_getservbyport_r
7151 #ifdef __STDC__
7152 # include <limits.h>
7153 #else
7154 # include <assert.h>
7155 #endif
7156 #undef getservbyport_r
7157 #ifdef __cplusplus
7158 extern "C"
7159 #endif
7160 char getservbyport_r ();
7161 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7162 choke me
7163 #endif
7164
7165 int main (void)
7166 {
7167 return getservbyport_r ();
7168  ;
7169  return 0;
7170 }
7171
7172 _ACEOF
7173 if ac_fn_c_try_link "$LINENO"; then :
7174
7175     tmp_getservbyport_r="yes"
7176
7177 else
7178
7179     tmp_getservbyport_r="no"
7180
7181 fi
7182 rm -f core conftest.err conftest.$ac_objext \
7183     conftest$ac_exeext conftest.$ac_ext
7184   if test "$tmp_getservbyport_r" = "yes"; then
7185     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h.  */
7187
7188 #include <sys/types.h>
7189 #include <netdb.h>
7190
7191 _ACEOF
7192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7193   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7194
7195       tmp_getservbyport_r="proto_declared"
7196
7197 else
7198
7199       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h.  */
7201
7202 #define _REENTRANT
7203 #include <sys/types.h>
7204 #include <netdb.h>
7205
7206 _ACEOF
7207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7209
7210         tmp_getservbyport_r="proto_needs_reentrant"
7211         tmp_need_reentrant="yes"
7212
7213 fi
7214 rm -f conftest*
7215
7216
7217 fi
7218 rm -f conftest*
7219
7220   fi
7221
7222   fi
7223
7224     fi
7225     if test "$tmp_need_reentrant" = "yes"; then
7226       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7227 $as_echo "yes" >&6; }
7228     else
7229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231     fi
7232   fi
7233   #
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7235 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7236   if test "$tmp_reentrant_initially_defined" = "yes" ||
7237     test "$tmp_need_reentrant" = "yes"; then
7238
7239
7240 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7241
7242 cat >>confdefs.h <<_EOF
7243 #ifndef _REENTRANT
7244 #  define _REENTRANT
7245 #endif
7246 _EOF
7247
7248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7249 $as_echo "yes" >&6; }
7250   else
7251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253   fi
7254   #
7255
7256
7257 # Check whether --enable-largefile was given.
7258 if test "${enable_largefile+set}" = set; then :
7259   enableval=$enable_largefile;
7260 fi
7261
7262 if test "$enable_largefile" != no; then
7263
7264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7265 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7266 if ${ac_cv_sys_largefile_CC+:} false; then :
7267   $as_echo_n "(cached) " >&6
7268 else
7269   ac_cv_sys_largefile_CC=no
7270      if test "$GCC" != yes; then
7271        ac_save_CC=$CC
7272        while :; do
7273          # IRIX 6.2 and later do not support large files by default,
7274          # so use the C compiler's -n32 option if that helps.
7275          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h.  */
7277 #include <sys/types.h>
7278  /* Check that off_t can represent 2**63 - 1 correctly.
7279     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7280     since some C++ compilers masquerading as C compilers
7281     incorrectly reject 9223372036854775807.  */
7282 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7283   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7284                        && LARGE_OFF_T % 2147483647 == 1)
7285                       ? 1 : -1];
7286 int main (void)
7287 {
7288
7289  ;
7290  return 0;
7291 }
7292 _ACEOF
7293          if ac_fn_c_try_compile "$LINENO"; then :
7294   break
7295 fi
7296 rm -f core conftest.err conftest.$ac_objext
7297          CC="$CC -n32"
7298          if ac_fn_c_try_compile "$LINENO"; then :
7299   ac_cv_sys_largefile_CC=' -n32'; break
7300 fi
7301 rm -f core conftest.err conftest.$ac_objext
7302          break
7303        done
7304        CC=$ac_save_CC
7305        rm -f conftest.$ac_ext
7306     fi
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7309 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7310   if test "$ac_cv_sys_largefile_CC" != no; then
7311     CC=$CC$ac_cv_sys_largefile_CC
7312   fi
7313
7314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7315 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7316 if ${ac_cv_sys_file_offset_bits+:} false; then :
7317   $as_echo_n "(cached) " >&6
7318 else
7319   while :; do
7320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h.  */
7322 #include <sys/types.h>
7323  /* Check that off_t can represent 2**63 - 1 correctly.
7324     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7325     since some C++ compilers masquerading as C compilers
7326     incorrectly reject 9223372036854775807.  */
7327 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7328   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7329                        && LARGE_OFF_T % 2147483647 == 1)
7330                       ? 1 : -1];
7331 int main (void)
7332 {
7333
7334  ;
7335  return 0;
7336 }
7337 _ACEOF
7338 if ac_fn_c_try_compile "$LINENO"; then :
7339   ac_cv_sys_file_offset_bits=no; break
7340 fi
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h.  */
7344 #define _FILE_OFFSET_BITS 64
7345 #include <sys/types.h>
7346  /* Check that off_t can represent 2**63 - 1 correctly.
7347     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7348     since some C++ compilers masquerading as C compilers
7349     incorrectly reject 9223372036854775807.  */
7350 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7351   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7352                        && LARGE_OFF_T % 2147483647 == 1)
7353                       ? 1 : -1];
7354 int main (void)
7355 {
7356
7357  ;
7358  return 0;
7359 }
7360 _ACEOF
7361 if ac_fn_c_try_compile "$LINENO"; then :
7362   ac_cv_sys_file_offset_bits=64; break
7363 fi
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365   ac_cv_sys_file_offset_bits=unknown
7366   break
7367 done
7368 fi
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7370 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7371 case $ac_cv_sys_file_offset_bits in #(
7372   no | unknown) ;;
7373   *)
7374 cat >>confdefs.h <<_ACEOF
7375 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7376 _ACEOF
7377 ;;
7378 esac
7379 rm -rf conftest*
7380   if test $ac_cv_sys_file_offset_bits = unknown; then
7381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7382 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7383 if ${ac_cv_sys_large_files+:} false; then :
7384   $as_echo_n "(cached) " >&6
7385 else
7386   while :; do
7387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h.  */
7389 #include <sys/types.h>
7390  /* Check that off_t can represent 2**63 - 1 correctly.
7391     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7392     since some C++ compilers masquerading as C compilers
7393     incorrectly reject 9223372036854775807.  */
7394 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7395   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7396                        && LARGE_OFF_T % 2147483647 == 1)
7397                       ? 1 : -1];
7398 int main (void)
7399 {
7400
7401  ;
7402  return 0;
7403 }
7404 _ACEOF
7405 if ac_fn_c_try_compile "$LINENO"; then :
7406   ac_cv_sys_large_files=no; break
7407 fi
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h.  */
7411 #define _LARGE_FILES 1
7412 #include <sys/types.h>
7413  /* Check that off_t can represent 2**63 - 1 correctly.
7414     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7415     since some C++ compilers masquerading as C compilers
7416     incorrectly reject 9223372036854775807.  */
7417 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7418   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7419                        && LARGE_OFF_T % 2147483647 == 1)
7420                       ? 1 : -1];
7421 int main (void)
7422 {
7423
7424  ;
7425  return 0;
7426 }
7427 _ACEOF
7428 if ac_fn_c_try_compile "$LINENO"; then :
7429   ac_cv_sys_large_files=1; break
7430 fi
7431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432   ac_cv_sys_large_files=unknown
7433   break
7434 done
7435 fi
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7437 $as_echo "$ac_cv_sys_large_files" >&6; }
7438 case $ac_cv_sys_large_files in #(
7439   no | unknown) ;;
7440   *)
7441 cat >>confdefs.h <<_ACEOF
7442 #define _LARGE_FILES $ac_cv_sys_large_files
7443 _ACEOF
7444 ;;
7445 esac
7446 rm -rf conftest*
7447   fi
7448
7449
7450 fi
7451
7452
7453 case `pwd` in
7454   *\ * | *\     *)
7455     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7456 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7457 esac
7458
7459
7460
7461 macro_version='2.4.6'
7462 macro_revision='2.4.6'
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476 ltmain=$ac_aux_dir/ltmain.sh
7477
7478 # Backslashify metacharacters that are still active within
7479 # double-quoted strings.
7480 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7481
7482 # Same as above, but do not quote variable references.
7483 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7484
7485 # Sed substitution to delay expansion of an escaped shell variable in a
7486 # double_quote_subst'ed string.
7487 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7488
7489 # Sed substitution to delay expansion of an escaped single quote.
7490 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7491
7492 # Sed substitution to avoid accidental globbing in evaled expressions
7493 no_glob_subst='s/\*/\\\*/g'
7494
7495 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7496 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7497 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7498
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7500 $as_echo_n "checking how to print strings... " >&6; }
7501 # Test print first, because it will be a builtin if present.
7502 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7503    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7504   ECHO='print -r --'
7505 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7506   ECHO='printf %s\n'
7507 else
7508   # Use this function as a fallback that always works.
7509   func_fallback_echo ()
7510   {
7511     eval 'cat <<_LTECHO_EOF
7512 $1
7513 _LTECHO_EOF'
7514   }
7515   ECHO='func_fallback_echo'
7516 fi
7517
7518 # func_echo_all arg...
7519 # Invoke $ECHO with all args, space-separated.
7520 func_echo_all ()
7521 {
7522     $ECHO ""
7523 }
7524
7525 case $ECHO in
7526   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7527 $as_echo "printf" >&6; } ;;
7528   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7529 $as_echo "print -r" >&6; } ;;
7530   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7531 $as_echo "cat" >&6; } ;;
7532 esac
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7548 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7549 if ${ac_cv_path_SED+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7553      for ac_i in 1 2 3 4 5 6 7; do
7554        ac_script="$ac_script$as_nl$ac_script"
7555      done
7556      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7557      { ac_script=; unset ac_script;}
7558      if test -z "$SED"; then
7559   ac_path_SED_found=false
7560   # Loop through the user's path and test for each of PROGNAME-LIST
7561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564   IFS=$as_save_IFS
7565   test -z "$as_dir" && as_dir=.
7566     for ac_prog in sed gsed; do
7567     for ac_exec_ext in '' $ac_executable_extensions; do
7568       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7569       as_fn_executable_p "$ac_path_SED" || continue
7570 # Check for GNU ac_path_SED and select it if it is found.
7571   # Check for GNU $ac_path_SED
7572 case `"$ac_path_SED" --version 2>&1` in
7573 *GNU*)
7574   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7575 *)
7576   ac_count=0
7577   $as_echo_n 0123456789 >"conftest.in"
7578   while :
7579   do
7580     cat "conftest.in" "conftest.in" >"conftest.tmp"
7581     mv "conftest.tmp" "conftest.in"
7582     cp "conftest.in" "conftest.nl"
7583     $as_echo '' >> "conftest.nl"
7584     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7585     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7586     as_fn_arith $ac_count + 1 && ac_count=$as_val
7587     if test $ac_count -gt ${ac_path_SED_max-0}; then
7588       # Best one so far, save it but keep looking for a better one
7589       ac_cv_path_SED="$ac_path_SED"
7590       ac_path_SED_max=$ac_count
7591     fi
7592     # 10*(2^10) chars as input seems more than enough
7593     test $ac_count -gt 10 && break
7594   done
7595   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7596 esac
7597
7598       $ac_path_SED_found && break 3
7599     done
7600   done
7601   done
7602 IFS=$as_save_IFS
7603   if test -z "$ac_cv_path_SED"; then
7604     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7605   fi
7606 else
7607   ac_cv_path_SED=$SED
7608 fi
7609
7610 fi
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7612 $as_echo "$ac_cv_path_SED" >&6; }
7613  SED="$ac_cv_path_SED"
7614   rm -f conftest.sed
7615
7616 test -z "$SED" && SED=sed
7617 Xsed="$SED -e 1s/^X//"
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7630 $as_echo_n "checking for fgrep... " >&6; }
7631 if ${ac_cv_path_FGREP+:} false; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7635    then ac_cv_path_FGREP="$GREP -F"
7636    else
7637      if test -z "$FGREP"; then
7638   ac_path_FGREP_found=false
7639   # Loop through the user's path and test for each of PROGNAME-LIST
7640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7642 do
7643   IFS=$as_save_IFS
7644   test -z "$as_dir" && as_dir=.
7645     for ac_prog in fgrep; do
7646     for ac_exec_ext in '' $ac_executable_extensions; do
7647       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7648       as_fn_executable_p "$ac_path_FGREP" || continue
7649 # Check for GNU ac_path_FGREP and select it if it is found.
7650   # Check for GNU $ac_path_FGREP
7651 case `"$ac_path_FGREP" --version 2>&1` in
7652 *GNU*)
7653   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7654 *)
7655   ac_count=0
7656   $as_echo_n 0123456789 >"conftest.in"
7657   while :
7658   do
7659     cat "conftest.in" "conftest.in" >"conftest.tmp"
7660     mv "conftest.tmp" "conftest.in"
7661     cp "conftest.in" "conftest.nl"
7662     $as_echo 'FGREP' >> "conftest.nl"
7663     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7664     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7665     as_fn_arith $ac_count + 1 && ac_count=$as_val
7666     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7667       # Best one so far, save it but keep looking for a better one
7668       ac_cv_path_FGREP="$ac_path_FGREP"
7669       ac_path_FGREP_max=$ac_count
7670     fi
7671     # 10*(2^10) chars as input seems more than enough
7672     test $ac_count -gt 10 && break
7673   done
7674   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7675 esac
7676
7677       $ac_path_FGREP_found && break 3
7678     done
7679   done
7680   done
7681 IFS=$as_save_IFS
7682   if test -z "$ac_cv_path_FGREP"; then
7683     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7684   fi
7685 else
7686   ac_cv_path_FGREP=$FGREP
7687 fi
7688
7689    fi
7690 fi
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7692 $as_echo "$ac_cv_path_FGREP" >&6; }
7693  FGREP="$ac_cv_path_FGREP"
7694
7695
7696 test -z "$GREP" && GREP=grep
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716 # Check whether --with-gnu-ld was given.
7717 if test "${with_gnu_ld+set}" = set; then :
7718   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7719 else
7720   with_gnu_ld=no
7721 fi
7722
7723 ac_prog=ld
7724 if test yes = "$GCC"; then
7725   # Check if gcc -print-prog-name=ld gives a path.
7726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7727 $as_echo_n "checking for ld used by $CC... " >&6; }
7728   case $host in
7729   *-*-mingw*)
7730     # gcc leaves a trailing carriage return, which upsets mingw
7731     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7732   *)
7733     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7734   esac
7735   case $ac_prog in
7736     # Accept absolute paths.
7737     [\\/]* | ?:[\\/]*)
7738       re_direlt='/[^/][^/]*/\.\./'
7739       # Canonicalize the pathname of ld
7740       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7741       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7742         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7743       done
7744       test -z "$LD" && LD=$ac_prog
7745       ;;
7746   "")
7747     # If it fails, then pretend we aren't using GCC.
7748     ac_prog=ld
7749     ;;
7750   *)
7751     # If it is relative, then search for the first ld in PATH.
7752     with_gnu_ld=unknown
7753     ;;
7754   esac
7755 elif test yes = "$with_gnu_ld"; then
7756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7757 $as_echo_n "checking for GNU ld... " >&6; }
7758 else
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7760 $as_echo_n "checking for non-GNU ld... " >&6; }
7761 fi
7762 if ${lt_cv_path_LD+:} false; then :
7763   $as_echo_n "(cached) " >&6
7764 else
7765   if test -z "$LD"; then
7766   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7767   for ac_dir in $PATH; do
7768     IFS=$lt_save_ifs
7769     test -z "$ac_dir" && ac_dir=.
7770     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7771       lt_cv_path_LD=$ac_dir/$ac_prog
7772       # Check to see if the program is GNU ld.  I'd rather use --version,
7773       # but apparently some variants of GNU ld only accept -v.
7774       # Break only if it was the GNU/non-GNU ld that we prefer.
7775       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7776       *GNU* | *'with BFD'*)
7777         test no != "$with_gnu_ld" && break
7778         ;;
7779       *)
7780         test yes != "$with_gnu_ld" && break
7781         ;;
7782       esac
7783     fi
7784   done
7785   IFS=$lt_save_ifs
7786 else
7787   lt_cv_path_LD=$LD # Let the user override the test with a path.
7788 fi
7789 fi
7790
7791 LD=$lt_cv_path_LD
7792 if test -n "$LD"; then
7793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7794 $as_echo "$LD" >&6; }
7795 else
7796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 fi
7799 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7801 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7802 if ${lt_cv_prog_gnu_ld+:} false; then :
7803   $as_echo_n "(cached) " >&6
7804 else
7805   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7806 case `$LD -v 2>&1 </dev/null` in
7807 *GNU* | *'with BFD'*)
7808   lt_cv_prog_gnu_ld=yes
7809   ;;
7810 *)
7811   lt_cv_prog_gnu_ld=no
7812   ;;
7813 esac
7814 fi
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7816 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7817 with_gnu_ld=$lt_cv_prog_gnu_ld
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7828 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7829 if ${lt_cv_path_NM+:} false; then :
7830   $as_echo_n "(cached) " >&6
7831 else
7832   if test -n "$NM"; then
7833   # Let the user override the test.
7834   lt_cv_path_NM=$NM
7835 else
7836   lt_nm_to_check=${ac_tool_prefix}nm
7837   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7838     lt_nm_to_check="$lt_nm_to_check nm"
7839   fi
7840   for lt_tmp_nm in $lt_nm_to_check; do
7841     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7842     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7843       IFS=$lt_save_ifs
7844       test -z "$ac_dir" && ac_dir=.
7845       tmp_nm=$ac_dir/$lt_tmp_nm
7846       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7847         # Check to see if the nm accepts a BSD-compat flag.
7848         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7849         #   nm: unknown option "B" ignored
7850         # Tru64's nm complains that /dev/null is an invalid object file
7851         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7852         case $build_os in
7853         mingw*) lt_bad_file=conftest.nm/nofile ;;
7854         *) lt_bad_file=/dev/null ;;
7855         esac
7856         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7857         *$lt_bad_file* | *'Invalid file or object type'*)
7858           lt_cv_path_NM="$tmp_nm -B"
7859           break 2
7860           ;;
7861         *)
7862           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7863           */dev/null*)
7864             lt_cv_path_NM="$tmp_nm -p"
7865             break 2
7866             ;;
7867           *)
7868             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7869             continue # so that we can try to find one that supports BSD flags
7870             ;;
7871           esac
7872           ;;
7873         esac
7874       fi
7875     done
7876     IFS=$lt_save_ifs
7877   done
7878   : ${lt_cv_path_NM=no}
7879 fi
7880 fi
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7882 $as_echo "$lt_cv_path_NM" >&6; }
7883 if test no != "$lt_cv_path_NM"; then
7884   NM=$lt_cv_path_NM
7885 else
7886   # Didn't find any BSD compatible name lister, look for dumpbin.
7887   if test -n "$DUMPBIN"; then :
7888     # Let the user override the test.
7889   else
7890     if test -n "$ac_tool_prefix"; then
7891   for ac_prog in dumpbin "link -dump"
7892   do
7893     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if ${ac_cv_prog_DUMPBIN+:} false; then :
7898   $as_echo_n "(cached) " >&6
7899 else
7900   if test -n "$DUMPBIN"; then
7901   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906   IFS=$as_save_IFS
7907   test -z "$as_dir" && as_dir=.
7908     for ac_exec_ext in '' $ac_executable_extensions; do
7909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912     break 2
7913   fi
7914 done
7915   done
7916 IFS=$as_save_IFS
7917
7918 fi
7919 fi
7920 DUMPBIN=$ac_cv_prog_DUMPBIN
7921 if test -n "$DUMPBIN"; then
7922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7923 $as_echo "$DUMPBIN" >&6; }
7924 else
7925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7927 fi
7928
7929
7930     test -n "$DUMPBIN" && break
7931   done
7932 fi
7933 if test -z "$DUMPBIN"; then
7934   ac_ct_DUMPBIN=$DUMPBIN
7935   for ac_prog in dumpbin "link -dump"
7936 do
7937   # Extract the first word of "$ac_prog", so it can be a program name with args.
7938 set dummy $ac_prog; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7942   $as_echo_n "(cached) " >&6
7943 else
7944   if test -n "$ac_ct_DUMPBIN"; then
7945   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950   IFS=$as_save_IFS
7951   test -z "$as_dir" && as_dir=.
7952     for ac_exec_ext in '' $ac_executable_extensions; do
7953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956     break 2
7957   fi
7958 done
7959   done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7965 if test -n "$ac_ct_DUMPBIN"; then
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7967 $as_echo "$ac_ct_DUMPBIN" >&6; }
7968 else
7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973
7974   test -n "$ac_ct_DUMPBIN" && break
7975 done
7976
7977   if test "x$ac_ct_DUMPBIN" = x; then
7978     DUMPBIN=":"
7979   else
7980     case $cross_compiling:$ac_tool_warned in
7981 yes:)
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7984 ac_tool_warned=yes ;;
7985 esac
7986     DUMPBIN=$ac_ct_DUMPBIN
7987   fi
7988 fi
7989
7990     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7991     *COFF*)
7992       DUMPBIN="$DUMPBIN -symbols -headers"
7993       ;;
7994     *)
7995       DUMPBIN=:
7996       ;;
7997     esac
7998   fi
7999
8000   if test : != "$DUMPBIN"; then
8001     NM=$DUMPBIN
8002   fi
8003 fi
8004 test -z "$NM" && NM=nm
8005
8006
8007
8008
8009
8010
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8012 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8013 if ${lt_cv_nm_interface+:} false; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016   lt_cv_nm_interface="BSD nm"
8017   echo "int some_variable = 0;" > conftest.$ac_ext
8018   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8019   (eval "$ac_compile" 2>conftest.err)
8020   cat conftest.err >&5
8021   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8022   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8023   cat conftest.err >&5
8024   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8025   cat conftest.out >&5
8026   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8027     lt_cv_nm_interface="MS dumpbin"
8028   fi
8029   rm -f conftest*
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8032 $as_echo "$lt_cv_nm_interface" >&6; }
8033
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8035 $as_echo_n "checking whether ln -s works... " >&6; }
8036 LN_S=$as_ln_s
8037 if test "$LN_S" = "ln -s"; then
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8039 $as_echo "yes" >&6; }
8040 else
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8042 $as_echo "no, using $LN_S" >&6; }
8043 fi
8044
8045 # find the maximum length of command line arguments
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8047 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8048 if ${lt_cv_sys_max_cmd_len+:} false; then :
8049   $as_echo_n "(cached) " >&6
8050 else
8051     i=0
8052   teststring=ABCD
8053
8054   case $build_os in
8055   msdosdjgpp*)
8056     # On DJGPP, this test can blow up pretty badly due to problems in libc
8057     # (any single argument exceeding 2000 bytes causes a buffer overrun
8058     # during glob expansion).  Even if it were fixed, the result of this
8059     # check would be larger than it should be.
8060     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8061     ;;
8062
8063   gnu*)
8064     # Under GNU Hurd, this test is not required because there is
8065     # no limit to the length of command line arguments.
8066     # Libtool will interpret -1 as no limit whatsoever
8067     lt_cv_sys_max_cmd_len=-1;
8068     ;;
8069
8070   cygwin* | mingw* | cegcc*)
8071     # On Win9x/ME, this test blows up -- it succeeds, but takes
8072     # about 5 minutes as the teststring grows exponentially.
8073     # Worse, since 9x/ME are not pre-emptively multitasking,
8074     # you end up with a "frozen" computer, even though with patience
8075     # the test eventually succeeds (with a max line length of 256k).
8076     # Instead, let's just punt: use the minimum linelength reported by
8077     # all of the supported platforms: 8192 (on NT/2K/XP).
8078     lt_cv_sys_max_cmd_len=8192;
8079     ;;
8080
8081   mint*)
8082     # On MiNT this can take a long time and run out of memory.
8083     lt_cv_sys_max_cmd_len=8192;
8084     ;;
8085
8086   amigaos*)
8087     # On AmigaOS with pdksh, this test takes hours, literally.
8088     # So we just punt and use a minimum line length of 8192.
8089     lt_cv_sys_max_cmd_len=8192;
8090     ;;
8091
8092   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8093     # This has been around since 386BSD, at least.  Likely further.
8094     if test -x /sbin/sysctl; then
8095       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8096     elif test -x /usr/sbin/sysctl; then
8097       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8098     else
8099       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8100     fi
8101     # And add a safety zone
8102     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8103     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8104     ;;
8105
8106   interix*)
8107     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8108     lt_cv_sys_max_cmd_len=196608
8109     ;;
8110
8111   os2*)
8112     # The test takes a long time on OS/2.
8113     lt_cv_sys_max_cmd_len=8192
8114     ;;
8115
8116   osf*)
8117     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8118     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8119     # nice to cause kernel panics so lets avoid the loop below.
8120     # First set a reasonable default.
8121     lt_cv_sys_max_cmd_len=16384
8122     #
8123     if test -x /sbin/sysconfig; then
8124       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8125         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8126       esac
8127     fi
8128     ;;
8129   sco3.2v5*)
8130     lt_cv_sys_max_cmd_len=102400
8131     ;;
8132   sysv5* | sco5v6* | sysv4.2uw2*)
8133     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8134     if test -n "$kargmax"; then
8135       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8136     else
8137       lt_cv_sys_max_cmd_len=32768
8138     fi
8139     ;;
8140   *)
8141     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8142     if test -n "$lt_cv_sys_max_cmd_len" && \
8143        test undefined != "$lt_cv_sys_max_cmd_len"; then
8144       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8145       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8146     else
8147       # Make teststring a little bigger before we do anything with it.
8148       # a 1K string should be a reasonable start.
8149       for i in 1 2 3 4 5 6 7 8; do
8150         teststring=$teststring$teststring
8151       done
8152       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8153       # If test is not a shell built-in, we'll probably end up computing a
8154       # maximum length that is only half of the actual maximum length, but
8155       # we can't tell.
8156       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8157                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8158               test 17 != "$i" # 1/2 MB should be enough
8159       do
8160         i=`expr $i + 1`
8161         teststring=$teststring$teststring
8162       done
8163       # Only check the string length outside the loop.
8164       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8165       teststring=
8166       # Add a significant safety factor because C++ compilers can tack on
8167       # massive amounts of additional arguments before passing them to the
8168       # linker.  It appears as though 1/2 is a usable value.
8169       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8170     fi
8171     ;;
8172   esac
8173
8174 fi
8175
8176 if test -n "$lt_cv_sys_max_cmd_len"; then
8177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8178 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8179 else
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8181 $as_echo "none" >&6; }
8182 fi
8183 max_cmd_len=$lt_cv_sys_max_cmd_len
8184
8185
8186
8187
8188
8189
8190 : ${CP="cp -f"}
8191 : ${MV="mv -f"}
8192 : ${RM="rm -f"}
8193
8194 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8195   lt_unset=unset
8196 else
8197   lt_unset=false
8198 fi
8199
8200
8201
8202
8203
8204 # test EBCDIC or ASCII
8205 case `echo X|tr X '\101'` in
8206  A) # ASCII based system
8207     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8208   lt_SP2NL='tr \040 \012'
8209   lt_NL2SP='tr \015\012 \040\040'
8210   ;;
8211  *) # EBCDIC based system
8212   lt_SP2NL='tr \100 \n'
8213   lt_NL2SP='tr \r\n \100\100'
8214   ;;
8215 esac
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8226 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8227 if ${lt_cv_to_host_file_cmd+:} false; then :
8228   $as_echo_n "(cached) " >&6
8229 else
8230   case $host in
8231   *-*-mingw* )
8232     case $build in
8233       *-*-mingw* ) # actually msys
8234         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8235         ;;
8236       *-*-cygwin* )
8237         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8238         ;;
8239       * ) # otherwise, assume *nix
8240         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8241         ;;
8242     esac
8243     ;;
8244   *-*-cygwin* )
8245     case $build in
8246       *-*-mingw* ) # actually msys
8247         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8248         ;;
8249       *-*-cygwin* )
8250         lt_cv_to_host_file_cmd=func_convert_file_noop
8251         ;;
8252       * ) # otherwise, assume *nix
8253         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8254         ;;
8255     esac
8256     ;;
8257   * ) # unhandled hosts (and "normal" native builds)
8258     lt_cv_to_host_file_cmd=func_convert_file_noop
8259     ;;
8260 esac
8261
8262 fi
8263
8264 to_host_file_cmd=$lt_cv_to_host_file_cmd
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8266 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8267
8268
8269
8270
8271
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8273 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8274 if ${lt_cv_to_tool_file_cmd+:} false; then :
8275   $as_echo_n "(cached) " >&6
8276 else
8277   #assume ordinary cross tools, or native build.
8278 lt_cv_to_tool_file_cmd=func_convert_file_noop
8279 case $host in
8280   *-*-mingw* )
8281     case $build in
8282       *-*-mingw* ) # actually msys
8283         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8284         ;;
8285     esac
8286     ;;
8287 esac
8288
8289 fi
8290
8291 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8293 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8294
8295
8296
8297
8298
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8300 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8301 if ${lt_cv_ld_reload_flag+:} false; then :
8302   $as_echo_n "(cached) " >&6
8303 else
8304   lt_cv_ld_reload_flag='-r'
8305 fi
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8307 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8308 reload_flag=$lt_cv_ld_reload_flag
8309 case $reload_flag in
8310 "" | " "*) ;;
8311 *) reload_flag=" $reload_flag" ;;
8312 esac
8313 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8314 case $host_os in
8315   cygwin* | mingw* | pw32* | cegcc*)
8316     if test yes != "$GCC"; then
8317       reload_cmds=false
8318     fi
8319     ;;
8320   darwin*)
8321     if test yes = "$GCC"; then
8322       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8323     else
8324       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8325     fi
8326     ;;
8327 esac
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337 if test -n "$ac_tool_prefix"; then
8338   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8339 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 $as_echo_n "checking for $ac_word... " >&6; }
8342 if ${ac_cv_prog_OBJDUMP+:} false; then :
8343   $as_echo_n "(cached) " >&6
8344 else
8345   if test -n "$OBJDUMP"; then
8346   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8347 else
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8350 do
8351   IFS=$as_save_IFS
8352   test -z "$as_dir" && as_dir=.
8353     for ac_exec_ext in '' $ac_executable_extensions; do
8354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8355     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357     break 2
8358   fi
8359 done
8360   done
8361 IFS=$as_save_IFS
8362
8363 fi
8364 fi
8365 OBJDUMP=$ac_cv_prog_OBJDUMP
8366 if test -n "$OBJDUMP"; then
8367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8368 $as_echo "$OBJDUMP" >&6; }
8369 else
8370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8372 fi
8373
8374
8375 fi
8376 if test -z "$ac_cv_prog_OBJDUMP"; then
8377   ac_ct_OBJDUMP=$OBJDUMP
8378   # Extract the first word of "objdump", so it can be a program name with args.
8379 set dummy objdump; ac_word=$2
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 $as_echo_n "checking for $ac_word... " >&6; }
8382 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8383   $as_echo_n "(cached) " >&6
8384 else
8385   if test -n "$ac_ct_OBJDUMP"; then
8386   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8387 else
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 for as_dir in $PATH
8390 do
8391   IFS=$as_save_IFS
8392   test -z "$as_dir" && as_dir=.
8393     for ac_exec_ext in '' $ac_executable_extensions; do
8394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8395     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397     break 2
8398   fi
8399 done
8400   done
8401 IFS=$as_save_IFS
8402
8403 fi
8404 fi
8405 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8406 if test -n "$ac_ct_OBJDUMP"; then
8407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8408 $as_echo "$ac_ct_OBJDUMP" >&6; }
8409 else
8410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8412 fi
8413
8414   if test "x$ac_ct_OBJDUMP" = x; then
8415     OBJDUMP="false"
8416   else
8417     case $cross_compiling:$ac_tool_warned in
8418 yes:)
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8421 ac_tool_warned=yes ;;
8422 esac
8423     OBJDUMP=$ac_ct_OBJDUMP
8424   fi
8425 else
8426   OBJDUMP="$ac_cv_prog_OBJDUMP"
8427 fi
8428
8429 test -z "$OBJDUMP" && OBJDUMP=objdump
8430
8431
8432
8433
8434
8435
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8437 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8438 if ${lt_cv_deplibs_check_method+:} false; then :
8439   $as_echo_n "(cached) " >&6
8440 else
8441   lt_cv_file_magic_cmd='$MAGIC_CMD'
8442 lt_cv_file_magic_test_file=
8443 lt_cv_deplibs_check_method='unknown'
8444 # Need to set the preceding variable on all platforms that support
8445 # interlibrary dependencies.
8446 # 'none' -- dependencies not supported.
8447 # 'unknown' -- same as none, but documents that we really don't know.
8448 # 'pass_all' -- all dependencies passed with no checks.
8449 # 'test_compile' -- check by making test program.
8450 # 'file_magic [[regex]]' -- check by looking for files in library path
8451 # that responds to the $file_magic_cmd with a given extended regex.
8452 # If you have 'file' or equivalent on your system and you're not sure
8453 # whether 'pass_all' will *always* work, you probably want this one.
8454
8455 case $host_os in
8456 aix[4-9]*)
8457   lt_cv_deplibs_check_method=pass_all
8458   ;;
8459
8460 beos*)
8461   lt_cv_deplibs_check_method=pass_all
8462   ;;
8463
8464 bsdi[45]*)
8465   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8466   lt_cv_file_magic_cmd='/usr/bin/file -L'
8467   lt_cv_file_magic_test_file=/shlib/libc.so
8468   ;;
8469
8470 cygwin*)
8471   # func_win32_libid is a shell function defined in ltmain.sh
8472   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8473   lt_cv_file_magic_cmd='func_win32_libid'
8474   ;;
8475
8476 mingw* | pw32*)
8477   # Base MSYS/MinGW do not provide the 'file' command needed by
8478   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8479   # unless we find 'file', for example because we are cross-compiling.
8480   if ( file / ) >/dev/null 2>&1; then
8481     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8482     lt_cv_file_magic_cmd='func_win32_libid'
8483   else
8484     # Keep this pattern in sync with the one in func_win32_libid.
8485     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8486     lt_cv_file_magic_cmd='$OBJDUMP -f'
8487   fi
8488   ;;
8489
8490 cegcc*)
8491   # use the weaker test based on 'objdump'. See mingw*.
8492   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8493   lt_cv_file_magic_cmd='$OBJDUMP -f'
8494   ;;
8495
8496 darwin* | rhapsody*)
8497   lt_cv_deplibs_check_method=pass_all
8498   ;;
8499
8500 freebsd* | dragonfly*)
8501   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8502     case $host_cpu in
8503     i*86 )
8504       # Not sure whether the presence of OpenBSD here was a mistake.
8505       # Let's accept both of them until this is cleared up.
8506       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8507       lt_cv_file_magic_cmd=/usr/bin/file
8508       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8509       ;;
8510     esac
8511   else
8512     lt_cv_deplibs_check_method=pass_all
8513   fi
8514   ;;
8515
8516 haiku*)
8517   lt_cv_deplibs_check_method=pass_all
8518   ;;
8519
8520 hpux10.20* | hpux11*)
8521   lt_cv_file_magic_cmd=/usr/bin/file
8522   case $host_cpu in
8523   ia64*)
8524     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8525     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8526     ;;
8527   hppa*64*)
8528     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]'
8529     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8530     ;;
8531   *)
8532     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8533     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8534     ;;
8535   esac
8536   ;;
8537
8538 interix[3-9]*)
8539   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8540   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8541   ;;
8542
8543 irix5* | irix6* | nonstopux*)
8544   case $LD in
8545   *-32|*"-32 ") libmagic=32-bit;;
8546   *-n32|*"-n32 ") libmagic=N32;;
8547   *-64|*"-64 ") libmagic=64-bit;;
8548   *) libmagic=never-match;;
8549   esac
8550   lt_cv_deplibs_check_method=pass_all
8551   ;;
8552
8553 # This must be glibc/ELF.
8554 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8555   lt_cv_deplibs_check_method=pass_all
8556   ;;
8557
8558 netbsd* | netbsdelf*-gnu)
8559   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8560     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8561   else
8562     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8563   fi
8564   ;;
8565
8566 newos6*)
8567   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8568   lt_cv_file_magic_cmd=/usr/bin/file
8569   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8570   ;;
8571
8572 *nto* | *qnx*)
8573   lt_cv_deplibs_check_method=pass_all
8574   ;;
8575
8576 openbsd* | bitrig*)
8577   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8578     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8579   else
8580     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8581   fi
8582   ;;
8583
8584 osf3* | osf4* | osf5*)
8585   lt_cv_deplibs_check_method=pass_all
8586   ;;
8587
8588 rdos*)
8589   lt_cv_deplibs_check_method=pass_all
8590   ;;
8591
8592 solaris*)
8593   lt_cv_deplibs_check_method=pass_all
8594   ;;
8595
8596 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8597   lt_cv_deplibs_check_method=pass_all
8598   ;;
8599
8600 sysv4 | sysv4.3*)
8601   case $host_vendor in
8602   motorola)
8603     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]'
8604     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8605     ;;
8606   ncr)
8607     lt_cv_deplibs_check_method=pass_all
8608     ;;
8609   sequent)
8610     lt_cv_file_magic_cmd='/bin/file'
8611     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8612     ;;
8613   sni)
8614     lt_cv_file_magic_cmd='/bin/file'
8615     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8616     lt_cv_file_magic_test_file=/lib/libc.so
8617     ;;
8618   siemens)
8619     lt_cv_deplibs_check_method=pass_all
8620     ;;
8621   pc)
8622     lt_cv_deplibs_check_method=pass_all
8623     ;;
8624   esac
8625   ;;
8626
8627 tpf*)
8628   lt_cv_deplibs_check_method=pass_all
8629   ;;
8630 os2*)
8631   lt_cv_deplibs_check_method=pass_all
8632   ;;
8633 esac
8634
8635 fi
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8637 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8638
8639 file_magic_glob=
8640 want_nocaseglob=no
8641 if test "$build" = "$host"; then
8642   case $host_os in
8643   mingw* | pw32*)
8644     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8645       want_nocaseglob=yes
8646     else
8647       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8648     fi
8649     ;;
8650   esac
8651 fi
8652
8653 file_magic_cmd=$lt_cv_file_magic_cmd
8654 deplibs_check_method=$lt_cv_deplibs_check_method
8655 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678 if test -n "$ac_tool_prefix"; then
8679   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8680 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 $as_echo_n "checking for $ac_word... " >&6; }
8683 if ${ac_cv_prog_DLLTOOL+:} false; then :
8684   $as_echo_n "(cached) " >&6
8685 else
8686   if test -n "$DLLTOOL"; then
8687   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8688 else
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 for as_dir in $PATH
8691 do
8692   IFS=$as_save_IFS
8693   test -z "$as_dir" && as_dir=.
8694     for ac_exec_ext in '' $ac_executable_extensions; do
8695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8696     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698     break 2
8699   fi
8700 done
8701   done
8702 IFS=$as_save_IFS
8703
8704 fi
8705 fi
8706 DLLTOOL=$ac_cv_prog_DLLTOOL
8707 if test -n "$DLLTOOL"; then
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8709 $as_echo "$DLLTOOL" >&6; }
8710 else
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8713 fi
8714
8715
8716 fi
8717 if test -z "$ac_cv_prog_DLLTOOL"; then
8718   ac_ct_DLLTOOL=$DLLTOOL
8719   # Extract the first word of "dlltool", so it can be a program name with args.
8720 set dummy dlltool; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8724   $as_echo_n "(cached) " >&6
8725 else
8726   if test -n "$ac_ct_DLLTOOL"; then
8727   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8728 else
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 for as_dir in $PATH
8731 do
8732   IFS=$as_save_IFS
8733   test -z "$as_dir" && as_dir=.
8734     for ac_exec_ext in '' $ac_executable_extensions; do
8735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8736     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738     break 2
8739   fi
8740 done
8741   done
8742 IFS=$as_save_IFS
8743
8744 fi
8745 fi
8746 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8747 if test -n "$ac_ct_DLLTOOL"; then
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8749 $as_echo "$ac_ct_DLLTOOL" >&6; }
8750 else
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8753 fi
8754
8755   if test "x$ac_ct_DLLTOOL" = x; then
8756     DLLTOOL="false"
8757   else
8758     case $cross_compiling:$ac_tool_warned in
8759 yes:)
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8762 ac_tool_warned=yes ;;
8763 esac
8764     DLLTOOL=$ac_ct_DLLTOOL
8765   fi
8766 else
8767   DLLTOOL="$ac_cv_prog_DLLTOOL"
8768 fi
8769
8770 test -z "$DLLTOOL" && DLLTOOL=dlltool
8771
8772
8773
8774
8775
8776
8777
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8779 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8780 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8781   $as_echo_n "(cached) " >&6
8782 else
8783   lt_cv_sharedlib_from_linklib_cmd='unknown'
8784
8785 case $host_os in
8786 cygwin* | mingw* | pw32* | cegcc*)
8787   # two different shell functions defined in ltmain.sh;
8788   # decide which one to use based on capabilities of $DLLTOOL
8789   case `$DLLTOOL --help 2>&1` in
8790   *--identify-strict*)
8791     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8792     ;;
8793   *)
8794     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8795     ;;
8796   esac
8797   ;;
8798 *)
8799   # fallback: assume linklib IS sharedlib
8800   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8801   ;;
8802 esac
8803
8804 fi
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8806 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8807 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8808 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8809
8810
8811
8812
8813
8814
8815
8816 if test -n "$ac_tool_prefix"; then
8817   for ac_prog in ar
8818   do
8819     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if ${ac_cv_prog_AR+:} false; then :
8824   $as_echo_n "(cached) " >&6
8825 else
8826   if test -n "$AR"; then
8827   ac_cv_prog_AR="$AR" # Let the user override the test.
8828 else
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8831 do
8832   IFS=$as_save_IFS
8833   test -z "$as_dir" && as_dir=.
8834     for ac_exec_ext in '' $ac_executable_extensions; do
8835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838     break 2
8839   fi
8840 done
8841   done
8842 IFS=$as_save_IFS
8843
8844 fi
8845 fi
8846 AR=$ac_cv_prog_AR
8847 if test -n "$AR"; then
8848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8849 $as_echo "$AR" >&6; }
8850 else
8851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8853 fi
8854
8855
8856     test -n "$AR" && break
8857   done
8858 fi
8859 if test -z "$AR"; then
8860   ac_ct_AR=$AR
8861   for ac_prog in ar
8862 do
8863   # Extract the first word of "$ac_prog", so it can be a program name with args.
8864 set dummy $ac_prog; ac_word=$2
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866 $as_echo_n "checking for $ac_word... " >&6; }
8867 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8868   $as_echo_n "(cached) " >&6
8869 else
8870   if test -n "$ac_ct_AR"; then
8871   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8872 else
8873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 for as_dir in $PATH
8875 do
8876   IFS=$as_save_IFS
8877   test -z "$as_dir" && as_dir=.
8878     for ac_exec_ext in '' $ac_executable_extensions; do
8879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8880     ac_cv_prog_ac_ct_AR="$ac_prog"
8881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8882     break 2
8883   fi
8884 done
8885   done
8886 IFS=$as_save_IFS
8887
8888 fi
8889 fi
8890 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8891 if test -n "$ac_ct_AR"; then
8892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8893 $as_echo "$ac_ct_AR" >&6; }
8894 else
8895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8897 fi
8898
8899
8900   test -n "$ac_ct_AR" && break
8901 done
8902
8903   if test "x$ac_ct_AR" = x; then
8904     AR="false"
8905   else
8906     case $cross_compiling:$ac_tool_warned in
8907 yes:)
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8910 ac_tool_warned=yes ;;
8911 esac
8912     AR=$ac_ct_AR
8913   fi
8914 fi
8915
8916 : ${AR=ar}
8917 : ${AR_FLAGS=cru}
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8930 $as_echo_n "checking for archiver @FILE support... " >&6; }
8931 if ${lt_cv_ar_at_file+:} false; then :
8932   $as_echo_n "(cached) " >&6
8933 else
8934   lt_cv_ar_at_file=no
8935    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h.  */
8937
8938 int main (void)
8939 {
8940
8941  ;
8942  return 0;
8943 }
8944 _ACEOF
8945 if ac_fn_c_try_compile "$LINENO"; then :
8946   echo conftest.$ac_objext > conftest.lst
8947       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8948       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8949   (eval $lt_ar_try) 2>&5
8950   ac_status=$?
8951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8952   test $ac_status = 0; }
8953       if test 0 -eq "$ac_status"; then
8954         # Ensure the archiver fails upon bogus file names.
8955         rm -f conftest.$ac_objext libconftest.a
8956         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8957   (eval $lt_ar_try) 2>&5
8958   ac_status=$?
8959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8960   test $ac_status = 0; }
8961         if test 0 -ne "$ac_status"; then
8962           lt_cv_ar_at_file=@
8963         fi
8964       fi
8965       rm -f conftest.* libconftest.a
8966
8967 fi
8968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969
8970 fi
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8972 $as_echo "$lt_cv_ar_at_file" >&6; }
8973
8974 if test no = "$lt_cv_ar_at_file"; then
8975   archiver_list_spec=
8976 else
8977   archiver_list_spec=$lt_cv_ar_at_file
8978 fi
8979
8980
8981
8982
8983
8984
8985
8986 if test -n "$ac_tool_prefix"; then
8987   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8988 set dummy ${ac_tool_prefix}strip; ac_word=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if ${ac_cv_prog_STRIP+:} false; then :
8992   $as_echo_n "(cached) " >&6
8993 else
8994   if test -n "$STRIP"; then
8995   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8996 else
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 for as_dir in $PATH
8999 do
9000   IFS=$as_save_IFS
9001   test -z "$as_dir" && as_dir=.
9002     for ac_exec_ext in '' $ac_executable_extensions; do
9003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006     break 2
9007   fi
9008 done
9009   done
9010 IFS=$as_save_IFS
9011
9012 fi
9013 fi
9014 STRIP=$ac_cv_prog_STRIP
9015 if test -n "$STRIP"; then
9016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9017 $as_echo "$STRIP" >&6; }
9018 else
9019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9021 fi
9022
9023
9024 fi
9025 if test -z "$ac_cv_prog_STRIP"; then
9026   ac_ct_STRIP=$STRIP
9027   # Extract the first word of "strip", so it can be a program name with args.
9028 set dummy strip; ac_word=$2
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030 $as_echo_n "checking for $ac_word... " >&6; }
9031 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9032   $as_echo_n "(cached) " >&6
9033 else
9034   if test -n "$ac_ct_STRIP"; then
9035   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9036 else
9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038 for as_dir in $PATH
9039 do
9040   IFS=$as_save_IFS
9041   test -z "$as_dir" && as_dir=.
9042     for ac_exec_ext in '' $ac_executable_extensions; do
9043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9044     ac_cv_prog_ac_ct_STRIP="strip"
9045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9046     break 2
9047   fi
9048 done
9049   done
9050 IFS=$as_save_IFS
9051
9052 fi
9053 fi
9054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9055 if test -n "$ac_ct_STRIP"; then
9056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9057 $as_echo "$ac_ct_STRIP" >&6; }
9058 else
9059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060 $as_echo "no" >&6; }
9061 fi
9062
9063   if test "x$ac_ct_STRIP" = x; then
9064     STRIP=":"
9065   else
9066     case $cross_compiling:$ac_tool_warned in
9067 yes:)
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9070 ac_tool_warned=yes ;;
9071 esac
9072     STRIP=$ac_ct_STRIP
9073   fi
9074 else
9075   STRIP="$ac_cv_prog_STRIP"
9076 fi
9077
9078 test -z "$STRIP" && STRIP=:
9079
9080
9081
9082
9083
9084
9085 if test -n "$ac_tool_prefix"; then
9086   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9087 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089 $as_echo_n "checking for $ac_word... " >&6; }
9090 if ${ac_cv_prog_RANLIB+:} false; then :
9091   $as_echo_n "(cached) " >&6
9092 else
9093   if test -n "$RANLIB"; then
9094   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9095 else
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 for as_dir in $PATH
9098 do
9099   IFS=$as_save_IFS
9100   test -z "$as_dir" && as_dir=.
9101     for ac_exec_ext in '' $ac_executable_extensions; do
9102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9105     break 2
9106   fi
9107 done
9108   done
9109 IFS=$as_save_IFS
9110
9111 fi
9112 fi
9113 RANLIB=$ac_cv_prog_RANLIB
9114 if test -n "$RANLIB"; then
9115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9116 $as_echo "$RANLIB" >&6; }
9117 else
9118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9120 fi
9121
9122
9123 fi
9124 if test -z "$ac_cv_prog_RANLIB"; then
9125   ac_ct_RANLIB=$RANLIB
9126   # Extract the first word of "ranlib", so it can be a program name with args.
9127 set dummy ranlib; ac_word=$2
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129 $as_echo_n "checking for $ac_word... " >&6; }
9130 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9131   $as_echo_n "(cached) " >&6
9132 else
9133   if test -n "$ac_ct_RANLIB"; then
9134   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9135 else
9136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137 for as_dir in $PATH
9138 do
9139   IFS=$as_save_IFS
9140   test -z "$as_dir" && as_dir=.
9141     for ac_exec_ext in '' $ac_executable_extensions; do
9142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9143     ac_cv_prog_ac_ct_RANLIB="ranlib"
9144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145     break 2
9146   fi
9147 done
9148   done
9149 IFS=$as_save_IFS
9150
9151 fi
9152 fi
9153 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9154 if test -n "$ac_ct_RANLIB"; then
9155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9156 $as_echo "$ac_ct_RANLIB" >&6; }
9157 else
9158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9160 fi
9161
9162   if test "x$ac_ct_RANLIB" = x; then
9163     RANLIB=":"
9164   else
9165     case $cross_compiling:$ac_tool_warned in
9166 yes:)
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9169 ac_tool_warned=yes ;;
9170 esac
9171     RANLIB=$ac_ct_RANLIB
9172   fi
9173 else
9174   RANLIB="$ac_cv_prog_RANLIB"
9175 fi
9176
9177 test -z "$RANLIB" && RANLIB=:
9178
9179
9180
9181
9182
9183
9184 # Determine commands to create old-style static archives.
9185 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9186 old_postinstall_cmds='chmod 644 $oldlib'
9187 old_postuninstall_cmds=
9188
9189 if test -n "$RANLIB"; then
9190   case $host_os in
9191   bitrig* | openbsd*)
9192     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9193     ;;
9194   *)
9195     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9196     ;;
9197   esac
9198   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9199 fi
9200
9201 case $host_os in
9202   darwin*)
9203     lock_old_archive_extraction=yes ;;
9204   *)
9205     lock_old_archive_extraction=no ;;
9206 esac
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246 # If no C compiler was specified, use CC.
9247 LTCC=${LTCC-"$CC"}
9248
9249 # If no C compiler flags were specified, use CFLAGS.
9250 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9251
9252 # Allow CC to be a program name with arguments.
9253 compiler=$CC
9254
9255
9256 # Check for command to grab the raw symbol name followed by C symbol from nm.
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9258 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9259 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9260   $as_echo_n "(cached) " >&6
9261 else
9262
9263 # These are sane defaults that work on at least a few old systems.
9264 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9265
9266 # Character class describing NM global symbol codes.
9267 symcode='[BCDEGRST]'
9268
9269 # Regexp to match symbols that can be accessed directly from C.
9270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9271
9272 # Define system-specific variables.
9273 case $host_os in
9274 aix*)
9275   symcode='[BCDT]'
9276   ;;
9277 cygwin* | mingw* | pw32* | cegcc*)
9278   symcode='[ABCDGISTW]'
9279   ;;
9280 hpux*)
9281   if test ia64 = "$host_cpu"; then
9282     symcode='[ABCDEGRST]'
9283   fi
9284   ;;
9285 irix* | nonstopux*)
9286   symcode='[BCDEGRST]'
9287   ;;
9288 osf*)
9289   symcode='[BCDEGQRST]'
9290   ;;
9291 solaris*)
9292   symcode='[BDRT]'
9293   ;;
9294 sco3.2v5*)
9295   symcode='[DT]'
9296   ;;
9297 sysv4.2uw2*)
9298   symcode='[DT]'
9299   ;;
9300 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9301   symcode='[ABDT]'
9302   ;;
9303 sysv4)
9304   symcode='[DFNSTU]'
9305   ;;
9306 esac
9307
9308 # If we're using GNU nm, then use its standard symbol codes.
9309 case `$NM -V 2>&1` in
9310 *GNU* | *'with BFD'*)
9311   symcode='[ABCDGIRSTW]' ;;
9312 esac
9313
9314 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9315   # Gets list of data symbols to import.
9316   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9317   # Adjust the below global symbol transforms to fixup imported variables.
9318   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9319   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9320   lt_c_name_lib_hook="\
9321   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9322   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9323 else
9324   # Disable hooks by default.
9325   lt_cv_sys_global_symbol_to_import=
9326   lt_cdecl_hook=
9327   lt_c_name_hook=
9328   lt_c_name_lib_hook=
9329 fi
9330
9331 # Transform an extracted symbol line into a proper C declaration.
9332 # Some systems (esp. on ia64) link data and code symbols differently,
9333 # so use this general approach.
9334 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9335 $lt_cdecl_hook\
9336 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9337 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9338
9339 # Transform an extracted symbol line into symbol name and symbol address
9340 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9341 $lt_c_name_hook\
9342 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9343 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9344
9345 # Transform an extracted symbol line into symbol name with lib prefix and
9346 # symbol address.
9347 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9348 $lt_c_name_lib_hook\
9349 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9350 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9351 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9352
9353 # Handle CRLF in mingw tool chain
9354 opt_cr=
9355 case $build_os in
9356 mingw*)
9357   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9358   ;;
9359 esac
9360
9361 # Try without a prefix underscore, then with it.
9362 for ac_symprfx in "" "_"; do
9363
9364   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9365   symxfrm="\\1 $ac_symprfx\\2 \\2"
9366
9367   # Write the raw and C identifiers.
9368   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9369     # Fake it for dumpbin and say T for any non-static function,
9370     # D for any global variable and I for any imported variable.
9371     # Also find C++ and __fastcall symbols from MSVC++,
9372     # which start with @ or ?.
9373     lt_cv_sys_global_symbol_pipe="$AWK '"\
9374 "     {last_section=section; section=\$ 3};"\
9375 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9376 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9377 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9378 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9379 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9380 "     \$ 0!~/External *\|/{next};"\
9381 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9382 "     {if(hide[section]) next};"\
9383 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9384 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9385 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9386 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9387 "     ' prfx=^$ac_symprfx"
9388   else
9389     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9390   fi
9391   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9392
9393   # Check to see that the pipe works correctly.
9394   pipe_works=no
9395
9396   rm -f conftest*
9397   cat > conftest.$ac_ext <<_LT_EOF
9398 #ifdef __cplusplus
9399 extern "C" {
9400 #endif
9401 char nm_test_var;
9402 void nm_test_func(void);
9403 void nm_test_func(void){}
9404 #ifdef __cplusplus
9405 }
9406 #endif
9407 int main(){nm_test_var='a';nm_test_func();return(0);}
9408 _LT_EOF
9409
9410   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9411   (eval $ac_compile) 2>&5
9412   ac_status=$?
9413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9414   test $ac_status = 0; }; then
9415     # Now try to grab the symbols.
9416     nlist=conftest.nm
9417     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9418     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9419       # Try sorting and uniquifying the output.
9420       if sort "$nlist" | uniq > "$nlist"T; then
9421         mv -f "$nlist"T "$nlist"
9422       else
9423         rm -f "$nlist"T
9424       fi
9425
9426       # Make sure that we snagged all the symbols we need.
9427       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9428         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9429           cat <<_LT_EOF > conftest.$ac_ext
9430 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9431 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9432 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9433    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9434 # define LT_DLSYM_CONST
9435 #elif defined __osf__
9436 /* This system does not cope well with relocations in const data.  */
9437 # define LT_DLSYM_CONST
9438 #else
9439 # define LT_DLSYM_CONST const
9440 #endif
9441
9442 #ifdef __cplusplus
9443 extern "C" {
9444 #endif
9445
9446 _LT_EOF
9447           # Now generate the symbol file.
9448           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9449
9450           cat <<_LT_EOF >> conftest.$ac_ext
9451
9452 /* The mapping between symbol names and symbols.  */
9453 LT_DLSYM_CONST struct {
9454   const char *name;
9455   void       *address;
9456 }
9457 lt__PROGRAM__LTX_preloaded_symbols[] =
9458 {
9459   { "@PROGRAM@", (void *) 0 },
9460 _LT_EOF
9461           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9462           cat <<\_LT_EOF >> conftest.$ac_ext
9463   {0, (void *) 0}
9464 };
9465
9466 /* This works around a problem in FreeBSD linker */
9467 #ifdef FREEBSD_WORKAROUND
9468 static const void *lt_preloaded_setup() {
9469   return lt__PROGRAM__LTX_preloaded_symbols;
9470 }
9471 #endif
9472
9473 #ifdef __cplusplus
9474 }
9475 #endif
9476 _LT_EOF
9477           # Now try linking the two files.
9478           mv -f conftest.$ac_objext conftstm.$ac_objext
9479           lt_globsym_save_LIBS=$LIBS
9480           lt_globsym_save_CFLAGS=$CFLAGS
9481           LIBS=conftstm.$ac_objext
9482           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9483           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9484   (eval $ac_link) 2>&5
9485   ac_status=$?
9486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9487   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9488             pipe_works=yes
9489           fi
9490           LIBS=$lt_globsym_save_LIBS
9491           CFLAGS=$lt_globsym_save_CFLAGS
9492         else
9493           echo "cannot find nm_test_func in $nlist" >&5
9494         fi
9495       else
9496         echo "cannot find nm_test_var in $nlist" >&5
9497       fi
9498     else
9499       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9500     fi
9501   else
9502     echo "$progname: failed program was:" >&5
9503     cat conftest.$ac_ext >&5
9504   fi
9505   rm -rf conftest* conftst*
9506
9507   # Do not use the global_symbol_pipe unless it works.
9508   if test yes = "$pipe_works"; then
9509     break
9510   else
9511     lt_cv_sys_global_symbol_pipe=
9512   fi
9513 done
9514
9515 fi
9516
9517 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9518   lt_cv_sys_global_symbol_to_cdecl=
9519 fi
9520 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9522 $as_echo "failed" >&6; }
9523 else
9524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9525 $as_echo "ok" >&6; }
9526 fi
9527
9528 # Response file support.
9529 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9530   nm_file_list_spec='@'
9531 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9532   nm_file_list_spec='@'
9533 fi
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9572 $as_echo_n "checking for sysroot... " >&6; }
9573
9574 # Check whether --with-sysroot was given.
9575 if test "${with_sysroot+set}" = set; then :
9576   withval=$with_sysroot;
9577 else
9578   with_sysroot=no
9579 fi
9580
9581
9582 lt_sysroot=
9583 case $with_sysroot in #(
9584  yes)
9585    if test yes = "$GCC"; then
9586      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9587    fi
9588    ;; #(
9589  /*)
9590    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9591    ;; #(
9592  no|'')
9593    ;; #(
9594  *)
9595    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9596 $as_echo "$with_sysroot" >&6; }
9597    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9598    ;;
9599 esac
9600
9601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9602 $as_echo "${lt_sysroot:-no}" >&6; }
9603
9604
9605
9606
9607
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9609 $as_echo_n "checking for a working dd... " >&6; }
9610 if ${ac_cv_path_lt_DD+:} false; then :
9611   $as_echo_n "(cached) " >&6
9612 else
9613   printf 0123456789abcdef0123456789abcdef >conftest.i
9614 cat conftest.i conftest.i >conftest2.i
9615 : ${lt_DD:=$DD}
9616 if test -z "$lt_DD"; then
9617   ac_path_lt_DD_found=false
9618   # Loop through the user's path and test for each of PROGNAME-LIST
9619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620 for as_dir in $PATH
9621 do
9622   IFS=$as_save_IFS
9623   test -z "$as_dir" && as_dir=.
9624     for ac_prog in dd; do
9625     for ac_exec_ext in '' $ac_executable_extensions; do
9626       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9627       as_fn_executable_p "$ac_path_lt_DD" || continue
9628 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9629   cmp -s conftest.i conftest.out \
9630   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9631 fi
9632       $ac_path_lt_DD_found && break 3
9633     done
9634   done
9635   done
9636 IFS=$as_save_IFS
9637   if test -z "$ac_cv_path_lt_DD"; then
9638     :
9639   fi
9640 else
9641   ac_cv_path_lt_DD=$lt_DD
9642 fi
9643
9644 rm -f conftest.i conftest2.i conftest.out
9645 fi
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9647 $as_echo "$ac_cv_path_lt_DD" >&6; }
9648
9649
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9651 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9652 if ${lt_cv_truncate_bin+:} false; then :
9653   $as_echo_n "(cached) " >&6
9654 else
9655   printf 0123456789abcdef0123456789abcdef >conftest.i
9656 cat conftest.i conftest.i >conftest2.i
9657 lt_cv_truncate_bin=
9658 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9659   cmp -s conftest.i conftest.out \
9660   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9661 fi
9662 rm -f conftest.i conftest2.i conftest.out
9663 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9664 fi
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9666 $as_echo "$lt_cv_truncate_bin" >&6; }
9667
9668
9669
9670
9671
9672
9673
9674 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9675 func_cc_basename ()
9676 {
9677     for cc_temp in $*""; do
9678       case $cc_temp in
9679         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9680         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9681         \-*) ;;
9682         *) break;;
9683       esac
9684     done
9685     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9686 }
9687
9688 # Check whether --enable-libtool-lock was given.
9689 if test "${enable_libtool_lock+set}" = set; then :
9690   enableval=$enable_libtool_lock;
9691 fi
9692
9693 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9694
9695 # Some flags need to be propagated to the compiler or linker for good
9696 # libtool support.
9697 case $host in
9698 ia64-*-hpux*)
9699   # Find out what ABI is being produced by ac_compile, and set mode
9700   # options accordingly.
9701   echo 'int i;' > conftest.$ac_ext
9702   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9703   (eval $ac_compile) 2>&5
9704   ac_status=$?
9705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9706   test $ac_status = 0; }; then
9707     case `/usr/bin/file conftest.$ac_objext` in
9708       *ELF-32*)
9709         HPUX_IA64_MODE=32
9710         ;;
9711       *ELF-64*)
9712         HPUX_IA64_MODE=64
9713         ;;
9714     esac
9715   fi
9716   rm -rf conftest*
9717   ;;
9718 *-*-irix6*)
9719   # Find out what ABI is being produced by ac_compile, and set linker
9720   # options accordingly.
9721   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9722   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9723   (eval $ac_compile) 2>&5
9724   ac_status=$?
9725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9726   test $ac_status = 0; }; then
9727     if test yes = "$lt_cv_prog_gnu_ld"; then
9728       case `/usr/bin/file conftest.$ac_objext` in
9729         *32-bit*)
9730           LD="${LD-ld} -melf32bsmip"
9731           ;;
9732         *N32*)
9733           LD="${LD-ld} -melf32bmipn32"
9734           ;;
9735         *64-bit*)
9736           LD="${LD-ld} -melf64bmip"
9737         ;;
9738       esac
9739     else
9740       case `/usr/bin/file conftest.$ac_objext` in
9741         *32-bit*)
9742           LD="${LD-ld} -32"
9743           ;;
9744         *N32*)
9745           LD="${LD-ld} -n32"
9746           ;;
9747         *64-bit*)
9748           LD="${LD-ld} -64"
9749           ;;
9750       esac
9751     fi
9752   fi
9753   rm -rf conftest*
9754   ;;
9755
9756 mips64*-*linux*)
9757   # Find out what ABI is being produced by ac_compile, and set linker
9758   # options accordingly.
9759   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9760   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9761   (eval $ac_compile) 2>&5
9762   ac_status=$?
9763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9764   test $ac_status = 0; }; then
9765     emul=elf
9766     case `/usr/bin/file conftest.$ac_objext` in
9767       *32-bit*)
9768         emul="${emul}32"
9769         ;;
9770       *64-bit*)
9771         emul="${emul}64"
9772         ;;
9773     esac
9774     case `/usr/bin/file conftest.$ac_objext` in
9775       *MSB*)
9776         emul="${emul}btsmip"
9777         ;;
9778       *LSB*)
9779         emul="${emul}ltsmip"
9780         ;;
9781     esac
9782     case `/usr/bin/file conftest.$ac_objext` in
9783       *N32*)
9784         emul="${emul}n32"
9785         ;;
9786     esac
9787     LD="${LD-ld} -m $emul"
9788   fi
9789   rm -rf conftest*
9790   ;;
9791
9792 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9793 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9794   # Find out what ABI is being produced by ac_compile, and set linker
9795   # options accordingly.  Note that the listed cases only cover the
9796   # situations where additional linker options are needed (such as when
9797   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9798   # vice versa); the common cases where no linker options are needed do
9799   # not appear in the list.
9800   echo 'int i;' > conftest.$ac_ext
9801   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9802   (eval $ac_compile) 2>&5
9803   ac_status=$?
9804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9805   test $ac_status = 0; }; then
9806     case `/usr/bin/file conftest.o` in
9807       *32-bit*)
9808         case $host in
9809           x86_64-*kfreebsd*-gnu)
9810             LD="${LD-ld} -m elf_i386_fbsd"
9811             ;;
9812           x86_64-*linux*)
9813             case `/usr/bin/file conftest.o` in
9814               *x86-64*)
9815                 LD="${LD-ld} -m elf32_x86_64"
9816                 ;;
9817               *)
9818                 LD="${LD-ld} -m elf_i386"
9819                 ;;
9820             esac
9821             ;;
9822           powerpc64le-*linux*)
9823             LD="${LD-ld} -m elf32lppclinux"
9824             ;;
9825           powerpc64-*linux*)
9826             LD="${LD-ld} -m elf32ppclinux"
9827             ;;
9828           s390x-*linux*)
9829             LD="${LD-ld} -m elf_s390"
9830             ;;
9831           sparc64-*linux*)
9832             LD="${LD-ld} -m elf32_sparc"
9833             ;;
9834         esac
9835         ;;
9836       *64-bit*)
9837         case $host in
9838           x86_64-*kfreebsd*-gnu)
9839             LD="${LD-ld} -m elf_x86_64_fbsd"
9840             ;;
9841           x86_64-*linux*)
9842             LD="${LD-ld} -m elf_x86_64"
9843             ;;
9844           powerpcle-*linux*)
9845             LD="${LD-ld} -m elf64lppc"
9846             ;;
9847           powerpc-*linux*)
9848             LD="${LD-ld} -m elf64ppc"
9849             ;;
9850           s390*-*linux*|s390*-*tpf*)
9851             LD="${LD-ld} -m elf64_s390"
9852             ;;
9853           sparc*-*linux*)
9854             LD="${LD-ld} -m elf64_sparc"
9855             ;;
9856         esac
9857         ;;
9858     esac
9859   fi
9860   rm -rf conftest*
9861   ;;
9862
9863 *-*-sco3.2v5*)
9864   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9865   SAVE_CFLAGS=$CFLAGS
9866   CFLAGS="$CFLAGS -belf"
9867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9868 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9869 if ${lt_cv_cc_needs_belf+:} false; then :
9870   $as_echo_n "(cached) " >&6
9871 else
9872   ac_ext=c
9873 ac_cpp='$CPP $CPPFLAGS'
9874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9877
9878      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h.  */
9880
9881 int main (void)
9882 {
9883
9884  ;
9885  return 0;
9886 }
9887 _ACEOF
9888 if ac_fn_c_try_link "$LINENO"; then :
9889   lt_cv_cc_needs_belf=yes
9890 else
9891   lt_cv_cc_needs_belf=no
9892 fi
9893 rm -f core conftest.err conftest.$ac_objext \
9894     conftest$ac_exeext conftest.$ac_ext
9895      ac_ext=c
9896 ac_cpp='$CPP $CPPFLAGS'
9897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9900
9901 fi
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9903 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9904   if test yes != "$lt_cv_cc_needs_belf"; then
9905     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9906     CFLAGS=$SAVE_CFLAGS
9907   fi
9908   ;;
9909 *-*solaris*)
9910   # Find out what ABI is being produced by ac_compile, and set linker
9911   # options accordingly.
9912   echo 'int i;' > conftest.$ac_ext
9913   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9914   (eval $ac_compile) 2>&5
9915   ac_status=$?
9916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9917   test $ac_status = 0; }; then
9918     case `/usr/bin/file conftest.o` in
9919     *64-bit*)
9920       case $lt_cv_prog_gnu_ld in
9921       yes*)
9922         case $host in
9923         i?86-*-solaris*|x86_64-*-solaris*)
9924           LD="${LD-ld} -m elf_x86_64"
9925           ;;
9926         sparc*-*-solaris*)
9927           LD="${LD-ld} -m elf64_sparc"
9928           ;;
9929         esac
9930         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9931         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9932           LD=${LD-ld}_sol2
9933         fi
9934         ;;
9935       *)
9936         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9937           LD="${LD-ld} -64"
9938         fi
9939         ;;
9940       esac
9941       ;;
9942     esac
9943   fi
9944   rm -rf conftest*
9945   ;;
9946 esac
9947
9948 need_locks=$enable_libtool_lock
9949
9950 if test -n "$ac_tool_prefix"; then
9951   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9952 set dummy ${ac_tool_prefix}mt; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9956   $as_echo_n "(cached) " >&6
9957 else
9958   if test -n "$MANIFEST_TOOL"; then
9959   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9960 else
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 for as_dir in $PATH
9963 do
9964   IFS=$as_save_IFS
9965   test -z "$as_dir" && as_dir=.
9966     for ac_exec_ext in '' $ac_executable_extensions; do
9967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9968     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9970     break 2
9971   fi
9972 done
9973   done
9974 IFS=$as_save_IFS
9975
9976 fi
9977 fi
9978 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9979 if test -n "$MANIFEST_TOOL"; then
9980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9981 $as_echo "$MANIFEST_TOOL" >&6; }
9982 else
9983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984 $as_echo "no" >&6; }
9985 fi
9986
9987
9988 fi
9989 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9990   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9991   # Extract the first word of "mt", so it can be a program name with args.
9992 set dummy mt; ac_word=$2
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994 $as_echo_n "checking for $ac_word... " >&6; }
9995 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9996   $as_echo_n "(cached) " >&6
9997 else
9998   if test -n "$ac_ct_MANIFEST_TOOL"; then
9999   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10000 else
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10003 do
10004   IFS=$as_save_IFS
10005   test -z "$as_dir" && as_dir=.
10006     for ac_exec_ext in '' $ac_executable_extensions; do
10007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10008     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10010     break 2
10011   fi
10012 done
10013   done
10014 IFS=$as_save_IFS
10015
10016 fi
10017 fi
10018 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10019 if test -n "$ac_ct_MANIFEST_TOOL"; then
10020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10021 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10022 else
10023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10025 fi
10026
10027   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10028     MANIFEST_TOOL=":"
10029   else
10030     case $cross_compiling:$ac_tool_warned in
10031 yes:)
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10034 ac_tool_warned=yes ;;
10035 esac
10036     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10037   fi
10038 else
10039   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10040 fi
10041
10042 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10044 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10045 if ${lt_cv_path_mainfest_tool+:} false; then :
10046   $as_echo_n "(cached) " >&6
10047 else
10048   lt_cv_path_mainfest_tool=no
10049   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10050   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10051   cat conftest.err >&5
10052   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10053     lt_cv_path_mainfest_tool=yes
10054   fi
10055   rm -f conftest*
10056 fi
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10058 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10059 if test yes != "$lt_cv_path_mainfest_tool"; then
10060   MANIFEST_TOOL=:
10061 fi
10062
10063
10064
10065
10066
10067
10068   case $host_os in
10069     rhapsody* | darwin*)
10070     if test -n "$ac_tool_prefix"; then
10071   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10072 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10074 $as_echo_n "checking for $ac_word... " >&6; }
10075 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10076   $as_echo_n "(cached) " >&6
10077 else
10078   if test -n "$DSYMUTIL"; then
10079   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10080 else
10081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082 for as_dir in $PATH
10083 do
10084   IFS=$as_save_IFS
10085   test -z "$as_dir" && as_dir=.
10086     for ac_exec_ext in '' $ac_executable_extensions; do
10087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10088     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10090     break 2
10091   fi
10092 done
10093   done
10094 IFS=$as_save_IFS
10095
10096 fi
10097 fi
10098 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10099 if test -n "$DSYMUTIL"; then
10100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10101 $as_echo "$DSYMUTIL" >&6; }
10102 else
10103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 $as_echo "no" >&6; }
10105 fi
10106
10107
10108 fi
10109 if test -z "$ac_cv_prog_DSYMUTIL"; then
10110   ac_ct_DSYMUTIL=$DSYMUTIL
10111   # Extract the first word of "dsymutil", so it can be a program name with args.
10112 set dummy dsymutil; ac_word=$2
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10114 $as_echo_n "checking for $ac_word... " >&6; }
10115 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10116   $as_echo_n "(cached) " >&6
10117 else
10118   if test -n "$ac_ct_DSYMUTIL"; then
10119   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10120 else
10121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10122 for as_dir in $PATH
10123 do
10124   IFS=$as_save_IFS
10125   test -z "$as_dir" && as_dir=.
10126     for ac_exec_ext in '' $ac_executable_extensions; do
10127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10128     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10130     break 2
10131   fi
10132 done
10133   done
10134 IFS=$as_save_IFS
10135
10136 fi
10137 fi
10138 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10139 if test -n "$ac_ct_DSYMUTIL"; then
10140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10141 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10142 else
10143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144 $as_echo "no" >&6; }
10145 fi
10146
10147   if test "x$ac_ct_DSYMUTIL" = x; then
10148     DSYMUTIL=":"
10149   else
10150     case $cross_compiling:$ac_tool_warned in
10151 yes:)
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10154 ac_tool_warned=yes ;;
10155 esac
10156     DSYMUTIL=$ac_ct_DSYMUTIL
10157   fi
10158 else
10159   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10160 fi
10161
10162     if test -n "$ac_tool_prefix"; then
10163   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10164 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166 $as_echo_n "checking for $ac_word... " >&6; }
10167 if ${ac_cv_prog_NMEDIT+:} false; then :
10168   $as_echo_n "(cached) " >&6
10169 else
10170   if test -n "$NMEDIT"; then
10171   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10172 else
10173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $PATH
10175 do
10176   IFS=$as_save_IFS
10177   test -z "$as_dir" && as_dir=.
10178     for ac_exec_ext in '' $ac_executable_extensions; do
10179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10180     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10182     break 2
10183   fi
10184 done
10185   done
10186 IFS=$as_save_IFS
10187
10188 fi
10189 fi
10190 NMEDIT=$ac_cv_prog_NMEDIT
10191 if test -n "$NMEDIT"; then
10192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10193 $as_echo "$NMEDIT" >&6; }
10194 else
10195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196 $as_echo "no" >&6; }
10197 fi
10198
10199
10200 fi
10201 if test -z "$ac_cv_prog_NMEDIT"; then
10202   ac_ct_NMEDIT=$NMEDIT
10203   # Extract the first word of "nmedit", so it can be a program name with args.
10204 set dummy nmedit; ac_word=$2
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10206 $as_echo_n "checking for $ac_word... " >&6; }
10207 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10208   $as_echo_n "(cached) " >&6
10209 else
10210   if test -n "$ac_ct_NMEDIT"; then
10211   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10212 else
10213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214 for as_dir in $PATH
10215 do
10216   IFS=$as_save_IFS
10217   test -z "$as_dir" && as_dir=.
10218     for ac_exec_ext in '' $ac_executable_extensions; do
10219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10220     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10222     break 2
10223   fi
10224 done
10225   done
10226 IFS=$as_save_IFS
10227
10228 fi
10229 fi
10230 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10231 if test -n "$ac_ct_NMEDIT"; then
10232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10233 $as_echo "$ac_ct_NMEDIT" >&6; }
10234 else
10235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236 $as_echo "no" >&6; }
10237 fi
10238
10239   if test "x$ac_ct_NMEDIT" = x; then
10240     NMEDIT=":"
10241   else
10242     case $cross_compiling:$ac_tool_warned in
10243 yes:)
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10246 ac_tool_warned=yes ;;
10247 esac
10248     NMEDIT=$ac_ct_NMEDIT
10249   fi
10250 else
10251   NMEDIT="$ac_cv_prog_NMEDIT"
10252 fi
10253
10254     if test -n "$ac_tool_prefix"; then
10255   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10256 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258 $as_echo_n "checking for $ac_word... " >&6; }
10259 if ${ac_cv_prog_LIPO+:} false; then :
10260   $as_echo_n "(cached) " >&6
10261 else
10262   if test -n "$LIPO"; then
10263   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10264 else
10265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266 for as_dir in $PATH
10267 do
10268   IFS=$as_save_IFS
10269   test -z "$as_dir" && as_dir=.
10270     for ac_exec_ext in '' $ac_executable_extensions; do
10271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10272     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10274     break 2
10275   fi
10276 done
10277   done
10278 IFS=$as_save_IFS
10279
10280 fi
10281 fi
10282 LIPO=$ac_cv_prog_LIPO
10283 if test -n "$LIPO"; then
10284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10285 $as_echo "$LIPO" >&6; }
10286 else
10287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10289 fi
10290
10291
10292 fi
10293 if test -z "$ac_cv_prog_LIPO"; then
10294   ac_ct_LIPO=$LIPO
10295   # Extract the first word of "lipo", so it can be a program name with args.
10296 set dummy lipo; ac_word=$2
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298 $as_echo_n "checking for $ac_word... " >&6; }
10299 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10300   $as_echo_n "(cached) " >&6
10301 else
10302   if test -n "$ac_ct_LIPO"; then
10303   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10304 else
10305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306 for as_dir in $PATH
10307 do
10308   IFS=$as_save_IFS
10309   test -z "$as_dir" && as_dir=.
10310     for ac_exec_ext in '' $ac_executable_extensions; do
10311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10312     ac_cv_prog_ac_ct_LIPO="lipo"
10313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10314     break 2
10315   fi
10316 done
10317   done
10318 IFS=$as_save_IFS
10319
10320 fi
10321 fi
10322 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10323 if test -n "$ac_ct_LIPO"; then
10324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10325 $as_echo "$ac_ct_LIPO" >&6; }
10326 else
10327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328 $as_echo "no" >&6; }
10329 fi
10330
10331   if test "x$ac_ct_LIPO" = x; then
10332     LIPO=":"
10333   else
10334     case $cross_compiling:$ac_tool_warned in
10335 yes:)
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10338 ac_tool_warned=yes ;;
10339 esac
10340     LIPO=$ac_ct_LIPO
10341   fi
10342 else
10343   LIPO="$ac_cv_prog_LIPO"
10344 fi
10345
10346     if test -n "$ac_tool_prefix"; then
10347   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10348 set dummy ${ac_tool_prefix}otool; ac_word=$2
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350 $as_echo_n "checking for $ac_word... " >&6; }
10351 if ${ac_cv_prog_OTOOL+:} false; then :
10352   $as_echo_n "(cached) " >&6
10353 else
10354   if test -n "$OTOOL"; then
10355   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10356 else
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10359 do
10360   IFS=$as_save_IFS
10361   test -z "$as_dir" && as_dir=.
10362     for ac_exec_ext in '' $ac_executable_extensions; do
10363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366     break 2
10367   fi
10368 done
10369   done
10370 IFS=$as_save_IFS
10371
10372 fi
10373 fi
10374 OTOOL=$ac_cv_prog_OTOOL
10375 if test -n "$OTOOL"; then
10376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10377 $as_echo "$OTOOL" >&6; }
10378 else
10379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10381 fi
10382
10383
10384 fi
10385 if test -z "$ac_cv_prog_OTOOL"; then
10386   ac_ct_OTOOL=$OTOOL
10387   # Extract the first word of "otool", so it can be a program name with args.
10388 set dummy otool; ac_word=$2
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390 $as_echo_n "checking for $ac_word... " >&6; }
10391 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10392   $as_echo_n "(cached) " >&6
10393 else
10394   if test -n "$ac_ct_OTOOL"; then
10395   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10396 else
10397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398 for as_dir in $PATH
10399 do
10400   IFS=$as_save_IFS
10401   test -z "$as_dir" && as_dir=.
10402     for ac_exec_ext in '' $ac_executable_extensions; do
10403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10404     ac_cv_prog_ac_ct_OTOOL="otool"
10405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406     break 2
10407   fi
10408 done
10409   done
10410 IFS=$as_save_IFS
10411
10412 fi
10413 fi
10414 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10415 if test -n "$ac_ct_OTOOL"; then
10416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10417 $as_echo "$ac_ct_OTOOL" >&6; }
10418 else
10419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10421 fi
10422
10423   if test "x$ac_ct_OTOOL" = x; then
10424     OTOOL=":"
10425   else
10426     case $cross_compiling:$ac_tool_warned in
10427 yes:)
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10430 ac_tool_warned=yes ;;
10431 esac
10432     OTOOL=$ac_ct_OTOOL
10433   fi
10434 else
10435   OTOOL="$ac_cv_prog_OTOOL"
10436 fi
10437
10438     if test -n "$ac_tool_prefix"; then
10439   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10440 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442 $as_echo_n "checking for $ac_word... " >&6; }
10443 if ${ac_cv_prog_OTOOL64+:} false; then :
10444   $as_echo_n "(cached) " >&6
10445 else
10446   if test -n "$OTOOL64"; then
10447   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10448 else
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10451 do
10452   IFS=$as_save_IFS
10453   test -z "$as_dir" && as_dir=.
10454     for ac_exec_ext in '' $ac_executable_extensions; do
10455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10456     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458     break 2
10459   fi
10460 done
10461   done
10462 IFS=$as_save_IFS
10463
10464 fi
10465 fi
10466 OTOOL64=$ac_cv_prog_OTOOL64
10467 if test -n "$OTOOL64"; then
10468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10469 $as_echo "$OTOOL64" >&6; }
10470 else
10471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10473 fi
10474
10475
10476 fi
10477 if test -z "$ac_cv_prog_OTOOL64"; then
10478   ac_ct_OTOOL64=$OTOOL64
10479   # Extract the first word of "otool64", so it can be a program name with args.
10480 set dummy otool64; ac_word=$2
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10482 $as_echo_n "checking for $ac_word... " >&6; }
10483 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10484   $as_echo_n "(cached) " >&6
10485 else
10486   if test -n "$ac_ct_OTOOL64"; then
10487   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10488 else
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10491 do
10492   IFS=$as_save_IFS
10493   test -z "$as_dir" && as_dir=.
10494     for ac_exec_ext in '' $ac_executable_extensions; do
10495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496     ac_cv_prog_ac_ct_OTOOL64="otool64"
10497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498     break 2
10499   fi
10500 done
10501   done
10502 IFS=$as_save_IFS
10503
10504 fi
10505 fi
10506 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10507 if test -n "$ac_ct_OTOOL64"; then
10508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10509 $as_echo "$ac_ct_OTOOL64" >&6; }
10510 else
10511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10513 fi
10514
10515   if test "x$ac_ct_OTOOL64" = x; then
10516     OTOOL64=":"
10517   else
10518     case $cross_compiling:$ac_tool_warned in
10519 yes:)
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10522 ac_tool_warned=yes ;;
10523 esac
10524     OTOOL64=$ac_ct_OTOOL64
10525   fi
10526 else
10527   OTOOL64="$ac_cv_prog_OTOOL64"
10528 fi
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10557 $as_echo_n "checking for -single_module linker flag... " >&6; }
10558 if ${lt_cv_apple_cc_single_mod+:} false; then :
10559   $as_echo_n "(cached) " >&6
10560 else
10561   lt_cv_apple_cc_single_mod=no
10562       if test -z "$LT_MULTI_MODULE"; then
10563         # By default we will add the -single_module flag. You can override
10564         # by either setting the environment variable LT_MULTI_MODULE
10565         # non-empty at configure time, or by adding -multi_module to the
10566         # link flags.
10567         rm -rf libconftest.dylib*
10568         echo "int foo(void){return 1;}" > conftest.c
10569         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10570 -dynamiclib -Wl,-single_module conftest.c" >&5
10571         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10572           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10573         _lt_result=$?
10574         # If there is a non-empty error log, and "single_module"
10575         # appears in it, assume the flag caused a linker warning
10576         if test -s conftest.err && $GREP single_module conftest.err; then
10577           cat conftest.err >&5
10578         # Otherwise, if the output was created with a 0 exit code from
10579         # the compiler, it worked.
10580         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10581           lt_cv_apple_cc_single_mod=yes
10582         else
10583           cat conftest.err >&5
10584         fi
10585         rm -rf libconftest.dylib*
10586         rm -f conftest.*
10587       fi
10588 fi
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10590 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10591
10592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10593 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10594 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10595   $as_echo_n "(cached) " >&6
10596 else
10597   lt_cv_ld_exported_symbols_list=no
10598       save_LDFLAGS=$LDFLAGS
10599       echo "_main" > conftest.sym
10600       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10601       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h.  */
10603
10604 int main (void)
10605 {
10606
10607  ;
10608  return 0;
10609 }
10610 _ACEOF
10611 if ac_fn_c_try_link "$LINENO"; then :
10612   lt_cv_ld_exported_symbols_list=yes
10613 else
10614   lt_cv_ld_exported_symbols_list=no
10615 fi
10616 rm -f core conftest.err conftest.$ac_objext \
10617     conftest$ac_exeext conftest.$ac_ext
10618         LDFLAGS=$save_LDFLAGS
10619
10620 fi
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10622 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10623
10624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10625 $as_echo_n "checking for -force_load linker flag... " >&6; }
10626 if ${lt_cv_ld_force_load+:} false; then :
10627   $as_echo_n "(cached) " >&6
10628 else
10629   lt_cv_ld_force_load=no
10630       cat > conftest.c << _LT_EOF
10631 int forced_loaded() { return 2;}
10632 _LT_EOF
10633       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10634       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10635       echo "$AR cru libconftest.a conftest.o" >&5
10636       $AR cru libconftest.a conftest.o 2>&5
10637       echo "$RANLIB libconftest.a" >&5
10638       $RANLIB libconftest.a 2>&5
10639       cat > conftest.c << _LT_EOF
10640 int main() { return 0;}
10641 _LT_EOF
10642       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10643       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10644       _lt_result=$?
10645       if test -s conftest.err && $GREP force_load conftest.err; then
10646         cat conftest.err >&5
10647       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10648         lt_cv_ld_force_load=yes
10649       else
10650         cat conftest.err >&5
10651       fi
10652         rm -f conftest.err libconftest.a conftest conftest.c
10653         rm -rf conftest.dSYM
10654
10655 fi
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10657 $as_echo "$lt_cv_ld_force_load" >&6; }
10658     case $host_os in
10659     rhapsody* | darwin1.[012])
10660       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10661     darwin1.*)
10662       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10663     darwin*) # darwin 5.x on
10664       # if running on 10.5 or later, the deployment target defaults
10665       # to the OS version, if on x86, and 10.4, the deployment
10666       # target defaults to 10.4. Don't you love it?
10667       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10668         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10669           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10670         10.[012][,.]*)
10671           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10672         10.*)
10673           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10674       esac
10675     ;;
10676   esac
10677     if test yes = "$lt_cv_apple_cc_single_mod"; then
10678       _lt_dar_single_mod='$single_module'
10679     fi
10680     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10681       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10682     else
10683       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10684     fi
10685     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10686       _lt_dsymutil='~$DSYMUTIL $lib || :'
10687     else
10688       _lt_dsymutil=
10689     fi
10690     ;;
10691   esac
10692
10693 # func_munge_path_list VARIABLE PATH
10694 # -----------------------------------
10695 # VARIABLE is name of variable containing _space_ separated list of
10696 # directories to be munged by the contents of PATH, which is string
10697 # having a format:
10698 # "DIR[:DIR]:"
10699 #       string "DIR[ DIR]" will be prepended to VARIABLE
10700 # ":DIR[:DIR]"
10701 #       string "DIR[ DIR]" will be appended to VARIABLE
10702 # "DIRP[:DIRP]::[DIRA:]DIRA"
10703 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10704 #       "DIRA[ DIRA]" will be appended to VARIABLE
10705 # "DIR[:DIR]"
10706 #       VARIABLE will be replaced by "DIR[ DIR]"
10707 func_munge_path_list ()
10708 {
10709     case x$2 in
10710     x)
10711         ;;
10712     *:)
10713         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10714         ;;
10715     x:*)
10716         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10717         ;;
10718     *::*)
10719         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10720         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10721         ;;
10722     *)
10723         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10724         ;;
10725     esac
10726 }
10727
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10729 $as_echo_n "checking for ANSI C header files... " >&6; }
10730 if ${ac_cv_header_stdc+:} false; then :
10731   $as_echo_n "(cached) " >&6
10732 else
10733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h.  */
10735 #include <stdlib.h>
10736 #include <stdarg.h>
10737 #include <string.h>
10738 #include <float.h>
10739
10740 int main (void)
10741 {
10742
10743  ;
10744  return 0;
10745 }
10746 _ACEOF
10747 if ac_fn_c_try_compile "$LINENO"; then :
10748   ac_cv_header_stdc=yes
10749 else
10750   ac_cv_header_stdc=no
10751 fi
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753
10754 if test $ac_cv_header_stdc = yes; then
10755   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h.  */
10758 #include <string.h>
10759
10760 _ACEOF
10761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10762   $EGREP "memchr" >/dev/null 2>&1; then :
10763
10764 else
10765   ac_cv_header_stdc=no
10766 fi
10767 rm -f conftest*
10768
10769 fi
10770
10771 if test $ac_cv_header_stdc = yes; then
10772   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h.  */
10775 #include <stdlib.h>
10776
10777 _ACEOF
10778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10779   $EGREP "free" >/dev/null 2>&1; then :
10780
10781 else
10782   ac_cv_header_stdc=no
10783 fi
10784 rm -f conftest*
10785
10786 fi
10787
10788 if test $ac_cv_header_stdc = yes; then
10789   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10790   if test "$cross_compiling" = yes; then :
10791   :
10792 else
10793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h.  */
10795 #include <ctype.h>
10796 #include <stdlib.h>
10797 #if ((' ' & 0x0FF) == 0x020)
10798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10800 #else
10801 # define ISLOWER(c) \
10802                    (('a' <= (c) && (c) <= 'i') \
10803                      || ('j' <= (c) && (c) <= 'r') \
10804                      || ('s' <= (c) && (c) <= 'z'))
10805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10806 #endif
10807
10808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10809 int
10810 main ()
10811 {
10812   int i;
10813   for (i = 0; i < 256; i++)
10814     if (XOR (islower (i), ISLOWER (i))
10815         || toupper (i) != TOUPPER (i))
10816       return 2;
10817   return 0;
10818 }
10819 _ACEOF
10820 if ac_fn_c_try_run "$LINENO"; then :
10821
10822 else
10823   ac_cv_header_stdc=no
10824 fi
10825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10826   conftest.$ac_objext conftest.beam conftest.$ac_ext
10827 fi
10828
10829 fi
10830 fi
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10832 $as_echo "$ac_cv_header_stdc" >&6; }
10833 if test $ac_cv_header_stdc = yes; then
10834
10835 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10836
10837 fi
10838
10839 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10840 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10841                   inttypes.h stdint.h unistd.h
10842 do :
10843   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10844 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10845 "
10846 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10847   cat >>confdefs.h <<_ACEOF
10848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10849 _ACEOF
10850
10851 fi
10852
10853 done
10854
10855
10856 for ac_header in dlfcn.h
10857 do :
10858   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10859 "
10860 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10861   cat >>confdefs.h <<_ACEOF
10862 #define HAVE_DLFCN_H 1
10863 _ACEOF
10864
10865 fi
10866
10867 done
10868
10869 # ------------------------------------ #
10870 #  Determine libtool default behavior  #
10871 # ------------------------------------ #
10872
10873 #
10874 # Default behavior is to enable shared and static libraries on systems
10875 # where libtool knows how to build both library versions, and does not
10876 # require separate configuration and build runs for each flavor.
10877 #
10878
10879 xc_lt_want_enable_shared='yes'
10880 xc_lt_want_enable_static='yes'
10881
10882 #
10883 # User may have disabled shared or static libraries.
10884 #
10885 case "x$enable_shared" in # (
10886   xno)
10887     xc_lt_want_enable_shared='no'
10888     ;;
10889 esac
10890 case "x$enable_static" in # (
10891   xno)
10892     xc_lt_want_enable_static='no'
10893     ;;
10894 esac
10895 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10896   test "x$xc_lt_want_enable_static" = 'xno'; then
10897   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10898 fi
10899
10900 #
10901 # Default behavior on systems that require independent configuration
10902 # and build runs for shared and static is to enable shared libraries
10903 # and disable static ones. On these systems option '--disable-shared'
10904 # must be used in order to build a proper static library.
10905 #
10906
10907 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10908   test "x$xc_lt_want_enable_static" = 'xyes'; then
10909   case $host_os in # (
10910     pw32* | cegcc* | os2* | aix*)
10911       xc_lt_want_enable_static='no'
10912       ;;
10913   esac
10914 fi
10915
10916 #
10917 # Make libtool aware of current shared and static library preferences
10918 # taking in account that, depending on host characteristics, libtool
10919 # may modify these option preferences later in this configure script.
10920 #
10921
10922 enable_shared=$xc_lt_want_enable_shared
10923 enable_static=$xc_lt_want_enable_static
10924
10925 #
10926 # Default behavior is to build PIC objects for shared libraries and
10927 # non-PIC objects for static libraries.
10928 #
10929
10930 xc_lt_want_with_pic='default'
10931
10932 #
10933 # User may have specified PIC preference.
10934 #
10935
10936 case "x$with_pic" in # ((
10937   xno)
10938     xc_lt_want_with_pic='no'
10939     ;;
10940   xyes)
10941     xc_lt_want_with_pic='yes'
10942     ;;
10943 esac
10944
10945 #
10946 # Default behavior on some systems where building a shared library out
10947 # of non-PIC compiled objects will fail with following linker error
10948 # "relocation R_X86_64_32 can not be used when making a shared object"
10949 # is to build PIC objects even for static libraries. This behavior may
10950 # be overridden using 'configure --disable-shared --without-pic'.
10951 #
10952
10953 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10954   case $host_cpu in # (
10955     x86_64 | amd64 | ia64)
10956       case $host_os in # (
10957         linux* | freebsd*)
10958           xc_lt_want_with_pic='yes'
10959           ;;
10960       esac
10961       ;;
10962   esac
10963 fi
10964
10965 #
10966 # Make libtool aware of current PIC preference taking in account that,
10967 # depending on host characteristics, libtool may modify PIC default
10968 # behavior to fit host system idiosyncrasies later in this script.
10969 #
10970
10971 with_pic=$xc_lt_want_with_pic
10972
10973 ## ----------------------- ##
10974 ##  Start of libtool code  ##
10975 ## ----------------------- ##
10976
10977
10978
10979
10980 # Set options
10981 enable_win32_dll=yes
10982
10983 case $host in
10984 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10985   if test -n "$ac_tool_prefix"; then
10986   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10987 set dummy ${ac_tool_prefix}as; ac_word=$2
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10989 $as_echo_n "checking for $ac_word... " >&6; }
10990 if ${ac_cv_prog_AS+:} false; then :
10991   $as_echo_n "(cached) " >&6
10992 else
10993   if test -n "$AS"; then
10994   ac_cv_prog_AS="$AS" # Let the user override the test.
10995 else
10996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997 for as_dir in $PATH
10998 do
10999   IFS=$as_save_IFS
11000   test -z "$as_dir" && as_dir=.
11001     for ac_exec_ext in '' $ac_executable_extensions; do
11002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11003     ac_cv_prog_AS="${ac_tool_prefix}as"
11004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11005     break 2
11006   fi
11007 done
11008   done
11009 IFS=$as_save_IFS
11010
11011 fi
11012 fi
11013 AS=$ac_cv_prog_AS
11014 if test -n "$AS"; then
11015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11016 $as_echo "$AS" >&6; }
11017 else
11018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019 $as_echo "no" >&6; }
11020 fi
11021
11022
11023 fi
11024 if test -z "$ac_cv_prog_AS"; then
11025   ac_ct_AS=$AS
11026   # Extract the first word of "as", so it can be a program name with args.
11027 set dummy as; ac_word=$2
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11029 $as_echo_n "checking for $ac_word... " >&6; }
11030 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11031   $as_echo_n "(cached) " >&6
11032 else
11033   if test -n "$ac_ct_AS"; then
11034   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11035 else
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in $PATH
11038 do
11039   IFS=$as_save_IFS
11040   test -z "$as_dir" && as_dir=.
11041     for ac_exec_ext in '' $ac_executable_extensions; do
11042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11043     ac_cv_prog_ac_ct_AS="as"
11044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11045     break 2
11046   fi
11047 done
11048   done
11049 IFS=$as_save_IFS
11050
11051 fi
11052 fi
11053 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11054 if test -n "$ac_ct_AS"; then
11055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11056 $as_echo "$ac_ct_AS" >&6; }
11057 else
11058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059 $as_echo "no" >&6; }
11060 fi
11061
11062   if test "x$ac_ct_AS" = x; then
11063     AS="false"
11064   else
11065     case $cross_compiling:$ac_tool_warned in
11066 yes:)
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11069 ac_tool_warned=yes ;;
11070 esac
11071     AS=$ac_ct_AS
11072   fi
11073 else
11074   AS="$ac_cv_prog_AS"
11075 fi
11076
11077   if test -n "$ac_tool_prefix"; then
11078   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11079 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081 $as_echo_n "checking for $ac_word... " >&6; }
11082 if ${ac_cv_prog_DLLTOOL+:} false; then :
11083   $as_echo_n "(cached) " >&6
11084 else
11085   if test -n "$DLLTOOL"; then
11086   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11087 else
11088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089 for as_dir in $PATH
11090 do
11091   IFS=$as_save_IFS
11092   test -z "$as_dir" && as_dir=.
11093     for ac_exec_ext in '' $ac_executable_extensions; do
11094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11095     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11097     break 2
11098   fi
11099 done
11100   done
11101 IFS=$as_save_IFS
11102
11103 fi
11104 fi
11105 DLLTOOL=$ac_cv_prog_DLLTOOL
11106 if test -n "$DLLTOOL"; then
11107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11108 $as_echo "$DLLTOOL" >&6; }
11109 else
11110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 $as_echo "no" >&6; }
11112 fi
11113
11114
11115 fi
11116 if test -z "$ac_cv_prog_DLLTOOL"; then
11117   ac_ct_DLLTOOL=$DLLTOOL
11118   # Extract the first word of "dlltool", so it can be a program name with args.
11119 set dummy dlltool; ac_word=$2
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11121 $as_echo_n "checking for $ac_word... " >&6; }
11122 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11123   $as_echo_n "(cached) " >&6
11124 else
11125   if test -n "$ac_ct_DLLTOOL"; then
11126   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11127 else
11128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129 for as_dir in $PATH
11130 do
11131   IFS=$as_save_IFS
11132   test -z "$as_dir" && as_dir=.
11133     for ac_exec_ext in '' $ac_executable_extensions; do
11134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11135     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11137     break 2
11138   fi
11139 done
11140   done
11141 IFS=$as_save_IFS
11142
11143 fi
11144 fi
11145 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11146 if test -n "$ac_ct_DLLTOOL"; then
11147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11148 $as_echo "$ac_ct_DLLTOOL" >&6; }
11149 else
11150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11152 fi
11153
11154   if test "x$ac_ct_DLLTOOL" = x; then
11155     DLLTOOL="false"
11156   else
11157     case $cross_compiling:$ac_tool_warned in
11158 yes:)
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11161 ac_tool_warned=yes ;;
11162 esac
11163     DLLTOOL=$ac_ct_DLLTOOL
11164   fi
11165 else
11166   DLLTOOL="$ac_cv_prog_DLLTOOL"
11167 fi
11168
11169   if test -n "$ac_tool_prefix"; then
11170   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11171 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11173 $as_echo_n "checking for $ac_word... " >&6; }
11174 if ${ac_cv_prog_OBJDUMP+:} false; then :
11175   $as_echo_n "(cached) " >&6
11176 else
11177   if test -n "$OBJDUMP"; then
11178   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11179 else
11180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181 for as_dir in $PATH
11182 do
11183   IFS=$as_save_IFS
11184   test -z "$as_dir" && as_dir=.
11185     for ac_exec_ext in '' $ac_executable_extensions; do
11186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11187     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11189     break 2
11190   fi
11191 done
11192   done
11193 IFS=$as_save_IFS
11194
11195 fi
11196 fi
11197 OBJDUMP=$ac_cv_prog_OBJDUMP
11198 if test -n "$OBJDUMP"; then
11199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11200 $as_echo "$OBJDUMP" >&6; }
11201 else
11202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203 $as_echo "no" >&6; }
11204 fi
11205
11206
11207 fi
11208 if test -z "$ac_cv_prog_OBJDUMP"; then
11209   ac_ct_OBJDUMP=$OBJDUMP
11210   # Extract the first word of "objdump", so it can be a program name with args.
11211 set dummy objdump; ac_word=$2
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213 $as_echo_n "checking for $ac_word... " >&6; }
11214 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11215   $as_echo_n "(cached) " >&6
11216 else
11217   if test -n "$ac_ct_OBJDUMP"; then
11218   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11219 else
11220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221 for as_dir in $PATH
11222 do
11223   IFS=$as_save_IFS
11224   test -z "$as_dir" && as_dir=.
11225     for ac_exec_ext in '' $ac_executable_extensions; do
11226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11227     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11229     break 2
11230   fi
11231 done
11232   done
11233 IFS=$as_save_IFS
11234
11235 fi
11236 fi
11237 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11238 if test -n "$ac_ct_OBJDUMP"; then
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11240 $as_echo "$ac_ct_OBJDUMP" >&6; }
11241 else
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11244 fi
11245
11246   if test "x$ac_ct_OBJDUMP" = x; then
11247     OBJDUMP="false"
11248   else
11249     case $cross_compiling:$ac_tool_warned in
11250 yes:)
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11253 ac_tool_warned=yes ;;
11254 esac
11255     OBJDUMP=$ac_ct_OBJDUMP
11256   fi
11257 else
11258   OBJDUMP="$ac_cv_prog_OBJDUMP"
11259 fi
11260
11261   ;;
11262 esac
11263
11264 test -z "$AS" && AS=as
11265
11266
11267
11268
11269
11270 test -z "$DLLTOOL" && DLLTOOL=dlltool
11271
11272
11273
11274
11275
11276 test -z "$OBJDUMP" && OBJDUMP=objdump
11277
11278
11279
11280
11281
11282
11283
11284         enable_dlopen=no
11285
11286
11287
11288             # Check whether --enable-shared was given.
11289 if test "${enable_shared+set}" = set; then :
11290   enableval=$enable_shared; p=${PACKAGE-default}
11291     case $enableval in
11292     yes) enable_shared=yes ;;
11293     no) enable_shared=no ;;
11294     *)
11295       enable_shared=no
11296       # Look at the argument we got.  We use all the common list separators.
11297       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11298       for pkg in $enableval; do
11299         IFS=$lt_save_ifs
11300         if test "X$pkg" = "X$p"; then
11301           enable_shared=yes
11302         fi
11303       done
11304       IFS=$lt_save_ifs
11305       ;;
11306     esac
11307 else
11308   enable_shared=yes
11309 fi
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319   # Check whether --enable-static was given.
11320 if test "${enable_static+set}" = set; then :
11321   enableval=$enable_static; p=${PACKAGE-default}
11322     case $enableval in
11323     yes) enable_static=yes ;;
11324     no) enable_static=no ;;
11325     *)
11326      enable_static=no
11327       # Look at the argument we got.  We use all the common list separators.
11328       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11329       for pkg in $enableval; do
11330         IFS=$lt_save_ifs
11331         if test "X$pkg" = "X$p"; then
11332           enable_static=yes
11333         fi
11334       done
11335       IFS=$lt_save_ifs
11336       ;;
11337     esac
11338 else
11339   enable_static=yes
11340 fi
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351 # Check whether --with-pic was given.
11352 if test "${with_pic+set}" = set; then :
11353   withval=$with_pic; lt_p=${PACKAGE-default}
11354     case $withval in
11355     yes|no) pic_mode=$withval ;;
11356     *)
11357       pic_mode=default
11358       # Look at the argument we got.  We use all the common list separators.
11359       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11360       for lt_pkg in $withval; do
11361         IFS=$lt_save_ifs
11362         if test "X$lt_pkg" = "X$lt_p"; then
11363           pic_mode=yes
11364         fi
11365       done
11366       IFS=$lt_save_ifs
11367       ;;
11368     esac
11369 else
11370   pic_mode=default
11371 fi
11372
11373
11374
11375
11376
11377
11378
11379
11380   # Check whether --enable-fast-install was given.
11381 if test "${enable_fast_install+set}" = set; then :
11382   enableval=$enable_fast_install; p=${PACKAGE-default}
11383     case $enableval in
11384     yes) enable_fast_install=yes ;;
11385     no) enable_fast_install=no ;;
11386     *)
11387       enable_fast_install=no
11388       # Look at the argument we got.  We use all the common list separators.
11389       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11390       for pkg in $enableval; do
11391         IFS=$lt_save_ifs
11392         if test "X$pkg" = "X$p"; then
11393           enable_fast_install=yes
11394         fi
11395       done
11396       IFS=$lt_save_ifs
11397       ;;
11398     esac
11399 else
11400   enable_fast_install=yes
11401 fi
11402
11403
11404
11405
11406
11407
11408
11409
11410   shared_archive_member_spec=
11411 case $host,$enable_shared in
11412 power*-*-aix[5-9]*,yes)
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11414 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11415
11416 # Check whether --with-aix-soname was given.
11417 if test "${with_aix_soname+set}" = set; then :
11418   withval=$with_aix_soname; case $withval in
11419     aix|svr4|both)
11420       ;;
11421     *)
11422       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11423       ;;
11424     esac
11425     lt_cv_with_aix_soname=$with_aix_soname
11426 else
11427   if ${lt_cv_with_aix_soname+:} false; then :
11428   $as_echo_n "(cached) " >&6
11429 else
11430   lt_cv_with_aix_soname=aix
11431 fi
11432
11433     with_aix_soname=$lt_cv_with_aix_soname
11434 fi
11435
11436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11437 $as_echo "$with_aix_soname" >&6; }
11438   if test aix != "$with_aix_soname"; then
11439     # For the AIX way of multilib, we name the shared archive member
11440     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11441     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11442     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11443     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11444     if test 64 = "${OBJECT_MODE-32}"; then
11445       shared_archive_member_spec=shr_64
11446     else
11447       shared_archive_member_spec=shr
11448     fi
11449   fi
11450   ;;
11451 *)
11452   with_aix_soname=aix
11453   ;;
11454 esac
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465 # This can be used to rebuild libtool when needed
11466 LIBTOOL_DEPS=$ltmain
11467
11468 # Always use our own libtool.
11469 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500 test -z "$LN_S" && LN_S="ln -s"
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515 if test -n "${ZSH_VERSION+set}"; then
11516    setopt NO_GLOB_SUBST
11517 fi
11518
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11520 $as_echo_n "checking for objdir... " >&6; }
11521 if ${lt_cv_objdir+:} false; then :
11522   $as_echo_n "(cached) " >&6
11523 else
11524   rm -f .libs 2>/dev/null
11525 mkdir .libs 2>/dev/null
11526 if test -d .libs; then
11527   lt_cv_objdir=.libs
11528 else
11529   # MS-DOS does not allow filenames that begin with a dot.
11530   lt_cv_objdir=_libs
11531 fi
11532 rmdir .libs 2>/dev/null
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11535 $as_echo "$lt_cv_objdir" >&6; }
11536 objdir=$lt_cv_objdir
11537
11538
11539
11540
11541
11542 cat >>confdefs.h <<_ACEOF
11543 #define LT_OBJDIR "$lt_cv_objdir/"
11544 _ACEOF
11545
11546
11547
11548
11549 case $host_os in
11550 aix3*)
11551   # AIX sometimes has problems with the GCC collect2 program.  For some
11552   # reason, if we set the COLLECT_NAMES environment variable, the problems
11553   # vanish in a puff of smoke.
11554   if test set != "${COLLECT_NAMES+set}"; then
11555     COLLECT_NAMES=
11556     export COLLECT_NAMES
11557   fi
11558   ;;
11559 esac
11560
11561 # Global variables:
11562 ofile=libtool
11563 can_build_shared=yes
11564
11565 # All known linkers require a '.a' archive for static linking (except MSVC,
11566 # which needs '.lib').
11567 libext=a
11568
11569 with_gnu_ld=$lt_cv_prog_gnu_ld
11570
11571 old_CC=$CC
11572 old_CFLAGS=$CFLAGS
11573
11574 # Set sane defaults for various variables
11575 test -z "$CC" && CC=cc
11576 test -z "$LTCC" && LTCC=$CC
11577 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11578 test -z "$LD" && LD=ld
11579 test -z "$ac_objext" && ac_objext=o
11580
11581 func_cc_basename $compiler
11582 cc_basename=$func_cc_basename_result
11583
11584
11585 # Only perform the check for file, if the check method requires it
11586 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11587 case $deplibs_check_method in
11588 file_magic*)
11589   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11591 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11592 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11593   $as_echo_n "(cached) " >&6
11594 else
11595   case $MAGIC_CMD in
11596 [\\/*] |  ?:[\\/]*)
11597   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11598   ;;
11599 *)
11600   lt_save_MAGIC_CMD=$MAGIC_CMD
11601   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11602   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11603   for ac_dir in $ac_dummy; do
11604     IFS=$lt_save_ifs
11605     test -z "$ac_dir" && ac_dir=.
11606     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11607       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11608       if test -n "$file_magic_test_file"; then
11609         case $deplibs_check_method in
11610         "file_magic "*)
11611           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11612           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11613           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11614             $EGREP "$file_magic_regex" > /dev/null; then
11615             :
11616           else
11617             cat <<_LT_EOF 1>&2
11618
11619 *** Warning: the command libtool uses to detect shared libraries,
11620 *** $file_magic_cmd, produces output that libtool cannot recognize.
11621 *** The result is that libtool may fail to recognize shared libraries
11622 *** as such.  This will affect the creation of libtool libraries that
11623 *** depend on shared libraries, but programs linked with such libtool
11624 *** libraries will work regardless of this problem.  Nevertheless, you
11625 *** may want to report the problem to your system manager and/or to
11626 *** bug-libtool@gnu.org
11627
11628 _LT_EOF
11629           fi ;;
11630         esac
11631       fi
11632       break
11633     fi
11634   done
11635   IFS=$lt_save_ifs
11636   MAGIC_CMD=$lt_save_MAGIC_CMD
11637   ;;
11638 esac
11639 fi
11640
11641 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11642 if test -n "$MAGIC_CMD"; then
11643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11644 $as_echo "$MAGIC_CMD" >&6; }
11645 else
11646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11648 fi
11649
11650
11651
11652
11653
11654 if test -z "$lt_cv_path_MAGIC_CMD"; then
11655   if test -n "$ac_tool_prefix"; then
11656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11657 $as_echo_n "checking for file... " >&6; }
11658 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11659   $as_echo_n "(cached) " >&6
11660 else
11661   case $MAGIC_CMD in
11662 [\\/*] |  ?:[\\/]*)
11663   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11664   ;;
11665 *)
11666   lt_save_MAGIC_CMD=$MAGIC_CMD
11667   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11668   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11669   for ac_dir in $ac_dummy; do
11670     IFS=$lt_save_ifs
11671     test -z "$ac_dir" && ac_dir=.
11672     if test -f "$ac_dir/file"; then
11673       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11674       if test -n "$file_magic_test_file"; then
11675         case $deplibs_check_method in
11676         "file_magic "*)
11677           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11678           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11679           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11680             $EGREP "$file_magic_regex" > /dev/null; then
11681             :
11682           else
11683             cat <<_LT_EOF 1>&2
11684
11685 *** Warning: the command libtool uses to detect shared libraries,
11686 *** $file_magic_cmd, produces output that libtool cannot recognize.
11687 *** The result is that libtool may fail to recognize shared libraries
11688 *** as such.  This will affect the creation of libtool libraries that
11689 *** depend on shared libraries, but programs linked with such libtool
11690 *** libraries will work regardless of this problem.  Nevertheless, you
11691 *** may want to report the problem to your system manager and/or to
11692 *** bug-libtool@gnu.org
11693
11694 _LT_EOF
11695           fi ;;
11696         esac
11697       fi
11698       break
11699     fi
11700   done
11701   IFS=$lt_save_ifs
11702   MAGIC_CMD=$lt_save_MAGIC_CMD
11703   ;;
11704 esac
11705 fi
11706
11707 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11708 if test -n "$MAGIC_CMD"; then
11709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11710 $as_echo "$MAGIC_CMD" >&6; }
11711 else
11712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 $as_echo "no" >&6; }
11714 fi
11715
11716
11717   else
11718     MAGIC_CMD=:
11719   fi
11720 fi
11721
11722   fi
11723   ;;
11724 esac
11725
11726 # Use C for the default configuration in the libtool script
11727
11728 lt_save_CC=$CC
11729 ac_ext=c
11730 ac_cpp='$CPP $CPPFLAGS'
11731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11734
11735
11736 # Source file extension for C test sources.
11737 ac_ext=c
11738
11739 # Object file extension for compiled C test sources.
11740 objext=o
11741 objext=$objext
11742
11743 # Code to be used in simple compile tests
11744 lt_simple_compile_test_code="int some_variable = 0;"
11745
11746 # Code to be used in simple link tests
11747 lt_simple_link_test_code='int main(){return(0);}'
11748
11749
11750
11751
11752
11753
11754
11755 # If no C compiler was specified, use CC.
11756 LTCC=${LTCC-"$CC"}
11757
11758 # If no C compiler flags were specified, use CFLAGS.
11759 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11760
11761 # Allow CC to be a program name with arguments.
11762 compiler=$CC
11763
11764 # Save the default compiler, since it gets overwritten when the other
11765 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11766 compiler_DEFAULT=$CC
11767
11768 # save warnings/boilerplate of simple test code
11769 ac_outfile=conftest.$ac_objext
11770 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11771 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11772 _lt_compiler_boilerplate=`cat conftest.err`
11773 $RM conftest*
11774
11775 ac_outfile=conftest.$ac_objext
11776 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11777 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11778 _lt_linker_boilerplate=`cat conftest.err`
11779 $RM -r conftest*
11780
11781
11782 ## CAVEAT EMPTOR:
11783 ## There is no encapsulation within the following macros, do not change
11784 ## the running order or otherwise move them around unless you know exactly
11785 ## what you are doing...
11786 if test -n "$compiler"; then
11787
11788 lt_prog_compiler_no_builtin_flag=
11789
11790 if test yes = "$GCC"; then
11791   case $cc_basename in
11792   nvcc*)
11793     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11794   *)
11795     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11796   esac
11797
11798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11799 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11800 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11801   $as_echo_n "(cached) " >&6
11802 else
11803   lt_cv_prog_compiler_rtti_exceptions=no
11804    ac_outfile=conftest.$ac_objext
11805    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11806    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11807    # Insert the option either (1) after the last *FLAGS variable, or
11808    # (2) before a word containing "conftest.", or (3) at the end.
11809    # Note that $ac_compile itself does not contain backslashes and begins
11810    # with a dollar sign (not a hyphen), so the echo should work correctly.
11811    # The option is referenced via a variable to avoid confusing sed.
11812    lt_compile=`echo "$ac_compile" | $SED \
11813    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11815    -e 's:$: $lt_compiler_flag:'`
11816    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11817    (eval "$lt_compile" 2>conftest.err)
11818    ac_status=$?
11819    cat conftest.err >&5
11820    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821    if (exit $ac_status) && test -s "$ac_outfile"; then
11822      # The compiler can only warn and ignore the option if not recognized
11823      # So say no if there are warnings other than the usual output.
11824      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11825      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11826      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11827        lt_cv_prog_compiler_rtti_exceptions=yes
11828      fi
11829    fi
11830    $RM conftest*
11831
11832 fi
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11834 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11835
11836 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11837     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11838 else
11839     :
11840 fi
11841
11842 fi
11843
11844
11845
11846
11847
11848
11849   lt_prog_compiler_wl=
11850 lt_prog_compiler_pic=
11851 lt_prog_compiler_static=
11852
11853
11854   if test yes = "$GCC"; then
11855     lt_prog_compiler_wl='-Wl,'
11856     lt_prog_compiler_static='-static'
11857
11858     case $host_os in
11859       aix*)
11860       # All AIX code is PIC.
11861       if test ia64 = "$host_cpu"; then
11862         # AIX 5 now supports IA64 processor
11863         lt_prog_compiler_static='-Bstatic'
11864       fi
11865       lt_prog_compiler_pic='-fPIC'
11866       ;;
11867
11868     amigaos*)
11869       case $host_cpu in
11870       powerpc)
11871             # see comment about AmigaOS4 .so support
11872             lt_prog_compiler_pic='-fPIC'
11873         ;;
11874       m68k)
11875             # FIXME: we need at least 68020 code to build shared libraries, but
11876             # adding the '-m68020' flag to GCC prevents building anything better,
11877             # like '-m68040'.
11878             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11879         ;;
11880       esac
11881       ;;
11882
11883     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11884       # PIC is the default for these OSes.
11885       ;;
11886
11887     mingw* | cygwin* | pw32* | os2* | cegcc*)
11888       # This hack is so that the source file can tell whether it is being
11889       # built for inclusion in a dll (and should export symbols for example).
11890       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11891       # (--disable-auto-import) libraries
11892       lt_prog_compiler_pic='-DDLL_EXPORT'
11893       case $host_os in
11894       os2*)
11895         lt_prog_compiler_static='$wl-static'
11896         ;;
11897       esac
11898       ;;
11899
11900     darwin* | rhapsody*)
11901       # PIC is the default on this platform
11902       # Common symbols not allowed in MH_DYLIB files
11903       lt_prog_compiler_pic='-fno-common'
11904       ;;
11905
11906     haiku*)
11907       # PIC is the default for Haiku.
11908       # The "-static" flag exists, but is broken.
11909       lt_prog_compiler_static=
11910       ;;
11911
11912     hpux*)
11913       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11914       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11915       # sets the default TLS model and affects inlining.
11916       case $host_cpu in
11917       hppa*64*)
11918         # +Z the default
11919         ;;
11920       *)
11921         lt_prog_compiler_pic='-fPIC'
11922         ;;
11923       esac
11924       ;;
11925
11926     interix[3-9]*)
11927       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11928       # Instead, we relocate shared libraries at runtime.
11929       ;;
11930
11931     msdosdjgpp*)
11932       # Just because we use GCC doesn't mean we suddenly get shared libraries
11933       # on systems that don't support them.
11934       lt_prog_compiler_can_build_shared=no
11935       enable_shared=no
11936       ;;
11937
11938     *nto* | *qnx*)
11939       # QNX uses GNU C++, but need to define -shared option too, otherwise
11940       # it will coredump.
11941       lt_prog_compiler_pic='-fPIC -shared'
11942       ;;
11943
11944     sysv4*MP*)
11945       if test -d /usr/nec; then
11946         lt_prog_compiler_pic=-Kconform_pic
11947       fi
11948       ;;
11949
11950     *)
11951       lt_prog_compiler_pic='-fPIC'
11952       ;;
11953     esac
11954
11955     case $cc_basename in
11956     nvcc*) # Cuda Compiler Driver 2.2
11957       lt_prog_compiler_wl='-Xlinker '
11958       if test -n "$lt_prog_compiler_pic"; then
11959         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11960       fi
11961       ;;
11962     esac
11963   else
11964     # PORTME Check for flag to pass linker flags through the system compiler.
11965     case $host_os in
11966     aix*)
11967       lt_prog_compiler_wl='-Wl,'
11968       if test ia64 = "$host_cpu"; then
11969         # AIX 5 now supports IA64 processor
11970         lt_prog_compiler_static='-Bstatic'
11971       else
11972         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11973       fi
11974       ;;
11975
11976     darwin* | rhapsody*)
11977       # PIC is the default on this platform
11978       # Common symbols not allowed in MH_DYLIB files
11979       lt_prog_compiler_pic='-fno-common'
11980       case $cc_basename in
11981       nagfor*)
11982         # NAG Fortran compiler
11983         lt_prog_compiler_wl='-Wl,-Wl,,'
11984         lt_prog_compiler_pic='-PIC'
11985         lt_prog_compiler_static='-Bstatic'
11986         ;;
11987       esac
11988       ;;
11989
11990     mingw* | cygwin* | pw32* | os2* | cegcc*)
11991       # This hack is so that the source file can tell whether it is being
11992       # built for inclusion in a dll (and should export symbols for example).
11993       lt_prog_compiler_pic='-DDLL_EXPORT'
11994       case $host_os in
11995       os2*)
11996         lt_prog_compiler_static='$wl-static'
11997         ;;
11998       esac
11999       ;;
12000
12001     hpux9* | hpux10* | hpux11*)
12002       lt_prog_compiler_wl='-Wl,'
12003       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12004       # not for PA HP-UX.
12005       case $host_cpu in
12006       hppa*64*|ia64*)
12007         # +Z the default
12008         ;;
12009       *)
12010         lt_prog_compiler_pic='+Z'
12011         ;;
12012       esac
12013       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12014       lt_prog_compiler_static='$wl-a ${wl}archive'
12015       ;;
12016
12017     irix5* | irix6* | nonstopux*)
12018       lt_prog_compiler_wl='-Wl,'
12019       # PIC (with -KPIC) is the default.
12020       lt_prog_compiler_static='-non_shared'
12021       ;;
12022
12023     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12024       case $cc_basename in
12025       # old Intel for x86_64, which still supported -KPIC.
12026       ecc*)
12027         lt_prog_compiler_wl='-Wl,'
12028         lt_prog_compiler_pic='-KPIC'
12029         lt_prog_compiler_static='-static'
12030         ;;
12031       # icc used to be incompatible with GCC.
12032       # ICC 10 doesn't accept -KPIC any more.
12033       icc* | ifort*)
12034         lt_prog_compiler_wl='-Wl,'
12035         lt_prog_compiler_pic='-fPIC'
12036         lt_prog_compiler_static='-static'
12037         ;;
12038       # Lahey Fortran 8.1.
12039       lf95*)
12040         lt_prog_compiler_wl='-Wl,'
12041         lt_prog_compiler_pic='--shared'
12042         lt_prog_compiler_static='--static'
12043         ;;
12044       nagfor*)
12045         # NAG Fortran compiler
12046         lt_prog_compiler_wl='-Wl,-Wl,,'
12047         lt_prog_compiler_pic='-PIC'
12048         lt_prog_compiler_static='-Bstatic'
12049         ;;
12050       tcc*)
12051         # Fabrice Bellard et al's Tiny C Compiler
12052         lt_prog_compiler_wl='-Wl,'
12053         lt_prog_compiler_pic='-fPIC'
12054         lt_prog_compiler_static='-static'
12055         ;;
12056       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12057         # Portland Group compilers (*not* the Pentium gcc compiler,
12058         # which looks to be a dead project)
12059         lt_prog_compiler_wl='-Wl,'
12060         lt_prog_compiler_pic='-fpic'
12061         lt_prog_compiler_static='-Bstatic'
12062         ;;
12063       ccc*)
12064         lt_prog_compiler_wl='-Wl,'
12065         # All Alpha code is PIC.
12066         lt_prog_compiler_static='-non_shared'
12067         ;;
12068       xl* | bgxl* | bgf* | mpixl*)
12069         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12070         lt_prog_compiler_wl='-Wl,'
12071         lt_prog_compiler_pic='-qpic'
12072         lt_prog_compiler_static='-qstaticlink'
12073         ;;
12074       *)
12075         case `$CC -V 2>&1 | sed 5q` in
12076         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12077           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12078           lt_prog_compiler_pic='-KPIC'
12079           lt_prog_compiler_static='-Bstatic'
12080           lt_prog_compiler_wl=''
12081           ;;
12082         *Sun\ F* | *Sun*Fortran*)
12083           lt_prog_compiler_pic='-KPIC'
12084           lt_prog_compiler_static='-Bstatic'
12085           lt_prog_compiler_wl='-Qoption ld '
12086           ;;
12087         *Sun\ C*)
12088           # Sun C 5.9
12089           lt_prog_compiler_pic='-KPIC'
12090           lt_prog_compiler_static='-Bstatic'
12091           lt_prog_compiler_wl='-Wl,'
12092           ;;
12093         *Intel*\ [CF]*Compiler*)
12094           lt_prog_compiler_wl='-Wl,'
12095           lt_prog_compiler_pic='-fPIC'
12096           lt_prog_compiler_static='-static'
12097           ;;
12098         *Portland\ Group*)
12099           lt_prog_compiler_wl='-Wl,'
12100           lt_prog_compiler_pic='-fpic'
12101           lt_prog_compiler_static='-Bstatic'
12102           ;;
12103         esac
12104         ;;
12105       esac
12106       ;;
12107
12108     newsos6)
12109       lt_prog_compiler_pic='-KPIC'
12110       lt_prog_compiler_static='-Bstatic'
12111       ;;
12112
12113     *nto* | *qnx*)
12114       # QNX uses GNU C++, but need to define -shared option too, otherwise
12115       # it will coredump.
12116       lt_prog_compiler_pic='-fPIC -shared'
12117       ;;
12118
12119     osf3* | osf4* | osf5*)
12120       lt_prog_compiler_wl='-Wl,'
12121       # All OSF/1 code is PIC.
12122       lt_prog_compiler_static='-non_shared'
12123       ;;
12124
12125     rdos*)
12126       lt_prog_compiler_static='-non_shared'
12127       ;;
12128
12129     solaris*)
12130       lt_prog_compiler_pic='-KPIC'
12131       lt_prog_compiler_static='-Bstatic'
12132       case $cc_basename in
12133       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12134         lt_prog_compiler_wl='-Qoption ld ';;
12135       *)
12136         lt_prog_compiler_wl='-Wl,';;
12137       esac
12138       ;;
12139
12140     sunos4*)
12141       lt_prog_compiler_wl='-Qoption ld '
12142       lt_prog_compiler_pic='-PIC'
12143       lt_prog_compiler_static='-Bstatic'
12144       ;;
12145
12146     sysv4 | sysv4.2uw2* | sysv4.3*)
12147       lt_prog_compiler_wl='-Wl,'
12148       lt_prog_compiler_pic='-KPIC'
12149       lt_prog_compiler_static='-Bstatic'
12150       ;;
12151
12152     sysv4*MP*)
12153       if test -d /usr/nec; then
12154         lt_prog_compiler_pic='-Kconform_pic'
12155         lt_prog_compiler_static='-Bstatic'
12156       fi
12157       ;;
12158
12159     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12160       lt_prog_compiler_wl='-Wl,'
12161       lt_prog_compiler_pic='-KPIC'
12162       lt_prog_compiler_static='-Bstatic'
12163       ;;
12164
12165     unicos*)
12166       lt_prog_compiler_wl='-Wl,'
12167       lt_prog_compiler_can_build_shared=no
12168       ;;
12169
12170     uts4*)
12171       lt_prog_compiler_pic='-pic'
12172       lt_prog_compiler_static='-Bstatic'
12173       ;;
12174
12175     *)
12176       lt_prog_compiler_can_build_shared=no
12177       ;;
12178     esac
12179   fi
12180
12181 case $host_os in
12182   # For platforms that do not support PIC, -DPIC is meaningless:
12183   *djgpp*)
12184     lt_prog_compiler_pic=
12185     ;;
12186   *)
12187     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12188     ;;
12189 esac
12190
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12192 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12193 if ${lt_cv_prog_compiler_pic+:} false; then :
12194   $as_echo_n "(cached) " >&6
12195 else
12196   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12197 fi
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12199 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12200 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12201
12202 #
12203 # Check to make sure the PIC flag actually works.
12204 #
12205 if test -n "$lt_prog_compiler_pic"; then
12206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12207 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12208 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12209   $as_echo_n "(cached) " >&6
12210 else
12211   lt_cv_prog_compiler_pic_works=no
12212    ac_outfile=conftest.$ac_objext
12213    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12214    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12215    # Insert the option either (1) after the last *FLAGS variable, or
12216    # (2) before a word containing "conftest.", or (3) at the end.
12217    # Note that $ac_compile itself does not contain backslashes and begins
12218    # with a dollar sign (not a hyphen), so the echo should work correctly.
12219    # The option is referenced via a variable to avoid confusing sed.
12220    lt_compile=`echo "$ac_compile" | $SED \
12221    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12222    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12223    -e 's:$: $lt_compiler_flag:'`
12224    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12225    (eval "$lt_compile" 2>conftest.err)
12226    ac_status=$?
12227    cat conftest.err >&5
12228    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229    if (exit $ac_status) && test -s "$ac_outfile"; then
12230      # The compiler can only warn and ignore the option if not recognized
12231      # So say no if there are warnings other than the usual output.
12232      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12233      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12234      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12235        lt_cv_prog_compiler_pic_works=yes
12236      fi
12237    fi
12238    $RM conftest*
12239
12240 fi
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12242 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12243
12244 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12245     case $lt_prog_compiler_pic in
12246      "" | " "*) ;;
12247      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12248      esac
12249 else
12250     lt_prog_compiler_pic=
12251      lt_prog_compiler_can_build_shared=no
12252 fi
12253
12254 fi
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266 #
12267 # Check to make sure the static flag actually works.
12268 #
12269 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12271 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12272 if ${lt_cv_prog_compiler_static_works+:} false; then :
12273   $as_echo_n "(cached) " >&6
12274 else
12275   lt_cv_prog_compiler_static_works=no
12276    save_LDFLAGS=$LDFLAGS
12277    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12278    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12279    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12280      # The linker can only warn and ignore the option if not recognized
12281      # So say no if there are warnings
12282      if test -s conftest.err; then
12283        # Append any errors to the config.log.
12284        cat conftest.err 1>&5
12285        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12286        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12287        if diff conftest.exp conftest.er2 >/dev/null; then
12288          lt_cv_prog_compiler_static_works=yes
12289        fi
12290      else
12291        lt_cv_prog_compiler_static_works=yes
12292      fi
12293    fi
12294    $RM -r conftest*
12295    LDFLAGS=$save_LDFLAGS
12296
12297 fi
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12299 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12300
12301 if test yes = "$lt_cv_prog_compiler_static_works"; then
12302     :
12303 else
12304     lt_prog_compiler_static=
12305 fi
12306
12307
12308
12309
12310
12311
12312
12313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12314 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12315 if ${lt_cv_prog_compiler_c_o+:} false; then :
12316   $as_echo_n "(cached) " >&6
12317 else
12318   lt_cv_prog_compiler_c_o=no
12319    $RM -r conftest 2>/dev/null
12320    mkdir conftest
12321    cd conftest
12322    mkdir out
12323    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12324
12325    lt_compiler_flag="-o out/conftest2.$ac_objext"
12326    # Insert the option either (1) after the last *FLAGS variable, or
12327    # (2) before a word containing "conftest.", or (3) at the end.
12328    # Note that $ac_compile itself does not contain backslashes and begins
12329    # with a dollar sign (not a hyphen), so the echo should work correctly.
12330    lt_compile=`echo "$ac_compile" | $SED \
12331    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12332    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12333    -e 's:$: $lt_compiler_flag:'`
12334    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12335    (eval "$lt_compile" 2>out/conftest.err)
12336    ac_status=$?
12337    cat out/conftest.err >&5
12338    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12340    then
12341      # The compiler can only warn and ignore the option if not recognized
12342      # So say no if there are warnings
12343      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12344      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12345      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12346        lt_cv_prog_compiler_c_o=yes
12347      fi
12348    fi
12349    chmod u+w . 2>&5
12350    $RM conftest*
12351    # SGI C++ compiler will create directory out/ii_files/ for
12352    # template instantiation
12353    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12354    $RM out/* && rmdir out
12355    cd ..
12356    $RM -r conftest
12357    $RM conftest*
12358
12359 fi
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12361 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12362
12363
12364
12365
12366
12367
12368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12369 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12370 if ${lt_cv_prog_compiler_c_o+:} false; then :
12371   $as_echo_n "(cached) " >&6
12372 else
12373   lt_cv_prog_compiler_c_o=no
12374    $RM -r conftest 2>/dev/null
12375    mkdir conftest
12376    cd conftest
12377    mkdir out
12378    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12379
12380    lt_compiler_flag="-o out/conftest2.$ac_objext"
12381    # Insert the option either (1) after the last *FLAGS variable, or
12382    # (2) before a word containing "conftest.", or (3) at the end.
12383    # Note that $ac_compile itself does not contain backslashes and begins
12384    # with a dollar sign (not a hyphen), so the echo should work correctly.
12385    lt_compile=`echo "$ac_compile" | $SED \
12386    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12387    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12388    -e 's:$: $lt_compiler_flag:'`
12389    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12390    (eval "$lt_compile" 2>out/conftest.err)
12391    ac_status=$?
12392    cat out/conftest.err >&5
12393    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12395    then
12396      # The compiler can only warn and ignore the option if not recognized
12397      # So say no if there are warnings
12398      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12399      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12400      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12401        lt_cv_prog_compiler_c_o=yes
12402      fi
12403    fi
12404    chmod u+w . 2>&5
12405    $RM conftest*
12406    # SGI C++ compiler will create directory out/ii_files/ for
12407    # template instantiation
12408    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12409    $RM out/* && rmdir out
12410    cd ..
12411    $RM -r conftest
12412    $RM conftest*
12413
12414 fi
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12416 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12417
12418
12419
12420
12421 hard_links=nottested
12422 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12423   # do not overwrite the value of need_locks provided by the user
12424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12425 $as_echo_n "checking if we can lock with hard links... " >&6; }
12426   hard_links=yes
12427   $RM conftest*
12428   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12429   touch conftest.a
12430   ln conftest.a conftest.b 2>&5 || hard_links=no
12431   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12433 $as_echo "$hard_links" >&6; }
12434   if test no = "$hard_links"; then
12435     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12436 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12437     need_locks=warn
12438   fi
12439 else
12440   need_locks=no
12441 fi
12442
12443
12444
12445
12446
12447
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12449 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12450
12451   runpath_var=
12452   allow_undefined_flag=
12453   always_export_symbols=no
12454   archive_cmds=
12455   archive_expsym_cmds=
12456   compiler_needs_object=no
12457   enable_shared_with_static_runtimes=no
12458   export_dynamic_flag_spec=
12459   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12460   hardcode_automatic=no
12461   hardcode_direct=no
12462   hardcode_direct_absolute=no
12463   hardcode_libdir_flag_spec=
12464   hardcode_libdir_separator=
12465   hardcode_minus_L=no
12466   hardcode_shlibpath_var=unsupported
12467   inherit_rpath=no
12468   link_all_deplibs=unknown
12469   module_cmds=
12470   module_expsym_cmds=
12471   old_archive_from_new_cmds=
12472   old_archive_from_expsyms_cmds=
12473   thread_safe_flag_spec=
12474   whole_archive_flag_spec=
12475   # include_expsyms should be a list of space-separated symbols to be *always*
12476   # included in the symbol list
12477   include_expsyms=
12478   # exclude_expsyms can be an extended regexp of symbols to exclude
12479   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12480   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12481   # as well as any symbol that contains 'd'.
12482   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12483   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12484   # platforms (ab)use it in PIC code, but their linkers get confused if
12485   # the symbol is explicitly referenced.  Since portable code cannot
12486   # rely on this symbol name, it's probably fine to never include it in
12487   # preloaded symbol tables.
12488   # Exclude shared library initialization/finalization symbols.
12489   extract_expsyms_cmds=
12490
12491   case $host_os in
12492   cygwin* | mingw* | pw32* | cegcc*)
12493     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12494     # When not using gcc, we currently assume that we are using
12495     # Microsoft Visual C++.
12496     if test yes != "$GCC"; then
12497       with_gnu_ld=no
12498     fi
12499     ;;
12500   interix*)
12501     # we just hope/assume this is gcc and not c89 (= MSVC++)
12502     with_gnu_ld=yes
12503     ;;
12504   openbsd* | bitrig*)
12505     with_gnu_ld=no
12506     ;;
12507   linux* | k*bsd*-gnu | gnu*)
12508     link_all_deplibs=no
12509     ;;
12510   esac
12511
12512   ld_shlibs=yes
12513
12514   # On some targets, GNU ld is compatible enough with the native linker
12515   # that we're better off using the native interface for both.
12516   lt_use_gnu_ld_interface=no
12517   if test yes = "$with_gnu_ld"; then
12518     case $host_os in
12519       aix*)
12520         # The AIX port of GNU ld has always aspired to compatibility
12521         # with the native linker.  However, as the warning in the GNU ld
12522         # block says, versions before 2.19.5* couldn't really create working
12523         # shared libraries, regardless of the interface used.
12524         case `$LD -v 2>&1` in
12525           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12526           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12527           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12528           *)
12529             lt_use_gnu_ld_interface=yes
12530             ;;
12531         esac
12532         ;;
12533       *)
12534         lt_use_gnu_ld_interface=yes
12535         ;;
12536     esac
12537   fi
12538
12539   if test yes = "$lt_use_gnu_ld_interface"; then
12540     # If archive_cmds runs LD, not CC, wlarc should be empty
12541     wlarc='$wl'
12542
12543     # Set some defaults for GNU ld with shared library support. These
12544     # are reset later if shared libraries are not supported. Putting them
12545     # here allows them to be overridden if necessary.
12546     runpath_var=LD_RUN_PATH
12547     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12548     export_dynamic_flag_spec='$wl--export-dynamic'
12549     # ancient GNU ld didn't support --whole-archive et. al.
12550     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12551       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12552     else
12553       whole_archive_flag_spec=
12554     fi
12555     supports_anon_versioning=no
12556     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12557       *GNU\ gold*) supports_anon_versioning=yes ;;
12558       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12559       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12560       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12561       *\ 2.11.*) ;; # other 2.11 versions
12562       *) supports_anon_versioning=yes ;;
12563     esac
12564
12565     # See if GNU ld supports shared libraries.
12566     case $host_os in
12567     aix[3-9]*)
12568       # On AIX/PPC, the GNU linker is very broken
12569       if test ia64 != "$host_cpu"; then
12570         ld_shlibs=no
12571         cat <<_LT_EOF 1>&2
12572
12573 *** Warning: the GNU linker, at least up to release 2.19, is reported
12574 *** to be unable to reliably create shared libraries on AIX.
12575 *** Therefore, libtool is disabling shared libraries support.  If you
12576 *** really care for shared libraries, you may want to install binutils
12577 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12578 *** You will then need to restart the configuration process.
12579
12580 _LT_EOF
12581       fi
12582       ;;
12583
12584     amigaos*)
12585       case $host_cpu in
12586       powerpc)
12587             # see comment about AmigaOS4 .so support
12588             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12589             archive_expsym_cmds=''
12590         ;;
12591       m68k)
12592             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)'
12593             hardcode_libdir_flag_spec='-L$libdir'
12594             hardcode_minus_L=yes
12595         ;;
12596       esac
12597       ;;
12598
12599     beos*)
12600       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12601         allow_undefined_flag=unsupported
12602         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12603         # support --undefined.  This deserves some investigation.  FIXME
12604         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12605       else
12606         ld_shlibs=no
12607       fi
12608       ;;
12609
12610     cygwin* | mingw* | pw32* | cegcc*)
12611       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12612       # as there is no search path for DLLs.
12613       hardcode_libdir_flag_spec='-L$libdir'
12614       export_dynamic_flag_spec='$wl--export-all-symbols'
12615       allow_undefined_flag=unsupported
12616       always_export_symbols=no
12617       enable_shared_with_static_runtimes=yes
12618       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'
12619       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12620
12621       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12622         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12623         # If the export-symbols file already is a .def file, use it as
12624         # is; otherwise, prepend EXPORTS...
12625         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12626           cp $export_symbols $output_objdir/$soname.def;
12627         else
12628           echo EXPORTS > $output_objdir/$soname.def;
12629           cat $export_symbols >> $output_objdir/$soname.def;
12630         fi~
12631         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12632       else
12633         ld_shlibs=no
12634       fi
12635       ;;
12636
12637     haiku*)
12638       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12639       link_all_deplibs=yes
12640       ;;
12641
12642     os2*)
12643       hardcode_libdir_flag_spec='-L$libdir'
12644       hardcode_minus_L=yes
12645       allow_undefined_flag=unsupported
12646       shrext_cmds=.dll
12647       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12648         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12649         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12650         $ECHO EXPORTS >> $output_objdir/$libname.def~
12651         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12652         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12653         emximp -o $lib $output_objdir/$libname.def'
12654       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12655         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12656         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12657         $ECHO EXPORTS >> $output_objdir/$libname.def~
12658         prefix_cmds="$SED"~
12659         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12660           prefix_cmds="$prefix_cmds -e 1d";
12661         fi~
12662         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12663         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12664         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12665         emximp -o $lib $output_objdir/$libname.def'
12666       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12667       enable_shared_with_static_runtimes=yes
12668       ;;
12669
12670     interix[3-9]*)
12671       hardcode_direct=no
12672       hardcode_shlibpath_var=no
12673       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12674       export_dynamic_flag_spec='$wl-E'
12675       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12676       # Instead, shared libraries are loaded at an image base (0x10000000 by
12677       # default) and relocated if they conflict, which is a slow very memory
12678       # consuming and fragmenting process.  To avoid this, we pick a random,
12679       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12680       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12681       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12682       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'
12683       ;;
12684
12685     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12686       tmp_diet=no
12687       if test linux-dietlibc = "$host_os"; then
12688         case $cc_basename in
12689           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12690         esac
12691       fi
12692       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12693          && test no = "$tmp_diet"
12694       then
12695         tmp_addflag=' $pic_flag'
12696         tmp_sharedflag='-shared'
12697         case $cc_basename,$host_cpu in
12698         pgcc*)                          # Portland Group C compiler
12699           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'
12700           tmp_addflag=' $pic_flag'
12701           ;;
12702         pgf77* | pgf90* | pgf95* | pgfortran*)
12703                                         # Portland Group f77 and f90 compilers
12704           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'
12705           tmp_addflag=' $pic_flag -Mnomain' ;;
12706         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12707           tmp_addflag=' -i_dynamic' ;;
12708         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12709           tmp_addflag=' -i_dynamic -nofor_main' ;;
12710         ifc* | ifort*)                  # Intel Fortran compiler
12711           tmp_addflag=' -nofor_main' ;;
12712         lf95*)                          # Lahey Fortran 8.1
12713           whole_archive_flag_spec=
12714           tmp_sharedflag='--shared' ;;
12715         nagfor*)                        # NAGFOR 5.3
12716           tmp_sharedflag='-Wl,-shared' ;;
12717         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12718           tmp_sharedflag='-qmkshrobj'
12719           tmp_addflag= ;;
12720         nvcc*)  # Cuda Compiler Driver 2.2
12721           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'
12722           compiler_needs_object=yes
12723           ;;
12724         esac
12725         case `$CC -V 2>&1 | sed 5q` in
12726         *Sun\ C*)                       # Sun C 5.9
12727           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'
12728           compiler_needs_object=yes
12729           tmp_sharedflag='-G' ;;
12730         *Sun\ F*)                       # Sun Fortran 8.3
12731           tmp_sharedflag='-G' ;;
12732         esac
12733         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12734
12735         if test yes = "$supports_anon_versioning"; then
12736           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12737             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12738             echo "local: *; };" >> $output_objdir/$libname.ver~
12739             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12740         fi
12741
12742         case $cc_basename in
12743         tcc*)
12744           export_dynamic_flag_spec='-rdynamic'
12745           ;;
12746         xlf* | bgf* | bgxlf* | mpixlf*)
12747           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12748           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12749           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12750           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12751           if test yes = "$supports_anon_versioning"; then
12752             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12753               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12754               echo "local: *; };" >> $output_objdir/$libname.ver~
12755               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12756           fi
12757           ;;
12758         esac
12759       else
12760         ld_shlibs=no
12761       fi
12762       ;;
12763
12764     netbsd* | netbsdelf*-gnu)
12765       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12766         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12767         wlarc=
12768       else
12769         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12770         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12771       fi
12772       ;;
12773
12774     solaris*)
12775       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12776         ld_shlibs=no
12777         cat <<_LT_EOF 1>&2
12778
12779 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12780 *** create shared libraries on Solaris systems.  Therefore, libtool
12781 *** is disabling shared libraries support.  We urge you to upgrade GNU
12782 *** binutils to release 2.9.1 or newer.  Another option is to modify
12783 *** your PATH or compiler configuration so that the native linker is
12784 *** used, and then restart.
12785
12786 _LT_EOF
12787       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12788         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12789         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12790       else
12791         ld_shlibs=no
12792       fi
12793       ;;
12794
12795     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12796       case `$LD -v 2>&1` in
12797         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12798         ld_shlibs=no
12799         cat <<_LT_EOF 1>&2
12800
12801 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12802 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12803 *** is disabling shared libraries support.  We urge you to upgrade GNU
12804 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12805 *** your PATH or compiler configuration so that the native linker is
12806 *** used, and then restart.
12807
12808 _LT_EOF
12809         ;;
12810         *)
12811           # For security reasons, it is highly recommended that you always
12812           # use absolute paths for naming shared libraries, and exclude the
12813           # DT_RUNPATH tag from executables and libraries.  But doing so
12814           # requires that you compile everything twice, which is a pain.
12815           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12816             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12817             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12818             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12819           else
12820             ld_shlibs=no
12821           fi
12822         ;;
12823       esac
12824       ;;
12825
12826     sunos4*)
12827       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12828       wlarc=
12829       hardcode_direct=yes
12830       hardcode_shlibpath_var=no
12831       ;;
12832
12833     *)
12834       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12835         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12836         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12837       else
12838         ld_shlibs=no
12839       fi
12840       ;;
12841     esac
12842
12843     if test no = "$ld_shlibs"; then
12844       runpath_var=
12845       hardcode_libdir_flag_spec=
12846       export_dynamic_flag_spec=
12847       whole_archive_flag_spec=
12848     fi
12849   else
12850     # PORTME fill in a description of your system's linker (not GNU ld)
12851     case $host_os in
12852     aix3*)
12853       allow_undefined_flag=unsupported
12854       always_export_symbols=yes
12855       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'
12856       # Note: this linker hardcodes the directories in LIBPATH if there
12857       # are no directories specified by -L.
12858       hardcode_minus_L=yes
12859       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12860         # Neither direct hardcoding nor static linking is supported with a
12861         # broken collect2.
12862         hardcode_direct=unsupported
12863       fi
12864       ;;
12865
12866     aix[4-9]*)
12867       if test ia64 = "$host_cpu"; then
12868         # On IA64, the linker does run time linking by default, so we don't
12869         # have to do anything special.
12870         aix_use_runtimelinking=no
12871         exp_sym_flag='-Bexport'
12872         no_entry_flag=
12873       else
12874         # If we're using GNU nm, then we don't want the "-C" option.
12875         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12876         # Without the "-l" option, or with the "-B" option, AIX nm treats
12877         # weak defined symbols like other global defined symbols, whereas
12878         # GNU nm marks them as "W".
12879         # While the 'weak' keyword is ignored in the Export File, we need
12880         # it in the Import File for the 'aix-soname' feature, so we have
12881         # to replace the "-B" option with "-P" for AIX nm.
12882         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12883           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'
12884         else
12885           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12886         fi
12887         aix_use_runtimelinking=no
12888
12889         # Test if we are trying to use run time linking or normal
12890         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12891         # have runtime linking enabled, and use it for executables.
12892         # For shared libraries, we enable/disable runtime linking
12893         # depending on the kind of the shared library created -
12894         # when "with_aix_soname,aix_use_runtimelinking" is:
12895         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12896         # "aix,yes"  lib.so          shared, rtl:yes, for executables
12897         #            lib.a           static archive
12898         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12899         #            lib.a(lib.so.V) shared, rtl:no,  for executables
12900         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12901         #            lib.a(lib.so.V) shared, rtl:no
12902         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12903         #            lib.a           static archive
12904         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12905           for ld_flag in $LDFLAGS; do
12906           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12907             aix_use_runtimelinking=yes
12908             break
12909           fi
12910           done
12911           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12912             # With aix-soname=svr4, we create the lib.so.V shared archives only,
12913             # so we don't have lib.a shared libs to link our executables.
12914             # We have to force runtime linking in this case.
12915             aix_use_runtimelinking=yes
12916             LDFLAGS="$LDFLAGS -Wl,-brtl"
12917           fi
12918           ;;
12919         esac
12920
12921         exp_sym_flag='-bexport'
12922         no_entry_flag='-bnoentry'
12923       fi
12924
12925       # When large executables or shared objects are built, AIX ld can
12926       # have problems creating the table of contents.  If linking a library
12927       # or program results in "error TOC overflow" add -mminimal-toc to
12928       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12929       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12930
12931       archive_cmds=''
12932       hardcode_direct=yes
12933       hardcode_direct_absolute=yes
12934       hardcode_libdir_separator=':'
12935       link_all_deplibs=yes
12936       file_list_spec='$wl-f,'
12937       case $with_aix_soname,$aix_use_runtimelinking in
12938       aix,*) ;; # traditional, no import file
12939       svr4,* | *,yes) # use import file
12940         # The Import File defines what to hardcode.
12941         hardcode_direct=no
12942         hardcode_direct_absolute=no
12943         ;;
12944       esac
12945
12946       if test yes = "$GCC"; then
12947         case $host_os in aix4.[012]|aix4.[012].*)
12948         # We only want to do this on AIX 4.2 and lower, the check
12949         # below for broken collect2 doesn't work under 4.3+
12950           collect2name=`$CC -print-prog-name=collect2`
12951           if test -f "$collect2name" &&
12952            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12953           then
12954           # We have reworked collect2
12955           :
12956           else
12957           # We have old collect2
12958           hardcode_direct=unsupported
12959           # It fails to find uninstalled libraries when the uninstalled
12960           # path is not listed in the libpath.  Setting hardcode_minus_L
12961           # to unsupported forces relinking
12962           hardcode_minus_L=yes
12963           hardcode_libdir_flag_spec='-L$libdir'
12964           hardcode_libdir_separator=
12965           fi
12966           ;;
12967         esac
12968         shared_flag='-shared'
12969         if test yes = "$aix_use_runtimelinking"; then
12970           shared_flag="$shared_flag "'$wl-G'
12971         fi
12972         # Need to ensure runtime linking is disabled for the traditional
12973         # shared library, or the linker may eventually find shared libraries
12974         # /with/ Import File - we do not want to mix them.
12975         shared_flag_aix='-shared'
12976         shared_flag_svr4='-shared $wl-G'
12977       else
12978         # not using gcc
12979         if test ia64 = "$host_cpu"; then
12980         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12981         # chokes on -Wl,-G. The following line is correct:
12982           shared_flag='-G'
12983         else
12984           if test yes = "$aix_use_runtimelinking"; then
12985             shared_flag='$wl-G'
12986           else
12987             shared_flag='$wl-bM:SRE'
12988           fi
12989           shared_flag_aix='$wl-bM:SRE'
12990           shared_flag_svr4='$wl-G'
12991         fi
12992       fi
12993
12994       export_dynamic_flag_spec='$wl-bexpall'
12995       # It seems that -bexpall does not export symbols beginning with
12996       # underscore (_), so it is better to generate a list of symbols to export.
12997       always_export_symbols=yes
12998       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12999         # Warning - without using the other runtime loading flags (-brtl),
13000         # -berok will link without error, but may produce a broken library.
13001         allow_undefined_flag='-berok'
13002         # Determine the default libpath from the value encoded in an
13003         # empty executable.
13004         if test set = "${lt_cv_aix_libpath+set}"; then
13005   aix_libpath=$lt_cv_aix_libpath
13006 else
13007   if ${lt_cv_aix_libpath_+:} false; then :
13008   $as_echo_n "(cached) " >&6
13009 else
13010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h.  */
13012
13013 int main (void)
13014 {
13015
13016  ;
13017  return 0;
13018 }
13019 _ACEOF
13020 if ac_fn_c_try_link "$LINENO"; then :
13021
13022   lt_aix_libpath_sed='
13023       /Import File Strings/,/^$/ {
13024           /^0/ {
13025               s/^0  *\([^ ]*\) *$/\1/
13026               p
13027           }
13028       }'
13029   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13030   # Check for a 64-bit object if we didn't find anything.
13031   if test -z "$lt_cv_aix_libpath_"; then
13032     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13033   fi
13034 fi
13035 rm -f core conftest.err conftest.$ac_objext \
13036     conftest$ac_exeext conftest.$ac_ext
13037   if test -z "$lt_cv_aix_libpath_"; then
13038     lt_cv_aix_libpath_=/usr/lib:/lib
13039   fi
13040
13041 fi
13042
13043   aix_libpath=$lt_cv_aix_libpath_
13044 fi
13045
13046         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13047         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
13048       else
13049         if test ia64 = "$host_cpu"; then
13050           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13051           allow_undefined_flag="-z nodefs"
13052           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"
13053         else
13054          # Determine the default libpath from the value encoded in an
13055          # empty executable.
13056          if test set = "${lt_cv_aix_libpath+set}"; then
13057   aix_libpath=$lt_cv_aix_libpath
13058 else
13059   if ${lt_cv_aix_libpath_+:} false; then :
13060   $as_echo_n "(cached) " >&6
13061 else
13062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h.  */
13064
13065 int main (void)
13066 {
13067
13068  ;
13069  return 0;
13070 }
13071 _ACEOF
13072 if ac_fn_c_try_link "$LINENO"; then :
13073
13074   lt_aix_libpath_sed='
13075       /Import File Strings/,/^$/ {
13076           /^0/ {
13077               s/^0  *\([^ ]*\) *$/\1/
13078               p
13079           }
13080       }'
13081   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13082   # Check for a 64-bit object if we didn't find anything.
13083   if test -z "$lt_cv_aix_libpath_"; then
13084     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13085   fi
13086 fi
13087 rm -f core conftest.err conftest.$ac_objext \
13088     conftest$ac_exeext conftest.$ac_ext
13089   if test -z "$lt_cv_aix_libpath_"; then
13090     lt_cv_aix_libpath_=/usr/lib:/lib
13091   fi
13092
13093 fi
13094
13095   aix_libpath=$lt_cv_aix_libpath_
13096 fi
13097
13098          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13099           # Warning - without using the other run time loading flags,
13100           # -berok will link without error, but may produce a broken library.
13101           no_undefined_flag=' $wl-bernotok'
13102           allow_undefined_flag=' $wl-berok'
13103           if test yes = "$with_gnu_ld"; then
13104             # We only use this code for GNU lds that support --whole-archive.
13105             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13106           else
13107             # Exported symbols can be pulled into shared objects from archives
13108             whole_archive_flag_spec='$convenience'
13109           fi
13110           archive_cmds_need_lc=yes
13111           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13112           # -brtl affects multiple linker settings, -berok does not and is overridden later
13113           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13114           if test svr4 != "$with_aix_soname"; then
13115             # This is similar to how AIX traditionally builds its shared libraries.
13116             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'
13117           fi
13118           if test aix != "$with_aix_soname"; then
13119             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'
13120           else
13121             # used by -dlpreopen to get the symbols
13122             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13123           fi
13124           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13125         fi
13126       fi
13127       ;;
13128
13129     amigaos*)
13130       case $host_cpu in
13131       powerpc)
13132             # see comment about AmigaOS4 .so support
13133             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13134             archive_expsym_cmds=''
13135         ;;
13136       m68k)
13137             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)'
13138             hardcode_libdir_flag_spec='-L$libdir'
13139             hardcode_minus_L=yes
13140         ;;
13141       esac
13142       ;;
13143
13144     bsdi[45]*)
13145       export_dynamic_flag_spec=-rdynamic
13146       ;;
13147
13148     cygwin* | mingw* | pw32* | cegcc*)
13149       # When not using gcc, we currently assume that we are using
13150       # Microsoft Visual C++.
13151       # hardcode_libdir_flag_spec is actually meaningless, as there is
13152       # no search path for DLLs.
13153       case $cc_basename in
13154       cl*)
13155         # Native MSVC
13156         hardcode_libdir_flag_spec=' '
13157         allow_undefined_flag=unsupported
13158         always_export_symbols=yes
13159         file_list_spec='@'
13160         # Tell ltmain to make .lib files, not .a files.
13161         libext=lib
13162         # Tell ltmain to make .dll files, not .so files.
13163         shrext_cmds=.dll
13164         # FIXME: Setting linknames here is a bad hack.
13165         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13166         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13167             cp "$export_symbols" "$output_objdir/$soname.def";
13168             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13169           else
13170             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13171           fi~
13172           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13173           linknames='
13174         # The linker will not automatically build a static lib if we build a DLL.
13175         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13176         enable_shared_with_static_runtimes=yes
13177         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13178         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13179         # Don't use ranlib
13180         old_postinstall_cmds='chmod 644 $oldlib'
13181         postlink_cmds='lt_outputfile="@OUTPUT@"~
13182           lt_tool_outputfile="@TOOL_OUTPUT@"~
13183           case $lt_outputfile in
13184             *.exe|*.EXE) ;;
13185             *)
13186               lt_outputfile=$lt_outputfile.exe
13187               lt_tool_outputfile=$lt_tool_outputfile.exe
13188               ;;
13189           esac~
13190           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13191             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13192             $RM "$lt_outputfile.manifest";
13193           fi'
13194         ;;
13195       *)
13196         # Assume MSVC wrapper
13197         hardcode_libdir_flag_spec=' '
13198         allow_undefined_flag=unsupported
13199         # Tell ltmain to make .lib files, not .a files.
13200         libext=lib
13201         # Tell ltmain to make .dll files, not .so files.
13202         shrext_cmds=.dll
13203         # FIXME: Setting linknames here is a bad hack.
13204         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13205         # The linker will automatically build a .lib file if we build a DLL.
13206         old_archive_from_new_cmds='true'
13207         # FIXME: Should let the user specify the lib program.
13208         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13209         enable_shared_with_static_runtimes=yes
13210         ;;
13211       esac
13212       ;;
13213
13214     darwin* | rhapsody*)
13215
13216
13217   archive_cmds_need_lc=no
13218   hardcode_direct=no
13219   hardcode_automatic=yes
13220   hardcode_shlibpath_var=unsupported
13221   if test yes = "$lt_cv_ld_force_load"; then
13222     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\"`'
13223
13224   else
13225     whole_archive_flag_spec=''
13226   fi
13227   link_all_deplibs=yes
13228   allow_undefined_flag=$_lt_dar_allow_undefined
13229   case $cc_basename in
13230      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13231      *) _lt_dar_can_shared=$GCC ;;
13232   esac
13233   if test yes = "$_lt_dar_can_shared"; then
13234     output_verbose_link_cmd=func_echo_all
13235     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13236     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13237     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"
13238     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"
13239
13240   else
13241   ld_shlibs=no
13242   fi
13243
13244       ;;
13245
13246     dgux*)
13247       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13248       hardcode_libdir_flag_spec='-L$libdir'
13249       hardcode_shlibpath_var=no
13250       ;;
13251
13252     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13253     # support.  Future versions do this automatically, but an explicit c++rt0.o
13254     # does not break anything, and helps significantly (at the cost of a little
13255     # extra space).
13256     freebsd2.2*)
13257       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13258       hardcode_libdir_flag_spec='-R$libdir'
13259       hardcode_direct=yes
13260       hardcode_shlibpath_var=no
13261       ;;
13262
13263     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13264     freebsd2.*)
13265       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13266       hardcode_direct=yes
13267       hardcode_minus_L=yes
13268       hardcode_shlibpath_var=no
13269       ;;
13270
13271     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13272     freebsd* | dragonfly*)
13273       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13274       hardcode_libdir_flag_spec='-R$libdir'
13275       hardcode_direct=yes
13276       hardcode_shlibpath_var=no
13277       ;;
13278
13279     hpux9*)
13280       if test yes = "$GCC"; then
13281         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 -f $output_objdir/$soname $lib'
13282       else
13283         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 -f $output_objdir/$soname $lib'
13284       fi
13285       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13286       hardcode_libdir_separator=:
13287       hardcode_direct=yes
13288
13289       # hardcode_minus_L: Not really in the search PATH,
13290       # but as the default location of the library.
13291       hardcode_minus_L=yes
13292       export_dynamic_flag_spec='$wl-E'
13293       ;;
13294
13295     hpux10*)
13296       if test yes,no = "$GCC,$with_gnu_ld"; then
13297         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13298       else
13299         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13300       fi
13301       if test no = "$with_gnu_ld"; then
13302         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13303         hardcode_libdir_separator=:
13304         hardcode_direct=yes
13305         hardcode_direct_absolute=yes
13306         export_dynamic_flag_spec='$wl-E'
13307         # hardcode_minus_L: Not really in the search PATH,
13308         # but as the default location of the library.
13309         hardcode_minus_L=yes
13310       fi
13311       ;;
13312
13313     hpux11*)
13314       if test yes,no = "$GCC,$with_gnu_ld"; then
13315         case $host_cpu in
13316         hppa*64*)
13317           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13318           ;;
13319         ia64*)
13320           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13321           ;;
13322         *)
13323           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13324           ;;
13325         esac
13326       else
13327         case $host_cpu in
13328         hppa*64*)
13329           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13330           ;;
13331         ia64*)
13332           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13333           ;;
13334         *)
13335
13336           # Older versions of the 11.00 compiler do not understand -b yet
13337           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13338           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13339 $as_echo_n "checking if $CC understands -b... " >&6; }
13340 if ${lt_cv_prog_compiler__b+:} false; then :
13341   $as_echo_n "(cached) " >&6
13342 else
13343   lt_cv_prog_compiler__b=no
13344    save_LDFLAGS=$LDFLAGS
13345    LDFLAGS="$LDFLAGS -b"
13346    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13347    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13348      # The linker can only warn and ignore the option if not recognized
13349      # So say no if there are warnings
13350      if test -s conftest.err; then
13351        # Append any errors to the config.log.
13352        cat conftest.err 1>&5
13353        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13354        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13355        if diff conftest.exp conftest.er2 >/dev/null; then
13356          lt_cv_prog_compiler__b=yes
13357        fi
13358      else
13359        lt_cv_prog_compiler__b=yes
13360      fi
13361    fi
13362    $RM -r conftest*
13363    LDFLAGS=$save_LDFLAGS
13364
13365 fi
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13367 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13368
13369 if test yes = "$lt_cv_prog_compiler__b"; then
13370     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13371 else
13372     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13373 fi
13374
13375           ;;
13376         esac
13377       fi
13378       if test no = "$with_gnu_ld"; then
13379         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13380         hardcode_libdir_separator=:
13381
13382         case $host_cpu in
13383         hppa*64*|ia64*)
13384           hardcode_direct=no
13385           hardcode_shlibpath_var=no
13386           ;;
13387         *)
13388           hardcode_direct=yes
13389           hardcode_direct_absolute=yes
13390           export_dynamic_flag_spec='$wl-E'
13391
13392           # hardcode_minus_L: Not really in the search PATH,
13393           # but as the default location of the library.
13394           hardcode_minus_L=yes
13395           ;;
13396         esac
13397       fi
13398       ;;
13399
13400     irix5* | irix6* | nonstopux*)
13401       if test yes = "$GCC"; then
13402         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'
13403         # Try to use the -exported_symbol ld option, if it does not
13404         # work, assume that -exports_file does not work either and
13405         # implicitly export all symbols.
13406         # This should be the same for all languages, so no per-tag cache variable.
13407         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13408 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13409 if ${lt_cv_irix_exported_symbol+:} false; then :
13410   $as_echo_n "(cached) " >&6
13411 else
13412   save_LDFLAGS=$LDFLAGS
13413            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13414            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415 /* end confdefs.h.  */
13416 int foo (void) { return 0; }
13417 _ACEOF
13418 if ac_fn_c_try_link "$LINENO"; then :
13419   lt_cv_irix_exported_symbol=yes
13420 else
13421   lt_cv_irix_exported_symbol=no
13422 fi
13423 rm -f core conftest.err conftest.$ac_objext \
13424     conftest$ac_exeext conftest.$ac_ext
13425            LDFLAGS=$save_LDFLAGS
13426 fi
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13428 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13429         if test yes = "$lt_cv_irix_exported_symbol"; then
13430           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'
13431         fi
13432         link_all_deplibs=no
13433       else
13434         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'
13435         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'
13436       fi
13437       archive_cmds_need_lc='no'
13438       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13439       hardcode_libdir_separator=:
13440       inherit_rpath=yes
13441       link_all_deplibs=yes
13442       ;;
13443
13444     linux*)
13445       case $cc_basename in
13446       tcc*)
13447         # Fabrice Bellard et al's Tiny C Compiler
13448         ld_shlibs=yes
13449         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13450         ;;
13451       esac
13452       ;;
13453
13454     netbsd* | netbsdelf*-gnu)
13455       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13456         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13457       else
13458         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13459       fi
13460       hardcode_libdir_flag_spec='-R$libdir'
13461       hardcode_direct=yes
13462       hardcode_shlibpath_var=no
13463       ;;
13464
13465     newsos6)
13466       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13467       hardcode_direct=yes
13468       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13469       hardcode_libdir_separator=:
13470       hardcode_shlibpath_var=no
13471       ;;
13472
13473     *nto* | *qnx*)
13474       ;;
13475
13476     openbsd* | bitrig*)
13477       if test -f /usr/libexec/ld.so; then
13478         hardcode_direct=yes
13479         hardcode_shlibpath_var=no
13480         hardcode_direct_absolute=yes
13481         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13482           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13483           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13484           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13485           export_dynamic_flag_spec='$wl-E'
13486         else
13487           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13488           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13489         fi
13490       else
13491         ld_shlibs=no
13492       fi
13493       ;;
13494
13495     os2*)
13496       hardcode_libdir_flag_spec='-L$libdir'
13497       hardcode_minus_L=yes
13498       allow_undefined_flag=unsupported
13499       shrext_cmds=.dll
13500       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13501         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13502         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13503         $ECHO EXPORTS >> $output_objdir/$libname.def~
13504         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13505         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13506         emximp -o $lib $output_objdir/$libname.def'
13507       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13508         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13509         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13510         $ECHO EXPORTS >> $output_objdir/$libname.def~
13511         prefix_cmds="$SED"~
13512         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13513           prefix_cmds="$prefix_cmds -e 1d";
13514         fi~
13515         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13516         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13517         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13518         emximp -o $lib $output_objdir/$libname.def'
13519       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13520       enable_shared_with_static_runtimes=yes
13521       ;;
13522
13523     osf3*)
13524       if test yes = "$GCC"; then
13525         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13526         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'
13527       else
13528         allow_undefined_flag=' -expect_unresolved \*'
13529         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'
13530       fi
13531       archive_cmds_need_lc='no'
13532       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13533       hardcode_libdir_separator=:
13534       ;;
13535
13536     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13537       if test yes = "$GCC"; then
13538         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13539         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'
13540         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13541       else
13542         allow_undefined_flag=' -expect_unresolved \*'
13543         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'
13544         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~
13545           $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'
13546
13547         # Both c and cxx compiler support -rpath directly
13548         hardcode_libdir_flag_spec='-rpath $libdir'
13549       fi
13550       archive_cmds_need_lc='no'
13551       hardcode_libdir_separator=:
13552       ;;
13553
13554     solaris*)
13555       no_undefined_flag=' -z defs'
13556       if test yes = "$GCC"; then
13557         wlarc='$wl'
13558         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13559         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13560           $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'
13561       else
13562         case `$CC -V 2>&1` in
13563         *"Compilers 5.0"*)
13564           wlarc=''
13565           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13566           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13567             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13568           ;;
13569         *)
13570           wlarc='$wl'
13571           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13572           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13573             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13574           ;;
13575         esac
13576       fi
13577       hardcode_libdir_flag_spec='-R$libdir'
13578       hardcode_shlibpath_var=no
13579       case $host_os in
13580       solaris2.[0-5] | solaris2.[0-5].*) ;;
13581       *)
13582         # The compiler driver will combine and reorder linker options,
13583         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13584         # but is careful enough not to reorder.
13585         # Supported since Solaris 2.6 (maybe 2.5.1?)
13586         if test yes = "$GCC"; then
13587           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13588         else
13589           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13590         fi
13591         ;;
13592       esac
13593       link_all_deplibs=yes
13594       ;;
13595
13596     sunos4*)
13597       if test sequent = "$host_vendor"; then
13598         # Use $CC to link under sequent, because it throws in some extra .o
13599         # files that make .init and .fini sections work.
13600         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13601       else
13602         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13603       fi
13604       hardcode_libdir_flag_spec='-L$libdir'
13605       hardcode_direct=yes
13606       hardcode_minus_L=yes
13607       hardcode_shlibpath_var=no
13608       ;;
13609
13610     sysv4)
13611       case $host_vendor in
13612         sni)
13613           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13614           hardcode_direct=yes # is this really true???
13615         ;;
13616         siemens)
13617           ## LD is ld it makes a PLAMLIB
13618           ## CC just makes a GrossModule.
13619           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13620           reload_cmds='$CC -r -o $output$reload_objs'
13621           hardcode_direct=no
13622         ;;
13623         motorola)
13624           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13626         ;;
13627       esac
13628       runpath_var='LD_RUN_PATH'
13629       hardcode_shlibpath_var=no
13630       ;;
13631
13632     sysv4.3*)
13633       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13634       hardcode_shlibpath_var=no
13635       export_dynamic_flag_spec='-Bexport'
13636       ;;
13637
13638     sysv4*MP*)
13639       if test -d /usr/nec; then
13640         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13641         hardcode_shlibpath_var=no
13642         runpath_var=LD_RUN_PATH
13643         hardcode_runpath_var=yes
13644         ld_shlibs=yes
13645       fi
13646       ;;
13647
13648     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13649       no_undefined_flag='$wl-z,text'
13650       archive_cmds_need_lc=no
13651       hardcode_shlibpath_var=no
13652       runpath_var='LD_RUN_PATH'
13653
13654       if test yes = "$GCC"; then
13655         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13656         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13657       else
13658         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13659         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13660       fi
13661       ;;
13662
13663     sysv5* | sco3.2v5* | sco5v6*)
13664       # Note: We CANNOT use -z defs as we might desire, because we do not
13665       # link with -lc, and that would cause any symbols used from libc to
13666       # always be unresolved, which means just about no library would
13667       # ever link correctly.  If we're not using GNU ld we use -z text
13668       # though, which does catch some bad symbols but isn't as heavy-handed
13669       # as -z defs.
13670       no_undefined_flag='$wl-z,text'
13671       allow_undefined_flag='$wl-z,nodefs'
13672       archive_cmds_need_lc=no
13673       hardcode_shlibpath_var=no
13674       hardcode_libdir_flag_spec='$wl-R,$libdir'
13675       hardcode_libdir_separator=':'
13676       link_all_deplibs=yes
13677       export_dynamic_flag_spec='$wl-Bexport'
13678       runpath_var='LD_RUN_PATH'
13679
13680       if test yes = "$GCC"; then
13681         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13682         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13683       else
13684         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13685         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13686       fi
13687       ;;
13688
13689     uts4*)
13690       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13691       hardcode_libdir_flag_spec='-L$libdir'
13692       hardcode_shlibpath_var=no
13693       ;;
13694
13695     *)
13696       ld_shlibs=no
13697       ;;
13698     esac
13699
13700     if test sni = "$host_vendor"; then
13701       case $host in
13702       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13703         export_dynamic_flag_spec='$wl-Blargedynsym'
13704         ;;
13705       esac
13706     fi
13707   fi
13708
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13710 $as_echo "$ld_shlibs" >&6; }
13711 test no = "$ld_shlibs" && can_build_shared=no
13712
13713 with_gnu_ld=$with_gnu_ld
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729 #
13730 # Do we need to explicitly link libc?
13731 #
13732 case "x$archive_cmds_need_lc" in
13733 x|xyes)
13734   # Assume -lc should be added
13735   archive_cmds_need_lc=yes
13736
13737   if test yes,yes = "$GCC,$enable_shared"; then
13738     case $archive_cmds in
13739     *'~'*)
13740       # FIXME: we may have to deal with multi-command sequences.
13741       ;;
13742     '$CC '*)
13743       # Test whether the compiler implicitly links with -lc since on some
13744       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13745       # to ld, don't add -lc before -lgcc.
13746       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13747 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13748 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13749   $as_echo_n "(cached) " >&6
13750 else
13751   $RM conftest*
13752         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13753
13754         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13755   (eval $ac_compile) 2>&5
13756   ac_status=$?
13757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13758   test $ac_status = 0; } 2>conftest.err; then
13759           soname=conftest
13760           lib=conftest
13761           libobjs=conftest.$ac_objext
13762           deplibs=
13763           wl=$lt_prog_compiler_wl
13764           pic_flag=$lt_prog_compiler_pic
13765           compiler_flags=-v
13766           linker_flags=-v
13767           verstring=
13768           output_objdir=.
13769           libname=conftest
13770           lt_save_allow_undefined_flag=$allow_undefined_flag
13771           allow_undefined_flag=
13772           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13773   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13774   ac_status=$?
13775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13776   test $ac_status = 0; }
13777           then
13778             lt_cv_archive_cmds_need_lc=no
13779           else
13780             lt_cv_archive_cmds_need_lc=yes
13781           fi
13782           allow_undefined_flag=$lt_save_allow_undefined_flag
13783         else
13784           cat conftest.err 1>&5
13785         fi
13786         $RM conftest*
13787
13788 fi
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13790 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13791       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13792       ;;
13793     esac
13794   fi
13795   ;;
13796 esac
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13950 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13951
13952 if test yes = "$GCC"; then
13953   case $host_os in
13954     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13955     *) lt_awk_arg='/^libraries:/' ;;
13956   esac
13957   case $host_os in
13958     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13959     *) lt_sed_strip_eq='s|=/|/|g' ;;
13960   esac
13961   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13962   case $lt_search_path_spec in
13963   *\;*)
13964     # if the path contains ";" then we assume it to be the separator
13965     # otherwise default to the standard path separator (i.e. ":") - it is
13966     # assumed that no part of a normal pathname contains ";" but that should
13967     # okay in the real world where ";" in dirpaths is itself problematic.
13968     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13969     ;;
13970   *)
13971     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13972     ;;
13973   esac
13974   # Ok, now we have the path, separated by spaces, we can step through it
13975   # and add multilib dir if necessary...
13976   lt_tmp_lt_search_path_spec=
13977   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13978   # ...but if some path component already ends with the multilib dir we assume
13979   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13980   case "$lt_multi_os_dir; $lt_search_path_spec " in
13981   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13982     lt_multi_os_dir=
13983     ;;
13984   esac
13985   for lt_sys_path in $lt_search_path_spec; do
13986     if test -d "$lt_sys_path$lt_multi_os_dir"; then
13987       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13988     elif test -n "$lt_multi_os_dir"; then
13989       test -d "$lt_sys_path" && \
13990         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13991     fi
13992   done
13993   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13994 BEGIN {RS = " "; FS = "/|\n";} {
13995   lt_foo = "";
13996   lt_count = 0;
13997   for (lt_i = NF; lt_i > 0; lt_i--) {
13998     if ($lt_i != "" && $lt_i != ".") {
13999       if ($lt_i == "..") {
14000         lt_count++;
14001       } else {
14002         if (lt_count == 0) {
14003           lt_foo = "/" $lt_i lt_foo;
14004         } else {
14005           lt_count--;
14006         }
14007       }
14008     }
14009   }
14010   if (lt_foo != "") { lt_freq[lt_foo]++; }
14011   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14012 }'`
14013   # AWK program above erroneously prepends '/' to C:/dos/paths
14014   # for these hosts.
14015   case $host_os in
14016     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14017       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14018   esac
14019   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14020 else
14021   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14022 fi
14023 library_names_spec=
14024 libname_spec='lib$name'
14025 soname_spec=
14026 shrext_cmds=.so
14027 postinstall_cmds=
14028 postuninstall_cmds=
14029 finish_cmds=
14030 finish_eval=
14031 shlibpath_var=
14032 shlibpath_overrides_runpath=unknown
14033 version_type=none
14034 dynamic_linker="$host_os ld.so"
14035 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14036 need_lib_prefix=unknown
14037 hardcode_into_libs=no
14038
14039 # when you set need_version to no, make sure it does not cause -set_version
14040 # flags to be left without arguments
14041 need_version=unknown
14042
14043
14044
14045 case $host_os in
14046 aix3*)
14047   version_type=linux # correct to gnu/linux during the next big refactor
14048   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14049   shlibpath_var=LIBPATH
14050
14051   # AIX 3 has no versioning support, so we append a major version to the name.
14052   soname_spec='$libname$release$shared_ext$major'
14053   ;;
14054
14055 aix[4-9]*)
14056   version_type=linux # correct to gnu/linux during the next big refactor
14057   need_lib_prefix=no
14058   need_version=no
14059   hardcode_into_libs=yes
14060   if test ia64 = "$host_cpu"; then
14061     # AIX 5 supports IA64
14062     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14063     shlibpath_var=LD_LIBRARY_PATH
14064   else
14065     # With GCC up to 2.95.x, collect2 would create an import file
14066     # for dependence libraries.  The import file would start with
14067     # the line '#! .'.  This would cause the generated library to
14068     # depend on '.', always an invalid library.  This was fixed in
14069     # development snapshots of GCC prior to 3.0.
14070     case $host_os in
14071       aix4 | aix4.[01] | aix4.[01].*)
14072       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14073            echo ' yes '
14074            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14075         :
14076       else
14077         can_build_shared=no
14078       fi
14079       ;;
14080     esac
14081     # Using Import Files as archive members, it is possible to support
14082     # filename-based versioning of shared library archives on AIX. While
14083     # this would work for both with and without runtime linking, it will
14084     # prevent static linking of such archives. So we do filename-based
14085     # shared library versioning with .so extension only, which is used
14086     # when both runtime linking and shared linking is enabled.
14087     # Unfortunately, runtime linking may impact performance, so we do
14088     # not want this to be the default eventually. Also, we use the
14089     # versioned .so libs for executables only if there is the -brtl
14090     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14091     # To allow for filename-based versioning support, we need to create
14092     # libNAME.so.V as an archive file, containing:
14093     # *) an Import File, referring to the versioned filename of the
14094     #    archive as well as the shared archive member, telling the
14095     #    bitwidth (32 or 64) of that shared object, and providing the
14096     #    list of exported symbols of that shared object, eventually
14097     #    decorated with the 'weak' keyword
14098     # *) the shared object with the F_LOADONLY flag set, to really avoid
14099     #    it being seen by the linker.
14100     # At run time we better use the real file rather than another symlink,
14101     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14102
14103     case $with_aix_soname,$aix_use_runtimelinking in
14104     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14105     # soname into executable. Probably we can add versioning support to
14106     # collect2, so additional links can be useful in future.
14107     aix,yes) # traditional libtool
14108       dynamic_linker='AIX unversionable lib.so'
14109       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14110       # instead of lib<name>.a to let people know that these are not
14111       # typical AIX shared libraries.
14112       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14113       ;;
14114     aix,no) # traditional AIX only
14115       dynamic_linker='AIX lib.a(lib.so.V)'
14116       # We preserve .a as extension for shared libraries through AIX4.2
14117       # and later when we are not doing run time linking.
14118       library_names_spec='$libname$release.a $libname.a'
14119       soname_spec='$libname$release$shared_ext$major'
14120       ;;
14121     svr4,*) # full svr4 only
14122       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14123       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14124       # We do not specify a path in Import Files, so LIBPATH fires.
14125       shlibpath_overrides_runpath=yes
14126       ;;
14127     *,yes) # both, prefer svr4
14128       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14129       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14130       # unpreferred sharedlib libNAME.a needs extra handling
14131       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"'
14132       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"'
14133       # We do not specify a path in Import Files, so LIBPATH fires.
14134       shlibpath_overrides_runpath=yes
14135       ;;
14136     *,no) # both, prefer aix
14137       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14138       library_names_spec='$libname$release.a $libname.a'
14139       soname_spec='$libname$release$shared_ext$major'
14140       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14141       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)'
14142       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"'
14143       ;;
14144     esac
14145     shlibpath_var=LIBPATH
14146   fi
14147   ;;
14148
14149 amigaos*)
14150   case $host_cpu in
14151   powerpc)
14152     # Since July 2007 AmigaOS4 officially supports .so libraries.
14153     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14154     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14155     ;;
14156   m68k)
14157     library_names_spec='$libname.ixlibrary $libname.a'
14158     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14159     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'
14160     ;;
14161   esac
14162   ;;
14163
14164 beos*)
14165   library_names_spec='$libname$shared_ext'
14166   dynamic_linker="$host_os ld.so"
14167   shlibpath_var=LIBRARY_PATH
14168   ;;
14169
14170 bsdi[45]*)
14171   version_type=linux # correct to gnu/linux during the next big refactor
14172   need_version=no
14173   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14174   soname_spec='$libname$release$shared_ext$major'
14175   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14176   shlibpath_var=LD_LIBRARY_PATH
14177   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14178   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14179   # the default ld.so.conf also contains /usr/contrib/lib and
14180   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14181   # libtool to hard-code these into programs
14182   ;;
14183
14184 cygwin* | mingw* | pw32* | cegcc*)
14185   version_type=windows
14186   shrext_cmds=.dll
14187   need_version=no
14188   need_lib_prefix=no
14189
14190   case $GCC,$cc_basename in
14191   yes,*)
14192     # gcc
14193     library_names_spec='$libname.dll.a'
14194     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14195     postinstall_cmds='base_file=`basename \$file`~
14196       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14197       dldir=$destdir/`dirname \$dlpath`~
14198       test -d \$dldir || mkdir -p \$dldir~
14199       $install_prog $dir/$dlname \$dldir/$dlname~
14200       chmod a+x \$dldir/$dlname~
14201       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14202         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14203       fi'
14204     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14205       dlpath=$dir/\$dldll~
14206        $RM \$dlpath'
14207     shlibpath_overrides_runpath=yes
14208
14209     case $host_os in
14210     cygwin*)
14211       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14212       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14213
14214       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14215       ;;
14216     mingw* | cegcc*)
14217       # MinGW DLLs use traditional 'lib' prefix
14218       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14219       ;;
14220     pw32*)
14221       # pw32 DLLs use 'pw' prefix rather than 'lib'
14222       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14223       ;;
14224     esac
14225     dynamic_linker='Win32 ld.exe'
14226     ;;
14227
14228   *,cl*)
14229     # Native MSVC
14230     libname_spec='$name'
14231     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14232     library_names_spec='$libname.dll.lib'
14233
14234     case $build_os in
14235     mingw*)
14236       sys_lib_search_path_spec=
14237       lt_save_ifs=$IFS
14238       IFS=';'
14239       for lt_path in $LIB
14240       do
14241         IFS=$lt_save_ifs
14242         # Let DOS variable expansion print the short 8.3 style file name.
14243         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14244         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14245       done
14246       IFS=$lt_save_ifs
14247       # Convert to MSYS style.
14248       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14249       ;;
14250     cygwin*)
14251       # Convert to unix form, then to dos form, then back to unix form
14252       # but this time dos style (no spaces!) so that the unix form looks
14253       # like /cygdrive/c/PROGRA~1:/cygdr...
14254       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14255       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14256       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14257       ;;
14258     *)
14259       sys_lib_search_path_spec=$LIB
14260       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14261         # It is most probably a Windows format PATH.
14262         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14263       else
14264         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14265       fi
14266       # FIXME: find the short name or the path components, as spaces are
14267       # common. (e.g. "Program Files" -> "PROGRA~1")
14268       ;;
14269     esac
14270
14271     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14272     postinstall_cmds='base_file=`basename \$file`~
14273       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14274       dldir=$destdir/`dirname \$dlpath`~
14275       test -d \$dldir || mkdir -p \$dldir~
14276       $install_prog $dir/$dlname \$dldir/$dlname'
14277     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14278       dlpath=$dir/\$dldll~
14279        $RM \$dlpath'
14280     shlibpath_overrides_runpath=yes
14281     dynamic_linker='Win32 link.exe'
14282     ;;
14283
14284   *)
14285     # Assume MSVC wrapper
14286     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14287     dynamic_linker='Win32 ld.exe'
14288     ;;
14289   esac
14290   # FIXME: first we should search . and the directory the executable is in
14291   shlibpath_var=PATH
14292   ;;
14293
14294 darwin* | rhapsody*)
14295   dynamic_linker="$host_os dyld"
14296   version_type=darwin
14297   need_lib_prefix=no
14298   need_version=no
14299   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14300   soname_spec='$libname$release$major$shared_ext'
14301   shlibpath_overrides_runpath=yes
14302   shlibpath_var=DYLD_LIBRARY_PATH
14303   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14304
14305   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14306   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14307   ;;
14308
14309 dgux*)
14310   version_type=linux # correct to gnu/linux during the next big refactor
14311   need_lib_prefix=no
14312   need_version=no
14313   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14314   soname_spec='$libname$release$shared_ext$major'
14315   shlibpath_var=LD_LIBRARY_PATH
14316   ;;
14317
14318 freebsd* | dragonfly*)
14319   # DragonFly does not have aout.  When/if they implement a new
14320   # versioning mechanism, adjust this.
14321   if test -x /usr/bin/objformat; then
14322     objformat=`/usr/bin/objformat`
14323   else
14324     case $host_os in
14325     freebsd[23].*) objformat=aout ;;
14326     *) objformat=elf ;;
14327     esac
14328   fi
14329   version_type=freebsd-$objformat
14330   case $version_type in
14331     freebsd-elf*)
14332       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14333       soname_spec='$libname$release$shared_ext$major'
14334       need_version=no
14335       need_lib_prefix=no
14336       ;;
14337     freebsd-*)
14338       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14339       need_version=yes
14340       ;;
14341   esac
14342   shlibpath_var=LD_LIBRARY_PATH
14343   case $host_os in
14344   freebsd2.*)
14345     shlibpath_overrides_runpath=yes
14346     ;;
14347   freebsd3.[01]* | freebsdelf3.[01]*)
14348     shlibpath_overrides_runpath=yes
14349     hardcode_into_libs=yes
14350     ;;
14351   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14352   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14353     shlibpath_overrides_runpath=no
14354     hardcode_into_libs=yes
14355     ;;
14356   *) # from 4.6 on, and DragonFly
14357     shlibpath_overrides_runpath=yes
14358     hardcode_into_libs=yes
14359     ;;
14360   esac
14361   ;;
14362
14363 haiku*)
14364   version_type=linux # correct to gnu/linux during the next big refactor
14365   need_lib_prefix=no
14366   need_version=no
14367   dynamic_linker="$host_os runtime_loader"
14368   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14369   soname_spec='$libname$release$shared_ext$major'
14370   shlibpath_var=LIBRARY_PATH
14371   shlibpath_overrides_runpath=no
14372   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14373   hardcode_into_libs=yes
14374   ;;
14375
14376 hpux9* | hpux10* | hpux11*)
14377   # Give a soname corresponding to the major version so that dld.sl refuses to
14378   # link against other versions.
14379   version_type=sunos
14380   need_lib_prefix=no
14381   need_version=no
14382   case $host_cpu in
14383   ia64*)
14384     shrext_cmds='.so'
14385     hardcode_into_libs=yes
14386     dynamic_linker="$host_os dld.so"
14387     shlibpath_var=LD_LIBRARY_PATH
14388     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14389     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14390     soname_spec='$libname$release$shared_ext$major'
14391     if test 32 = "$HPUX_IA64_MODE"; then
14392       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14393       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14394     else
14395       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14396       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14397     fi
14398     ;;
14399   hppa*64*)
14400     shrext_cmds='.sl'
14401     hardcode_into_libs=yes
14402     dynamic_linker="$host_os dld.sl"
14403     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14404     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14405     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14406     soname_spec='$libname$release$shared_ext$major'
14407     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14408     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14409     ;;
14410   *)
14411     shrext_cmds='.sl'
14412     dynamic_linker="$host_os dld.sl"
14413     shlibpath_var=SHLIB_PATH
14414     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14415     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14416     soname_spec='$libname$release$shared_ext$major'
14417     ;;
14418   esac
14419   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14420   postinstall_cmds='chmod 555 $lib'
14421   # or fails outright, so override atomically:
14422   install_override_mode=555
14423   ;;
14424
14425 interix[3-9]*)
14426   version_type=linux # correct to gnu/linux during the next big refactor
14427   need_lib_prefix=no
14428   need_version=no
14429   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14430   soname_spec='$libname$release$shared_ext$major'
14431   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14432   shlibpath_var=LD_LIBRARY_PATH
14433   shlibpath_overrides_runpath=no
14434   hardcode_into_libs=yes
14435   ;;
14436
14437 irix5* | irix6* | nonstopux*)
14438   case $host_os in
14439     nonstopux*) version_type=nonstopux ;;
14440     *)
14441         if test yes = "$lt_cv_prog_gnu_ld"; then
14442                 version_type=linux # correct to gnu/linux during the next big refactor
14443         else
14444                 version_type=irix
14445         fi ;;
14446   esac
14447   need_lib_prefix=no
14448   need_version=no
14449   soname_spec='$libname$release$shared_ext$major'
14450   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14451   case $host_os in
14452   irix5* | nonstopux*)
14453     libsuff= shlibsuff=
14454     ;;
14455   *)
14456     case $LD in # libtool.m4 will add one of these switches to LD
14457     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14458       libsuff= shlibsuff= libmagic=32-bit;;
14459     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14460       libsuff=32 shlibsuff=N32 libmagic=N32;;
14461     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14462       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14463     *) libsuff= shlibsuff= libmagic=never-match;;
14464     esac
14465     ;;
14466   esac
14467   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14468   shlibpath_overrides_runpath=no
14469   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14470   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14471   hardcode_into_libs=yes
14472   ;;
14473
14474 # No shared lib support for Linux oldld, aout, or coff.
14475 linux*oldld* | linux*aout* | linux*coff*)
14476   dynamic_linker=no
14477   ;;
14478
14479 linux*android*)
14480   version_type=none # Android doesn't support versioned libraries.
14481   need_lib_prefix=no
14482   need_version=no
14483   library_names_spec='$libname$release$shared_ext'
14484   soname_spec='$libname$release$shared_ext'
14485   finish_cmds=
14486   shlibpath_var=LD_LIBRARY_PATH
14487   shlibpath_overrides_runpath=yes
14488
14489   # This implies no fast_install, which is unacceptable.
14490   # Some rework will be needed to allow for fast_install
14491   # before this can be enabled.
14492   hardcode_into_libs=yes
14493
14494   dynamic_linker='Android linker'
14495   # Don't embed -rpath directories since the linker doesn't support them.
14496   hardcode_libdir_flag_spec='-L$libdir'
14497   ;;
14498
14499 # This must be glibc/ELF.
14500 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14501   version_type=linux # correct to gnu/linux during the next big refactor
14502   need_lib_prefix=no
14503   need_version=no
14504   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14505   soname_spec='$libname$release$shared_ext$major'
14506   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14507   shlibpath_var=LD_LIBRARY_PATH
14508   shlibpath_overrides_runpath=no
14509
14510   # Some binutils ld are patched to set DT_RUNPATH
14511   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14512   $as_echo_n "(cached) " >&6
14513 else
14514   lt_cv_shlibpath_overrides_runpath=no
14515     save_LDFLAGS=$LDFLAGS
14516     save_libdir=$libdir
14517     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14518          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14519     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h.  */
14521
14522 int main (void)
14523 {
14524
14525  ;
14526  return 0;
14527 }
14528 _ACEOF
14529 if ac_fn_c_try_link "$LINENO"; then :
14530   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14531   lt_cv_shlibpath_overrides_runpath=yes
14532 fi
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext \
14535     conftest$ac_exeext conftest.$ac_ext
14536     LDFLAGS=$save_LDFLAGS
14537     libdir=$save_libdir
14538
14539 fi
14540
14541   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14542
14543   # This implies no fast_install, which is unacceptable.
14544   # Some rework will be needed to allow for fast_install
14545   # before this can be enabled.
14546   hardcode_into_libs=yes
14547
14548   # Ideally, we could use ldconfig to report *all* directores which are
14549   # searched for libraries, however this is still not possible.  Aside from not
14550   # being certain /sbin/ldconfig is available, command
14551   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14552   # even though it is searched at run-time.  Try to do the best guess by
14553   # appending ld.so.conf contents (and includes) to the search path.
14554   if test -f /etc/ld.so.conf; then
14555     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' ' '`
14556     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14557   fi
14558
14559   # We used to test for /lib/ld.so.1 and disable shared libraries on
14560   # powerpc, because MkLinux only supported shared libraries with the
14561   # GNU dynamic linker.  Since this was broken with cross compilers,
14562   # most powerpc-linux boxes support dynamic linking these days and
14563   # people can always --disable-shared, the test was removed, and we
14564   # assume the GNU/Linux dynamic linker is in use.
14565   dynamic_linker='GNU/Linux ld.so'
14566   ;;
14567
14568 netbsdelf*-gnu)
14569   version_type=linux
14570   need_lib_prefix=no
14571   need_version=no
14572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14573   soname_spec='${libname}${release}${shared_ext}$major'
14574   shlibpath_var=LD_LIBRARY_PATH
14575   shlibpath_overrides_runpath=no
14576   hardcode_into_libs=yes
14577   dynamic_linker='NetBSD ld.elf_so'
14578   ;;
14579
14580 netbsd*)
14581   version_type=sunos
14582   need_lib_prefix=no
14583   need_version=no
14584   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14585     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14586     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14587     dynamic_linker='NetBSD (a.out) ld.so'
14588   else
14589     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14590     soname_spec='$libname$release$shared_ext$major'
14591     dynamic_linker='NetBSD ld.elf_so'
14592   fi
14593   shlibpath_var=LD_LIBRARY_PATH
14594   shlibpath_overrides_runpath=yes
14595   hardcode_into_libs=yes
14596   ;;
14597
14598 newsos6)
14599   version_type=linux # correct to gnu/linux during the next big refactor
14600   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14601   shlibpath_var=LD_LIBRARY_PATH
14602   shlibpath_overrides_runpath=yes
14603   ;;
14604
14605 *nto* | *qnx*)
14606   version_type=qnx
14607   need_lib_prefix=no
14608   need_version=no
14609   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14610   soname_spec='$libname$release$shared_ext$major'
14611   shlibpath_var=LD_LIBRARY_PATH
14612   shlibpath_overrides_runpath=no
14613   hardcode_into_libs=yes
14614   dynamic_linker='ldqnx.so'
14615   ;;
14616
14617 openbsd* | bitrig*)
14618   version_type=sunos
14619   sys_lib_dlsearch_path_spec=/usr/lib
14620   need_lib_prefix=no
14621   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14622     need_version=no
14623   else
14624     need_version=yes
14625   fi
14626   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14627   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14628   shlibpath_var=LD_LIBRARY_PATH
14629   shlibpath_overrides_runpath=yes
14630   ;;
14631
14632 os2*)
14633   libname_spec='$name'
14634   version_type=windows
14635   shrext_cmds=.dll
14636   need_version=no
14637   need_lib_prefix=no
14638   # OS/2 can only load a DLL with a base name of 8 characters or less.
14639   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14640     v=$($ECHO $release$versuffix | tr -d .-);
14641     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14642     $ECHO $n$v`$shared_ext'
14643   library_names_spec='${libname}_dll.$libext'
14644   dynamic_linker='OS/2 ld.exe'
14645   shlibpath_var=BEGINLIBPATH
14646   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14647   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14648   postinstall_cmds='base_file=`basename \$file`~
14649     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14650     dldir=$destdir/`dirname \$dlpath`~
14651     test -d \$dldir || mkdir -p \$dldir~
14652     $install_prog $dir/$dlname \$dldir/$dlname~
14653     chmod a+x \$dldir/$dlname~
14654     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14655       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14656     fi'
14657   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14658     dlpath=$dir/\$dldll~
14659     $RM \$dlpath'
14660   ;;
14661
14662 osf3* | osf4* | osf5*)
14663   version_type=osf
14664   need_lib_prefix=no
14665   need_version=no
14666   soname_spec='$libname$release$shared_ext$major'
14667   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14668   shlibpath_var=LD_LIBRARY_PATH
14669   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14670   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14671   ;;
14672
14673 rdos*)
14674   dynamic_linker=no
14675   ;;
14676
14677 solaris*)
14678   version_type=linux # correct to gnu/linux during the next big refactor
14679   need_lib_prefix=no
14680   need_version=no
14681   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14682   soname_spec='$libname$release$shared_ext$major'
14683   shlibpath_var=LD_LIBRARY_PATH
14684   shlibpath_overrides_runpath=yes
14685   hardcode_into_libs=yes
14686   # ldd complains unless libraries are executable
14687   postinstall_cmds='chmod +x $lib'
14688   ;;
14689
14690 sunos4*)
14691   version_type=sunos
14692   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14693   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14694   shlibpath_var=LD_LIBRARY_PATH
14695   shlibpath_overrides_runpath=yes
14696   if test yes = "$with_gnu_ld"; then
14697     need_lib_prefix=no
14698   fi
14699   need_version=yes
14700   ;;
14701
14702 sysv4 | sysv4.3*)
14703   version_type=linux # correct to gnu/linux during the next big refactor
14704   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14705   soname_spec='$libname$release$shared_ext$major'
14706   shlibpath_var=LD_LIBRARY_PATH
14707   case $host_vendor in
14708     sni)
14709       shlibpath_overrides_runpath=no
14710       need_lib_prefix=no
14711       runpath_var=LD_RUN_PATH
14712       ;;
14713     siemens)
14714       need_lib_prefix=no
14715       ;;
14716     motorola)
14717       need_lib_prefix=no
14718       need_version=no
14719       shlibpath_overrides_runpath=no
14720       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14721       ;;
14722   esac
14723   ;;
14724
14725 sysv4*MP*)
14726   if test -d /usr/nec; then
14727     version_type=linux # correct to gnu/linux during the next big refactor
14728     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14729     soname_spec='$libname$shared_ext.$major'
14730     shlibpath_var=LD_LIBRARY_PATH
14731   fi
14732   ;;
14733
14734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14735   version_type=sco
14736   need_lib_prefix=no
14737   need_version=no
14738   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14739   soname_spec='$libname$release$shared_ext$major'
14740   shlibpath_var=LD_LIBRARY_PATH
14741   shlibpath_overrides_runpath=yes
14742   hardcode_into_libs=yes
14743   if test yes = "$with_gnu_ld"; then
14744     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14745   else
14746     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14747     case $host_os in
14748       sco3.2v5*)
14749         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14750         ;;
14751     esac
14752   fi
14753   sys_lib_dlsearch_path_spec='/usr/lib'
14754   ;;
14755
14756 tpf*)
14757   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14758   version_type=linux # correct to gnu/linux during the next big refactor
14759   need_lib_prefix=no
14760   need_version=no
14761   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14762   shlibpath_var=LD_LIBRARY_PATH
14763   shlibpath_overrides_runpath=no
14764   hardcode_into_libs=yes
14765   ;;
14766
14767 uts4*)
14768   version_type=linux # correct to gnu/linux during the next big refactor
14769   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14770   soname_spec='$libname$release$shared_ext$major'
14771   shlibpath_var=LD_LIBRARY_PATH
14772   ;;
14773
14774 *)
14775   dynamic_linker=no
14776   ;;
14777 esac
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14779 $as_echo "$dynamic_linker" >&6; }
14780 test no = "$dynamic_linker" && can_build_shared=no
14781
14782 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14783 if test yes = "$GCC"; then
14784   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14785 fi
14786
14787 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14788   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14789 fi
14790
14791 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14792   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14793 fi
14794
14795 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14796 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14797
14798 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14799 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14800
14801 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14802 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14901 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14902 hardcode_action=
14903 if test -n "$hardcode_libdir_flag_spec" ||
14904    test -n "$runpath_var" ||
14905    test yes = "$hardcode_automatic"; then
14906
14907   # We can hardcode non-existent directories.
14908   if test no != "$hardcode_direct" &&
14909      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14910      # have to relink, otherwise we might link with an installed library
14911      # when we should be linking with a yet-to-be-installed one
14912      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14913      test no != "$hardcode_minus_L"; then
14914     # Linking always hardcodes the temporary library directory.
14915     hardcode_action=relink
14916   else
14917     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14918     hardcode_action=immediate
14919   fi
14920 else
14921   # We cannot hardcode anything, or else we can only hardcode existing
14922   # directories.
14923   hardcode_action=unsupported
14924 fi
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14926 $as_echo "$hardcode_action" >&6; }
14927
14928 if test relink = "$hardcode_action" ||
14929    test yes = "$inherit_rpath"; then
14930   # Fast installation is not supported
14931   enable_fast_install=no
14932 elif test yes = "$shlibpath_overrides_runpath" ||
14933      test no = "$enable_shared"; then
14934   # Fast installation is not necessary
14935   enable_fast_install=needless
14936 fi
14937
14938
14939
14940
14941
14942
14943   if test yes != "$enable_dlopen"; then
14944   enable_dlopen=unknown
14945   enable_dlopen_self=unknown
14946   enable_dlopen_self_static=unknown
14947 else
14948   lt_cv_dlopen=no
14949   lt_cv_dlopen_libs=
14950
14951   case $host_os in
14952   beos*)
14953     lt_cv_dlopen=load_add_on
14954     lt_cv_dlopen_libs=
14955     lt_cv_dlopen_self=yes
14956     ;;
14957
14958   mingw* | pw32* | cegcc*)
14959     lt_cv_dlopen=LoadLibrary
14960     lt_cv_dlopen_libs=
14961     ;;
14962
14963   cygwin*)
14964     lt_cv_dlopen=dlopen
14965     lt_cv_dlopen_libs=
14966     ;;
14967
14968   darwin*)
14969     # if libdl is installed we need to link against it
14970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14971 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14972 if ${ac_cv_lib_dl_dlopen+:} false; then :
14973   $as_echo_n "(cached) " >&6
14974 else
14975   ac_check_lib_save_LIBS=$LIBS
14976 LIBS="-ldl  $LIBS"
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h.  */
14979
14980
14981 #ifdef __cplusplus
14982 extern "C"
14983 #endif
14984 char dlopen ();
14985 int main (void)
14986 {
14987 return dlopen ();
14988  ;
14989  return 0;
14990 }
14991 _ACEOF
14992 if ac_fn_c_try_link "$LINENO"; then :
14993   ac_cv_lib_dl_dlopen=yes
14994 else
14995   ac_cv_lib_dl_dlopen=no
14996 fi
14997 rm -f core conftest.err conftest.$ac_objext \
14998     conftest$ac_exeext conftest.$ac_ext
14999 LIBS=$ac_check_lib_save_LIBS
15000 fi
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15002 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15003 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15004   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15005 else
15006
15007     lt_cv_dlopen=dyld
15008     lt_cv_dlopen_libs=
15009     lt_cv_dlopen_self=yes
15010
15011 fi
15012
15013     ;;
15014
15015   tpf*)
15016     # Don't try to run any link tests for TPF.  We know it's impossible
15017     # because TPF is a cross-compiler, and we know how we open DSOs.
15018     lt_cv_dlopen=dlopen
15019     lt_cv_dlopen_libs=
15020     lt_cv_dlopen_self=no
15021     ;;
15022
15023   *)
15024     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15025 if test "x$ac_cv_func_shl_load" = xyes; then :
15026   lt_cv_dlopen=shl_load
15027 else
15028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15029 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15030 if ${ac_cv_lib_dld_shl_load+:} false; then :
15031   $as_echo_n "(cached) " >&6
15032 else
15033   ac_check_lib_save_LIBS=$LIBS
15034 LIBS="-ldld  $LIBS"
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h.  */
15037
15038
15039 #ifdef __cplusplus
15040 extern "C"
15041 #endif
15042 char shl_load ();
15043 int main (void)
15044 {
15045 return shl_load ();
15046  ;
15047  return 0;
15048 }
15049 _ACEOF
15050 if ac_fn_c_try_link "$LINENO"; then :
15051   ac_cv_lib_dld_shl_load=yes
15052 else
15053   ac_cv_lib_dld_shl_load=no
15054 fi
15055 rm -f core conftest.err conftest.$ac_objext \
15056     conftest$ac_exeext conftest.$ac_ext
15057 LIBS=$ac_check_lib_save_LIBS
15058 fi
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15060 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15061 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15062   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15063 else
15064   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15065 if test "x$ac_cv_func_dlopen" = xyes; then :
15066   lt_cv_dlopen=dlopen
15067 else
15068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15069 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15070 if ${ac_cv_lib_dl_dlopen+:} false; then :
15071   $as_echo_n "(cached) " >&6
15072 else
15073   ac_check_lib_save_LIBS=$LIBS
15074 LIBS="-ldl  $LIBS"
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h.  */
15077
15078
15079 #ifdef __cplusplus
15080 extern "C"
15081 #endif
15082 char dlopen ();
15083 int main (void)
15084 {
15085 return dlopen ();
15086  ;
15087  return 0;
15088 }
15089 _ACEOF
15090 if ac_fn_c_try_link "$LINENO"; then :
15091   ac_cv_lib_dl_dlopen=yes
15092 else
15093   ac_cv_lib_dl_dlopen=no
15094 fi
15095 rm -f core conftest.err conftest.$ac_objext \
15096     conftest$ac_exeext conftest.$ac_ext
15097 LIBS=$ac_check_lib_save_LIBS
15098 fi
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15101 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15102   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15103 else
15104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15105 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15106 if ${ac_cv_lib_svld_dlopen+:} false; then :
15107   $as_echo_n "(cached) " >&6
15108 else
15109   ac_check_lib_save_LIBS=$LIBS
15110 LIBS="-lsvld  $LIBS"
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h.  */
15113
15114
15115 #ifdef __cplusplus
15116 extern "C"
15117 #endif
15118 char dlopen ();
15119 int main (void)
15120 {
15121 return dlopen ();
15122  ;
15123  return 0;
15124 }
15125 _ACEOF
15126 if ac_fn_c_try_link "$LINENO"; then :
15127   ac_cv_lib_svld_dlopen=yes
15128 else
15129   ac_cv_lib_svld_dlopen=no
15130 fi
15131 rm -f core conftest.err conftest.$ac_objext \
15132     conftest$ac_exeext conftest.$ac_ext
15133 LIBS=$ac_check_lib_save_LIBS
15134 fi
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15136 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15137 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15138   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15139 else
15140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15141 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15142 if ${ac_cv_lib_dld_dld_link+:} false; then :
15143   $as_echo_n "(cached) " >&6
15144 else
15145   ac_check_lib_save_LIBS=$LIBS
15146 LIBS="-ldld  $LIBS"
15147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15148 /* end confdefs.h.  */
15149
15150
15151 #ifdef __cplusplus
15152 extern "C"
15153 #endif
15154 char dld_link ();
15155 int main (void)
15156 {
15157 return dld_link ();
15158  ;
15159  return 0;
15160 }
15161 _ACEOF
15162 if ac_fn_c_try_link "$LINENO"; then :
15163   ac_cv_lib_dld_dld_link=yes
15164 else
15165   ac_cv_lib_dld_dld_link=no
15166 fi
15167 rm -f core conftest.err conftest.$ac_objext \
15168     conftest$ac_exeext conftest.$ac_ext
15169 LIBS=$ac_check_lib_save_LIBS
15170 fi
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15172 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15173 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15174   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15175 fi
15176
15177
15178 fi
15179
15180
15181 fi
15182
15183
15184 fi
15185
15186
15187 fi
15188
15189
15190 fi
15191
15192     ;;
15193   esac
15194
15195   if test no = "$lt_cv_dlopen"; then
15196     enable_dlopen=no
15197   else
15198     enable_dlopen=yes
15199   fi
15200
15201   case $lt_cv_dlopen in
15202   dlopen)
15203     save_CPPFLAGS=$CPPFLAGS
15204     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15205
15206     save_LDFLAGS=$LDFLAGS
15207     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15208
15209     save_LIBS=$LIBS
15210     LIBS="$lt_cv_dlopen_libs $LIBS"
15211
15212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15213 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15214 if ${lt_cv_dlopen_self+:} false; then :
15215   $as_echo_n "(cached) " >&6
15216 else
15217           if test yes = "$cross_compiling"; then :
15218   lt_cv_dlopen_self=cross
15219 else
15220   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15221   lt_status=$lt_dlunknown
15222   cat > conftest.$ac_ext <<_LT_EOF
15223 #line $LINENO "configure"
15224 #include "confdefs.h"
15225
15226 #if HAVE_DLFCN_H
15227 #include <dlfcn.h>
15228 #endif
15229
15230 #include <stdio.h>
15231
15232 #ifdef RTLD_GLOBAL
15233 #  define LT_DLGLOBAL           RTLD_GLOBAL
15234 #else
15235 #  ifdef DL_GLOBAL
15236 #    define LT_DLGLOBAL         DL_GLOBAL
15237 #  else
15238 #    define LT_DLGLOBAL         0
15239 #  endif
15240 #endif
15241
15242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15243    find out it does not work in some platform. */
15244 #ifndef LT_DLLAZY_OR_NOW
15245 #  ifdef RTLD_LAZY
15246 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15247 #  else
15248 #    ifdef DL_LAZY
15249 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15250 #    else
15251 #      ifdef RTLD_NOW
15252 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15253 #      else
15254 #        ifdef DL_NOW
15255 #          define LT_DLLAZY_OR_NOW      DL_NOW
15256 #        else
15257 #          define LT_DLLAZY_OR_NOW      0
15258 #        endif
15259 #      endif
15260 #    endif
15261 #  endif
15262 #endif
15263
15264 /* When -fvisibility=hidden is used, assume the code has been annotated
15265    correspondingly for the symbols needed.  */
15266 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15267 int fnord () __attribute__((visibility("default")));
15268 #endif
15269
15270 int fnord () { return 42; }
15271 int main ()
15272 {
15273   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15274   int status = $lt_dlunknown;
15275
15276   if (self)
15277     {
15278       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15279       else
15280         {
15281           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15282           else puts (dlerror ());
15283         }
15284       /* dlclose (self); */
15285     }
15286   else
15287     puts (dlerror ());
15288
15289   return status;
15290 }
15291 _LT_EOF
15292   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15293   (eval $ac_link) 2>&5
15294   ac_status=$?
15295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15296   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15297     (./conftest; exit; ) >&5 2>/dev/null
15298     lt_status=$?
15299     case x$lt_status in
15300       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15301       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15302       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15303     esac
15304   else :
15305     # compilation failed
15306     lt_cv_dlopen_self=no
15307   fi
15308 fi
15309 rm -fr conftest*
15310
15311
15312 fi
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15314 $as_echo "$lt_cv_dlopen_self" >&6; }
15315
15316     if test yes = "$lt_cv_dlopen_self"; then
15317       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15318       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15319 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15320 if ${lt_cv_dlopen_self_static+:} false; then :
15321   $as_echo_n "(cached) " >&6
15322 else
15323           if test yes = "$cross_compiling"; then :
15324   lt_cv_dlopen_self_static=cross
15325 else
15326   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15327   lt_status=$lt_dlunknown
15328   cat > conftest.$ac_ext <<_LT_EOF
15329 #line $LINENO "configure"
15330 #include "confdefs.h"
15331
15332 #if HAVE_DLFCN_H
15333 #include <dlfcn.h>
15334 #endif
15335
15336 #include <stdio.h>
15337
15338 #ifdef RTLD_GLOBAL
15339 #  define LT_DLGLOBAL           RTLD_GLOBAL
15340 #else
15341 #  ifdef DL_GLOBAL
15342 #    define LT_DLGLOBAL         DL_GLOBAL
15343 #  else
15344 #    define LT_DLGLOBAL         0
15345 #  endif
15346 #endif
15347
15348 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15349    find out it does not work in some platform. */
15350 #ifndef LT_DLLAZY_OR_NOW
15351 #  ifdef RTLD_LAZY
15352 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15353 #  else
15354 #    ifdef DL_LAZY
15355 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15356 #    else
15357 #      ifdef RTLD_NOW
15358 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15359 #      else
15360 #        ifdef DL_NOW
15361 #          define LT_DLLAZY_OR_NOW      DL_NOW
15362 #        else
15363 #          define LT_DLLAZY_OR_NOW      0
15364 #        endif
15365 #      endif
15366 #    endif
15367 #  endif
15368 #endif
15369
15370 /* When -fvisibility=hidden is used, assume the code has been annotated
15371    correspondingly for the symbols needed.  */
15372 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15373 int fnord () __attribute__((visibility("default")));
15374 #endif
15375
15376 int fnord () { return 42; }
15377 int main ()
15378 {
15379   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15380   int status = $lt_dlunknown;
15381
15382   if (self)
15383     {
15384       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15385       else
15386         {
15387           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15388           else puts (dlerror ());
15389         }
15390       /* dlclose (self); */
15391     }
15392   else
15393     puts (dlerror ());
15394
15395   return status;
15396 }
15397 _LT_EOF
15398   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15399   (eval $ac_link) 2>&5
15400   ac_status=$?
15401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15402   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15403     (./conftest; exit; ) >&5 2>/dev/null
15404     lt_status=$?
15405     case x$lt_status in
15406       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15407       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15408       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15409     esac
15410   else :
15411     # compilation failed
15412     lt_cv_dlopen_self_static=no
15413   fi
15414 fi
15415 rm -fr conftest*
15416
15417
15418 fi
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15420 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15421     fi
15422
15423     CPPFLAGS=$save_CPPFLAGS
15424     LDFLAGS=$save_LDFLAGS
15425     LIBS=$save_LIBS
15426     ;;
15427   esac
15428
15429   case $lt_cv_dlopen_self in
15430   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15431   *) enable_dlopen_self=unknown ;;
15432   esac
15433
15434   case $lt_cv_dlopen_self_static in
15435   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15436   *) enable_dlopen_self_static=unknown ;;
15437   esac
15438 fi
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456 striplib=
15457 old_striplib=
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15459 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15460 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15461   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15462   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15464 $as_echo "yes" >&6; }
15465 else
15466 # FIXME - insert some real tests, host_os isn't really good enough
15467   case $host_os in
15468   darwin*)
15469     if test -n "$STRIP"; then
15470       striplib="$STRIP -x"
15471       old_striplib="$STRIP -S"
15472       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15473 $as_echo "yes" >&6; }
15474     else
15475       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15476 $as_echo "no" >&6; }
15477     fi
15478     ;;
15479   *)
15480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15481 $as_echo "no" >&6; }
15482     ;;
15483   esac
15484 fi
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497   # Report what library types will actually be built
15498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15499 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15501 $as_echo "$can_build_shared" >&6; }
15502
15503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15504 $as_echo_n "checking whether to build shared libraries... " >&6; }
15505   test no = "$can_build_shared" && enable_shared=no
15506
15507   # On AIX, shared libraries and static libraries use the same namespace, and
15508   # are all built from PIC.
15509   case $host_os in
15510   aix3*)
15511     test yes = "$enable_shared" && enable_static=no
15512     if test -n "$RANLIB"; then
15513       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15514       postinstall_cmds='$RANLIB $lib'
15515     fi
15516     ;;
15517
15518   aix[4-9]*)
15519     if test ia64 != "$host_cpu"; then
15520       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15521       yes,aix,yes) ;;                   # shared object as lib.so file only
15522       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15523       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15524       esac
15525     fi
15526     ;;
15527   esac
15528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15529 $as_echo "$enable_shared" >&6; }
15530
15531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15532 $as_echo_n "checking whether to build static libraries... " >&6; }
15533   # Make sure either enable_shared or enable_static is yes.
15534   test yes = "$enable_shared" || enable_static=yes
15535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15536 $as_echo "$enable_static" >&6; }
15537
15538
15539
15540
15541 fi
15542 ac_ext=c
15543 ac_cpp='$CPP $CPPFLAGS'
15544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15547
15548 CC=$lt_save_CC
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564         ac_config_commands="$ac_config_commands libtool"
15565
15566
15567
15568
15569 # Only expand once:
15570
15571
15572 ## --------------------- ##
15573 ##  End of libtool code  ##
15574 ## --------------------- ##
15575
15576 #
15577 # Verify if finally libtool shared libraries will be built
15578 #
15579
15580 case "x$enable_shared" in # ((
15581   xyes | xno)
15582     xc_lt_build_shared=$enable_shared
15583     ;;
15584   *)
15585     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15586     ;;
15587 esac
15588
15589 #
15590 # Verify if finally libtool static libraries will be built
15591 #
15592
15593 case "x$enable_static" in # ((
15594   xyes | xno)
15595     xc_lt_build_static=$enable_static
15596     ;;
15597   *)
15598     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15599     ;;
15600 esac
15601
15602 #
15603 # Verify if libtool shared libraries should be linked using flag -version-info
15604 #
15605
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15607 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15608 xc_lt_shlib_use_version_info='yes'
15609 if test "x$version_type" = 'xnone'; then
15610   xc_lt_shlib_use_version_info='no'
15611 fi
15612 case $host_os in # (
15613   amigaos*)
15614     xc_lt_shlib_use_version_info='yes'
15615     ;;
15616 esac
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15618 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15619
15620 #
15621 # Verify if libtool shared libraries should be linked using flag -no-undefined
15622 #
15623
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15625 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15626 xc_lt_shlib_use_no_undefined='no'
15627 if test "x$allow_undefined" = 'xno'; then
15628   xc_lt_shlib_use_no_undefined='yes'
15629 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15630   xc_lt_shlib_use_no_undefined='yes'
15631 fi
15632 case $host_os in # (
15633   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15634     xc_lt_shlib_use_no_undefined='yes'
15635     ;;
15636 esac
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15638 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15639
15640 #
15641 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15642 #
15643
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15645 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15646 xc_lt_shlib_use_mimpure_text='no'
15647 case $host_os in # (
15648   solaris2*)
15649     if test "x$GCC" = 'xyes'; then
15650       xc_lt_shlib_use_mimpure_text='yes'
15651     fi
15652     ;;
15653 esac
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15655 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15656
15657 #
15658 # Find out whether libtool libraries would be built wit PIC
15659 #
15660
15661 case "x$pic_mode" in # ((((
15662   xdefault)
15663     xc_lt_build_shared_with_pic='yes'
15664     xc_lt_build_static_with_pic='no'
15665     ;;
15666   xyes)
15667     xc_lt_build_shared_with_pic='yes'
15668     xc_lt_build_static_with_pic='yes'
15669     ;;
15670   xno)
15671     xc_lt_build_shared_with_pic='no'
15672     xc_lt_build_static_with_pic='no'
15673     ;;
15674   *)
15675     xc_lt_build_shared_with_pic='unknown'
15676     xc_lt_build_static_with_pic='unknown'
15677     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15678 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15679     ;;
15680 esac
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15682 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15684 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15686 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15688 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15689
15690 #
15691 # Verify if libtool shared libraries will be built while static not built
15692 #
15693
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15695 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15696 if test "$xc_lt_build_shared" = 'yes' &&
15697   test "$xc_lt_build_static" = 'no'; then
15698   xc_lt_build_shared_only='yes'
15699 else
15700   xc_lt_build_shared_only='no'
15701 fi
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15703 $as_echo "$xc_lt_build_shared_only" >&6; }
15704
15705 #
15706 # Verify if libtool static libraries will be built while shared not built
15707 #
15708
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15710 $as_echo_n "checking whether to build static libraries only... " >&6; }
15711 if test "$xc_lt_build_static" = 'yes' &&
15712   test "$xc_lt_build_shared" = 'no'; then
15713   xc_lt_build_static_only='yes'
15714 else
15715   xc_lt_build_static_only='no'
15716 fi
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15718 $as_echo "$xc_lt_build_static_only" >&6; }
15719
15720
15721
15722
15723 #
15724 # Automake conditionals based on libtool related checks
15725 #
15726
15727  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15728   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15729   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15730 else
15731   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15732   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15733 fi
15734
15735  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15736   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15737   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15738 else
15739   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15740   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15741 fi
15742
15743  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15744   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15745   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15746 else
15747   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15748   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15749 fi
15750
15751
15752 #
15753 # Due to libtool and automake machinery limitations of not allowing
15754 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15755 # inclusion of these in shared or static libraries, we are forced to
15756 # build using separate configure runs for shared and static libraries
15757 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15758 # to compile objects for each kind of library. Notice that relying on
15759 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15760 # user might for example choose to build static libraries with PIC.
15761 #
15762
15763 #
15764 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15765 # targeting a static library and not building its shared counterpart.
15766 #
15767
15768  if test "x$xc_lt_build_static_only" = 'xyes'; then
15769   USE_CPPFLAG_CURL_STATICLIB_TRUE=
15770   USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15771 else
15772   USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15773   USE_CPPFLAG_CURL_STATICLIB_FALSE=
15774 fi
15775
15776
15777 #
15778 # Make staticlib CPPFLAG variable and its definition visible in output
15779 # files unconditionally, providing an empty definition unless strictly
15780 # targeting a static library and not building its shared counterpart.
15781 #
15782
15783 CPPFLAG_CURL_STATICLIB=
15784 if test "x$xc_lt_build_static_only" = 'xyes'; then
15785   CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15786 fi
15787
15788
15789
15790 # Determine whether all dependent libraries must be specified when linking
15791 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15792 then
15793     REQUIRE_LIB_DEPS=no
15794 else
15795     REQUIRE_LIB_DEPS=yes
15796 fi
15797
15798  if test x$REQUIRE_LIB_DEPS = xyes; then
15799   USE_EXPLICIT_LIB_DEPS_TRUE=
15800   USE_EXPLICIT_LIB_DEPS_FALSE='#'
15801 else
15802   USE_EXPLICIT_LIB_DEPS_TRUE='#'
15803   USE_EXPLICIT_LIB_DEPS_FALSE=
15804 fi
15805
15806
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15808 $as_echo_n "checking for inline... " >&6; }
15809 if ${ac_cv_c_inline+:} false; then :
15810   $as_echo_n "(cached) " >&6
15811 else
15812   ac_cv_c_inline=no
15813 for ac_kw in inline __inline__ __inline; do
15814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h.  */
15816 #ifndef __cplusplus
15817 typedef int foo_t;
15818 static $ac_kw foo_t static_foo () {return 0; }
15819 $ac_kw foo_t foo () {return 0; }
15820 #endif
15821
15822 _ACEOF
15823 if ac_fn_c_try_compile "$LINENO"; then :
15824   ac_cv_c_inline=$ac_kw
15825 fi
15826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15827   test "$ac_cv_c_inline" != no && break
15828 done
15829
15830 fi
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15832 $as_echo "$ac_cv_c_inline" >&6; }
15833
15834 case $ac_cv_c_inline in
15835   inline | yes) ;;
15836   *)
15837     case $ac_cv_c_inline in
15838       no) ac_val=;;
15839       *) ac_val=$ac_cv_c_inline;;
15840     esac
15841     cat >>confdefs.h <<_ACEOF
15842 #ifndef __cplusplus
15843 #define inline $ac_val
15844 #endif
15845 _ACEOF
15846     ;;
15847 esac
15848
15849
15850
15851
15852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15853 $as_echo_n "checking if cpp -P is needed... " >&6; }
15854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h.  */
15856
15857  #include <errno.h>
15858 TEST EINVAL TEST
15859
15860 _ACEOF
15861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15862   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15863   cpp=no
15864 else
15865   cpp=yes
15866 fi
15867 rm -f conftest*
15868
15869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15870 $as_echo "$cpp" >&6; }
15871
15872     if test "x$cpp" = "xyes"; then
15873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15874 $as_echo_n "checking if cpp -P works... " >&6; }
15875     OLDCPPFLAGS=$CPPFLAGS
15876     CPPFLAGS="$CPPFLAGS -P"
15877     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h.  */
15879
15880  #include <errno.h>
15881 TEST EINVAL TEST
15882
15883 _ACEOF
15884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15885   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15886   cpp_p=yes
15887 else
15888   cpp_p=no
15889 fi
15890 rm -f conftest*
15891
15892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15893 $as_echo "$cpp_p" >&6; }
15894
15895     if test "x$cpp_p" = "xno"; then
15896       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15897 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15898       # without -P
15899       CPPPFLAG=""
15900     else
15901       # with -P
15902       CPPPFLAG="-P"
15903     fi
15904         CPPFLAGS=$OLDCPPFLAGS
15905   else
15906     # without -P
15907     CPPPFLAG=""
15908   fi
15909
15910
15911   #
15912   compiler_id="unknown"
15913   compiler_num="0"
15914   #
15915   flags_dbg_all="unknown"
15916   flags_dbg_yes="unknown"
15917   flags_dbg_off="unknown"
15918   flags_opt_all="unknown"
15919   flags_opt_yes="unknown"
15920   flags_opt_off="unknown"
15921   #
15922   flags_prefer_cppflags="no"
15923   #
15924
15925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15926 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15927
15928     OLDCPPFLAGS=$CPPFLAGS
15929   # CPPPFLAG comes from CURL_CPP_P
15930   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15931       if test -z "$SED"; then
15932     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15933   fi
15934   if test -z "$GREP"; then
15935     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15936   fi
15937
15938   tmp_exp=""
15939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h.  */
15941
15942
15943 #ifdef __DECC
15944 CURL_DEF_TOKEN __DECC
15945 #endif
15946
15947
15948 _ACEOF
15949 if ac_fn_c_try_cpp "$LINENO"; then :
15950
15951     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15952       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15953       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15954       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15955     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15956       tmp_exp=""
15957     fi
15958
15959 fi
15960 rm -f conftest.err conftest.i conftest.$ac_ext
15961   if test -z "$tmp_exp"; then
15962     curl_cv_have_def___DECC=no
15963
15964   else
15965     curl_cv_have_def___DECC=yes
15966     curl_cv_def___DECC=$tmp_exp
15967
15968   fi
15969       CPPFLAGS=$OLDCPPFLAGS
15970
15971
15972     OLDCPPFLAGS=$CPPFLAGS
15973   # CPPPFLAG comes from CURL_CPP_P
15974   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15975       if test -z "$SED"; then
15976     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15977   fi
15978   if test -z "$GREP"; then
15979     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15980   fi
15981
15982   tmp_exp=""
15983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h.  */
15985
15986
15987 #ifdef __DECC_VER
15988 CURL_DEF_TOKEN __DECC_VER
15989 #endif
15990
15991
15992 _ACEOF
15993 if ac_fn_c_try_cpp "$LINENO"; then :
15994
15995     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15996       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15997       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15998       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15999     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16000       tmp_exp=""
16001     fi
16002
16003 fi
16004 rm -f conftest.err conftest.i conftest.$ac_ext
16005   if test -z "$tmp_exp"; then
16006     curl_cv_have_def___DECC_VER=no
16007
16008   else
16009     curl_cv_have_def___DECC_VER=yes
16010     curl_cv_def___DECC_VER=$tmp_exp
16011
16012   fi
16013       CPPFLAGS=$OLDCPPFLAGS
16014
16015   if test "$curl_cv_have_def___DECC" = "yes" &&
16016     test "$curl_cv_have_def___DECC_VER" = "yes"; then
16017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16018 $as_echo "yes" >&6; }
16019     compiler_id="DEC_C"
16020     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16021     flags_dbg_yes="-g2"
16022     flags_dbg_off=""
16023     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16024     flags_opt_yes="-O1"
16025     flags_opt_off="-O0"
16026   else
16027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16028 $as_echo "no" >&6; }
16029   fi
16030
16031
16032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16033 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
16034
16035     OLDCPPFLAGS=$CPPFLAGS
16036   # CPPPFLAG comes from CURL_CPP_P
16037   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16038       if test -z "$SED"; then
16039     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16040   fi
16041   if test -z "$GREP"; then
16042     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16043   fi
16044
16045   tmp_exp=""
16046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h.  */
16048
16049
16050 #ifdef __HP_cc
16051 CURL_DEF_TOKEN __HP_cc
16052 #endif
16053
16054
16055 _ACEOF
16056 if ac_fn_c_try_cpp "$LINENO"; then :
16057
16058     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16059       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16060       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16061       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16062     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16063       tmp_exp=""
16064     fi
16065
16066 fi
16067 rm -f conftest.err conftest.i conftest.$ac_ext
16068   if test -z "$tmp_exp"; then
16069     curl_cv_have_def___HP_cc=no
16070
16071   else
16072     curl_cv_have_def___HP_cc=yes
16073     curl_cv_def___HP_cc=$tmp_exp
16074
16075   fi
16076       CPPFLAGS=$OLDCPPFLAGS
16077
16078   if test "$curl_cv_have_def___HP_cc" = "yes"; then
16079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16080 $as_echo "yes" >&6; }
16081     compiler_id="HP_UX_C"
16082     flags_dbg_all="-g -s"
16083     flags_dbg_yes="-g"
16084     flags_dbg_off="-s"
16085     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16086     flags_opt_yes="+O2"
16087     flags_opt_off="+O0"
16088   else
16089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16090 $as_echo "no" >&6; }
16091   fi
16092
16093
16094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16095 $as_echo_n "checking if compiler is IBM C... " >&6; }
16096
16097     OLDCPPFLAGS=$CPPFLAGS
16098   # CPPPFLAG comes from CURL_CPP_P
16099   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16100       if test -z "$SED"; then
16101     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16102   fi
16103   if test -z "$GREP"; then
16104     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16105   fi
16106
16107   tmp_exp=""
16108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h.  */
16110
16111
16112 #ifdef __IBMC__
16113 CURL_DEF_TOKEN __IBMC__
16114 #endif
16115
16116
16117 _ACEOF
16118 if ac_fn_c_try_cpp "$LINENO"; then :
16119
16120     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16121       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16122       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16123       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16124     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16125       tmp_exp=""
16126     fi
16127
16128 fi
16129 rm -f conftest.err conftest.i conftest.$ac_ext
16130   if test -z "$tmp_exp"; then
16131     curl_cv_have_def___IBMC__=no
16132
16133   else
16134     curl_cv_have_def___IBMC__=yes
16135     curl_cv_def___IBMC__=$tmp_exp
16136
16137   fi
16138       CPPFLAGS=$OLDCPPFLAGS
16139
16140   if test "$curl_cv_have_def___IBMC__" = "yes"; then
16141     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16142 $as_echo "yes" >&6; }
16143     compiler_id="IBM_C"
16144     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16145     flags_dbg_yes="-g"
16146     flags_dbg_off=""
16147     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16148     flags_opt_all="$flags_opt_all -qnooptimize"
16149     flags_opt_all="$flags_opt_all -qoptimize=0"
16150     flags_opt_all="$flags_opt_all -qoptimize=1"
16151     flags_opt_all="$flags_opt_all -qoptimize=2"
16152     flags_opt_all="$flags_opt_all -qoptimize=3"
16153     flags_opt_all="$flags_opt_all -qoptimize=4"
16154     flags_opt_all="$flags_opt_all -qoptimize=5"
16155     flags_opt_yes="-O2"
16156     flags_opt_off="-qnooptimize"
16157     flags_prefer_cppflags="yes"
16158   else
16159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160 $as_echo "no" >&6; }
16161   fi
16162
16163
16164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16165 $as_echo_n "checking if compiler is Intel C... " >&6; }
16166
16167     OLDCPPFLAGS=$CPPFLAGS
16168   # CPPPFLAG comes from CURL_CPP_P
16169   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16170       if test -z "$SED"; then
16171     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16172   fi
16173   if test -z "$GREP"; then
16174     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16175   fi
16176
16177   tmp_exp=""
16178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16179 /* end confdefs.h.  */
16180
16181
16182 #ifdef __INTEL_COMPILER
16183 CURL_DEF_TOKEN __INTEL_COMPILER
16184 #endif
16185
16186
16187 _ACEOF
16188 if ac_fn_c_try_cpp "$LINENO"; then :
16189
16190     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16191       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16192       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16193       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16194     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16195       tmp_exp=""
16196     fi
16197
16198 fi
16199 rm -f conftest.err conftest.i conftest.$ac_ext
16200   if test -z "$tmp_exp"; then
16201     curl_cv_have_def___INTEL_COMPILER=no
16202
16203   else
16204     curl_cv_have_def___INTEL_COMPILER=yes
16205     curl_cv_def___INTEL_COMPILER=$tmp_exp
16206
16207   fi
16208       CPPFLAGS=$OLDCPPFLAGS
16209
16210   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16212 $as_echo "yes" >&6; }
16213     compiler_num="$curl_cv_def___INTEL_COMPILER"
16214
16215     OLDCPPFLAGS=$CPPFLAGS
16216   # CPPPFLAG comes from CURL_CPP_P
16217   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16218       if test -z "$SED"; then
16219     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16220   fi
16221   if test -z "$GREP"; then
16222     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16223   fi
16224
16225   tmp_exp=""
16226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227 /* end confdefs.h.  */
16228
16229
16230 #ifdef __unix__
16231 CURL_DEF_TOKEN __unix__
16232 #endif
16233
16234
16235 _ACEOF
16236 if ac_fn_c_try_cpp "$LINENO"; then :
16237
16238     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16239       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16240       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16241       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16242     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16243       tmp_exp=""
16244     fi
16245
16246 fi
16247 rm -f conftest.err conftest.i conftest.$ac_ext
16248   if test -z "$tmp_exp"; then
16249     curl_cv_have_def___unix__=no
16250
16251   else
16252     curl_cv_have_def___unix__=yes
16253     curl_cv_def___unix__=$tmp_exp
16254
16255   fi
16256       CPPFLAGS=$OLDCPPFLAGS
16257
16258     if test "$curl_cv_have_def___unix__" = "yes"; then
16259       compiler_id="INTEL_UNIX_C"
16260       flags_dbg_all="-g -g0"
16261       flags_dbg_yes="-g"
16262       flags_dbg_off=""
16263       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16264       flags_opt_yes="-O2"
16265       flags_opt_off="-O0"
16266     else
16267       compiler_id="INTEL_WINDOWS_C"
16268       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16269       flags_dbg_all="$flags_dbg_all /debug"
16270       flags_dbg_all="$flags_dbg_all /debug:none"
16271       flags_dbg_all="$flags_dbg_all /debug:minimal"
16272       flags_dbg_all="$flags_dbg_all /debug:partial"
16273       flags_dbg_all="$flags_dbg_all /debug:full"
16274       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16275       flags_dbg_all="$flags_dbg_all /debug:extended"
16276       flags_dbg_yes="/Zi /Oy-"
16277       flags_dbg_off="/debug:none /Oy-"
16278       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16279       flags_opt_yes="/O2"
16280       flags_opt_off="/Od"
16281     fi
16282   else
16283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284 $as_echo "no" >&6; }
16285   fi
16286
16287
16288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16289 $as_echo_n "checking if compiler is clang... " >&6; }
16290
16291     OLDCPPFLAGS=$CPPFLAGS
16292   # CPPPFLAG comes from CURL_CPP_P
16293   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16294       if test -z "$SED"; then
16295     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16296   fi
16297   if test -z "$GREP"; then
16298     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16299   fi
16300
16301   tmp_exp=""
16302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h.  */
16304
16305
16306 #ifdef __clang__
16307 CURL_DEF_TOKEN __clang__
16308 #endif
16309
16310
16311 _ACEOF
16312 if ac_fn_c_try_cpp "$LINENO"; then :
16313
16314     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16315       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16316       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16317       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16318     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16319       tmp_exp=""
16320     fi
16321
16322 fi
16323 rm -f conftest.err conftest.i conftest.$ac_ext
16324   if test -z "$tmp_exp"; then
16325     curl_cv_have_def___clang__=no
16326
16327   else
16328     curl_cv_have_def___clang__=yes
16329     curl_cv_def___clang__=$tmp_exp
16330
16331   fi
16332       CPPFLAGS=$OLDCPPFLAGS
16333
16334   if test "$curl_cv_have_def___clang__" = "yes"; then
16335     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16336 $as_echo "yes" >&6; }
16337     compiler_id="CLANG"
16338     fullclangver=`$CC -v 2>&1 | grep version`
16339     clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16340     if test -z "$clangver"; then
16341       if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
16342                 clangver="3.7"
16343       else
16344         clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16345       fi
16346     fi
16347     clangvhi=`echo $clangver | cut -d . -f1`
16348     clangvlo=`echo $clangver | cut -d . -f2`
16349     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16350     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16351     flags_dbg_all="$flags_dbg_all -ggdb"
16352     flags_dbg_all="$flags_dbg_all -gstabs"
16353     flags_dbg_all="$flags_dbg_all -gstabs+"
16354     flags_dbg_all="$flags_dbg_all -gcoff"
16355     flags_dbg_all="$flags_dbg_all -gxcoff"
16356     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16357     flags_dbg_all="$flags_dbg_all -gvms"
16358     flags_dbg_yes="-g"
16359     flags_dbg_off=""
16360     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16361     flags_opt_yes="-Os"
16362     flags_opt_off="-O0"
16363   else
16364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365 $as_echo "no" >&6; }
16366   fi
16367
16368
16369       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16370 $as_echo_n "checking if compiler is GNU C... " >&6; }
16371
16372     OLDCPPFLAGS=$CPPFLAGS
16373   # CPPPFLAG comes from CURL_CPP_P
16374   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16375       if test -z "$SED"; then
16376     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16377   fi
16378   if test -z "$GREP"; then
16379     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16380   fi
16381
16382   tmp_exp=""
16383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h.  */
16385
16386
16387 #ifdef __GNUC__
16388 CURL_DEF_TOKEN __GNUC__
16389 #endif
16390
16391
16392 _ACEOF
16393 if ac_fn_c_try_cpp "$LINENO"; then :
16394
16395     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16396       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16397       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16398       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16399     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16400       tmp_exp=""
16401     fi
16402
16403 fi
16404 rm -f conftest.err conftest.i conftest.$ac_ext
16405   if test -z "$tmp_exp"; then
16406     curl_cv_have_def___GNUC__=no
16407
16408   else
16409     curl_cv_have_def___GNUC__=yes
16410     curl_cv_def___GNUC__=$tmp_exp
16411
16412   fi
16413       CPPFLAGS=$OLDCPPFLAGS
16414
16415   if test "$curl_cv_have_def___GNUC__" = "yes" &&
16416     test "$compiler_id" = "unknown"; then
16417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16418 $as_echo "yes" >&6; }
16419     compiler_id="GNU_C"
16420     gccver=`$CC -dumpversion`
16421     gccvhi=`echo $gccver | cut -d . -f1`
16422     gccvlo=`echo $gccver | cut -d . -f2`
16423     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16424     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16425     flags_dbg_all="$flags_dbg_all -ggdb"
16426     flags_dbg_all="$flags_dbg_all -gstabs"
16427     flags_dbg_all="$flags_dbg_all -gstabs+"
16428     flags_dbg_all="$flags_dbg_all -gcoff"
16429     flags_dbg_all="$flags_dbg_all -gxcoff"
16430     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16431     flags_dbg_all="$flags_dbg_all -gvms"
16432     flags_dbg_yes="-g"
16433     flags_dbg_off=""
16434     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16435     flags_opt_yes="-O2"
16436     flags_opt_off="-O0"
16437
16438     OLDCPPFLAGS=$CPPFLAGS
16439   # CPPPFLAG comes from CURL_CPP_P
16440   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16441       if test -z "$SED"; then
16442     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16443   fi
16444   if test -z "$GREP"; then
16445     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16446   fi
16447
16448   tmp_exp=""
16449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450 /* end confdefs.h.  */
16451
16452
16453 #ifdef _WIN32
16454 CURL_DEF_TOKEN _WIN32
16455 #endif
16456
16457
16458 _ACEOF
16459 if ac_fn_c_try_cpp "$LINENO"; then :
16460
16461     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16462       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16463       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16464       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16465     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16466       tmp_exp=""
16467     fi
16468
16469 fi
16470 rm -f conftest.err conftest.i conftest.$ac_ext
16471   if test -z "$tmp_exp"; then
16472     curl_cv_have_def__WIN32=no
16473
16474   else
16475     curl_cv_have_def__WIN32=yes
16476     curl_cv_def__WIN32=$tmp_exp
16477
16478   fi
16479       CPPFLAGS=$OLDCPPFLAGS
16480
16481   else
16482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16483 $as_echo "no" >&6; }
16484   fi
16485
16486
16487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16488 $as_echo_n "checking if compiler is LCC... " >&6; }
16489
16490     OLDCPPFLAGS=$CPPFLAGS
16491   # CPPPFLAG comes from CURL_CPP_P
16492   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16493       if test -z "$SED"; then
16494     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16495   fi
16496   if test -z "$GREP"; then
16497     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16498   fi
16499
16500   tmp_exp=""
16501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h.  */
16503
16504
16505 #ifdef __LCC__
16506 CURL_DEF_TOKEN __LCC__
16507 #endif
16508
16509
16510 _ACEOF
16511 if ac_fn_c_try_cpp "$LINENO"; then :
16512
16513     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16514       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16515       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16516       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16517     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16518       tmp_exp=""
16519     fi
16520
16521 fi
16522 rm -f conftest.err conftest.i conftest.$ac_ext
16523   if test -z "$tmp_exp"; then
16524     curl_cv_have_def___LCC__=no
16525
16526   else
16527     curl_cv_have_def___LCC__=yes
16528     curl_cv_def___LCC__=$tmp_exp
16529
16530   fi
16531       CPPFLAGS=$OLDCPPFLAGS
16532
16533   if test "$curl_cv_have_def___LCC__" = "yes"; then
16534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16535 $as_echo "yes" >&6; }
16536     compiler_id="LCC"
16537     flags_dbg_all="-g"
16538     flags_dbg_yes="-g"
16539     flags_dbg_off=""
16540     flags_opt_all=""
16541     flags_opt_yes=""
16542     flags_opt_off=""
16543   else
16544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16545 $as_echo "no" >&6; }
16546   fi
16547
16548
16549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16550 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16551
16552     OLDCPPFLAGS=$CPPFLAGS
16553   # CPPPFLAG comes from CURL_CPP_P
16554   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16555       if test -z "$SED"; then
16556     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16557   fi
16558   if test -z "$GREP"; then
16559     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16560   fi
16561
16562   tmp_exp=""
16563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h.  */
16565
16566
16567 #ifdef __GNUC__
16568 CURL_DEF_TOKEN __GNUC__
16569 #endif
16570
16571
16572 _ACEOF
16573 if ac_fn_c_try_cpp "$LINENO"; then :
16574
16575     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16576       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16577       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16578       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16579     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16580       tmp_exp=""
16581     fi
16582
16583 fi
16584 rm -f conftest.err conftest.i conftest.$ac_ext
16585   if test -z "$tmp_exp"; then
16586     curl_cv_have_def___GNUC__=no
16587
16588   else
16589     curl_cv_have_def___GNUC__=yes
16590     curl_cv_def___GNUC__=$tmp_exp
16591
16592   fi
16593       CPPFLAGS=$OLDCPPFLAGS
16594
16595
16596     OLDCPPFLAGS=$CPPFLAGS
16597   # CPPPFLAG comes from CURL_CPP_P
16598   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16599       if test -z "$SED"; then
16600     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16601   fi
16602   if test -z "$GREP"; then
16603     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16604   fi
16605
16606   tmp_exp=""
16607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608 /* end confdefs.h.  */
16609
16610
16611 #ifdef _COMPILER_VERSION
16612 CURL_DEF_TOKEN _COMPILER_VERSION
16613 #endif
16614
16615
16616 _ACEOF
16617 if ac_fn_c_try_cpp "$LINENO"; then :
16618
16619     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16620       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16621       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16622       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16623     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16624       tmp_exp=""
16625     fi
16626
16627 fi
16628 rm -f conftest.err conftest.i conftest.$ac_ext
16629   if test -z "$tmp_exp"; then
16630     curl_cv_have_def__COMPILER_VERSION=no
16631
16632   else
16633     curl_cv_have_def__COMPILER_VERSION=yes
16634     curl_cv_def__COMPILER_VERSION=$tmp_exp
16635
16636   fi
16637       CPPFLAGS=$OLDCPPFLAGS
16638
16639
16640     OLDCPPFLAGS=$CPPFLAGS
16641   # CPPPFLAG comes from CURL_CPP_P
16642   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16643       if test -z "$SED"; then
16644     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16645   fi
16646   if test -z "$GREP"; then
16647     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16648   fi
16649
16650   tmp_exp=""
16651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h.  */
16653
16654
16655 #ifdef _SGI_COMPILER_VERSION
16656 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16657 #endif
16658
16659
16660 _ACEOF
16661 if ac_fn_c_try_cpp "$LINENO"; then :
16662
16663     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16664       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16665       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16666       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16667     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16668       tmp_exp=""
16669     fi
16670
16671 fi
16672 rm -f conftest.err conftest.i conftest.$ac_ext
16673   if test -z "$tmp_exp"; then
16674     curl_cv_have_def__SGI_COMPILER_VERSION=no
16675
16676   else
16677     curl_cv_have_def__SGI_COMPILER_VERSION=yes
16678     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16679
16680   fi
16681       CPPFLAGS=$OLDCPPFLAGS
16682
16683   if test "$curl_cv_have_def___GNUC__" = "no" &&
16684     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16685      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16686     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16687 $as_echo "yes" >&6; }
16688     compiler_id="SGI_MIPSPRO_C"
16689     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16690     flags_dbg_yes="-g"
16691     flags_dbg_off=""
16692     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16693     flags_opt_yes="-O2"
16694     flags_opt_off="-O0"
16695   else
16696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697 $as_echo "no" >&6; }
16698   fi
16699
16700
16701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16702 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16703
16704     OLDCPPFLAGS=$CPPFLAGS
16705   # CPPPFLAG comes from CURL_CPP_P
16706   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16707       if test -z "$SED"; then
16708     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16709   fi
16710   if test -z "$GREP"; then
16711     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16712   fi
16713
16714   tmp_exp=""
16715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h.  */
16717
16718
16719 #ifdef __GNUC__
16720 CURL_DEF_TOKEN __GNUC__
16721 #endif
16722
16723
16724 _ACEOF
16725 if ac_fn_c_try_cpp "$LINENO"; then :
16726
16727     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16728       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16729       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16730       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16731     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16732       tmp_exp=""
16733     fi
16734
16735 fi
16736 rm -f conftest.err conftest.i conftest.$ac_ext
16737   if test -z "$tmp_exp"; then
16738     curl_cv_have_def___GNUC__=no
16739
16740   else
16741     curl_cv_have_def___GNUC__=yes
16742     curl_cv_def___GNUC__=$tmp_exp
16743
16744   fi
16745       CPPFLAGS=$OLDCPPFLAGS
16746
16747
16748     OLDCPPFLAGS=$CPPFLAGS
16749   # CPPPFLAG comes from CURL_CPP_P
16750   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16751       if test -z "$SED"; then
16752     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16753   fi
16754   if test -z "$GREP"; then
16755     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16756   fi
16757
16758   tmp_exp=""
16759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h.  */
16761
16762
16763 #ifdef __sgi
16764 CURL_DEF_TOKEN __sgi
16765 #endif
16766
16767
16768 _ACEOF
16769 if ac_fn_c_try_cpp "$LINENO"; then :
16770
16771     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16772       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16773       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16774       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16775     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16776       tmp_exp=""
16777     fi
16778
16779 fi
16780 rm -f conftest.err conftest.i conftest.$ac_ext
16781   if test -z "$tmp_exp"; then
16782     curl_cv_have_def___sgi=no
16783
16784   else
16785     curl_cv_have_def___sgi=yes
16786     curl_cv_def___sgi=$tmp_exp
16787
16788   fi
16789       CPPFLAGS=$OLDCPPFLAGS
16790
16791   if test "$curl_cv_have_def___GNUC__" = "no" &&
16792     test "$curl_cv_have_def___sgi" = "yes" &&
16793     test "$compiler_id" = "unknown"; then
16794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16795 $as_echo "yes" >&6; }
16796     compiler_id="SGI_MIPS_C"
16797     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16798     flags_dbg_yes="-g"
16799     flags_dbg_off=""
16800     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16801     flags_opt_yes="-O2"
16802     flags_opt_off="-O0"
16803   else
16804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16805 $as_echo "no" >&6; }
16806   fi
16807
16808
16809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16810 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16811
16812     OLDCPPFLAGS=$CPPFLAGS
16813   # CPPPFLAG comes from CURL_CPP_P
16814   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16815       if test -z "$SED"; then
16816     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16817   fi
16818   if test -z "$GREP"; then
16819     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16820   fi
16821
16822   tmp_exp=""
16823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h.  */
16825
16826
16827 #ifdef __SUNPRO_C
16828 CURL_DEF_TOKEN __SUNPRO_C
16829 #endif
16830
16831
16832 _ACEOF
16833 if ac_fn_c_try_cpp "$LINENO"; then :
16834
16835     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16836       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16837       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16838       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16839     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16840       tmp_exp=""
16841     fi
16842
16843 fi
16844 rm -f conftest.err conftest.i conftest.$ac_ext
16845   if test -z "$tmp_exp"; then
16846     curl_cv_have_def___SUNPRO_C=no
16847
16848   else
16849     curl_cv_have_def___SUNPRO_C=yes
16850     curl_cv_def___SUNPRO_C=$tmp_exp
16851
16852   fi
16853       CPPFLAGS=$OLDCPPFLAGS
16854
16855   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16857 $as_echo "yes" >&6; }
16858     compiler_id="SUNPRO_C"
16859     flags_dbg_all="-g -s"
16860     flags_dbg_yes="-g"
16861     flags_dbg_off="-s"
16862     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16863     flags_opt_yes="-xO2"
16864     flags_opt_off=""
16865   else
16866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16867 $as_echo "no" >&6; }
16868   fi
16869
16870
16871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16872 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16873
16874     OLDCPPFLAGS=$CPPFLAGS
16875   # CPPPFLAG comes from CURL_CPP_P
16876   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16877       if test -z "$SED"; then
16878     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16879   fi
16880   if test -z "$GREP"; then
16881     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16882   fi
16883
16884   tmp_exp=""
16885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h.  */
16887
16888
16889 #ifdef __TINYC__
16890 CURL_DEF_TOKEN __TINYC__
16891 #endif
16892
16893
16894 _ACEOF
16895 if ac_fn_c_try_cpp "$LINENO"; then :
16896
16897     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16898       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16899       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16900       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16901     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16902       tmp_exp=""
16903     fi
16904
16905 fi
16906 rm -f conftest.err conftest.i conftest.$ac_ext
16907   if test -z "$tmp_exp"; then
16908     curl_cv_have_def___TINYC__=no
16909
16910   else
16911     curl_cv_have_def___TINYC__=yes
16912     curl_cv_def___TINYC__=$tmp_exp
16913
16914   fi
16915       CPPFLAGS=$OLDCPPFLAGS
16916
16917   if test "$curl_cv_have_def___TINYC__" = "yes"; then
16918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16919 $as_echo "yes" >&6; }
16920     compiler_id="TINY_C"
16921     flags_dbg_all="-g -b"
16922     flags_dbg_yes="-g"
16923     flags_dbg_off=""
16924     flags_opt_all=""
16925     flags_opt_yes=""
16926     flags_opt_off=""
16927   else
16928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16929 $as_echo "no" >&6; }
16930   fi
16931
16932
16933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16934 $as_echo_n "checking if compiler is Watcom C... " >&6; }
16935
16936     OLDCPPFLAGS=$CPPFLAGS
16937   # CPPPFLAG comes from CURL_CPP_P
16938   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16939       if test -z "$SED"; then
16940     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16941   fi
16942   if test -z "$GREP"; then
16943     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16944   fi
16945
16946   tmp_exp=""
16947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948 /* end confdefs.h.  */
16949
16950
16951 #ifdef __WATCOMC__
16952 CURL_DEF_TOKEN __WATCOMC__
16953 #endif
16954
16955
16956 _ACEOF
16957 if ac_fn_c_try_cpp "$LINENO"; then :
16958
16959     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16960       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16961       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16962       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16963     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16964       tmp_exp=""
16965     fi
16966
16967 fi
16968 rm -f conftest.err conftest.i conftest.$ac_ext
16969   if test -z "$tmp_exp"; then
16970     curl_cv_have_def___WATCOMC__=no
16971
16972   else
16973     curl_cv_have_def___WATCOMC__=yes
16974     curl_cv_def___WATCOMC__=$tmp_exp
16975
16976   fi
16977       CPPFLAGS=$OLDCPPFLAGS
16978
16979   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16981 $as_echo "yes" >&6; }
16982
16983     OLDCPPFLAGS=$CPPFLAGS
16984   # CPPPFLAG comes from CURL_CPP_P
16985   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16986       if test -z "$SED"; then
16987     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16988   fi
16989   if test -z "$GREP"; then
16990     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16991   fi
16992
16993   tmp_exp=""
16994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h.  */
16996
16997
16998 #ifdef __UNIX__
16999 CURL_DEF_TOKEN __UNIX__
17000 #endif
17001
17002
17003 _ACEOF
17004 if ac_fn_c_try_cpp "$LINENO"; then :
17005
17006     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17007       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17008       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17009       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17010     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17011       tmp_exp=""
17012     fi
17013
17014 fi
17015 rm -f conftest.err conftest.i conftest.$ac_ext
17016   if test -z "$tmp_exp"; then
17017     curl_cv_have_def___UNIX__=no
17018
17019   else
17020     curl_cv_have_def___UNIX__=yes
17021     curl_cv_def___UNIX__=$tmp_exp
17022
17023   fi
17024       CPPFLAGS=$OLDCPPFLAGS
17025
17026     if test "$curl_cv_have_def___UNIX__" = "yes"; then
17027       compiler_id="WATCOM_UNIX_C"
17028       flags_dbg_all="-g1 -g1+ -g2 -g3"
17029       flags_dbg_yes="-g2"
17030       flags_dbg_off=""
17031       flags_opt_all="-O0 -O1 -O2 -O3"
17032       flags_opt_yes="-O2"
17033       flags_opt_off="-O0"
17034     else
17035       compiler_id="WATCOM_WINDOWS_C"
17036       flags_dbg_all=""
17037       flags_dbg_yes=""
17038       flags_dbg_off=""
17039       flags_opt_all=""
17040       flags_opt_yes=""
17041       flags_opt_off=""
17042     fi
17043   else
17044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17045 $as_echo "no" >&6; }
17046   fi
17047
17048   #
17049   if test "$compiler_id" = "unknown"; then
17050   cat <<_EOF 1>&2
17051 ***
17052 *** Warning: This configure script does not have information about the
17053 *** compiler you are using, relative to the flags required to enable or
17054 *** disable generation of debug info, optimization options or warnings.
17055 ***
17056 *** Whatever settings are present in CFLAGS will be used for this run.
17057 ***
17058 *** If you wish to help the curl project to better support your compiler
17059 *** you can report this and the required info on the libcurl development
17060 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17061 ***
17062 _EOF
17063   fi
17064
17065
17066 squeeze() {
17067   _sqz_result=""
17068   eval _sqz_input=\$$1
17069   for _sqz_token in $_sqz_input; do
17070     if test -z "$_sqz_result"; then
17071       _sqz_result="$_sqz_token"
17072     else
17073       _sqz_result="$_sqz_result $_sqz_token"
17074     fi
17075   done
17076   eval $1=\$_sqz_result
17077   return 0
17078 }
17079
17080
17081       #
17082   if test "$compiler_id" != "unknown"; then
17083     #
17084     if test "$compiler_id" = "GNU_C" ||
17085       test "$compiler_id" = "CLANG"; then
17086
17087       if test "$compiler_id" = "GNU_C" ||
17088     test "$compiler_id" = "CLANG"; then
17089     tmp_has_include="no"
17090     tmp_chg_FLAGS="$CFLAGS"
17091     for word1 in $tmp_chg_FLAGS; do
17092       case "$word1" in
17093         -I*)
17094           tmp_has_include="yes"
17095           ;;
17096       esac
17097     done
17098     if test "$tmp_has_include" = "yes"; then
17099       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17100       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17101       CFLAGS="$tmp_chg_FLAGS"
17102       squeeze CFLAGS
17103     fi
17104     tmp_has_include="no"
17105     tmp_chg_FLAGS="$CPPFLAGS"
17106     for word1 in $tmp_chg_FLAGS; do
17107       case "$word1" in
17108         -I*)
17109           tmp_has_include="yes"
17110           ;;
17111       esac
17112     done
17113     if test "$tmp_has_include" = "yes"; then
17114       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17115       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17116       CPPFLAGS="$tmp_chg_FLAGS"
17117       squeeze CPPFLAGS
17118     fi
17119   fi
17120
17121     fi
17122     #
17123     tmp_save_CPPFLAGS="$CPPFLAGS"
17124     tmp_save_CFLAGS="$CFLAGS"
17125     tmp_CPPFLAGS=""
17126     tmp_CFLAGS=""
17127     #
17128     case "$compiler_id" in
17129         #
17130       CLANG)
17131         #
17132                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17133         ;;
17134         #
17135       DEC_C)
17136         #
17137                 tmp_CFLAGS="$tmp_CFLAGS -std1"
17138                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17139                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17140                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17141         ;;
17142         #
17143       GNU_C)
17144         #
17145                         if test "$compiler_num" -ge "295"; then
17146           tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17147         fi
17148         ;;
17149         #
17150       HP_UX_C)
17151         #
17152                 tmp_CFLAGS="$tmp_CFLAGS -z"
17153                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17154         ;;
17155         #
17156       IBM_C)
17157         #
17158                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17159                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17160                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17161         ;;
17162         #
17163       INTEL_UNIX_C)
17164         #
17165                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17166                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17167                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17168         ;;
17169         #
17170       INTEL_WINDOWS_C)
17171         #
17172                 tmp_CFLAGS="$tmp_CFLAGS"
17173         ;;
17174         #
17175       LCC)
17176         #
17177                 tmp_CFLAGS="$tmp_CFLAGS -n"
17178         ;;
17179         #
17180       SGI_MIPS_C)
17181         #
17182                 tmp_CFLAGS="$tmp_CFLAGS"
17183         ;;
17184         #
17185       SGI_MIPSPRO_C)
17186         #
17187                 tmp_CFLAGS="$tmp_CFLAGS"
17188         ;;
17189         #
17190       SUNPRO_C)
17191         #
17192                 tmp_CFLAGS="$tmp_CFLAGS"
17193         ;;
17194         #
17195       TINY_C)
17196         #
17197                 tmp_CFLAGS="$tmp_CFLAGS"
17198         ;;
17199         #
17200       WATCOM_UNIX_C)
17201         #
17202                 tmp_CFLAGS="$tmp_CFLAGS"
17203         ;;
17204         #
17205       WATCOM_WINDOWS_C)
17206         #
17207                 tmp_CFLAGS="$tmp_CFLAGS"
17208         ;;
17209         #
17210     esac
17211     #
17212     squeeze tmp_CPPFLAGS
17213     squeeze tmp_CFLAGS
17214     #
17215     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17216       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17217 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17218       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17219       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17220       squeeze CPPFLAGS
17221       squeeze CFLAGS
17222
17223     tmp_compiler_works="unknown"
17224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h.  */
17226
17227
17228
17229 int main (void)
17230 {
17231
17232       int i = 1;
17233       return i;
17234
17235  ;
17236  return 0;
17237 }
17238
17239 _ACEOF
17240 if ac_fn_c_try_compile "$LINENO"; then :
17241
17242     tmp_compiler_works="yes"
17243
17244 else
17245
17246     tmp_compiler_works="no"
17247     echo " " >&6
17248     sed 's/^/cc-fail: /' conftest.err >&6
17249     echo " " >&6
17250
17251 fi
17252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253     if test "$tmp_compiler_works" = "yes"; then
17254     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255 /* end confdefs.h.  */
17256
17257
17258
17259 int main (void)
17260 {
17261
17262         int i = 1;
17263         return i;
17264
17265  ;
17266  return 0;
17267 }
17268
17269 _ACEOF
17270 if ac_fn_c_try_link "$LINENO"; then :
17271
17272       tmp_compiler_works="yes"
17273
17274 else
17275
17276       tmp_compiler_works="no"
17277       echo " " >&6
17278       sed 's/^/link-fail: /' conftest.err >&6
17279       echo " " >&6
17280
17281 fi
17282 rm -f core conftest.err conftest.$ac_objext \
17283     conftest$ac_exeext conftest.$ac_ext
17284   fi
17285     if test "x$cross_compiling" != "xyes" &&
17286     test "$tmp_compiler_works" = "yes"; then
17287
17288
17289    old=$LD_LIBRARY_PATH
17290    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17291    export LD_LIBRARY_PATH
17292    if test "$cross_compiling" = yes; then :
17293   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17295 as_fn_error $? "cannot run test program while cross compiling
17296 See \`config.log' for more details" "$LINENO" 5; }
17297 else
17298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299 /* end confdefs.h.  */
17300
17301
17302 #       ifdef __STDC__
17303 #         include <stdlib.h>
17304 #       endif
17305
17306 int main (void)
17307 {
17308
17309         int i = 0;
17310         exit(i);
17311
17312  ;
17313  return 0;
17314 }
17315
17316 _ACEOF
17317 if ac_fn_c_try_run "$LINENO"; then :
17318   tmp_compiler_works="yes"
17319
17320 else
17321   tmp_compiler_works="no"
17322       echo " " >&6
17323       echo "run-fail: test program exited with status $ac_status" >&6
17324       echo " " >&6
17325
17326 fi
17327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17328   conftest.$ac_objext conftest.beam conftest.$ac_ext
17329 fi
17330
17331    LD_LIBRARY_PATH=$old # restore
17332
17333   fi
17334     if test "$tmp_compiler_works" = "yes"; then
17335
17336         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17337 $as_echo "yes" >&6; }
17338         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17339 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17340
17341   else
17342
17343         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17344 $as_echo "no" >&6; }
17345         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17346 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17347                 CPPFLAGS="$tmp_save_CPPFLAGS"
17348         CFLAGS="$tmp_save_CFLAGS"
17349
17350   fi
17351
17352     fi
17353     #
17354   fi
17355
17356
17357         #
17358   if test "$compiler_id" != "unknown"; then
17359     #
17360     tmp_save_CFLAGS="$CFLAGS"
17361     tmp_save_CPPFLAGS="$CPPFLAGS"
17362     #
17363     tmp_options=""
17364     tmp_CFLAGS="$CFLAGS"
17365     tmp_CPPFLAGS="$CPPFLAGS"
17366
17367     ac_var_stripped=""
17368   for word1 in $tmp_CFLAGS; do
17369     ac_var_strip_word="no"
17370     for word2 in $flags_dbg_all; do
17371       if test "$word1" = "$word2"; then
17372         ac_var_strip_word="yes"
17373       fi
17374     done
17375     if test "$ac_var_strip_word" = "no"; then
17376       ac_var_stripped="$ac_var_stripped $word1"
17377     fi
17378   done
17379     tmp_CFLAGS="$ac_var_stripped"
17380   squeeze tmp_CFLAGS
17381
17382
17383     ac_var_stripped=""
17384   for word1 in $tmp_CPPFLAGS; do
17385     ac_var_strip_word="no"
17386     for word2 in $flags_dbg_all; do
17387       if test "$word1" = "$word2"; then
17388         ac_var_strip_word="yes"
17389       fi
17390     done
17391     if test "$ac_var_strip_word" = "no"; then
17392       ac_var_stripped="$ac_var_stripped $word1"
17393     fi
17394   done
17395     tmp_CPPFLAGS="$ac_var_stripped"
17396   squeeze tmp_CPPFLAGS
17397
17398     #
17399     if test "$want_debug" = "yes"; then
17400       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17401 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17402       tmp_options="$flags_dbg_yes"
17403     fi
17404     if test "$want_debug" = "no"; then
17405       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17406 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17407       tmp_options="$flags_dbg_off"
17408     fi
17409     #
17410     if test "$flags_prefer_cppflags" = "yes"; then
17411       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17412       CFLAGS="$tmp_CFLAGS"
17413     else
17414       CPPFLAGS="$tmp_CPPFLAGS"
17415       CFLAGS="$tmp_CFLAGS $tmp_options"
17416     fi
17417     squeeze CPPFLAGS
17418     squeeze CFLAGS
17419
17420     tmp_compiler_works="unknown"
17421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h.  */
17423
17424
17425
17426 int main (void)
17427 {
17428
17429       int i = 1;
17430       return i;
17431
17432  ;
17433  return 0;
17434 }
17435
17436 _ACEOF
17437 if ac_fn_c_try_compile "$LINENO"; then :
17438
17439     tmp_compiler_works="yes"
17440
17441 else
17442
17443     tmp_compiler_works="no"
17444     echo " " >&6
17445     sed 's/^/cc-fail: /' conftest.err >&6
17446     echo " " >&6
17447
17448 fi
17449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17450     if test "$tmp_compiler_works" = "yes"; then
17451     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17452 /* end confdefs.h.  */
17453
17454
17455
17456 int main (void)
17457 {
17458
17459         int i = 1;
17460         return i;
17461
17462  ;
17463  return 0;
17464 }
17465
17466 _ACEOF
17467 if ac_fn_c_try_link "$LINENO"; then :
17468
17469       tmp_compiler_works="yes"
17470
17471 else
17472
17473       tmp_compiler_works="no"
17474       echo " " >&6
17475       sed 's/^/link-fail: /' conftest.err >&6
17476       echo " " >&6
17477
17478 fi
17479 rm -f core conftest.err conftest.$ac_objext \
17480     conftest$ac_exeext conftest.$ac_ext
17481   fi
17482     if test "x$cross_compiling" != "xyes" &&
17483     test "$tmp_compiler_works" = "yes"; then
17484
17485
17486    old=$LD_LIBRARY_PATH
17487    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17488    export LD_LIBRARY_PATH
17489    if test "$cross_compiling" = yes; then :
17490   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17492 as_fn_error $? "cannot run test program while cross compiling
17493 See \`config.log' for more details" "$LINENO" 5; }
17494 else
17495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17496 /* end confdefs.h.  */
17497
17498
17499 #       ifdef __STDC__
17500 #         include <stdlib.h>
17501 #       endif
17502
17503 int main (void)
17504 {
17505
17506         int i = 0;
17507         exit(i);
17508
17509  ;
17510  return 0;
17511 }
17512
17513 _ACEOF
17514 if ac_fn_c_try_run "$LINENO"; then :
17515   tmp_compiler_works="yes"
17516
17517 else
17518   tmp_compiler_works="no"
17519       echo " " >&6
17520       echo "run-fail: test program exited with status $ac_status" >&6
17521       echo " " >&6
17522
17523 fi
17524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17525   conftest.$ac_objext conftest.beam conftest.$ac_ext
17526 fi
17527
17528    LD_LIBRARY_PATH=$old # restore
17529
17530   fi
17531     if test "$tmp_compiler_works" = "yes"; then
17532
17533       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17534 $as_echo "yes" >&6; }
17535       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17536 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17537
17538   else
17539
17540       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17541 $as_echo "no" >&6; }
17542       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17543 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17544             CPPFLAGS="$tmp_save_CPPFLAGS"
17545       CFLAGS="$tmp_save_CFLAGS"
17546
17547   fi
17548
17549     #
17550   fi
17551
17552
17553         #
17554   if test "$compiler_id" != "unknown"; then
17555     #
17556     tmp_save_CFLAGS="$CFLAGS"
17557     tmp_save_CPPFLAGS="$CPPFLAGS"
17558     #
17559     tmp_options=""
17560     tmp_CFLAGS="$CFLAGS"
17561     tmp_CPPFLAGS="$CPPFLAGS"
17562     honor_optimize_option="yes"
17563     #
17564                         #
17565     if test "$want_optimize" = "assume_no" ||
17566        test "$want_optimize" = "assume_yes"; then
17567       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17568 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17569
17570
17571   ac_var_match_word="no"
17572   for word1 in $tmp_CFLAGS; do
17573     for word2 in $flags_opt_all; do
17574       if test "$word1" = "$word2"; then
17575         ac_var_match_word="yes"
17576       fi
17577     done
17578   done
17579
17580   if test "$ac_var_match_word" = "yes"; then
17581
17582         honor_optimize_option="no"
17583
17584
17585   fi
17586
17587
17588
17589   ac_var_match_word="no"
17590   for word1 in $tmp_CPPFLAGS; do
17591     for word2 in $flags_opt_all; do
17592       if test "$word1" = "$word2"; then
17593         ac_var_match_word="yes"
17594       fi
17595     done
17596   done
17597
17598   if test "$ac_var_match_word" = "yes"; then
17599
17600         honor_optimize_option="no"
17601
17602
17603   fi
17604
17605       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17606 $as_echo "$honor_optimize_option" >&6; }
17607       if test "$honor_optimize_option" = "yes"; then
17608         if test "$want_optimize" = "assume_yes"; then
17609           want_optimize="yes"
17610         fi
17611         if test "$want_optimize" = "assume_no"; then
17612           want_optimize="no"
17613         fi
17614       fi
17615     fi
17616     #
17617     if test "$honor_optimize_option" = "yes"; then
17618
17619     ac_var_stripped=""
17620   for word1 in $tmp_CFLAGS; do
17621     ac_var_strip_word="no"
17622     for word2 in $flags_opt_all; do
17623       if test "$word1" = "$word2"; then
17624         ac_var_strip_word="yes"
17625       fi
17626     done
17627     if test "$ac_var_strip_word" = "no"; then
17628       ac_var_stripped="$ac_var_stripped $word1"
17629     fi
17630   done
17631     tmp_CFLAGS="$ac_var_stripped"
17632   squeeze tmp_CFLAGS
17633
17634
17635     ac_var_stripped=""
17636   for word1 in $tmp_CPPFLAGS; do
17637     ac_var_strip_word="no"
17638     for word2 in $flags_opt_all; do
17639       if test "$word1" = "$word2"; then
17640         ac_var_strip_word="yes"
17641       fi
17642     done
17643     if test "$ac_var_strip_word" = "no"; then
17644       ac_var_stripped="$ac_var_stripped $word1"
17645     fi
17646   done
17647     tmp_CPPFLAGS="$ac_var_stripped"
17648   squeeze tmp_CPPFLAGS
17649
17650       if test "$want_optimize" = "yes"; then
17651         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17652 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17653         tmp_options="$flags_opt_yes"
17654       fi
17655       if test "$want_optimize" = "no"; then
17656         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17657 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17658         tmp_options="$flags_opt_off"
17659       fi
17660       if test "$flags_prefer_cppflags" = "yes"; then
17661         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17662         CFLAGS="$tmp_CFLAGS"
17663       else
17664         CPPFLAGS="$tmp_CPPFLAGS"
17665         CFLAGS="$tmp_CFLAGS $tmp_options"
17666       fi
17667       squeeze CPPFLAGS
17668       squeeze CFLAGS
17669
17670     tmp_compiler_works="unknown"
17671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h.  */
17673
17674
17675
17676 int main (void)
17677 {
17678
17679       int i = 1;
17680       return i;
17681
17682  ;
17683  return 0;
17684 }
17685
17686 _ACEOF
17687 if ac_fn_c_try_compile "$LINENO"; then :
17688
17689     tmp_compiler_works="yes"
17690
17691 else
17692
17693     tmp_compiler_works="no"
17694     echo " " >&6
17695     sed 's/^/cc-fail: /' conftest.err >&6
17696     echo " " >&6
17697
17698 fi
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700     if test "$tmp_compiler_works" = "yes"; then
17701     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h.  */
17703
17704
17705
17706 int main (void)
17707 {
17708
17709         int i = 1;
17710         return i;
17711
17712  ;
17713  return 0;
17714 }
17715
17716 _ACEOF
17717 if ac_fn_c_try_link "$LINENO"; then :
17718
17719       tmp_compiler_works="yes"
17720
17721 else
17722
17723       tmp_compiler_works="no"
17724       echo " " >&6
17725       sed 's/^/link-fail: /' conftest.err >&6
17726       echo " " >&6
17727
17728 fi
17729 rm -f core conftest.err conftest.$ac_objext \
17730     conftest$ac_exeext conftest.$ac_ext
17731   fi
17732     if test "x$cross_compiling" != "xyes" &&
17733     test "$tmp_compiler_works" = "yes"; then
17734
17735
17736    old=$LD_LIBRARY_PATH
17737    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17738    export LD_LIBRARY_PATH
17739    if test "$cross_compiling" = yes; then :
17740   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17742 as_fn_error $? "cannot run test program while cross compiling
17743 See \`config.log' for more details" "$LINENO" 5; }
17744 else
17745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17746 /* end confdefs.h.  */
17747
17748
17749 #       ifdef __STDC__
17750 #         include <stdlib.h>
17751 #       endif
17752
17753 int main (void)
17754 {
17755
17756         int i = 0;
17757         exit(i);
17758
17759  ;
17760  return 0;
17761 }
17762
17763 _ACEOF
17764 if ac_fn_c_try_run "$LINENO"; then :
17765   tmp_compiler_works="yes"
17766
17767 else
17768   tmp_compiler_works="no"
17769       echo " " >&6
17770       echo "run-fail: test program exited with status $ac_status" >&6
17771       echo " " >&6
17772
17773 fi
17774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17775   conftest.$ac_objext conftest.beam conftest.$ac_ext
17776 fi
17777
17778    LD_LIBRARY_PATH=$old # restore
17779
17780   fi
17781     if test "$tmp_compiler_works" = "yes"; then
17782
17783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17784 $as_echo "yes" >&6; }
17785         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17786 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17787
17788   else
17789
17790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17791 $as_echo "no" >&6; }
17792         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17793 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17794                 CPPFLAGS="$tmp_save_CPPFLAGS"
17795         CFLAGS="$tmp_save_CFLAGS"
17796
17797   fi
17798
17799     fi
17800     #
17801   fi
17802
17803
17804         #
17805   if test "$compiler_id" != "unknown"; then
17806     #
17807     tmp_save_CPPFLAGS="$CPPFLAGS"
17808     tmp_save_CFLAGS="$CFLAGS"
17809     tmp_CPPFLAGS=""
17810     tmp_CFLAGS=""
17811     #
17812     case "$compiler_id" in
17813         #
17814       CLANG)
17815         #
17816         if test "$want_warnings" = "yes"; then
17817           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17818           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17819           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17820           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17821           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17822           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17823           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17824           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17825           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17826           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17827           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17828           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17829           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17830           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17831           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17832           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17833           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17834           #
17835                     if test "$compiler_num" -ge "101"; then
17836             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17837           fi
17838           #
17839                     if test "$compiler_num" -ge "208"; then
17840             tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17841           fi
17842           #
17843                     if test "$compiler_num" -ge "209"; then
17844             tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17845           fi
17846           #
17847                     if test "$compiler_num" -ge "302"; then
17848             case $host_os in
17849             cygwin* | mingw*)
17850                                           ;;
17851             *)
17852               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17853               ;;
17854             esac
17855           fi
17856           #
17857                     if test "$compiler_num" -ge "306"; then
17858             tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17859           fi
17860           #
17861                     if test "$compiler_num" -ge "309"; then
17862             tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
17863             # avoid the varargs warning, fixed in 4.0
17864             # https://bugs.llvm.org/show_bug.cgi?id=29140
17865             if test "$compiler_num" -lt "400"; then
17866               tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17867             fi
17868           fi
17869         fi
17870         ;;
17871         #
17872       DEC_C)
17873         #
17874         if test "$want_warnings" = "yes"; then
17875                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17876         fi
17877         ;;
17878         #
17879       GNU_C)
17880         #
17881         if test "$want_warnings" = "yes"; then
17882           #
17883                               if test "x$cross_compiling" != "xyes" ||
17884             test "$compiler_num" -ge "300"; then
17885             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17886           fi
17887           #
17888                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17889           #
17890                     if test "$compiler_num" -ge "104"; then
17891             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17892                         if test "x$cross_compiling" != "xyes" ||
17893               test "$compiler_num" -ge "300"; then
17894               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17895             fi
17896           fi
17897           #
17898                     if test "$compiler_num" -ge "207"; then
17899             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17900                         if test "x$cross_compiling" != "xyes" ||
17901               test "$compiler_num" -ge "300"; then
17902               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17903               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17904             fi
17905           fi
17906           #
17907                     if test "$compiler_num" -ge "295"; then
17908             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17909             tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast"
17910           fi
17911           #
17912                     if test "$compiler_num" -ge "296"; then
17913             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17914             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17915                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17916           fi
17917           #
17918                     if test "$compiler_num" -ge "297"; then
17919             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17920           fi
17921           #
17922                     if test "$compiler_num" -ge "300"; then
17923                                                             tmp_CFLAGS="$tmp_CFLAGS"
17924           fi
17925           #
17926                     if test "$compiler_num" -ge "303"; then
17927             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17928           fi
17929           #
17930                     if test "$compiler_num" -ge "304"; then
17931             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17932             tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition"
17933           fi
17934           #
17935                     if test "$compiler_num" -ge "400"; then
17936             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17937           fi
17938           #
17939                     if test "$compiler_num" -ge "402"; then
17940             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17941           fi
17942           #
17943                     if test "$compiler_num" -ge "403"; then
17944             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17945             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17946             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17947             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17948                         tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
17949           fi
17950           #
17951                     if test "$compiler_num" -ge "405"; then
17952                         if test "$curl_cv_have_def__WIN32" = "yes"; then
17953               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17954             fi
17955           fi
17956           #
17957                     if test "$compiler_num" -ge "406"; then
17958             tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17959           fi
17960           #
17961                     if test "$compiler_num" -ge "408"; then
17962             tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
17963           fi
17964           #
17965                     if test "$compiler_num" -ge "500"; then
17966             tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
17967           fi
17968           #
17969                     if test "$compiler_num" -ge "600"; then
17970             tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
17971             tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
17972             tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks"
17973             tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
17974             tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable"
17975           fi
17976           #
17977                     if test "$compiler_num" -ge "700"; then
17978             tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
17979             tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
17980             tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
17981             tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
17982             tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
17983             tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
17984           fi
17985           #
17986         fi
17987         #
17988                 if test "$compiler_num" -ge "300"; then
17989           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17990         else
17991                               if test "x$cross_compiling" = "xyes"; then
17992             if test "$compiler_num" -ge "104"; then
17993                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17994             fi
17995             if test "$compiler_num" -ge "207"; then
17996                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17997               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17998             fi
17999           fi
18000         fi
18001         ;;
18002         #
18003       HP_UX_C)
18004         #
18005         if test "$want_warnings" = "yes"; then
18006                     tmp_CFLAGS="$tmp_CFLAGS +w1"
18007         fi
18008         ;;
18009         #
18010       IBM_C)
18011         #
18012                 tmp_CFLAGS="$tmp_CFLAGS"
18013         ;;
18014         #
18015       INTEL_UNIX_C)
18016         #
18017         if test "$want_warnings" = "yes"; then
18018           if test "$compiler_num" -gt "600"; then
18019                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18020                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18021                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18022                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18023                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18024                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18025                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18026                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18027                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18028                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18029                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18030           fi
18031         fi
18032                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18033                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18034                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18035                 if test "$compiler_num" -ge "1000"; then
18036                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18037         fi
18038         ;;
18039         #
18040       INTEL_WINDOWS_C)
18041         #
18042                 tmp_CFLAGS="$tmp_CFLAGS"
18043         ;;
18044         #
18045       LCC)
18046         #
18047         if test "$want_warnings" = "yes"; then
18048                                                   tmp_CFLAGS="$tmp_CFLAGS"
18049         fi
18050         ;;
18051         #
18052       SGI_MIPS_C)
18053         #
18054         if test "$want_warnings" = "yes"; then
18055                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18056         fi
18057         ;;
18058         #
18059       SGI_MIPSPRO_C)
18060         #
18061         if test "$want_warnings" = "yes"; then
18062                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18063                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18064         fi
18065         ;;
18066         #
18067       SUNPRO_C)
18068         #
18069         if test "$want_warnings" = "yes"; then
18070                     tmp_CFLAGS="$tmp_CFLAGS -v"
18071         fi
18072         ;;
18073         #
18074       TINY_C)
18075         #
18076         if test "$want_warnings" = "yes"; then
18077                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
18078                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18079                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18080         fi
18081         ;;
18082         #
18083       WATCOM_UNIX_C)
18084         #
18085         if test "$want_warnings" = "yes"; then
18086                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18087         fi
18088         ;;
18089         #
18090       WATCOM_WINDOWS_C)
18091         #
18092                 tmp_CFLAGS="$tmp_CFLAGS"
18093         ;;
18094         #
18095     esac
18096     #
18097     squeeze tmp_CPPFLAGS
18098     squeeze tmp_CFLAGS
18099     #
18100     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18101       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18102 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18103       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18104       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18105       squeeze CPPFLAGS
18106       squeeze CFLAGS
18107
18108     tmp_compiler_works="unknown"
18109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h.  */
18111
18112
18113
18114 int main (void)
18115 {
18116
18117       int i = 1;
18118       return i;
18119
18120  ;
18121  return 0;
18122 }
18123
18124 _ACEOF
18125 if ac_fn_c_try_compile "$LINENO"; then :
18126
18127     tmp_compiler_works="yes"
18128
18129 else
18130
18131     tmp_compiler_works="no"
18132     echo " " >&6
18133     sed 's/^/cc-fail: /' conftest.err >&6
18134     echo " " >&6
18135
18136 fi
18137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18138     if test "$tmp_compiler_works" = "yes"; then
18139     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h.  */
18141
18142
18143
18144 int main (void)
18145 {
18146
18147         int i = 1;
18148         return i;
18149
18150  ;
18151  return 0;
18152 }
18153
18154 _ACEOF
18155 if ac_fn_c_try_link "$LINENO"; then :
18156
18157       tmp_compiler_works="yes"
18158
18159 else
18160
18161       tmp_compiler_works="no"
18162       echo " " >&6
18163       sed 's/^/link-fail: /' conftest.err >&6
18164       echo " " >&6
18165
18166 fi
18167 rm -f core conftest.err conftest.$ac_objext \
18168     conftest$ac_exeext conftest.$ac_ext
18169   fi
18170     if test "x$cross_compiling" != "xyes" &&
18171     test "$tmp_compiler_works" = "yes"; then
18172
18173
18174    old=$LD_LIBRARY_PATH
18175    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18176    export LD_LIBRARY_PATH
18177    if test "$cross_compiling" = yes; then :
18178   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18180 as_fn_error $? "cannot run test program while cross compiling
18181 See \`config.log' for more details" "$LINENO" 5; }
18182 else
18183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h.  */
18185
18186
18187 #       ifdef __STDC__
18188 #         include <stdlib.h>
18189 #       endif
18190
18191 int main (void)
18192 {
18193
18194         int i = 0;
18195         exit(i);
18196
18197  ;
18198  return 0;
18199 }
18200
18201 _ACEOF
18202 if ac_fn_c_try_run "$LINENO"; then :
18203   tmp_compiler_works="yes"
18204
18205 else
18206   tmp_compiler_works="no"
18207       echo " " >&6
18208       echo "run-fail: test program exited with status $ac_status" >&6
18209       echo " " >&6
18210
18211 fi
18212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18213   conftest.$ac_objext conftest.beam conftest.$ac_ext
18214 fi
18215
18216    LD_LIBRARY_PATH=$old # restore
18217
18218   fi
18219     if test "$tmp_compiler_works" = "yes"; then
18220
18221         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18222 $as_echo "yes" >&6; }
18223         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18224 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18225
18226   else
18227
18228         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18229 $as_echo "no" >&6; }
18230         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18231 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18232                 CPPFLAGS="$tmp_save_CPPFLAGS"
18233         CFLAGS="$tmp_save_CFLAGS"
18234
18235   fi
18236
18237     fi
18238     #
18239   fi
18240
18241
18242 if test "$compiler_id" = "INTEL_UNIX_C"; then
18243   #
18244   if test "$compiler_num" -ge "1000"; then
18245         CFLAGS="$CFLAGS -shared-intel"
18246   elif test "$compiler_num" -ge "900"; then
18247         CFLAGS="$CFLAGS -i-dynamic"
18248   fi
18249   #
18250 fi
18251
18252
18253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18254 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h.  */
18257
18258
18259
18260 int main (void)
18261 {
18262
18263       force compilation error
18264
18265  ;
18266  return 0;
18267 }
18268
18269 _ACEOF
18270 if ac_fn_c_try_compile "$LINENO"; then :
18271
18272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18273 $as_echo "no" >&6; }
18274     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18275
18276 else
18277
18278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18279 $as_echo "yes" >&6; }
18280
18281 fi
18282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18283
18284
18285     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18286 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h.  */
18289
18290
18291       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18292
18293 int main (void)
18294 {
18295
18296       bad_t dummy;
18297
18298  ;
18299  return 0;
18300 }
18301
18302 _ACEOF
18303 if ac_fn_c_try_compile "$LINENO"; then :
18304
18305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18306 $as_echo "no" >&6; }
18307     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18308
18309 else
18310
18311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18312 $as_echo "yes" >&6; }
18313
18314 fi
18315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18316
18317
18318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18319 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18321 /* end confdefs.h.  */
18322
18323
18324 #     include <stdlib.h>
18325       int rand(int n);
18326       int rand(int n)
18327       {
18328         if(n)
18329           return ++n;
18330         else
18331           return n;
18332       }
18333
18334 int main (void)
18335 {
18336
18337       int i[2]={0,0};
18338       int j = rand(i[0]);
18339       if(j)
18340         return j;
18341
18342  ;
18343  return 0;
18344 }
18345
18346 _ACEOF
18347 if ac_fn_c_try_compile "$LINENO"; then :
18348
18349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18350 $as_echo "no" >&6; }
18351     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18352
18353 else
18354
18355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18356 $as_echo "yes" >&6; }
18357
18358 fi
18359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18360
18361
18362       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18363 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18364   supports_symbol_hiding="no"
18365   symbol_hiding_CFLAGS=""
18366   symbol_hiding_EXTERN=""
18367   tmp_CFLAGS=""
18368   tmp_EXTERN=""
18369   case "$compiler_id" in
18370     CLANG)
18371             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18372       tmp_CFLAGS="-fvisibility=hidden"
18373       supports_symbol_hiding="yes"
18374       ;;
18375     GNU_C)
18376             if test "$compiler_num" -ge "304"; then
18377         if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18378           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18379           tmp_CFLAGS="-fvisibility=hidden"
18380           supports_symbol_hiding="yes"
18381         fi
18382       fi
18383       ;;
18384     INTEL_UNIX_C)
18385             if test "$compiler_num" -ge "900"; then
18386         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18387           tmp_save_CFLAGS="$CFLAGS"
18388           CFLAGS="$CFLAGS -fvisibility=hidden"
18389           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18390 /* end confdefs.h.  */
18391
18392
18393 #             include <stdio.h>
18394
18395 int main (void)
18396 {
18397
18398               printf("icc fvisibility bug test");
18399
18400  ;
18401  return 0;
18402 }
18403
18404 _ACEOF
18405 if ac_fn_c_try_link "$LINENO"; then :
18406
18407             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18408             tmp_CFLAGS="-fvisibility=hidden"
18409             supports_symbol_hiding="yes"
18410
18411 fi
18412 rm -f core conftest.err conftest.$ac_objext \
18413     conftest$ac_exeext conftest.$ac_ext
18414           CFLAGS="$tmp_save_CFLAGS"
18415         fi
18416       fi
18417       ;;
18418     SUNPRO_C)
18419       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18420         tmp_EXTERN="__global"
18421         tmp_CFLAGS="-xldscope=hidden"
18422         supports_symbol_hiding="yes"
18423       fi
18424       ;;
18425   esac
18426   if test "$supports_symbol_hiding" = "yes"; then
18427     tmp_save_CFLAGS="$CFLAGS"
18428     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18429     squeeze CFLAGS
18430     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431 /* end confdefs.h.  */
18432
18433
18434         $tmp_EXTERN char *dummy(char *buff);
18435         char *dummy(char *buff)
18436         {
18437          if(buff)
18438            return ++buff;
18439          else
18440            return buff;
18441         }
18442
18443 int main (void)
18444 {
18445
18446         char b[16];
18447         char *r = dummy(&b[0]);
18448         if(r)
18449           return (int)*r;
18450
18451  ;
18452  return 0;
18453 }
18454
18455 _ACEOF
18456 if ac_fn_c_try_compile "$LINENO"; then :
18457
18458       supports_symbol_hiding="yes"
18459       if test -f conftest.err; then
18460         grep 'visibility' conftest.err >/dev/null
18461         if test "$?" -eq "0"; then
18462           supports_symbol_hiding="no"
18463         fi
18464       fi
18465
18466 else
18467
18468       supports_symbol_hiding="no"
18469       echo " " >&6
18470       sed 's/^/cc-src: /' conftest.$ac_ext >&6
18471       sed 's/^/cc-err: /' conftest.err >&6
18472       echo " " >&6
18473
18474 fi
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18476     CFLAGS="$tmp_save_CFLAGS"
18477   fi
18478   if test "$supports_symbol_hiding" = "yes"; then
18479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18480 $as_echo "yes" >&6; }
18481     symbol_hiding_CFLAGS="$tmp_CFLAGS"
18482     symbol_hiding_EXTERN="$tmp_EXTERN"
18483   else
18484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18485 $as_echo "no" >&6; }
18486   fi
18487
18488
18489
18490       supports_curldebug="unknown"
18491   if test "$want_curldebug" = "yes"; then
18492     if test "x$enable_shared" != "xno" &&
18493       test "x$enable_shared" != "xyes"; then
18494       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18495 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18496       supports_curldebug="no"
18497     fi
18498     if test "x$enable_static" != "xno" &&
18499       test "x$enable_static" != "xyes"; then
18500       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18501 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18502       supports_curldebug="no"
18503     fi
18504     if test "$supports_curldebug" != "no"; then
18505       if test "$enable_shared" = "yes" &&
18506         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18507         supports_curldebug="no"
18508         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18509 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18510       fi
18511     fi
18512   fi
18513   #
18514   if test "$want_curldebug" = "yes"; then
18515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18516 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18517     test "$supports_curldebug" = "no" || supports_curldebug="yes"
18518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18519 $as_echo "$supports_curldebug" >&6; }
18520     if test "$supports_curldebug" = "no"; then
18521       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18522 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18523       want_curldebug="no"
18524     fi
18525   fi
18526
18527  if test x$want_curldebug = xyes; then
18528   CURLDEBUG_TRUE=
18529   CURLDEBUG_FALSE='#'
18530 else
18531   CURLDEBUG_TRUE='#'
18532   CURLDEBUG_FALSE=
18533 fi
18534
18535
18536 supports_unittests=yes
18537 # cross-compilation of unit tests static library/programs fails when
18538 # libcurl shared library is built. This might be due to a libtool or
18539 # automake issue. In this case we disable unit tests.
18540 if test "x$cross_compiling" != "xno" &&
18541    test "x$enable_shared" != "xno"; then
18542   supports_unittests=no
18543 fi
18544
18545 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18546 # a problem related with OpenSSL headers and library versions not matching.
18547 # Disable unit tests while time to further investigate this is found.
18548 case $host in
18549   mips-sgi-irix6.5)
18550     if test "$compiler_id" = "GNU_C"; then
18551       supports_unittests=no
18552     fi
18553     ;;
18554 esac
18555
18556 # All AIX autobuilds fails unit tests linking against unittests library
18557 # due to unittests library being built with no symbols or members. Libtool ?
18558 # Disable unit tests while time to further investigate this is found.
18559 case $host_os in
18560   aix*)
18561     supports_unittests=no
18562     ;;
18563 esac
18564
18565 if test "x$want_debug" = "xyes" &&
18566    test "x$supports_unittests" = "xyes"; then
18567   want_unittests=yes
18568 else
18569   want_unittests=no
18570 fi
18571  if test x$want_unittests = xyes; then
18572   BUILD_UNITTESTS_TRUE=
18573   BUILD_UNITTESTS_FALSE='#'
18574 else
18575   BUILD_UNITTESTS_TRUE='#'
18576   BUILD_UNITTESTS_FALSE=
18577 fi
18578
18579
18580
18581
18582
18583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18584 $as_echo_n "checking for windows.h... " >&6; }
18585 if ${curl_cv_header_windows_h+:} false; then :
18586   $as_echo_n "(cached) " >&6
18587 else
18588
18589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h.  */
18591
18592
18593 #undef inline
18594 #ifndef WIN32_LEAN_AND_MEAN
18595 #define WIN32_LEAN_AND_MEAN
18596 #endif
18597 #include <windows.h>
18598
18599 int main (void)
18600 {
18601
18602 #if defined(__CYGWIN__) || defined(__CEGCC__)
18603         HAVE_WINDOWS_H shall not be defined.
18604 #else
18605         int dummy=2*WINVER;
18606 #endif
18607
18608  ;
18609  return 0;
18610 }
18611
18612 _ACEOF
18613 if ac_fn_c_try_compile "$LINENO"; then :
18614
18615       curl_cv_header_windows_h="yes"
18616
18617 else
18618
18619       curl_cv_header_windows_h="no"
18620
18621 fi
18622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623
18624 fi
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18626 $as_echo "$curl_cv_header_windows_h" >&6; }
18627   case "$curl_cv_header_windows_h" in
18628     yes)
18629
18630 cat >>confdefs.h <<_ACEOF
18631 #define HAVE_WINDOWS_H 1
18632 _ACEOF
18633
18634       ;;
18635   esac
18636
18637
18638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18639 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18640 if ${curl_cv_native_windows+:} false; then :
18641   $as_echo_n "(cached) " >&6
18642 else
18643
18644     if test "$curl_cv_header_windows_h" = "no"; then
18645       curl_cv_native_windows="no"
18646     else
18647       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h.  */
18649
18650
18651
18652 int main (void)
18653 {
18654
18655 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18656    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18657           int dummy=1;
18658 #else
18659           Not a native Windows build target.
18660 #endif
18661
18662  ;
18663  return 0;
18664 }
18665
18666 _ACEOF
18667 if ac_fn_c_try_compile "$LINENO"; then :
18668
18669         curl_cv_native_windows="yes"
18670
18671 else
18672
18673         curl_cv_native_windows="no"
18674
18675 fi
18676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18677     fi
18678
18679 fi
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18681 $as_echo "$curl_cv_native_windows" >&6; }
18682    if test "x$curl_cv_native_windows" = xyes; then
18683   DOING_NATIVE_WINDOWS_TRUE=
18684   DOING_NATIVE_WINDOWS_FALSE='#'
18685 else
18686   DOING_NATIVE_WINDOWS_TRUE='#'
18687   DOING_NATIVE_WINDOWS_FALSE=
18688 fi
18689
18690
18691 case X-"$curl_cv_native_windows" in
18692   X-yes)
18693
18694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18695 $as_echo_n "checking for winsock.h... " >&6; }
18696 if ${curl_cv_header_winsock_h+:} false; then :
18697   $as_echo_n "(cached) " >&6
18698 else
18699
18700     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701 /* end confdefs.h.  */
18702
18703
18704 #undef inline
18705 #ifndef WIN32_LEAN_AND_MEAN
18706 #define WIN32_LEAN_AND_MEAN
18707 #endif
18708 #include <windows.h>
18709 #include <winsock.h>
18710
18711 int main (void)
18712 {
18713
18714 #if defined(__CYGWIN__) || defined(__CEGCC__)
18715         HAVE_WINSOCK_H shall not be defined.
18716 #else
18717         int dummy=WSACleanup();
18718 #endif
18719
18720  ;
18721  return 0;
18722 }
18723
18724 _ACEOF
18725 if ac_fn_c_try_compile "$LINENO"; then :
18726
18727       curl_cv_header_winsock_h="yes"
18728
18729 else
18730
18731       curl_cv_header_winsock_h="no"
18732
18733 fi
18734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18735
18736 fi
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18738 $as_echo "$curl_cv_header_winsock_h" >&6; }
18739   case "$curl_cv_header_winsock_h" in
18740     yes)
18741
18742 cat >>confdefs.h <<_ACEOF
18743 #define HAVE_WINSOCK_H 1
18744 _ACEOF
18745
18746       ;;
18747   esac
18748
18749
18750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18751 $as_echo_n "checking for winsock2.h... " >&6; }
18752 if ${curl_cv_header_winsock2_h+:} false; then :
18753   $as_echo_n "(cached) " >&6
18754 else
18755
18756     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757 /* end confdefs.h.  */
18758
18759
18760 #undef inline
18761 #ifndef WIN32_LEAN_AND_MEAN
18762 #define WIN32_LEAN_AND_MEAN
18763 #endif
18764 #include <windows.h>
18765 #include <winsock2.h>
18766
18767 int main (void)
18768 {
18769
18770 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18771         HAVE_WINSOCK2_H shall not be defined.
18772 #else
18773         int dummy=2*IPPROTO_ESP;
18774 #endif
18775
18776  ;
18777  return 0;
18778 }
18779
18780 _ACEOF
18781 if ac_fn_c_try_compile "$LINENO"; then :
18782
18783       curl_cv_header_winsock2_h="yes"
18784
18785 else
18786
18787       curl_cv_header_winsock2_h="no"
18788
18789 fi
18790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18791
18792 fi
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18794 $as_echo "$curl_cv_header_winsock2_h" >&6; }
18795   case "$curl_cv_header_winsock2_h" in
18796     yes)
18797
18798 cat >>confdefs.h <<_ACEOF
18799 #define HAVE_WINSOCK2_H 1
18800 _ACEOF
18801
18802       ;;
18803   esac
18804
18805
18806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18807 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18808 if ${curl_cv_header_ws2tcpip_h+:} false; then :
18809   $as_echo_n "(cached) " >&6
18810 else
18811
18812     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h.  */
18814
18815
18816 #undef inline
18817 #ifndef WIN32_LEAN_AND_MEAN
18818 #define WIN32_LEAN_AND_MEAN
18819 #endif
18820 #include <windows.h>
18821 #include <winsock2.h>
18822 #include <ws2tcpip.h>
18823
18824 int main (void)
18825 {
18826
18827 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18828         HAVE_WS2TCPIP_H shall not be defined.
18829 #else
18830         int dummy=2*IP_PKTINFO;
18831 #endif
18832
18833  ;
18834  return 0;
18835 }
18836
18837 _ACEOF
18838 if ac_fn_c_try_compile "$LINENO"; then :
18839
18840       curl_cv_header_ws2tcpip_h="yes"
18841
18842 else
18843
18844       curl_cv_header_ws2tcpip_h="no"
18845
18846 fi
18847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18848
18849 fi
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18851 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18852   case "$curl_cv_header_ws2tcpip_h" in
18853     yes)
18854
18855 cat >>confdefs.h <<_ACEOF
18856 #define HAVE_WS2TCPIP_H 1
18857 _ACEOF
18858
18859       ;;
18860   esac
18861
18862
18863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18864 $as_echo_n "checking for winldap.h... " >&6; }
18865 if ${curl_cv_header_winldap_h+:} false; then :
18866   $as_echo_n "(cached) " >&6
18867 else
18868
18869     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18870 /* end confdefs.h.  */
18871
18872
18873 #undef inline
18874 #ifdef HAVE_WINDOWS_H
18875 #ifndef WIN32_LEAN_AND_MEAN
18876 #define WIN32_LEAN_AND_MEAN
18877 #endif
18878 #include <windows.h>
18879 #endif
18880 #include <winldap.h>
18881
18882 int main (void)
18883 {
18884
18885 #if defined(__CYGWIN__) || defined(__CEGCC__)
18886         HAVE_WINLDAP_H shall not be defined.
18887 #else
18888         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18889         ULONG res = ldap_unbind(ldp);
18890 #endif
18891
18892  ;
18893  return 0;
18894 }
18895
18896 _ACEOF
18897 if ac_fn_c_try_compile "$LINENO"; then :
18898
18899       curl_cv_header_winldap_h="yes"
18900
18901 else
18902
18903       curl_cv_header_winldap_h="no"
18904
18905 fi
18906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18907
18908 fi
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18910 $as_echo "$curl_cv_header_winldap_h" >&6; }
18911   case "$curl_cv_header_winldap_h" in
18912     yes)
18913
18914 cat >>confdefs.h <<_ACEOF
18915 #define HAVE_WINLDAP_H 1
18916 _ACEOF
18917
18918       ;;
18919   esac
18920
18921
18922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18923 $as_echo_n "checking for winber.h... " >&6; }
18924 if ${curl_cv_header_winber_h+:} false; then :
18925   $as_echo_n "(cached) " >&6
18926 else
18927
18928     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18929 /* end confdefs.h.  */
18930
18931
18932 #undef inline
18933 #ifdef HAVE_WINDOWS_H
18934 #ifndef WIN32_LEAN_AND_MEAN
18935 #define WIN32_LEAN_AND_MEAN
18936 #endif
18937 #include <windows.h>
18938 #endif
18939 #include <winldap.h>
18940 #include <winber.h>
18941
18942 int main (void)
18943 {
18944
18945 #if defined(__CYGWIN__) || defined(__CEGCC__)
18946         HAVE_WINBER_H shall not be defined.
18947 #else
18948         BERVAL *bvp = NULL;
18949         BerElement *bep = ber_init(bvp);
18950         ber_free(bep, 1);
18951 #endif
18952
18953  ;
18954  return 0;
18955 }
18956
18957 _ACEOF
18958 if ac_fn_c_try_compile "$LINENO"; then :
18959
18960       curl_cv_header_winber_h="yes"
18961
18962 else
18963
18964       curl_cv_header_winber_h="no"
18965
18966 fi
18967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18968
18969 fi
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
18971 $as_echo "$curl_cv_header_winber_h" >&6; }
18972   case "$curl_cv_header_winber_h" in
18973     yes)
18974
18975 cat >>confdefs.h <<_ACEOF
18976 #define HAVE_WINBER_H 1
18977 _ACEOF
18978
18979       ;;
18980   esac
18981
18982     ;;
18983   *)
18984     curl_cv_header_winsock_h="no"
18985     curl_cv_header_winsock2_h="no"
18986     curl_cv_header_ws2tcpip_h="no"
18987     curl_cv_header_winldap_h="no"
18988     curl_cv_header_winber_h="no"
18989     ;;
18990 esac
18991
18992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18993 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18994   curl_win32_file_api="no"
18995   if test "$curl_cv_header_windows_h" = "yes"; then
18996     if test x"$enable_largefile" != "xno"; then
18997       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h.  */
18999
19000
19001
19002 int main (void)
19003 {
19004
19005 #if !defined(_WIN32_WCE) && \
19006     (defined(__MINGW32__) || \
19007     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19008           int dummy=1;
19009 #else
19010           WIN32 large file API not supported.
19011 #endif
19012
19013  ;
19014  return 0;
19015 }
19016
19017 _ACEOF
19018 if ac_fn_c_try_compile "$LINENO"; then :
19019
19020         curl_win32_file_api="win32_large_files"
19021
19022 fi
19023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024     fi
19025     if test "$curl_win32_file_api" = "no"; then
19026       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h.  */
19028
19029
19030
19031 int main (void)
19032 {
19033
19034 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19035           int dummy=1;
19036 #else
19037           WIN32 small file API not supported.
19038 #endif
19039
19040  ;
19041  return 0;
19042 }
19043
19044 _ACEOF
19045 if ac_fn_c_try_compile "$LINENO"; then :
19046
19047         curl_win32_file_api="win32_small_files"
19048
19049 fi
19050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19051     fi
19052   fi
19053   case "$curl_win32_file_api" in
19054     win32_large_files)
19055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19056 $as_echo "yes (large file enabled)" >&6; }
19057
19058 cat >>confdefs.h <<_ACEOF
19059 #define USE_WIN32_LARGE_FILES 1
19060 _ACEOF
19061
19062       ;;
19063     win32_small_files)
19064       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19065 $as_echo "yes (large file disabled)" >&6; }
19066
19067 cat >>confdefs.h <<_ACEOF
19068 #define USE_WIN32_SMALL_FILES 1
19069 _ACEOF
19070
19071       ;;
19072     *)
19073       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19074 $as_echo "no" >&6; }
19075       ;;
19076   esac
19077
19078
19079
19080
19081   tst_cflags="no"
19082   case $host_os in
19083     darwin*)
19084       tst_cflags="yes"
19085       ;;
19086   esac
19087
19088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19089 $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19091 $as_echo "$tst_cflags" >&6; };
19092
19093   if test "$tst_cflags" = "yes"; then
19094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19095 $as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19096     min=""
19097     if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19098       min="-mmacosx-version-min=10.8"
19099       CFLAGS="$CFLAGS $min"
19100     fi
19101     if test -z "$min"; then
19102       { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19103 $as_echo "set by user" >&6; }
19104     else
19105       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19106 $as_echo "$min set" >&6; }
19107     fi
19108
19109     old_CFLAGS=$CFLAGS
19110     CFLAGS="$CFLAGS -Werror=partial-availability"
19111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19112 $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19113     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h.  */
19115
19116 int main (void)
19117 {
19118
19119  ;
19120  return 0;
19121 }
19122 _ACEOF
19123 if ac_fn_c_try_compile "$LINENO"; then :
19124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19125 $as_echo "yes" >&6; }
19126 else
19127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19128 $as_echo "no" >&6; }
19129       CFLAGS=$old_CFLAGS
19130 fi
19131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19132   fi
19133
19134
19135
19136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19137 $as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19139 /* end confdefs.h.  */
19140
19141
19142 #include <stdlib.h>
19143
19144 int main (void)
19145 {
19146
19147       if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19148
19149  ;
19150  return 0;
19151 }
19152
19153 _ACEOF
19154 if ac_fn_c_try_compile "$LINENO"; then :
19155
19156     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19157 $as_echo "yes" >&6; }
19158
19159 cat >>confdefs.h <<_ACEOF
19160 #define HAVE_BUILTIN_AVAILABLE 1
19161 _ACEOF
19162
19163
19164 else
19165
19166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19167 $as_echo "no" >&6; }
19168
19169 fi
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19171
19172
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19174 $as_echo_n "checking whether to support http... " >&6; }
19175 # Check whether --enable-http was given.
19176 if test "${enable_http+set}" = set; then :
19177   enableval=$enable_http;  case "$enableval" in
19178   no)
19179        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19180 $as_echo "no" >&6; }
19181
19182 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19183
19184        disable_http="yes"
19185        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19186 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19187        CURL_DISABLE_HTTP=1
19188
19189
19190 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19191
19192        CURL_DISABLE_RTSP=1
19193
19194        ;;
19195   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19196 $as_echo "yes" >&6; }
19197        ;;
19198   esac
19199 else
19200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19201 $as_echo "yes" >&6; }
19202
19203 fi
19204
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19206 $as_echo_n "checking whether to support ftp... " >&6; }
19207 # Check whether --enable-ftp was given.
19208 if test "${enable_ftp+set}" = set; then :
19209   enableval=$enable_ftp;  case "$enableval" in
19210   no)
19211        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19212 $as_echo "no" >&6; }
19213
19214 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19215
19216        CURL_DISABLE_FTP=1
19217
19218        ;;
19219   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19220 $as_echo "yes" >&6; }
19221        ;;
19222   esac
19223 else
19224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19225 $as_echo "yes" >&6; }
19226
19227 fi
19228
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19230 $as_echo_n "checking whether to support file... " >&6; }
19231 # Check whether --enable-file was given.
19232 if test "${enable_file+set}" = set; then :
19233   enableval=$enable_file;  case "$enableval" in
19234   no)
19235        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19236 $as_echo "no" >&6; }
19237
19238 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19239
19240        CURL_DISABLE_FILE=1
19241
19242        ;;
19243   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19244 $as_echo "yes" >&6; }
19245        ;;
19246   esac
19247 else
19248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19249 $as_echo "yes" >&6; }
19250
19251 fi
19252
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19254 $as_echo_n "checking whether to support ldap... " >&6; }
19255 # Check whether --enable-ldap was given.
19256 if test "${enable_ldap+set}" = set; then :
19257   enableval=$enable_ldap;  case "$enableval" in
19258   no)
19259        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19260 $as_echo "no" >&6; }
19261
19262 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19263
19264        CURL_DISABLE_LDAP=1
19265
19266        ;;
19267   *)
19268        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19269 $as_echo "yes" >&6; }
19270        ;;
19271   esac
19272 else
19273
19274        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19275 $as_echo "yes" >&6; }
19276
19277 fi
19278
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19280 $as_echo_n "checking whether to support ldaps... " >&6; }
19281 # Check whether --enable-ldaps was given.
19282 if test "${enable_ldaps+set}" = set; then :
19283   enableval=$enable_ldaps;  case "$enableval" in
19284   no)
19285        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19286 $as_echo "no" >&6; }
19287
19288 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19289
19290        CURL_DISABLE_LDAPS=1
19291
19292        ;;
19293   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19294          { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19295 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19296
19297 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19298
19299          CURL_DISABLE_LDAPS=1
19300
19301        else
19302          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19303 $as_echo "yes" >&6; }
19304
19305 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19306
19307          HAVE_LDAP_SSL=1
19308
19309        fi
19310        ;;
19311   esac
19312 else
19313
19314        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19315          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19316 $as_echo "no" >&6; }
19317
19318 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19319
19320          CURL_DISABLE_LDAPS=1
19321
19322        else
19323          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19324 $as_echo "yes" >&6; }
19325
19326 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19327
19328          HAVE_LDAP_SSL=1
19329
19330        fi
19331
19332 fi
19333
19334
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19336 $as_echo_n "checking whether to support rtsp... " >&6; }
19337 # Check whether --enable-rtsp was given.
19338 if test "${enable_rtsp+set}" = set; then :
19339   enableval=$enable_rtsp;  case "$enableval" in
19340   no)
19341        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19342 $as_echo "no" >&6; }
19343
19344 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19345
19346        CURL_DISABLE_RTSP=1
19347
19348        ;;
19349   *)   if test x$CURL_DISABLE_HTTP = x1 ; then
19350           as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19351        else
19352           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19353 $as_echo "yes" >&6; }
19354           curl_rtsp_msg="enabled"
19355        fi
19356        ;;
19357   esac
19358 else
19359   if test "x$CURL_DISABLE_HTTP" != "x1"; then
19360           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19361 $as_echo "yes" >&6; }
19362           curl_rtsp_msg="enabled"
19363        else
19364           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19365 $as_echo "no" >&6; }
19366        fi
19367
19368 fi
19369
19370
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19372 $as_echo_n "checking whether to support proxies... " >&6; }
19373 # Check whether --enable-proxy was given.
19374 if test "${enable_proxy+set}" = set; then :
19375   enableval=$enable_proxy;  case "$enableval" in
19376   no)
19377        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19378 $as_echo "no" >&6; }
19379
19380 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19381
19382        CURL_DISABLE_PROXY=1
19383
19384        ;;
19385   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19386 $as_echo "yes" >&6; }
19387        ;;
19388   esac
19389 else
19390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19391 $as_echo "yes" >&6; }
19392
19393 fi
19394
19395
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19397 $as_echo_n "checking whether to support dict... " >&6; }
19398 # Check whether --enable-dict was given.
19399 if test "${enable_dict+set}" = set; then :
19400   enableval=$enable_dict;  case "$enableval" in
19401   no)
19402        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19403 $as_echo "no" >&6; }
19404
19405 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19406
19407        CURL_DISABLE_DICT=1
19408
19409        ;;
19410   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19411 $as_echo "yes" >&6; }
19412        ;;
19413   esac
19414 else
19415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19416 $as_echo "yes" >&6; }
19417
19418 fi
19419
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19421 $as_echo_n "checking whether to support telnet... " >&6; }
19422 # Check whether --enable-telnet was given.
19423 if test "${enable_telnet+set}" = set; then :
19424   enableval=$enable_telnet;  case "$enableval" in
19425   no)
19426        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19427 $as_echo "no" >&6; }
19428
19429 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19430
19431        CURL_DISABLE_TELNET=1
19432
19433        ;;
19434   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19435 $as_echo "yes" >&6; }
19436        ;;
19437   esac
19438 else
19439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19440 $as_echo "yes" >&6; }
19441
19442 fi
19443
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19445 $as_echo_n "checking whether to support tftp... " >&6; }
19446 # Check whether --enable-tftp was given.
19447 if test "${enable_tftp+set}" = set; then :
19448   enableval=$enable_tftp;  case "$enableval" in
19449   no)
19450        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19451 $as_echo "no" >&6; }
19452
19453 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19454
19455        CURL_DISABLE_TFTP=1
19456
19457        ;;
19458   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19459 $as_echo "yes" >&6; }
19460        ;;
19461   esac
19462 else
19463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19464 $as_echo "yes" >&6; }
19465
19466 fi
19467
19468
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19470 $as_echo_n "checking whether to support pop3... " >&6; }
19471 # Check whether --enable-pop3 was given.
19472 if test "${enable_pop3+set}" = set; then :
19473   enableval=$enable_pop3;  case "$enableval" in
19474   no)
19475        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19476 $as_echo "no" >&6; }
19477
19478 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19479
19480        CURL_DISABLE_POP3=1
19481
19482        ;;
19483   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19484 $as_echo "yes" >&6; }
19485        ;;
19486   esac
19487 else
19488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19489 $as_echo "yes" >&6; }
19490
19491 fi
19492
19493
19494
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19496 $as_echo_n "checking whether to support imap... " >&6; }
19497 # Check whether --enable-imap was given.
19498 if test "${enable_imap+set}" = set; then :
19499   enableval=$enable_imap;  case "$enableval" in
19500   no)
19501        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19502 $as_echo "no" >&6; }
19503
19504 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19505
19506        CURL_DISABLE_IMAP=1
19507
19508        ;;
19509   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19510 $as_echo "yes" >&6; }
19511        ;;
19512   esac
19513 else
19514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19515 $as_echo "yes" >&6; }
19516
19517 fi
19518
19519
19520
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19522 $as_echo_n "checking whether to support smb... " >&6; }
19523 # Check whether --enable-smb was given.
19524 if test "${enable_smb+set}" = set; then :
19525   enableval=$enable_smb;  case "$enableval" in
19526   no)
19527        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19528 $as_echo "no" >&6; }
19529
19530 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19531
19532        CURL_DISABLE_SMB=1
19533
19534        ;;
19535   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19536 $as_echo "yes" >&6; }
19537        ;;
19538   esac
19539 else
19540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19541 $as_echo "yes" >&6; }
19542
19543 fi
19544
19545
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19547 $as_echo_n "checking whether to support smtp... " >&6; }
19548 # Check whether --enable-smtp was given.
19549 if test "${enable_smtp+set}" = set; then :
19550   enableval=$enable_smtp;  case "$enableval" in
19551   no)
19552        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19553 $as_echo "no" >&6; }
19554
19555 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19556
19557        CURL_DISABLE_SMTP=1
19558
19559        ;;
19560   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19561 $as_echo "yes" >&6; }
19562        ;;
19563   esac
19564 else
19565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19566 $as_echo "yes" >&6; }
19567
19568 fi
19569
19570
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19572 $as_echo_n "checking whether to support gopher... " >&6; }
19573 # Check whether --enable-gopher was given.
19574 if test "${enable_gopher+set}" = set; then :
19575   enableval=$enable_gopher;  case "$enableval" in
19576   no)
19577        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19578 $as_echo "no" >&6; }
19579
19580 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19581
19582        CURL_DISABLE_GOPHER=1
19583
19584        ;;
19585   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19586 $as_echo "yes" >&6; }
19587        ;;
19588   esac
19589 else
19590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19591 $as_echo "yes" >&6; }
19592
19593 fi
19594
19595
19596
19597
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19599 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19600 # Check whether --enable-manual was given.
19601 if test "${enable_manual+set}" = set; then :
19602   enableval=$enable_manual;  case "$enableval" in
19603   no)
19604        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19605 $as_echo "no" >&6; }
19606        ;;
19607   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19608 $as_echo "yes" >&6; }
19609        USE_MANUAL="1"
19610        ;;
19611   esac
19612 else
19613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19614 $as_echo "yes" >&6; }
19615        USE_MANUAL="1"
19616
19617 fi
19618
19619
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19621 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19622 # Check whether --enable-libcurl_option was given.
19623 if test "${enable_libcurl_option+set}" = set; then :
19624   enableval=$enable_libcurl_option;  case "$enableval" in
19625   no)
19626        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19627 $as_echo "no" >&6; }
19628
19629 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19630
19631        curl_libcurl_msg="no"
19632        ;;
19633   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19634 $as_echo "yes" >&6; }
19635        ;;
19636   esac
19637 else
19638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19639 $as_echo "yes" >&6; }
19640
19641 fi
19642
19643
19644
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19646 $as_echo_n "checking whether to use libgcc... " >&6; }
19647 # Check whether --enable-libgcc was given.
19648 if test "${enable_libgcc+set}" = set; then :
19649   enableval=$enable_libgcc;  case "$enableval" in
19650   yes)
19651        LIBS="-lgcc $LIBS"
19652        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19653 $as_echo "yes" >&6; }
19654        ;;
19655   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19656 $as_echo "no" >&6; }
19657        ;;
19658   esac
19659 else
19660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19661 $as_echo "no" >&6; }
19662
19663 fi
19664
19665
19666
19667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19668 $as_echo_n "checking if X/Open network library is required... " >&6; }
19669   tst_lib_xnet_required="no"
19670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19671 /* end confdefs.h.  */
19672
19673
19674 int main (void)
19675 {
19676 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19677   return 0;
19678 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19679   return 0;
19680 #else
19681   force compilation error
19682 #endif
19683 }
19684
19685
19686 _ACEOF
19687 if ac_fn_c_try_compile "$LINENO"; then :
19688
19689     tst_lib_xnet_required="yes"
19690     LIBS="-lxnet $LIBS"
19691
19692 fi
19693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19695 $as_echo "$tst_lib_xnet_required" >&6; }
19696
19697
19698 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19699 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19700   HAVE_GETHOSTBYNAME="1"
19701
19702 else
19703    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19704 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19705 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19706   $as_echo_n "(cached) " >&6
19707 else
19708   ac_check_lib_save_LIBS=$LIBS
19709 LIBS="-lnsl  $LIBS"
19710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h.  */
19712
19713
19714 #ifdef __cplusplus
19715 extern "C"
19716 #endif
19717 char gethostbyname ();
19718 int main (void)
19719 {
19720 return gethostbyname ();
19721  ;
19722  return 0;
19723 }
19724 _ACEOF
19725 if ac_fn_c_try_link "$LINENO"; then :
19726   ac_cv_lib_nsl_gethostbyname=yes
19727 else
19728   ac_cv_lib_nsl_gethostbyname=no
19729 fi
19730 rm -f core conftest.err conftest.$ac_objext \
19731     conftest$ac_exeext conftest.$ac_ext
19732 LIBS=$ac_check_lib_save_LIBS
19733 fi
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19735 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19736 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19737   HAVE_GETHOSTBYNAME="1"
19738                              LIBS="-lnsl $LIBS"
19739
19740 fi
19741
19742
19743 fi
19744
19745
19746 if test "$HAVE_GETHOSTBYNAME" != "1"
19747 then
19748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19749 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19750 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19751   $as_echo_n "(cached) " >&6
19752 else
19753   ac_check_lib_save_LIBS=$LIBS
19754 LIBS="-lsocket  $LIBS"
19755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19756 /* end confdefs.h.  */
19757
19758
19759 #ifdef __cplusplus
19760 extern "C"
19761 #endif
19762 char gethostbyname ();
19763 int main (void)
19764 {
19765 return gethostbyname ();
19766  ;
19767  return 0;
19768 }
19769 _ACEOF
19770 if ac_fn_c_try_link "$LINENO"; then :
19771   ac_cv_lib_socket_gethostbyname=yes
19772 else
19773   ac_cv_lib_socket_gethostbyname=no
19774 fi
19775 rm -f core conftest.err conftest.$ac_objext \
19776     conftest$ac_exeext conftest.$ac_ext
19777 LIBS=$ac_check_lib_save_LIBS
19778 fi
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19780 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19781 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19782   HAVE_GETHOSTBYNAME="1"
19783                LIBS="-lsocket $LIBS"
19784
19785 fi
19786
19787 fi
19788
19789 if test "$HAVE_GETHOSTBYNAME" != "1"
19790 then
19791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19792 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19793 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19794   $as_echo_n "(cached) " >&6
19795 else
19796   ac_check_lib_save_LIBS=$LIBS
19797 LIBS="-lwatt  $LIBS"
19798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19799 /* end confdefs.h.  */
19800
19801
19802 #ifdef __cplusplus
19803 extern "C"
19804 #endif
19805 char gethostbyname ();
19806 int main (void)
19807 {
19808 return gethostbyname ();
19809  ;
19810  return 0;
19811 }
19812 _ACEOF
19813 if ac_fn_c_try_link "$LINENO"; then :
19814   ac_cv_lib_watt_gethostbyname=yes
19815 else
19816   ac_cv_lib_watt_gethostbyname=no
19817 fi
19818 rm -f core conftest.err conftest.$ac_objext \
19819     conftest$ac_exeext conftest.$ac_ext
19820 LIBS=$ac_check_lib_save_LIBS
19821 fi
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19823 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19824 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19825   HAVE_GETHOSTBYNAME="1"
19826                CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19827                LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19828                LIBS="-lwatt $LIBS"
19829
19830 fi
19831
19832 fi
19833
19834 if test "$HAVE_GETHOSTBYNAME" != "1"
19835 then
19836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19837 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19838   my_ac_save_LIBS=$LIBS
19839   LIBS="-lnsl -lsocket $LIBS"
19840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19841 /* end confdefs.h.  */
19842
19843
19844
19845 int main (void)
19846 {
19847
19848       gethostbyname();
19849
19850  ;
19851  return 0;
19852 }
19853
19854 _ACEOF
19855 if ac_fn_c_try_link "$LINENO"; then :
19856
19857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19858 $as_echo "yes" >&6; }
19859     HAVE_GETHOSTBYNAME="1"
19860
19861 else
19862
19863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19864 $as_echo "no" >&6; }
19865     LIBS=$my_ac_save_LIBS
19866
19867 fi
19868 rm -f core conftest.err conftest.$ac_objext \
19869     conftest$ac_exeext conftest.$ac_ext
19870 fi
19871
19872 if test "$HAVE_GETHOSTBYNAME" != "1"
19873 then
19874     if test "$curl_cv_header_windows_h" = "yes"; then
19875     if test "$curl_cv_header_winsock_h" = "yes"; then
19876       case $host in
19877         *-*-mingw32ce*)
19878           winsock_LIB="-lwinsock"
19879           ;;
19880         *)
19881           winsock_LIB="-lwsock32"
19882           ;;
19883       esac
19884     fi
19885     if test "$curl_cv_header_winsock2_h" = "yes"; then
19886       winsock_LIB="-lws2_32"
19887     fi
19888     if test ! -z "$winsock_LIB"; then
19889       my_ac_save_LIBS=$LIBS
19890       LIBS="$winsock_LIB $LIBS"
19891       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19892 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19893       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19894 /* end confdefs.h.  */
19895
19896
19897 #ifdef HAVE_WINDOWS_H
19898 #ifndef WIN32_LEAN_AND_MEAN
19899 #define WIN32_LEAN_AND_MEAN
19900 #endif
19901 #include <windows.h>
19902 #ifdef HAVE_WINSOCK2_H
19903 #include <winsock2.h>
19904 #else
19905 #ifdef HAVE_WINSOCK_H
19906 #include <winsock.h>
19907 #endif
19908 #endif
19909 #endif
19910
19911 int main (void)
19912 {
19913
19914           gethostbyname("www.dummysite.com");
19915
19916  ;
19917  return 0;
19918 }
19919
19920 _ACEOF
19921 if ac_fn_c_try_link "$LINENO"; then :
19922
19923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19924 $as_echo "yes" >&6; }
19925         HAVE_GETHOSTBYNAME="1"
19926
19927 else
19928
19929         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19930 $as_echo "no" >&6; }
19931         winsock_LIB=""
19932         LIBS=$my_ac_save_LIBS
19933
19934 fi
19935 rm -f core conftest.err conftest.$ac_objext \
19936     conftest$ac_exeext conftest.$ac_ext
19937     fi
19938   fi
19939 fi
19940
19941 if test "$HAVE_GETHOSTBYNAME" != "1"
19942 then
19943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19944 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19946 /* end confdefs.h.  */
19947
19948
19949 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19950 #include <netdb.h>
19951
19952 int main (void)
19953 {
19954
19955       gethostbyname("www.dummysite.com");
19956
19957  ;
19958  return 0;
19959 }
19960
19961 _ACEOF
19962 if ac_fn_c_try_link "$LINENO"; then :
19963
19964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19965 $as_echo "yes" >&6; }
19966     HAVE_GETHOSTBYNAME="1"
19967
19968 else
19969
19970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19971 $as_echo "no" >&6; }
19972
19973 fi
19974 rm -f core conftest.err conftest.$ac_objext \
19975     conftest$ac_exeext conftest.$ac_ext
19976 fi
19977
19978 if test "$HAVE_GETHOSTBYNAME" != "1"
19979 then
19980     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19981 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
19982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h.  */
19984
19985
19986 #include <stdio.h>
19987 #include <netdb.h>
19988
19989 int main (void)
19990 {
19991
19992       gethostbyname("www.dummysite.com");
19993
19994  ;
19995  return 0;
19996 }
19997
19998 _ACEOF
19999 if ac_fn_c_try_link "$LINENO"; then :
20000
20001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20002 $as_echo "yes" >&6; }
20003     HAVE_GETHOSTBYNAME="1"
20004
20005 else
20006
20007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20008 $as_echo "no" >&6; }
20009
20010 fi
20011 rm -f core conftest.err conftest.$ac_objext \
20012     conftest$ac_exeext conftest.$ac_ext
20013 fi
20014
20015 if test "$HAVE_GETHOSTBYNAME" != "1"
20016 then
20017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20018 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20019 if ${ac_cv_lib_network_gethostbyname+:} false; then :
20020   $as_echo_n "(cached) " >&6
20021 else
20022   ac_check_lib_save_LIBS=$LIBS
20023 LIBS="-lnetwork  $LIBS"
20024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20025 /* end confdefs.h.  */
20026
20027
20028 #ifdef __cplusplus
20029 extern "C"
20030 #endif
20031 char gethostbyname ();
20032 int main (void)
20033 {
20034 return gethostbyname ();
20035  ;
20036  return 0;
20037 }
20038 _ACEOF
20039 if ac_fn_c_try_link "$LINENO"; then :
20040   ac_cv_lib_network_gethostbyname=yes
20041 else
20042   ac_cv_lib_network_gethostbyname=no
20043 fi
20044 rm -f core conftest.err conftest.$ac_objext \
20045     conftest$ac_exeext conftest.$ac_ext
20046 LIBS=$ac_check_lib_save_LIBS
20047 fi
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20049 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20050 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20051   HAVE_GETHOSTBYNAME="1"
20052                LIBS="-lnetwork $LIBS"
20053
20054 fi
20055
20056 fi
20057
20058 if test "$HAVE_GETHOSTBYNAME" != "1"
20059 then
20060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20061 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20062 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20063   $as_echo_n "(cached) " >&6
20064 else
20065   ac_check_lib_save_LIBS=$LIBS
20066 LIBS="-lnet  $LIBS"
20067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20068 /* end confdefs.h.  */
20069
20070
20071 #ifdef __cplusplus
20072 extern "C"
20073 #endif
20074 char gethostbyname ();
20075 int main (void)
20076 {
20077 return gethostbyname ();
20078  ;
20079  return 0;
20080 }
20081 _ACEOF
20082 if ac_fn_c_try_link "$LINENO"; then :
20083   ac_cv_lib_net_gethostbyname=yes
20084 else
20085   ac_cv_lib_net_gethostbyname=no
20086 fi
20087 rm -f core conftest.err conftest.$ac_objext \
20088     conftest$ac_exeext conftest.$ac_ext
20089 LIBS=$ac_check_lib_save_LIBS
20090 fi
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20092 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20093 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20094   HAVE_GETHOSTBYNAME="1"
20095                LIBS="-lnet $LIBS"
20096
20097 fi
20098
20099 fi
20100
20101
20102 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20103   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20104 fi
20105
20106
20107 curl_includes_winsock2="\
20108 /* includes start */
20109 #ifdef HAVE_WINDOWS_H
20110 #  ifndef WIN32_LEAN_AND_MEAN
20111 #    define WIN32_LEAN_AND_MEAN
20112 #  endif
20113 #  include <windows.h>
20114 #  ifdef HAVE_WINSOCK2_H
20115 #    include <winsock2.h>
20116 #  else
20117 #    ifdef HAVE_WINSOCK_H
20118 #      include <winsock.h>
20119 #    endif
20120 #  endif
20121 #endif
20122 /* includes end */"
20123
20124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20125 $as_echo_n "checking for windows.h... " >&6; }
20126 if ${curl_cv_header_windows_h+:} false; then :
20127   $as_echo_n "(cached) " >&6
20128 else
20129
20130     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131 /* end confdefs.h.  */
20132
20133
20134 #undef inline
20135 #ifndef WIN32_LEAN_AND_MEAN
20136 #define WIN32_LEAN_AND_MEAN
20137 #endif
20138 #include <windows.h>
20139
20140 int main (void)
20141 {
20142
20143 #if defined(__CYGWIN__) || defined(__CEGCC__)
20144         HAVE_WINDOWS_H shall not be defined.
20145 #else
20146         int dummy=2*WINVER;
20147 #endif
20148
20149  ;
20150  return 0;
20151 }
20152
20153 _ACEOF
20154 if ac_fn_c_try_compile "$LINENO"; then :
20155
20156       curl_cv_header_windows_h="yes"
20157
20158 else
20159
20160       curl_cv_header_windows_h="no"
20161
20162 fi
20163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20164
20165 fi
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20167 $as_echo "$curl_cv_header_windows_h" >&6; }
20168   case "$curl_cv_header_windows_h" in
20169     yes)
20170
20171 cat >>confdefs.h <<_ACEOF
20172 #define HAVE_WINDOWS_H 1
20173 _ACEOF
20174
20175       ;;
20176   esac
20177
20178
20179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20180 $as_echo_n "checking for winsock.h... " >&6; }
20181 if ${curl_cv_header_winsock_h+:} false; then :
20182   $as_echo_n "(cached) " >&6
20183 else
20184
20185     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20186 /* end confdefs.h.  */
20187
20188
20189 #undef inline
20190 #ifndef WIN32_LEAN_AND_MEAN
20191 #define WIN32_LEAN_AND_MEAN
20192 #endif
20193 #include <windows.h>
20194 #include <winsock.h>
20195
20196 int main (void)
20197 {
20198
20199 #if defined(__CYGWIN__) || defined(__CEGCC__)
20200         HAVE_WINSOCK_H shall not be defined.
20201 #else
20202         int dummy=WSACleanup();
20203 #endif
20204
20205  ;
20206  return 0;
20207 }
20208
20209 _ACEOF
20210 if ac_fn_c_try_compile "$LINENO"; then :
20211
20212       curl_cv_header_winsock_h="yes"
20213
20214 else
20215
20216       curl_cv_header_winsock_h="no"
20217
20218 fi
20219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20220
20221 fi
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20223 $as_echo "$curl_cv_header_winsock_h" >&6; }
20224   case "$curl_cv_header_winsock_h" in
20225     yes)
20226
20227 cat >>confdefs.h <<_ACEOF
20228 #define HAVE_WINSOCK_H 1
20229 _ACEOF
20230
20231       ;;
20232   esac
20233
20234
20235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20236 $as_echo_n "checking for winsock2.h... " >&6; }
20237 if ${curl_cv_header_winsock2_h+:} false; then :
20238   $as_echo_n "(cached) " >&6
20239 else
20240
20241     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20242 /* end confdefs.h.  */
20243
20244
20245 #undef inline
20246 #ifndef WIN32_LEAN_AND_MEAN
20247 #define WIN32_LEAN_AND_MEAN
20248 #endif
20249 #include <windows.h>
20250 #include <winsock2.h>
20251
20252 int main (void)
20253 {
20254
20255 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20256         HAVE_WINSOCK2_H shall not be defined.
20257 #else
20258         int dummy=2*IPPROTO_ESP;
20259 #endif
20260
20261  ;
20262  return 0;
20263 }
20264
20265 _ACEOF
20266 if ac_fn_c_try_compile "$LINENO"; then :
20267
20268       curl_cv_header_winsock2_h="yes"
20269
20270 else
20271
20272       curl_cv_header_winsock2_h="no"
20273
20274 fi
20275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276
20277 fi
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20279 $as_echo "$curl_cv_header_winsock2_h" >&6; }
20280   case "$curl_cv_header_winsock2_h" in
20281     yes)
20282
20283 cat >>confdefs.h <<_ACEOF
20284 #define HAVE_WINSOCK2_H 1
20285 _ACEOF
20286
20287       ;;
20288   esac
20289
20290
20291
20292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20293 $as_echo_n "checking for connect in libraries... " >&6; }
20294   tst_connect_save_LIBS="$LIBS"
20295   tst_connect_need_LIBS="unknown"
20296   for tst_lib in '' '-lsocket' ; do
20297     if test "$tst_connect_need_LIBS" = "unknown"; then
20298       LIBS="$tst_lib $tst_connect_save_LIBS"
20299       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20300 /* end confdefs.h.  */
20301
20302
20303           $curl_includes_winsock2
20304           #ifndef HAVE_WINDOWS_H
20305             int connect(int, void*, int);
20306           #endif
20307
20308 int main (void)
20309 {
20310
20311           if(0 != connect(0, 0, 0))
20312             return 1;
20313
20314  ;
20315  return 0;
20316 }
20317
20318 _ACEOF
20319 if ac_fn_c_try_link "$LINENO"; then :
20320
20321         tst_connect_need_LIBS="$tst_lib"
20322
20323 fi
20324 rm -f core conftest.err conftest.$ac_objext \
20325     conftest$ac_exeext conftest.$ac_ext
20326     fi
20327   done
20328   LIBS="$tst_connect_save_LIBS"
20329   #
20330   case X-"$tst_connect_need_LIBS" in
20331     X-unknown)
20332       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20333 $as_echo "cannot find connect" >&6; }
20334       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20335       ;;
20336     X-)
20337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20338 $as_echo "yes" >&6; }
20339       ;;
20340     *)
20341       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20342 $as_echo "$tst_connect_need_LIBS" >&6; }
20343       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20344       ;;
20345   esac
20346
20347
20348 CURL_NETWORK_LIBS=$LIBS
20349
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20351 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20352 if ${ac_cv_header_time+:} false; then :
20353   $as_echo_n "(cached) " >&6
20354 else
20355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20356 /* end confdefs.h.  */
20357 #include <sys/types.h>
20358 #include <sys/time.h>
20359 #include <time.h>
20360
20361 int main (void)
20362 {
20363 if ((struct tm *) 0)
20364 return 0;
20365  ;
20366  return 0;
20367 }
20368 _ACEOF
20369 if ac_fn_c_try_compile "$LINENO"; then :
20370   ac_cv_header_time=yes
20371 else
20372   ac_cv_header_time=no
20373 fi
20374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20375 fi
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20377 $as_echo "$ac_cv_header_time" >&6; }
20378 if test $ac_cv_header_time = yes; then
20379
20380 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20381
20382 fi
20383
20384
20385     for ac_header in sys/types.h sys/time.h time.h
20386 do :
20387   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20388 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20389 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20390   cat >>confdefs.h <<_ACEOF
20391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20392 _ACEOF
20393
20394 fi
20395
20396 done
20397
20398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20399 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20400   #
20401   if test "x$dontwant_rt" = "xno" ; then
20402     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20403 /* end confdefs.h.  */
20404
20405
20406 #ifdef HAVE_SYS_TYPES_H
20407 #include <sys/types.h>
20408 #endif
20409 #ifdef HAVE_SYS_TIME_H
20410 #include <sys/time.h>
20411 #ifdef TIME_WITH_SYS_TIME
20412 #include <time.h>
20413 #endif
20414 #else
20415 #ifdef HAVE_TIME_H
20416 #include <time.h>
20417 #endif
20418 #endif
20419
20420 int main (void)
20421 {
20422
20423         struct timespec ts;
20424         (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20425
20426  ;
20427  return 0;
20428 }
20429
20430 _ACEOF
20431 if ac_fn_c_try_compile "$LINENO"; then :
20432
20433       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20434 $as_echo "yes" >&6; }
20435       curl_func_clock_gettime="yes"
20436
20437 else
20438
20439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20440 $as_echo "no" >&6; }
20441       curl_func_clock_gettime="no"
20442
20443 fi
20444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445   fi
20446
20447
20448     #
20449   if test "$curl_func_clock_gettime" = "yes"; then
20450     #
20451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20452 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20453     #
20454     curl_cv_save_LIBS="$LIBS"
20455     curl_cv_gclk_LIBS="unknown"
20456     #
20457     for x_xlibs in '' '-lrt' '-lposix4' ; do
20458       if test "$curl_cv_gclk_LIBS" = "unknown"; then
20459         if test -z "$x_xlibs"; then
20460           LIBS="$curl_cv_save_LIBS"
20461         else
20462           LIBS="$x_xlibs $curl_cv_save_LIBS"
20463         fi
20464         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20465 /* end confdefs.h.  */
20466
20467
20468 #ifdef HAVE_SYS_TYPES_H
20469 #include <sys/types.h>
20470 #endif
20471 #ifdef HAVE_SYS_TIME_H
20472 #include <sys/time.h>
20473 #ifdef TIME_WITH_SYS_TIME
20474 #include <time.h>
20475 #endif
20476 #else
20477 #ifdef HAVE_TIME_H
20478 #include <time.h>
20479 #endif
20480 #endif
20481
20482 int main (void)
20483 {
20484
20485             struct timespec ts;
20486             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20487
20488  ;
20489  return 0;
20490 }
20491
20492 _ACEOF
20493 if ac_fn_c_try_link "$LINENO"; then :
20494
20495           curl_cv_gclk_LIBS="$x_xlibs"
20496
20497 fi
20498 rm -f core conftest.err conftest.$ac_objext \
20499     conftest$ac_exeext conftest.$ac_ext
20500       fi
20501     done
20502     #
20503     LIBS="$curl_cv_save_LIBS"
20504     #
20505     case X-"$curl_cv_gclk_LIBS" in
20506       X-unknown)
20507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20508 $as_echo "cannot find clock_gettime" >&6; }
20509         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20510 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20511         curl_func_clock_gettime="no"
20512         ;;
20513       X-)
20514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20515 $as_echo "no additional lib required" >&6; }
20516         curl_func_clock_gettime="yes"
20517         ;;
20518       *)
20519         if test -z "$curl_cv_save_LIBS"; then
20520           LIBS="$curl_cv_gclk_LIBS"
20521         else
20522           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20523         fi
20524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20525 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20526         curl_func_clock_gettime="yes"
20527         ;;
20528     esac
20529     #
20530         if test "x$cross_compiling" != "xyes" &&
20531       test "$curl_func_clock_gettime" = "yes"; then
20532       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20533 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20534
20535
20536    old=$LD_LIBRARY_PATH
20537    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20538    export LD_LIBRARY_PATH
20539    if test "$cross_compiling" = yes; then :
20540   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20542 as_fn_error $? "cannot run test program while cross compiling
20543 See \`config.log' for more details" "$LINENO" 5; }
20544 else
20545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20546 /* end confdefs.h.  */
20547
20548
20549 #ifdef HAVE_STDLIB_H
20550 #include <stdlib.h>
20551 #endif
20552 #ifdef HAVE_SYS_TYPES_H
20553 #include <sys/types.h>
20554 #endif
20555 #ifdef HAVE_SYS_TIME_H
20556 #include <sys/time.h>
20557 #ifdef TIME_WITH_SYS_TIME
20558 #include <time.h>
20559 #endif
20560 #else
20561 #ifdef HAVE_TIME_H
20562 #include <time.h>
20563 #endif
20564 #endif
20565
20566 int main (void)
20567 {
20568
20569           struct timespec ts;
20570           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20571             exit(0);
20572           else
20573             exit(1);
20574
20575  ;
20576  return 0;
20577 }
20578
20579 _ACEOF
20580 if ac_fn_c_try_run "$LINENO"; then :
20581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20582 $as_echo "yes" >&6; }
20583
20584 else
20585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20586 $as_echo "no" >&6; }
20587         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20588 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20589         curl_func_clock_gettime="no"
20590         LIBS="$curl_cv_save_LIBS"
20591
20592 fi
20593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20594   conftest.$ac_objext conftest.beam conftest.$ac_ext
20595 fi
20596
20597    LD_LIBRARY_PATH=$old # restore
20598
20599     fi
20600     #
20601     case "$curl_func_clock_gettime" in
20602       yes)
20603
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20606 _ACEOF
20607
20608         ;;
20609     esac
20610     #
20611   fi
20612   #
20613
20614
20615 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20616
20617
20618
20619 clean_CPPFLAGS=$CPPFLAGS
20620 clean_LDFLAGS=$LDFLAGS
20621 clean_LIBS=$LIBS
20622 ZLIB_LIBS=""
20623
20624 # Check whether --with-zlib was given.
20625 if test "${with_zlib+set}" = set; then :
20626   withval=$with_zlib; OPT_ZLIB="$withval"
20627 fi
20628
20629
20630 if test "$OPT_ZLIB" = "no" ; then
20631     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20632 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20633 else
20634   if test "$OPT_ZLIB" = "yes" ; then
20635     OPT_ZLIB=""
20636   fi
20637
20638   if test -z "$OPT_ZLIB" ; then
20639
20640     if test -n "$PKG_CONFIG"; then
20641       PKGCONFIG="$PKG_CONFIG"
20642     else
20643       if test -n "$ac_tool_prefix"; then
20644   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20645 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20647 $as_echo_n "checking for $ac_word... " >&6; }
20648 if ${ac_cv_path_PKGCONFIG+:} false; then :
20649   $as_echo_n "(cached) " >&6
20650 else
20651   case $PKGCONFIG in
20652   [\\/]* | ?:[\\/]*)
20653   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20654   ;;
20655   *)
20656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20657 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20658 for as_dir in $as_dummy
20659 do
20660   IFS=$as_save_IFS
20661   test -z "$as_dir" && as_dir=.
20662     for ac_exec_ext in '' $ac_executable_extensions; do
20663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20664     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20666     break 2
20667   fi
20668 done
20669   done
20670 IFS=$as_save_IFS
20671
20672   ;;
20673 esac
20674 fi
20675 PKGCONFIG=$ac_cv_path_PKGCONFIG
20676 if test -n "$PKGCONFIG"; then
20677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20678 $as_echo "$PKGCONFIG" >&6; }
20679 else
20680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20681 $as_echo "no" >&6; }
20682 fi
20683
20684
20685 fi
20686 if test -z "$ac_cv_path_PKGCONFIG"; then
20687   ac_pt_PKGCONFIG=$PKGCONFIG
20688   # Extract the first word of "pkg-config", so it can be a program name with args.
20689 set dummy pkg-config; ac_word=$2
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20691 $as_echo_n "checking for $ac_word... " >&6; }
20692 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20693   $as_echo_n "(cached) " >&6
20694 else
20695   case $ac_pt_PKGCONFIG in
20696   [\\/]* | ?:[\\/]*)
20697   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20698   ;;
20699   *)
20700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20701 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20702 for as_dir in $as_dummy
20703 do
20704   IFS=$as_save_IFS
20705   test -z "$as_dir" && as_dir=.
20706     for ac_exec_ext in '' $ac_executable_extensions; do
20707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20708     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20710     break 2
20711   fi
20712 done
20713   done
20714 IFS=$as_save_IFS
20715
20716   ;;
20717 esac
20718 fi
20719 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20720 if test -n "$ac_pt_PKGCONFIG"; then
20721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20722 $as_echo "$ac_pt_PKGCONFIG" >&6; }
20723 else
20724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20725 $as_echo "no" >&6; }
20726 fi
20727
20728   if test "x$ac_pt_PKGCONFIG" = x; then
20729     PKGCONFIG="no"
20730   else
20731     case $cross_compiling:$ac_tool_warned in
20732 yes:)
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20735 ac_tool_warned=yes ;;
20736 esac
20737     PKGCONFIG=$ac_pt_PKGCONFIG
20738   fi
20739 else
20740   PKGCONFIG="$ac_cv_path_PKGCONFIG"
20741 fi
20742
20743     fi
20744
20745     if test "x$PKGCONFIG" != "xno"; then
20746       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20747 $as_echo_n "checking for zlib options with pkg-config... " >&6; }
20748             itexists=`
20749     if test -n ""; then
20750       PKG_CONFIG_LIBDIR=""
20751       export PKG_CONFIG_LIBDIR
20752     fi
20753          $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20754
20755       if test -z "$itexists"; then
20756                         PKGCONFIG="no"
20757         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20758 $as_echo "no" >&6; }
20759       else
20760         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20761 $as_echo "found" >&6; }
20762       fi
20763     fi
20764
20765
20766     if test "$PKGCONFIG" != "no" ; then
20767       LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20768       LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20769       CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20770       OPT_ZLIB=""
20771       HAVE_LIBZ="1"
20772     fi
20773
20774     if test -z "$HAVE_LIBZ"; then
20775
20776
20777       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20778 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20779 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20780   $as_echo_n "(cached) " >&6
20781 else
20782   ac_check_lib_save_LIBS=$LIBS
20783 LIBS="-lz  $LIBS"
20784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785 /* end confdefs.h.  */
20786
20787
20788 #ifdef __cplusplus
20789 extern "C"
20790 #endif
20791 char inflateEnd ();
20792 int main (void)
20793 {
20794 return inflateEnd ();
20795  ;
20796  return 0;
20797 }
20798 _ACEOF
20799 if ac_fn_c_try_link "$LINENO"; then :
20800   ac_cv_lib_z_inflateEnd=yes
20801 else
20802   ac_cv_lib_z_inflateEnd=no
20803 fi
20804 rm -f core conftest.err conftest.$ac_objext \
20805     conftest$ac_exeext conftest.$ac_ext
20806 LIBS=$ac_check_lib_save_LIBS
20807 fi
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20809 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20810 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20811                      HAVE_LIBZ="1"
20812                     LIBS="-lz $LIBS"
20813 else
20814                      OPT_ZLIB="/usr/local"
20815 fi
20816
20817     fi
20818   fi
20819
20820     if test -n "$OPT_ZLIB"; then
20821      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20822      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20823   fi
20824
20825   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20826 if test "x$ac_cv_header_zlib_h" = xyes; then :
20827
20828         HAVE_ZLIB_H="1"
20829         if test "$HAVE_LIBZ" != "1"; then
20830       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20831 $as_echo_n "checking for gzread in -lz... " >&6; }
20832 if ${ac_cv_lib_z_gzread+:} false; then :
20833   $as_echo_n "(cached) " >&6
20834 else
20835   ac_check_lib_save_LIBS=$LIBS
20836 LIBS="-lz  $LIBS"
20837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20838 /* end confdefs.h.  */
20839
20840
20841 #ifdef __cplusplus
20842 extern "C"
20843 #endif
20844 char gzread ();
20845 int main (void)
20846 {
20847 return gzread ();
20848  ;
20849  return 0;
20850 }
20851 _ACEOF
20852 if ac_fn_c_try_link "$LINENO"; then :
20853   ac_cv_lib_z_gzread=yes
20854 else
20855   ac_cv_lib_z_gzread=no
20856 fi
20857 rm -f core conftest.err conftest.$ac_objext \
20858     conftest$ac_exeext conftest.$ac_ext
20859 LIBS=$ac_check_lib_save_LIBS
20860 fi
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20862 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20863 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20864
20865                                       HAVE_LIBZ="1"
20866                    LIBS="-lz $LIBS"
20867
20868 else
20869    CPPFLAGS=$clean_CPPFLAGS
20870                    LDFLAGS=$clean_LDFLAGS
20871 fi
20872
20873     fi
20874
20875 else
20876
20877             CPPFLAGS=$clean_CPPFLAGS
20878       LDFLAGS=$clean_LDFLAGS
20879
20880 fi
20881
20882
20883
20884   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20885   then
20886     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20887 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20888     HAVE_LIBZ=""
20889     CPPFLAGS=$clean_CPPFLAGS
20890     LDFLAGS=$clean_LDFLAGS
20891     LIBS=$clean_LIBS
20892   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20893   then
20894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20895 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20896     CPPFLAGS=$clean_CPPFLAGS
20897     LDFLAGS=$clean_LDFLAGS
20898     LIBS=$clean_LIBS
20899   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20900   then
20901
20902
20903 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20904
20905
20906 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20907
20908
20909     ZLIB_LIBS="-lz"
20910     LIBS="-lz $clean_LIBS"
20911
20912         AMFIXLIB="1"
20913     { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20914 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20915     curl_zlib_msg="enabled"
20916   fi
20917 fi
20918
20919  if test x"$AMFIXLIB" = x1; then
20920   HAVE_LIBZ_TRUE=
20921   HAVE_LIBZ_FALSE='#'
20922 else
20923   HAVE_LIBZ_TRUE='#'
20924   HAVE_LIBZ_FALSE=
20925 fi
20926
20927
20928
20929
20930
20931 OPT_BROTLI=off
20932
20933 # Check whether --with-brotli was given.
20934 if test "${with_brotli+set}" = set; then :
20935   withval=$with_brotli; OPT_BROTLI=$withval
20936 fi
20937
20938
20939 if test X"$OPT_BROTLI" != Xno; then
20940     CLEANLDFLAGS="$LDFLAGS"
20941   CLEANCPPFLAGS="$CPPFLAGS"
20942   CLEANLIBS="$LIBS"
20943
20944   case "$OPT_BROTLI" in
20945   yes)
20946
20947     if test -n "$PKG_CONFIG"; then
20948       PKGCONFIG="$PKG_CONFIG"
20949     else
20950       if test -n "$ac_tool_prefix"; then
20951   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20952 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20954 $as_echo_n "checking for $ac_word... " >&6; }
20955 if ${ac_cv_path_PKGCONFIG+:} false; then :
20956   $as_echo_n "(cached) " >&6
20957 else
20958   case $PKGCONFIG in
20959   [\\/]* | ?:[\\/]*)
20960   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20961   ;;
20962   *)
20963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20964 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20965 for as_dir in $as_dummy
20966 do
20967   IFS=$as_save_IFS
20968   test -z "$as_dir" && as_dir=.
20969     for ac_exec_ext in '' $ac_executable_extensions; do
20970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20971     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20973     break 2
20974   fi
20975 done
20976   done
20977 IFS=$as_save_IFS
20978
20979   ;;
20980 esac
20981 fi
20982 PKGCONFIG=$ac_cv_path_PKGCONFIG
20983 if test -n "$PKGCONFIG"; then
20984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20985 $as_echo "$PKGCONFIG" >&6; }
20986 else
20987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20988 $as_echo "no" >&6; }
20989 fi
20990
20991
20992 fi
20993 if test -z "$ac_cv_path_PKGCONFIG"; then
20994   ac_pt_PKGCONFIG=$PKGCONFIG
20995   # Extract the first word of "pkg-config", so it can be a program name with args.
20996 set dummy pkg-config; ac_word=$2
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20998 $as_echo_n "checking for $ac_word... " >&6; }
20999 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21000   $as_echo_n "(cached) " >&6
21001 else
21002   case $ac_pt_PKGCONFIG in
21003   [\\/]* | ?:[\\/]*)
21004   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21005   ;;
21006   *)
21007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21008 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21009 for as_dir in $as_dummy
21010 do
21011   IFS=$as_save_IFS
21012   test -z "$as_dir" && as_dir=.
21013     for ac_exec_ext in '' $ac_executable_extensions; do
21014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21015     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21017     break 2
21018   fi
21019 done
21020   done
21021 IFS=$as_save_IFS
21022
21023   ;;
21024 esac
21025 fi
21026 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21027 if test -n "$ac_pt_PKGCONFIG"; then
21028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21029 $as_echo "$ac_pt_PKGCONFIG" >&6; }
21030 else
21031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21032 $as_echo "no" >&6; }
21033 fi
21034
21035   if test "x$ac_pt_PKGCONFIG" = x; then
21036     PKGCONFIG="no"
21037   else
21038     case $cross_compiling:$ac_tool_warned in
21039 yes:)
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21042 ac_tool_warned=yes ;;
21043 esac
21044     PKGCONFIG=$ac_pt_PKGCONFIG
21045   fi
21046 else
21047   PKGCONFIG="$ac_cv_path_PKGCONFIG"
21048 fi
21049
21050     fi
21051
21052     if test "x$PKGCONFIG" != "xno"; then
21053       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21054 $as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21055             itexists=`
21056     if test -n ""; then
21057       PKG_CONFIG_LIBDIR=""
21058       export PKG_CONFIG_LIBDIR
21059     fi
21060          $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21061
21062       if test -z "$itexists"; then
21063                         PKGCONFIG="no"
21064         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21065 $as_echo "no" >&6; }
21066       else
21067         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21068 $as_echo "found" >&6; }
21069       fi
21070     fi
21071
21072
21073     if test "$PKGCONFIG" != "no" ; then
21074       LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21075       LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21076       CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21077       version=`$PKGCONFIG --modversion libbrotlidec`
21078       DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21079     fi
21080
21081     ;;
21082   off)
21083         ;;
21084   *)
21085         PREFIX_BROTLI=$OPT_BROTLI
21086     ;;
21087   esac
21088
21089     if test -n "$PREFIX_BROTLI"; then
21090     LIB_BROTLI="-lbrotlidec"
21091     LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21092     CPP_BROTLI=-I${PREFIX_BROTLI}/include
21093     DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21094   fi
21095
21096   LDFLAGS="$LDFLAGS $LD_BROTLI"
21097   CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21098   LIBS="$LIB_BROTLI $LIBS"
21099
21100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21101 $as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21102 if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21103   $as_echo_n "(cached) " >&6
21104 else
21105   ac_check_lib_save_LIBS=$LIBS
21106 LIBS="-lbrotlidec  $LIBS"
21107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21108 /* end confdefs.h.  */
21109
21110
21111 #ifdef __cplusplus
21112 extern "C"
21113 #endif
21114 char BrotliDecoderDecompress ();
21115 int main (void)
21116 {
21117 return BrotliDecoderDecompress ();
21118  ;
21119  return 0;
21120 }
21121 _ACEOF
21122 if ac_fn_c_try_link "$LINENO"; then :
21123   ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21124 else
21125   ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21126 fi
21127 rm -f core conftest.err conftest.$ac_objext \
21128     conftest$ac_exeext conftest.$ac_ext
21129 LIBS=$ac_check_lib_save_LIBS
21130 fi
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21132 $as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21133 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21134   cat >>confdefs.h <<_ACEOF
21135 #define HAVE_LIBBROTLIDEC 1
21136 _ACEOF
21137
21138   LIBS="-lbrotlidec $LIBS"
21139
21140 fi
21141
21142
21143   for ac_header in brotli/decode.h
21144 do :
21145   ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21146 if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21147   cat >>confdefs.h <<_ACEOF
21148 #define HAVE_BROTLI_DECODE_H 1
21149 _ACEOF
21150  curl_brotli_msg="enabled (libbrotlidec)"
21151     HAVE_BROTLI=1
21152
21153 $as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21154
21155     HAVE_BROTLI=1
21156
21157
21158 fi
21159
21160 done
21161
21162
21163   if test X"$OPT_BROTLI" != Xoff &&
21164      test "$HAVE_BROTLI" != "1"; then
21165     as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21166   fi
21167
21168   if test "$HAVE_BROTLI" = "1"; then
21169     if test -n "$DIR_BROTLI"; then
21170
21171        if test "x$cross_compiling" != "xyes"; then
21172          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
21173          export CURL_LIBRARY_PATH
21174          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
21175 $as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
21176        fi
21177     fi
21178   else
21179         LDFLAGS=$CLEANLDFLAGS
21180     CPPFLAGS=$CLEANCPPFLAGS
21181     LIBS=$CLEANLIBS
21182   fi
21183 fi
21184
21185
21186 LDAPLIBNAME=""
21187
21188 # Check whether --with-ldap-lib was given.
21189 if test "${with_ldap_lib+set}" = set; then :
21190   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21191 fi
21192
21193
21194 LBERLIBNAME=""
21195
21196 # Check whether --with-lber-lib was given.
21197 if test "${with_lber_lib+set}" = set; then :
21198   withval=$with_lber_lib; LBERLIBNAME="$withval"
21199 fi
21200
21201
21202 if test x$CURL_DISABLE_LDAP != x1 ; then
21203
21204
21205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21206 $as_echo_n "checking for lber.h... " >&6; }
21207 if ${curl_cv_header_lber_h+:} false; then :
21208   $as_echo_n "(cached) " >&6
21209 else
21210
21211     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21212 /* end confdefs.h.  */
21213
21214
21215 #undef inline
21216 #ifdef HAVE_WINDOWS_H
21217 #ifndef WIN32_LEAN_AND_MEAN
21218 #define WIN32_LEAN_AND_MEAN
21219 #endif
21220 #include <windows.h>
21221 #else
21222 #ifdef HAVE_SYS_TYPES_H
21223 #include <sys/types.h>
21224 #endif
21225 #endif
21226 #ifndef NULL
21227 #define NULL (void *)0
21228 #endif
21229 #include <lber.h>
21230
21231 int main (void)
21232 {
21233
21234         BerValue *bvp = NULL;
21235         BerElement *bep = ber_init(bvp);
21236         ber_free(bep, 1);
21237
21238  ;
21239  return 0;
21240 }
21241
21242 _ACEOF
21243 if ac_fn_c_try_compile "$LINENO"; then :
21244
21245       curl_cv_header_lber_h="yes"
21246
21247 else
21248
21249       curl_cv_header_lber_h="no"
21250
21251 fi
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253
21254 fi
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21256 $as_echo "$curl_cv_header_lber_h" >&6; }
21257   if test "$curl_cv_header_lber_h" = "yes"; then
21258
21259 cat >>confdefs.h <<_ACEOF
21260 #define HAVE_LBER_H 1
21261 _ACEOF
21262
21263     #
21264     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21265 /* end confdefs.h.  */
21266
21267
21268 #undef inline
21269 #ifdef HAVE_WINDOWS_H
21270 #ifndef WIN32_LEAN_AND_MEAN
21271 #define WIN32_LEAN_AND_MEAN
21272 #endif
21273 #include <windows.h>
21274 #else
21275 #ifdef HAVE_SYS_TYPES_H
21276 #include <sys/types.h>
21277 #endif
21278 #endif
21279 #ifndef NULL
21280 #define NULL (void *)0
21281 #endif
21282 #ifndef LDAP_DEPRECATED
21283 #define LDAP_DEPRECATED 1
21284 #endif
21285 #include <ldap.h>
21286
21287 int main (void)
21288 {
21289
21290         BerValue *bvp = NULL;
21291         BerElement *bep = ber_init(bvp);
21292         ber_free(bep, 1);
21293
21294  ;
21295  return 0;
21296 }
21297
21298 _ACEOF
21299 if ac_fn_c_try_compile "$LINENO"; then :
21300
21301       curl_cv_need_header_lber_h="no"
21302
21303 else
21304
21305       curl_cv_need_header_lber_h="yes"
21306
21307 fi
21308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21309     #
21310     case "$curl_cv_need_header_lber_h" in
21311       yes)
21312
21313 cat >>confdefs.h <<_ACEOF
21314 #define NEED_LBER_H 1
21315 _ACEOF
21316
21317         ;;
21318     esac
21319   fi
21320
21321
21322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21323 $as_echo_n "checking for ldap.h... " >&6; }
21324 if ${curl_cv_header_ldap_h+:} false; then :
21325   $as_echo_n "(cached) " >&6
21326 else
21327
21328     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21329 /* end confdefs.h.  */
21330
21331
21332 #undef inline
21333 #ifdef HAVE_WINDOWS_H
21334 #ifndef WIN32_LEAN_AND_MEAN
21335 #define WIN32_LEAN_AND_MEAN
21336 #endif
21337 #include <windows.h>
21338 #else
21339 #ifdef HAVE_SYS_TYPES_H
21340 #include <sys/types.h>
21341 #endif
21342 #endif
21343 #ifndef LDAP_DEPRECATED
21344 #define LDAP_DEPRECATED 1
21345 #endif
21346 #ifdef NEED_LBER_H
21347 #include <lber.h>
21348 #endif
21349 #include <ldap.h>
21350
21351 int main (void)
21352 {
21353
21354         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21355         int res = ldap_unbind(ldp);
21356
21357  ;
21358  return 0;
21359 }
21360
21361 _ACEOF
21362 if ac_fn_c_try_compile "$LINENO"; then :
21363
21364       curl_cv_header_ldap_h="yes"
21365
21366 else
21367
21368       curl_cv_header_ldap_h="no"
21369
21370 fi
21371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21372
21373 fi
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21375 $as_echo "$curl_cv_header_ldap_h" >&6; }
21376   case "$curl_cv_header_ldap_h" in
21377     yes)
21378
21379 cat >>confdefs.h <<_ACEOF
21380 #define HAVE_LDAP_H 1
21381 _ACEOF
21382
21383       ;;
21384   esac
21385
21386
21387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21388 $as_echo_n "checking for ldapssl.h... " >&6; }
21389 if ${curl_cv_header_ldapssl_h+:} false; then :
21390   $as_echo_n "(cached) " >&6
21391 else
21392
21393     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21394 /* end confdefs.h.  */
21395
21396
21397 #undef inline
21398 #ifdef HAVE_WINDOWS_H
21399 #ifndef WIN32_LEAN_AND_MEAN
21400 #define WIN32_LEAN_AND_MEAN
21401 #endif
21402 #include <windows.h>
21403 #else
21404 #ifdef HAVE_SYS_TYPES_H
21405 #include <sys/types.h>
21406 #endif
21407 #endif
21408 #ifndef NULL
21409 #define NULL (void *)0
21410 #endif
21411 #ifndef LDAP_DEPRECATED
21412 #define LDAP_DEPRECATED 1
21413 #endif
21414 #ifdef NEED_LBER_H
21415 #include <lber.h>
21416 #endif
21417 #ifdef HAVE_LDAP_H
21418 #include <ldap.h>
21419 #endif
21420 #include <ldapssl.h>
21421
21422 int main (void)
21423 {
21424
21425         char *cert_label = NULL;
21426         LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21427
21428  ;
21429  return 0;
21430 }
21431
21432 _ACEOF
21433 if ac_fn_c_try_compile "$LINENO"; then :
21434
21435       curl_cv_header_ldapssl_h="yes"
21436
21437 else
21438
21439       curl_cv_header_ldapssl_h="no"
21440
21441 fi
21442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21443
21444 fi
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21446 $as_echo "$curl_cv_header_ldapssl_h" >&6; }
21447   case "$curl_cv_header_ldapssl_h" in
21448     yes)
21449
21450 cat >>confdefs.h <<_ACEOF
21451 #define HAVE_LDAPSSL_H 1
21452 _ACEOF
21453
21454       ;;
21455   esac
21456
21457
21458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21459 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21460 if ${curl_cv_header_ldap_ssl_h+:} false; then :
21461   $as_echo_n "(cached) " >&6
21462 else
21463
21464     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21465 /* end confdefs.h.  */
21466
21467
21468 #undef inline
21469 #ifdef HAVE_WINDOWS_H
21470 #ifndef WIN32_LEAN_AND_MEAN
21471 #define WIN32_LEAN_AND_MEAN
21472 #endif
21473 #include <windows.h>
21474 #else
21475 #ifdef HAVE_SYS_TYPES_H
21476 #include <sys/types.h>
21477 #endif
21478 #endif
21479 #ifndef LDAP_DEPRECATED
21480 #define LDAP_DEPRECATED 1
21481 #endif
21482 #ifdef NEED_LBER_H
21483 #include <lber.h>
21484 #endif
21485 #ifdef HAVE_LDAP_H
21486 #include <ldap.h>
21487 #endif
21488 #include <ldap_ssl.h>
21489
21490 int main (void)
21491 {
21492
21493         LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21494
21495  ;
21496  return 0;
21497 }
21498
21499 _ACEOF
21500 if ac_fn_c_try_compile "$LINENO"; then :
21501
21502       curl_cv_header_ldap_ssl_h="yes"
21503
21504 else
21505
21506       curl_cv_header_ldap_ssl_h="no"
21507
21508 fi
21509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21510
21511 fi
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21513 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21514   case "$curl_cv_header_ldap_ssl_h" in
21515     yes)
21516
21517 cat >>confdefs.h <<_ACEOF
21518 #define HAVE_LDAP_SSL_H 1
21519 _ACEOF
21520
21521       ;;
21522   esac
21523
21524
21525   if test -z "$LDAPLIBNAME" ; then
21526     if test "$curl_cv_native_windows" = "yes"; then
21527             LDAPLIBNAME="wldap32"
21528       LBERLIBNAME="no"
21529     fi
21530   fi
21531
21532   if test "$LDAPLIBNAME" ; then
21533     as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21535 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21536 if eval \${$as_ac_Lib+:} false; then :
21537   $as_echo_n "(cached) " >&6
21538 else
21539   ac_check_lib_save_LIBS=$LIBS
21540 LIBS="-l"$LDAPLIBNAME"  $LIBS"
21541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21542 /* end confdefs.h.  */
21543
21544
21545 #ifdef __cplusplus
21546 extern "C"
21547 #endif
21548 char ldap_init ();
21549 int main (void)
21550 {
21551 return ldap_init ();
21552  ;
21553  return 0;
21554 }
21555 _ACEOF
21556 if ac_fn_c_try_link "$LINENO"; then :
21557   eval "$as_ac_Lib=yes"
21558 else
21559   eval "$as_ac_Lib=no"
21560 fi
21561 rm -f core conftest.err conftest.$ac_objext \
21562     conftest$ac_exeext conftest.$ac_ext
21563 LIBS=$ac_check_lib_save_LIBS
21564 fi
21565 eval ac_res=\$$as_ac_Lib
21566                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21567 $as_echo "$ac_res" >&6; }
21568 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21569   cat >>confdefs.h <<_ACEOF
21570 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21571 _ACEOF
21572
21573   LIBS="-l"$LDAPLIBNAME" $LIBS"
21574
21575 else
21576
21577       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21578 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21579
21580 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21581
21582       CURL_DISABLE_LDAP=1
21583
21584
21585 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21586
21587       CURL_DISABLE_LDAPS=1
21588
21589 fi
21590
21591   else
21592
21593     #
21594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21595 $as_echo_n "checking for LDAP libraries... " >&6; }
21596   #
21597   u_libs=""
21598   #
21599
21600   #
21601   curl_cv_save_LIBS="$LIBS"
21602   curl_cv_ldap_LIBS="unknown"
21603   #
21604   for x_nlibs in '' "$u_libs" \
21605     '-lldap' \
21606     '-lldap -llber' \
21607     '-llber -lldap' \
21608     '-lldapssl -lldapx -lldapsdk' \
21609     '-lldapsdk -lldapx -lldapssl' ; do
21610     if test "$curl_cv_ldap_LIBS" = "unknown"; then
21611       if test -z "$x_nlibs"; then
21612         LIBS="$curl_cv_save_LIBS"
21613       else
21614         LIBS="$x_nlibs $curl_cv_save_LIBS"
21615       fi
21616       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21617 /* end confdefs.h.  */
21618
21619
21620 #undef inline
21621 #ifdef HAVE_WINDOWS_H
21622 #ifndef WIN32_LEAN_AND_MEAN
21623 #define WIN32_LEAN_AND_MEAN
21624 #endif
21625 #include <windows.h>
21626 #else
21627 #ifdef HAVE_SYS_TYPES_H
21628 #include <sys/types.h>
21629 #endif
21630 #endif
21631 #ifndef NULL
21632 #define NULL (void *)0
21633 #endif
21634 #ifndef LDAP_DEPRECATED
21635 #define LDAP_DEPRECATED 1
21636 #endif
21637 #ifdef NEED_LBER_H
21638 #include <lber.h>
21639 #endif
21640 #ifdef HAVE_LDAP_H
21641 #include <ldap.h>
21642 #endif
21643
21644 int main (void)
21645 {
21646
21647           BerValue *bvp = NULL;
21648           BerElement *bep = ber_init(bvp);
21649           LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21650           int res = ldap_unbind(ldp);
21651           ber_free(bep, 1);
21652
21653  ;
21654  return 0;
21655 }
21656
21657 _ACEOF
21658 if ac_fn_c_try_link "$LINENO"; then :
21659
21660         curl_cv_ldap_LIBS="$x_nlibs"
21661
21662 fi
21663 rm -f core conftest.err conftest.$ac_objext \
21664     conftest$ac_exeext conftest.$ac_ext
21665     fi
21666   done
21667   #
21668   LIBS="$curl_cv_save_LIBS"
21669   #
21670   case X-"$curl_cv_ldap_LIBS" in
21671     X-unknown)
21672       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21673 $as_echo "cannot find LDAP libraries" >&6; }
21674       ;;
21675     X-)
21676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21677 $as_echo "no additional lib required" >&6; }
21678       ;;
21679     *)
21680       if test -z "$curl_cv_save_LIBS"; then
21681         LIBS="$curl_cv_ldap_LIBS"
21682       else
21683         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21684       fi
21685       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21686 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21687       ;;
21688   esac
21689   #
21690
21691     case X-"$curl_cv_ldap_LIBS" in
21692       X-unknown)
21693         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21694 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21695
21696 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21697
21698         CURL_DISABLE_LDAP=1
21699
21700
21701 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21702
21703         CURL_DISABLE_LDAPS=1
21704
21705         ;;
21706     esac
21707   fi
21708 fi
21709
21710 if test x$CURL_DISABLE_LDAP != x1 ; then
21711
21712   if test "$LBERLIBNAME" ; then
21713             if test "$LBERLIBNAME" != "no" ; then
21714       as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21716 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21717 if eval \${$as_ac_Lib+:} false; then :
21718   $as_echo_n "(cached) " >&6
21719 else
21720   ac_check_lib_save_LIBS=$LIBS
21721 LIBS="-l"$LBERLIBNAME"  $LIBS"
21722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21723 /* end confdefs.h.  */
21724
21725
21726 #ifdef __cplusplus
21727 extern "C"
21728 #endif
21729 char ber_free ();
21730 int main (void)
21731 {
21732 return ber_free ();
21733  ;
21734  return 0;
21735 }
21736 _ACEOF
21737 if ac_fn_c_try_link "$LINENO"; then :
21738   eval "$as_ac_Lib=yes"
21739 else
21740   eval "$as_ac_Lib=no"
21741 fi
21742 rm -f core conftest.err conftest.$ac_objext \
21743     conftest$ac_exeext conftest.$ac_ext
21744 LIBS=$ac_check_lib_save_LIBS
21745 fi
21746 eval ac_res=\$$as_ac_Lib
21747                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21748 $as_echo "$ac_res" >&6; }
21749 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21750   cat >>confdefs.h <<_ACEOF
21751 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21752 _ACEOF
21753
21754   LIBS="-l"$LBERLIBNAME" $LIBS"
21755
21756 else
21757
21758         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21759 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21760
21761 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21762
21763         CURL_DISABLE_LDAP=1
21764
21765
21766 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21767
21768         CURL_DISABLE_LDAPS=1
21769
21770 fi
21771
21772     fi
21773   fi
21774 fi
21775
21776 if test x$CURL_DISABLE_LDAP != x1 ; then
21777   for ac_func in ldap_url_parse ldap_init_fd
21778 do :
21779   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21780 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21781 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21782   cat >>confdefs.h <<_ACEOF
21783 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21784 _ACEOF
21785
21786 fi
21787 done
21788
21789
21790   if test "$LDAPLIBNAME" = "wldap32"; then
21791     curl_ldap_msg="enabled (winldap)"
21792
21793 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21794
21795   else
21796     curl_ldap_msg="enabled (OpenLDAP)"
21797     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21798
21799 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21800
21801       USE_OPENLDAP=1
21802
21803     fi
21804   fi
21805 fi
21806
21807 if test x$CURL_DISABLE_LDAPS != x1 ; then
21808     curl_ldaps_msg="enabled"
21809 fi
21810
21811
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21813 $as_echo_n "checking whether to enable IPv6... " >&6; }
21814 # Check whether --enable-ipv6 was given.
21815 if test "${enable_ipv6+set}" = set; then :
21816   enableval=$enable_ipv6;  case "$enableval" in
21817   no)
21818        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21819 $as_echo "no" >&6; }
21820        ipv6=no
21821        ;;
21822   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21823 $as_echo "yes" >&6; }
21824        ipv6=yes
21825        ;;
21826   esac
21827 else
21828   if test "$cross_compiling" = yes; then :
21829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21830 $as_echo "yes" >&6; }
21831   ipv6=yes
21832
21833 else
21834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21835 /* end confdefs.h.  */
21836  /* is AF_INET6 available? */
21837 #include <sys/types.h>
21838 #ifdef HAVE_WINSOCK2_H
21839 #include <winsock2.h>
21840 #else
21841 #include <sys/socket.h>
21842 #endif
21843 #include <stdlib.h> /* for exit() */
21844 main()
21845 {
21846  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21847    exit(1);
21848  else
21849    exit(0);
21850 }
21851
21852 _ACEOF
21853 if ac_fn_c_try_run "$LINENO"; then :
21854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21855 $as_echo "yes" >&6; }
21856   ipv6=yes
21857 else
21858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21859 $as_echo "no" >&6; }
21860   ipv6=no
21861 fi
21862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21863   conftest.$ac_objext conftest.beam conftest.$ac_ext
21864 fi
21865
21866 fi
21867
21868
21869 if test "$ipv6" = "yes"; then
21870   curl_ipv6_msg="enabled"
21871 fi
21872
21873 # Check if struct sockaddr_in6 have sin6_scope_id member
21874 if test "$ipv6" = yes; then
21875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21876 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21878 /* end confdefs.h.  */
21879
21880 #include <sys/types.h>
21881 #ifdef HAVE_WINSOCK2_H
21882 #include <winsock2.h>
21883 #include <ws2tcpip.h>
21884 #else
21885 #include <netinet/in.h>
21886 #if defined (__TANDEM)
21887 # include <netinet/in6.h>
21888 #endif
21889 #endif
21890 int main (void)
21891 {
21892 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21893  ;
21894  return 0;
21895 }
21896 _ACEOF
21897 if ac_fn_c_try_compile "$LINENO"; then :
21898   have_sin6_scope_id=yes
21899 fi
21900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21901   if test "$have_sin6_scope_id" = yes; then
21902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21903 $as_echo "yes" >&6; }
21904
21905 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21906
21907   else
21908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21909 $as_echo "no" >&6; }
21910   fi
21911 fi
21912
21913
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21915 $as_echo_n "checking if argv can be written to... " >&6; }
21916
21917
21918    old=$LD_LIBRARY_PATH
21919    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21920    export LD_LIBRARY_PATH
21921    if test "$cross_compiling" = yes; then :
21922   curl_cv_writable_argv=cross
21923
21924 else
21925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21926 /* end confdefs.h.  */
21927
21928 int main(int argc, char ** argv) {
21929     argv00 = ' ';
21930     return (argv00 == ' ')?0:1;
21931 }
21932
21933 _ACEOF
21934 if ac_fn_c_try_run "$LINENO"; then :
21935   curl_cv_writable_argv=yes
21936
21937 else
21938   curl_cv_writable_argv=no
21939
21940 fi
21941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21942   conftest.$ac_objext conftest.beam conftest.$ac_ext
21943 fi
21944
21945    LD_LIBRARY_PATH=$old # restore
21946
21947 case $curl_cv_writable_argv in
21948 yes)
21949
21950 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21951
21952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21953 $as_echo "yes" >&6; }
21954         ;;
21955 no)
21956         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21957 $as_echo "no" >&6; }
21958         ;;
21959 *)
21960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21961 $as_echo "no" >&6; }
21962         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21963 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21964         ;;
21965 esac
21966
21967
21968
21969 GSSAPI_ROOT="/usr"
21970
21971 # Check whether --with-gssapi-includes was given.
21972 if test "${with_gssapi_includes+set}" = set; then :
21973   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
21974     want_gss="yes"
21975
21976 fi
21977
21978
21979
21980 # Check whether --with-gssapi-libs was given.
21981 if test "${with_gssapi_libs+set}" = set; then :
21982   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
21983     want_gss="yes"
21984
21985 fi
21986
21987
21988
21989 # Check whether --with-gssapi was given.
21990 if test "${with_gssapi+set}" = set; then :
21991   withval=$with_gssapi;
21992   GSSAPI_ROOT="$withval"
21993   if test x"$GSSAPI_ROOT" != xno; then
21994     want_gss="yes"
21995     if test x"$GSSAPI_ROOT" = xyes; then
21996             GSSAPI_ROOT="/usr"
21997     fi
21998   fi
21999
22000 fi
22001
22002
22003 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
22004
22005 save_CPPFLAGS="$CPPFLAGS"
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
22007 $as_echo_n "checking if GSS-API support is requested... " >&6; }
22008 if test x"$want_gss" = xyes; then
22009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22010 $as_echo "yes" >&6; }
22011
22012   if test -z "$GSSAPI_INCS"; then
22013      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22014         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
22015      elif test -f "$KRB5CONFIG"; then
22016         GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
22017      elif test "$GSSAPI_ROOT" != "yes"; then
22018         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
22019      fi
22020   fi
22021
22022   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
22023
22024   ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
22025 if test "x$ac_cv_header_gss_h" = xyes; then :
22026
22027
22028 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
22029
22030       gnu_gss=yes
22031
22032 else
22033
22034             for ac_header in gssapi/gssapi.h
22035 do :
22036   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22037 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22038   cat >>confdefs.h <<_ACEOF
22039 #define HAVE_GSSAPI_GSSAPI_H 1
22040 _ACEOF
22041
22042 else
22043   not_mit=1
22044 fi
22045
22046 done
22047
22048       for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22049 do :
22050   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22051 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22052 $ac_includes_default
22053 #ifdef HAVE_GSSAPI_GSSAPI_H
22054 #include <gssapi/gssapi.h>
22055 #endif
22056
22057 "
22058 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22059   cat >>confdefs.h <<_ACEOF
22060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22061 _ACEOF
22062
22063 else
22064   not_mit=1
22065 fi
22066
22067 done
22068
22069       if test "x$not_mit" = "x1"; then
22070                 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22071 if test "x$ac_cv_header_gssapi_h" = xyes; then :
22072
22073
22074 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22075
22076
22077 else
22078
22079                             want_gss=no
22080               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22081 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22082
22083
22084 fi
22085
22086
22087       else
22088
22089 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22090
22091                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22092 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22093         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094 /* end confdefs.h.  */
22095
22096
22097 #include <gssapi/gssapi.h>
22098 #include <gssapi/gssapi_generic.h>
22099 #include <gssapi/gssapi_krb5.h>
22100
22101 int main (void)
22102 {
22103
22104             gss_import_name(
22105                             (OM_uint32 *)0,
22106                             (gss_buffer_t)0,
22107                             GSS_C_NT_HOSTBASED_SERVICE,
22108                             (gss_name_t *)0);
22109
22110  ;
22111  return 0;
22112 }
22113
22114 _ACEOF
22115 if ac_fn_c_try_compile "$LINENO"; then :
22116
22117           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22118 $as_echo "yes" >&6; }
22119
22120 else
22121
22122           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22123 $as_echo "no" >&6; }
22124
22125 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22126
22127
22128 fi
22129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22130       fi
22131
22132
22133 fi
22134
22135
22136 else
22137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22138 $as_echo "no" >&6; }
22139 fi
22140 if test x"$want_gss" = xyes; then
22141
22142 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22143
22144   HAVE_GSSAPI=1
22145   curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22146
22147   if test -n "$gnu_gss"; then
22148     curl_gss_msg="enabled (GNU GSS)"
22149     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22150     LIBS="-lgss $LIBS"
22151   elif test -z "$GSSAPI_LIB_DIR"; then
22152      case $host in
22153      *-*-darwin*)
22154         LIBS="-lgssapi_krb5 -lresolv $LIBS"
22155         ;;
22156      *)
22157         if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22158                                  gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22159            LIBS="$gss_libs $LIBS"
22160         elif test -f "$KRB5CONFIG"; then
22161                                  gss_libs=`$KRB5CONFIG --libs gssapi`
22162            LIBS="$gss_libs $LIBS"
22163         else
22164            case $host in
22165            *-hp-hpux*)
22166               gss_libname="gss"
22167               ;;
22168            *)
22169               gss_libname="gssapi"
22170               ;;
22171            esac
22172
22173            if test "$GSSAPI_ROOT" != "yes"; then
22174               LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22175               LIBS="-l$gss_libname $LIBS"
22176            else
22177               LIBS="-l$gss_libname $LIBS"
22178            fi
22179         fi
22180         ;;
22181      esac
22182   else
22183      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22184      case $host in
22185      *-hp-hpux*)
22186         LIBS="-lgss $LIBS"
22187         ;;
22188      *)
22189         LIBS="-lgssapi $LIBS"
22190         ;;
22191      esac
22192   fi
22193 else
22194   CPPFLAGS="$save_CPPFLAGS"
22195 fi
22196
22197 build_libstubgss=no
22198 if test x"$want_gss" = "xyes"; then
22199   build_libstubgss=yes
22200 fi
22201
22202  if test "x$build_libstubgss" = "xyes"; then
22203   BUILD_STUB_GSS_TRUE=
22204   BUILD_STUB_GSS_FALSE='#'
22205 else
22206   BUILD_STUB_GSS_TRUE='#'
22207   BUILD_STUB_GSS_FALSE=
22208 fi
22209
22210
22211
22212 DEFAULT_SSL_BACKEND=no
22213 VALID_DEFAULT_SSL_BACKEND=
22214
22215 # Check whether --with-default-ssl-backend was given.
22216 if test "${with_default_ssl_backend+set}" = set; then :
22217   withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22218 fi
22219
22220 case "$DEFAULT_SSL_BACKEND" in
22221   no)
22222         ;;
22223   default|yes)
22224         as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22225     ;;
22226   *)
22227
22228         VALID_DEFAULT_SSL_BACKEND=no
22229     ;;
22230 esac
22231
22232
22233
22234 OPT_WINSSL=no
22235
22236 # Check whether --with-winssl was given.
22237 if test "${with_winssl+set}" = set; then :
22238   withval=$with_winssl; OPT_WINSSL=$withval
22239 fi
22240
22241
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22243 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
22244 if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22245   ssl_msg=
22246   if test "x$OPT_WINSSL" != "xno"  &&
22247      test "x$curl_cv_native_windows" = "xyes"; then
22248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22249 $as_echo "yes" >&6; }
22250
22251 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22252
22253     USE_SCHANNEL=1
22254
22255     ssl_msg="Windows-native"
22256     test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22257     WINSSL_ENABLED=1
22258     # --with-winssl implies --enable-sspi
22259
22260 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22261
22262     USE_WINDOWS_SSPI=1
22263
22264     curl_sspi_msg="enabled"
22265     LIBS="-lcrypt32 $LIBS"
22266   else
22267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22268 $as_echo "no" >&6; }
22269   fi
22270   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22271 else
22272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22273 $as_echo "no" >&6; }
22274 fi
22275
22276 OPT_DARWINSSL=no
22277
22278 # Check whether --with-darwinssl was given.
22279 if test "${with_darwinssl+set}" = set; then :
22280   withval=$with_darwinssl; OPT_DARWINSSL=$withval
22281 fi
22282
22283
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22285 $as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
22286 if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
22287   if test "x$OPT_DARWINSSL" != "xno" &&
22288      test -d "/System/Library/Frameworks/Security.framework"; then
22289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22290 $as_echo "yes" >&6; }
22291
22292 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22293
22294     USE_DARWINSSL=1
22295
22296     ssl_msg="Apple OS-native"
22297     test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22298     DARWINSSL_ENABLED=1
22299     LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22300   else
22301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22302 $as_echo "no" >&6; }
22303   fi
22304   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22305 else
22306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22307 $as_echo "no" >&6; }
22308 fi
22309
22310
22311 OPT_SSL=off
22312 ca="no"
22313
22314 # Check whether --with-ssl was given.
22315 if test "${with_ssl+set}" = set; then :
22316   withval=$with_ssl; OPT_SSL=$withval
22317 fi
22318
22319
22320 if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22321    test X"$OPT_SSL" != Xno; then
22322   ssl_msg=
22323
22324     CLEANLDFLAGS="$LDFLAGS"
22325   CLEANCPPFLAGS="$CPPFLAGS"
22326   CLEANLIBS="$LIBS"
22327
22328     case $host in
22329     *-*-msys* | *-*-mingw*)
22330       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22331 $as_echo_n "checking for gdi32... " >&6; }
22332       my_ac_save_LIBS=$LIBS
22333       LIBS="-lgdi32 $LIBS"
22334       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22335 /* end confdefs.h.  */
22336 #include <windef.h>
22337                    #include <wingdi.h>
22338 int main (void)
22339 {
22340 GdiFlush();
22341  ;
22342  return 0;
22343 }
22344 _ACEOF
22345 if ac_fn_c_try_link "$LINENO"; then :
22346                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22347 $as_echo "yes" >&6; }
22348 else
22349                       LIBS=$my_ac_save_LIBS
22350                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22351 $as_echo "no" >&6; }
22352
22353 fi
22354 rm -f core conftest.err conftest.$ac_objext \
22355     conftest$ac_exeext conftest.$ac_ext
22356       ;;
22357   esac
22358
22359   case "$OPT_SSL" in
22360   yes)
22361         if test x$cross_compiling != xyes; then
22362             PKGTEST="yes"
22363     fi
22364     PREFIX_OPENSSL=/usr/local/ssl
22365     LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22366     ;;
22367   off)
22368         if test x$cross_compiling != xyes; then
22369             PKGTEST="yes"
22370     fi
22371     PREFIX_OPENSSL=
22372     ;;
22373   *)
22374         PKGTEST="no"
22375     PREFIX_OPENSSL=$OPT_SSL
22376
22377                 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22378     if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22379       { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22380 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22381       PKGTEST="yes"
22382     elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
22383       as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
22384     fi
22385
22386             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22387     if test "$PREFIX_OPENSSL" != "/usr" ; then
22388       SSL_LDFLAGS="-L$LIB_OPENSSL"
22389       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22390     fi
22391     SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22392     ;;
22393   esac
22394
22395   if test "$PKGTEST" = "yes"; then
22396
22397
22398     if test -n "$PKG_CONFIG"; then
22399       PKGCONFIG="$PKG_CONFIG"
22400     else
22401       if test -n "$ac_tool_prefix"; then
22402   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22403 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22405 $as_echo_n "checking for $ac_word... " >&6; }
22406 if ${ac_cv_path_PKGCONFIG+:} false; then :
22407   $as_echo_n "(cached) " >&6
22408 else
22409   case $PKGCONFIG in
22410   [\\/]* | ?:[\\/]*)
22411   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22412   ;;
22413   *)
22414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22415 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22416 for as_dir in $as_dummy
22417 do
22418   IFS=$as_save_IFS
22419   test -z "$as_dir" && as_dir=.
22420     for ac_exec_ext in '' $ac_executable_extensions; do
22421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22422     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22424     break 2
22425   fi
22426 done
22427   done
22428 IFS=$as_save_IFS
22429
22430   ;;
22431 esac
22432 fi
22433 PKGCONFIG=$ac_cv_path_PKGCONFIG
22434 if test -n "$PKGCONFIG"; then
22435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22436 $as_echo "$PKGCONFIG" >&6; }
22437 else
22438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22439 $as_echo "no" >&6; }
22440 fi
22441
22442
22443 fi
22444 if test -z "$ac_cv_path_PKGCONFIG"; then
22445   ac_pt_PKGCONFIG=$PKGCONFIG
22446   # Extract the first word of "pkg-config", so it can be a program name with args.
22447 set dummy pkg-config; ac_word=$2
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22449 $as_echo_n "checking for $ac_word... " >&6; }
22450 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22451   $as_echo_n "(cached) " >&6
22452 else
22453   case $ac_pt_PKGCONFIG in
22454   [\\/]* | ?:[\\/]*)
22455   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22456   ;;
22457   *)
22458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22459 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22460 for as_dir in $as_dummy
22461 do
22462   IFS=$as_save_IFS
22463   test -z "$as_dir" && as_dir=.
22464     for ac_exec_ext in '' $ac_executable_extensions; do
22465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22466     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22468     break 2
22469   fi
22470 done
22471   done
22472 IFS=$as_save_IFS
22473
22474   ;;
22475 esac
22476 fi
22477 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22478 if test -n "$ac_pt_PKGCONFIG"; then
22479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22480 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22481 else
22482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22483 $as_echo "no" >&6; }
22484 fi
22485
22486   if test "x$ac_pt_PKGCONFIG" = x; then
22487     PKGCONFIG="no"
22488   else
22489     case $cross_compiling:$ac_tool_warned in
22490 yes:)
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22493 ac_tool_warned=yes ;;
22494 esac
22495     PKGCONFIG=$ac_pt_PKGCONFIG
22496   fi
22497 else
22498   PKGCONFIG="$ac_cv_path_PKGCONFIG"
22499 fi
22500
22501     fi
22502
22503     if test "x$PKGCONFIG" != "xno"; then
22504       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22505 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22506             itexists=`
22507     if test -n "$OPENSSL_PCDIR"; then
22508       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22509       export PKG_CONFIG_LIBDIR
22510     fi
22511          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22512
22513       if test -z "$itexists"; then
22514                         PKGCONFIG="no"
22515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22516 $as_echo "no" >&6; }
22517       else
22518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22519 $as_echo "found" >&6; }
22520       fi
22521     fi
22522
22523
22524     if test "$PKGCONFIG" != "no" ; then
22525       SSL_LIBS=`
22526     if test -n "$OPENSSL_PCDIR"; then
22527       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22528       export PKG_CONFIG_LIBDIR
22529     fi
22530          $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22531
22532       SSL_LDFLAGS=`
22533     if test -n "$OPENSSL_PCDIR"; then
22534       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22535       export PKG_CONFIG_LIBDIR
22536     fi
22537          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22538
22539       SSL_CPPFLAGS=`
22540     if test -n "$OPENSSL_PCDIR"; then
22541       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22542       export PKG_CONFIG_LIBDIR
22543     fi
22544          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22545
22546
22547       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22548 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22549       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22550 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22551       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22552 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22553
22554       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22555
22556                                           LIBS="$SSL_LIBS $LIBS"
22557     fi
22558   fi
22559
22560     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22561   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22562
22563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22564 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22565 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22566   $as_echo_n "(cached) " >&6
22567 else
22568   ac_check_lib_save_LIBS=$LIBS
22569 LIBS="-lcrypto  $LIBS"
22570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22571 /* end confdefs.h.  */
22572
22573
22574 #ifdef __cplusplus
22575 extern "C"
22576 #endif
22577 char HMAC_Update ();
22578 int main (void)
22579 {
22580 return HMAC_Update ();
22581  ;
22582  return 0;
22583 }
22584 _ACEOF
22585 if ac_fn_c_try_link "$LINENO"; then :
22586   ac_cv_lib_crypto_HMAC_Update=yes
22587 else
22588   ac_cv_lib_crypto_HMAC_Update=no
22589 fi
22590 rm -f core conftest.err conftest.$ac_objext \
22591     conftest$ac_exeext conftest.$ac_ext
22592 LIBS=$ac_check_lib_save_LIBS
22593 fi
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22595 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22596 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22597
22598      HAVECRYPTO="yes"
22599      LIBS="-lcrypto $LIBS"
22600
22601 else
22602
22603      LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22604      if test "$PKGCONFIG" = "no" ; then
22605        # only set this if pkg-config wasn't used
22606        CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22607      fi
22608      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22609 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22610 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22611   $as_echo_n "(cached) " >&6
22612 else
22613   ac_check_lib_save_LIBS=$LIBS
22614 LIBS="-lcrypto  $LIBS"
22615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22616 /* end confdefs.h.  */
22617
22618
22619 #ifdef __cplusplus
22620 extern "C"
22621 #endif
22622 char HMAC_Init_ex ();
22623 int main (void)
22624 {
22625 return HMAC_Init_ex ();
22626  ;
22627  return 0;
22628 }
22629 _ACEOF
22630 if ac_fn_c_try_link "$LINENO"; then :
22631   ac_cv_lib_crypto_HMAC_Init_ex=yes
22632 else
22633   ac_cv_lib_crypto_HMAC_Init_ex=no
22634 fi
22635 rm -f core conftest.err conftest.$ac_objext \
22636     conftest$ac_exeext conftest.$ac_ext
22637 LIBS=$ac_check_lib_save_LIBS
22638 fi
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22640 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22641 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22642
22643        HAVECRYPTO="yes"
22644        LIBS="-lcrypto $LIBS"
22645 else
22646
22647
22648               { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22649 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22650        LIBS="$CLEANLIBS -lcrypto -ldl"
22651        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22652 /* end confdefs.h.  */
22653
22654          #include <openssl/err.h>
22655
22656 int main (void)
22657 {
22658
22659          ERR_clear_error();
22660
22661  ;
22662  return 0;
22663 }
22664 _ACEOF
22665 if ac_fn_c_try_link "$LINENO"; then :
22666
22667          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22668 $as_echo "yes" >&6; }
22669          HAVECRYPTO="yes"
22670
22671 else
22672
22673          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22674 $as_echo "no" >&6; }
22675
22676          { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22677 $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
22678          LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
22679          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h.  */
22681
22682            #include <openssl/err.h>
22683
22684 int main (void)
22685 {
22686
22687            ERR_clear_error();
22688
22689  ;
22690  return 0;
22691 }
22692 _ACEOF
22693 if ac_fn_c_try_link "$LINENO"; then :
22694
22695            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22696 $as_echo "yes" >&6; }
22697            HAVECRYPTO="yes"
22698
22699 else
22700
22701            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22702 $as_echo "no" >&6; }
22703            LDFLAGS="$CLEANLDFLAGS"
22704            CPPFLAGS="$CLEANCPPFLAGS"
22705            LIBS="$CLEANLIBS"
22706
22707
22708 fi
22709 rm -f core conftest.err conftest.$ac_objext \
22710     conftest$ac_exeext conftest.$ac_ext
22711
22712
22713 fi
22714 rm -f core conftest.err conftest.$ac_objext \
22715     conftest$ac_exeext conftest.$ac_ext
22716
22717
22718 fi
22719
22720
22721 fi
22722
22723
22724   if test X"$HAVECRYPTO" = X"yes"; then
22725
22726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22727 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22728 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22729   $as_echo_n "(cached) " >&6
22730 else
22731   ac_check_lib_save_LIBS=$LIBS
22732 LIBS="-lssl  $LIBS"
22733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22734 /* end confdefs.h.  */
22735
22736
22737 #ifdef __cplusplus
22738 extern "C"
22739 #endif
22740 char SSL_connect ();
22741 int main (void)
22742 {
22743 return SSL_connect ();
22744  ;
22745  return 0;
22746 }
22747 _ACEOF
22748 if ac_fn_c_try_link "$LINENO"; then :
22749   ac_cv_lib_ssl_SSL_connect=yes
22750 else
22751   ac_cv_lib_ssl_SSL_connect=no
22752 fi
22753 rm -f core conftest.err conftest.$ac_objext \
22754     conftest$ac_exeext conftest.$ac_ext
22755 LIBS=$ac_check_lib_save_LIBS
22756 fi
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22758 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22759 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22760   cat >>confdefs.h <<_ACEOF
22761 #define HAVE_LIBSSL 1
22762 _ACEOF
22763
22764   LIBS="-lssl $LIBS"
22765
22766 fi
22767
22768
22769     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22770                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22771 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22772         OLIBS=$LIBS
22773         LIBS="-lRSAglue -lrsaref $LIBS"
22774         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22775 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22776 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22777   $as_echo_n "(cached) " >&6
22778 else
22779   ac_check_lib_save_LIBS=$LIBS
22780 LIBS="-lssl  $LIBS"
22781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22782 /* end confdefs.h.  */
22783
22784
22785 #ifdef __cplusplus
22786 extern "C"
22787 #endif
22788 char SSL_connect ();
22789 int main (void)
22790 {
22791 return SSL_connect ();
22792  ;
22793  return 0;
22794 }
22795 _ACEOF
22796 if ac_fn_c_try_link "$LINENO"; then :
22797   ac_cv_lib_ssl_SSL_connect=yes
22798 else
22799   ac_cv_lib_ssl_SSL_connect=no
22800 fi
22801 rm -f core conftest.err conftest.$ac_objext \
22802     conftest$ac_exeext conftest.$ac_ext
22803 LIBS=$ac_check_lib_save_LIBS
22804 fi
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22806 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22807 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22808   cat >>confdefs.h <<_ACEOF
22809 #define HAVE_LIBSSL 1
22810 _ACEOF
22811
22812   LIBS="-lssl $LIBS"
22813
22814 fi
22815
22816         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22817                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22818 $as_echo "no" >&6; }
22819             LIBS=$OLIBS
22820         else
22821             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22822 $as_echo "yes" >&6; }
22823         fi
22824
22825     else
22826
22827             for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22828                        openssl/pem.h openssl/ssl.h openssl/err.h
22829 do :
22830   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22831 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22832 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22833   cat >>confdefs.h <<_ACEOF
22834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22835 _ACEOF
22836  ssl_msg="OpenSSL"
22837         test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22838         OPENSSL_ENABLED=1
22839
22840 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22841
22842 fi
22843
22844 done
22845
22846
22847       if test $ac_cv_header_openssl_x509_h = no; then
22848                                 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22849 do :
22850   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22851 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22852 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22853   cat >>confdefs.h <<_ACEOF
22854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22855 _ACEOF
22856
22857 fi
22858
22859 done
22860
22861
22862         if test $ac_cv_header_x509_h = yes &&
22863            test $ac_cv_header_crypto_h = yes &&
22864            test $ac_cv_header_ssl_h = yes; then
22865                     ssl_msg="OpenSSL"
22866           OPENSSL_ENABLED=1
22867         fi
22868       fi
22869     fi
22870
22871     if test X"$OPENSSL_ENABLED" != X"1"; then
22872        LIBS="$CLEANLIBS"
22873     fi
22874
22875     if test X"$OPT_SSL" != Xoff &&
22876        test "$OPENSSL_ENABLED" != "1"; then
22877       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22878     fi
22879   fi
22880
22881   if test X"$OPENSSL_ENABLED" = X"1"; then
22882
22883     for ac_func in RAND_egd \
22884                     ENGINE_cleanup \
22885                     SSL_get_shutdown \
22886                     SSLv2_client_method
22887 do :
22888   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22889 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22890 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22891   cat >>confdefs.h <<_ACEOF
22892 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22893 _ACEOF
22894
22895 fi
22896 done
22897
22898
22899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22900 $as_echo_n "checking for BoringSSL... " >&6; }
22901     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22902 /* end confdefs.h.  */
22903
22904
22905                 #include <openssl/base.h>
22906
22907 int main (void)
22908 {
22909
22910                 #ifndef OPENSSL_IS_BORINGSSL
22911                 #error not boringssl
22912                 #endif
22913
22914  ;
22915  return 0;
22916 }
22917
22918 _ACEOF
22919 if ac_fn_c_try_compile "$LINENO"; then :
22920
22921         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22922 $as_echo "yes" >&6; }
22923
22924 cat >>confdefs.h <<_ACEOF
22925 #define HAVE_BORINGSSL 1
22926 _ACEOF
22927
22928         ssl_msg="BoringSSL"
22929
22930 else
22931
22932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22933 $as_echo "no" >&6; }
22934
22935 fi
22936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937
22938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22939 $as_echo_n "checking for libressl... " >&6; }
22940     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22941 /* end confdefs.h.  */
22942
22943
22944 #include <openssl/opensslv.h>
22945
22946 int main (void)
22947 {
22948
22949         int dummy = LIBRESSL_VERSION_NUMBER;
22950
22951  ;
22952  return 0;
22953 }
22954
22955 _ACEOF
22956 if ac_fn_c_try_compile "$LINENO"; then :
22957
22958       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22959 $as_echo "yes" >&6; }
22960
22961 cat >>confdefs.h <<_ACEOF
22962 #define HAVE_LIBRESSL 1
22963 _ACEOF
22964
22965       ssl_msg="libressl"
22966
22967 else
22968
22969       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22970 $as_echo "no" >&6; }
22971
22972 fi
22973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22974   fi
22975
22976   if test "$OPENSSL_ENABLED" = "1"; then
22977     if test -n "$LIB_OPENSSL"; then
22978                             if test "x$cross_compiling" != "xyes"; then
22979          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
22980          export CURL_LIBRARY_PATH
22981          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
22982 $as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
22983        fi
22984     fi
22985
22986   #
22987
22988   #
22989   tst_api="unknown"
22990   #
22991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22992 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22993
22994     OLDCPPFLAGS=$CPPFLAGS
22995   # CPPPFLAG comes from CURL_CPP_P
22996   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22997       if test -z "$SED"; then
22998     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22999   fi
23000   if test -z "$GREP"; then
23001     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23002   fi
23003
23004   tmp_exp=""
23005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23006 /* end confdefs.h.  */
23007
23008
23009 #   ifdef USE_OPENSSL
23010 #     include <openssl/crypto.h>
23011 #   else
23012 #     include <crypto.h>
23013 #   endif
23014
23015 #ifdef OPENSSL_VERSION_NUMBER
23016 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
23017 #endif
23018
23019
23020 _ACEOF
23021 if ac_fn_c_try_cpp "$LINENO"; then :
23022
23023     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23024       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23025       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23026       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23027     if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23028       tmp_exp=""
23029     fi
23030
23031 fi
23032 rm -f conftest.err conftest.i conftest.$ac_ext
23033   if test -z "$tmp_exp"; then
23034     curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23035
23036   else
23037     curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23038     curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23039
23040   fi
23041       CPPFLAGS=$OLDCPPFLAGS
23042
23043   if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23044     tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23045     case "x$tst_verlen" in
23046       x6)
23047         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23048         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23049         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23050         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23051         ;;
23052       x11|x10)
23053         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23054         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23055         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23056         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23057         ;;
23058       *)
23059         tst_api="unknown"
23060         ;;
23061     esac
23062     case $tst_api in
23063       0x111) tst_show="1.1.1" ;;
23064       0x110) tst_show="1.1.0" ;;
23065       0x102) tst_show="1.0.2" ;;
23066       0x101) tst_show="1.0.1" ;;
23067       0x100) tst_show="1.0.0" ;;
23068       0x099) tst_show="0.9.9" ;;
23069       0x098) tst_show="0.9.8" ;;
23070       0x097) tst_show="0.9.7" ;;
23071       0x096) tst_show="0.9.6" ;;
23072       0x095) tst_show="0.9.5" ;;
23073       0x094) tst_show="0.9.4" ;;
23074       0x093) tst_show="0.9.3" ;;
23075       0x092) tst_show="0.9.2" ;;
23076       0x091) tst_show="0.9.1" ;;
23077       *)     tst_show="unknown" ;;
23078     esac
23079     tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23080   else
23081     tst_show="unknown"
23082   fi
23083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23084 $as_echo "$tst_show" >&6; }
23085   #
23086   curl_openssl_api_headers=$tst_api
23087
23088
23089   #
23090   tst_api="unknown"
23091   #
23092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23093 $as_echo_n "checking for OpenSSL library version... " >&6; }
23094   if test "$tst_api" = "unknown"; then
23095     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23096 /* end confdefs.h.  */
23097
23098
23099 #define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23100 #ifdef __STDC__
23101 # include <limits.h>
23102 #else
23103 # include <assert.h>
23104 #endif
23105 #undef ERR_clear_last_mark
23106 #ifdef __cplusplus
23107 extern "C"
23108 #endif
23109 char ERR_clear_last_mark ();
23110 #if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23111 choke me
23112 #endif
23113
23114 int main (void)
23115 {
23116 return ERR_clear_last_mark ();
23117  ;
23118  return 0;
23119 }
23120
23121 _ACEOF
23122 if ac_fn_c_try_link "$LINENO"; then :
23123
23124       tst_api="0x111"
23125
23126 fi
23127 rm -f core conftest.err conftest.$ac_objext \
23128     conftest$ac_exeext conftest.$ac_ext
23129   fi
23130   if test "$tst_api" = "unknown"; then
23131     case $host in
23132       *-*-vms*)
23133         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23134 /* end confdefs.h.  */
23135
23136
23137 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23138 #ifdef __STDC__
23139 # include <limits.h>
23140 #else
23141 # include <assert.h>
23142 #endif
23143 #undef SSL_CTX_set_not_resumbl_sess_cb
23144 #ifdef __cplusplus
23145 extern "C"
23146 #endif
23147 char SSL_CTX_set_not_resumbl_sess_cb ();
23148 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23149 choke me
23150 #endif
23151
23152 int main (void)
23153 {
23154 return SSL_CTX_set_not_resumbl_sess_cb ();
23155  ;
23156  return 0;
23157 }
23158
23159 _ACEOF
23160 if ac_fn_c_try_link "$LINENO"; then :
23161
23162           tst_api="0x110"
23163
23164 fi
23165 rm -f core conftest.err conftest.$ac_objext \
23166     conftest$ac_exeext conftest.$ac_ext
23167         ;;
23168       *)
23169         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23170 /* end confdefs.h.  */
23171
23172
23173 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23174 #ifdef __STDC__
23175 # include <limits.h>
23176 #else
23177 # include <assert.h>
23178 #endif
23179 #undef SSL_CTX_set_not_resumable_session_callback
23180 #ifdef __cplusplus
23181 extern "C"
23182 #endif
23183 char SSL_CTX_set_not_resumable_session_callback ();
23184 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23185 choke me
23186 #endif
23187
23188 int main (void)
23189 {
23190 return SSL_CTX_set_not_resumable_session_callback ();
23191  ;
23192  return 0;
23193 }
23194
23195 _ACEOF
23196 if ac_fn_c_try_link "$LINENO"; then :
23197
23198           tst_api="0x110"
23199
23200 fi
23201 rm -f core conftest.err conftest.$ac_objext \
23202     conftest$ac_exeext conftest.$ac_ext
23203         ;;
23204     esac
23205   fi
23206   if test "$tst_api" = "unknown"; then
23207     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23208 /* end confdefs.h.  */
23209
23210
23211 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23212 #ifdef __STDC__
23213 # include <limits.h>
23214 #else
23215 # include <assert.h>
23216 #endif
23217 #undef SSL_CONF_CTX_new
23218 #ifdef __cplusplus
23219 extern "C"
23220 #endif
23221 char SSL_CONF_CTX_new ();
23222 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23223 choke me
23224 #endif
23225
23226 int main (void)
23227 {
23228 return SSL_CONF_CTX_new ();
23229  ;
23230  return 0;
23231 }
23232
23233 _ACEOF
23234 if ac_fn_c_try_link "$LINENO"; then :
23235
23236       tst_api="0x102"
23237
23238 fi
23239 rm -f core conftest.err conftest.$ac_objext \
23240     conftest$ac_exeext conftest.$ac_ext
23241   fi
23242   if test "$tst_api" = "unknown"; then
23243     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23244 /* end confdefs.h.  */
23245
23246
23247 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23248 #ifdef __STDC__
23249 # include <limits.h>
23250 #else
23251 # include <assert.h>
23252 #endif
23253 #undef SSL_renegotiate_abbreviated
23254 #ifdef __cplusplus
23255 extern "C"
23256 #endif
23257 char SSL_renegotiate_abbreviated ();
23258 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23259 choke me
23260 #endif
23261
23262 int main (void)
23263 {
23264 return SSL_renegotiate_abbreviated ();
23265  ;
23266  return 0;
23267 }
23268
23269 _ACEOF
23270 if ac_fn_c_try_link "$LINENO"; then :
23271
23272       tst_api="0x101"
23273
23274 fi
23275 rm -f core conftest.err conftest.$ac_objext \
23276     conftest$ac_exeext conftest.$ac_ext
23277   fi
23278   if test "$tst_api" = "unknown"; then
23279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23280 /* end confdefs.h.  */
23281
23282
23283 #define OBJ_add_sigid innocuous_OBJ_add_sigid
23284 #ifdef __STDC__
23285 # include <limits.h>
23286 #else
23287 # include <assert.h>
23288 #endif
23289 #undef OBJ_add_sigid
23290 #ifdef __cplusplus
23291 extern "C"
23292 #endif
23293 char OBJ_add_sigid ();
23294 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23295 choke me
23296 #endif
23297
23298 int main (void)
23299 {
23300 return OBJ_add_sigid ();
23301  ;
23302  return 0;
23303 }
23304
23305 _ACEOF
23306 if ac_fn_c_try_link "$LINENO"; then :
23307
23308       tst_api="0x100"
23309
23310 fi
23311 rm -f core conftest.err conftest.$ac_objext \
23312     conftest$ac_exeext conftest.$ac_ext
23313   fi
23314   if test "$tst_api" = "unknown"; then
23315     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23316 /* end confdefs.h.  */
23317
23318
23319 #define ERR_set_mark innocuous_ERR_set_mark
23320 #ifdef __STDC__
23321 # include <limits.h>
23322 #else
23323 # include <assert.h>
23324 #endif
23325 #undef ERR_set_mark
23326 #ifdef __cplusplus
23327 extern "C"
23328 #endif
23329 char ERR_set_mark ();
23330 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23331 choke me
23332 #endif
23333
23334 int main (void)
23335 {
23336 return ERR_set_mark ();
23337  ;
23338  return 0;
23339 }
23340
23341 _ACEOF
23342 if ac_fn_c_try_link "$LINENO"; then :
23343
23344       tst_api="0x098"
23345
23346 fi
23347 rm -f core conftest.err conftest.$ac_objext \
23348     conftest$ac_exeext conftest.$ac_ext
23349   fi
23350   if test "$tst_api" = "unknown"; then
23351     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23352 /* end confdefs.h.  */
23353
23354
23355 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23356 #ifdef __STDC__
23357 # include <limits.h>
23358 #else
23359 # include <assert.h>
23360 #endif
23361 #undef ERR_peek_last_error
23362 #ifdef __cplusplus
23363 extern "C"
23364 #endif
23365 char ERR_peek_last_error ();
23366 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23367 choke me
23368 #endif
23369
23370 int main (void)
23371 {
23372 return ERR_peek_last_error ();
23373  ;
23374  return 0;
23375 }
23376
23377 _ACEOF
23378 if ac_fn_c_try_link "$LINENO"; then :
23379
23380       tst_api="0x097"
23381
23382 fi
23383 rm -f core conftest.err conftest.$ac_objext \
23384     conftest$ac_exeext conftest.$ac_ext
23385   fi
23386   if test "$tst_api" = "unknown"; then
23387     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23388 /* end confdefs.h.  */
23389
23390
23391 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23392 #ifdef __STDC__
23393 # include <limits.h>
23394 #else
23395 # include <assert.h>
23396 #endif
23397 #undef c2i_ASN1_OBJECT
23398 #ifdef __cplusplus
23399 extern "C"
23400 #endif
23401 char c2i_ASN1_OBJECT ();
23402 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23403 choke me
23404 #endif
23405
23406 int main (void)
23407 {
23408 return c2i_ASN1_OBJECT ();
23409  ;
23410  return 0;
23411 }
23412
23413 _ACEOF
23414 if ac_fn_c_try_link "$LINENO"; then :
23415
23416       tst_api="0x096"
23417
23418 fi
23419 rm -f core conftest.err conftest.$ac_objext \
23420     conftest$ac_exeext conftest.$ac_ext
23421   fi
23422   if test "$tst_api" = "unknown"; then
23423     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23424 /* end confdefs.h.  */
23425
23426
23427 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23428 #ifdef __STDC__
23429 # include <limits.h>
23430 #else
23431 # include <assert.h>
23432 #endif
23433 #undef SSL_CTX_set_purpose
23434 #ifdef __cplusplus
23435 extern "C"
23436 #endif
23437 char SSL_CTX_set_purpose ();
23438 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23439 choke me
23440 #endif
23441
23442 int main (void)
23443 {
23444 return SSL_CTX_set_purpose ();
23445  ;
23446  return 0;
23447 }
23448
23449 _ACEOF
23450 if ac_fn_c_try_link "$LINENO"; then :
23451
23452       tst_api="0x095"
23453
23454 fi
23455 rm -f core conftest.err conftest.$ac_objext \
23456     conftest$ac_exeext conftest.$ac_ext
23457   fi
23458   if test "$tst_api" = "unknown"; then
23459     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23460 /* end confdefs.h.  */
23461
23462
23463 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23464 #ifdef __STDC__
23465 # include <limits.h>
23466 #else
23467 # include <assert.h>
23468 #endif
23469 #undef OBJ_obj2txt
23470 #ifdef __cplusplus
23471 extern "C"
23472 #endif
23473 char OBJ_obj2txt ();
23474 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23475 choke me
23476 #endif
23477
23478 int main (void)
23479 {
23480 return OBJ_obj2txt ();
23481  ;
23482  return 0;
23483 }
23484
23485 _ACEOF
23486 if ac_fn_c_try_link "$LINENO"; then :
23487
23488       tst_api="0x094"
23489
23490 fi
23491 rm -f core conftest.err conftest.$ac_objext \
23492     conftest$ac_exeext conftest.$ac_ext
23493   fi
23494   if test "$tst_api" = "unknown"; then
23495     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23496 /* end confdefs.h.  */
23497
23498
23499 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23500 #ifdef __STDC__
23501 # include <limits.h>
23502 #else
23503 # include <assert.h>
23504 #endif
23505 #undef SSL_get_verify_depth
23506 #ifdef __cplusplus
23507 extern "C"
23508 #endif
23509 char SSL_get_verify_depth ();
23510 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23511 choke me
23512 #endif
23513
23514 int main (void)
23515 {
23516 return SSL_get_verify_depth ();
23517  ;
23518  return 0;
23519 }
23520
23521 _ACEOF
23522 if ac_fn_c_try_link "$LINENO"; then :
23523
23524       tst_api="0x093"
23525
23526 fi
23527 rm -f core conftest.err conftest.$ac_objext \
23528     conftest$ac_exeext conftest.$ac_ext
23529   fi
23530   if test "$tst_api" = "unknown"; then
23531     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23532 /* end confdefs.h.  */
23533
23534
23535 #define SSL_library_init innocuous_SSL_library_init
23536 #ifdef __STDC__
23537 # include <limits.h>
23538 #else
23539 # include <assert.h>
23540 #endif
23541 #undef SSL_library_init
23542 #ifdef __cplusplus
23543 extern "C"
23544 #endif
23545 char SSL_library_init ();
23546 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23547 choke me
23548 #endif
23549
23550 int main (void)
23551 {
23552 return SSL_library_init ();
23553  ;
23554  return 0;
23555 }
23556
23557 _ACEOF
23558 if ac_fn_c_try_link "$LINENO"; then :
23559
23560       tst_api="0x092"
23561
23562 fi
23563 rm -f core conftest.err conftest.$ac_objext \
23564     conftest$ac_exeext conftest.$ac_ext
23565   fi
23566   if test "$tst_api" = "unknown"; then
23567     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23568 /* end confdefs.h.  */
23569
23570
23571 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23572 #ifdef __STDC__
23573 # include <limits.h>
23574 #else
23575 # include <assert.h>
23576 #endif
23577 #undef SSL_CTX_set_cipher_list
23578 #ifdef __cplusplus
23579 extern "C"
23580 #endif
23581 char SSL_CTX_set_cipher_list ();
23582 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23583 choke me
23584 #endif
23585
23586 int main (void)
23587 {
23588 return SSL_CTX_set_cipher_list ();
23589  ;
23590  return 0;
23591 }
23592
23593 _ACEOF
23594 if ac_fn_c_try_link "$LINENO"; then :
23595
23596       tst_api="0x091"
23597
23598 fi
23599 rm -f core conftest.err conftest.$ac_objext \
23600     conftest$ac_exeext conftest.$ac_ext
23601   fi
23602   case $tst_api in
23603     0x111) tst_show="1.1.1" ;;
23604     0x110) tst_show="1.1.0" ;;
23605     0x102) tst_show="1.0.2" ;;
23606     0x101) tst_show="1.0.1" ;;
23607     0x100) tst_show="1.0.0" ;;
23608     0x099) tst_show="0.9.9" ;;
23609     0x098) tst_show="0.9.8" ;;
23610     0x097) tst_show="0.9.7" ;;
23611     0x096) tst_show="0.9.6" ;;
23612     0x095) tst_show="0.9.5" ;;
23613     0x094) tst_show="0.9.4" ;;
23614     0x093) tst_show="0.9.3" ;;
23615     0x092) tst_show="0.9.2" ;;
23616     0x091) tst_show="0.9.1" ;;
23617     *)     tst_show="unknown" ;;
23618   esac
23619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23620 $as_echo "$tst_show" >&6; }
23621   #
23622   curl_openssl_api_library=$tst_api
23623
23624   #
23625   tst_match="yes"
23626   #
23627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23628 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23629   if test "$curl_openssl_api_headers" = "unknown" ||
23630     test "$curl_openssl_api_library" = "unknown"; then
23631     tst_match="fail"
23632     tst_warns="Can not compare OpenSSL headers and library versions."
23633   elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23634     tst_match="no"
23635     tst_warns="OpenSSL headers and library versions do not match."
23636   fi
23637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23638 $as_echo "$tst_match" >&6; }
23639   if test "$tst_match" != "yes"; then
23640     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23641 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23642   fi
23643
23644     check_for_ca_bundle=1
23645   fi
23646
23647   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23648 fi
23649
23650
23651 if test X"$OPENSSL_ENABLED" = X"1"; then
23652
23653 # Check whether --with-egd-socket was given.
23654 if test "${with_egd_socket+set}" = set; then :
23655   withval=$with_egd_socket;  EGD_SOCKET="$withval"
23656
23657 fi
23658
23659   if test -n "$EGD_SOCKET" ; then
23660
23661 cat >>confdefs.h <<_ACEOF
23662 #define EGD_SOCKET "$EGD_SOCKET"
23663 _ACEOF
23664
23665   fi
23666
23667
23668 # Check whether --with-random was given.
23669 if test "${with_random+set}" = set; then :
23670   withval=$with_random;  RANDOM_FILE="$withval"
23671 else
23672
23673           if test x$cross_compiling != xyes; then
23674                         as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23676 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23677 if eval \${$as_ac_File+:} false; then :
23678   $as_echo_n "(cached) " >&6
23679 else
23680   test "$cross_compiling" = yes &&
23681   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23682 if test -r ""/dev/urandom""; then
23683   eval "$as_ac_File=yes"
23684 else
23685   eval "$as_ac_File=no"
23686 fi
23687 fi
23688 eval ac_res=\$$as_ac_File
23689                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23690 $as_echo "$ac_res" >&6; }
23691 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23692    RANDOM_FILE="/dev/urandom"
23693 fi
23694
23695           else
23696             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23697 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23698           fi
23699
23700
23701 fi
23702
23703   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23704
23705
23706 cat >>confdefs.h <<_ACEOF
23707 #define RANDOM_FILE "$RANDOM_FILE"
23708 _ACEOF
23709
23710   fi
23711 fi
23712
23713 if test "$OPENSSL_ENABLED" = "1"; then
23714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23715 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23716 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23717   $as_echo_n "(cached) " >&6
23718 else
23719   ac_check_lib_save_LIBS=$LIBS
23720 LIBS="-lcrypto  $LIBS"
23721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23722 /* end confdefs.h.  */
23723
23724
23725 #ifdef __cplusplus
23726 extern "C"
23727 #endif
23728 char SRP_Calc_client_key ();
23729 int main (void)
23730 {
23731 return SRP_Calc_client_key ();
23732  ;
23733  return 0;
23734 }
23735 _ACEOF
23736 if ac_fn_c_try_link "$LINENO"; then :
23737   ac_cv_lib_crypto_SRP_Calc_client_key=yes
23738 else
23739   ac_cv_lib_crypto_SRP_Calc_client_key=no
23740 fi
23741 rm -f core conftest.err conftest.$ac_objext \
23742     conftest$ac_exeext conftest.$ac_ext
23743 LIBS=$ac_check_lib_save_LIBS
23744 fi
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23746 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23747 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23748
23749
23750 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23751
23752      HAVE_OPENSSL_SRP=1
23753
23754
23755 fi
23756
23757 fi
23758
23759 if test X"$OPENSSL_ENABLED" = X"1"; then
23760 # Check whether --enable-openssl-auto-load-config was given.
23761 if test "${enable_openssl_auto_load_config+set}" = set; then :
23762   enableval=$enable_openssl_auto_load_config;  if test X"$enableval" = X"no"; then
23763     { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
23764 $as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
23765
23766 $as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
23767
23768   fi
23769
23770 fi
23771
23772 fi
23773
23774
23775 OPT_GNUTLS=no
23776
23777
23778 # Check whether --with-gnutls was given.
23779 if test "${with_gnutls+set}" = set; then :
23780   withval=$with_gnutls; OPT_GNUTLS=$withval
23781 fi
23782
23783
23784 if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23785   ssl_msg=
23786
23787   if test X"$OPT_GNUTLS" != Xno; then
23788
23789     addld=""
23790     addlib=""
23791     gtlslib=""
23792     version=""
23793     addcflags=""
23794
23795     if test "x$OPT_GNUTLS" = "xyes"; then
23796
23797     if test -n "$PKG_CONFIG"; then
23798       PKGCONFIG="$PKG_CONFIG"
23799     else
23800       if test -n "$ac_tool_prefix"; then
23801   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23802 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23804 $as_echo_n "checking for $ac_word... " >&6; }
23805 if ${ac_cv_path_PKGCONFIG+:} false; then :
23806   $as_echo_n "(cached) " >&6
23807 else
23808   case $PKGCONFIG in
23809   [\\/]* | ?:[\\/]*)
23810   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23811   ;;
23812   *)
23813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23814 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23815 for as_dir in $as_dummy
23816 do
23817   IFS=$as_save_IFS
23818   test -z "$as_dir" && as_dir=.
23819     for ac_exec_ext in '' $ac_executable_extensions; do
23820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23821     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23823     break 2
23824   fi
23825 done
23826   done
23827 IFS=$as_save_IFS
23828
23829   ;;
23830 esac
23831 fi
23832 PKGCONFIG=$ac_cv_path_PKGCONFIG
23833 if test -n "$PKGCONFIG"; then
23834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23835 $as_echo "$PKGCONFIG" >&6; }
23836 else
23837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23838 $as_echo "no" >&6; }
23839 fi
23840
23841
23842 fi
23843 if test -z "$ac_cv_path_PKGCONFIG"; then
23844   ac_pt_PKGCONFIG=$PKGCONFIG
23845   # Extract the first word of "pkg-config", so it can be a program name with args.
23846 set dummy pkg-config; ac_word=$2
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23848 $as_echo_n "checking for $ac_word... " >&6; }
23849 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23850   $as_echo_n "(cached) " >&6
23851 else
23852   case $ac_pt_PKGCONFIG in
23853   [\\/]* | ?:[\\/]*)
23854   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23855   ;;
23856   *)
23857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23858 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23859 for as_dir in $as_dummy
23860 do
23861   IFS=$as_save_IFS
23862   test -z "$as_dir" && as_dir=.
23863     for ac_exec_ext in '' $ac_executable_extensions; do
23864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23865     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23867     break 2
23868   fi
23869 done
23870   done
23871 IFS=$as_save_IFS
23872
23873   ;;
23874 esac
23875 fi
23876 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23877 if test -n "$ac_pt_PKGCONFIG"; then
23878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23879 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23880 else
23881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23882 $as_echo "no" >&6; }
23883 fi
23884
23885   if test "x$ac_pt_PKGCONFIG" = x; then
23886     PKGCONFIG="no"
23887   else
23888     case $cross_compiling:$ac_tool_warned in
23889 yes:)
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23892 ac_tool_warned=yes ;;
23893 esac
23894     PKGCONFIG=$ac_pt_PKGCONFIG
23895   fi
23896 else
23897   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23898 fi
23899
23900     fi
23901
23902     if test "x$PKGCONFIG" != "xno"; then
23903       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23904 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23905             itexists=`
23906     if test -n ""; then
23907       PKG_CONFIG_LIBDIR=""
23908       export PKG_CONFIG_LIBDIR
23909     fi
23910          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23911
23912       if test -z "$itexists"; then
23913                         PKGCONFIG="no"
23914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23915 $as_echo "no" >&6; }
23916       else
23917         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23918 $as_echo "found" >&6; }
23919       fi
23920     fi
23921
23922
23923       if test "$PKGCONFIG" != "no" ; then
23924         addlib=`$PKGCONFIG --libs-only-l gnutls`
23925         addld=`$PKGCONFIG --libs-only-L gnutls`
23926         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23927         version=`$PKGCONFIG --modversion gnutls`
23928         gtlslib=`echo $addld | $SED -e 's/-L//'`
23929       else
23930                         check=`libgnutls-config --version 2>/dev/null`
23931         if test -n "$check"; then
23932           addlib=`libgnutls-config --libs`
23933           addcflags=`libgnutls-config --cflags`
23934           version=`libgnutls-config --version`
23935           gtlslib=`libgnutls-config --prefix`/lib$libsuff
23936         fi
23937       fi
23938     else
23939                   cfg=$OPT_GNUTLS/bin/libgnutls-config
23940       check=`$cfg --version 2>/dev/null`
23941       if test -n "$check"; then
23942         addlib=`$cfg --libs`
23943         addcflags=`$cfg --cflags`
23944         version=`$cfg --version`
23945         gtlslib=`$cfg --prefix`/lib$libsuff
23946       else
23947                 addlib=-lgnutls
23948         addld=-L$OPT_GNUTLS/lib$libsuff
23949         addcflags=-I$OPT_GNUTLS/include
23950         version="" # we just don't know
23951         gtlslib=$OPT_GNUTLS/lib$libsuff
23952       fi
23953     fi
23954
23955     if test -z "$version"; then
23956             version="unknown"
23957     fi
23958
23959     if test -n "$addlib"; then
23960
23961       CLEANLIBS="$LIBS"
23962       CLEANCPPFLAGS="$CPPFLAGS"
23963       CLEANLDFLAGS="$LDFLAGS"
23964
23965       LIBS="$addlib $LIBS"
23966       LDFLAGS="$LDFLAGS $addld"
23967       if test "$addcflags" != "-I/usr/include"; then
23968          CPPFLAGS="$CPPFLAGS $addcflags"
23969       fi
23970
23971       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23972 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23973 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23974   $as_echo_n "(cached) " >&6
23975 else
23976   ac_check_lib_save_LIBS=$LIBS
23977 LIBS="-lgnutls  $LIBS"
23978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23979 /* end confdefs.h.  */
23980
23981
23982 #ifdef __cplusplus
23983 extern "C"
23984 #endif
23985 char gnutls_check_version ();
23986 int main (void)
23987 {
23988 return gnutls_check_version ();
23989  ;
23990  return 0;
23991 }
23992 _ACEOF
23993 if ac_fn_c_try_link "$LINENO"; then :
23994   ac_cv_lib_gnutls_gnutls_check_version=yes
23995 else
23996   ac_cv_lib_gnutls_gnutls_check_version=no
23997 fi
23998 rm -f core conftest.err conftest.$ac_objext \
23999     conftest$ac_exeext conftest.$ac_ext
24000 LIBS=$ac_check_lib_save_LIBS
24001 fi
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
24003 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
24004 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
24005
24006
24007 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
24008
24009        USE_GNUTLS=1
24010
24011        GNUTLS_ENABLED=1
24012        USE_GNUTLS="yes"
24013        ssl_msg="GnuTLS"
24014        test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24015
24016 else
24017
24018          LIBS="$CLEANLIBS"
24019          CPPFLAGS="$CLEANCPPFLAGS"
24020
24021 fi
24022
24023
24024       if test "x$USE_GNUTLS" = "xyes"; then
24025         { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24026 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
24027         check_for_ca_bundle=1
24028         if test -n "$gtlslib"; then
24029                                                   if test "x$cross_compiling" != "xyes"; then
24030             CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
24031             export CURL_LIBRARY_PATH
24032             { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
24033 $as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
24034           fi
24035         fi
24036         for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24037 do :
24038   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24039 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24040 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24041   cat >>confdefs.h <<_ACEOF
24042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24043 _ACEOF
24044
24045 fi
24046 done
24047
24048       fi
24049
24050     fi
24051
24052   fi
24053   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24054 fi
24055
24056
24057 if test "$GNUTLS_ENABLED" = "1"; then
24058   USE_GNUTLS_NETTLE=
24059   # First check if we can detect either crypto library via transitive linking
24060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24061 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24062 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24063   $as_echo_n "(cached) " >&6
24064 else
24065   ac_check_lib_save_LIBS=$LIBS
24066 LIBS="-lgnutls  $LIBS"
24067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24068 /* end confdefs.h.  */
24069
24070
24071 #ifdef __cplusplus
24072 extern "C"
24073 #endif
24074 char nettle_MD5Init ();
24075 int main (void)
24076 {
24077 return nettle_MD5Init ();
24078  ;
24079  return 0;
24080 }
24081 _ACEOF
24082 if ac_fn_c_try_link "$LINENO"; then :
24083   ac_cv_lib_gnutls_nettle_MD5Init=yes
24084 else
24085   ac_cv_lib_gnutls_nettle_MD5Init=no
24086 fi
24087 rm -f core conftest.err conftest.$ac_objext \
24088     conftest$ac_exeext conftest.$ac_ext
24089 LIBS=$ac_check_lib_save_LIBS
24090 fi
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24092 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24093 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24094    USE_GNUTLS_NETTLE=1
24095 fi
24096
24097   if test "$USE_GNUTLS_NETTLE" = ""; then
24098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24099 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24100 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24101   $as_echo_n "(cached) " >&6
24102 else
24103   ac_check_lib_save_LIBS=$LIBS
24104 LIBS="-lgnutls  $LIBS"
24105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24106 /* end confdefs.h.  */
24107
24108
24109 #ifdef __cplusplus
24110 extern "C"
24111 #endif
24112 char gcry_control ();
24113 int main (void)
24114 {
24115 return gcry_control ();
24116  ;
24117  return 0;
24118 }
24119 _ACEOF
24120 if ac_fn_c_try_link "$LINENO"; then :
24121   ac_cv_lib_gnutls_gcry_control=yes
24122 else
24123   ac_cv_lib_gnutls_gcry_control=no
24124 fi
24125 rm -f core conftest.err conftest.$ac_objext \
24126     conftest$ac_exeext conftest.$ac_ext
24127 LIBS=$ac_check_lib_save_LIBS
24128 fi
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24130 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24131 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24132    USE_GNUTLS_NETTLE=0
24133 fi
24134
24135   fi
24136   # If not, try linking directly to both of them to see if they are available
24137   if test "$USE_GNUTLS_NETTLE" = ""; then
24138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24139 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24140 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24141   $as_echo_n "(cached) " >&6
24142 else
24143   ac_check_lib_save_LIBS=$LIBS
24144 LIBS="-lnettle  $LIBS"
24145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24146 /* end confdefs.h.  */
24147
24148
24149 #ifdef __cplusplus
24150 extern "C"
24151 #endif
24152 char nettle_MD5Init ();
24153 int main (void)
24154 {
24155 return nettle_MD5Init ();
24156  ;
24157  return 0;
24158 }
24159 _ACEOF
24160 if ac_fn_c_try_link "$LINENO"; then :
24161   ac_cv_lib_nettle_nettle_MD5Init=yes
24162 else
24163   ac_cv_lib_nettle_nettle_MD5Init=no
24164 fi
24165 rm -f core conftest.err conftest.$ac_objext \
24166     conftest$ac_exeext conftest.$ac_ext
24167 LIBS=$ac_check_lib_save_LIBS
24168 fi
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24170 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24171 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24172    USE_GNUTLS_NETTLE=1
24173 fi
24174
24175   fi
24176   if test "$USE_GNUTLS_NETTLE" = ""; then
24177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24178 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24179 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24180   $as_echo_n "(cached) " >&6
24181 else
24182   ac_check_lib_save_LIBS=$LIBS
24183 LIBS="-lgcrypt  $LIBS"
24184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24185 /* end confdefs.h.  */
24186
24187
24188 #ifdef __cplusplus
24189 extern "C"
24190 #endif
24191 char gcry_control ();
24192 int main (void)
24193 {
24194 return gcry_control ();
24195  ;
24196  return 0;
24197 }
24198 _ACEOF
24199 if ac_fn_c_try_link "$LINENO"; then :
24200   ac_cv_lib_gcrypt_gcry_control=yes
24201 else
24202   ac_cv_lib_gcrypt_gcry_control=no
24203 fi
24204 rm -f core conftest.err conftest.$ac_objext \
24205     conftest$ac_exeext conftest.$ac_ext
24206 LIBS=$ac_check_lib_save_LIBS
24207 fi
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24209 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24210 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24211    USE_GNUTLS_NETTLE=0
24212 fi
24213
24214   fi
24215   if test "$USE_GNUTLS_NETTLE" = ""; then
24216     as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24217   fi
24218   if test "$USE_GNUTLS_NETTLE" = "1"; then
24219
24220 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24221
24222     USE_GNUTLS_NETTLE=1
24223
24224     LIBS="-lnettle $LIBS"
24225   else
24226     LIBS="-lgcrypt $LIBS"
24227   fi
24228 fi
24229
24230 if test "$GNUTLS_ENABLED" = "1"; then
24231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24232 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24233 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24234   $as_echo_n "(cached) " >&6
24235 else
24236   ac_check_lib_save_LIBS=$LIBS
24237 LIBS="-lgnutls  $LIBS"
24238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24239 /* end confdefs.h.  */
24240
24241
24242 #ifdef __cplusplus
24243 extern "C"
24244 #endif
24245 char gnutls_srp_verifier ();
24246 int main (void)
24247 {
24248 return gnutls_srp_verifier ();
24249  ;
24250  return 0;
24251 }
24252 _ACEOF
24253 if ac_fn_c_try_link "$LINENO"; then :
24254   ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24255 else
24256   ac_cv_lib_gnutls_gnutls_srp_verifier=no
24257 fi
24258 rm -f core conftest.err conftest.$ac_objext \
24259     conftest$ac_exeext conftest.$ac_ext
24260 LIBS=$ac_check_lib_save_LIBS
24261 fi
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24263 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24264 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24265
24266
24267 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24268
24269      HAVE_GNUTLS_SRP=1
24270
24271
24272 fi
24273
24274 fi
24275
24276
24277 OPT_POLARSSL=no
24278
24279 _cppflags=$CPPFLAGS
24280 _ldflags=$LDFLAGS
24281
24282 # Check whether --with-polarssl was given.
24283 if test "${with_polarssl+set}" = set; then :
24284   withval=$with_polarssl; OPT_POLARSSL=$withval
24285 fi
24286
24287
24288 if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24289   ssl_msg=
24290
24291   if test X"$OPT_POLARSSL" != Xno; then
24292
24293     if test "$OPT_POLARSSL" = "yes"; then
24294       OPT_POLARSSL=""
24295     fi
24296
24297     if test -z "$OPT_POLARSSL" ; then
24298
24299       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24300 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24301 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24302   $as_echo_n "(cached) " >&6
24303 else
24304   ac_check_lib_save_LIBS=$LIBS
24305 LIBS="-lpolarssl  $LIBS"
24306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24307 /* end confdefs.h.  */
24308
24309
24310 #ifdef __cplusplus
24311 extern "C"
24312 #endif
24313 char havege_init ();
24314 int main (void)
24315 {
24316 return havege_init ();
24317  ;
24318  return 0;
24319 }
24320 _ACEOF
24321 if ac_fn_c_try_link "$LINENO"; then :
24322   ac_cv_lib_polarssl_havege_init=yes
24323 else
24324   ac_cv_lib_polarssl_havege_init=no
24325 fi
24326 rm -f core conftest.err conftest.$ac_objext \
24327     conftest$ac_exeext conftest.$ac_ext
24328 LIBS=$ac_check_lib_save_LIBS
24329 fi
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24331 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24332 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24333
24334
24335 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24336
24337          USE_POLARSSL=1
24338
24339          POLARSSL_ENABLED=1
24340          USE_POLARSSL="yes"
24341          ssl_msg="PolarSSL"
24342          test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24343
24344 fi
24345
24346     fi
24347
24348     addld=""
24349     addlib=""
24350     addcflags=""
24351     polarssllib=""
24352
24353     if test "x$USE_POLARSSL" != "xyes"; then
24354             addld=-L$OPT_POLARSSL/lib$libsuff
24355       addcflags=-I$OPT_POLARSSL/include
24356       polarssllib=$OPT_POLARSSL/lib$libsuff
24357
24358       LDFLAGS="$LDFLAGS $addld"
24359       if test "$addcflags" != "-I/usr/include"; then
24360          CPPFLAGS="$CPPFLAGS $addcflags"
24361       fi
24362
24363       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24364 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24365 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24366   $as_echo_n "(cached) " >&6
24367 else
24368   ac_check_lib_save_LIBS=$LIBS
24369 LIBS="-lpolarssl  $LIBS"
24370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24371 /* end confdefs.h.  */
24372
24373
24374 #ifdef __cplusplus
24375 extern "C"
24376 #endif
24377 char ssl_init ();
24378 int main (void)
24379 {
24380 return ssl_init ();
24381  ;
24382  return 0;
24383 }
24384 _ACEOF
24385 if ac_fn_c_try_link "$LINENO"; then :
24386   ac_cv_lib_polarssl_ssl_init=yes
24387 else
24388   ac_cv_lib_polarssl_ssl_init=no
24389 fi
24390 rm -f core conftest.err conftest.$ac_objext \
24391     conftest$ac_exeext conftest.$ac_ext
24392 LIBS=$ac_check_lib_save_LIBS
24393 fi
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24395 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24396 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24397
24398
24399 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24400
24401        USE_POLARSSL=1
24402
24403        POLARSSL_ENABLED=1
24404        USE_POLARSSL="yes"
24405        ssl_msg="PolarSSL"
24406        test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24407
24408 else
24409
24410          CPPFLAGS=$_cppflags
24411          LDFLAGS=$_ldflags
24412
24413 fi
24414
24415     fi
24416
24417     if test "x$USE_POLARSSL" = "xyes"; then
24418       { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24419 $as_echo "$as_me: detected PolarSSL" >&6;}
24420       check_for_ca_bundle=1
24421       LIBS="-lpolarssl $LIBS"
24422
24423       if test -n "$polarssllib"; then
24424                                         if test "x$cross_compiling" != "xyes"; then
24425           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$polarssllib"
24426           export CURL_LIBRARY_PATH
24427           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to CURL_LIBRARY_PATH" >&5
24428 $as_echo "$as_me: Added $polarssllib to CURL_LIBRARY_PATH" >&6;}
24429         fi
24430       fi
24431     fi
24432
24433   fi
24434   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24435 fi
24436
24437
24438 OPT_MBEDTLS=no
24439
24440 _cppflags=$CPPFLAGS
24441 _ldflags=$LDFLAGS
24442
24443 # Check whether --with-mbedtls was given.
24444 if test "${with_mbedtls+set}" = set; then :
24445   withval=$with_mbedtls; OPT_MBEDTLS=$withval
24446 fi
24447
24448
24449 if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24450   ssl_msg=
24451
24452   if test X"$OPT_MBEDTLS" != Xno; then
24453
24454     if test "$OPT_MBEDTLS" = "yes"; then
24455       OPT_MBEDTLS=""
24456     fi
24457
24458     if test -z "$OPT_MBEDTLS" ; then
24459
24460       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24461 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24462 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24463   $as_echo_n "(cached) " >&6
24464 else
24465   ac_check_lib_save_LIBS=$LIBS
24466 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24468 /* end confdefs.h.  */
24469
24470
24471 #ifdef __cplusplus
24472 extern "C"
24473 #endif
24474 char mbedtls_havege_init ();
24475 int main (void)
24476 {
24477 return mbedtls_havege_init ();
24478  ;
24479  return 0;
24480 }
24481 _ACEOF
24482 if ac_fn_c_try_link "$LINENO"; then :
24483   ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24484 else
24485   ac_cv_lib_mbedtls_mbedtls_havege_init=no
24486 fi
24487 rm -f core conftest.err conftest.$ac_objext \
24488     conftest$ac_exeext conftest.$ac_ext
24489 LIBS=$ac_check_lib_save_LIBS
24490 fi
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24492 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24493 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24494
24495
24496 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24497
24498          USE_MBEDTLS=1
24499
24500          MBEDTLS_ENABLED=1
24501          USE_MBEDTLS="yes"
24502          ssl_msg="mbedTLS"
24503          test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24504
24505 fi
24506
24507     fi
24508
24509     addld=""
24510     addlib=""
24511     addcflags=""
24512     mbedtlslib=""
24513
24514     if test "x$USE_MBEDTLS" != "xyes"; then
24515             addld=-L$OPT_MBEDTLS/lib$libsuff
24516       addcflags=-I$OPT_MBEDTLS/include
24517       mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24518
24519       LDFLAGS="$LDFLAGS $addld"
24520       if test "$addcflags" != "-I/usr/include"; then
24521          CPPFLAGS="$CPPFLAGS $addcflags"
24522       fi
24523
24524       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24525 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24526 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24527   $as_echo_n "(cached) " >&6
24528 else
24529   ac_check_lib_save_LIBS=$LIBS
24530 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24532 /* end confdefs.h.  */
24533
24534
24535 #ifdef __cplusplus
24536 extern "C"
24537 #endif
24538 char mbedtls_ssl_init ();
24539 int main (void)
24540 {
24541 return mbedtls_ssl_init ();
24542  ;
24543  return 0;
24544 }
24545 _ACEOF
24546 if ac_fn_c_try_link "$LINENO"; then :
24547   ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24548 else
24549   ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24550 fi
24551 rm -f core conftest.err conftest.$ac_objext \
24552     conftest$ac_exeext conftest.$ac_ext
24553 LIBS=$ac_check_lib_save_LIBS
24554 fi
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24556 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24557 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24558
24559
24560 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24561
24562        USE_MBEDTLS=1
24563
24564        MBEDTLS_ENABLED=1
24565        USE_MBEDTLS="yes"
24566        ssl_msg="mbedTLS"
24567        test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24568
24569 else
24570
24571          CPPFLAGS=$_cppflags
24572          LDFLAGS=$_ldflags
24573
24574 fi
24575
24576     fi
24577
24578     if test "x$USE_MBEDTLS" = "xyes"; then
24579       { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24580 $as_echo "$as_me: detected mbedTLS" >&6;}
24581       check_for_ca_bundle=1
24582
24583       LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24584
24585       if test -n "$mbedtlslib"; then
24586                                         if test "x$cross_compiling" != "xyes"; then
24587           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
24588           export CURL_LIBRARY_PATH
24589           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
24590 $as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
24591         fi
24592       fi
24593     fi
24594
24595   fi
24596   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24597 fi
24598
24599
24600 OPT_CYASSL=no
24601
24602 _cppflags=$CPPFLAGS
24603 _ldflags=$LDFLAGS
24604
24605 # Check whether --with-cyassl was given.
24606 if test "${with_cyassl+set}" = set; then :
24607   withval=$with_cyassl; OPT_CYASSL=$withval
24608 fi
24609
24610
24611
24612 # Check whether --with-wolfssl was given.
24613 if test "${with_wolfssl+set}" = set; then :
24614   withval=$with_wolfssl; OPT_CYASSL=$withval
24615 fi
24616
24617
24618 if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24619   ssl_msg=
24620
24621   if test X"$OPT_CYASSL" != Xno; then
24622
24623     if test "$OPT_CYASSL" = "yes"; then
24624       OPT_CYASSL=""
24625     fi
24626
24627
24628     cyassllibname=cyassl
24629
24630     if test -z "$OPT_CYASSL" ; then
24631
24632       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24633 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24634 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24635   $as_echo_n "(cached) " >&6
24636 else
24637   ac_check_lib_save_LIBS=$LIBS
24638 LIBS="-lcyassl  $LIBS"
24639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24640 /* end confdefs.h.  */
24641
24642
24643 #ifdef __cplusplus
24644 extern "C"
24645 #endif
24646 char CyaSSL_Init ();
24647 int main (void)
24648 {
24649 return CyaSSL_Init ();
24650  ;
24651  return 0;
24652 }
24653 _ACEOF
24654 if ac_fn_c_try_link "$LINENO"; then :
24655   ac_cv_lib_cyassl_CyaSSL_Init=yes
24656 else
24657   ac_cv_lib_cyassl_CyaSSL_Init=no
24658 fi
24659 rm -f core conftest.err conftest.$ac_objext \
24660     conftest$ac_exeext conftest.$ac_ext
24661 LIBS=$ac_check_lib_save_LIBS
24662 fi
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24664 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24665 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24666
24667
24668 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24669
24670          USE_CYASSL=1
24671
24672          CYASSL_ENABLED=1
24673          USE_CYASSL="yes"
24674          ssl_msg="CyaSSL"
24675          test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24676
24677 fi
24678
24679     fi
24680
24681     addld=""
24682     addlib=""
24683     addcflags=""
24684     cyassllib=""
24685
24686     if test "x$USE_CYASSL" != "xyes"; then
24687             addld=-L$OPT_CYASSL/lib$libsuff
24688       addcflags=-I$OPT_CYASSL/include
24689       cyassllib=$OPT_CYASSL/lib$libsuff
24690
24691       LDFLAGS="$LDFLAGS $addld"
24692       if test "$addcflags" != "-I/usr/include"; then
24693          CPPFLAGS="$CPPFLAGS $addcflags"
24694       fi
24695
24696       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24697 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24698 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24699   $as_echo_n "(cached) " >&6
24700 else
24701   ac_check_lib_save_LIBS=$LIBS
24702 LIBS="-lcyassl  $LIBS"
24703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24704 /* end confdefs.h.  */
24705
24706
24707 #ifdef __cplusplus
24708 extern "C"
24709 #endif
24710 char CyaSSL_Init ();
24711 int main (void)
24712 {
24713 return CyaSSL_Init ();
24714  ;
24715  return 0;
24716 }
24717 _ACEOF
24718 if ac_fn_c_try_link "$LINENO"; then :
24719   ac_cv_lib_cyassl_CyaSSL_Init=yes
24720 else
24721   ac_cv_lib_cyassl_CyaSSL_Init=no
24722 fi
24723 rm -f core conftest.err conftest.$ac_objext \
24724     conftest$ac_exeext conftest.$ac_ext
24725 LIBS=$ac_check_lib_save_LIBS
24726 fi
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24728 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24729 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24730
24731
24732 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24733
24734        USE_CYASSL=1
24735
24736        CYASSL_ENABLED=1
24737        USE_CYASSL="yes"
24738        ssl_msg="CyaSSL"
24739        test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24740
24741 else
24742
24743          CPPFLAGS=$_cppflags
24744          LDFLAGS=$_ldflags
24745          cyassllib=""
24746
24747 fi
24748
24749     fi
24750
24751     addld=""
24752     addlib=""
24753     addcflags=""
24754
24755     if test "x$USE_CYASSL" != "xyes"; then
24756             addld=-L$OPT_CYASSL/lib$libsuff
24757       addcflags=-I$OPT_CYASSL/include
24758       cyassllib=$OPT_CYASSL/lib$libsuff
24759
24760       LDFLAGS="$LDFLAGS $addld"
24761       if test "$addcflags" != "-I/usr/include"; then
24762          CPPFLAGS="$CPPFLAGS $addcflags"
24763       fi
24764
24765       cyassllibname=wolfssl
24766       my_ac_save_LIBS="$LIBS"
24767       LIBS="-l$cyassllibname -lm $LIBS"
24768
24769       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24770 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24771       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24772 /* end confdefs.h.  */
24773
24774
24775 /* These aren't needed for detection and confuse WolfSSL.
24776    They are set up properly later if it is detected.  */
24777 #undef SIZEOF_LONG
24778 #undef SIZEOF_LONG_LONG
24779 #include <cyassl/ssl.h>
24780
24781 int main (void)
24782 {
24783
24784           return CyaSSL_Init();
24785
24786  ;
24787  return 0;
24788 }
24789
24790 _ACEOF
24791 if ac_fn_c_try_link "$LINENO"; then :
24792
24793          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24794 $as_echo "yes" >&6; }
24795
24796 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24797
24798          USE_CYASSL=1
24799
24800          CYASSL_ENABLED=1
24801          USE_CYASSL="yes"
24802          ssl_msg="WolfSSL"
24803          test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24804
24805 else
24806
24807          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24808 $as_echo "no" >&6; }
24809          CPPFLAGS=$_cppflags
24810          LDFLAGS=$_ldflags
24811          cyassllib=""
24812
24813 fi
24814 rm -f core conftest.err conftest.$ac_objext \
24815     conftest$ac_exeext conftest.$ac_ext
24816       LIBS="$my_ac_save_LIBS"
24817     fi
24818
24819     if test "x$USE_CYASSL" = "xyes"; then
24820       { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24821 $as_echo "$as_me: detected $cyassllibname" >&6;}
24822       check_for_ca_bundle=1
24823
24824             { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24825 $as_echo_n "checking size of long long... " >&6; }
24826 if ${ac_cv_sizeof_long_long+:} false; then :
24827   $as_echo_n "(cached) " >&6
24828 else
24829   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
24830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24831 /* end confdefs.h.  */
24832
24833 #include <sys/types.h>
24834
24835
24836 int main (void)
24837 {
24838 switch (0) case 0: case (sizeof (long long) == $ac_size):;
24839  ;
24840  return 0;
24841 }
24842 _ACEOF
24843 if ac_fn_c_try_compile "$LINENO"; then :
24844   ac_cv_sizeof_long_long=$ac_size
24845 fi
24846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24847   if test x$ac_cv_sizeof_long_long != x ; then break; fi
24848 done
24849
24850 fi
24851
24852 if test x$ac_cv_sizeof_long_long = x ; then
24853   as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
24854 fi
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24856 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24857
24858 cat >>confdefs.h <<_ACEOF
24859 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24860 _ACEOF
24861
24862
24863
24864             for ac_header in cyassl/options.h
24865 do :
24866   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24867 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24868   cat >>confdefs.h <<_ACEOF
24869 #define HAVE_CYASSL_OPTIONS_H 1
24870 _ACEOF
24871
24872 fi
24873
24874 done
24875
24876
24877             for ac_header in cyassl/error-ssl.h
24878 do :
24879   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24880 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24881   cat >>confdefs.h <<_ACEOF
24882 #define HAVE_CYASSL_ERROR_SSL_H 1
24883 _ACEOF
24884
24885 fi
24886
24887 done
24888
24889
24890       LIBS="-l$cyassllibname -lm $LIBS"
24891
24892       if test "x$cyassllibname" = "xwolfssl"; then
24893                         for ac_func in wolfSSLv3_client_method \
24894                        wolfSSL_CTX_UseSupportedCurve \
24895                        wolfSSL_get_peer_certificate \
24896                        wolfSSL_UseALPN
24897 do :
24898   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24899 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24900 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24901   cat >>confdefs.h <<_ACEOF
24902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24903 _ACEOF
24904
24905 fi
24906 done
24907
24908       else
24909                 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24910                        CyaSSL_get_peer_certificate
24911 do :
24912   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24913 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24914 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24915   cat >>confdefs.h <<_ACEOF
24916 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24917 _ACEOF
24918
24919 fi
24920 done
24921
24922       fi
24923
24924       if test -n "$cyassllib"; then
24925                                         if test "x$cross_compiling" != "xyes"; then
24926           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib"
24927           export CURL_LIBRARY_PATH
24928           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5
24929 $as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;}
24930         fi
24931       fi
24932
24933     fi
24934
24935   fi
24936   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24937 fi
24938
24939
24940 OPT_MESALINK=no
24941
24942 _cppflags=$CPPFLAGS
24943 _ldflags=$LDFLAGS
24944
24945 # Check whether --with-mesalink was given.
24946 if test "${with_mesalink+set}" = set; then :
24947   withval=$with_mesalink; OPT_MESALINK=$withval
24948 fi
24949
24950
24951 if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then
24952   ssl_msg=
24953
24954   if test X"$OPT_MESALINK" != Xno; then
24955
24956     if test "$OPT_MESALINK" = "yes"; then
24957       OPT_MESALINK=""
24958     fi
24959
24960     if test -z "$OPT_MESALINK" ; then
24961
24962       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24963 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24964 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24965   $as_echo_n "(cached) " >&6
24966 else
24967   ac_check_lib_save_LIBS=$LIBS
24968 LIBS="-lmesalink  $LIBS"
24969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24970 /* end confdefs.h.  */
24971
24972
24973 #ifdef __cplusplus
24974 extern "C"
24975 #endif
24976 char mesalink_library_init ();
24977 int main (void)
24978 {
24979 return mesalink_library_init ();
24980  ;
24981  return 0;
24982 }
24983 _ACEOF
24984 if ac_fn_c_try_link "$LINENO"; then :
24985   ac_cv_lib_mesalink_mesalink_library_init=yes
24986 else
24987   ac_cv_lib_mesalink_mesalink_library_init=no
24988 fi
24989 rm -f core conftest.err conftest.$ac_objext \
24990     conftest$ac_exeext conftest.$ac_ext
24991 LIBS=$ac_check_lib_save_LIBS
24992 fi
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24994 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24995 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24996
24997
24998 $as_echo "#define USE_MESALINK 1" >>confdefs.h
24999
25000          USE_MESALINK=1
25001
25002          MESALINK_ENABLED=1
25003          USE_MESALINK="yes"
25004          ssl_msg="MesaLink"
25005          test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25006
25007 fi
25008
25009     fi
25010
25011     addld=""
25012     addlib=""
25013     addcflags=""
25014     mesalinklib=""
25015
25016     if test "x$USE_MESALINK" != "xyes"; then
25017             addld=-L$OPT_MESALINK/lib$libsuff
25018       addcflags=-I$OPT_MESALINK/include
25019       mesalinklib=$OPT_MESALINK/lib$libsuff
25020
25021       LDFLAGS="$LDFLAGS $addld"
25022       if test "$addcflags" != "-I/usr/include"; then
25023          CPPFLAGS="$CPPFLAGS $addcflags"
25024       fi
25025
25026       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
25027 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
25028 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
25029   $as_echo_n "(cached) " >&6
25030 else
25031   ac_check_lib_save_LIBS=$LIBS
25032 LIBS="-lmesalink  $LIBS"
25033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25034 /* end confdefs.h.  */
25035
25036
25037 #ifdef __cplusplus
25038 extern "C"
25039 #endif
25040 char mesalink_library_init ();
25041 int main (void)
25042 {
25043 return mesalink_library_init ();
25044  ;
25045  return 0;
25046 }
25047 _ACEOF
25048 if ac_fn_c_try_link "$LINENO"; then :
25049   ac_cv_lib_mesalink_mesalink_library_init=yes
25050 else
25051   ac_cv_lib_mesalink_mesalink_library_init=no
25052 fi
25053 rm -f core conftest.err conftest.$ac_objext \
25054     conftest$ac_exeext conftest.$ac_ext
25055 LIBS=$ac_check_lib_save_LIBS
25056 fi
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
25058 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
25059 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
25060
25061
25062 $as_echo "#define USE_MESALINK 1" >>confdefs.h
25063
25064        USE_MESALINK=1
25065
25066        MESALINK_ENABLED=1
25067        USE_MESALINK="yes"
25068        ssl_msg="MesaLink"
25069        test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25070
25071 else
25072
25073          CPPFLAGS=$_cppflags
25074          LDFLAGS=$_ldflags
25075
25076 fi
25077
25078     fi
25079
25080     if test "x$USE_MESALINK" = "xyes"; then
25081       { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
25082 $as_echo "$as_me: detected MesaLink" >&6;}
25083
25084       LIBS="-lmesalink $LIBS"
25085
25086       if test -n "$mesalinklib"; then
25087                                         if test "x$cross_compiling" != "xyes"; then
25088           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
25089           export LD_LIBRARY_PATH
25090           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
25091 $as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
25092         fi
25093       fi
25094     fi
25095
25096   fi
25097   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25098 fi
25099
25100
25101 OPT_NSS=no
25102
25103
25104 # Check whether --with-nss was given.
25105 if test "${with_nss+set}" = set; then :
25106   withval=$with_nss; OPT_NSS=$withval
25107 fi
25108
25109
25110 if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
25111   ssl_msg=
25112
25113   if test X"$OPT_NSS" != Xno; then
25114
25115     addld=""
25116     addlib=""
25117     addcflags=""
25118     nssprefix=""
25119     version=""
25120
25121     if test "x$OPT_NSS" = "xyes"; then
25122
25123
25124     if test -n "$PKG_CONFIG"; then
25125       PKGCONFIG="$PKG_CONFIG"
25126     else
25127       if test -n "$ac_tool_prefix"; then
25128   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25129 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25131 $as_echo_n "checking for $ac_word... " >&6; }
25132 if ${ac_cv_path_PKGCONFIG+:} false; then :
25133   $as_echo_n "(cached) " >&6
25134 else
25135   case $PKGCONFIG in
25136   [\\/]* | ?:[\\/]*)
25137   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25138   ;;
25139   *)
25140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25141 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25142 for as_dir in $as_dummy
25143 do
25144   IFS=$as_save_IFS
25145   test -z "$as_dir" && as_dir=.
25146     for ac_exec_ext in '' $ac_executable_extensions; do
25147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25148     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25150     break 2
25151   fi
25152 done
25153   done
25154 IFS=$as_save_IFS
25155
25156   ;;
25157 esac
25158 fi
25159 PKGCONFIG=$ac_cv_path_PKGCONFIG
25160 if test -n "$PKGCONFIG"; then
25161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25162 $as_echo "$PKGCONFIG" >&6; }
25163 else
25164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25165 $as_echo "no" >&6; }
25166 fi
25167
25168
25169 fi
25170 if test -z "$ac_cv_path_PKGCONFIG"; then
25171   ac_pt_PKGCONFIG=$PKGCONFIG
25172   # Extract the first word of "pkg-config", so it can be a program name with args.
25173 set dummy pkg-config; ac_word=$2
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25175 $as_echo_n "checking for $ac_word... " >&6; }
25176 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25177   $as_echo_n "(cached) " >&6
25178 else
25179   case $ac_pt_PKGCONFIG in
25180   [\\/]* | ?:[\\/]*)
25181   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25182   ;;
25183   *)
25184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25185 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25186 for as_dir in $as_dummy
25187 do
25188   IFS=$as_save_IFS
25189   test -z "$as_dir" && as_dir=.
25190     for ac_exec_ext in '' $ac_executable_extensions; do
25191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25192     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25194     break 2
25195   fi
25196 done
25197   done
25198 IFS=$as_save_IFS
25199
25200   ;;
25201 esac
25202 fi
25203 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25204 if test -n "$ac_pt_PKGCONFIG"; then
25205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25206 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25207 else
25208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25209 $as_echo "no" >&6; }
25210 fi
25211
25212   if test "x$ac_pt_PKGCONFIG" = x; then
25213     PKGCONFIG="no"
25214   else
25215     case $cross_compiling:$ac_tool_warned in
25216 yes:)
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25219 ac_tool_warned=yes ;;
25220 esac
25221     PKGCONFIG=$ac_pt_PKGCONFIG
25222   fi
25223 else
25224   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25225 fi
25226
25227     fi
25228
25229     if test "x$PKGCONFIG" != "xno"; then
25230       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25231 $as_echo_n "checking for nss options with pkg-config... " >&6; }
25232             itexists=`
25233     if test -n ""; then
25234       PKG_CONFIG_LIBDIR=""
25235       export PKG_CONFIG_LIBDIR
25236     fi
25237          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25238
25239       if test -z "$itexists"; then
25240                         PKGCONFIG="no"
25241         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25242 $as_echo "no" >&6; }
25243       else
25244         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25245 $as_echo "found" >&6; }
25246       fi
25247     fi
25248
25249
25250       if test "$PKGCONFIG" != "no" ; then
25251         addlib=`$PKGCONFIG --libs nss`
25252         addcflags=`$PKGCONFIG --cflags nss`
25253         version=`$PKGCONFIG --modversion nss`
25254         nssprefix=`$PKGCONFIG --variable=prefix nss`
25255       else
25256
25257         check=`nss-config --version 2>/dev/null`
25258         if test -n "$check"; then
25259           addlib=`nss-config --libs`
25260           addcflags=`nss-config --cflags`
25261           version=`nss-config --version`
25262           nssprefix=`nss-config --prefix`
25263         else
25264           addlib="-lnss3"
25265           addcflags=""
25266           version="unknown"
25267         fi
25268       fi
25269     else
25270       NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25271       if test -f "$NSS_PCDIR/nss.pc"; then
25272
25273     if test -n "$PKG_CONFIG"; then
25274       PKGCONFIG="$PKG_CONFIG"
25275     else
25276       if test -n "$ac_tool_prefix"; then
25277   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25278 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25280 $as_echo_n "checking for $ac_word... " >&6; }
25281 if ${ac_cv_path_PKGCONFIG+:} false; then :
25282   $as_echo_n "(cached) " >&6
25283 else
25284   case $PKGCONFIG in
25285   [\\/]* | ?:[\\/]*)
25286   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25287   ;;
25288   *)
25289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25290 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25291 for as_dir in $as_dummy
25292 do
25293   IFS=$as_save_IFS
25294   test -z "$as_dir" && as_dir=.
25295     for ac_exec_ext in '' $ac_executable_extensions; do
25296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25297     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25299     break 2
25300   fi
25301 done
25302   done
25303 IFS=$as_save_IFS
25304
25305   ;;
25306 esac
25307 fi
25308 PKGCONFIG=$ac_cv_path_PKGCONFIG
25309 if test -n "$PKGCONFIG"; then
25310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25311 $as_echo "$PKGCONFIG" >&6; }
25312 else
25313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25314 $as_echo "no" >&6; }
25315 fi
25316
25317
25318 fi
25319 if test -z "$ac_cv_path_PKGCONFIG"; then
25320   ac_pt_PKGCONFIG=$PKGCONFIG
25321   # Extract the first word of "pkg-config", so it can be a program name with args.
25322 set dummy pkg-config; ac_word=$2
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25324 $as_echo_n "checking for $ac_word... " >&6; }
25325 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25326   $as_echo_n "(cached) " >&6
25327 else
25328   case $ac_pt_PKGCONFIG in
25329   [\\/]* | ?:[\\/]*)
25330   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25331   ;;
25332   *)
25333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25334 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25335 for as_dir in $as_dummy
25336 do
25337   IFS=$as_save_IFS
25338   test -z "$as_dir" && as_dir=.
25339     for ac_exec_ext in '' $ac_executable_extensions; do
25340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25341     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25343     break 2
25344   fi
25345 done
25346   done
25347 IFS=$as_save_IFS
25348
25349   ;;
25350 esac
25351 fi
25352 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25353 if test -n "$ac_pt_PKGCONFIG"; then
25354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25355 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25356 else
25357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25358 $as_echo "no" >&6; }
25359 fi
25360
25361   if test "x$ac_pt_PKGCONFIG" = x; then
25362     PKGCONFIG="no"
25363   else
25364     case $cross_compiling:$ac_tool_warned in
25365 yes:)
25366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25368 ac_tool_warned=yes ;;
25369 esac
25370     PKGCONFIG=$ac_pt_PKGCONFIG
25371   fi
25372 else
25373   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25374 fi
25375
25376     fi
25377
25378     if test "x$PKGCONFIG" != "xno"; then
25379       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25380 $as_echo_n "checking for nss options with pkg-config... " >&6; }
25381             itexists=`
25382     if test -n "$NSS_PCDIR"; then
25383       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25384       export PKG_CONFIG_LIBDIR
25385     fi
25386          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25387
25388       if test -z "$itexists"; then
25389                         PKGCONFIG="no"
25390         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25391 $as_echo "no" >&6; }
25392       else
25393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25394 $as_echo "found" >&6; }
25395       fi
25396     fi
25397
25398         if test "$PKGCONFIG" != "no" ; then
25399           addld=`
25400     if test -n "$NSS_PCDIR"; then
25401       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25402       export PKG_CONFIG_LIBDIR
25403     fi
25404  $PKGCONFIG --libs-only-L nss`
25405           addlib=`
25406     if test -n "$NSS_PCDIR"; then
25407       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25408       export PKG_CONFIG_LIBDIR
25409     fi
25410  $PKGCONFIG --libs-only-l nss`
25411           addcflags=`
25412     if test -n "$NSS_PCDIR"; then
25413       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25414       export PKG_CONFIG_LIBDIR
25415     fi
25416  $PKGCONFIG --cflags nss`
25417           version=`
25418     if test -n "$NSS_PCDIR"; then
25419       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25420       export PKG_CONFIG_LIBDIR
25421     fi
25422  $PKGCONFIG --modversion nss`
25423           nssprefix=`
25424     if test -n "$NSS_PCDIR"; then
25425       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25426       export PKG_CONFIG_LIBDIR
25427     fi
25428  $PKGCONFIG --variable=prefix nss`
25429         fi
25430       fi
25431     fi
25432
25433     if test -z "$addlib"; then
25434       # Without pkg-config, we'll kludge in some defaults
25435       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25436 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25437       addld="-L$OPT_NSS/lib"
25438       addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25439       addcflags="-I$OPT_NSS/include"
25440       version="unknown"
25441       nssprefix=$OPT_NSS
25442     fi
25443
25444     CLEANLDFLAGS="$LDFLAGS"
25445     CLEANLIBS="$LIBS"
25446     CLEANCPPFLAGS="$CPPFLAGS"
25447
25448     LDFLAGS="$addld $LDFLAGS"
25449     LIBS="$addlib $LIBS"
25450     if test "$addcflags" != "-I/usr/include"; then
25451        CPPFLAGS="$CPPFLAGS $addcflags"
25452     fi
25453
25454         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25455 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25456 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25457   $as_echo_n "(cached) " >&6
25458 else
25459   ac_check_lib_save_LIBS=$LIBS
25460 LIBS="-lnss3  $LIBS"
25461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25462 /* end confdefs.h.  */
25463
25464
25465 #ifdef __cplusplus
25466 extern "C"
25467 #endif
25468 char SSL_VersionRangeSet ();
25469 int main (void)
25470 {
25471 return SSL_VersionRangeSet ();
25472  ;
25473  return 0;
25474 }
25475 _ACEOF
25476 if ac_fn_c_try_link "$LINENO"; then :
25477   ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25478 else
25479   ac_cv_lib_nss3_SSL_VersionRangeSet=no
25480 fi
25481 rm -f core conftest.err conftest.$ac_objext \
25482     conftest$ac_exeext conftest.$ac_ext
25483 LIBS=$ac_check_lib_save_LIBS
25484 fi
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25486 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25487 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25488
25489
25490 $as_echo "#define USE_NSS 1" >>confdefs.h
25491
25492      USE_NSS=1
25493
25494      USE_NSS="yes"
25495      NSS_ENABLED=1
25496      ssl_msg="NSS"
25497      test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25498
25499 else
25500
25501        LDFLAGS="$CLEANLDFLAGS"
25502        LIBS="$CLEANLIBS"
25503        CPPFLAGS="$CLEANCPPFLAGS"
25504
25505 fi
25506
25507
25508     if test "x$USE_NSS" = "xyes"; then
25509       { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25510 $as_echo "$as_me: detected NSS version $version" >&6;}
25511
25512                         ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25513 if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25514
25515
25516 $as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25517
25518
25519 fi
25520
25521
25522             NSS_LIBS=$addlib
25523
25524
25525                               if test "x$cross_compiling" != "xyes"; then
25526         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
25527         export CURL_LIBRARY_PATH
25528         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
25529 $as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
25530       fi
25531
25532     fi
25533   fi
25534   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25535 fi
25536
25537 OPT_AXTLS=off
25538
25539
25540 # Check whether --with-axtls was given.
25541 if test "${with_axtls+set}" = set; then :
25542   withval=$with_axtls; OPT_AXTLS=$withval
25543 fi
25544
25545
25546 if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
25547   ssl_msg=
25548   if test X"$OPT_AXTLS" != Xno; then
25549         CLEANLDFLAGS="$LDFLAGS"
25550     CLEANCPPFLAGS="$CPPFLAGS"
25551     CLEANLIBS="$LIBS"
25552
25553     case "$OPT_AXTLS" in
25554     yes)
25555             PREFIX_AXTLS=/usr/local
25556       LIB_AXTLS="$PREFIX_AXTLS/lib"
25557       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25558       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25559       ;;
25560     off)
25561             PREFIX_AXTLS=
25562       ;;
25563     *)
25564             PREFIX_AXTLS=$OPT_AXTLS
25565       LIB_AXTLS="$PREFIX_AXTLS/lib"
25566       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25567       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25568       ;;
25569     esac
25570
25571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25572 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25573 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25574   $as_echo_n "(cached) " >&6
25575 else
25576   ac_check_lib_save_LIBS=$LIBS
25577 LIBS="-laxtls  $LIBS"
25578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25579 /* end confdefs.h.  */
25580
25581
25582 #ifdef __cplusplus
25583 extern "C"
25584 #endif
25585 char ssl_version ();
25586 int main (void)
25587 {
25588 return ssl_version ();
25589  ;
25590  return 0;
25591 }
25592 _ACEOF
25593 if ac_fn_c_try_link "$LINENO"; then :
25594   ac_cv_lib_axtls_ssl_version=yes
25595 else
25596   ac_cv_lib_axtls_ssl_version=no
25597 fi
25598 rm -f core conftest.err conftest.$ac_objext \
25599     conftest$ac_exeext conftest.$ac_ext
25600 LIBS=$ac_check_lib_save_LIBS
25601 fi
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25603 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25604 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25605
25606       LIBS="-laxtls $LIBS"
25607
25608 $as_echo "#define USE_AXTLS 1" >>confdefs.h
25609
25610       USE_AXTLS=1
25611
25612       AXTLS_ENABLED=1
25613       check_for_ca_bundle=1
25614       USE_AXTLS="yes"
25615       ssl_msg="axTLS"
25616       test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25617
25618       if test "x$cross_compiling" != "xyes"; then
25619         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_AXTLS"
25620         export CURL_LIBRARY_PATH
25621         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&5
25622 $as_echo "$as_me: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&6;}
25623       fi
25624
25625 else
25626
25627       LDFLAGS="$CLEANLDFLAGS"
25628       CPPFLAGS="$CLEANCPPFLAGS"
25629       LIBS="$CLEANLIBS"
25630
25631 fi
25632
25633   fi
25634   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25635 fi
25636
25637 case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED$MESALINK_ENABLED" in
25638 x)
25639   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25640 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25641   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, --with-darwinssl, or --with-mesalink to address this." >&5
25642 $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, --with-darwinssl, or --with-mesalink to address this." >&2;}
25643   ;;
25644 x1)
25645   # one SSL backend is enabled
25646
25647   SSL_ENABLED="1"
25648   { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25649 $as_echo "$as_me: built with one SSL backend" >&6;}
25650   ;;
25651 *)
25652   # more than one SSL backend is enabled
25653
25654   SSL_ENABLED="1"
25655
25656   CURL_WITH_MULTI_SSL="1"
25657
25658 $as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25659
25660   { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25661 $as_echo "$as_me: built with multiple SSL backends" >&6;}
25662   ;;
25663 esac
25664
25665 if test -n "$ssl_backends"; then
25666   curl_ssl_msg="enabled ($ssl_backends)"
25667 fi
25668
25669 if test no = "$VALID_DEFAULT_SSL_BACKEND"
25670 then
25671   if test -n "$SSL_ENABLED"
25672   then
25673     as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25674   else
25675     as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25676   fi
25677 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25678 then
25679
25680 cat >>confdefs.h <<_ACEOF
25681 #define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25682 _ACEOF
25683
25684 fi
25685
25686
25687 if test "$check_for_ca_bundle" -gt 0; then
25688
25689
25690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25691 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25692
25693
25694 # Check whether --with-ca-bundle was given.
25695 if test "${with_ca_bundle+set}" = set; then :
25696   withval=$with_ca_bundle;
25697     want_ca="$withval"
25698     if test "x$want_ca" = "xyes"; then
25699       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25700     fi
25701
25702 else
25703    want_ca="unset"
25704 fi
25705
25706
25707 # Check whether --with-ca-path was given.
25708 if test "${with_ca_path+set}" = set; then :
25709   withval=$with_ca_path;
25710     want_capath="$withval"
25711     if test "x$want_capath" = "xyes"; then
25712       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25713     fi
25714
25715 else
25716    want_capath="unset"
25717 fi
25718
25719
25720   ca_warning="   (warning: certs not found)"
25721   capath_warning="   (warning: certs not found)"
25722   check_capath=""
25723
25724   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25725           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25726         ca="$want_ca"
25727     capath="$want_capath"
25728   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25729         ca="$want_ca"
25730     capath="no"
25731   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25732         if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25733       as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25734     fi
25735     capath="$want_capath"
25736     ca="no"
25737   else
25738             ca="no"
25739     capath="no"
25740     if test "x$cross_compiling" != "xyes"; then
25741                   if test "x$want_ca" = "xunset"; then
25742                                 if test "x$prefix" != xNONE; then
25743           cac="${prefix}/share/curl/curl-ca-bundle.crt"
25744         else
25745           cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25746         fi
25747
25748         for a in /etc/ssl/certs/ca-certificates.crt \
25749                  /etc/pki/tls/certs/ca-bundle.crt \
25750                  /usr/share/ssl/certs/ca-bundle.crt \
25751                  /usr/local/share/certs/ca-root-nss.crt \
25752                  /etc/ssl/cert.pem \
25753                  "$cac"; do
25754           if test -f "$a"; then
25755             ca="$a"
25756             break
25757           fi
25758         done
25759       fi
25760       if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25761               "x$OPENSSL_ENABLED" = "x1"; then
25762         check_capath="/etc/ssl/certs/"
25763       fi
25764     else
25765             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25766 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25767     fi
25768   fi
25769
25770   if test "x$ca" = "xno" || test -f "$ca"; then
25771     ca_warning=""
25772   fi
25773
25774   if test "x$capath" != "xno"; then
25775     check_capath="$capath"
25776   fi
25777
25778   if test ! -z "$check_capath"; then
25779     for a in "$check_capath"; do
25780       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
25781         if test "x$capath" = "xno"; then
25782           capath="$a"
25783         fi
25784         capath_warning=""
25785         break
25786       fi
25787     done
25788   fi
25789
25790   if test "x$capath" = "xno"; then
25791     capath_warning=""
25792   fi
25793
25794   if test "x$ca" != "xno"; then
25795     CURL_CA_BUNDLE='"'$ca'"'
25796
25797 cat >>confdefs.h <<_ACEOF
25798 #define CURL_CA_BUNDLE "$ca"
25799 _ACEOF
25800
25801
25802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25803 $as_echo "$ca" >&6; }
25804   fi
25805   if test "x$capath" != "xno"; then
25806     CURL_CA_PATH="\"$capath\""
25807
25808 cat >>confdefs.h <<_ACEOF
25809 #define CURL_CA_PATH "$capath"
25810 _ACEOF
25811
25812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25813 $as_echo "$capath (capath)" >&6; }
25814   fi
25815   if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25817 $as_echo "no" >&6; }
25818   fi
25819
25820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25821 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25822
25823 # Check whether --with-ca-fallback was given.
25824 if test "${with_ca_fallback+set}" = set; then :
25825   withval=$with_ca_fallback;
25826     if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25827       as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25828     fi
25829
25830 else
25831    with_ca_fallback="no"
25832 fi
25833
25834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25835 $as_echo "$with_ca_fallback" >&6; }
25836   if test "x$with_ca_fallback" = "xyes"; then
25837     if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25838       as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25839     fi
25840
25841 cat >>confdefs.h <<_ACEOF
25842 #define CURL_CA_FALLBACK 1
25843 _ACEOF
25844
25845   fi
25846
25847 fi
25848
25849
25850
25851 # Check whether --with-libpsl was given.
25852 if test "${with_libpsl+set}" = set; then :
25853   withval=$with_libpsl; with_libpsl=$withval
25854 else
25855   with_libpsl=yes
25856 fi
25857
25858 if test $with_libpsl != "no"; then
25859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25860 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25861 if ${ac_cv_search_psl_builtin+:} false; then :
25862   $as_echo_n "(cached) " >&6
25863 else
25864   ac_func_search_save_LIBS=$LIBS
25865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25866 /* end confdefs.h.  */
25867
25868
25869 #ifdef __cplusplus
25870 extern "C"
25871 #endif
25872 char psl_builtin ();
25873 int main (void)
25874 {
25875 return psl_builtin ();
25876  ;
25877  return 0;
25878 }
25879 _ACEOF
25880 for ac_lib in '' psl; do
25881   if test -z "$ac_lib"; then
25882     ac_res="none required"
25883   else
25884     ac_res=-l$ac_lib
25885     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25886   fi
25887   if ac_fn_c_try_link "$LINENO"; then :
25888   ac_cv_search_psl_builtin=$ac_res
25889 fi
25890 rm -f core conftest.err conftest.$ac_objext \
25891     conftest$ac_exeext
25892   if ${ac_cv_search_psl_builtin+:} false; then :
25893   break
25894 fi
25895 done
25896 if ${ac_cv_search_psl_builtin+:} false; then :
25897
25898 else
25899   ac_cv_search_psl_builtin=no
25900 fi
25901 rm conftest.$ac_ext
25902 LIBS=$ac_func_search_save_LIBS
25903 fi
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25905 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25906 ac_res=$ac_cv_search_psl_builtin
25907 if test "$ac_res" != no; then :
25908   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25909   curl_psl_msg="yes";
25910
25911 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25912
25913
25914 else
25915   curl_psl_msg="no      (libpsl not found)";
25916      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25917 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25918
25919
25920 fi
25921
25922 fi
25923  if test "$curl_psl_msg" = "yes"; then
25924   USE_LIBPSL_TRUE=
25925   USE_LIBPSL_FALSE='#'
25926 else
25927   USE_LIBPSL_TRUE='#'
25928   USE_LIBPSL_FALSE=
25929 fi
25930
25931
25932
25933 OPT_LIBMETALINK=no
25934
25935
25936 # Check whether --with-libmetalink was given.
25937 if test "${with_libmetalink+set}" = set; then :
25938   withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25939 fi
25940
25941
25942 if test X"$OPT_LIBMETALINK" != Xno; then
25943
25944   addld=""
25945   addlib=""
25946   addcflags=""
25947   version=""
25948   libmetalinklib=""
25949
25950   PKGTEST="no"
25951   if test "x$OPT_LIBMETALINK" = "xyes"; then
25952         PKGTEST="yes"
25953
25954     if test -n "$PKG_CONFIG"; then
25955       PKGCONFIG="$PKG_CONFIG"
25956     else
25957       if test -n "$ac_tool_prefix"; then
25958   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25959 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25961 $as_echo_n "checking for $ac_word... " >&6; }
25962 if ${ac_cv_path_PKGCONFIG+:} false; then :
25963   $as_echo_n "(cached) " >&6
25964 else
25965   case $PKGCONFIG in
25966   [\\/]* | ?:[\\/]*)
25967   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25968   ;;
25969   *)
25970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25971 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25972 for as_dir in $as_dummy
25973 do
25974   IFS=$as_save_IFS
25975   test -z "$as_dir" && as_dir=.
25976     for ac_exec_ext in '' $ac_executable_extensions; do
25977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25978     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25980     break 2
25981   fi
25982 done
25983   done
25984 IFS=$as_save_IFS
25985
25986   ;;
25987 esac
25988 fi
25989 PKGCONFIG=$ac_cv_path_PKGCONFIG
25990 if test -n "$PKGCONFIG"; then
25991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25992 $as_echo "$PKGCONFIG" >&6; }
25993 else
25994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25995 $as_echo "no" >&6; }
25996 fi
25997
25998
25999 fi
26000 if test -z "$ac_cv_path_PKGCONFIG"; then
26001   ac_pt_PKGCONFIG=$PKGCONFIG
26002   # Extract the first word of "pkg-config", so it can be a program name with args.
26003 set dummy pkg-config; ac_word=$2
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26005 $as_echo_n "checking for $ac_word... " >&6; }
26006 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26007   $as_echo_n "(cached) " >&6
26008 else
26009   case $ac_pt_PKGCONFIG in
26010   [\\/]* | ?:[\\/]*)
26011   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26012   ;;
26013   *)
26014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26015 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26016 for as_dir in $as_dummy
26017 do
26018   IFS=$as_save_IFS
26019   test -z "$as_dir" && as_dir=.
26020     for ac_exec_ext in '' $ac_executable_extensions; do
26021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26022     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26024     break 2
26025   fi
26026 done
26027   done
26028 IFS=$as_save_IFS
26029
26030   ;;
26031 esac
26032 fi
26033 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26034 if test -n "$ac_pt_PKGCONFIG"; then
26035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26036 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26037 else
26038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26039 $as_echo "no" >&6; }
26040 fi
26041
26042   if test "x$ac_pt_PKGCONFIG" = x; then
26043     PKGCONFIG="no"
26044   else
26045     case $cross_compiling:$ac_tool_warned in
26046 yes:)
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26049 ac_tool_warned=yes ;;
26050 esac
26051     PKGCONFIG=$ac_pt_PKGCONFIG
26052   fi
26053 else
26054   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26055 fi
26056
26057     fi
26058
26059     if test "x$PKGCONFIG" != "xno"; then
26060       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26061 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26062             itexists=`
26063     if test -n ""; then
26064       PKG_CONFIG_LIBDIR=""
26065       export PKG_CONFIG_LIBDIR
26066     fi
26067          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26068
26069       if test -z "$itexists"; then
26070                         PKGCONFIG="no"
26071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26072 $as_echo "no" >&6; }
26073       else
26074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26075 $as_echo "found" >&6; }
26076       fi
26077     fi
26078
26079   else
26080         LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
26081     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
26082 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
26083     if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
26084       PKGTEST="yes"
26085     fi
26086     if test "$PKGTEST" = "yes"; then
26087
26088     if test -n "$PKG_CONFIG"; then
26089       PKGCONFIG="$PKG_CONFIG"
26090     else
26091       if test -n "$ac_tool_prefix"; then
26092   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26093 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26095 $as_echo_n "checking for $ac_word... " >&6; }
26096 if ${ac_cv_path_PKGCONFIG+:} false; then :
26097   $as_echo_n "(cached) " >&6
26098 else
26099   case $PKGCONFIG in
26100   [\\/]* | ?:[\\/]*)
26101   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26102   ;;
26103   *)
26104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26105 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26106 for as_dir in $as_dummy
26107 do
26108   IFS=$as_save_IFS
26109   test -z "$as_dir" && as_dir=.
26110     for ac_exec_ext in '' $ac_executable_extensions; do
26111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26112     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26114     break 2
26115   fi
26116 done
26117   done
26118 IFS=$as_save_IFS
26119
26120   ;;
26121 esac
26122 fi
26123 PKGCONFIG=$ac_cv_path_PKGCONFIG
26124 if test -n "$PKGCONFIG"; then
26125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26126 $as_echo "$PKGCONFIG" >&6; }
26127 else
26128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26129 $as_echo "no" >&6; }
26130 fi
26131
26132
26133 fi
26134 if test -z "$ac_cv_path_PKGCONFIG"; then
26135   ac_pt_PKGCONFIG=$PKGCONFIG
26136   # Extract the first word of "pkg-config", so it can be a program name with args.
26137 set dummy pkg-config; ac_word=$2
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26139 $as_echo_n "checking for $ac_word... " >&6; }
26140 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26141   $as_echo_n "(cached) " >&6
26142 else
26143   case $ac_pt_PKGCONFIG in
26144   [\\/]* | ?:[\\/]*)
26145   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26146   ;;
26147   *)
26148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26149 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26150 for as_dir in $as_dummy
26151 do
26152   IFS=$as_save_IFS
26153   test -z "$as_dir" && as_dir=.
26154     for ac_exec_ext in '' $ac_executable_extensions; do
26155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26156     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26158     break 2
26159   fi
26160 done
26161   done
26162 IFS=$as_save_IFS
26163
26164   ;;
26165 esac
26166 fi
26167 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26168 if test -n "$ac_pt_PKGCONFIG"; then
26169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26170 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26171 else
26172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26173 $as_echo "no" >&6; }
26174 fi
26175
26176   if test "x$ac_pt_PKGCONFIG" = x; then
26177     PKGCONFIG="no"
26178   else
26179     case $cross_compiling:$ac_tool_warned in
26180 yes:)
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26183 ac_tool_warned=yes ;;
26184 esac
26185     PKGCONFIG=$ac_pt_PKGCONFIG
26186   fi
26187 else
26188   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26189 fi
26190
26191     fi
26192
26193     if test "x$PKGCONFIG" != "xno"; then
26194       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26195 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26196             itexists=`
26197     if test -n "$LIBMETALINK_PCDIR"; then
26198       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26199       export PKG_CONFIG_LIBDIR
26200     fi
26201          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26202
26203       if test -z "$itexists"; then
26204                         PKGCONFIG="no"
26205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26206 $as_echo "no" >&6; }
26207       else
26208         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26209 $as_echo "found" >&6; }
26210       fi
26211     fi
26212
26213     fi
26214   fi
26215   if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26216     addlib=`
26217     if test -n "$LIBMETALINK_PCDIR"; then
26218       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26219       export PKG_CONFIG_LIBDIR
26220     fi
26221        $PKGCONFIG --libs-only-l libmetalink`
26222     addld=`
26223     if test -n "$LIBMETALINK_PCDIR"; then
26224       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26225       export PKG_CONFIG_LIBDIR
26226     fi
26227        $PKGCONFIG --libs-only-L libmetalink`
26228     addcflags=`
26229     if test -n "$LIBMETALINK_PCDIR"; then
26230       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26231       export PKG_CONFIG_LIBDIR
26232     fi
26233        $PKGCONFIG --cflags-only-I libmetalink`
26234     version=`
26235     if test -n "$LIBMETALINK_PCDIR"; then
26236       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26237       export PKG_CONFIG_LIBDIR
26238     fi
26239        $PKGCONFIG --modversion libmetalink`
26240     libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26241   fi
26242   if test -n "$addlib"; then
26243
26244     clean_CPPFLAGS="$CPPFLAGS"
26245     clean_LDFLAGS="$LDFLAGS"
26246     clean_LIBS="$LIBS"
26247     CPPFLAGS="$clean_CPPFLAGS $addcflags"
26248     LDFLAGS="$clean_LDFLAGS $addld"
26249     LIBS="$addlib $clean_LIBS"
26250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26251 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
26252     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26253 /* end confdefs.h.  */
26254
26255
26256 #       include <metalink/metalink.h>
26257
26258 int main (void)
26259 {
26260
26261         if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26262           return 1;
26263
26264  ;
26265  return 0;
26266 }
26267
26268 _ACEOF
26269 if ac_fn_c_try_link "$LINENO"; then :
26270
26271       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26272 $as_echo "yes ($version)" >&6; }
26273       want_metalink="yes"
26274
26275 else
26276
26277       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26278 $as_echo "no ($version)" >&6; }
26279       { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26280 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
26281       want_metalink="no"
26282
26283 fi
26284 rm -f core conftest.err conftest.$ac_objext \
26285     conftest$ac_exeext conftest.$ac_ext
26286     CPPFLAGS="$clean_CPPFLAGS"
26287     LDFLAGS="$clean_LDFLAGS"
26288     LIBS="$clean_LIBS"
26289     if test "$want_metalink" = "yes"; then
26290
26291 $as_echo "#define USE_METALINK 1" >>confdefs.h
26292
26293       LIBMETALINK_LIBS=$addlib
26294       LIBMETALINK_LDFLAGS=$addld
26295       LIBMETALINK_CPPFLAGS=$addcflags
26296
26297
26298
26299       curl_mtlnk_msg="enabled"
26300     fi
26301
26302   fi
26303 fi
26304
26305
26306 OPT_LIBSSH2=off
26307
26308 # Check whether --with-libssh2 was given.
26309 if test "${with_libssh2+set}" = set; then :
26310   withval=$with_libssh2; OPT_LIBSSH2=$withval
26311 else
26312   OPT_LIBSSH2=no
26313 fi
26314
26315
26316
26317 OPT_LIBSSH=off
26318
26319 # Check whether --with-libssh was given.
26320 if test "${with_libssh+set}" = set; then :
26321   withval=$with_libssh; OPT_LIBSSH=$withval
26322 else
26323   OPT_LIBSSH=no
26324 fi
26325
26326
26327 if test X"$OPT_LIBSSH2" != Xno; then
26328     CLEANLDFLAGS="$LDFLAGS"
26329   CLEANCPPFLAGS="$CPPFLAGS"
26330   CLEANLIBS="$LIBS"
26331
26332   case "$OPT_LIBSSH2" in
26333   yes)
26334
26335     if test -n "$PKG_CONFIG"; then
26336       PKGCONFIG="$PKG_CONFIG"
26337     else
26338       if test -n "$ac_tool_prefix"; then
26339   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26340 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26342 $as_echo_n "checking for $ac_word... " >&6; }
26343 if ${ac_cv_path_PKGCONFIG+:} false; then :
26344   $as_echo_n "(cached) " >&6
26345 else
26346   case $PKGCONFIG in
26347   [\\/]* | ?:[\\/]*)
26348   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26349   ;;
26350   *)
26351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26352 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26353 for as_dir in $as_dummy
26354 do
26355   IFS=$as_save_IFS
26356   test -z "$as_dir" && as_dir=.
26357     for ac_exec_ext in '' $ac_executable_extensions; do
26358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26359     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26361     break 2
26362   fi
26363 done
26364   done
26365 IFS=$as_save_IFS
26366
26367   ;;
26368 esac
26369 fi
26370 PKGCONFIG=$ac_cv_path_PKGCONFIG
26371 if test -n "$PKGCONFIG"; then
26372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26373 $as_echo "$PKGCONFIG" >&6; }
26374 else
26375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26376 $as_echo "no" >&6; }
26377 fi
26378
26379
26380 fi
26381 if test -z "$ac_cv_path_PKGCONFIG"; then
26382   ac_pt_PKGCONFIG=$PKGCONFIG
26383   # Extract the first word of "pkg-config", so it can be a program name with args.
26384 set dummy pkg-config; ac_word=$2
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26386 $as_echo_n "checking for $ac_word... " >&6; }
26387 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26388   $as_echo_n "(cached) " >&6
26389 else
26390   case $ac_pt_PKGCONFIG in
26391   [\\/]* | ?:[\\/]*)
26392   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26393   ;;
26394   *)
26395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26396 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26397 for as_dir in $as_dummy
26398 do
26399   IFS=$as_save_IFS
26400   test -z "$as_dir" && as_dir=.
26401     for ac_exec_ext in '' $ac_executable_extensions; do
26402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26403     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26405     break 2
26406   fi
26407 done
26408   done
26409 IFS=$as_save_IFS
26410
26411   ;;
26412 esac
26413 fi
26414 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26415 if test -n "$ac_pt_PKGCONFIG"; then
26416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26417 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26418 else
26419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26420 $as_echo "no" >&6; }
26421 fi
26422
26423   if test "x$ac_pt_PKGCONFIG" = x; then
26424     PKGCONFIG="no"
26425   else
26426     case $cross_compiling:$ac_tool_warned in
26427 yes:)
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26430 ac_tool_warned=yes ;;
26431 esac
26432     PKGCONFIG=$ac_pt_PKGCONFIG
26433   fi
26434 else
26435   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26436 fi
26437
26438     fi
26439
26440     if test "x$PKGCONFIG" != "xno"; then
26441       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26442 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26443             itexists=`
26444     if test -n ""; then
26445       PKG_CONFIG_LIBDIR=""
26446       export PKG_CONFIG_LIBDIR
26447     fi
26448          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26449
26450       if test -z "$itexists"; then
26451                         PKGCONFIG="no"
26452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26453 $as_echo "no" >&6; }
26454       else
26455         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26456 $as_echo "found" >&6; }
26457       fi
26458     fi
26459
26460
26461     if test "$PKGCONFIG" != "no" ; then
26462       LIB_SSH2=`$PKGCONFIG --libs libssh2`
26463       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26464       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26465       version=`$PKGCONFIG --modversion libssh2`
26466       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26467     fi
26468
26469     ;;
26470   off)
26471         ;;
26472   *)
26473         PREFIX_SSH2=$OPT_LIBSSH2
26474     ;;
26475   esac
26476
26477     if test -n "$PREFIX_SSH2"; then
26478     LIB_SSH2="-lssh2"
26479     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26480     CPP_SSH2=-I${PREFIX_SSH2}/include
26481     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26482   fi
26483
26484   LDFLAGS="$LDFLAGS $LD_SSH2"
26485   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26486   LIBS="$LIB_SSH2 $LIBS"
26487
26488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26489 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26490 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26491   $as_echo_n "(cached) " >&6
26492 else
26493   ac_check_lib_save_LIBS=$LIBS
26494 LIBS="-lssh2  $LIBS"
26495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26496 /* end confdefs.h.  */
26497
26498
26499 #ifdef __cplusplus
26500 extern "C"
26501 #endif
26502 char libssh2_channel_open_ex ();
26503 int main (void)
26504 {
26505 return libssh2_channel_open_ex ();
26506  ;
26507  return 0;
26508 }
26509 _ACEOF
26510 if ac_fn_c_try_link "$LINENO"; then :
26511   ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26512 else
26513   ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26514 fi
26515 rm -f core conftest.err conftest.$ac_objext \
26516     conftest$ac_exeext conftest.$ac_ext
26517 LIBS=$ac_check_lib_save_LIBS
26518 fi
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26520 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26521 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26522   cat >>confdefs.h <<_ACEOF
26523 #define HAVE_LIBSSH2 1
26524 _ACEOF
26525
26526   LIBS="-lssh2 $LIBS"
26527
26528 fi
26529
26530
26531   for ac_header in libssh2.h
26532 do :
26533   ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26534 if test "x$ac_cv_header_libssh2_h" = xyes; then :
26535   cat >>confdefs.h <<_ACEOF
26536 #define HAVE_LIBSSH2_H 1
26537 _ACEOF
26538  curl_ssh_msg="enabled (libSSH2)"
26539     LIBSSH2_ENABLED=1
26540
26541 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26542
26543     USE_LIBSSH2=1
26544
26545
26546 fi
26547
26548 done
26549
26550
26551   if test X"$OPT_LIBSSH2" != Xoff &&
26552      test "$LIBSSH2_ENABLED" != "1"; then
26553     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26554   fi
26555
26556   if test "$LIBSSH2_ENABLED" = "1"; then
26557     if test -n "$DIR_SSH2"; then
26558
26559        if test "x$cross_compiling" != "xyes"; then
26560          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
26561          export CURL_LIBRARY_PATH
26562          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
26563 $as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
26564        fi
26565     fi
26566   else
26567         LDFLAGS=$CLEANLDFLAGS
26568     CPPFLAGS=$CLEANCPPFLAGS
26569     LIBS=$CLEANLIBS
26570   fi
26571 elif test X"$OPT_LIBSSH" != Xno; then
26572     CLEANLDFLAGS="$LDFLAGS"
26573   CLEANCPPFLAGS="$CPPFLAGS"
26574   CLEANLIBS="$LIBS"
26575
26576   case "$OPT_LIBSSH" in
26577   yes)
26578
26579     if test -n "$PKG_CONFIG"; then
26580       PKGCONFIG="$PKG_CONFIG"
26581     else
26582       if test -n "$ac_tool_prefix"; then
26583   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26584 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26586 $as_echo_n "checking for $ac_word... " >&6; }
26587 if ${ac_cv_path_PKGCONFIG+:} false; then :
26588   $as_echo_n "(cached) " >&6
26589 else
26590   case $PKGCONFIG in
26591   [\\/]* | ?:[\\/]*)
26592   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26593   ;;
26594   *)
26595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26596 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26597 for as_dir in $as_dummy
26598 do
26599   IFS=$as_save_IFS
26600   test -z "$as_dir" && as_dir=.
26601     for ac_exec_ext in '' $ac_executable_extensions; do
26602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26603     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26605     break 2
26606   fi
26607 done
26608   done
26609 IFS=$as_save_IFS
26610
26611   ;;
26612 esac
26613 fi
26614 PKGCONFIG=$ac_cv_path_PKGCONFIG
26615 if test -n "$PKGCONFIG"; then
26616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26617 $as_echo "$PKGCONFIG" >&6; }
26618 else
26619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26620 $as_echo "no" >&6; }
26621 fi
26622
26623
26624 fi
26625 if test -z "$ac_cv_path_PKGCONFIG"; then
26626   ac_pt_PKGCONFIG=$PKGCONFIG
26627   # Extract the first word of "pkg-config", so it can be a program name with args.
26628 set dummy pkg-config; ac_word=$2
26629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26630 $as_echo_n "checking for $ac_word... " >&6; }
26631 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26632   $as_echo_n "(cached) " >&6
26633 else
26634   case $ac_pt_PKGCONFIG in
26635   [\\/]* | ?:[\\/]*)
26636   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26637   ;;
26638   *)
26639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26640 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26641 for as_dir in $as_dummy
26642 do
26643   IFS=$as_save_IFS
26644   test -z "$as_dir" && as_dir=.
26645     for ac_exec_ext in '' $ac_executable_extensions; do
26646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26647     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26649     break 2
26650   fi
26651 done
26652   done
26653 IFS=$as_save_IFS
26654
26655   ;;
26656 esac
26657 fi
26658 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26659 if test -n "$ac_pt_PKGCONFIG"; then
26660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26661 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26662 else
26663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26664 $as_echo "no" >&6; }
26665 fi
26666
26667   if test "x$ac_pt_PKGCONFIG" = x; then
26668     PKGCONFIG="no"
26669   else
26670     case $cross_compiling:$ac_tool_warned in
26671 yes:)
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26674 ac_tool_warned=yes ;;
26675 esac
26676     PKGCONFIG=$ac_pt_PKGCONFIG
26677   fi
26678 else
26679   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26680 fi
26681
26682     fi
26683
26684     if test "x$PKGCONFIG" != "xno"; then
26685       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26686 $as_echo_n "checking for libssh options with pkg-config... " >&6; }
26687             itexists=`
26688     if test -n ""; then
26689       PKG_CONFIG_LIBDIR=""
26690       export PKG_CONFIG_LIBDIR
26691     fi
26692          $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26693
26694       if test -z "$itexists"; then
26695                         PKGCONFIG="no"
26696         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26697 $as_echo "no" >&6; }
26698       else
26699         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26700 $as_echo "found" >&6; }
26701       fi
26702     fi
26703
26704
26705     if test "$PKGCONFIG" != "no" ; then
26706       LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26707       LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26708       CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26709       version=`$PKGCONFIG --modversion libssh`
26710       DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26711     fi
26712
26713     ;;
26714   off)
26715         ;;
26716   *)
26717         PREFIX_SSH=$OPT_LIBSSH
26718     ;;
26719   esac
26720
26721     if test -n "$PREFIX_SSH"; then
26722     LIB_SSH="-lssh"
26723     LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26724     CPP_SSH=-I${PREFIX_SSH}/include
26725     DIR_SSH=${PREFIX_SSH}/lib$libsuff
26726   fi
26727
26728   LDFLAGS="$LDFLAGS $LD_SSH"
26729   CPPFLAGS="$CPPFLAGS $CPP_SSH"
26730   LIBS="$LIB_SSH $LIBS"
26731
26732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26733 $as_echo_n "checking for ssh_new in -lssh... " >&6; }
26734 if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26735   $as_echo_n "(cached) " >&6
26736 else
26737   ac_check_lib_save_LIBS=$LIBS
26738 LIBS="-lssh  $LIBS"
26739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26740 /* end confdefs.h.  */
26741
26742
26743 #ifdef __cplusplus
26744 extern "C"
26745 #endif
26746 char ssh_new ();
26747 int main (void)
26748 {
26749 return ssh_new ();
26750  ;
26751  return 0;
26752 }
26753 _ACEOF
26754 if ac_fn_c_try_link "$LINENO"; then :
26755   ac_cv_lib_ssh_ssh_new=yes
26756 else
26757   ac_cv_lib_ssh_ssh_new=no
26758 fi
26759 rm -f core conftest.err conftest.$ac_objext \
26760     conftest$ac_exeext conftest.$ac_ext
26761 LIBS=$ac_check_lib_save_LIBS
26762 fi
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26764 $as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26765 if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26766   cat >>confdefs.h <<_ACEOF
26767 #define HAVE_LIBSSH 1
26768 _ACEOF
26769
26770   LIBS="-lssh $LIBS"
26771
26772 fi
26773
26774
26775   for ac_header in libssh/libssh.h
26776 do :
26777   ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26778 if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26779   cat >>confdefs.h <<_ACEOF
26780 #define HAVE_LIBSSH_LIBSSH_H 1
26781 _ACEOF
26782  curl_ssh_msg="enabled (libSSH)"
26783     LIBSSH_ENABLED=1
26784
26785 $as_echo "#define USE_LIBSSH 1" >>confdefs.h
26786
26787     USE_LIBSSH=1
26788
26789
26790 fi
26791
26792 done
26793
26794
26795   if test X"$OPT_LIBSSH" != Xoff &&
26796      test "$LIBSSH_ENABLED" != "1"; then
26797     as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26798   fi
26799
26800   if test "$LIBSSH_ENABLED" = "1"; then
26801     if test -n "$DIR_SSH"; then
26802
26803        if test "x$cross_compiling" != "xyes"; then
26804          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
26805          export CURL_LIBRARY_PATH
26806          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
26807 $as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
26808        fi
26809     fi
26810   else
26811         LDFLAGS=$CLEANLDFLAGS
26812     CPPFLAGS=$CLEANCPPFLAGS
26813     LIBS=$CLEANLIBS
26814   fi
26815 fi
26816
26817
26818 OPT_LIBRTMP=off
26819
26820 # Check whether --with-librtmp was given.
26821 if test "${with_librtmp+set}" = set; then :
26822   withval=$with_librtmp; OPT_LIBRTMP=$withval
26823 fi
26824
26825
26826 if test X"$OPT_LIBRTMP" != Xno; then
26827     CLEANLDFLAGS="$LDFLAGS"
26828   CLEANCPPFLAGS="$CPPFLAGS"
26829   CLEANLIBS="$LIBS"
26830
26831   case "$OPT_LIBRTMP" in
26832   yes)
26833
26834     if test -n "$PKG_CONFIG"; then
26835       PKGCONFIG="$PKG_CONFIG"
26836     else
26837       if test -n "$ac_tool_prefix"; then
26838   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26839 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26841 $as_echo_n "checking for $ac_word... " >&6; }
26842 if ${ac_cv_path_PKGCONFIG+:} false; then :
26843   $as_echo_n "(cached) " >&6
26844 else
26845   case $PKGCONFIG in
26846   [\\/]* | ?:[\\/]*)
26847   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26848   ;;
26849   *)
26850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26851 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26852 for as_dir in $as_dummy
26853 do
26854   IFS=$as_save_IFS
26855   test -z "$as_dir" && as_dir=.
26856     for ac_exec_ext in '' $ac_executable_extensions; do
26857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26858     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26860     break 2
26861   fi
26862 done
26863   done
26864 IFS=$as_save_IFS
26865
26866   ;;
26867 esac
26868 fi
26869 PKGCONFIG=$ac_cv_path_PKGCONFIG
26870 if test -n "$PKGCONFIG"; then
26871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26872 $as_echo "$PKGCONFIG" >&6; }
26873 else
26874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26875 $as_echo "no" >&6; }
26876 fi
26877
26878
26879 fi
26880 if test -z "$ac_cv_path_PKGCONFIG"; then
26881   ac_pt_PKGCONFIG=$PKGCONFIG
26882   # Extract the first word of "pkg-config", so it can be a program name with args.
26883 set dummy pkg-config; ac_word=$2
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26885 $as_echo_n "checking for $ac_word... " >&6; }
26886 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26887   $as_echo_n "(cached) " >&6
26888 else
26889   case $ac_pt_PKGCONFIG in
26890   [\\/]* | ?:[\\/]*)
26891   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26892   ;;
26893   *)
26894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26895 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26896 for as_dir in $as_dummy
26897 do
26898   IFS=$as_save_IFS
26899   test -z "$as_dir" && as_dir=.
26900     for ac_exec_ext in '' $ac_executable_extensions; do
26901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26902     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26904     break 2
26905   fi
26906 done
26907   done
26908 IFS=$as_save_IFS
26909
26910   ;;
26911 esac
26912 fi
26913 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26914 if test -n "$ac_pt_PKGCONFIG"; then
26915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26916 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26917 else
26918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26919 $as_echo "no" >&6; }
26920 fi
26921
26922   if test "x$ac_pt_PKGCONFIG" = x; then
26923     PKGCONFIG="no"
26924   else
26925     case $cross_compiling:$ac_tool_warned in
26926 yes:)
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26929 ac_tool_warned=yes ;;
26930 esac
26931     PKGCONFIG=$ac_pt_PKGCONFIG
26932   fi
26933 else
26934   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26935 fi
26936
26937     fi
26938
26939     if test "x$PKGCONFIG" != "xno"; then
26940       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26941 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26942             itexists=`
26943     if test -n ""; then
26944       PKG_CONFIG_LIBDIR=""
26945       export PKG_CONFIG_LIBDIR
26946     fi
26947          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26948
26949       if test -z "$itexists"; then
26950                         PKGCONFIG="no"
26951         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26952 $as_echo "no" >&6; }
26953       else
26954         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26955 $as_echo "found" >&6; }
26956       fi
26957     fi
26958
26959
26960     if test "$PKGCONFIG" != "no" ; then
26961       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26962       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26963       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26964       version=`$PKGCONFIG --modversion librtmp`
26965       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26966     else
26967                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26968     fi
26969
26970     ;;
26971   off)
26972         LIB_RTMP="-lrtmp"
26973     ;;
26974   *)
26975         LIB_RTMP="-lrtmp"
26976     PREFIX_RTMP=$OPT_LIBRTMP
26977     ;;
26978   esac
26979
26980     if test -n "$PREFIX_RTMP"; then
26981     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26982     CPP_RTMP=-I${PREFIX_RTMP}/include
26983     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26984   fi
26985
26986   LDFLAGS="$LDFLAGS $LD_RTMP"
26987   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26988   LIBS="$LIB_RTMP $LIBS"
26989
26990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26991 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26992 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26993   $as_echo_n "(cached) " >&6
26994 else
26995   ac_check_lib_save_LIBS=$LIBS
26996 LIBS="-lrtmp  $LIBS"
26997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26998 /* end confdefs.h.  */
26999
27000
27001 #ifdef __cplusplus
27002 extern "C"
27003 #endif
27004 char RTMP_Init ();
27005 int main (void)
27006 {
27007 return RTMP_Init ();
27008  ;
27009  return 0;
27010 }
27011 _ACEOF
27012 if ac_fn_c_try_link "$LINENO"; then :
27013   ac_cv_lib_rtmp_RTMP_Init=yes
27014 else
27015   ac_cv_lib_rtmp_RTMP_Init=no
27016 fi
27017 rm -f core conftest.err conftest.$ac_objext \
27018     conftest$ac_exeext conftest.$ac_ext
27019 LIBS=$ac_check_lib_save_LIBS
27020 fi
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
27022 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
27023 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
27024
27025      for ac_header in librtmp/rtmp.h
27026 do :
27027   ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
27028 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
27029   cat >>confdefs.h <<_ACEOF
27030 #define HAVE_LIBRTMP_RTMP_H 1
27031 _ACEOF
27032  curl_rtmp_msg="enabled (librtmp)"
27033         LIBRTMP_ENABLED=1
27034
27035 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
27036
27037         USE_LIBRTMP=1
27038
27039
27040 fi
27041
27042 done
27043
27044
27045 else
27046         LDFLAGS=$CLEANLDFLAGS
27047       CPPFLAGS=$CLEANCPPFLAGS
27048       LIBS=$CLEANLIBS
27049
27050 fi
27051
27052
27053   if test X"$OPT_LIBRTMP" != Xoff &&
27054      test "$LIBRTMP_ENABLED" != "1"; then
27055     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
27056   fi
27057
27058 fi
27059
27060
27061 versioned_symbols_flavour=
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
27063 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
27064 # Check whether --enable-versioned-symbols was given.
27065 if test "${enable_versioned_symbols+set}" = set; then :
27066   enableval=$enable_versioned_symbols;  case "$enableval" in
27067   yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27068 $as_echo "yes" >&6; }
27069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
27070 $as_echo_n "checking if libraries can be versioned... " >&6; }
27071     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
27072     if test -z "$GLD"; then
27073         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27074 $as_echo "no" >&6; }
27075         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
27076 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
27077     else
27078         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27079 $as_echo "yes" >&6; }
27080         if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
27081           versioned_symbols_flavour="MULTISSL_"
27082         elif test "x$OPENSSL_ENABLED" = "x1"; then
27083           versioned_symbols_flavour="OPENSSL_"
27084         elif test "x$GNUTLS_ENABLED" = "x1"; then
27085           versioned_symbols_flavour="GNUTLS_"
27086         elif test "x$NSS_ENABLED" = "x1"; then
27087           versioned_symbols_flavour="NSS_"
27088         elif test "x$POLARSSL_ENABLED" = "x1"; then
27089           versioned_symbols_flavour="POLARSSL_"
27090         elif test "x$CYASSL_ENABLED" = "x1"; then
27091           versioned_symbols_flavour="CYASSL_"
27092         elif test "x$AXTLS_ENABLED" = "x1"; then
27093           versioned_symbols_flavour="AXTLS_"
27094         elif test "x$WINSSL_ENABLED" = "x1"; then
27095           versioned_symbols_flavour="WINSSL_"
27096         elif test "x$DARWINSSL_ENABLED" = "x1"; then
27097           versioned_symbols_flavour="DARWINSSL_"
27098         else
27099           versioned_symbols_flavour=""
27100         fi
27101         versioned_symbols="yes"
27102     fi
27103     ;;
27104
27105   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27106 $as_echo "no" >&6; }
27107     ;;
27108   esac
27109
27110 else
27111
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27113 $as_echo "no" >&6; }
27114
27115
27116 fi
27117
27118
27119 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
27120
27121  if test "x$versioned_symbols" = 'xyes'; then
27122   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
27123   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
27124 else
27125   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
27126   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
27127 fi
27128
27129
27130
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
27132 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
27133 OPT_WINIDN="default"
27134
27135 # Check whether --with-winidn was given.
27136 if test "${with_winidn+set}" = set; then :
27137   withval=$with_winidn; OPT_WINIDN=$withval
27138 fi
27139
27140 case "$OPT_WINIDN" in
27141   no|default)
27142         want_winidn="no"
27143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27144 $as_echo "no" >&6; }
27145     ;;
27146   yes)
27147         want_winidn="yes"
27148     want_winidn_path="default"
27149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27150 $as_echo "yes" >&6; }
27151     ;;
27152   *)
27153         want_winidn="yes"
27154     want_winidn_path="$withval"
27155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27156 $as_echo "yes ($withval)" >&6; }
27157     ;;
27158 esac
27159
27160 if test "$want_winidn" = "yes"; then
27161     clean_CPPFLAGS="$CPPFLAGS"
27162   clean_LDFLAGS="$LDFLAGS"
27163   clean_LIBS="$LIBS"
27164   WINIDN_LIBS="-lnormaliz"
27165   WINIDN_CPPFLAGS="-DWINVER=0x0600"
27166   #
27167   if test "$want_winidn_path" != "default"; then
27168             WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
27169     WINIDN_CPPFLAGS="-I$want_winidn_path/include"
27170     WINIDN_DIR="$want_winidn_path/lib$libsuff"
27171   fi
27172   #
27173   CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
27174   LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
27175   LIBS="$WINIDN_LIBS $LIBS"
27176   #
27177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
27178 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
27179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27180 /* end confdefs.h.  */
27181
27182
27183       #include <windows.h>
27184
27185 int main (void)
27186 {
27187
27188       IdnToUnicode(0, NULL, 0, NULL, 0);
27189
27190  ;
27191  return 0;
27192 }
27193
27194 _ACEOF
27195 if ac_fn_c_try_link "$LINENO"; then :
27196
27197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27198 $as_echo "yes" >&6; }
27199     tst_links_winidn="yes"
27200
27201 else
27202
27203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27204 $as_echo "no" >&6; }
27205     tst_links_winidn="no"
27206
27207 fi
27208 rm -f core conftest.err conftest.$ac_objext \
27209     conftest$ac_exeext conftest.$ac_ext
27210   #
27211   if test "$tst_links_winidn" = "yes"; then
27212
27213 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
27214
27215
27216 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
27217
27218     IDN_ENABLED=1
27219
27220     curl_idn_msg="enabled (Windows-native)"
27221   else
27222     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27223 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27224     CPPFLAGS="$clean_CPPFLAGS"
27225     LDFLAGS="$clean_LDFLAGS"
27226     LIBS="$clean_LIBS"
27227   fi
27228 fi
27229
27230
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27232 $as_echo_n "checking whether to build with libidn2... " >&6; }
27233 OPT_IDN="default"
27234
27235 # Check whether --with-libidn2 was given.
27236 if test "${with_libidn2+set}" = set; then :
27237   withval=$with_libidn2; OPT_IDN=$withval
27238 fi
27239
27240 case "$OPT_IDN" in
27241   no)
27242         want_idn="no"
27243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27244 $as_echo "no" >&6; }
27245     ;;
27246   default)
27247         want_idn="yes"
27248     want_idn_path="default"
27249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27250 $as_echo "(assumed) yes" >&6; }
27251     ;;
27252   yes)
27253         want_idn="yes"
27254     want_idn_path="default"
27255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27256 $as_echo "yes" >&6; }
27257     ;;
27258   *)
27259         want_idn="yes"
27260     want_idn_path="$withval"
27261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27262 $as_echo "yes ($withval)" >&6; }
27263     ;;
27264 esac
27265
27266 if test "$want_idn" = "yes"; then
27267     clean_CPPFLAGS="$CPPFLAGS"
27268   clean_LDFLAGS="$LDFLAGS"
27269   clean_LIBS="$LIBS"
27270   PKGCONFIG="no"
27271   #
27272   if test "$want_idn_path" != "default"; then
27273         IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27274
27275     if test -n "$PKG_CONFIG"; then
27276       PKGCONFIG="$PKG_CONFIG"
27277     else
27278       if test -n "$ac_tool_prefix"; then
27279   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27280 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27282 $as_echo_n "checking for $ac_word... " >&6; }
27283 if ${ac_cv_path_PKGCONFIG+:} false; then :
27284   $as_echo_n "(cached) " >&6
27285 else
27286   case $PKGCONFIG in
27287   [\\/]* | ?:[\\/]*)
27288   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27289   ;;
27290   *)
27291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27292 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27293 for as_dir in $as_dummy
27294 do
27295   IFS=$as_save_IFS
27296   test -z "$as_dir" && as_dir=.
27297     for ac_exec_ext in '' $ac_executable_extensions; do
27298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27299     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27301     break 2
27302   fi
27303 done
27304   done
27305 IFS=$as_save_IFS
27306
27307   ;;
27308 esac
27309 fi
27310 PKGCONFIG=$ac_cv_path_PKGCONFIG
27311 if test -n "$PKGCONFIG"; then
27312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27313 $as_echo "$PKGCONFIG" >&6; }
27314 else
27315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27316 $as_echo "no" >&6; }
27317 fi
27318
27319
27320 fi
27321 if test -z "$ac_cv_path_PKGCONFIG"; then
27322   ac_pt_PKGCONFIG=$PKGCONFIG
27323   # Extract the first word of "pkg-config", so it can be a program name with args.
27324 set dummy pkg-config; ac_word=$2
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27326 $as_echo_n "checking for $ac_word... " >&6; }
27327 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27328   $as_echo_n "(cached) " >&6
27329 else
27330   case $ac_pt_PKGCONFIG in
27331   [\\/]* | ?:[\\/]*)
27332   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27333   ;;
27334   *)
27335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27336 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27337 for as_dir in $as_dummy
27338 do
27339   IFS=$as_save_IFS
27340   test -z "$as_dir" && as_dir=.
27341     for ac_exec_ext in '' $ac_executable_extensions; do
27342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27343     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27345     break 2
27346   fi
27347 done
27348   done
27349 IFS=$as_save_IFS
27350
27351   ;;
27352 esac
27353 fi
27354 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27355 if test -n "$ac_pt_PKGCONFIG"; then
27356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27357 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27358 else
27359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27360 $as_echo "no" >&6; }
27361 fi
27362
27363   if test "x$ac_pt_PKGCONFIG" = x; then
27364     PKGCONFIG="no"
27365   else
27366     case $cross_compiling:$ac_tool_warned in
27367 yes:)
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27370 ac_tool_warned=yes ;;
27371 esac
27372     PKGCONFIG=$ac_pt_PKGCONFIG
27373   fi
27374 else
27375   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27376 fi
27377
27378     fi
27379
27380     if test "x$PKGCONFIG" != "xno"; then
27381       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27382 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27383             itexists=`
27384     if test -n "$IDN_PCDIR"; then
27385       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27386       export PKG_CONFIG_LIBDIR
27387     fi
27388          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27389
27390       if test -z "$itexists"; then
27391                         PKGCONFIG="no"
27392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27393 $as_echo "no" >&6; }
27394       else
27395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27396 $as_echo "found" >&6; }
27397       fi
27398     fi
27399
27400     if test "$PKGCONFIG" != "no"; then
27401       IDN_LIBS=`
27402     if test -n "$IDN_PCDIR"; then
27403       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27404       export PKG_CONFIG_LIBDIR
27405     fi
27406          $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27407       IDN_LDFLAGS=`
27408     if test -n "$IDN_PCDIR"; then
27409       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27410       export PKG_CONFIG_LIBDIR
27411     fi
27412          $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27413       IDN_CPPFLAGS=`
27414     if test -n "$IDN_PCDIR"; then
27415       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27416       export PKG_CONFIG_LIBDIR
27417     fi
27418          $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27419       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27420     else
27421             IDN_LIBS="-lidn2"
27422       IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27423       IDN_CPPFLAGS="-I$want_idn_path/include"
27424       IDN_DIR="$want_idn_path/lib$libsuff"
27425     fi
27426   else
27427
27428     if test -n "$PKG_CONFIG"; then
27429       PKGCONFIG="$PKG_CONFIG"
27430     else
27431       if test -n "$ac_tool_prefix"; then
27432   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27433 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27435 $as_echo_n "checking for $ac_word... " >&6; }
27436 if ${ac_cv_path_PKGCONFIG+:} false; then :
27437   $as_echo_n "(cached) " >&6
27438 else
27439   case $PKGCONFIG in
27440   [\\/]* | ?:[\\/]*)
27441   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27442   ;;
27443   *)
27444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27445 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27446 for as_dir in $as_dummy
27447 do
27448   IFS=$as_save_IFS
27449   test -z "$as_dir" && as_dir=.
27450     for ac_exec_ext in '' $ac_executable_extensions; do
27451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27452     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27454     break 2
27455   fi
27456 done
27457   done
27458 IFS=$as_save_IFS
27459
27460   ;;
27461 esac
27462 fi
27463 PKGCONFIG=$ac_cv_path_PKGCONFIG
27464 if test -n "$PKGCONFIG"; then
27465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27466 $as_echo "$PKGCONFIG" >&6; }
27467 else
27468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27469 $as_echo "no" >&6; }
27470 fi
27471
27472
27473 fi
27474 if test -z "$ac_cv_path_PKGCONFIG"; then
27475   ac_pt_PKGCONFIG=$PKGCONFIG
27476   # Extract the first word of "pkg-config", so it can be a program name with args.
27477 set dummy pkg-config; ac_word=$2
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27479 $as_echo_n "checking for $ac_word... " >&6; }
27480 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27481   $as_echo_n "(cached) " >&6
27482 else
27483   case $ac_pt_PKGCONFIG in
27484   [\\/]* | ?:[\\/]*)
27485   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27486   ;;
27487   *)
27488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27489 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27490 for as_dir in $as_dummy
27491 do
27492   IFS=$as_save_IFS
27493   test -z "$as_dir" && as_dir=.
27494     for ac_exec_ext in '' $ac_executable_extensions; do
27495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27496     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27498     break 2
27499   fi
27500 done
27501   done
27502 IFS=$as_save_IFS
27503
27504   ;;
27505 esac
27506 fi
27507 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27508 if test -n "$ac_pt_PKGCONFIG"; then
27509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27510 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27511 else
27512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27513 $as_echo "no" >&6; }
27514 fi
27515
27516   if test "x$ac_pt_PKGCONFIG" = x; then
27517     PKGCONFIG="no"
27518   else
27519     case $cross_compiling:$ac_tool_warned in
27520 yes:)
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27523 ac_tool_warned=yes ;;
27524 esac
27525     PKGCONFIG=$ac_pt_PKGCONFIG
27526   fi
27527 else
27528   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27529 fi
27530
27531     fi
27532
27533     if test "x$PKGCONFIG" != "xno"; then
27534       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27535 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27536             itexists=`
27537     if test -n ""; then
27538       PKG_CONFIG_LIBDIR=""
27539       export PKG_CONFIG_LIBDIR
27540     fi
27541          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27542
27543       if test -z "$itexists"; then
27544                         PKGCONFIG="no"
27545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27546 $as_echo "no" >&6; }
27547       else
27548         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27549 $as_echo "found" >&6; }
27550       fi
27551     fi
27552
27553     if test "$PKGCONFIG" != "no"; then
27554       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27555       IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27556       IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27557       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27558     else
27559             IDN_LIBS="-lidn2"
27560     fi
27561   fi
27562   #
27563   if test "$PKGCONFIG" != "no"; then
27564     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27565 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27566     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27567 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27568     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27569 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27570     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27571 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27572   else
27573     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27574 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27575     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27576 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27577     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27578 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27579     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27580 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27581   fi
27582   #
27583   CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27584   LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27585   LIBS="$IDN_LIBS $LIBS"
27586   #
27587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27588 $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27590 /* end confdefs.h.  */
27591
27592
27593 #define idn2_lookup_ul innocuous_idn2_lookup_ul
27594 #ifdef __STDC__
27595 # include <limits.h>
27596 #else
27597 # include <assert.h>
27598 #endif
27599 #undef idn2_lookup_ul
27600 #ifdef __cplusplus
27601 extern "C"
27602 #endif
27603 char idn2_lookup_ul ();
27604 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27605 choke me
27606 #endif
27607
27608 int main (void)
27609 {
27610 return idn2_lookup_ul ();
27611  ;
27612  return 0;
27613 }
27614
27615 _ACEOF
27616 if ac_fn_c_try_link "$LINENO"; then :
27617
27618     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27619 $as_echo "yes" >&6; }
27620     tst_links_libidn="yes"
27621
27622 else
27623
27624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27625 $as_echo "no" >&6; }
27626     tst_links_libidn="no"
27627
27628 fi
27629 rm -f core conftest.err conftest.$ac_objext \
27630     conftest$ac_exeext conftest.$ac_ext
27631   #
27632   for ac_header in idn2.h
27633 do :
27634   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27635 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27636 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27637   cat >>confdefs.h <<_ACEOF
27638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27639 _ACEOF
27640
27641 fi
27642
27643 done
27644
27645
27646   if test "$tst_links_libidn" = "yes"; then
27647
27648 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27649
27650
27651     IDN_ENABLED=1
27652
27653     curl_idn_msg="enabled (libidn2)"
27654     if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
27655       CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
27656       export CURL_LIBRARY_PATH
27657       { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
27658 $as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
27659     fi
27660   else
27661     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27662 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27663     CPPFLAGS="$clean_CPPFLAGS"
27664     LDFLAGS="$clean_LDFLAGS"
27665     LIBS="$clean_LIBS"
27666   fi
27667 fi
27668
27669
27670
27671
27672
27673 OPT_H2="yes"
27674
27675 if test "x$disable_http" = "xyes"; then
27676   # without HTTP, nghttp2 is no use
27677   OPT_H2="no"
27678 fi
27679
27680
27681 # Check whether --with-nghttp2 was given.
27682 if test "${with_nghttp2+set}" = set; then :
27683   withval=$with_nghttp2; OPT_H2=$withval
27684 fi
27685
27686 case "$OPT_H2" in
27687   no)
27688         want_h2="no"
27689     ;;
27690   yes)
27691         want_h2="default"
27692     want_h2_path=""
27693     ;;
27694   *)
27695         want_h2="yes"
27696     want_h2_path="$withval/lib/pkgconfig"
27697     ;;
27698 esac
27699
27700 curl_h2_msg="disabled (--with-nghttp2)"
27701 if test X"$want_h2" != Xno; then
27702     CLEANLDFLAGS="$LDFLAGS"
27703   CLEANCPPFLAGS="$CPPFLAGS"
27704   CLEANLIBS="$LIBS"
27705
27706
27707     if test -n "$PKG_CONFIG"; then
27708       PKGCONFIG="$PKG_CONFIG"
27709     else
27710       if test -n "$ac_tool_prefix"; then
27711   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27712 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27714 $as_echo_n "checking for $ac_word... " >&6; }
27715 if ${ac_cv_path_PKGCONFIG+:} false; then :
27716   $as_echo_n "(cached) " >&6
27717 else
27718   case $PKGCONFIG in
27719   [\\/]* | ?:[\\/]*)
27720   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27721   ;;
27722   *)
27723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27724 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27725 for as_dir in $as_dummy
27726 do
27727   IFS=$as_save_IFS
27728   test -z "$as_dir" && as_dir=.
27729     for ac_exec_ext in '' $ac_executable_extensions; do
27730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27731     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27733     break 2
27734   fi
27735 done
27736   done
27737 IFS=$as_save_IFS
27738
27739   ;;
27740 esac
27741 fi
27742 PKGCONFIG=$ac_cv_path_PKGCONFIG
27743 if test -n "$PKGCONFIG"; then
27744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27745 $as_echo "$PKGCONFIG" >&6; }
27746 else
27747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27748 $as_echo "no" >&6; }
27749 fi
27750
27751
27752 fi
27753 if test -z "$ac_cv_path_PKGCONFIG"; then
27754   ac_pt_PKGCONFIG=$PKGCONFIG
27755   # Extract the first word of "pkg-config", so it can be a program name with args.
27756 set dummy pkg-config; ac_word=$2
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27758 $as_echo_n "checking for $ac_word... " >&6; }
27759 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27760   $as_echo_n "(cached) " >&6
27761 else
27762   case $ac_pt_PKGCONFIG in
27763   [\\/]* | ?:[\\/]*)
27764   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27765   ;;
27766   *)
27767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27768 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27769 for as_dir in $as_dummy
27770 do
27771   IFS=$as_save_IFS
27772   test -z "$as_dir" && as_dir=.
27773     for ac_exec_ext in '' $ac_executable_extensions; do
27774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27775     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27777     break 2
27778   fi
27779 done
27780   done
27781 IFS=$as_save_IFS
27782
27783   ;;
27784 esac
27785 fi
27786 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27787 if test -n "$ac_pt_PKGCONFIG"; then
27788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27789 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27790 else
27791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27792 $as_echo "no" >&6; }
27793 fi
27794
27795   if test "x$ac_pt_PKGCONFIG" = x; then
27796     PKGCONFIG="no"
27797   else
27798     case $cross_compiling:$ac_tool_warned in
27799 yes:)
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27802 ac_tool_warned=yes ;;
27803 esac
27804     PKGCONFIG=$ac_pt_PKGCONFIG
27805   fi
27806 else
27807   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27808 fi
27809
27810     fi
27811
27812     if test "x$PKGCONFIG" != "xno"; then
27813       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27814 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27815             itexists=`
27816     if test -n "$want_h2_path"; then
27817       PKG_CONFIG_LIBDIR="$want_h2_path"
27818       export PKG_CONFIG_LIBDIR
27819     fi
27820          $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27821
27822       if test -z "$itexists"; then
27823                         PKGCONFIG="no"
27824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27825 $as_echo "no" >&6; }
27826       else
27827         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27828 $as_echo "found" >&6; }
27829       fi
27830     fi
27831
27832
27833   if test "$PKGCONFIG" != "no" ; then
27834     LIB_H2=`
27835     if test -n "$want_h2_path"; then
27836       PKG_CONFIG_LIBDIR="$want_h2_path"
27837       export PKG_CONFIG_LIBDIR
27838     fi
27839
27840       $PKGCONFIG --libs-only-l libnghttp2`
27841     { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27842 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27843
27844     CPP_H2=`
27845     if test -n "$want_h2_path"; then
27846       PKG_CONFIG_LIBDIR="$want_h2_path"
27847       export PKG_CONFIG_LIBDIR
27848     fi
27849        $PKGCONFIG --cflags-only-I libnghttp2`
27850     { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27851 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27852
27853     LD_H2=`
27854     if test -n "$want_h2_path"; then
27855       PKG_CONFIG_LIBDIR="$want_h2_path"
27856       export PKG_CONFIG_LIBDIR
27857     fi
27858
27859       $PKGCONFIG --libs-only-L libnghttp2`
27860     { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27861 $as_echo "$as_me: -L is $LD_H2" >&6;}
27862
27863     LDFLAGS="$LDFLAGS $LD_H2"
27864     CPPFLAGS="$CPPFLAGS $CPP_H2"
27865     LIBS="$LIB_H2 $LIBS"
27866
27867     # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27868     # >= 1.0.0
27869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27870 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27871 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27872   $as_echo_n "(cached) " >&6
27873 else
27874   ac_check_lib_save_LIBS=$LIBS
27875 LIBS="-lnghttp2  $LIBS"
27876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27877 /* end confdefs.h.  */
27878
27879
27880 #ifdef __cplusplus
27881 extern "C"
27882 #endif
27883 char nghttp2_option_set_no_recv_client_magic ();
27884 int main (void)
27885 {
27886 return nghttp2_option_set_no_recv_client_magic ();
27887  ;
27888  return 0;
27889 }
27890 _ACEOF
27891 if ac_fn_c_try_link "$LINENO"; then :
27892   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27893 else
27894   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27895 fi
27896 rm -f core conftest.err conftest.$ac_objext \
27897     conftest$ac_exeext conftest.$ac_ext
27898 LIBS=$ac_check_lib_save_LIBS
27899 fi
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27901 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27902 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27903
27904        for ac_header in nghttp2/nghttp2.h
27905 do :
27906   ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27907 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27908   cat >>confdefs.h <<_ACEOF
27909 #define HAVE_NGHTTP2_NGHTTP2_H 1
27910 _ACEOF
27911  curl_h2_msg="enabled (nghttp2)"
27912           NGHTTP2_ENABLED=1
27913
27914 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27915
27916           USE_NGHTTP2=1
27917
27918
27919 fi
27920
27921 done
27922
27923
27924 else
27925           LDFLAGS=$CLEANLDFLAGS
27926         CPPFLAGS=$CLEANCPPFLAGS
27927         LIBS=$CLEANLIBS
27928
27929 fi
27930
27931
27932   else
27933         if test X"$want_h2" != Xdefault; then
27934                   as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27935     fi
27936   fi
27937
27938 fi
27939
27940
27941 OPT_ZSH_FPATH=default
27942
27943 # Check whether --with-zsh-functions-dir was given.
27944 if test "${with_zsh_functions_dir+set}" = set; then :
27945   withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27946 fi
27947
27948 case "$OPT_ZSH_FPATH" in
27949   no)
27950         ;;
27951   default|yes)
27952         ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27953
27954     ;;
27955   *)
27956         ZSH_FUNCTIONS_DIR="$withval"
27957
27958     ;;
27959 esac
27960
27961
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27963 $as_echo_n "checking for ANSI C header files... " >&6; }
27964 if ${ac_cv_header_stdc+:} false; then :
27965   $as_echo_n "(cached) " >&6
27966 else
27967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27968 /* end confdefs.h.  */
27969 #include <stdlib.h>
27970 #include <stdarg.h>
27971 #include <string.h>
27972 #include <float.h>
27973
27974 int main (void)
27975 {
27976
27977  ;
27978  return 0;
27979 }
27980 _ACEOF
27981 if ac_fn_c_try_compile "$LINENO"; then :
27982   ac_cv_header_stdc=yes
27983 else
27984   ac_cv_header_stdc=no
27985 fi
27986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27987
27988 if test $ac_cv_header_stdc = yes; then
27989   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27991 /* end confdefs.h.  */
27992 #include <string.h>
27993
27994 _ACEOF
27995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27996   $EGREP "memchr" >/dev/null 2>&1; then :
27997
27998 else
27999   ac_cv_header_stdc=no
28000 fi
28001 rm -f conftest*
28002
28003 fi
28004
28005 if test $ac_cv_header_stdc = yes; then
28006   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28008 /* end confdefs.h.  */
28009 #include <stdlib.h>
28010
28011 _ACEOF
28012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28013   $EGREP "free" >/dev/null 2>&1; then :
28014
28015 else
28016   ac_cv_header_stdc=no
28017 fi
28018 rm -f conftest*
28019
28020 fi
28021
28022 if test $ac_cv_header_stdc = yes; then
28023   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28024   if test "$cross_compiling" = yes; then :
28025   :
28026 else
28027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28028 /* end confdefs.h.  */
28029 #include <ctype.h>
28030 #include <stdlib.h>
28031 #if ((' ' & 0x0FF) == 0x020)
28032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28034 #else
28035 # define ISLOWER(c) \
28036                    (('a' <= (c) && (c) <= 'i') \
28037                      || ('j' <= (c) && (c) <= 'r') \
28038                      || ('s' <= (c) && (c) <= 'z'))
28039 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28040 #endif
28041
28042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28043 int
28044 main ()
28045 {
28046   int i;
28047   for (i = 0; i < 256; i++)
28048     if (XOR (islower (i), ISLOWER (i))
28049         || toupper (i) != TOUPPER (i))
28050       return 2;
28051   return 0;
28052 }
28053 _ACEOF
28054 if ac_fn_c_try_run "$LINENO"; then :
28055
28056 else
28057   ac_cv_header_stdc=no
28058 fi
28059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28060   conftest.$ac_objext conftest.beam conftest.$ac_ext
28061 fi
28062
28063 fi
28064 fi
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
28066 $as_echo "$ac_cv_header_stdc" >&6; }
28067 if test $ac_cv_header_stdc = yes; then
28068
28069 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
28070
28071 fi
28072
28073
28074
28075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
28076 $as_echo_n "checking for malloc.h... " >&6; }
28077 if ${curl_cv_header_malloc_h+:} false; then :
28078   $as_echo_n "(cached) " >&6
28079 else
28080
28081     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28082 /* end confdefs.h.  */
28083
28084
28085 #include <malloc.h>
28086
28087 int main (void)
28088 {
28089
28090         void *p = malloc(10);
28091         void *q = calloc(10,10);
28092         free(p);
28093         free(q);
28094
28095  ;
28096  return 0;
28097 }
28098
28099 _ACEOF
28100 if ac_fn_c_try_compile "$LINENO"; then :
28101
28102       curl_cv_header_malloc_h="yes"
28103
28104 else
28105
28106       curl_cv_header_malloc_h="no"
28107
28108 fi
28109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28110
28111 fi
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
28113 $as_echo "$curl_cv_header_malloc_h" >&6; }
28114   if test "$curl_cv_header_malloc_h" = "yes"; then
28115
28116 cat >>confdefs.h <<_ACEOF
28117 #define HAVE_MALLOC_H 1
28118 _ACEOF
28119
28120     #
28121     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28122 /* end confdefs.h.  */
28123
28124
28125 #include <stdlib.h>
28126
28127 int main (void)
28128 {
28129
28130         void *p = malloc(10);
28131         void *q = calloc(10,10);
28132         free(p);
28133         free(q);
28134
28135  ;
28136  return 0;
28137 }
28138
28139 _ACEOF
28140 if ac_fn_c_try_compile "$LINENO"; then :
28141
28142       curl_cv_need_header_malloc_h="no"
28143
28144 else
28145
28146       curl_cv_need_header_malloc_h="yes"
28147
28148 fi
28149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28150     #
28151     case "$curl_cv_need_header_malloc_h" in
28152       yes)
28153
28154 cat >>confdefs.h <<_ACEOF
28155 #define NEED_MALLOC_H 1
28156 _ACEOF
28157
28158         ;;
28159     esac
28160   fi
28161
28162
28163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
28164 $as_echo_n "checking for memory.h... " >&6; }
28165 if ${curl_cv_header_memory_h+:} false; then :
28166   $as_echo_n "(cached) " >&6
28167 else
28168
28169     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28170 /* end confdefs.h.  */
28171
28172
28173 #include <memory.h>
28174
28175 int main (void)
28176 {
28177
28178         void *p = malloc(10);
28179         void *q = calloc(10,10);
28180         free(p);
28181         free(q);
28182
28183  ;
28184  return 0;
28185 }
28186
28187 _ACEOF
28188 if ac_fn_c_try_compile "$LINENO"; then :
28189
28190       curl_cv_header_memory_h="yes"
28191
28192 else
28193
28194       curl_cv_header_memory_h="no"
28195
28196 fi
28197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28198
28199 fi
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
28201 $as_echo "$curl_cv_header_memory_h" >&6; }
28202   if test "$curl_cv_header_memory_h" = "yes"; then
28203
28204 cat >>confdefs.h <<_ACEOF
28205 #define HAVE_MEMORY_H 1
28206 _ACEOF
28207
28208     #
28209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28210 /* end confdefs.h.  */
28211
28212
28213 #include <stdlib.h>
28214
28215 int main (void)
28216 {
28217
28218         void *p = malloc(10);
28219         void *q = calloc(10,10);
28220         free(p);
28221         free(q);
28222
28223  ;
28224  return 0;
28225 }
28226
28227 _ACEOF
28228 if ac_fn_c_try_compile "$LINENO"; then :
28229
28230       curl_cv_need_header_memory_h="no"
28231
28232 else
28233
28234       curl_cv_need_header_memory_h="yes"
28235
28236 fi
28237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28238     #
28239     case "$curl_cv_need_header_memory_h" in
28240       yes)
28241
28242 cat >>confdefs.h <<_ACEOF
28243 #define NEED_MEMORY_H 1
28244 _ACEOF
28245
28246         ;;
28247     esac
28248   fi
28249
28250
28251 for ac_header in sys/types.h \
28252         sys/time.h \
28253         sys/select.h \
28254         sys/socket.h \
28255         sys/ioctl.h \
28256         sys/uio.h \
28257         assert.h \
28258         unistd.h \
28259         stdlib.h \
28260         arpa/inet.h \
28261         net/if.h \
28262         netinet/in.h \
28263         netinet/in6.h \
28264         sys/un.h \
28265         linux/tcp.h \
28266         netinet/tcp.h \
28267         netdb.h \
28268         sys/sockio.h \
28269         sys/stat.h \
28270         sys/param.h \
28271         termios.h \
28272         termio.h \
28273         sgtty.h \
28274         fcntl.h \
28275         alloca.h \
28276         time.h \
28277         io.h \
28278         pwd.h \
28279         utime.h \
28280         sys/utime.h \
28281         sys/poll.h \
28282         poll.h \
28283         socket.h \
28284         sys/resource.h \
28285         libgen.h \
28286         locale.h \
28287         errno.h \
28288         stdbool.h \
28289         arpa/tftp.h \
28290         sys/filio.h \
28291         sys/wait.h \
28292         setjmp.h
28293 do :
28294   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28296 #ifdef HAVE_SYS_TYPES_H
28297 #include <sys/types.h>
28298 #endif
28299 #ifdef HAVE_SYS_TIME_H
28300 #include <sys/time.h>
28301 #endif
28302 #ifdef HAVE_SYS_SELECT_H
28303 #include <sys/select.h>
28304 #endif
28305 #ifdef HAVE_SYS_SOCKET_H
28306 #include <sys/socket.h>
28307 #endif
28308 #ifdef HAVE_NETINET_IN_H
28309 #include <netinet/in.h>
28310 #endif
28311 #ifdef HAVE_NETINET_IN6_H
28312 #include <netinet/in6.h>
28313 #endif
28314 #ifdef HAVE_SYS_UN_H
28315 #include <sys/un.h>
28316 #endif
28317
28318
28319 "
28320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28321   cat >>confdefs.h <<_ACEOF
28322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28323 _ACEOF
28324
28325 fi
28326
28327 done
28328
28329
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28331 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28332 if ${ac_cv_c_const+:} false; then :
28333   $as_echo_n "(cached) " >&6
28334 else
28335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28336 /* end confdefs.h.  */
28337
28338 int main (void)
28339 {
28340
28341 #ifndef __cplusplus
28342   /* Ultrix mips cc rejects this sort of thing.  */
28343   typedef int charset[2];
28344   const charset cs = { 0, 0 };
28345   /* SunOS 4.1.1 cc rejects this.  */
28346   char const *const *pcpcc;
28347   char **ppc;
28348   /* NEC SVR4.0.2 mips cc rejects this.  */
28349   struct point {int x, y;};
28350   static struct point const zero = {0,0};
28351   /* AIX XL C 1.02.0.0 rejects this.
28352      It does not let you subtract one const X* pointer from another in
28353      an arm of an if-expression whose if-part is not a constant
28354      expression */
28355   const char *g = "string";
28356   pcpcc = &g + (g ? g-g : 0);
28357   /* HPUX 7.0 cc rejects these. */
28358   ++pcpcc;
28359   ppc = (char**) pcpcc;
28360   pcpcc = (char const *const *) ppc;
28361   { /* SCO 3.2v4 cc rejects this sort of thing.  */
28362     char tx;
28363     char *t = &tx;
28364     char const *s = 0 ? (char *) 0 : (char const *) 0;
28365
28366     *t++ = 0;
28367     if (s) return 0;
28368   }
28369   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
28370     int x[] = {25, 17};
28371     const int *foo = &x[0];
28372     ++foo;
28373   }
28374   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28375     typedef const int *iptr;
28376     iptr p = 0;
28377     ++p;
28378   }
28379   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28380        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28381     struct s { int j; const int *ap[3]; } bx;
28382     struct s *b = &bx; b->j = 5;
28383   }
28384   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28385     const int foo = 10;
28386     if (!foo) return 0;
28387   }
28388   return !cs[0] && !zero.x;
28389 #endif
28390
28391  ;
28392  return 0;
28393 }
28394 _ACEOF
28395 if ac_fn_c_try_compile "$LINENO"; then :
28396   ac_cv_c_const=yes
28397 else
28398   ac_cv_c_const=no
28399 fi
28400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28401 fi
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28403 $as_echo "$ac_cv_c_const" >&6; }
28404 if test $ac_cv_c_const = no; then
28405
28406 $as_echo "#define const /**/" >>confdefs.h
28407
28408 fi
28409
28410
28411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28412 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28413 if ${curl_cv_variadic_macros_c99+:} false; then :
28414   $as_echo_n "(cached) " >&6
28415 else
28416
28417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28418 /* end confdefs.h.  */
28419
28420
28421 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28422 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28423         int fun3(int arg1, int arg2, int arg3);
28424         int fun2(int arg1, int arg2);
28425         int fun3(int arg1, int arg2, int arg3)
28426         { return arg1 + arg2 + arg3; }
28427         int fun2(int arg1, int arg2)
28428         { return arg1 + arg2; }
28429
28430 int main (void)
28431 {
28432
28433         int res3 = c99_vmacro3(1, 2, 3);
28434         int res2 = c99_vmacro2(1, 2);
28435
28436  ;
28437  return 0;
28438 }
28439
28440 _ACEOF
28441 if ac_fn_c_try_compile "$LINENO"; then :
28442
28443       curl_cv_variadic_macros_c99="yes"
28444
28445 else
28446
28447       curl_cv_variadic_macros_c99="no"
28448
28449 fi
28450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28451
28452 fi
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28454 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
28455   case "$curl_cv_variadic_macros_c99" in
28456     yes)
28457
28458 cat >>confdefs.h <<_ACEOF
28459 #define HAVE_VARIADIC_MACROS_C99 1
28460 _ACEOF
28461
28462       ;;
28463   esac
28464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28465 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28466 if ${curl_cv_variadic_macros_gcc+:} false; then :
28467   $as_echo_n "(cached) " >&6
28468 else
28469
28470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28471 /* end confdefs.h.  */
28472
28473
28474 #define gcc_vmacro3(first, args...) fun3(first, args)
28475 #define gcc_vmacro2(first, args...) fun2(first, args)
28476         int fun3(int arg1, int arg2, int arg3);
28477         int fun2(int arg1, int arg2);
28478         int fun3(int arg1, int arg2, int arg3)
28479         { return arg1 + arg2 + arg3; }
28480         int fun2(int arg1, int arg2)
28481         { return arg1 + arg2; }
28482
28483 int main (void)
28484 {
28485
28486         int res3 = gcc_vmacro3(1, 2, 3);
28487         int res2 = gcc_vmacro2(1, 2);
28488
28489  ;
28490  return 0;
28491 }
28492
28493 _ACEOF
28494 if ac_fn_c_try_compile "$LINENO"; then :
28495
28496       curl_cv_variadic_macros_gcc="yes"
28497
28498 else
28499
28500       curl_cv_variadic_macros_gcc="no"
28501
28502 fi
28503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28504
28505 fi
28506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28507 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28508   case "$curl_cv_variadic_macros_gcc" in
28509     yes)
28510
28511 cat >>confdefs.h <<_ACEOF
28512 #define HAVE_VARIADIC_MACROS_GCC 1
28513 _ACEOF
28514
28515       ;;
28516   esac
28517
28518 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28519 if test "x$ac_cv_type_size_t" = xyes; then :
28520
28521 else
28522
28523 cat >>confdefs.h <<_ACEOF
28524 #define size_t unsigned int
28525 _ACEOF
28526
28527 fi
28528
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28530 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28531 if ${ac_cv_header_time+:} false; then :
28532   $as_echo_n "(cached) " >&6
28533 else
28534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28535 /* end confdefs.h.  */
28536 #include <sys/types.h>
28537 #include <sys/time.h>
28538 #include <time.h>
28539
28540 int main (void)
28541 {
28542 if ((struct tm *) 0)
28543 return 0;
28544  ;
28545  return 0;
28546 }
28547 _ACEOF
28548 if ac_fn_c_try_compile "$LINENO"; then :
28549   ac_cv_header_time=yes
28550 else
28551   ac_cv_header_time=no
28552 fi
28553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28554 fi
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28556 $as_echo "$ac_cv_header_time" >&6; }
28557 if test $ac_cv_header_time = yes; then
28558
28559 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28560
28561 fi
28562
28563
28564         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28565 do :
28566   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28567 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28569   cat >>confdefs.h <<_ACEOF
28570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28571 _ACEOF
28572
28573 fi
28574
28575 done
28576
28577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28578 $as_echo_n "checking for struct timeval... " >&6; }
28579 if ${curl_cv_struct_timeval+:} false; then :
28580   $as_echo_n "(cached) " >&6
28581 else
28582
28583     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28584 /* end confdefs.h.  */
28585
28586
28587 #undef inline
28588 #ifdef HAVE_WINDOWS_H
28589 #ifndef WIN32_LEAN_AND_MEAN
28590 #define WIN32_LEAN_AND_MEAN
28591 #endif
28592 #include <windows.h>
28593 #ifdef HAVE_WINSOCK2_H
28594 #include <winsock2.h>
28595 #else
28596 #ifdef HAVE_WINSOCK_H
28597 #include <winsock.h>
28598 #endif
28599 #endif
28600 #endif
28601 #ifdef HAVE_SYS_TYPES_H
28602 #include <sys/types.h>
28603 #endif
28604 #ifdef HAVE_SYS_TIME_H
28605 #include <sys/time.h>
28606 #ifdef TIME_WITH_SYS_TIME
28607 #include <time.h>
28608 #endif
28609 #else
28610 #ifdef HAVE_TIME_H
28611 #include <time.h>
28612 #endif
28613 #endif
28614 #ifdef HAVE_SYS_SOCKET_H
28615 #include <sys/socket.h>
28616 #endif
28617
28618 int main (void)
28619 {
28620
28621         struct timeval ts;
28622         ts.tv_sec  = 0;
28623         ts.tv_usec = 0;
28624
28625  ;
28626  return 0;
28627 }
28628
28629 _ACEOF
28630 if ac_fn_c_try_compile "$LINENO"; then :
28631
28632       curl_cv_struct_timeval="yes"
28633
28634 else
28635
28636       curl_cv_struct_timeval="no"
28637
28638 fi
28639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28640
28641 fi
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28643 $as_echo "$curl_cv_struct_timeval" >&6; }
28644   case "$curl_cv_struct_timeval" in
28645     yes)
28646
28647 cat >>confdefs.h <<_ACEOF
28648 #define HAVE_STRUCT_TIMEVAL 1
28649 _ACEOF
28650
28651       ;;
28652   esac
28653
28654
28655
28656     if test "x$cross_compiling" != xyes; then
28657
28658             { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28659 $as_echo_n "checking run-time libs availability... " >&6; }
28660
28661
28662    old=$LD_LIBRARY_PATH
28663    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28664    export LD_LIBRARY_PATH
28665    if test "$cross_compiling" = yes; then :
28666   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28668 as_fn_error $? "cannot run test program while cross compiling
28669 See \`config.log' for more details" "$LINENO" 5; }
28670 else
28671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28672 /* end confdefs.h.  */
28673
28674 int main()
28675 {
28676   return 0;
28677 }
28678
28679 _ACEOF
28680 if ac_fn_c_try_run "$LINENO"; then :
28681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28682 $as_echo "fine" >&6; }
28683 else
28684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28685 $as_echo "failed" >&6; }
28686     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28687
28688 fi
28689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28690   conftest.$ac_objext conftest.beam conftest.$ac_ext
28691 fi
28692
28693    LD_LIBRARY_PATH=$old # restore
28694
28695
28696       fi
28697
28698
28699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28700 $as_echo_n "checking size of size_t... " >&6; }
28701 if ${ac_cv_sizeof_size_t+:} false; then :
28702   $as_echo_n "(cached) " >&6
28703 else
28704   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
28705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28706 /* end confdefs.h.  */
28707
28708 #include <sys/types.h>
28709
28710
28711 int main (void)
28712 {
28713 switch (0) case 0: case (sizeof (size_t) == $ac_size):;
28714  ;
28715  return 0;
28716 }
28717 _ACEOF
28718 if ac_fn_c_try_compile "$LINENO"; then :
28719   ac_cv_sizeof_size_t=$ac_size
28720 fi
28721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28722   if test x$ac_cv_sizeof_size_t != x ; then break; fi
28723 done
28724
28725 fi
28726
28727 if test x$ac_cv_sizeof_size_t = x ; then
28728   as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
28729 fi
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28731 $as_echo "$ac_cv_sizeof_size_t" >&6; }
28732
28733 cat >>confdefs.h <<_ACEOF
28734 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28735 _ACEOF
28736
28737
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28739 $as_echo_n "checking size of long... " >&6; }
28740 if ${ac_cv_sizeof_long+:} false; then :
28741   $as_echo_n "(cached) " >&6
28742 else
28743   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
28744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28745 /* end confdefs.h.  */
28746
28747 #include <sys/types.h>
28748
28749
28750 int main (void)
28751 {
28752 switch (0) case 0: case (sizeof (long) == $ac_size):;
28753  ;
28754  return 0;
28755 }
28756 _ACEOF
28757 if ac_fn_c_try_compile "$LINENO"; then :
28758   ac_cv_sizeof_long=$ac_size
28759 fi
28760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28761   if test x$ac_cv_sizeof_long != x ; then break; fi
28762 done
28763
28764 fi
28765
28766 if test x$ac_cv_sizeof_long = x ; then
28767   as_fn_error $? "cannot determine a size for long" "$LINENO" 5
28768 fi
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28770 $as_echo "$ac_cv_sizeof_long" >&6; }
28771
28772 cat >>confdefs.h <<_ACEOF
28773 #define SIZEOF_LONG $ac_cv_sizeof_long
28774 _ACEOF
28775
28776
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28778 $as_echo_n "checking size of int... " >&6; }
28779 if ${ac_cv_sizeof_int+:} false; then :
28780   $as_echo_n "(cached) " >&6
28781 else
28782   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
28783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28784 /* end confdefs.h.  */
28785
28786 #include <sys/types.h>
28787
28788
28789 int main (void)
28790 {
28791 switch (0) case 0: case (sizeof (int) == $ac_size):;
28792  ;
28793  return 0;
28794 }
28795 _ACEOF
28796 if ac_fn_c_try_compile "$LINENO"; then :
28797   ac_cv_sizeof_int=$ac_size
28798 fi
28799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28800   if test x$ac_cv_sizeof_int != x ; then break; fi
28801 done
28802
28803 fi
28804
28805 if test x$ac_cv_sizeof_int = x ; then
28806   as_fn_error $? "cannot determine a size for int" "$LINENO" 5
28807 fi
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28809 $as_echo "$ac_cv_sizeof_int" >&6; }
28810
28811 cat >>confdefs.h <<_ACEOF
28812 #define SIZEOF_INT $ac_cv_sizeof_int
28813 _ACEOF
28814
28815
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28817 $as_echo_n "checking size of short... " >&6; }
28818 if ${ac_cv_sizeof_short+:} false; then :
28819   $as_echo_n "(cached) " >&6
28820 else
28821   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
28822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28823 /* end confdefs.h.  */
28824
28825 #include <sys/types.h>
28826
28827
28828 int main (void)
28829 {
28830 switch (0) case 0: case (sizeof (short) == $ac_size):;
28831  ;
28832  return 0;
28833 }
28834 _ACEOF
28835 if ac_fn_c_try_compile "$LINENO"; then :
28836   ac_cv_sizeof_short=$ac_size
28837 fi
28838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28839   if test x$ac_cv_sizeof_short != x ; then break; fi
28840 done
28841
28842 fi
28843
28844 if test x$ac_cv_sizeof_short = x ; then
28845   as_fn_error $? "cannot determine a size for short" "$LINENO" 5
28846 fi
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28848 $as_echo "$ac_cv_sizeof_short" >&6; }
28849
28850 cat >>confdefs.h <<_ACEOF
28851 #define SIZEOF_SHORT $ac_cv_sizeof_short
28852 _ACEOF
28853
28854
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28856 $as_echo_n "checking size of time_t... " >&6; }
28857 if ${ac_cv_sizeof_time_t+:} false; then :
28858   $as_echo_n "(cached) " >&6
28859 else
28860   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
28861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28862 /* end confdefs.h.  */
28863
28864 #include <sys/types.h>
28865
28866
28867 int main (void)
28868 {
28869 switch (0) case 0: case (sizeof (time_t) == $ac_size):;
28870  ;
28871  return 0;
28872 }
28873 _ACEOF
28874 if ac_fn_c_try_compile "$LINENO"; then :
28875   ac_cv_sizeof_time_t=$ac_size
28876 fi
28877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28878   if test x$ac_cv_sizeof_time_t != x ; then break; fi
28879 done
28880
28881 fi
28882
28883 if test x$ac_cv_sizeof_time_t = x ; then
28884   as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
28885 fi
28886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28887 $as_echo "$ac_cv_sizeof_time_t" >&6; }
28888
28889 cat >>confdefs.h <<_ACEOF
28890 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28891 _ACEOF
28892
28893
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28895 $as_echo_n "checking size of off_t... " >&6; }
28896 if ${ac_cv_sizeof_off_t+:} false; then :
28897   $as_echo_n "(cached) " >&6
28898 else
28899   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
28900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28901 /* end confdefs.h.  */
28902
28903 #include <sys/types.h>
28904
28905
28906 int main (void)
28907 {
28908 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
28909  ;
28910  return 0;
28911 }
28912 _ACEOF
28913 if ac_fn_c_try_compile "$LINENO"; then :
28914   ac_cv_sizeof_off_t=$ac_size
28915 fi
28916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28917   if test x$ac_cv_sizeof_off_t != x ; then break; fi
28918 done
28919
28920 fi
28921
28922 if test x$ac_cv_sizeof_off_t = x ; then
28923   as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
28924 fi
28925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28926 $as_echo "$ac_cv_sizeof_off_t" >&6; }
28927
28928 cat >>confdefs.h <<_ACEOF
28929 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28930 _ACEOF
28931
28932
28933
28934 o=$CPPFLAGS
28935 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28937 $as_echo_n "checking size of curl_off_t... " >&6; }
28938 if ${ac_cv_sizeof_curl_off_t+:} false; then :
28939   $as_echo_n "(cached) " >&6
28940 else
28941   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
28942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28943 /* end confdefs.h.  */
28944
28945 #include <sys/types.h>
28946
28947 #include <curl/system.h>
28948
28949
28950 int main (void)
28951 {
28952 switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
28953  ;
28954  return 0;
28955 }
28956 _ACEOF
28957 if ac_fn_c_try_compile "$LINENO"; then :
28958   ac_cv_sizeof_curl_off_t=$ac_size
28959 fi
28960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28961   if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
28962 done
28963
28964 fi
28965
28966 if test x$ac_cv_sizeof_curl_off_t = x ; then
28967   as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
28968 fi
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28970 $as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28971
28972 cat >>confdefs.h <<_ACEOF
28973 #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28974 _ACEOF
28975
28976
28977 CPPFLAGS=$o
28978
28979 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28980 if test "x$ac_cv_type_long_long" = xyes; then :
28981
28982 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28983
28984    longlong="yes"
28985
28986 fi
28987
28988
28989 if test "xyes" = "x$longlong"; then
28990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28991 $as_echo_n "checking if numberLL works... " >&6; }
28992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28993 /* end confdefs.h.  */
28994
28995
28996
28997 int main (void)
28998 {
28999
29000       long long val = 1000LL;
29001
29002  ;
29003  return 0;
29004 }
29005
29006 _ACEOF
29007 if ac_fn_c_try_compile "$LINENO"; then :
29008
29009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29010 $as_echo "yes" >&6; }
29011
29012 $as_echo "#define HAVE_LL 1" >>confdefs.h
29013
29014
29015 else
29016
29017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29018 $as_echo "no" >&6; }
29019
29020 fi
29021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29022 fi
29023
29024
29025 # check for ssize_t
29026 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
29027 if test "x$ac_cv_type_ssize_t" = xyes; then :
29028
29029 else
29030
29031 $as_echo "#define ssize_t int" >>confdefs.h
29032
29033 fi
29034
29035
29036 # check for bool type
29037 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
29038 #ifdef HAVE_SYS_TYPES_H
29039 #include <sys/types.h>
29040 #endif
29041 #ifdef HAVE_STDBOOL_H
29042 #include <stdbool.h>
29043 #endif
29044
29045 "
29046 if test "x$ac_cv_type_bool" = xyes; then :
29047
29048
29049 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
29050
29051
29052 fi
29053
29054
29055 # check for sa_family_t
29056 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
29057 #ifdef HAVE_SYS_SOCKET_H
29058 #include <sys/socket.h>
29059 #endif
29060
29061 "
29062 if test "x$ac_cv_type_sa_family_t" = xyes; then :
29063
29064 $as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
29065
29066 else
29067
29068    # The windows name?
29069    ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
29070 #ifdef HAVE_SYS_SOCKET_H
29071 #include <sys/socket.h>
29072 #endif
29073
29074 "
29075 if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
29076
29077 $as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
29078
29079 else
29080
29081 $as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
29082
29083 fi
29084
29085
29086 fi
29087
29088
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
29090 $as_echo_n "checking if time_t is unsigned... " >&6; }
29091
29092
29093    old=$LD_LIBRARY_PATH
29094    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
29095    export LD_LIBRARY_PATH
29096    if test "$cross_compiling" = yes; then :
29097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29098 $as_echo "no" >&6; }
29099
29100 else
29101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29102 /* end confdefs.h.  */
29103
29104   #include <time.h>
29105   #include <limits.h>
29106   time_t t = -1;
29107   return (t > 0);
29108
29109 _ACEOF
29110 if ac_fn_c_try_run "$LINENO"; then :
29111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29112 $as_echo "yes" >&6; }
29113
29114 $as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
29115
29116
29117 else
29118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29119 $as_echo "no" >&6; }
29120
29121 fi
29122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29123   conftest.$ac_objext conftest.beam conftest.$ac_ext
29124 fi
29125
29126    LD_LIBRARY_PATH=$old # restore
29127
29128
29129
29130 curl_includes_poll="\
29131 /* includes start */
29132 #ifdef HAVE_SYS_TYPES_H
29133 #  include <sys/types.h>
29134 #endif
29135 #ifdef HAVE_POLL_H
29136 #  include <poll.h>
29137 #endif
29138 #ifdef HAVE_SYS_POLL_H
29139 #  include <sys/poll.h>
29140 #endif
29141 /* includes end */"
29142   for ac_header in sys/types.h poll.h sys/poll.h
29143 do :
29144   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29145 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29146 "
29147 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29148   cat >>confdefs.h <<_ACEOF
29149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29150 _ACEOF
29151
29152 fi
29153
29154 done
29155
29156
29157
29158     #
29159   tst_poll_events_macro_defined="unknown"
29160   #
29161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29162 /* end confdefs.h.  */
29163
29164
29165       $curl_includes_poll
29166
29167 int main (void)
29168 {
29169
29170 #if defined(events) || defined(revents)
29171       return 0;
29172 #else
29173       force compilation error
29174 #endif
29175
29176  ;
29177  return 0;
29178 }
29179
29180 _ACEOF
29181 if ac_fn_c_try_compile "$LINENO"; then :
29182
29183     tst_poll_events_macro_defined="yes"
29184
29185 else
29186
29187     tst_poll_events_macro_defined="no"
29188
29189 fi
29190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29191   #
29192   if test "$tst_poll_events_macro_defined" = "yes"; then
29193     if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29194
29195 cat >>confdefs.h <<_EOF
29196 #define CURL_PULL_SYS_POLL_H 1
29197 _EOF
29198
29199     fi
29200   fi
29201   #
29202
29203
29204
29205   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29206 #undef inline
29207 #ifdef HAVE_WINDOWS_H
29208 #ifndef WIN32_LEAN_AND_MEAN
29209 #define WIN32_LEAN_AND_MEAN
29210 #endif
29211 #include <windows.h>
29212 #ifdef HAVE_WINSOCK2_H
29213 #include <winsock2.h>
29214 #else
29215 #ifdef HAVE_WINSOCK_H
29216 #include <winsock.h>
29217 #endif
29218 #endif
29219 #else
29220 #ifdef HAVE_SYS_TYPES_H
29221 #include <sys/types.h>
29222 #endif
29223 #ifdef HAVE_SYS_SOCKET_H
29224 #include <sys/socket.h>
29225 #endif
29226 #ifdef HAVE_NETINET_IN_H
29227 #include <netinet/in.h>
29228 #endif
29229 #ifdef HAVE_ARPA_INET_H
29230 #include <arpa/inet.h>
29231 #endif
29232 #endif
29233
29234 "
29235 if test "x$ac_cv_type_in_addr_t" = xyes; then :
29236
29237 else
29238
29239         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29240 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
29241 if ${curl_cv_in_addr_t_equiv+:} false; then :
29242   $as_echo_n "(cached) " >&6
29243 else
29244
29245       curl_cv_in_addr_t_equiv="unknown"
29246       for t in "unsigned long" int size_t unsigned long; do
29247         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29248           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29249 /* end confdefs.h.  */
29250
29251
29252 #undef inline
29253 #ifdef HAVE_WINDOWS_H
29254 #ifndef WIN32_LEAN_AND_MEAN
29255 #define WIN32_LEAN_AND_MEAN
29256 #endif
29257 #include <windows.h>
29258 #ifdef HAVE_WINSOCK2_H
29259 #include <winsock2.h>
29260 #else
29261 #ifdef HAVE_WINSOCK_H
29262 #include <winsock.h>
29263 #endif
29264 #endif
29265 #else
29266 #ifdef HAVE_SYS_TYPES_H
29267 #include <sys/types.h>
29268 #endif
29269 #ifdef HAVE_SYS_SOCKET_H
29270 #include <sys/socket.h>
29271 #endif
29272 #ifdef HAVE_NETINET_IN_H
29273 #include <netinet/in.h>
29274 #endif
29275 #ifdef HAVE_ARPA_INET_H
29276 #include <arpa/inet.h>
29277 #endif
29278 #endif
29279
29280 int main (void)
29281 {
29282
29283               $t data = inet_addr ("1.2.3.4");
29284
29285  ;
29286  return 0;
29287 }
29288
29289 _ACEOF
29290 if ac_fn_c_try_link "$LINENO"; then :
29291
29292             curl_cv_in_addr_t_equiv="$t"
29293
29294 fi
29295 rm -f core conftest.err conftest.$ac_objext \
29296     conftest$ac_exeext conftest.$ac_ext
29297         fi
29298       done
29299
29300 fi
29301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29302 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29303     case "$curl_cv_in_addr_t_equiv" in
29304       unknown)
29305         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29306         ;;
29307       *)
29308
29309 cat >>confdefs.h <<_ACEOF
29310 #define in_addr_t $curl_cv_in_addr_t_equiv
29311 _ACEOF
29312
29313         ;;
29314     esac
29315
29316 fi
29317
29318
29319
29320
29321    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29322 #undef inline
29323 #ifdef HAVE_WINDOWS_H
29324 #ifndef WIN32_LEAN_AND_MEAN
29325 #define WIN32_LEAN_AND_MEAN
29326 #endif
29327 #include <windows.h>
29328 #ifdef HAVE_WINSOCK2_H
29329 #include <winsock2.h>
29330 #endif
29331 #else
29332 #ifdef HAVE_SYS_TYPES_H
29333 #include <sys/types.h>
29334 #endif
29335 #ifdef HAVE_SYS_SOCKET_H
29336 #include <sys/socket.h>
29337 #endif
29338 #ifdef HAVE_NETINET_IN_H
29339 #include <netinet/in.h>
29340 #endif
29341 #ifdef HAVE_ARPA_INET_H
29342 #include <arpa/inet.h>
29343 #endif
29344 #endif
29345
29346 "
29347 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29348
29349 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29350
29351 fi
29352
29353
29354
29355
29356   for ac_header in signal.h
29357 do :
29358   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29359 if test "x$ac_cv_header_signal_h" = xyes; then :
29360   cat >>confdefs.h <<_ACEOF
29361 #define HAVE_SIGNAL_H 1
29362 _ACEOF
29363
29364 fi
29365
29366 done
29367
29368   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29369 #ifdef HAVE_SIGNAL_H
29370 #include <signal.h>
29371 #endif
29372
29373 "
29374 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29375
29376
29377 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29378
29379
29380 fi
29381
29382   case "$ac_cv_type_sig_atomic_t" in
29383     yes)
29384       #
29385       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29386 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29387       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29388 /* end confdefs.h.  */
29389
29390
29391 #ifdef HAVE_SIGNAL_H
29392 #include <signal.h>
29393 #endif
29394
29395 int main (void)
29396 {
29397
29398           static volatile sig_atomic_t dummy = 0;
29399
29400  ;
29401  return 0;
29402 }
29403
29404 _ACEOF
29405 if ac_fn_c_try_link "$LINENO"; then :
29406
29407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29408 $as_echo "no" >&6; }
29409         curl_cv_sig_atomic_t_volatile="no"
29410
29411 else
29412
29413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29414 $as_echo "yes" >&6; }
29415         curl_cv_sig_atomic_t_volatile="yes"
29416
29417 fi
29418 rm -f core conftest.err conftest.$ac_objext \
29419     conftest$ac_exeext conftest.$ac_ext
29420       #
29421       if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29422
29423 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29424
29425       fi
29426       ;;
29427   esac
29428
29429
29430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29431 $as_echo_n "checking return type of signal handlers... " >&6; }
29432 if ${ac_cv_type_signal+:} false; then :
29433   $as_echo_n "(cached) " >&6
29434 else
29435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29436 /* end confdefs.h.  */
29437 #include <sys/types.h>
29438 #include <signal.h>
29439
29440 int main (void)
29441 {
29442 return *(signal (0, 0)) (0) == 1;
29443  ;
29444  return 0;
29445 }
29446 _ACEOF
29447 if ac_fn_c_try_compile "$LINENO"; then :
29448   ac_cv_type_signal=int
29449 else
29450   ac_cv_type_signal=void
29451 fi
29452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29453 fi
29454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29455 $as_echo "$ac_cv_type_signal" >&6; }
29456
29457 cat >>confdefs.h <<_ACEOF
29458 #define RETSIGTYPE $ac_cv_type_signal
29459 _ACEOF
29460
29461
29462
29463
29464     for ac_header in sys/select.h sys/socket.h
29465 do :
29466   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29467 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29468 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29469   cat >>confdefs.h <<_ACEOF
29470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29471 _ACEOF
29472
29473 fi
29474
29475 done
29476
29477   #
29478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29479 $as_echo_n "checking for select... " >&6; }
29480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29481 /* end confdefs.h.  */
29482
29483
29484 #undef inline
29485 #ifdef HAVE_WINDOWS_H
29486 #ifndef WIN32_LEAN_AND_MEAN
29487 #define WIN32_LEAN_AND_MEAN
29488 #endif
29489 #include <windows.h>
29490 #ifdef HAVE_WINSOCK2_H
29491 #include <winsock2.h>
29492 #else
29493 #ifdef HAVE_WINSOCK_H
29494 #include <winsock.h>
29495 #endif
29496 #endif
29497 #endif
29498 #ifdef HAVE_SYS_TYPES_H
29499 #include <sys/types.h>
29500 #endif
29501 #ifdef HAVE_SYS_TIME_H
29502 #include <sys/time.h>
29503 #ifdef TIME_WITH_SYS_TIME
29504 #include <time.h>
29505 #endif
29506 #else
29507 #ifdef HAVE_TIME_H
29508 #include <time.h>
29509 #endif
29510 #endif
29511 #ifndef HAVE_WINDOWS_H
29512 #ifdef HAVE_SYS_SELECT_H
29513 #include <sys/select.h>
29514 #endif
29515 #ifdef HAVE_SYS_SOCKET_H
29516 #include <sys/socket.h>
29517 #endif
29518 #endif
29519
29520 int main (void)
29521 {
29522
29523       select(0, 0, 0, 0, 0);
29524
29525  ;
29526  return 0;
29527 }
29528
29529 _ACEOF
29530 if ac_fn_c_try_link "$LINENO"; then :
29531
29532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29533 $as_echo "yes" >&6; }
29534     curl_cv_select="yes"
29535
29536 else
29537
29538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29539 $as_echo "no" >&6; }
29540     curl_cv_select="no"
29541
29542 fi
29543 rm -f core conftest.err conftest.$ac_objext \
29544     conftest$ac_exeext conftest.$ac_ext
29545   #
29546   if test "$curl_cv_select" = "yes"; then
29547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29548 $as_echo_n "checking types of args and return type for select... " >&6; }
29549 if ${curl_cv_func_select_args+:} false; then :
29550   $as_echo_n "(cached) " >&6
29551 else
29552
29553       curl_cv_func_select_args="unknown"
29554       for sel_retv in 'int' 'ssize_t'; do
29555         for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29556           for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29557             for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29558               if test "$curl_cv_func_select_args" = "unknown"; then
29559                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29560 /* end confdefs.h.  */
29561
29562
29563 #undef inline
29564 #ifdef HAVE_WINDOWS_H
29565 #ifndef WIN32_LEAN_AND_MEAN
29566 #define WIN32_LEAN_AND_MEAN
29567 #endif
29568 #include <windows.h>
29569 #ifdef HAVE_WINSOCK2_H
29570 #include <winsock2.h>
29571 #else
29572 #ifdef HAVE_WINSOCK_H
29573 #include <winsock.h>
29574 #endif
29575 #endif
29576 #define SELECTCALLCONV PASCAL
29577 #endif
29578 #ifdef HAVE_SYS_TYPES_H
29579 #include <sys/types.h>
29580 #endif
29581 #ifdef HAVE_SYS_TIME_H
29582 #include <sys/time.h>
29583 #ifdef TIME_WITH_SYS_TIME
29584 #include <time.h>
29585 #endif
29586 #else
29587 #ifdef HAVE_TIME_H
29588 #include <time.h>
29589 #endif
29590 #endif
29591 #ifndef HAVE_WINDOWS_H
29592 #ifdef HAVE_SYS_SELECT_H
29593 #include <sys/select.h>
29594 #endif
29595 #ifdef HAVE_SYS_SOCKET_H
29596 #include <sys/socket.h>
29597 #endif
29598 #define SELECTCALLCONV
29599 #endif
29600 #ifndef HAVE_STRUCT_TIMEVAL
29601                     struct timeval {
29602                       long tv_sec;
29603                       long tv_usec;
29604                     };
29605 #endif
29606                     extern $sel_retv SELECTCALLCONV
29607 #ifdef __ANDROID__
29608 __attribute__((overloadable))
29609 #endif
29610                         select($sel_arg1,
29611                                         $sel_arg234,
29612                                         $sel_arg234,
29613                                         $sel_arg234,
29614                                         $sel_arg5);
29615
29616 int main (void)
29617 {
29618
29619                     $sel_arg1   nfds=0;
29620                     $sel_arg234 rfds=0;
29621                     $sel_arg234 wfds=0;
29622                     $sel_arg234 efds=0;
29623                     $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29624
29625  ;
29626  return 0;
29627 }
29628
29629 _ACEOF
29630 if ac_fn_c_try_compile "$LINENO"; then :
29631
29632                   curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29633
29634 fi
29635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29636               fi
29637             done
29638           done
29639         done
29640       done
29641
29642 fi
29643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29644 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29645     if test "$curl_cv_func_select_args" = "unknown"; then
29646       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29647 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29648       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29649 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29650     else
29651       select_prev_IFS=$IFS; IFS=','
29652       set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29653       IFS=$select_prev_IFS
29654       shift
29655       #
29656       sel_qual_type_arg5=$3
29657       #
29658
29659 cat >>confdefs.h <<_ACEOF
29660 #define SELECT_TYPE_ARG1 $1
29661 _ACEOF
29662
29663
29664 cat >>confdefs.h <<_ACEOF
29665 #define SELECT_TYPE_ARG234 $2
29666 _ACEOF
29667
29668
29669 cat >>confdefs.h <<_ACEOF
29670 #define SELECT_TYPE_RETV $4
29671 _ACEOF
29672
29673       #
29674       prev_sh_opts=$-
29675       #
29676       case $prev_sh_opts in
29677         *f*)
29678           ;;
29679         *)
29680           set -f
29681           ;;
29682       esac
29683       #
29684       case "$sel_qual_type_arg5" in
29685         const*)
29686           sel_qual_arg5=const
29687           sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29688         ;;
29689         *)
29690           sel_qual_arg5=
29691           sel_type_arg5=$sel_qual_type_arg5
29692         ;;
29693       esac
29694       #
29695
29696 cat >>confdefs.h <<_ACEOF
29697 #define SELECT_QUAL_ARG5 $sel_qual_arg5
29698 _ACEOF
29699
29700
29701 cat >>confdefs.h <<_ACEOF
29702 #define SELECT_TYPE_ARG5 $sel_type_arg5
29703 _ACEOF
29704
29705       #
29706       case $prev_sh_opts in
29707         *f*)
29708           ;;
29709         *)
29710           set +f
29711           ;;
29712       esac
29713       #
29714
29715 cat >>confdefs.h <<_ACEOF
29716 #define HAVE_SELECT 1
29717 _ACEOF
29718
29719       curl_cv_func_select="yes"
29720     fi
29721   fi
29722
29723
29724
29725       for ac_header in sys/types.h sys/socket.h
29726 do :
29727   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29728 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29729 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29730   cat >>confdefs.h <<_ACEOF
29731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29732 _ACEOF
29733
29734 fi
29735
29736 done
29737
29738   #
29739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29740 $as_echo_n "checking for recv... " >&6; }
29741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29742 /* end confdefs.h.  */
29743
29744
29745 #undef inline
29746 #ifdef HAVE_WINDOWS_H
29747 #ifndef WIN32_LEAN_AND_MEAN
29748 #define WIN32_LEAN_AND_MEAN
29749 #endif
29750 #include <windows.h>
29751 #ifdef HAVE_WINSOCK2_H
29752 #include <winsock2.h>
29753 #else
29754 #ifdef HAVE_WINSOCK_H
29755 #include <winsock.h>
29756 #endif
29757 #endif
29758 #else
29759 #ifdef HAVE_SYS_TYPES_H
29760 #include <sys/types.h>
29761 #endif
29762 #ifdef HAVE_SYS_SOCKET_H
29763 #include <sys/socket.h>
29764 #endif
29765 #endif
29766
29767 int main (void)
29768 {
29769
29770       recv(0, 0, 0, 0);
29771
29772  ;
29773  return 0;
29774 }
29775
29776 _ACEOF
29777 if ac_fn_c_try_link "$LINENO"; then :
29778
29779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29780 $as_echo "yes" >&6; }
29781     curl_cv_recv="yes"
29782
29783 else
29784
29785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29786 $as_echo "no" >&6; }
29787     curl_cv_recv="no"
29788
29789 fi
29790 rm -f core conftest.err conftest.$ac_objext \
29791     conftest$ac_exeext conftest.$ac_ext
29792   #
29793   if test "$curl_cv_recv" = "yes"; then
29794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29795 $as_echo_n "checking types of args and return type for recv... " >&6; }
29796 if ${curl_cv_func_recv_args+:} false; then :
29797   $as_echo_n "(cached) " >&6
29798 else
29799
29800       curl_cv_func_recv_args="unknown"
29801       for recv_retv in 'int' 'ssize_t'; do
29802         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29803           for recv_arg2 in 'char *' 'void *'; do
29804             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29805               for recv_arg4 in 'int' 'unsigned int'; do
29806                 if test "$curl_cv_func_recv_args" = "unknown"; then
29807                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29808 /* end confdefs.h.  */
29809
29810
29811 #undef inline
29812 #ifdef HAVE_WINDOWS_H
29813 #ifndef WIN32_LEAN_AND_MEAN
29814 #define WIN32_LEAN_AND_MEAN
29815 #endif
29816 #include <windows.h>
29817 #ifdef HAVE_WINSOCK2_H
29818 #include <winsock2.h>
29819 #else
29820 #ifdef HAVE_WINSOCK_H
29821 #include <winsock.h>
29822 #endif
29823 #endif
29824 #define RECVCALLCONV PASCAL
29825 #else
29826 #ifdef HAVE_SYS_TYPES_H
29827 #include <sys/types.h>
29828 #endif
29829 #ifdef HAVE_SYS_SOCKET_H
29830 #include <sys/socket.h>
29831 #endif
29832 #define RECVCALLCONV
29833 #endif
29834                       extern $recv_retv RECVCALLCONV
29835 #ifdef __ANDROID__
29836 __attribute__((overloadable))
29837 #endif
29838                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29839
29840 int main (void)
29841 {
29842
29843                       $recv_arg1 s=0;
29844                       $recv_arg2 buf=0;
29845                       $recv_arg3 len=0;
29846                       $recv_arg4 flags=0;
29847                       $recv_retv res = recv(s, buf, len, flags);
29848
29849  ;
29850  return 0;
29851 }
29852
29853 _ACEOF
29854 if ac_fn_c_try_compile "$LINENO"; then :
29855
29856                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29857
29858 fi
29859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29860                 fi
29861               done
29862             done
29863           done
29864         done
29865       done
29866
29867 fi
29868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29869 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29870     if test "$curl_cv_func_recv_args" = "unknown"; then
29871       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29872     else
29873       recv_prev_IFS=$IFS; IFS=','
29874       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29875       IFS=$recv_prev_IFS
29876       shift
29877       #
29878
29879 cat >>confdefs.h <<_ACEOF
29880 #define RECV_TYPE_ARG1 $1
29881 _ACEOF
29882
29883
29884 cat >>confdefs.h <<_ACEOF
29885 #define RECV_TYPE_ARG2 $2
29886 _ACEOF
29887
29888
29889 cat >>confdefs.h <<_ACEOF
29890 #define RECV_TYPE_ARG3 $3
29891 _ACEOF
29892
29893
29894 cat >>confdefs.h <<_ACEOF
29895 #define RECV_TYPE_ARG4 $4
29896 _ACEOF
29897
29898
29899 cat >>confdefs.h <<_ACEOF
29900 #define RECV_TYPE_RETV $5
29901 _ACEOF
29902
29903       #
29904
29905 cat >>confdefs.h <<_ACEOF
29906 #define HAVE_RECV 1
29907 _ACEOF
29908
29909       curl_cv_func_recv="yes"
29910     fi
29911   else
29912     as_fn_error $? "Unable to link function recv" "$LINENO" 5
29913   fi
29914
29915
29916       for ac_header in sys/types.h sys/socket.h
29917 do :
29918   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29919 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29920 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29921   cat >>confdefs.h <<_ACEOF
29922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29923 _ACEOF
29924
29925 fi
29926
29927 done
29928
29929   #
29930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29931 $as_echo_n "checking for send... " >&6; }
29932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29933 /* end confdefs.h.  */
29934
29935
29936 #undef inline
29937 #ifdef HAVE_WINDOWS_H
29938 #ifndef WIN32_LEAN_AND_MEAN
29939 #define WIN32_LEAN_AND_MEAN
29940 #endif
29941 #include <windows.h>
29942 #ifdef HAVE_WINSOCK2_H
29943 #include <winsock2.h>
29944 #else
29945 #ifdef HAVE_WINSOCK_H
29946 #include <winsock.h>
29947 #endif
29948 #endif
29949 #else
29950 #ifdef HAVE_SYS_TYPES_H
29951 #include <sys/types.h>
29952 #endif
29953 #ifdef HAVE_SYS_SOCKET_H
29954 #include <sys/socket.h>
29955 #endif
29956 #endif
29957
29958 int main (void)
29959 {
29960
29961       send(0, 0, 0, 0);
29962
29963  ;
29964  return 0;
29965 }
29966
29967 _ACEOF
29968 if ac_fn_c_try_link "$LINENO"; then :
29969
29970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29971 $as_echo "yes" >&6; }
29972     curl_cv_send="yes"
29973
29974 else
29975
29976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29977 $as_echo "no" >&6; }
29978     curl_cv_send="no"
29979
29980 fi
29981 rm -f core conftest.err conftest.$ac_objext \
29982     conftest$ac_exeext conftest.$ac_ext
29983   #
29984   if test "$curl_cv_send" = "yes"; then
29985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29986 $as_echo_n "checking types of args and return type for send... " >&6; }
29987 if ${curl_cv_func_send_args+:} false; then :
29988   $as_echo_n "(cached) " >&6
29989 else
29990
29991       curl_cv_func_send_args="unknown"
29992       for send_retv in 'int' 'ssize_t'; do
29993         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29994           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29995             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29996               for send_arg4 in 'int' 'unsigned int'; do
29997                 if test "$curl_cv_func_send_args" = "unknown"; then
29998                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29999 /* end confdefs.h.  */
30000
30001
30002 #undef inline
30003 #ifdef HAVE_WINDOWS_H
30004 #ifndef WIN32_LEAN_AND_MEAN
30005 #define WIN32_LEAN_AND_MEAN
30006 #endif
30007 #include <windows.h>
30008 #ifdef HAVE_WINSOCK2_H
30009 #include <winsock2.h>
30010 #else
30011 #ifdef HAVE_WINSOCK_H
30012 #include <winsock.h>
30013 #endif
30014 #endif
30015 #define SENDCALLCONV PASCAL
30016 #else
30017 #ifdef HAVE_SYS_TYPES_H
30018 #include <sys/types.h>
30019 #endif
30020 #ifdef HAVE_SYS_SOCKET_H
30021 #include <sys/socket.h>
30022 #endif
30023 #define SENDCALLCONV
30024 #endif
30025                       extern $send_retv SENDCALLCONV
30026 #ifdef __ANDROID__
30027 __attribute__((overloadable))
30028 #endif
30029                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
30030
30031 int main (void)
30032 {
30033
30034                       $send_arg1 s=0;
30035                       $send_arg3 len=0;
30036                       $send_arg4 flags=0;
30037                       $send_retv res = send(s, 0, len, flags);
30038
30039  ;
30040  return 0;
30041 }
30042
30043 _ACEOF
30044 if ac_fn_c_try_compile "$LINENO"; then :
30045
30046                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
30047
30048 fi
30049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30050                 fi
30051               done
30052             done
30053           done
30054         done
30055       done
30056
30057 fi
30058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
30059 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
30060     if test "$curl_cv_func_send_args" = "unknown"; then
30061       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
30062     else
30063       send_prev_IFS=$IFS; IFS=','
30064       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
30065       IFS=$send_prev_IFS
30066       shift
30067       #
30068       send_qual_type_arg2=$2
30069       #
30070
30071 cat >>confdefs.h <<_ACEOF
30072 #define SEND_TYPE_ARG1 $1
30073 _ACEOF
30074
30075
30076 cat >>confdefs.h <<_ACEOF
30077 #define SEND_TYPE_ARG3 $3
30078 _ACEOF
30079
30080
30081 cat >>confdefs.h <<_ACEOF
30082 #define SEND_TYPE_ARG4 $4
30083 _ACEOF
30084
30085
30086 cat >>confdefs.h <<_ACEOF
30087 #define SEND_TYPE_RETV $5
30088 _ACEOF
30089
30090       #
30091       prev_sh_opts=$-
30092       #
30093       case $prev_sh_opts in
30094         *f*)
30095           ;;
30096         *)
30097           set -f
30098           ;;
30099       esac
30100       #
30101       case "$send_qual_type_arg2" in
30102         const*)
30103           send_qual_arg2=const
30104           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
30105         ;;
30106         *)
30107           send_qual_arg2=
30108           send_type_arg2=$send_qual_type_arg2
30109         ;;
30110       esac
30111       #
30112
30113 cat >>confdefs.h <<_ACEOF
30114 #define SEND_QUAL_ARG2 $send_qual_arg2
30115 _ACEOF
30116
30117
30118 cat >>confdefs.h <<_ACEOF
30119 #define SEND_TYPE_ARG2 $send_type_arg2
30120 _ACEOF
30121
30122       #
30123       case $prev_sh_opts in
30124         *f*)
30125           ;;
30126         *)
30127           set +f
30128           ;;
30129       esac
30130       #
30131
30132 cat >>confdefs.h <<_ACEOF
30133 #define HAVE_SEND 1
30134 _ACEOF
30135
30136       curl_cv_func_send="yes"
30137     fi
30138   else
30139     as_fn_error $? "Unable to link function send" "$LINENO" 5
30140   fi
30141
30142
30143   for ac_header in sys/types.h sys/socket.h
30144 do :
30145   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30146 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30147 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30148   cat >>confdefs.h <<_ACEOF
30149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30150 _ACEOF
30151
30152 fi
30153
30154 done
30155
30156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30157 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30158 if ${curl_cv_msg_nosignal+:} false; then :
30159   $as_echo_n "(cached) " >&6
30160 else
30161
30162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30163 /* end confdefs.h.  */
30164
30165
30166 #undef inline
30167 #ifdef HAVE_WINDOWS_H
30168 #ifndef WIN32_LEAN_AND_MEAN
30169 #define WIN32_LEAN_AND_MEAN
30170 #endif
30171 #include <windows.h>
30172 #ifdef HAVE_WINSOCK2_H
30173 #include <winsock2.h>
30174 #else
30175 #ifdef HAVE_WINSOCK_H
30176 #include <winsock.h>
30177 #endif
30178 #endif
30179 #else
30180 #ifdef HAVE_SYS_TYPES_H
30181 #include <sys/types.h>
30182 #endif
30183 #ifdef HAVE_SYS_SOCKET_H
30184 #include <sys/socket.h>
30185 #endif
30186 #endif
30187
30188 int main (void)
30189 {
30190
30191         int flag=MSG_NOSIGNAL;
30192
30193  ;
30194  return 0;
30195 }
30196
30197 _ACEOF
30198 if ac_fn_c_try_compile "$LINENO"; then :
30199
30200       curl_cv_msg_nosignal="yes"
30201
30202 else
30203
30204       curl_cv_msg_nosignal="no"
30205
30206 fi
30207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30208
30209 fi
30210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30211 $as_echo "$curl_cv_msg_nosignal" >&6; }
30212   case "$curl_cv_msg_nosignal" in
30213     yes)
30214
30215 cat >>confdefs.h <<_ACEOF
30216 #define HAVE_MSG_NOSIGNAL 1
30217 _ACEOF
30218
30219       ;;
30220   esac
30221
30222
30223
30224 curl_includes_unistd="\
30225 /* includes start */
30226 #ifdef HAVE_SYS_TYPES_H
30227 #  include <sys/types.h>
30228 #endif
30229 #ifdef HAVE_UNISTD_H
30230 #  include <unistd.h>
30231 #endif
30232 /* includes end */"
30233   for ac_header in sys/types.h unistd.h
30234 do :
30235   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30236 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30237 "
30238 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30239   cat >>confdefs.h <<_ACEOF
30240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30241 _ACEOF
30242
30243 fi
30244
30245 done
30246
30247
30248
30249     #
30250   tst_links_alarm="unknown"
30251   tst_proto_alarm="unknown"
30252   tst_compi_alarm="unknown"
30253   tst_allow_alarm="unknown"
30254   #
30255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30256 $as_echo_n "checking if alarm can be linked... " >&6; }
30257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30258 /* end confdefs.h.  */
30259
30260
30261 #define alarm innocuous_alarm
30262 #ifdef __STDC__
30263 # include <limits.h>
30264 #else
30265 # include <assert.h>
30266 #endif
30267 #undef alarm
30268 #ifdef __cplusplus
30269 extern "C"
30270 #endif
30271 char alarm ();
30272 #if defined __stub_alarm || defined __stub___alarm
30273 choke me
30274 #endif
30275
30276 int main (void)
30277 {
30278 return alarm ();
30279  ;
30280  return 0;
30281 }
30282
30283 _ACEOF
30284 if ac_fn_c_try_link "$LINENO"; then :
30285
30286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30287 $as_echo "yes" >&6; }
30288     tst_links_alarm="yes"
30289
30290 else
30291
30292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30293 $as_echo "no" >&6; }
30294     tst_links_alarm="no"
30295
30296 fi
30297 rm -f core conftest.err conftest.$ac_objext \
30298     conftest$ac_exeext conftest.$ac_ext
30299   #
30300   if test "$tst_links_alarm" = "yes"; then
30301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30302 $as_echo_n "checking if alarm is prototyped... " >&6; }
30303     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30304 /* end confdefs.h.  */
30305
30306       $curl_includes_unistd
30307
30308 _ACEOF
30309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30310   $EGREP "alarm" >/dev/null 2>&1; then :
30311
30312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30313 $as_echo "yes" >&6; }
30314       tst_proto_alarm="yes"
30315
30316 else
30317
30318       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30319 $as_echo "no" >&6; }
30320       tst_proto_alarm="no"
30321
30322 fi
30323 rm -f conftest*
30324
30325   fi
30326   #
30327   if test "$tst_proto_alarm" = "yes"; then
30328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30329 $as_echo_n "checking if alarm is compilable... " >&6; }
30330     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30331 /* end confdefs.h.  */
30332
30333
30334         $curl_includes_unistd
30335
30336 int main (void)
30337 {
30338
30339         if(0 != alarm(0))
30340           return 1;
30341
30342  ;
30343  return 0;
30344 }
30345
30346 _ACEOF
30347 if ac_fn_c_try_compile "$LINENO"; then :
30348
30349       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30350 $as_echo "yes" >&6; }
30351       tst_compi_alarm="yes"
30352
30353 else
30354
30355       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30356 $as_echo "no" >&6; }
30357       tst_compi_alarm="no"
30358
30359 fi
30360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30361   fi
30362   #
30363   if test "$tst_compi_alarm" = "yes"; then
30364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30365 $as_echo_n "checking if alarm usage allowed... " >&6; }
30366     if test "x$curl_disallow_alarm" != "xyes"; then
30367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30368 $as_echo "yes" >&6; }
30369       tst_allow_alarm="yes"
30370     else
30371       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30372 $as_echo "no" >&6; }
30373       tst_allow_alarm="no"
30374     fi
30375   fi
30376   #
30377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30378 $as_echo_n "checking if alarm might be used... " >&6; }
30379   if test "$tst_links_alarm" = "yes" &&
30380      test "$tst_proto_alarm" = "yes" &&
30381      test "$tst_compi_alarm" = "yes" &&
30382      test "$tst_allow_alarm" = "yes"; then
30383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30384 $as_echo "yes" >&6; }
30385
30386 cat >>confdefs.h <<_ACEOF
30387 #define HAVE_ALARM 1
30388 _ACEOF
30389
30390     curl_cv_func_alarm="yes"
30391   else
30392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30393 $as_echo "no" >&6; }
30394     curl_cv_func_alarm="no"
30395   fi
30396
30397
30398 curl_includes_string="\
30399 /* includes start */
30400 #ifdef HAVE_SYS_TYPES_H
30401 #  include <sys/types.h>
30402 #endif
30403 #ifdef HAVE_STRING_H
30404 #  include <string.h>
30405 #endif
30406 #ifdef HAVE_STRINGS_H
30407 #  include <strings.h>
30408 #endif
30409 /* includes end */"
30410   for ac_header in sys/types.h string.h strings.h
30411 do :
30412   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30413 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30414 "
30415 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30416   cat >>confdefs.h <<_ACEOF
30417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30418 _ACEOF
30419
30420 fi
30421
30422 done
30423
30424
30425
30426 curl_includes_libgen="\
30427 /* includes start */
30428 #ifdef HAVE_SYS_TYPES_H
30429 #  include <sys/types.h>
30430 #endif
30431 #ifdef HAVE_LIBGEN_H
30432 #  include <libgen.h>
30433 #endif
30434 /* includes end */"
30435   for ac_header in sys/types.h libgen.h
30436 do :
30437   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30438 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30439 "
30440 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30441   cat >>confdefs.h <<_ACEOF
30442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30443 _ACEOF
30444
30445 fi
30446
30447 done
30448
30449
30450
30451         #
30452   tst_links_basename="unknown"
30453   tst_proto_basename="unknown"
30454   tst_compi_basename="unknown"
30455   tst_allow_basename="unknown"
30456   #
30457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30458 $as_echo_n "checking if basename can be linked... " >&6; }
30459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30460 /* end confdefs.h.  */
30461
30462
30463 #define basename innocuous_basename
30464 #ifdef __STDC__
30465 # include <limits.h>
30466 #else
30467 # include <assert.h>
30468 #endif
30469 #undef basename
30470 #ifdef __cplusplus
30471 extern "C"
30472 #endif
30473 char basename ();
30474 #if defined __stub_basename || defined __stub___basename
30475 choke me
30476 #endif
30477
30478 int main (void)
30479 {
30480 return basename ();
30481  ;
30482  return 0;
30483 }
30484
30485 _ACEOF
30486 if ac_fn_c_try_link "$LINENO"; then :
30487
30488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30489 $as_echo "yes" >&6; }
30490     tst_links_basename="yes"
30491
30492 else
30493
30494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30495 $as_echo "no" >&6; }
30496     tst_links_basename="no"
30497
30498 fi
30499 rm -f core conftest.err conftest.$ac_objext \
30500     conftest$ac_exeext conftest.$ac_ext
30501   #
30502   if test "$tst_links_basename" = "yes"; then
30503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30504 $as_echo_n "checking if basename is prototyped... " >&6; }
30505     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30506 /* end confdefs.h.  */
30507
30508       $curl_includes_string
30509       $curl_includes_libgen
30510       $curl_includes_unistd
30511
30512 _ACEOF
30513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30514   $EGREP "basename" >/dev/null 2>&1; then :
30515
30516       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30517 $as_echo "yes" >&6; }
30518       tst_proto_basename="yes"
30519
30520 else
30521
30522       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30523 $as_echo "no" >&6; }
30524       tst_proto_basename="no"
30525
30526 fi
30527 rm -f conftest*
30528
30529   fi
30530   #
30531   if test "$tst_proto_basename" = "yes"; then
30532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30533 $as_echo_n "checking if basename is compilable... " >&6; }
30534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30535 /* end confdefs.h.  */
30536
30537
30538         $curl_includes_string
30539         $curl_includes_libgen
30540         $curl_includes_unistd
30541
30542 int main (void)
30543 {
30544
30545         if(0 != basename(0))
30546           return 1;
30547
30548  ;
30549  return 0;
30550 }
30551
30552 _ACEOF
30553 if ac_fn_c_try_compile "$LINENO"; then :
30554
30555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30556 $as_echo "yes" >&6; }
30557       tst_compi_basename="yes"
30558
30559 else
30560
30561       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30562 $as_echo "no" >&6; }
30563       tst_compi_basename="no"
30564
30565 fi
30566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30567   fi
30568   #
30569   if test "$tst_compi_basename" = "yes"; then
30570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30571 $as_echo_n "checking if basename usage allowed... " >&6; }
30572     if test "x$curl_disallow_basename" != "xyes"; then
30573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30574 $as_echo "yes" >&6; }
30575       tst_allow_basename="yes"
30576     else
30577       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30578 $as_echo "no" >&6; }
30579       tst_allow_basename="no"
30580     fi
30581   fi
30582   #
30583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30584 $as_echo_n "checking if basename might be used... " >&6; }
30585   if test "$tst_links_basename" = "yes" &&
30586      test "$tst_proto_basename" = "yes" &&
30587      test "$tst_compi_basename" = "yes" &&
30588      test "$tst_allow_basename" = "yes"; then
30589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30590 $as_echo "yes" >&6; }
30591
30592 cat >>confdefs.h <<_ACEOF
30593 #define HAVE_BASENAME 1
30594 _ACEOF
30595
30596     curl_cv_func_basename="yes"
30597   else
30598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30599 $as_echo "no" >&6; }
30600     curl_cv_func_basename="no"
30601   fi
30602
30603
30604 curl_includes_socket="\
30605 /* includes start */
30606 #ifdef HAVE_SYS_TYPES_H
30607 #  include <sys/types.h>
30608 #endif
30609 #ifdef HAVE_SOCKET_H
30610 #  include <socket.h>
30611 #endif
30612 /* includes end */"
30613   for ac_header in sys/types.h socket.h
30614 do :
30615   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30616 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30617 "
30618 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30619   cat >>confdefs.h <<_ACEOF
30620 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30621 _ACEOF
30622
30623 fi
30624
30625 done
30626
30627
30628
30629       #
30630   tst_links_closesocket="unknown"
30631   tst_proto_closesocket="unknown"
30632   tst_compi_closesocket="unknown"
30633   tst_allow_closesocket="unknown"
30634   #
30635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30636 $as_echo_n "checking if closesocket can be linked... " >&6; }
30637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30638 /* end confdefs.h.  */
30639
30640
30641       $curl_includes_winsock2
30642       $curl_includes_socket
30643
30644 int main (void)
30645 {
30646
30647       if(0 != closesocket(0))
30648         return 1;
30649
30650  ;
30651  return 0;
30652 }
30653
30654 _ACEOF
30655 if ac_fn_c_try_link "$LINENO"; then :
30656
30657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30658 $as_echo "yes" >&6; }
30659     tst_links_closesocket="yes"
30660
30661 else
30662
30663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30664 $as_echo "no" >&6; }
30665     tst_links_closesocket="no"
30666
30667 fi
30668 rm -f core conftest.err conftest.$ac_objext \
30669     conftest$ac_exeext conftest.$ac_ext
30670   #
30671   if test "$tst_links_closesocket" = "yes"; then
30672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30673 $as_echo_n "checking if closesocket is prototyped... " >&6; }
30674     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30675 /* end confdefs.h.  */
30676
30677       $curl_includes_winsock2
30678       $curl_includes_socket
30679
30680 _ACEOF
30681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30682   $EGREP "closesocket" >/dev/null 2>&1; then :
30683
30684       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30685 $as_echo "yes" >&6; }
30686       tst_proto_closesocket="yes"
30687
30688 else
30689
30690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30691 $as_echo "no" >&6; }
30692       tst_proto_closesocket="no"
30693
30694 fi
30695 rm -f conftest*
30696
30697   fi
30698   #
30699   if test "$tst_proto_closesocket" = "yes"; then
30700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30701 $as_echo_n "checking if closesocket is compilable... " >&6; }
30702     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30703 /* end confdefs.h.  */
30704
30705
30706         $curl_includes_winsock2
30707         $curl_includes_socket
30708
30709 int main (void)
30710 {
30711
30712         if(0 != closesocket(0))
30713           return 1;
30714
30715  ;
30716  return 0;
30717 }
30718
30719 _ACEOF
30720 if ac_fn_c_try_compile "$LINENO"; then :
30721
30722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30723 $as_echo "yes" >&6; }
30724       tst_compi_closesocket="yes"
30725
30726 else
30727
30728       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30729 $as_echo "no" >&6; }
30730       tst_compi_closesocket="no"
30731
30732 fi
30733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30734   fi
30735   #
30736   if test "$tst_compi_closesocket" = "yes"; then
30737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30738 $as_echo_n "checking if closesocket usage allowed... " >&6; }
30739     if test "x$curl_disallow_closesocket" != "xyes"; then
30740       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30741 $as_echo "yes" >&6; }
30742       tst_allow_closesocket="yes"
30743     else
30744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30745 $as_echo "no" >&6; }
30746       tst_allow_closesocket="no"
30747     fi
30748   fi
30749   #
30750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30751 $as_echo_n "checking if closesocket might be used... " >&6; }
30752   if test "$tst_links_closesocket" = "yes" &&
30753      test "$tst_proto_closesocket" = "yes" &&
30754      test "$tst_compi_closesocket" = "yes" &&
30755      test "$tst_allow_closesocket" = "yes"; then
30756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30757 $as_echo "yes" >&6; }
30758
30759 cat >>confdefs.h <<_ACEOF
30760 #define HAVE_CLOSESOCKET 1
30761 _ACEOF
30762
30763     curl_cv_func_closesocket="yes"
30764   else
30765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30766 $as_echo "no" >&6; }
30767     curl_cv_func_closesocket="no"
30768   fi
30769
30770
30771 curl_includes_sys_socket="\
30772 /* includes start */
30773 #ifdef HAVE_SYS_TYPES_H
30774 #  include <sys/types.h>
30775 #endif
30776 #ifdef HAVE_SYS_SOCKET_H
30777 #  include <sys/socket.h>
30778 #endif
30779 /* includes end */"
30780   for ac_header in sys/types.h sys/socket.h
30781 do :
30782   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30783 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
30784 "
30785 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30786   cat >>confdefs.h <<_ACEOF
30787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30788 _ACEOF
30789
30790 fi
30791
30792 done
30793
30794
30795
30796     #
30797   tst_links_closesocket_camel="unknown"
30798   tst_proto_closesocket_camel="unknown"
30799   tst_compi_closesocket_camel="unknown"
30800   tst_allow_closesocket_camel="unknown"
30801   #
30802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30803 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
30804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30805 /* end confdefs.h.  */
30806
30807
30808       $curl_includes_sys_socket
30809
30810 int main (void)
30811 {
30812
30813       if(0 != CloseSocket(0))
30814         return 1;
30815
30816  ;
30817  return 0;
30818 }
30819
30820 _ACEOF
30821 if ac_fn_c_try_link "$LINENO"; then :
30822
30823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30824 $as_echo "yes" >&6; }
30825     tst_links_closesocket_camel="yes"
30826
30827 else
30828
30829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30830 $as_echo "no" >&6; }
30831     tst_links_closesocket_camel="no"
30832
30833 fi
30834 rm -f core conftest.err conftest.$ac_objext \
30835     conftest$ac_exeext conftest.$ac_ext
30836   #
30837   if test "$tst_links_closesocket_camel" = "yes"; then
30838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30839 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30840     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30841 /* end confdefs.h.  */
30842
30843       $curl_includes_sys_socket
30844
30845 _ACEOF
30846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30847   $EGREP "CloseSocket" >/dev/null 2>&1; then :
30848
30849       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30850 $as_echo "yes" >&6; }
30851       tst_proto_closesocket_camel="yes"
30852
30853 else
30854
30855       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30856 $as_echo "no" >&6; }
30857       tst_proto_closesocket_camel="no"
30858
30859 fi
30860 rm -f conftest*
30861
30862   fi
30863   #
30864   if test "$tst_proto_closesocket_camel" = "yes"; then
30865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30866 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
30867     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30868 /* end confdefs.h.  */
30869
30870
30871         $curl_includes_sys_socket
30872
30873 int main (void)
30874 {
30875
30876         if(0 != CloseSocket(0))
30877           return 1;
30878
30879  ;
30880  return 0;
30881 }
30882
30883 _ACEOF
30884 if ac_fn_c_try_compile "$LINENO"; then :
30885
30886       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30887 $as_echo "yes" >&6; }
30888       tst_compi_closesocket_camel="yes"
30889
30890 else
30891
30892       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30893 $as_echo "no" >&6; }
30894       tst_compi_closesocket_camel="no"
30895
30896 fi
30897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30898   fi
30899   #
30900   if test "$tst_compi_closesocket_camel" = "yes"; then
30901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30902 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30903     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30904       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30905 $as_echo "yes" >&6; }
30906       tst_allow_closesocket_camel="yes"
30907     else
30908       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30909 $as_echo "no" >&6; }
30910       tst_allow_closesocket_camel="no"
30911     fi
30912   fi
30913   #
30914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30915 $as_echo_n "checking if CloseSocket might be used... " >&6; }
30916   if test "$tst_links_closesocket_camel" = "yes" &&
30917      test "$tst_proto_closesocket_camel" = "yes" &&
30918      test "$tst_compi_closesocket_camel" = "yes" &&
30919      test "$tst_allow_closesocket_camel" = "yes"; then
30920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30921 $as_echo "yes" >&6; }
30922
30923 cat >>confdefs.h <<_ACEOF
30924 #define HAVE_CLOSESOCKET_CAMEL 1
30925 _ACEOF
30926
30927     curl_cv_func_closesocket_camel="yes"
30928   else
30929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30930 $as_echo "no" >&6; }
30931     curl_cv_func_closesocket_camel="no"
30932   fi
30933
30934
30935         #
30936   tst_links_connect="unknown"
30937   tst_proto_connect="unknown"
30938   tst_compi_connect="unknown"
30939   tst_allow_connect="unknown"
30940   #
30941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30942 $as_echo_n "checking if connect can be linked... " >&6; }
30943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30944 /* end confdefs.h.  */
30945
30946
30947       $curl_includes_winsock2
30948       $curl_includes_sys_socket
30949       $curl_includes_socket
30950
30951 int main (void)
30952 {
30953
30954       if(0 != connect(0, 0, 0))
30955         return 1;
30956
30957  ;
30958  return 0;
30959 }
30960
30961 _ACEOF
30962 if ac_fn_c_try_link "$LINENO"; then :
30963
30964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30965 $as_echo "yes" >&6; }
30966     tst_links_connect="yes"
30967
30968 else
30969
30970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30971 $as_echo "no" >&6; }
30972     tst_links_connect="no"
30973
30974 fi
30975 rm -f core conftest.err conftest.$ac_objext \
30976     conftest$ac_exeext conftest.$ac_ext
30977   #
30978   if test "$tst_links_connect" = "yes"; then
30979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30980 $as_echo_n "checking if connect is prototyped... " >&6; }
30981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30982 /* end confdefs.h.  */
30983
30984       $curl_includes_winsock2
30985       $curl_includes_sys_socket
30986       $curl_includes_socket
30987
30988 _ACEOF
30989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30990   $EGREP "connect" >/dev/null 2>&1; then :
30991
30992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30993 $as_echo "yes" >&6; }
30994       tst_proto_connect="yes"
30995
30996 else
30997
30998       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30999 $as_echo "no" >&6; }
31000       tst_proto_connect="no"
31001
31002 fi
31003 rm -f conftest*
31004
31005   fi
31006   #
31007   if test "$tst_proto_connect" = "yes"; then
31008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
31009 $as_echo_n "checking if connect is compilable... " >&6; }
31010     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31011 /* end confdefs.h.  */
31012
31013
31014         $curl_includes_winsock2
31015         $curl_includes_sys_socket
31016         $curl_includes_socket
31017
31018 int main (void)
31019 {
31020
31021         if(0 != connect(0, 0, 0))
31022           return 1;
31023
31024  ;
31025  return 0;
31026 }
31027
31028 _ACEOF
31029 if ac_fn_c_try_compile "$LINENO"; then :
31030
31031       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31032 $as_echo "yes" >&6; }
31033       tst_compi_connect="yes"
31034
31035 else
31036
31037       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31038 $as_echo "no" >&6; }
31039       tst_compi_connect="no"
31040
31041 fi
31042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31043   fi
31044   #
31045   if test "$tst_compi_connect" = "yes"; then
31046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
31047 $as_echo_n "checking if connect usage allowed... " >&6; }
31048     if test "x$curl_disallow_connect" != "xyes"; then
31049       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31050 $as_echo "yes" >&6; }
31051       tst_allow_connect="yes"
31052     else
31053       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31054 $as_echo "no" >&6; }
31055       tst_allow_connect="no"
31056     fi
31057   fi
31058   #
31059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
31060 $as_echo_n "checking if connect might be used... " >&6; }
31061   if test "$tst_links_connect" = "yes" &&
31062      test "$tst_proto_connect" = "yes" &&
31063      test "$tst_compi_connect" = "yes" &&
31064      test "$tst_allow_connect" = "yes"; then
31065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31066 $as_echo "yes" >&6; }
31067
31068 cat >>confdefs.h <<_ACEOF
31069 #define HAVE_CONNECT 1
31070 _ACEOF
31071
31072     curl_cv_func_connect="yes"
31073   else
31074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31075 $as_echo "no" >&6; }
31076     curl_cv_func_connect="no"
31077   fi
31078
31079
31080 curl_includes_fcntl="\
31081 /* includes start */
31082 #ifdef HAVE_SYS_TYPES_H
31083 #  include <sys/types.h>
31084 #endif
31085 #ifdef HAVE_UNISTD_H
31086 #  include <unistd.h>
31087 #endif
31088 #ifdef HAVE_FCNTL_H
31089 #  include <fcntl.h>
31090 #endif
31091 /* includes end */"
31092   for ac_header in sys/types.h unistd.h fcntl.h
31093 do :
31094   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31095 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
31096 "
31097 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31098   cat >>confdefs.h <<_ACEOF
31099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31100 _ACEOF
31101
31102 fi
31103
31104 done
31105
31106
31107
31108     #
31109   tst_links_fcntl="unknown"
31110   tst_proto_fcntl="unknown"
31111   tst_compi_fcntl="unknown"
31112   tst_allow_fcntl="unknown"
31113   #
31114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31115 $as_echo_n "checking if fcntl can be linked... " >&6; }
31116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31117 /* end confdefs.h.  */
31118
31119
31120 #define fcntl innocuous_fcntl
31121 #ifdef __STDC__
31122 # include <limits.h>
31123 #else
31124 # include <assert.h>
31125 #endif
31126 #undef fcntl
31127 #ifdef __cplusplus
31128 extern "C"
31129 #endif
31130 char fcntl ();
31131 #if defined __stub_fcntl || defined __stub___fcntl
31132 choke me
31133 #endif
31134
31135 int main (void)
31136 {
31137 return fcntl ();
31138  ;
31139  return 0;
31140 }
31141
31142 _ACEOF
31143 if ac_fn_c_try_link "$LINENO"; then :
31144
31145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31146 $as_echo "yes" >&6; }
31147     tst_links_fcntl="yes"
31148
31149 else
31150
31151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31152 $as_echo "no" >&6; }
31153     tst_links_fcntl="no"
31154
31155 fi
31156 rm -f core conftest.err conftest.$ac_objext \
31157     conftest$ac_exeext conftest.$ac_ext
31158   #
31159   if test "$tst_links_fcntl" = "yes"; then
31160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31161 $as_echo_n "checking if fcntl is prototyped... " >&6; }
31162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31163 /* end confdefs.h.  */
31164
31165       $curl_includes_fcntl
31166
31167 _ACEOF
31168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31169   $EGREP "fcntl" >/dev/null 2>&1; then :
31170
31171       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31172 $as_echo "yes" >&6; }
31173       tst_proto_fcntl="yes"
31174
31175 else
31176
31177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31178 $as_echo "no" >&6; }
31179       tst_proto_fcntl="no"
31180
31181 fi
31182 rm -f conftest*
31183
31184   fi
31185   #
31186   if test "$tst_proto_fcntl" = "yes"; then
31187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31188 $as_echo_n "checking if fcntl is compilable... " >&6; }
31189     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31190 /* end confdefs.h.  */
31191
31192
31193         $curl_includes_fcntl
31194
31195 int main (void)
31196 {
31197
31198         if(0 != fcntl(0, 0, 0))
31199           return 1;
31200
31201  ;
31202  return 0;
31203 }
31204
31205 _ACEOF
31206 if ac_fn_c_try_compile "$LINENO"; then :
31207
31208       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31209 $as_echo "yes" >&6; }
31210       tst_compi_fcntl="yes"
31211
31212 else
31213
31214       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31215 $as_echo "no" >&6; }
31216       tst_compi_fcntl="no"
31217
31218 fi
31219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31220   fi
31221   #
31222   if test "$tst_compi_fcntl" = "yes"; then
31223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31224 $as_echo_n "checking if fcntl usage allowed... " >&6; }
31225     if test "x$curl_disallow_fcntl" != "xyes"; then
31226       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31227 $as_echo "yes" >&6; }
31228       tst_allow_fcntl="yes"
31229     else
31230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31231 $as_echo "no" >&6; }
31232       tst_allow_fcntl="no"
31233     fi
31234   fi
31235   #
31236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31237 $as_echo_n "checking if fcntl might be used... " >&6; }
31238   if test "$tst_links_fcntl" = "yes" &&
31239      test "$tst_proto_fcntl" = "yes" &&
31240      test "$tst_compi_fcntl" = "yes" &&
31241      test "$tst_allow_fcntl" = "yes"; then
31242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31243 $as_echo "yes" >&6; }
31244
31245 cat >>confdefs.h <<_ACEOF
31246 #define HAVE_FCNTL 1
31247 _ACEOF
31248
31249     curl_cv_func_fcntl="yes"
31250
31251   #
31252   tst_compi_fcntl_o_nonblock="unknown"
31253   tst_allow_fcntl_o_nonblock="unknown"
31254   #
31255   case $host_os in
31256     sunos4* | aix3* | beos*)
31257             curl_disallow_fcntl_o_nonblock="yes"
31258       ;;
31259   esac
31260   #
31261   if test "$curl_cv_func_fcntl" = "yes"; then
31262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31263 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31264     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31265 /* end confdefs.h.  */
31266
31267
31268         $curl_includes_fcntl
31269
31270 int main (void)
31271 {
31272
31273         int flags = 0;
31274         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31275           return 1;
31276
31277  ;
31278  return 0;
31279 }
31280
31281 _ACEOF
31282 if ac_fn_c_try_compile "$LINENO"; then :
31283
31284       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31285 $as_echo "yes" >&6; }
31286       tst_compi_fcntl_o_nonblock="yes"
31287
31288 else
31289
31290       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31291 $as_echo "no" >&6; }
31292       tst_compi_fcntl_o_nonblock="no"
31293
31294 fi
31295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31296   fi
31297   #
31298   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31300 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31301     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31302       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31303 $as_echo "yes" >&6; }
31304       tst_allow_fcntl_o_nonblock="yes"
31305     else
31306       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31307 $as_echo "no" >&6; }
31308       tst_allow_fcntl_o_nonblock="no"
31309     fi
31310   fi
31311   #
31312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31313 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31314   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31315      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31317 $as_echo "yes" >&6; }
31318
31319 cat >>confdefs.h <<_ACEOF
31320 #define HAVE_FCNTL_O_NONBLOCK 1
31321 _ACEOF
31322
31323     curl_cv_func_fcntl_o_nonblock="yes"
31324   else
31325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31326 $as_echo "no" >&6; }
31327     curl_cv_func_fcntl_o_nonblock="no"
31328   fi
31329
31330   else
31331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31332 $as_echo "no" >&6; }
31333     curl_cv_func_fcntl="no"
31334   fi
31335
31336
31337 curl_includes_stdio="\
31338 /* includes start */
31339 #ifdef HAVE_SYS_TYPES_H
31340 #  include <sys/types.h>
31341 #endif
31342 #ifdef HAVE_STDIO_H
31343 #  include <stdio.h>
31344 #endif
31345 /* includes end */"
31346   for ac_header in sys/types.h stdio.h
31347 do :
31348   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31349 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31350 "
31351 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31352   cat >>confdefs.h <<_ACEOF
31353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31354 _ACEOF
31355
31356 fi
31357
31358 done
31359
31360
31361
31362     #
31363   tst_links_fdopen="unknown"
31364   tst_proto_fdopen="unknown"
31365   tst_compi_fdopen="unknown"
31366   tst_allow_fdopen="unknown"
31367   #
31368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31369 $as_echo_n "checking if fdopen can be linked... " >&6; }
31370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31371 /* end confdefs.h.  */
31372
31373
31374 #define fdopen innocuous_fdopen
31375 #ifdef __STDC__
31376 # include <limits.h>
31377 #else
31378 # include <assert.h>
31379 #endif
31380 #undef fdopen
31381 #ifdef __cplusplus
31382 extern "C"
31383 #endif
31384 char fdopen ();
31385 #if defined __stub_fdopen || defined __stub___fdopen
31386 choke me
31387 #endif
31388
31389 int main (void)
31390 {
31391 return fdopen ();
31392  ;
31393  return 0;
31394 }
31395
31396 _ACEOF
31397 if ac_fn_c_try_link "$LINENO"; then :
31398
31399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31400 $as_echo "yes" >&6; }
31401     tst_links_fdopen="yes"
31402
31403 else
31404
31405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31406 $as_echo "no" >&6; }
31407     tst_links_fdopen="no"
31408
31409 fi
31410 rm -f core conftest.err conftest.$ac_objext \
31411     conftest$ac_exeext conftest.$ac_ext
31412   #
31413   if test "$tst_links_fdopen" = "yes"; then
31414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31415 $as_echo_n "checking if fdopen is prototyped... " >&6; }
31416     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31417 /* end confdefs.h.  */
31418
31419       $curl_includes_stdio
31420
31421 _ACEOF
31422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31423   $EGREP "fdopen" >/dev/null 2>&1; then :
31424
31425       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31426 $as_echo "yes" >&6; }
31427       tst_proto_fdopen="yes"
31428
31429 else
31430
31431       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31432 $as_echo "no" >&6; }
31433       tst_proto_fdopen="no"
31434
31435 fi
31436 rm -f conftest*
31437
31438   fi
31439   #
31440   if test "$tst_proto_fdopen" = "yes"; then
31441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31442 $as_echo_n "checking if fdopen is compilable... " >&6; }
31443     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31444 /* end confdefs.h.  */
31445
31446
31447         $curl_includes_stdio
31448
31449 int main (void)
31450 {
31451
31452         if(0 != fdopen(0, 0))
31453           return 1;
31454
31455  ;
31456  return 0;
31457 }
31458
31459 _ACEOF
31460 if ac_fn_c_try_compile "$LINENO"; then :
31461
31462       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31463 $as_echo "yes" >&6; }
31464       tst_compi_fdopen="yes"
31465
31466 else
31467
31468       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31469 $as_echo "no" >&6; }
31470       tst_compi_fdopen="no"
31471
31472 fi
31473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31474   fi
31475   #
31476   if test "$tst_compi_fdopen" = "yes"; then
31477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31478 $as_echo_n "checking if fdopen usage allowed... " >&6; }
31479     if test "x$curl_disallow_fdopen" != "xyes"; then
31480       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31481 $as_echo "yes" >&6; }
31482       tst_allow_fdopen="yes"
31483     else
31484       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31485 $as_echo "no" >&6; }
31486       tst_allow_fdopen="no"
31487     fi
31488   fi
31489   #
31490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31491 $as_echo_n "checking if fdopen might be used... " >&6; }
31492   if test "$tst_links_fdopen" = "yes" &&
31493      test "$tst_proto_fdopen" = "yes" &&
31494      test "$tst_compi_fdopen" = "yes" &&
31495      test "$tst_allow_fdopen" = "yes"; then
31496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31497 $as_echo "yes" >&6; }
31498
31499 cat >>confdefs.h <<_ACEOF
31500 #define HAVE_FDOPEN 1
31501 _ACEOF
31502
31503     curl_cv_func_fdopen="yes"
31504   else
31505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31506 $as_echo "no" >&6; }
31507     curl_cv_func_fdopen="no"
31508   fi
31509
31510
31511 curl_includes_ws2tcpip="\
31512 /* includes start */
31513 #ifdef HAVE_WINDOWS_H
31514 #  ifndef WIN32_LEAN_AND_MEAN
31515 #    define WIN32_LEAN_AND_MEAN
31516 #  endif
31517 #  include <windows.h>
31518 #  ifdef HAVE_WINSOCK2_H
31519 #    include <winsock2.h>
31520 #    ifdef HAVE_WS2TCPIP_H
31521 #       include <ws2tcpip.h>
31522 #    endif
31523 #  endif
31524 #endif
31525 /* includes end */"
31526
31527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
31528 $as_echo_n "checking for windows.h... " >&6; }
31529 if ${curl_cv_header_windows_h+:} false; then :
31530   $as_echo_n "(cached) " >&6
31531 else
31532
31533     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31534 /* end confdefs.h.  */
31535
31536
31537 #undef inline
31538 #ifndef WIN32_LEAN_AND_MEAN
31539 #define WIN32_LEAN_AND_MEAN
31540 #endif
31541 #include <windows.h>
31542
31543 int main (void)
31544 {
31545
31546 #if defined(__CYGWIN__) || defined(__CEGCC__)
31547         HAVE_WINDOWS_H shall not be defined.
31548 #else
31549         int dummy=2*WINVER;
31550 #endif
31551
31552  ;
31553  return 0;
31554 }
31555
31556 _ACEOF
31557 if ac_fn_c_try_compile "$LINENO"; then :
31558
31559       curl_cv_header_windows_h="yes"
31560
31561 else
31562
31563       curl_cv_header_windows_h="no"
31564
31565 fi
31566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31567
31568 fi
31569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
31570 $as_echo "$curl_cv_header_windows_h" >&6; }
31571   case "$curl_cv_header_windows_h" in
31572     yes)
31573
31574 cat >>confdefs.h <<_ACEOF
31575 #define HAVE_WINDOWS_H 1
31576 _ACEOF
31577
31578       ;;
31579   esac
31580
31581
31582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
31583 $as_echo_n "checking for winsock2.h... " >&6; }
31584 if ${curl_cv_header_winsock2_h+:} false; then :
31585   $as_echo_n "(cached) " >&6
31586 else
31587
31588     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31589 /* end confdefs.h.  */
31590
31591
31592 #undef inline
31593 #ifndef WIN32_LEAN_AND_MEAN
31594 #define WIN32_LEAN_AND_MEAN
31595 #endif
31596 #include <windows.h>
31597 #include <winsock2.h>
31598
31599 int main (void)
31600 {
31601
31602 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31603         HAVE_WINSOCK2_H shall not be defined.
31604 #else
31605         int dummy=2*IPPROTO_ESP;
31606 #endif
31607
31608  ;
31609  return 0;
31610 }
31611
31612 _ACEOF
31613 if ac_fn_c_try_compile "$LINENO"; then :
31614
31615       curl_cv_header_winsock2_h="yes"
31616
31617 else
31618
31619       curl_cv_header_winsock2_h="no"
31620
31621 fi
31622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31623
31624 fi
31625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
31626 $as_echo "$curl_cv_header_winsock2_h" >&6; }
31627   case "$curl_cv_header_winsock2_h" in
31628     yes)
31629
31630 cat >>confdefs.h <<_ACEOF
31631 #define HAVE_WINSOCK2_H 1
31632 _ACEOF
31633
31634       ;;
31635   esac
31636
31637
31638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
31639 $as_echo_n "checking for ws2tcpip.h... " >&6; }
31640 if ${curl_cv_header_ws2tcpip_h+:} false; then :
31641   $as_echo_n "(cached) " >&6
31642 else
31643
31644     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31645 /* end confdefs.h.  */
31646
31647
31648 #undef inline
31649 #ifndef WIN32_LEAN_AND_MEAN
31650 #define WIN32_LEAN_AND_MEAN
31651 #endif
31652 #include <windows.h>
31653 #include <winsock2.h>
31654 #include <ws2tcpip.h>
31655
31656 int main (void)
31657 {
31658
31659 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31660         HAVE_WS2TCPIP_H shall not be defined.
31661 #else
31662         int dummy=2*IP_PKTINFO;
31663 #endif
31664
31665  ;
31666  return 0;
31667 }
31668
31669 _ACEOF
31670 if ac_fn_c_try_compile "$LINENO"; then :
31671
31672       curl_cv_header_ws2tcpip_h="yes"
31673
31674 else
31675
31676       curl_cv_header_ws2tcpip_h="no"
31677
31678 fi
31679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31680
31681 fi
31682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
31683 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
31684   case "$curl_cv_header_ws2tcpip_h" in
31685     yes)
31686
31687 cat >>confdefs.h <<_ACEOF
31688 #define HAVE_WS2TCPIP_H 1
31689 _ACEOF
31690
31691       ;;
31692   esac
31693
31694
31695
31696 curl_includes_netdb="\
31697 /* includes start */
31698 #ifdef HAVE_SYS_TYPES_H
31699 #  include <sys/types.h>
31700 #endif
31701 #ifdef HAVE_NETDB_H
31702 #  include <netdb.h>
31703 #endif
31704 /* includes end */"
31705   for ac_header in sys/types.h netdb.h
31706 do :
31707   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31708 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31709 "
31710 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31711   cat >>confdefs.h <<_ACEOF
31712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31713 _ACEOF
31714
31715 fi
31716
31717 done
31718
31719
31720
31721         #
31722   tst_links_freeaddrinfo="unknown"
31723   tst_proto_freeaddrinfo="unknown"
31724   tst_compi_freeaddrinfo="unknown"
31725   tst_allow_freeaddrinfo="unknown"
31726   #
31727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31728 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31730 /* end confdefs.h.  */
31731
31732
31733       $curl_includes_ws2tcpip
31734       $curl_includes_sys_socket
31735       $curl_includes_netdb
31736
31737 int main (void)
31738 {
31739
31740       freeaddrinfo(0);
31741
31742  ;
31743  return 0;
31744 }
31745
31746 _ACEOF
31747 if ac_fn_c_try_link "$LINENO"; then :
31748
31749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31750 $as_echo "yes" >&6; }
31751     tst_links_freeaddrinfo="yes"
31752
31753 else
31754
31755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31756 $as_echo "no" >&6; }
31757     tst_links_freeaddrinfo="no"
31758
31759 fi
31760 rm -f core conftest.err conftest.$ac_objext \
31761     conftest$ac_exeext conftest.$ac_ext
31762   #
31763   if test "$tst_links_freeaddrinfo" = "yes"; then
31764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31765 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31766     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31767 /* end confdefs.h.  */
31768
31769       $curl_includes_ws2tcpip
31770       $curl_includes_sys_socket
31771       $curl_includes_netdb
31772
31773 _ACEOF
31774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31775   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31776
31777       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31778 $as_echo "yes" >&6; }
31779       tst_proto_freeaddrinfo="yes"
31780
31781 else
31782
31783       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31784 $as_echo "no" >&6; }
31785       tst_proto_freeaddrinfo="no"
31786
31787 fi
31788 rm -f conftest*
31789
31790   fi
31791   #
31792   if test "$tst_proto_freeaddrinfo" = "yes"; then
31793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31794 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31795     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31796 /* end confdefs.h.  */
31797
31798
31799         $curl_includes_ws2tcpip
31800         $curl_includes_sys_socket
31801         $curl_includes_netdb
31802
31803 int main (void)
31804 {
31805
31806         freeaddrinfo(0);
31807
31808  ;
31809  return 0;
31810 }
31811
31812 _ACEOF
31813 if ac_fn_c_try_compile "$LINENO"; then :
31814
31815       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31816 $as_echo "yes" >&6; }
31817       tst_compi_freeaddrinfo="yes"
31818
31819 else
31820
31821       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31822 $as_echo "no" >&6; }
31823       tst_compi_freeaddrinfo="no"
31824
31825 fi
31826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31827   fi
31828   #
31829   if test "$tst_compi_freeaddrinfo" = "yes"; then
31830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31831 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31832     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31833       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31834 $as_echo "yes" >&6; }
31835       tst_allow_freeaddrinfo="yes"
31836     else
31837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31838 $as_echo "no" >&6; }
31839       tst_allow_freeaddrinfo="no"
31840     fi
31841   fi
31842   #
31843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31844 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31845   if test "$tst_links_freeaddrinfo" = "yes" &&
31846      test "$tst_proto_freeaddrinfo" = "yes" &&
31847      test "$tst_compi_freeaddrinfo" = "yes" &&
31848      test "$tst_allow_freeaddrinfo" = "yes"; then
31849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31850 $as_echo "yes" >&6; }
31851
31852 cat >>confdefs.h <<_ACEOF
31853 #define HAVE_FREEADDRINFO 1
31854 _ACEOF
31855
31856     curl_cv_func_freeaddrinfo="yes"
31857   else
31858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31859 $as_echo "no" >&6; }
31860     curl_cv_func_freeaddrinfo="no"
31861   fi
31862
31863
31864 curl_includes_ifaddrs="\
31865 /* includes start */
31866 #ifdef HAVE_SYS_TYPES_H
31867 #  include <sys/types.h>
31868 #endif
31869 #ifdef HAVE_SYS_SOCKET_H
31870 #  include <sys/socket.h>
31871 #endif
31872 #ifdef HAVE_NETINET_IN_H
31873 #  include <netinet/in.h>
31874 #endif
31875 #ifdef HAVE_IFADDRS_H
31876 #  include <ifaddrs.h>
31877 #endif
31878 /* includes end */"
31879   for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31880 do :
31881   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31882 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31883 "
31884 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31885   cat >>confdefs.h <<_ACEOF
31886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31887 _ACEOF
31888
31889 fi
31890
31891 done
31892
31893
31894
31895     #
31896   tst_links_freeifaddrs="unknown"
31897   tst_proto_freeifaddrs="unknown"
31898   tst_compi_freeifaddrs="unknown"
31899   tst_allow_freeifaddrs="unknown"
31900   #
31901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31902 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31904 /* end confdefs.h.  */
31905
31906
31907 #define freeifaddrs innocuous_freeifaddrs
31908 #ifdef __STDC__
31909 # include <limits.h>
31910 #else
31911 # include <assert.h>
31912 #endif
31913 #undef freeifaddrs
31914 #ifdef __cplusplus
31915 extern "C"
31916 #endif
31917 char freeifaddrs ();
31918 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31919 choke me
31920 #endif
31921
31922 int main (void)
31923 {
31924 return freeifaddrs ();
31925  ;
31926  return 0;
31927 }
31928
31929 _ACEOF
31930 if ac_fn_c_try_link "$LINENO"; then :
31931
31932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31933 $as_echo "yes" >&6; }
31934     tst_links_freeifaddrs="yes"
31935
31936 else
31937
31938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31939 $as_echo "no" >&6; }
31940     tst_links_freeifaddrs="no"
31941
31942 fi
31943 rm -f core conftest.err conftest.$ac_objext \
31944     conftest$ac_exeext conftest.$ac_ext
31945   #
31946   if test "$tst_links_freeifaddrs" = "yes"; then
31947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31948 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31949     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31950 /* end confdefs.h.  */
31951
31952       $curl_includes_ifaddrs
31953
31954 _ACEOF
31955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31956   $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31957
31958       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31959 $as_echo "yes" >&6; }
31960       tst_proto_freeifaddrs="yes"
31961
31962 else
31963
31964       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31965 $as_echo "no" >&6; }
31966       tst_proto_freeifaddrs="no"
31967
31968 fi
31969 rm -f conftest*
31970
31971   fi
31972   #
31973   if test "$tst_proto_freeifaddrs" = "yes"; then
31974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31975 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31976     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31977 /* end confdefs.h.  */
31978
31979
31980         $curl_includes_ifaddrs
31981
31982 int main (void)
31983 {
31984
31985         freeifaddrs(0);
31986
31987  ;
31988  return 0;
31989 }
31990
31991 _ACEOF
31992 if ac_fn_c_try_compile "$LINENO"; then :
31993
31994       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31995 $as_echo "yes" >&6; }
31996       tst_compi_freeifaddrs="yes"
31997
31998 else
31999
32000       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32001 $as_echo "no" >&6; }
32002       tst_compi_freeifaddrs="no"
32003
32004 fi
32005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32006   fi
32007   #
32008   if test "$tst_compi_freeifaddrs" = "yes"; then
32009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
32010 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
32011     if test "x$curl_disallow_freeifaddrs" != "xyes"; then
32012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32013 $as_echo "yes" >&6; }
32014       tst_allow_freeifaddrs="yes"
32015     else
32016       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32017 $as_echo "no" >&6; }
32018       tst_allow_freeifaddrs="no"
32019     fi
32020   fi
32021   #
32022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
32023 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
32024   if test "$tst_links_freeifaddrs" = "yes" &&
32025      test "$tst_proto_freeifaddrs" = "yes" &&
32026      test "$tst_compi_freeifaddrs" = "yes" &&
32027      test "$tst_allow_freeifaddrs" = "yes"; then
32028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32029 $as_echo "yes" >&6; }
32030
32031 cat >>confdefs.h <<_ACEOF
32032 #define HAVE_FREEIFADDRS 1
32033 _ACEOF
32034
32035     curl_cv_func_freeifaddrs="yes"
32036   else
32037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32038 $as_echo "no" >&6; }
32039     curl_cv_func_freeifaddrs="no"
32040   fi
32041
32042
32043 curl_includes_sys_xattr="\
32044 /* includes start */
32045 #ifdef HAVE_SYS_TYPES_H
32046 #  include <sys/types.h>
32047 #endif
32048 #ifdef HAVE_SYS_XATTR_H
32049 #  include <sys/xattr.h>
32050 #endif
32051 /* includes end */"
32052   for ac_header in sys/types.h sys/xattr.h
32053 do :
32054   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32055 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
32056 "
32057 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32058   cat >>confdefs.h <<_ACEOF
32059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32060 _ACEOF
32061
32062 fi
32063
32064 done
32065
32066
32067
32068     #
32069   tst_links_fsetxattr="unknown"
32070   tst_proto_fsetxattr="unknown"
32071   tst_compi_fsetxattr="unknown"
32072   tst_allow_fsetxattr="unknown"
32073   tst_nargs_fsetxattr="unknown"
32074   #
32075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
32076 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
32077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32078 /* end confdefs.h.  */
32079
32080
32081 #define fsetxattr innocuous_fsetxattr
32082 #ifdef __STDC__
32083 # include <limits.h>
32084 #else
32085 # include <assert.h>
32086 #endif
32087 #undef fsetxattr
32088 #ifdef __cplusplus
32089 extern "C"
32090 #endif
32091 char fsetxattr ();
32092 #if defined __stub_fsetxattr || defined __stub___fsetxattr
32093 choke me
32094 #endif
32095
32096 int main (void)
32097 {
32098 return fsetxattr ();
32099  ;
32100  return 0;
32101 }
32102
32103 _ACEOF
32104 if ac_fn_c_try_link "$LINENO"; then :
32105
32106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32107 $as_echo "yes" >&6; }
32108     tst_links_fsetxattr="yes"
32109
32110 else
32111
32112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32113 $as_echo "no" >&6; }
32114     tst_links_fsetxattr="no"
32115
32116 fi
32117 rm -f core conftest.err conftest.$ac_objext \
32118     conftest$ac_exeext conftest.$ac_ext
32119   #
32120   if test "$tst_links_fsetxattr" = "yes"; then
32121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32122 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32123     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32124 /* end confdefs.h.  */
32125
32126       $curl_includes_sys_xattr
32127
32128 _ACEOF
32129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32130   $EGREP "fsetxattr" >/dev/null 2>&1; then :
32131
32132       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32133 $as_echo "yes" >&6; }
32134       tst_proto_fsetxattr="yes"
32135
32136 else
32137
32138       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32139 $as_echo "no" >&6; }
32140       tst_proto_fsetxattr="no"
32141
32142 fi
32143 rm -f conftest*
32144
32145   fi
32146   #
32147   if test "$tst_proto_fsetxattr" = "yes"; then
32148     if test "$tst_nargs_fsetxattr" = "unknown"; then
32149       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
32150 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
32151       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32152 /* end confdefs.h.  */
32153
32154
32155           $curl_includes_sys_xattr
32156
32157 int main (void)
32158 {
32159
32160           if(0 != fsetxattr(0, 0, 0, 0, 0))
32161             return 1;
32162
32163  ;
32164  return 0;
32165 }
32166
32167 _ACEOF
32168 if ac_fn_c_try_compile "$LINENO"; then :
32169
32170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32171 $as_echo "yes" >&6; }
32172         tst_compi_fsetxattr="yes"
32173         tst_nargs_fsetxattr="5"
32174
32175 else
32176
32177         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32178 $as_echo "no" >&6; }
32179         tst_compi_fsetxattr="no"
32180
32181 fi
32182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32183     fi
32184     if test "$tst_nargs_fsetxattr" = "unknown"; then
32185       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
32186 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
32187       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32188 /* end confdefs.h.  */
32189
32190
32191           $curl_includes_sys_xattr
32192
32193 int main (void)
32194 {
32195
32196           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
32197             return 1;
32198
32199  ;
32200  return 0;
32201 }
32202
32203 _ACEOF
32204 if ac_fn_c_try_compile "$LINENO"; then :
32205
32206         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32207 $as_echo "yes" >&6; }
32208         tst_compi_fsetxattr="yes"
32209         tst_nargs_fsetxattr="6"
32210
32211 else
32212
32213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32214 $as_echo "no" >&6; }
32215         tst_compi_fsetxattr="no"
32216
32217 fi
32218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32219     fi
32220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
32221 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
32222     if test "$tst_compi_fsetxattr" = "yes"; then
32223       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32224 $as_echo "yes" >&6; }
32225     else
32226       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32227 $as_echo "no" >&6; }
32228     fi
32229   fi
32230   #
32231   if test "$tst_compi_fsetxattr" = "yes"; then
32232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
32233 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
32234     if test "x$curl_disallow_fsetxattr" != "xyes"; then
32235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32236 $as_echo "yes" >&6; }
32237       tst_allow_fsetxattr="yes"
32238     else
32239       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32240 $as_echo "no" >&6; }
32241       tst_allow_fsetxattr="no"
32242     fi
32243   fi
32244   #
32245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
32246 $as_echo_n "checking if fsetxattr might be used... " >&6; }
32247   if test "$tst_links_fsetxattr" = "yes" &&
32248      test "$tst_proto_fsetxattr" = "yes" &&
32249      test "$tst_compi_fsetxattr" = "yes" &&
32250      test "$tst_allow_fsetxattr" = "yes"; then
32251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32252 $as_echo "yes" >&6; }
32253
32254 cat >>confdefs.h <<_ACEOF
32255 #define HAVE_FSETXATTR 1
32256 _ACEOF
32257
32258             #
32259     if test "$tst_nargs_fsetxattr" -eq "5"; then
32260
32261 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32262
32263     elif test "$tst_nargs_fsetxattr" -eq "6"; then
32264
32265 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32266
32267     fi
32268     #
32269     curl_cv_func_fsetxattr="yes"
32270   else
32271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32272 $as_echo "no" >&6; }
32273     curl_cv_func_fsetxattr="no"
32274   fi
32275
32276
32277     #
32278   tst_links_ftruncate="unknown"
32279   tst_proto_ftruncate="unknown"
32280   tst_compi_ftruncate="unknown"
32281   tst_allow_ftruncate="unknown"
32282   #
32283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32284 $as_echo_n "checking if ftruncate can be linked... " >&6; }
32285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32286 /* end confdefs.h.  */
32287
32288
32289 #define ftruncate innocuous_ftruncate
32290 #ifdef __STDC__
32291 # include <limits.h>
32292 #else
32293 # include <assert.h>
32294 #endif
32295 #undef ftruncate
32296 #ifdef __cplusplus
32297 extern "C"
32298 #endif
32299 char ftruncate ();
32300 #if defined __stub_ftruncate || defined __stub___ftruncate
32301 choke me
32302 #endif
32303
32304 int main (void)
32305 {
32306 return ftruncate ();
32307  ;
32308  return 0;
32309 }
32310
32311 _ACEOF
32312 if ac_fn_c_try_link "$LINENO"; then :
32313
32314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32315 $as_echo "yes" >&6; }
32316     tst_links_ftruncate="yes"
32317
32318 else
32319
32320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32321 $as_echo "no" >&6; }
32322     tst_links_ftruncate="no"
32323
32324 fi
32325 rm -f core conftest.err conftest.$ac_objext \
32326     conftest$ac_exeext conftest.$ac_ext
32327   #
32328   if test "$tst_links_ftruncate" = "yes"; then
32329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32330 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
32331     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32332 /* end confdefs.h.  */
32333
32334       $curl_includes_unistd
32335
32336 _ACEOF
32337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32338   $EGREP "ftruncate" >/dev/null 2>&1; then :
32339
32340       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32341 $as_echo "yes" >&6; }
32342       tst_proto_ftruncate="yes"
32343
32344 else
32345
32346       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32347 $as_echo "no" >&6; }
32348       tst_proto_ftruncate="no"
32349
32350 fi
32351 rm -f conftest*
32352
32353   fi
32354   #
32355   if test "$tst_proto_ftruncate" = "yes"; then
32356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32357 $as_echo_n "checking if ftruncate is compilable... " >&6; }
32358     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32359 /* end confdefs.h.  */
32360
32361
32362         $curl_includes_unistd
32363
32364 int main (void)
32365 {
32366
32367         if(0 != ftruncate(0, 0))
32368           return 1;
32369
32370  ;
32371  return 0;
32372 }
32373
32374 _ACEOF
32375 if ac_fn_c_try_compile "$LINENO"; then :
32376
32377       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32378 $as_echo "yes" >&6; }
32379       tst_compi_ftruncate="yes"
32380
32381 else
32382
32383       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32384 $as_echo "no" >&6; }
32385       tst_compi_ftruncate="no"
32386
32387 fi
32388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32389   fi
32390   #
32391   if test "$tst_compi_ftruncate" = "yes"; then
32392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32393 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
32394     if test "x$curl_disallow_ftruncate" != "xyes"; then
32395       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32396 $as_echo "yes" >&6; }
32397       tst_allow_ftruncate="yes"
32398     else
32399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32400 $as_echo "no" >&6; }
32401       tst_allow_ftruncate="no"
32402     fi
32403   fi
32404   #
32405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32406 $as_echo_n "checking if ftruncate might be used... " >&6; }
32407   if test "$tst_links_ftruncate" = "yes" &&
32408      test "$tst_proto_ftruncate" = "yes" &&
32409      test "$tst_compi_ftruncate" = "yes" &&
32410      test "$tst_allow_ftruncate" = "yes"; then
32411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32412 $as_echo "yes" >&6; }
32413
32414 cat >>confdefs.h <<_ACEOF
32415 #define HAVE_FTRUNCATE 1
32416 _ACEOF
32417
32418     curl_cv_func_ftruncate="yes"
32419   else
32420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32421 $as_echo "no" >&6; }
32422     curl_cv_func_ftruncate="no"
32423   fi
32424
32425
32426 curl_includes_stdlib="\
32427 /* includes start */
32428 #ifdef HAVE_SYS_TYPES_H
32429 #  include <sys/types.h>
32430 #endif
32431 #ifdef HAVE_STDLIB_H
32432 #  include <stdlib.h>
32433 #endif
32434 /* includes end */"
32435   for ac_header in sys/types.h stdlib.h
32436 do :
32437   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32438 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32439 "
32440 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32441   cat >>confdefs.h <<_ACEOF
32442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32443 _ACEOF
32444
32445 fi
32446
32447 done
32448
32449
32450
32451               #
32452   tst_links_getaddrinfo="unknown"
32453   tst_proto_getaddrinfo="unknown"
32454   tst_compi_getaddrinfo="unknown"
32455   tst_works_getaddrinfo="unknown"
32456   tst_allow_getaddrinfo="unknown"
32457   tst_tsafe_getaddrinfo="unknown"
32458   #
32459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32460 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32462 /* end confdefs.h.  */
32463
32464
32465       $curl_includes_ws2tcpip
32466       $curl_includes_sys_socket
32467       $curl_includes_netdb
32468
32469 int main (void)
32470 {
32471
32472       if(0 != getaddrinfo(0, 0, 0, 0))
32473         return 1;
32474
32475  ;
32476  return 0;
32477 }
32478
32479 _ACEOF
32480 if ac_fn_c_try_link "$LINENO"; then :
32481
32482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32483 $as_echo "yes" >&6; }
32484     tst_links_getaddrinfo="yes"
32485
32486 else
32487
32488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32489 $as_echo "no" >&6; }
32490     tst_links_getaddrinfo="no"
32491
32492 fi
32493 rm -f core conftest.err conftest.$ac_objext \
32494     conftest$ac_exeext conftest.$ac_ext
32495   #
32496   if test "$tst_links_getaddrinfo" = "yes"; then
32497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32498 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32499     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32500 /* end confdefs.h.  */
32501
32502       $curl_includes_ws2tcpip
32503       $curl_includes_sys_socket
32504       $curl_includes_netdb
32505
32506 _ACEOF
32507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32508   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32509
32510       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32511 $as_echo "yes" >&6; }
32512       tst_proto_getaddrinfo="yes"
32513
32514 else
32515
32516       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32517 $as_echo "no" >&6; }
32518       tst_proto_getaddrinfo="no"
32519
32520 fi
32521 rm -f conftest*
32522
32523   fi
32524   #
32525   if test "$tst_proto_getaddrinfo" = "yes"; then
32526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32527 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32528     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32529 /* end confdefs.h.  */
32530
32531
32532         $curl_includes_ws2tcpip
32533         $curl_includes_sys_socket
32534         $curl_includes_netdb
32535
32536 int main (void)
32537 {
32538
32539         if(0 != getaddrinfo(0, 0, 0, 0))
32540           return 1;
32541
32542  ;
32543  return 0;
32544 }
32545
32546 _ACEOF
32547 if ac_fn_c_try_compile "$LINENO"; then :
32548
32549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32550 $as_echo "yes" >&6; }
32551       tst_compi_getaddrinfo="yes"
32552
32553 else
32554
32555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32556 $as_echo "no" >&6; }
32557       tst_compi_getaddrinfo="no"
32558
32559 fi
32560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32561   fi
32562   #
32563     if test "x$cross_compiling" != "xyes" &&
32564     test "$tst_compi_getaddrinfo" = "yes"; then
32565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32566 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
32567
32568
32569    old=$LD_LIBRARY_PATH
32570    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
32571    export LD_LIBRARY_PATH
32572    if test "$cross_compiling" = yes; then :
32573   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32575 as_fn_error $? "cannot run test program while cross compiling
32576 See \`config.log' for more details" "$LINENO" 5; }
32577 else
32578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32579 /* end confdefs.h.  */
32580
32581
32582         $curl_includes_ws2tcpip
32583         $curl_includes_stdlib
32584         $curl_includes_string
32585         $curl_includes_sys_socket
32586         $curl_includes_netdb
32587
32588 int main (void)
32589 {
32590
32591         struct addrinfo hints;
32592         struct addrinfo *ai = 0;
32593         int error;
32594
32595         #ifdef HAVE_WINSOCK2_H
32596         WSADATA wsa;
32597         if (WSAStartup(MAKEWORD(2,2), &wsa))
32598                 exit(2);
32599         #endif
32600
32601         memset(&hints, 0, sizeof(hints));
32602         hints.ai_flags = AI_NUMERICHOST;
32603         hints.ai_family = AF_UNSPEC;
32604         hints.ai_socktype = SOCK_STREAM;
32605         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32606         if(error || !ai)
32607           exit(1); /* fail */
32608         else
32609           exit(0);
32610
32611  ;
32612  return 0;
32613 }
32614
32615 _ACEOF
32616 if ac_fn_c_try_run "$LINENO"; then :
32617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32618 $as_echo "yes" >&6; }
32619       tst_works_getaddrinfo="yes"
32620
32621 else
32622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32623 $as_echo "no" >&6; }
32624       tst_works_getaddrinfo="no"
32625
32626 fi
32627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32628   conftest.$ac_objext conftest.beam conftest.$ac_ext
32629 fi
32630
32631    LD_LIBRARY_PATH=$old # restore
32632
32633   fi
32634   #
32635   if test "$tst_compi_getaddrinfo" = "yes" &&
32636     test "$tst_works_getaddrinfo" != "no"; then
32637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32638 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32639     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32640       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32641 $as_echo "yes" >&6; }
32642       tst_allow_getaddrinfo="yes"
32643     else
32644       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32645 $as_echo "no" >&6; }
32646       tst_allow_getaddrinfo="no"
32647     fi
32648   fi
32649   #
32650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32651 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
32652   if test "$tst_links_getaddrinfo" = "yes" &&
32653      test "$tst_proto_getaddrinfo" = "yes" &&
32654      test "$tst_compi_getaddrinfo" = "yes" &&
32655      test "$tst_allow_getaddrinfo" = "yes" &&
32656      test "$tst_works_getaddrinfo" != "no"; then
32657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32658 $as_echo "yes" >&6; }
32659
32660 cat >>confdefs.h <<_ACEOF
32661 #define HAVE_GETADDRINFO 1
32662 _ACEOF
32663
32664     curl_cv_func_getaddrinfo="yes"
32665   else
32666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32667 $as_echo "no" >&6; }
32668     curl_cv_func_getaddrinfo="no"
32669     curl_cv_func_getaddrinfo_threadsafe="no"
32670   fi
32671   #
32672   if test "$curl_cv_func_getaddrinfo" = "yes"; then
32673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32674 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32675     case $host_os in
32676       aix[1234].* | aix5.[01].*)
32677                 tst_tsafe_getaddrinfo="no"
32678         ;;
32679       aix*)
32680                 tst_tsafe_getaddrinfo="yes"
32681         ;;
32682       darwin[12345].*)
32683                 tst_tsafe_getaddrinfo="no"
32684         ;;
32685       darwin*)
32686                 tst_tsafe_getaddrinfo="yes"
32687         ;;
32688       freebsd[1234].* | freebsd5.[1234]*)
32689                 tst_tsafe_getaddrinfo="no"
32690         ;;
32691       freebsd*)
32692                 tst_tsafe_getaddrinfo="yes"
32693         ;;
32694       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32695                 tst_tsafe_getaddrinfo="no"
32696         ;;
32697       hpux*)
32698                 tst_tsafe_getaddrinfo="yes"
32699         ;;
32700       netbsd[123].*)
32701                 tst_tsafe_getaddrinfo="no"
32702         ;;
32703       netbsd*)
32704                 tst_tsafe_getaddrinfo="yes"
32705         ;;
32706       *bsd*)
32707                 tst_tsafe_getaddrinfo="no"
32708         ;;
32709       solaris2*)
32710                 tst_tsafe_getaddrinfo="yes"
32711         ;;
32712     esac
32713     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32714        test "$curl_cv_native_windows" = "yes"; then
32715       tst_tsafe_getaddrinfo="yes"
32716     fi
32717     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32718
32719
32720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32721 /* end confdefs.h.  */
32722
32723
32724         $curl_includes_sys_socket
32725         $curl_includes_netdb
32726
32727 int main (void)
32728 {
32729 #ifdef h_errno
32730   return 0;
32731 #else
32732   force compilation error
32733 #endif
32734 }
32735
32736
32737 _ACEOF
32738 if ac_fn_c_try_compile "$LINENO"; then :
32739
32740     tst_symbol_defined="yes"
32741
32742 else
32743
32744     tst_symbol_defined="no"
32745
32746 fi
32747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32748   if test "$tst_symbol_defined" = "yes"; then
32749     curl_cv_have_def_h_errno=yes
32750
32751   else
32752     curl_cv_have_def_h_errno=no
32753
32754   fi
32755
32756       if test "$curl_cv_have_def_h_errno" = "yes"; then
32757         tst_h_errno_macro="yes"
32758       else
32759         tst_h_errno_macro="no"
32760       fi
32761       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32762 /* end confdefs.h.  */
32763
32764
32765           $curl_includes_sys_socket
32766           $curl_includes_netdb
32767
32768 int main (void)
32769 {
32770
32771           h_errno = 2;
32772           if(0 != h_errno)
32773             return 1;
32774
32775  ;
32776  return 0;
32777 }
32778
32779 _ACEOF
32780 if ac_fn_c_try_compile "$LINENO"; then :
32781
32782         tst_h_errno_modifiable_lvalue="yes"
32783
32784 else
32785
32786         tst_h_errno_modifiable_lvalue="no"
32787
32788 fi
32789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32790       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32791 /* end confdefs.h.  */
32792
32793
32794
32795 int main (void)
32796 {
32797
32798 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32799           return 0;
32800 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32801           return 0;
32802 #else
32803           force compilation error
32804 #endif
32805
32806  ;
32807  return 0;
32808 }
32809
32810 _ACEOF
32811 if ac_fn_c_try_compile "$LINENO"; then :
32812
32813         tst_h_errno_sbs_issue_7="yes"
32814
32815 else
32816
32817         tst_h_errno_sbs_issue_7="no"
32818
32819 fi
32820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32821       if test "$tst_h_errno_macro" = "no" &&
32822          test "$tst_h_errno_modifiable_lvalue" = "no" &&
32823          test "$tst_h_errno_sbs_issue_7" = "no"; then
32824         tst_tsafe_getaddrinfo="no"
32825       else
32826         tst_tsafe_getaddrinfo="yes"
32827       fi
32828     fi
32829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32830 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
32831     if test "$tst_tsafe_getaddrinfo" = "yes"; then
32832
32833 cat >>confdefs.h <<_ACEOF
32834 #define HAVE_GETADDRINFO_THREADSAFE 1
32835 _ACEOF
32836
32837       curl_cv_func_getaddrinfo_threadsafe="yes"
32838     else
32839       curl_cv_func_getaddrinfo_threadsafe="no"
32840     fi
32841   fi
32842
32843
32844       #
32845   tst_links_gai_strerror="unknown"
32846   tst_proto_gai_strerror="unknown"
32847   tst_compi_gai_strerror="unknown"
32848   tst_allow_gai_strerror="unknown"
32849   #
32850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32851 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
32852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32853 /* end confdefs.h.  */
32854
32855
32856       $curl_includes_winsock2
32857       $curl_includes_netdb
32858
32859 int main (void)
32860 {
32861
32862       if(0 != gai_strerror(0))
32863         return 1;
32864
32865  ;
32866  return 0;
32867 }
32868
32869 _ACEOF
32870 if ac_fn_c_try_link "$LINENO"; then :
32871
32872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32873 $as_echo "yes" >&6; }
32874     tst_links_gai_strerror="yes"
32875
32876 else
32877
32878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32879 $as_echo "no" >&6; }
32880     tst_links_gai_strerror="no"
32881
32882 fi
32883 rm -f core conftest.err conftest.$ac_objext \
32884     conftest$ac_exeext conftest.$ac_ext
32885   #
32886   if test "$tst_links_gai_strerror" = "yes"; then
32887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32888 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32889     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32890 /* end confdefs.h.  */
32891
32892       $curl_includes_winsock2
32893       $curl_includes_netdb
32894
32895 _ACEOF
32896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32897   $EGREP "gai_strerror" >/dev/null 2>&1; then :
32898
32899       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32900 $as_echo "yes" >&6; }
32901       tst_proto_gai_strerror="yes"
32902
32903 else
32904
32905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32906 $as_echo "no" >&6; }
32907       tst_proto_gai_strerror="no"
32908
32909 fi
32910 rm -f conftest*
32911
32912   fi
32913   #
32914   if test "$tst_proto_gai_strerror" = "yes"; then
32915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32916 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
32917     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32918 /* end confdefs.h.  */
32919
32920
32921         $curl_includes_winsock2
32922         $curl_includes_netdb
32923
32924 int main (void)
32925 {
32926
32927         if(0 != gai_strerror(0))
32928           return 1;
32929
32930  ;
32931  return 0;
32932 }
32933
32934 _ACEOF
32935 if ac_fn_c_try_compile "$LINENO"; then :
32936
32937       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32938 $as_echo "yes" >&6; }
32939       tst_compi_gai_strerror="yes"
32940
32941 else
32942
32943       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32944 $as_echo "no" >&6; }
32945       tst_compi_gai_strerror="no"
32946
32947 fi
32948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32949   fi
32950   #
32951   if test "$tst_compi_gai_strerror" = "yes"; then
32952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32953 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32954     if test "x$curl_disallow_gai_strerror" != "xyes"; then
32955       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32956 $as_echo "yes" >&6; }
32957       tst_allow_gai_strerror="yes"
32958     else
32959       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32960 $as_echo "no" >&6; }
32961       tst_allow_gai_strerror="no"
32962     fi
32963   fi
32964   #
32965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32966 $as_echo_n "checking if gai_strerror might be used... " >&6; }
32967   if test "$tst_links_gai_strerror" = "yes" &&
32968      test "$tst_proto_gai_strerror" = "yes" &&
32969      test "$tst_compi_gai_strerror" = "yes" &&
32970      test "$tst_allow_gai_strerror" = "yes"; then
32971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32972 $as_echo "yes" >&6; }
32973
32974 cat >>confdefs.h <<_ACEOF
32975 #define HAVE_GAI_STRERROR 1
32976 _ACEOF
32977
32978     curl_cv_func_gai_strerror="yes"
32979   else
32980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32981 $as_echo "no" >&6; }
32982     curl_cv_func_gai_strerror="no"
32983   fi
32984
32985
32986       #
32987   tst_links_gethostbyaddr="unknown"
32988   tst_proto_gethostbyaddr="unknown"
32989   tst_compi_gethostbyaddr="unknown"
32990   tst_allow_gethostbyaddr="unknown"
32991   #
32992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32993 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32995 /* end confdefs.h.  */
32996
32997
32998       $curl_includes_winsock2
32999       $curl_includes_netdb
33000
33001 int main (void)
33002 {
33003
33004       if(0 != gethostbyaddr(0, 0, 0))
33005         return 1;
33006
33007  ;
33008  return 0;
33009 }
33010
33011 _ACEOF
33012 if ac_fn_c_try_link "$LINENO"; then :
33013
33014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33015 $as_echo "yes" >&6; }
33016     tst_links_gethostbyaddr="yes"
33017
33018 else
33019
33020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33021 $as_echo "no" >&6; }
33022     tst_links_gethostbyaddr="no"
33023
33024 fi
33025 rm -f core conftest.err conftest.$ac_objext \
33026     conftest$ac_exeext conftest.$ac_ext
33027   #
33028   if test "$tst_links_gethostbyaddr" = "yes"; then
33029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
33030 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
33031     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33032 /* end confdefs.h.  */
33033
33034       $curl_includes_winsock2
33035       $curl_includes_netdb
33036
33037 _ACEOF
33038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33039   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
33040
33041       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33042 $as_echo "yes" >&6; }
33043       tst_proto_gethostbyaddr="yes"
33044
33045 else
33046
33047       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33048 $as_echo "no" >&6; }
33049       tst_proto_gethostbyaddr="no"
33050
33051 fi
33052 rm -f conftest*
33053
33054   fi
33055   #
33056   if test "$tst_proto_gethostbyaddr" = "yes"; then
33057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
33058 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
33059     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33060 /* end confdefs.h.  */
33061
33062
33063         $curl_includes_winsock2
33064         $curl_includes_netdb
33065
33066 int main (void)
33067 {
33068
33069         if(0 != gethostbyaddr(0, 0, 0))
33070           return 1;
33071
33072  ;
33073  return 0;
33074 }
33075
33076 _ACEOF
33077 if ac_fn_c_try_compile "$LINENO"; then :
33078
33079       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33080 $as_echo "yes" >&6; }
33081       tst_compi_gethostbyaddr="yes"
33082
33083 else
33084
33085       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33086 $as_echo "no" >&6; }
33087       tst_compi_gethostbyaddr="no"
33088
33089 fi
33090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33091   fi
33092   #
33093   if test "$tst_compi_gethostbyaddr" = "yes"; then
33094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
33095 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
33096     if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
33097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33098 $as_echo "yes" >&6; }
33099       tst_allow_gethostbyaddr="yes"
33100     else
33101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33102 $as_echo "no" >&6; }
33103       tst_allow_gethostbyaddr="no"
33104     fi
33105   fi
33106   #
33107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33108 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33109   if test "$tst_links_gethostbyaddr" = "yes" &&
33110      test "$tst_proto_gethostbyaddr" = "yes" &&
33111      test "$tst_compi_gethostbyaddr" = "yes" &&
33112      test "$tst_allow_gethostbyaddr" = "yes"; then
33113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33114 $as_echo "yes" >&6; }
33115
33116 cat >>confdefs.h <<_ACEOF
33117 #define HAVE_GETHOSTBYADDR 1
33118 _ACEOF
33119
33120     curl_cv_func_gethostbyaddr="yes"
33121   else
33122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33123 $as_echo "no" >&6; }
33124     curl_cv_func_gethostbyaddr="no"
33125   fi
33126
33127
33128     #
33129   tst_links_gethostbyaddr_r="unknown"
33130   tst_proto_gethostbyaddr_r="unknown"
33131   tst_compi_gethostbyaddr_r="unknown"
33132   tst_allow_gethostbyaddr_r="unknown"
33133   tst_nargs_gethostbyaddr_r="unknown"
33134   #
33135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33136 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33138 /* end confdefs.h.  */
33139
33140
33141 #define gethostbyaddr_r innocuous_gethostbyaddr_r
33142 #ifdef __STDC__
33143 # include <limits.h>
33144 #else
33145 # include <assert.h>
33146 #endif
33147 #undef gethostbyaddr_r
33148 #ifdef __cplusplus
33149 extern "C"
33150 #endif
33151 char gethostbyaddr_r ();
33152 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
33153 choke me
33154 #endif
33155
33156 int main (void)
33157 {
33158 return gethostbyaddr_r ();
33159  ;
33160  return 0;
33161 }
33162
33163 _ACEOF
33164 if ac_fn_c_try_link "$LINENO"; then :
33165
33166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33167 $as_echo "yes" >&6; }
33168     tst_links_gethostbyaddr_r="yes"
33169
33170 else
33171
33172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33173 $as_echo "no" >&6; }
33174     tst_links_gethostbyaddr_r="no"
33175
33176 fi
33177 rm -f core conftest.err conftest.$ac_objext \
33178     conftest$ac_exeext conftest.$ac_ext
33179   #
33180   if test "$tst_links_gethostbyaddr_r" = "yes"; then
33181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
33182 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
33183     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33184 /* end confdefs.h.  */
33185
33186       $curl_includes_netdb
33187
33188 _ACEOF
33189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33190   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
33191
33192       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33193 $as_echo "yes" >&6; }
33194       tst_proto_gethostbyaddr_r="yes"
33195
33196 else
33197
33198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33199 $as_echo "no" >&6; }
33200       tst_proto_gethostbyaddr_r="no"
33201
33202 fi
33203 rm -f conftest*
33204
33205   fi
33206   #
33207   if test "$tst_proto_gethostbyaddr_r" = "yes"; then
33208     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33209       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
33210 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
33211       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33212 /* end confdefs.h.  */
33213
33214
33215           $curl_includes_netdb
33216
33217 int main (void)
33218 {
33219
33220           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
33221             return 1;
33222
33223  ;
33224  return 0;
33225 }
33226
33227 _ACEOF
33228 if ac_fn_c_try_compile "$LINENO"; then :
33229
33230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33231 $as_echo "yes" >&6; }
33232         tst_compi_gethostbyaddr_r="yes"
33233         tst_nargs_gethostbyaddr_r="5"
33234
33235 else
33236
33237         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33238 $as_echo "no" >&6; }
33239         tst_compi_gethostbyaddr_r="no"
33240
33241 fi
33242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33243     fi
33244     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33245       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33246 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33247       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33248 /* end confdefs.h.  */
33249
33250
33251           $curl_includes_netdb
33252
33253 int main (void)
33254 {
33255
33256           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33257             return 1;
33258
33259  ;
33260  return 0;
33261 }
33262
33263 _ACEOF
33264 if ac_fn_c_try_compile "$LINENO"; then :
33265
33266         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33267 $as_echo "yes" >&6; }
33268         tst_compi_gethostbyaddr_r="yes"
33269         tst_nargs_gethostbyaddr_r="7"
33270
33271 else
33272
33273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33274 $as_echo "no" >&6; }
33275         tst_compi_gethostbyaddr_r="no"
33276
33277 fi
33278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33279     fi
33280     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33281       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33282 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33283       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33284 /* end confdefs.h.  */
33285
33286
33287           $curl_includes_netdb
33288
33289 int main (void)
33290 {
33291
33292           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33293             return 1;
33294
33295  ;
33296  return 0;
33297 }
33298
33299 _ACEOF
33300 if ac_fn_c_try_compile "$LINENO"; then :
33301
33302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33303 $as_echo "yes" >&6; }
33304         tst_compi_gethostbyaddr_r="yes"
33305         tst_nargs_gethostbyaddr_r="8"
33306
33307 else
33308
33309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33310 $as_echo "no" >&6; }
33311         tst_compi_gethostbyaddr_r="no"
33312
33313 fi
33314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33315     fi
33316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33317 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33318     if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33320 $as_echo "yes" >&6; }
33321     else
33322       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33323 $as_echo "no" >&6; }
33324     fi
33325   fi
33326   #
33327   if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33329 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33330     if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33331       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33332 $as_echo "yes" >&6; }
33333       tst_allow_gethostbyaddr_r="yes"
33334     else
33335       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33336 $as_echo "no" >&6; }
33337       tst_allow_gethostbyaddr_r="no"
33338     fi
33339   fi
33340   #
33341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33342 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33343   if test "$tst_links_gethostbyaddr_r" = "yes" &&
33344      test "$tst_proto_gethostbyaddr_r" = "yes" &&
33345      test "$tst_compi_gethostbyaddr_r" = "yes" &&
33346      test "$tst_allow_gethostbyaddr_r" = "yes"; then
33347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33348 $as_echo "yes" >&6; }
33349
33350 cat >>confdefs.h <<_ACEOF
33351 #define HAVE_GETHOSTBYADDR_R 1
33352 _ACEOF
33353
33354             #
33355     if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33356
33357 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33358
33359     elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33360
33361 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33362
33363     elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33364
33365 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33366
33367     fi
33368     #
33369     curl_cv_func_gethostbyaddr_r="yes"
33370   else
33371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33372 $as_echo "no" >&6; }
33373     curl_cv_func_gethostbyaddr_r="no"
33374   fi
33375
33376
33377       #
33378   tst_links_gethostbyname="unknown"
33379   tst_proto_gethostbyname="unknown"
33380   tst_compi_gethostbyname="unknown"
33381   tst_allow_gethostbyname="unknown"
33382   #
33383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33384 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
33385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33386 /* end confdefs.h.  */
33387
33388
33389       $curl_includes_winsock2
33390       $curl_includes_netdb
33391
33392 int main (void)
33393 {
33394
33395       if(0 != gethostbyname(0))
33396         return 1;
33397
33398  ;
33399  return 0;
33400 }
33401
33402 _ACEOF
33403 if ac_fn_c_try_link "$LINENO"; then :
33404
33405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33406 $as_echo "yes" >&6; }
33407     tst_links_gethostbyname="yes"
33408
33409 else
33410
33411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33412 $as_echo "no" >&6; }
33413     tst_links_gethostbyname="no"
33414
33415 fi
33416 rm -f core conftest.err conftest.$ac_objext \
33417     conftest$ac_exeext conftest.$ac_ext
33418   #
33419   if test "$tst_links_gethostbyname" = "yes"; then
33420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33421 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33422     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33423 /* end confdefs.h.  */
33424
33425       $curl_includes_winsock2
33426       $curl_includes_netdb
33427
33428 _ACEOF
33429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33430   $EGREP "gethostbyname" >/dev/null 2>&1; then :
33431
33432       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33433 $as_echo "yes" >&6; }
33434       tst_proto_gethostbyname="yes"
33435
33436 else
33437
33438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33439 $as_echo "no" >&6; }
33440       tst_proto_gethostbyname="no"
33441
33442 fi
33443 rm -f conftest*
33444
33445   fi
33446   #
33447   if test "$tst_proto_gethostbyname" = "yes"; then
33448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33449 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
33450     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33451 /* end confdefs.h.  */
33452
33453
33454         $curl_includes_winsock2
33455         $curl_includes_netdb
33456
33457 int main (void)
33458 {
33459
33460         if(0 != gethostbyname(0))
33461           return 1;
33462
33463  ;
33464  return 0;
33465 }
33466
33467 _ACEOF
33468 if ac_fn_c_try_compile "$LINENO"; then :
33469
33470       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33471 $as_echo "yes" >&6; }
33472       tst_compi_gethostbyname="yes"
33473
33474 else
33475
33476       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33477 $as_echo "no" >&6; }
33478       tst_compi_gethostbyname="no"
33479
33480 fi
33481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33482   fi
33483   #
33484   if test "$tst_compi_gethostbyname" = "yes"; then
33485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33486 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33487     if test "x$curl_disallow_gethostbyname" != "xyes"; then
33488       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33489 $as_echo "yes" >&6; }
33490       tst_allow_gethostbyname="yes"
33491     else
33492       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33493 $as_echo "no" >&6; }
33494       tst_allow_gethostbyname="no"
33495     fi
33496   fi
33497   #
33498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33499 $as_echo_n "checking if gethostbyname might be used... " >&6; }
33500   if test "$tst_links_gethostbyname" = "yes" &&
33501      test "$tst_proto_gethostbyname" = "yes" &&
33502      test "$tst_compi_gethostbyname" = "yes" &&
33503      test "$tst_allow_gethostbyname" = "yes"; then
33504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33505 $as_echo "yes" >&6; }
33506
33507 cat >>confdefs.h <<_ACEOF
33508 #define HAVE_GETHOSTBYNAME 1
33509 _ACEOF
33510
33511     curl_cv_func_gethostbyname="yes"
33512   else
33513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33514 $as_echo "no" >&6; }
33515     curl_cv_func_gethostbyname="no"
33516   fi
33517
33518
33519     #
33520   tst_links_gethostbyname_r="unknown"
33521   tst_proto_gethostbyname_r="unknown"
33522   tst_compi_gethostbyname_r="unknown"
33523   tst_allow_gethostbyname_r="unknown"
33524   tst_nargs_gethostbyname_r="unknown"
33525   #
33526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33527 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33529 /* end confdefs.h.  */
33530
33531
33532 #define gethostbyname_r innocuous_gethostbyname_r
33533 #ifdef __STDC__
33534 # include <limits.h>
33535 #else
33536 # include <assert.h>
33537 #endif
33538 #undef gethostbyname_r
33539 #ifdef __cplusplus
33540 extern "C"
33541 #endif
33542 char gethostbyname_r ();
33543 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33544 choke me
33545 #endif
33546
33547 int main (void)
33548 {
33549 return gethostbyname_r ();
33550  ;
33551  return 0;
33552 }
33553
33554 _ACEOF
33555 if ac_fn_c_try_link "$LINENO"; then :
33556
33557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33558 $as_echo "yes" >&6; }
33559     tst_links_gethostbyname_r="yes"
33560
33561 else
33562
33563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33564 $as_echo "no" >&6; }
33565     tst_links_gethostbyname_r="no"
33566
33567 fi
33568 rm -f core conftest.err conftest.$ac_objext \
33569     conftest$ac_exeext conftest.$ac_ext
33570   #
33571   if test "$tst_links_gethostbyname_r" = "yes"; then
33572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33573 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33574     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33575 /* end confdefs.h.  */
33576
33577       $curl_includes_netdb
33578
33579 _ACEOF
33580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33581   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33582
33583       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33584 $as_echo "yes" >&6; }
33585       tst_proto_gethostbyname_r="yes"
33586
33587 else
33588
33589       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33590 $as_echo "no" >&6; }
33591       tst_proto_gethostbyname_r="no"
33592
33593 fi
33594 rm -f conftest*
33595
33596   fi
33597   #
33598   if test "$tst_proto_gethostbyname_r" = "yes"; then
33599     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33600       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33601 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33602       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33603 /* end confdefs.h.  */
33604
33605
33606           $curl_includes_netdb
33607
33608 int main (void)
33609 {
33610
33611           if(0 != gethostbyname_r(0, 0, 0))
33612             return 1;
33613
33614  ;
33615  return 0;
33616 }
33617
33618 _ACEOF
33619 if ac_fn_c_try_compile "$LINENO"; then :
33620
33621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33622 $as_echo "yes" >&6; }
33623         tst_compi_gethostbyname_r="yes"
33624         tst_nargs_gethostbyname_r="3"
33625
33626 else
33627
33628         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33629 $as_echo "no" >&6; }
33630         tst_compi_gethostbyname_r="no"
33631
33632 fi
33633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33634     fi
33635     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33636       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33637 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33638       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33639 /* end confdefs.h.  */
33640
33641
33642           $curl_includes_netdb
33643
33644 int main (void)
33645 {
33646
33647           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33648             return 1;
33649
33650  ;
33651  return 0;
33652 }
33653
33654 _ACEOF
33655 if ac_fn_c_try_compile "$LINENO"; then :
33656
33657         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33658 $as_echo "yes" >&6; }
33659         tst_compi_gethostbyname_r="yes"
33660         tst_nargs_gethostbyname_r="5"
33661
33662 else
33663
33664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33665 $as_echo "no" >&6; }
33666         tst_compi_gethostbyname_r="no"
33667
33668 fi
33669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33670     fi
33671     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33672       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33673 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33674       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33675 /* end confdefs.h.  */
33676
33677
33678           $curl_includes_netdb
33679
33680 int main (void)
33681 {
33682
33683           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33684             return 1;
33685
33686  ;
33687  return 0;
33688 }
33689
33690 _ACEOF
33691 if ac_fn_c_try_compile "$LINENO"; then :
33692
33693         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33694 $as_echo "yes" >&6; }
33695         tst_compi_gethostbyname_r="yes"
33696         tst_nargs_gethostbyname_r="6"
33697
33698 else
33699
33700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33701 $as_echo "no" >&6; }
33702         tst_compi_gethostbyname_r="no"
33703
33704 fi
33705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33706     fi
33707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33708 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33709     if test "$tst_compi_gethostbyname_r" = "yes"; then
33710       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33711 $as_echo "yes" >&6; }
33712     else
33713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33714 $as_echo "no" >&6; }
33715     fi
33716   fi
33717   #
33718   if test "$tst_compi_gethostbyname_r" = "yes"; then
33719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33720 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33721     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33723 $as_echo "yes" >&6; }
33724       tst_allow_gethostbyname_r="yes"
33725     else
33726       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33727 $as_echo "no" >&6; }
33728       tst_allow_gethostbyname_r="no"
33729     fi
33730   fi
33731   #
33732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33733 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33734   if test "$tst_links_gethostbyname_r" = "yes" &&
33735      test "$tst_proto_gethostbyname_r" = "yes" &&
33736      test "$tst_compi_gethostbyname_r" = "yes" &&
33737      test "$tst_allow_gethostbyname_r" = "yes"; then
33738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33739 $as_echo "yes" >&6; }
33740
33741 cat >>confdefs.h <<_ACEOF
33742 #define HAVE_GETHOSTBYNAME_R 1
33743 _ACEOF
33744
33745             #
33746     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33747
33748 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33749
33750     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33751
33752 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33753
33754     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33755
33756 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33757
33758     fi
33759     #
33760     curl_cv_func_gethostbyname_r="yes"
33761   else
33762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33763 $as_echo "no" >&6; }
33764     curl_cv_func_gethostbyname_r="no"
33765   fi
33766
33767
33768 curl_preprocess_callconv="\
33769 /* preprocess start */
33770 #ifdef HAVE_WINDOWS_H
33771 #  define FUNCALLCONV __stdcall
33772 #else
33773 #  define FUNCALLCONV
33774 #endif
33775 /* preprocess end */"
33776
33777
33778         #
33779   tst_links_gethostname="unknown"
33780   tst_proto_gethostname="unknown"
33781   tst_compi_gethostname="unknown"
33782   tst_allow_gethostname="unknown"
33783   #
33784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33785 $as_echo_n "checking if gethostname can be linked... " >&6; }
33786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33787 /* end confdefs.h.  */
33788
33789
33790       $curl_includes_winsock2
33791       $curl_includes_unistd
33792
33793 int main (void)
33794 {
33795
33796       if(0 != gethostname(0, 0))
33797         return 1;
33798
33799  ;
33800  return 0;
33801 }
33802
33803 _ACEOF
33804 if ac_fn_c_try_link "$LINENO"; then :
33805
33806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33807 $as_echo "yes" >&6; }
33808     tst_links_gethostname="yes"
33809
33810 else
33811
33812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33813 $as_echo "no" >&6; }
33814     tst_links_gethostname="no"
33815
33816 fi
33817 rm -f core conftest.err conftest.$ac_objext \
33818     conftest$ac_exeext conftest.$ac_ext
33819   #
33820   if test "$tst_links_gethostname" = "yes"; then
33821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33822 $as_echo_n "checking if gethostname is prototyped... " >&6; }
33823     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33824 /* end confdefs.h.  */
33825
33826       $curl_includes_winsock2
33827       $curl_includes_unistd
33828
33829 _ACEOF
33830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33831   $EGREP "gethostname" >/dev/null 2>&1; then :
33832
33833       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33834 $as_echo "yes" >&6; }
33835       tst_proto_gethostname="yes"
33836
33837 else
33838
33839       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33840 $as_echo "no" >&6; }
33841       tst_proto_gethostname="no"
33842
33843 fi
33844 rm -f conftest*
33845
33846   fi
33847   #
33848   if test "$tst_proto_gethostname" = "yes"; then
33849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33850 $as_echo_n "checking if gethostname is compilable... " >&6; }
33851     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33852 /* end confdefs.h.  */
33853
33854
33855         $curl_includes_winsock2
33856         $curl_includes_unistd
33857
33858 int main (void)
33859 {
33860
33861         if(0 != gethostname(0, 0))
33862           return 1;
33863
33864  ;
33865  return 0;
33866 }
33867
33868 _ACEOF
33869 if ac_fn_c_try_compile "$LINENO"; then :
33870
33871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33872 $as_echo "yes" >&6; }
33873       tst_compi_gethostname="yes"
33874
33875 else
33876
33877       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33878 $as_echo "no" >&6; }
33879       tst_compi_gethostname="no"
33880
33881 fi
33882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33883   fi
33884   #
33885   if test "$tst_compi_gethostname" = "yes"; then
33886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33887 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33888     tst_gethostname_type_arg2="unknown"
33889     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33890       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33891         if test "$tst_gethostname_type_arg2" = "unknown"; then
33892           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33893 /* end confdefs.h.  */
33894
33895
33896               $curl_includes_winsock2
33897               $curl_includes_unistd
33898               $curl_preprocess_callconv
33899               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33900
33901 int main (void)
33902 {
33903
33904               if(0 != gethostname(0, 0))
33905                 return 1;
33906
33907  ;
33908  return 0;
33909 }
33910
33911 _ACEOF
33912 if ac_fn_c_try_compile "$LINENO"; then :
33913
33914             tst_gethostname_type_arg2="$tst_arg2"
33915
33916 fi
33917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33918         fi
33919       done
33920     done
33921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33922 $as_echo "$tst_gethostname_type_arg2" >&6; }
33923     if test "$tst_gethostname_type_arg2" != "unknown"; then
33924
33925 cat >>confdefs.h <<_ACEOF
33926 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33927 _ACEOF
33928
33929     fi
33930   fi
33931   #
33932   if test "$tst_compi_gethostname" = "yes"; then
33933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33934 $as_echo_n "checking if gethostname usage allowed... " >&6; }
33935     if test "x$curl_disallow_gethostname" != "xyes"; then
33936       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33937 $as_echo "yes" >&6; }
33938       tst_allow_gethostname="yes"
33939     else
33940       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33941 $as_echo "no" >&6; }
33942       tst_allow_gethostname="no"
33943     fi
33944   fi
33945   #
33946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33947 $as_echo_n "checking if gethostname might be used... " >&6; }
33948   if test "$tst_links_gethostname" = "yes" &&
33949      test "$tst_proto_gethostname" = "yes" &&
33950      test "$tst_compi_gethostname" = "yes" &&
33951      test "$tst_allow_gethostname" = "yes"; then
33952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33953 $as_echo "yes" >&6; }
33954
33955 cat >>confdefs.h <<_ACEOF
33956 #define HAVE_GETHOSTNAME 1
33957 _ACEOF
33958
33959     curl_cv_func_gethostname="yes"
33960   else
33961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33962 $as_echo "no" >&6; }
33963     curl_cv_func_gethostname="no"
33964   fi
33965
33966
33967       #
33968   tst_links_getifaddrs="unknown"
33969   tst_proto_getifaddrs="unknown"
33970   tst_compi_getifaddrs="unknown"
33971   tst_works_getifaddrs="unknown"
33972   tst_allow_getifaddrs="unknown"
33973   #
33974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33975 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
33976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33977 /* end confdefs.h.  */
33978
33979
33980 #define getifaddrs innocuous_getifaddrs
33981 #ifdef __STDC__
33982 # include <limits.h>
33983 #else
33984 # include <assert.h>
33985 #endif
33986 #undef getifaddrs
33987 #ifdef __cplusplus
33988 extern "C"
33989 #endif
33990 char getifaddrs ();
33991 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33992 choke me
33993 #endif
33994
33995 int main (void)
33996 {
33997 return getifaddrs ();
33998  ;
33999  return 0;
34000 }
34001
34002 _ACEOF
34003 if ac_fn_c_try_link "$LINENO"; then :
34004
34005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34006 $as_echo "yes" >&6; }
34007     tst_links_getifaddrs="yes"
34008
34009 else
34010
34011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34012 $as_echo "no" >&6; }
34013     tst_links_getifaddrs="no"
34014
34015 fi
34016 rm -f core conftest.err conftest.$ac_objext \
34017     conftest$ac_exeext conftest.$ac_ext
34018   #
34019   if test "$tst_links_getifaddrs" = "yes"; then
34020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
34021 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
34022     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34023 /* end confdefs.h.  */
34024
34025       $curl_includes_ifaddrs
34026
34027 _ACEOF
34028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34029   $EGREP "getifaddrs" >/dev/null 2>&1; then :
34030
34031       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34032 $as_echo "yes" >&6; }
34033       tst_proto_getifaddrs="yes"
34034
34035 else
34036
34037       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34038 $as_echo "no" >&6; }
34039       tst_proto_getifaddrs="no"
34040
34041 fi
34042 rm -f conftest*
34043
34044   fi
34045   #
34046   if test "$tst_proto_getifaddrs" = "yes"; then
34047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
34048 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
34049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34050 /* end confdefs.h.  */
34051
34052
34053         $curl_includes_ifaddrs
34054
34055 int main (void)
34056 {
34057
34058         if(0 != getifaddrs(0))
34059           return 1;
34060
34061  ;
34062  return 0;
34063 }
34064
34065 _ACEOF
34066 if ac_fn_c_try_compile "$LINENO"; then :
34067
34068       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34069 $as_echo "yes" >&6; }
34070       tst_compi_getifaddrs="yes"
34071
34072 else
34073
34074       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34075 $as_echo "no" >&6; }
34076       tst_compi_getifaddrs="no"
34077
34078 fi
34079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34080   fi
34081   #
34082     if test "x$cross_compiling" != "xyes" &&
34083     test "$tst_compi_getifaddrs" = "yes"; then
34084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
34085 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
34086
34087
34088    old=$LD_LIBRARY_PATH
34089    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34090    export LD_LIBRARY_PATH
34091    if test "$cross_compiling" = yes; then :
34092   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34094 as_fn_error $? "cannot run test program while cross compiling
34095 See \`config.log' for more details" "$LINENO" 5; }
34096 else
34097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34098 /* end confdefs.h.  */
34099
34100
34101         $curl_includes_stdlib
34102         $curl_includes_ifaddrs
34103
34104 int main (void)
34105 {
34106
34107         struct ifaddrs *ifa = 0;
34108         int error;
34109
34110         error = getifaddrs(&ifa);
34111         if(error || !ifa)
34112           exit(1); /* fail */
34113         else
34114           exit(0);
34115
34116  ;
34117  return 0;
34118 }
34119
34120 _ACEOF
34121 if ac_fn_c_try_run "$LINENO"; then :
34122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34123 $as_echo "yes" >&6; }
34124       tst_works_getifaddrs="yes"
34125
34126 else
34127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34128 $as_echo "no" >&6; }
34129       tst_works_getifaddrs="no"
34130
34131 fi
34132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34133   conftest.$ac_objext conftest.beam conftest.$ac_ext
34134 fi
34135
34136    LD_LIBRARY_PATH=$old # restore
34137
34138   fi
34139   #
34140   if test "$tst_compi_getifaddrs" = "yes" &&
34141     test "$tst_works_getifaddrs" != "no"; then
34142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
34143 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
34144     if test "x$curl_disallow_getifaddrs" != "xyes"; then
34145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34146 $as_echo "yes" >&6; }
34147       tst_allow_getifaddrs="yes"
34148     else
34149       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34150 $as_echo "no" >&6; }
34151       tst_allow_getifaddrs="no"
34152     fi
34153   fi
34154   #
34155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
34156 $as_echo_n "checking if getifaddrs might be used... " >&6; }
34157   if test "$tst_links_getifaddrs" = "yes" &&
34158      test "$tst_proto_getifaddrs" = "yes" &&
34159      test "$tst_compi_getifaddrs" = "yes" &&
34160      test "$tst_allow_getifaddrs" = "yes" &&
34161      test "$tst_works_getifaddrs" != "no"; then
34162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34163 $as_echo "yes" >&6; }
34164
34165 cat >>confdefs.h <<_ACEOF
34166 #define HAVE_GETIFADDRS 1
34167 _ACEOF
34168
34169     curl_cv_func_getifaddrs="yes"
34170   else
34171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34172 $as_echo "no" >&6; }
34173     curl_cv_func_getifaddrs="no"
34174   fi
34175
34176
34177     #
34178   tst_links_getservbyport_r="unknown"
34179   tst_proto_getservbyport_r="unknown"
34180   tst_compi_getservbyport_r="unknown"
34181   tst_allow_getservbyport_r="unknown"
34182   tst_nargs_getservbyport_r="unknown"
34183   #
34184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
34185 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
34186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34187 /* end confdefs.h.  */
34188
34189
34190 #define getservbyport_r innocuous_getservbyport_r
34191 #ifdef __STDC__
34192 # include <limits.h>
34193 #else
34194 # include <assert.h>
34195 #endif
34196 #undef getservbyport_r
34197 #ifdef __cplusplus
34198 extern "C"
34199 #endif
34200 char getservbyport_r ();
34201 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
34202 choke me
34203 #endif
34204
34205 int main (void)
34206 {
34207 return getservbyport_r ();
34208  ;
34209  return 0;
34210 }
34211
34212 _ACEOF
34213 if ac_fn_c_try_link "$LINENO"; then :
34214
34215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34216 $as_echo "yes" >&6; }
34217     tst_links_getservbyport_r="yes"
34218
34219 else
34220
34221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34222 $as_echo "no" >&6; }
34223     tst_links_getservbyport_r="no"
34224
34225 fi
34226 rm -f core conftest.err conftest.$ac_objext \
34227     conftest$ac_exeext conftest.$ac_ext
34228   #
34229   if test "$tst_links_getservbyport_r" = "yes"; then
34230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
34231 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
34232     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34233 /* end confdefs.h.  */
34234
34235       $curl_includes_netdb
34236
34237 _ACEOF
34238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34239   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34240
34241       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34242 $as_echo "yes" >&6; }
34243       tst_proto_getservbyport_r="yes"
34244
34245 else
34246
34247       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34248 $as_echo "no" >&6; }
34249       tst_proto_getservbyport_r="no"
34250
34251 fi
34252 rm -f conftest*
34253
34254   fi
34255   #
34256   if test "$tst_proto_getservbyport_r" = "yes"; then
34257     if test "$tst_nargs_getservbyport_r" = "unknown"; then
34258       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34259 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34260       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34261 /* end confdefs.h.  */
34262
34263
34264           $curl_includes_netdb
34265
34266 int main (void)
34267 {
34268
34269           if(0 != getservbyport_r(0, 0, 0, 0))
34270             return 1;
34271
34272  ;
34273  return 0;
34274 }
34275
34276 _ACEOF
34277 if ac_fn_c_try_compile "$LINENO"; then :
34278
34279         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34280 $as_echo "yes" >&6; }
34281         tst_compi_getservbyport_r="yes"
34282         tst_nargs_getservbyport_r="4"
34283
34284 else
34285
34286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34287 $as_echo "no" >&6; }
34288         tst_compi_getservbyport_r="no"
34289
34290 fi
34291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34292     fi
34293     if test "$tst_nargs_getservbyport_r" = "unknown"; then
34294       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34295 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34296       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34297 /* end confdefs.h.  */
34298
34299
34300           $curl_includes_netdb
34301
34302 int main (void)
34303 {
34304
34305           if(0 != getservbyport_r(0, 0, 0, 0, 0))
34306             return 1;
34307
34308  ;
34309  return 0;
34310 }
34311
34312 _ACEOF
34313 if ac_fn_c_try_compile "$LINENO"; then :
34314
34315         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34316 $as_echo "yes" >&6; }
34317         tst_compi_getservbyport_r="yes"
34318         tst_nargs_getservbyport_r="5"
34319
34320 else
34321
34322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34323 $as_echo "no" >&6; }
34324         tst_compi_getservbyport_r="no"
34325
34326 fi
34327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34328     fi
34329     if test "$tst_nargs_getservbyport_r" = "unknown"; then
34330       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34331 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34332       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34333 /* end confdefs.h.  */
34334
34335
34336           $curl_includes_netdb
34337
34338 int main (void)
34339 {
34340
34341           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34342             return 1;
34343
34344  ;
34345  return 0;
34346 }
34347
34348 _ACEOF
34349 if ac_fn_c_try_compile "$LINENO"; then :
34350
34351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34352 $as_echo "yes" >&6; }
34353         tst_compi_getservbyport_r="yes"
34354         tst_nargs_getservbyport_r="6"
34355
34356 else
34357
34358         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34359 $as_echo "no" >&6; }
34360         tst_compi_getservbyport_r="no"
34361
34362 fi
34363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34364     fi
34365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34366 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34367     if test "$tst_compi_getservbyport_r" = "yes"; then
34368       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34369 $as_echo "yes" >&6; }
34370     else
34371       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34372 $as_echo "no" >&6; }
34373     fi
34374   fi
34375   #
34376   if test "$tst_compi_getservbyport_r" = "yes"; then
34377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34378 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34379     if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34380       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34381 $as_echo "yes" >&6; }
34382       tst_allow_getservbyport_r="yes"
34383     else
34384       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34385 $as_echo "no" >&6; }
34386       tst_allow_getservbyport_r="no"
34387     fi
34388   fi
34389   #
34390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34391 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
34392   if test "$tst_links_getservbyport_r" = "yes" &&
34393      test "$tst_proto_getservbyport_r" = "yes" &&
34394      test "$tst_compi_getservbyport_r" = "yes" &&
34395      test "$tst_allow_getservbyport_r" = "yes"; then
34396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34397 $as_echo "yes" >&6; }
34398
34399 cat >>confdefs.h <<_ACEOF
34400 #define HAVE_GETSERVBYPORT_R 1
34401 _ACEOF
34402
34403
34404 cat >>confdefs.h <<_ACEOF
34405 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34406 _ACEOF
34407
34408     if test "$tst_nargs_getservbyport_r" -eq "4"; then
34409
34410 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34411
34412     else
34413
34414 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34415
34416     fi
34417     curl_cv_func_getservbyport_r="yes"
34418   else
34419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34420 $as_echo "no" >&6; }
34421     curl_cv_func_getservbyport_r="no"
34422   fi
34423
34424
34425 curl_includes_time="\
34426 /* includes start */
34427 #ifdef HAVE_SYS_TYPES_H
34428 #  include <sys/types.h>
34429 #endif
34430 #ifdef HAVE_SYS_TIME_H
34431 #  include <sys/time.h>
34432 #  ifdef TIME_WITH_SYS_TIME
34433 #    include <time.h>
34434 #  endif
34435 #else
34436 #  ifdef HAVE_TIME_H
34437 #    include <time.h>
34438 #  endif
34439 #endif
34440 /* includes end */"
34441   for ac_header in sys/types.h sys/time.h time.h
34442 do :
34443   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34444 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34445 "
34446 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34447   cat >>confdefs.h <<_ACEOF
34448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34449 _ACEOF
34450
34451 fi
34452
34453 done
34454
34455
34456
34457       #
34458   tst_links_gmtime_r="unknown"
34459   tst_proto_gmtime_r="unknown"
34460   tst_compi_gmtime_r="unknown"
34461   tst_works_gmtime_r="unknown"
34462   tst_allow_gmtime_r="unknown"
34463   #
34464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34465 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
34466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34467 /* end confdefs.h.  */
34468
34469
34470 #define gmtime_r innocuous_gmtime_r
34471 #ifdef __STDC__
34472 # include <limits.h>
34473 #else
34474 # include <assert.h>
34475 #endif
34476 #undef gmtime_r
34477 #ifdef __cplusplus
34478 extern "C"
34479 #endif
34480 char gmtime_r ();
34481 #if defined __stub_gmtime_r || defined __stub___gmtime_r
34482 choke me
34483 #endif
34484
34485 int main (void)
34486 {
34487 return gmtime_r ();
34488  ;
34489  return 0;
34490 }
34491
34492 _ACEOF
34493 if ac_fn_c_try_link "$LINENO"; then :
34494
34495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34496 $as_echo "yes" >&6; }
34497     tst_links_gmtime_r="yes"
34498
34499 else
34500
34501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34502 $as_echo "no" >&6; }
34503     tst_links_gmtime_r="no"
34504
34505 fi
34506 rm -f core conftest.err conftest.$ac_objext \
34507     conftest$ac_exeext conftest.$ac_ext
34508   #
34509   if test "$tst_links_gmtime_r" = "yes"; then
34510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34511 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34513 /* end confdefs.h.  */
34514
34515       $curl_includes_time
34516
34517 _ACEOF
34518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34519   $EGREP "gmtime_r" >/dev/null 2>&1; then :
34520
34521       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34522 $as_echo "yes" >&6; }
34523       tst_proto_gmtime_r="yes"
34524
34525 else
34526
34527       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34528 $as_echo "no" >&6; }
34529       tst_proto_gmtime_r="no"
34530
34531 fi
34532 rm -f conftest*
34533
34534   fi
34535   #
34536   if test "$tst_proto_gmtime_r" = "yes"; then
34537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34538 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
34539     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34540 /* end confdefs.h.  */
34541
34542
34543         $curl_includes_time
34544
34545 int main (void)
34546 {
34547
34548         if(0 != gmtime_r(0, 0))
34549           return 1;
34550
34551  ;
34552  return 0;
34553 }
34554
34555 _ACEOF
34556 if ac_fn_c_try_compile "$LINENO"; then :
34557
34558       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34559 $as_echo "yes" >&6; }
34560       tst_compi_gmtime_r="yes"
34561
34562 else
34563
34564       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34565 $as_echo "no" >&6; }
34566       tst_compi_gmtime_r="no"
34567
34568 fi
34569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34570   fi
34571   #
34572     if test "x$cross_compiling" != "xyes" &&
34573     test "$tst_compi_gmtime_r" = "yes"; then
34574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34575 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
34576
34577
34578    old=$LD_LIBRARY_PATH
34579    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34580    export LD_LIBRARY_PATH
34581    if test "$cross_compiling" = yes; then :
34582   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34584 as_fn_error $? "cannot run test program while cross compiling
34585 See \`config.log' for more details" "$LINENO" 5; }
34586 else
34587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34588 /* end confdefs.h.  */
34589
34590
34591         $curl_includes_stdlib
34592         $curl_includes_time
34593
34594 int main (void)
34595 {
34596
34597         time_t local = 1170352587;
34598         struct tm *gmt = 0;
34599         struct tm result;
34600         gmt = gmtime_r(&local, &result);
34601         if(gmt)
34602           exit(0);
34603         else
34604           exit(1);
34605
34606  ;
34607  return 0;
34608 }
34609
34610 _ACEOF
34611 if ac_fn_c_try_run "$LINENO"; then :
34612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34613 $as_echo "yes" >&6; }
34614       tst_works_gmtime_r="yes"
34615
34616 else
34617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34618 $as_echo "no" >&6; }
34619       tst_works_gmtime_r="no"
34620
34621 fi
34622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34623   conftest.$ac_objext conftest.beam conftest.$ac_ext
34624 fi
34625
34626    LD_LIBRARY_PATH=$old # restore
34627
34628   fi
34629   #
34630   if test "$tst_compi_gmtime_r" = "yes" &&
34631     test "$tst_works_gmtime_r" != "no"; then
34632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34633 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34634     if test "x$curl_disallow_gmtime_r" != "xyes"; then
34635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34636 $as_echo "yes" >&6; }
34637       tst_allow_gmtime_r="yes"
34638     else
34639       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34640 $as_echo "no" >&6; }
34641       tst_allow_gmtime_r="no"
34642     fi
34643   fi
34644   #
34645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34646 $as_echo_n "checking if gmtime_r might be used... " >&6; }
34647   if test "$tst_links_gmtime_r" = "yes" &&
34648      test "$tst_proto_gmtime_r" = "yes" &&
34649      test "$tst_compi_gmtime_r" = "yes" &&
34650      test "$tst_allow_gmtime_r" = "yes" &&
34651      test "$tst_works_gmtime_r" != "no"; then
34652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34653 $as_echo "yes" >&6; }
34654
34655 cat >>confdefs.h <<_ACEOF
34656 #define HAVE_GMTIME_R 1
34657 _ACEOF
34658
34659     curl_cv_func_gmtime_r="yes"
34660   else
34661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34662 $as_echo "no" >&6; }
34663     curl_cv_func_gmtime_r="no"
34664   fi
34665
34666
34667 curl_includes_arpa_inet="\
34668 /* includes start */
34669 #ifdef HAVE_SYS_TYPES_H
34670 #  include <sys/types.h>
34671 #endif
34672 #ifdef HAVE_SYS_SOCKET_H
34673 #  include <sys/socket.h>
34674 #endif
34675 #ifdef HAVE_NETINET_IN_H
34676 #  include <netinet/in.h>
34677 #endif
34678 #ifdef HAVE_ARPA_INET_H
34679 #  include <arpa/inet.h>
34680 #endif
34681 #ifdef HAVE_WINSOCK2_H
34682 #include <winsock2.h>
34683 #include <ws2tcpip.h>
34684 #endif
34685 /* includes end */"
34686   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34687 do :
34688   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34689 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34690 "
34691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34692   cat >>confdefs.h <<_ACEOF
34693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34694 _ACEOF
34695
34696 fi
34697
34698 done
34699
34700
34701
34702     #
34703   tst_links_inet_ntoa_r="unknown"
34704   tst_proto_inet_ntoa_r="unknown"
34705   tst_compi_inet_ntoa_r="unknown"
34706   tst_allow_inet_ntoa_r="unknown"
34707   tst_nargs_inet_ntoa_r="unknown"
34708   #
34709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34710 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34712 /* end confdefs.h.  */
34713
34714
34715 #define inet_ntoa_r innocuous_inet_ntoa_r
34716 #ifdef __STDC__
34717 # include <limits.h>
34718 #else
34719 # include <assert.h>
34720 #endif
34721 #undef inet_ntoa_r
34722 #ifdef __cplusplus
34723 extern "C"
34724 #endif
34725 char inet_ntoa_r ();
34726 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34727 choke me
34728 #endif
34729
34730 int main (void)
34731 {
34732 return inet_ntoa_r ();
34733  ;
34734  return 0;
34735 }
34736
34737 _ACEOF
34738 if ac_fn_c_try_link "$LINENO"; then :
34739
34740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34741 $as_echo "yes" >&6; }
34742     tst_links_inet_ntoa_r="yes"
34743
34744 else
34745
34746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34747 $as_echo "no" >&6; }
34748     tst_links_inet_ntoa_r="no"
34749
34750 fi
34751 rm -f core conftest.err conftest.$ac_objext \
34752     conftest$ac_exeext conftest.$ac_ext
34753   #
34754   if test "$tst_links_inet_ntoa_r" = "yes"; then
34755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34756 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34757     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34758 /* end confdefs.h.  */
34759
34760       $curl_includes_arpa_inet
34761
34762 _ACEOF
34763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34764   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34765
34766       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34767 $as_echo "yes" >&6; }
34768       tst_proto_inet_ntoa_r="yes"
34769
34770 else
34771
34772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34773 $as_echo "no" >&6; }
34774       tst_proto_inet_ntoa_r="no"
34775
34776 fi
34777 rm -f conftest*
34778
34779   fi
34780   #
34781   if test "$tst_proto_inet_ntoa_r" = "yes"; then
34782     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34783       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34784 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34785       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34786 /* end confdefs.h.  */
34787
34788
34789           $curl_includes_arpa_inet
34790
34791 int main (void)
34792 {
34793
34794           struct in_addr addr;
34795           if(0 != inet_ntoa_r(addr, 0))
34796             return 1;
34797
34798  ;
34799  return 0;
34800 }
34801
34802 _ACEOF
34803 if ac_fn_c_try_compile "$LINENO"; then :
34804
34805         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34806 $as_echo "yes" >&6; }
34807         tst_compi_inet_ntoa_r="yes"
34808         tst_nargs_inet_ntoa_r="2"
34809
34810 else
34811
34812         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34813 $as_echo "no" >&6; }
34814         tst_compi_inet_ntoa_r="no"
34815
34816 fi
34817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34818     fi
34819     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34820       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34821 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34822       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34823 /* end confdefs.h.  */
34824
34825
34826           $curl_includes_arpa_inet
34827
34828 int main (void)
34829 {
34830
34831           struct in_addr addr;
34832           if(0 != inet_ntoa_r(addr, 0, 0))
34833             return 1;
34834
34835  ;
34836  return 0;
34837 }
34838
34839 _ACEOF
34840 if ac_fn_c_try_compile "$LINENO"; then :
34841
34842         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34843 $as_echo "yes" >&6; }
34844         tst_compi_inet_ntoa_r="yes"
34845         tst_nargs_inet_ntoa_r="3"
34846
34847 else
34848
34849         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34850 $as_echo "no" >&6; }
34851         tst_compi_inet_ntoa_r="no"
34852
34853 fi
34854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34855     fi
34856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34857 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34858     if test "$tst_compi_inet_ntoa_r" = "yes"; then
34859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34860 $as_echo "yes" >&6; }
34861     else
34862       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34863 $as_echo "no" >&6; }
34864     fi
34865   fi
34866   #
34867   if test "$tst_compi_inet_ntoa_r" = "yes"; then
34868     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34869 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34870     if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34872 $as_echo "yes" >&6; }
34873       tst_allow_inet_ntoa_r="yes"
34874     else
34875       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34876 $as_echo "no" >&6; }
34877       tst_allow_inet_ntoa_r="no"
34878     fi
34879   fi
34880   #
34881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34882 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34883   if test "$tst_links_inet_ntoa_r" = "yes" &&
34884      test "$tst_proto_inet_ntoa_r" = "yes" &&
34885      test "$tst_compi_inet_ntoa_r" = "yes" &&
34886      test "$tst_allow_inet_ntoa_r" = "yes"; then
34887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34888 $as_echo "yes" >&6; }
34889
34890 cat >>confdefs.h <<_ACEOF
34891 #define HAVE_INET_NTOA_R 1
34892 _ACEOF
34893
34894             #
34895     if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34896
34897 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34898
34899     elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34900
34901 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34902
34903     fi
34904     #
34905     curl_cv_func_inet_ntoa_r="yes"
34906   else
34907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34908 $as_echo "no" >&6; }
34909     curl_cv_func_inet_ntoa_r="no"
34910   fi
34911
34912
34913         #
34914   tst_links_inet_ntop="unknown"
34915   tst_proto_inet_ntop="unknown"
34916   tst_compi_inet_ntop="unknown"
34917   tst_works_inet_ntop="unknown"
34918   tst_allow_inet_ntop="unknown"
34919   #
34920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34921 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
34922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34923 /* end confdefs.h.  */
34924
34925
34926 #define inet_ntop innocuous_inet_ntop
34927 #ifdef __STDC__
34928 # include <limits.h>
34929 #else
34930 # include <assert.h>
34931 #endif
34932 #undef inet_ntop
34933 #ifdef __cplusplus
34934 extern "C"
34935 #endif
34936 char inet_ntop ();
34937 #if defined __stub_inet_ntop || defined __stub___inet_ntop
34938 choke me
34939 #endif
34940
34941 int main (void)
34942 {
34943 return inet_ntop ();
34944  ;
34945  return 0;
34946 }
34947
34948 _ACEOF
34949 if ac_fn_c_try_link "$LINENO"; then :
34950
34951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34952 $as_echo "yes" >&6; }
34953     tst_links_inet_ntop="yes"
34954
34955 else
34956
34957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34958 $as_echo "no" >&6; }
34959     tst_links_inet_ntop="no"
34960
34961 fi
34962 rm -f core conftest.err conftest.$ac_objext \
34963     conftest$ac_exeext conftest.$ac_ext
34964   #
34965   if test "$tst_links_inet_ntop" = "yes"; then
34966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34967 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34968     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34969 /* end confdefs.h.  */
34970
34971       $curl_includes_arpa_inet
34972
34973 _ACEOF
34974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34975   $EGREP "inet_ntop" >/dev/null 2>&1; then :
34976
34977       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34978 $as_echo "yes" >&6; }
34979       tst_proto_inet_ntop="yes"
34980
34981 else
34982
34983       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34984 $as_echo "no" >&6; }
34985       tst_proto_inet_ntop="no"
34986
34987 fi
34988 rm -f conftest*
34989
34990   fi
34991   #
34992   if test "$tst_proto_inet_ntop" = "yes"; then
34993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34994 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
34995     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34996 /* end confdefs.h.  */
34997
34998
34999         $curl_includes_arpa_inet
35000
35001 int main (void)
35002 {
35003
35004         if(0 != inet_ntop(0, 0, 0, 0))
35005           return 1;
35006
35007  ;
35008  return 0;
35009 }
35010
35011 _ACEOF
35012 if ac_fn_c_try_compile "$LINENO"; then :
35013
35014       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35015 $as_echo "yes" >&6; }
35016       tst_compi_inet_ntop="yes"
35017
35018 else
35019
35020       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35021 $as_echo "no" >&6; }
35022       tst_compi_inet_ntop="no"
35023
35024 fi
35025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35026   fi
35027   #
35028     if test "x$cross_compiling" != "xyes" &&
35029     test "$tst_compi_inet_ntop" = "yes"; then
35030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
35031 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
35032
35033
35034    old=$LD_LIBRARY_PATH
35035    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35036    export LD_LIBRARY_PATH
35037    if test "$cross_compiling" = yes; then :
35038   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35040 as_fn_error $? "cannot run test program while cross compiling
35041 See \`config.log' for more details" "$LINENO" 5; }
35042 else
35043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35044 /* end confdefs.h.  */
35045
35046
35047         $curl_includes_stdlib
35048         $curl_includes_arpa_inet
35049         $curl_includes_string
35050
35051 int main (void)
35052 {
35053
35054         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
35055         char ipv4res[sizeof "255.255.255.255"];
35056         unsigned char ipv6a[26];
35057         unsigned char ipv4a[5];
35058         char *ipv6ptr = 0;
35059         char *ipv4ptr = 0;
35060         /* - */
35061         ipv4res[0] = '\0';
35062         ipv4a[0] = 0xc0;
35063         ipv4a[1] = 0xa8;
35064         ipv4a[2] = 0x64;
35065         ipv4a[3] = 0x01;
35066         ipv4a[4] = 0x01;
35067         /* - */
35068         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
35069         if(!ipv4ptr)
35070           exit(1); /* fail */
35071         if(ipv4ptr != ipv4res)
35072           exit(1); /* fail */
35073         if(!ipv4ptr[0])
35074           exit(1); /* fail */
35075         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
35076           exit(1); /* fail */
35077         /* - */
35078         ipv6res[0] = '\0';
35079         memset(ipv6a, 0, sizeof(ipv6a));
35080         ipv6a[0] = 0xfe;
35081         ipv6a[1] = 0x80;
35082         ipv6a[8] = 0x02;
35083         ipv6a[9] = 0x14;
35084         ipv6a[10] = 0x4f;
35085         ipv6a[11] = 0xff;
35086         ipv6a[12] = 0xfe;
35087         ipv6a[13] = 0x0b;
35088         ipv6a[14] = 0x76;
35089         ipv6a[15] = 0xc8;
35090         ipv6a[25] = 0x01;
35091         /* - */
35092         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
35093         if(!ipv6ptr)
35094           exit(1); /* fail */
35095         if(ipv6ptr != ipv6res)
35096           exit(1); /* fail */
35097         if(!ipv6ptr[0])
35098           exit(1); /* fail */
35099         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
35100           exit(1); /* fail */
35101         /* - */
35102         exit(0);
35103
35104  ;
35105  return 0;
35106 }
35107
35108 _ACEOF
35109 if ac_fn_c_try_run "$LINENO"; then :
35110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35111 $as_echo "yes" >&6; }
35112       tst_works_inet_ntop="yes"
35113
35114 else
35115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35116 $as_echo "no" >&6; }
35117       tst_works_inet_ntop="no"
35118
35119 fi
35120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35121   conftest.$ac_objext conftest.beam conftest.$ac_ext
35122 fi
35123
35124    LD_LIBRARY_PATH=$old # restore
35125
35126   fi
35127   #
35128   if test "$tst_compi_inet_ntop" = "yes" &&
35129     test "$tst_works_inet_ntop" != "no"; then
35130     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
35131 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
35132     if test "x$curl_disallow_inet_ntop" != "xyes"; then
35133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35134 $as_echo "yes" >&6; }
35135       tst_allow_inet_ntop="yes"
35136     else
35137       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35138 $as_echo "no" >&6; }
35139       tst_allow_inet_ntop="no"
35140     fi
35141   fi
35142   #
35143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
35144 $as_echo_n "checking if inet_ntop might be used... " >&6; }
35145   if test "$tst_links_inet_ntop" = "yes" &&
35146      test "$tst_proto_inet_ntop" = "yes" &&
35147      test "$tst_compi_inet_ntop" = "yes" &&
35148      test "$tst_allow_inet_ntop" = "yes" &&
35149      test "$tst_works_inet_ntop" != "no"; then
35150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35151 $as_echo "yes" >&6; }
35152
35153 cat >>confdefs.h <<_ACEOF
35154 #define HAVE_INET_NTOP 1
35155 _ACEOF
35156
35157     curl_cv_func_inet_ntop="yes"
35158   else
35159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35160 $as_echo "no" >&6; }
35161     curl_cv_func_inet_ntop="no"
35162   fi
35163
35164
35165         #
35166   tst_links_inet_pton="unknown"
35167   tst_proto_inet_pton="unknown"
35168   tst_compi_inet_pton="unknown"
35169   tst_works_inet_pton="unknown"
35170   tst_allow_inet_pton="unknown"
35171   #
35172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
35173 $as_echo_n "checking if inet_pton can be linked... " >&6; }
35174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35175 /* end confdefs.h.  */
35176
35177
35178 #define inet_pton innocuous_inet_pton
35179 #ifdef __STDC__
35180 # include <limits.h>
35181 #else
35182 # include <assert.h>
35183 #endif
35184 #undef inet_pton
35185 #ifdef __cplusplus
35186 extern "C"
35187 #endif
35188 char inet_pton ();
35189 #if defined __stub_inet_pton || defined __stub___inet_pton
35190 choke me
35191 #endif
35192
35193 int main (void)
35194 {
35195 return inet_pton ();
35196  ;
35197  return 0;
35198 }
35199
35200 _ACEOF
35201 if ac_fn_c_try_link "$LINENO"; then :
35202
35203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35204 $as_echo "yes" >&6; }
35205     tst_links_inet_pton="yes"
35206
35207 else
35208
35209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35210 $as_echo "no" >&6; }
35211     tst_links_inet_pton="no"
35212
35213 fi
35214 rm -f core conftest.err conftest.$ac_objext \
35215     conftest$ac_exeext conftest.$ac_ext
35216   #
35217   if test "$tst_links_inet_pton" = "yes"; then
35218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
35219 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
35220     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35221 /* end confdefs.h.  */
35222
35223       $curl_includes_arpa_inet
35224
35225 _ACEOF
35226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35227   $EGREP "inet_pton" >/dev/null 2>&1; then :
35228
35229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35230 $as_echo "yes" >&6; }
35231       tst_proto_inet_pton="yes"
35232
35233 else
35234
35235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35236 $as_echo "no" >&6; }
35237       tst_proto_inet_pton="no"
35238
35239 fi
35240 rm -f conftest*
35241
35242   fi
35243   #
35244   if test "$tst_proto_inet_pton" = "yes"; then
35245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35246 $as_echo_n "checking if inet_pton is compilable... " >&6; }
35247     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35248 /* end confdefs.h.  */
35249
35250
35251         $curl_includes_arpa_inet
35252
35253 int main (void)
35254 {
35255
35256         if(0 != inet_pton(0, 0, 0))
35257           return 1;
35258
35259  ;
35260  return 0;
35261 }
35262
35263 _ACEOF
35264 if ac_fn_c_try_compile "$LINENO"; then :
35265
35266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35267 $as_echo "yes" >&6; }
35268       tst_compi_inet_pton="yes"
35269
35270 else
35271
35272       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35273 $as_echo "no" >&6; }
35274       tst_compi_inet_pton="no"
35275
35276 fi
35277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35278   fi
35279   #
35280     if test "x$cross_compiling" != "xyes" &&
35281     test "$tst_compi_inet_pton" = "yes"; then
35282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35283 $as_echo_n "checking if inet_pton seems to work... " >&6; }
35284
35285
35286    old=$LD_LIBRARY_PATH
35287    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35288    export LD_LIBRARY_PATH
35289    if test "$cross_compiling" = yes; then :
35290   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35292 as_fn_error $? "cannot run test program while cross compiling
35293 See \`config.log' for more details" "$LINENO" 5; }
35294 else
35295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35296 /* end confdefs.h.  */
35297
35298
35299         $curl_includes_stdlib
35300         $curl_includes_arpa_inet
35301         $curl_includes_string
35302
35303 int main (void)
35304 {
35305
35306         unsigned char ipv6a[16+1];
35307         unsigned char ipv4a[4+1];
35308         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35309         const char *ipv4src = "192.168.100.1";
35310         /* - */
35311         memset(ipv4a, 1, sizeof(ipv4a));
35312         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35313           exit(1); /* fail */
35314         /* - */
35315         if( (ipv4a[0] != 0xc0) ||
35316             (ipv4a[1] != 0xa8) ||
35317             (ipv4a[2] != 0x64) ||
35318             (ipv4a[3] != 0x01) ||
35319             (ipv4a[4] != 0x01) )
35320           exit(1); /* fail */
35321         /* - */
35322         memset(ipv6a, 1, sizeof(ipv6a));
35323         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35324           exit(1); /* fail */
35325         /* - */
35326         if( (ipv6a[0]  != 0xfe) ||
35327             (ipv6a[1]  != 0x80) ||
35328             (ipv6a[8]  != 0x02) ||
35329             (ipv6a[9]  != 0x14) ||
35330             (ipv6a[10] != 0x4f) ||
35331             (ipv6a[11] != 0xff) ||
35332             (ipv6a[12] != 0xfe) ||
35333             (ipv6a[13] != 0x0b) ||
35334             (ipv6a[14] != 0x76) ||
35335             (ipv6a[15] != 0xc8) ||
35336             (ipv6a[16] != 0x01) )
35337           exit(1); /* fail */
35338         /* - */
35339         if( (ipv6a[2]  != 0x0) ||
35340             (ipv6a[3]  != 0x0) ||
35341             (ipv6a[4]  != 0x0) ||
35342             (ipv6a[5]  != 0x0) ||
35343             (ipv6a[6]  != 0x0) ||
35344             (ipv6a[7]  != 0x0) )
35345           exit(1); /* fail */
35346         /* - */
35347         exit(0);
35348
35349  ;
35350  return 0;
35351 }
35352
35353 _ACEOF
35354 if ac_fn_c_try_run "$LINENO"; then :
35355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35356 $as_echo "yes" >&6; }
35357       tst_works_inet_pton="yes"
35358
35359 else
35360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35361 $as_echo "no" >&6; }
35362       tst_works_inet_pton="no"
35363
35364 fi
35365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35366   conftest.$ac_objext conftest.beam conftest.$ac_ext
35367 fi
35368
35369    LD_LIBRARY_PATH=$old # restore
35370
35371   fi
35372   #
35373   if test "$tst_compi_inet_pton" = "yes" &&
35374     test "$tst_works_inet_pton" != "no"; then
35375     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35376 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
35377     if test "x$curl_disallow_inet_pton" != "xyes"; then
35378       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35379 $as_echo "yes" >&6; }
35380       tst_allow_inet_pton="yes"
35381     else
35382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35383 $as_echo "no" >&6; }
35384       tst_allow_inet_pton="no"
35385     fi
35386   fi
35387   #
35388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35389 $as_echo_n "checking if inet_pton might be used... " >&6; }
35390   if test "$tst_links_inet_pton" = "yes" &&
35391      test "$tst_proto_inet_pton" = "yes" &&
35392      test "$tst_compi_inet_pton" = "yes" &&
35393      test "$tst_allow_inet_pton" = "yes" &&
35394      test "$tst_works_inet_pton" != "no"; then
35395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35396 $as_echo "yes" >&6; }
35397
35398 cat >>confdefs.h <<_ACEOF
35399 #define HAVE_INET_PTON 1
35400 _ACEOF
35401
35402     curl_cv_func_inet_pton="yes"
35403   else
35404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35405 $as_echo "no" >&6; }
35406     curl_cv_func_inet_pton="no"
35407   fi
35408
35409
35410 curl_includes_stropts="\
35411 /* includes start */
35412 #ifdef HAVE_SYS_TYPES_H
35413 #  include <sys/types.h>
35414 #endif
35415 #ifdef HAVE_UNISTD_H
35416 #  include <unistd.h>
35417 #endif
35418 #ifdef HAVE_SYS_SOCKET_H
35419 #  include <sys/socket.h>
35420 #endif
35421 #ifdef HAVE_SYS_IOCTL_H
35422 #  include <sys/ioctl.h>
35423 #endif
35424 #ifdef HAVE_STROPTS_H
35425 #  include <stropts.h>
35426 #endif
35427 /* includes end */"
35428   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35429 do :
35430   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35431 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35432 "
35433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35434   cat >>confdefs.h <<_ACEOF
35435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35436 _ACEOF
35437
35438 fi
35439
35440 done
35441
35442
35443
35444     #
35445   tst_links_ioctl="unknown"
35446   tst_proto_ioctl="unknown"
35447   tst_compi_ioctl="unknown"
35448   tst_allow_ioctl="unknown"
35449   #
35450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35451 $as_echo_n "checking if ioctl can be linked... " >&6; }
35452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35453 /* end confdefs.h.  */
35454
35455
35456 #define ioctl innocuous_ioctl
35457 #ifdef __STDC__
35458 # include <limits.h>
35459 #else
35460 # include <assert.h>
35461 #endif
35462 #undef ioctl
35463 #ifdef __cplusplus
35464 extern "C"
35465 #endif
35466 char ioctl ();
35467 #if defined __stub_ioctl || defined __stub___ioctl
35468 choke me
35469 #endif
35470
35471 int main (void)
35472 {
35473 return ioctl ();
35474  ;
35475  return 0;
35476 }
35477
35478 _ACEOF
35479 if ac_fn_c_try_link "$LINENO"; then :
35480
35481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35482 $as_echo "yes" >&6; }
35483     tst_links_ioctl="yes"
35484
35485 else
35486
35487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35488 $as_echo "no" >&6; }
35489     tst_links_ioctl="no"
35490
35491 fi
35492 rm -f core conftest.err conftest.$ac_objext \
35493     conftest$ac_exeext conftest.$ac_ext
35494   #
35495   if test "$tst_links_ioctl" = "yes"; then
35496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35497 $as_echo_n "checking if ioctl is prototyped... " >&6; }
35498     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35499 /* end confdefs.h.  */
35500
35501       $curl_includes_stropts
35502
35503 _ACEOF
35504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35505   $EGREP "ioctl" >/dev/null 2>&1; then :
35506
35507       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35508 $as_echo "yes" >&6; }
35509       tst_proto_ioctl="yes"
35510
35511 else
35512
35513       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35514 $as_echo "no" >&6; }
35515       tst_proto_ioctl="no"
35516
35517 fi
35518 rm -f conftest*
35519
35520   fi
35521   #
35522   if test "$tst_proto_ioctl" = "yes"; then
35523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35524 $as_echo_n "checking if ioctl is compilable... " >&6; }
35525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35526 /* end confdefs.h.  */
35527
35528
35529         $curl_includes_stropts
35530
35531 int main (void)
35532 {
35533
35534         if(0 != ioctl(0, 0, 0))
35535           return 1;
35536
35537  ;
35538  return 0;
35539 }
35540
35541 _ACEOF
35542 if ac_fn_c_try_compile "$LINENO"; then :
35543
35544       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35545 $as_echo "yes" >&6; }
35546       tst_compi_ioctl="yes"
35547
35548 else
35549
35550       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35551 $as_echo "no" >&6; }
35552       tst_compi_ioctl="no"
35553
35554 fi
35555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35556   fi
35557   #
35558   if test "$tst_compi_ioctl" = "yes"; then
35559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35560 $as_echo_n "checking if ioctl usage allowed... " >&6; }
35561     if test "x$curl_disallow_ioctl" != "xyes"; then
35562       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35563 $as_echo "yes" >&6; }
35564       tst_allow_ioctl="yes"
35565     else
35566       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35567 $as_echo "no" >&6; }
35568       tst_allow_ioctl="no"
35569     fi
35570   fi
35571   #
35572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35573 $as_echo_n "checking if ioctl might be used... " >&6; }
35574   if test "$tst_links_ioctl" = "yes" &&
35575      test "$tst_proto_ioctl" = "yes" &&
35576      test "$tst_compi_ioctl" = "yes" &&
35577      test "$tst_allow_ioctl" = "yes"; then
35578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35579 $as_echo "yes" >&6; }
35580
35581 cat >>confdefs.h <<_ACEOF
35582 #define HAVE_IOCTL 1
35583 _ACEOF
35584
35585     curl_cv_func_ioctl="yes"
35586
35587   #
35588   tst_compi_ioctl_fionbio="unknown"
35589   tst_allow_ioctl_fionbio="unknown"
35590   #
35591   if test "$curl_cv_func_ioctl" = "yes"; then
35592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35593 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35594     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35595 /* end confdefs.h.  */
35596
35597
35598         $curl_includes_stropts
35599
35600 int main (void)
35601 {
35602
35603         int flags = 0;
35604         if(0 != ioctl(0, FIONBIO, &flags))
35605           return 1;
35606
35607  ;
35608  return 0;
35609 }
35610
35611 _ACEOF
35612 if ac_fn_c_try_compile "$LINENO"; then :
35613
35614       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35615 $as_echo "yes" >&6; }
35616       tst_compi_ioctl_fionbio="yes"
35617
35618 else
35619
35620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35621 $as_echo "no" >&6; }
35622       tst_compi_ioctl_fionbio="no"
35623
35624 fi
35625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35626   fi
35627   #
35628   if test "$tst_compi_ioctl_fionbio" = "yes"; then
35629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35630 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35631     if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35632       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35633 $as_echo "yes" >&6; }
35634       tst_allow_ioctl_fionbio="yes"
35635     else
35636       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35637 $as_echo "no" >&6; }
35638       tst_allow_ioctl_fionbio="no"
35639     fi
35640   fi
35641   #
35642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35643 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35644   if test "$tst_compi_ioctl_fionbio" = "yes" &&
35645      test "$tst_allow_ioctl_fionbio" = "yes"; then
35646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35647 $as_echo "yes" >&6; }
35648
35649 cat >>confdefs.h <<_ACEOF
35650 #define HAVE_IOCTL_FIONBIO 1
35651 _ACEOF
35652
35653     curl_cv_func_ioctl_fionbio="yes"
35654   else
35655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35656 $as_echo "no" >&6; }
35657     curl_cv_func_ioctl_fionbio="no"
35658   fi
35659
35660
35661   #
35662   tst_compi_ioctl_siocgifaddr="unknown"
35663   tst_allow_ioctl_siocgifaddr="unknown"
35664   #
35665   if test "$curl_cv_func_ioctl" = "yes"; then
35666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35667 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35668     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35669 /* end confdefs.h.  */
35670
35671
35672         $curl_includes_stropts
35673         #include <net/if.h>
35674
35675 int main (void)
35676 {
35677
35678         struct ifreq ifr;
35679         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35680           return 1;
35681
35682  ;
35683  return 0;
35684 }
35685
35686 _ACEOF
35687 if ac_fn_c_try_compile "$LINENO"; then :
35688
35689       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35690 $as_echo "yes" >&6; }
35691       tst_compi_ioctl_siocgifaddr="yes"
35692
35693 else
35694
35695       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35696 $as_echo "no" >&6; }
35697       tst_compi_ioctl_siocgifaddr="no"
35698
35699 fi
35700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35701   fi
35702   #
35703   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35705 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35706     if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35708 $as_echo "yes" >&6; }
35709       tst_allow_ioctl_siocgifaddr="yes"
35710     else
35711       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35712 $as_echo "no" >&6; }
35713       tst_allow_ioctl_siocgifaddr="no"
35714     fi
35715   fi
35716   #
35717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35718 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35719   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35720      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35722 $as_echo "yes" >&6; }
35723
35724 cat >>confdefs.h <<_ACEOF
35725 #define HAVE_IOCTL_SIOCGIFADDR 1
35726 _ACEOF
35727
35728     curl_cv_func_ioctl_siocgifaddr="yes"
35729   else
35730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35731 $as_echo "no" >&6; }
35732     curl_cv_func_ioctl_siocgifaddr="no"
35733   fi
35734
35735   else
35736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35737 $as_echo "no" >&6; }
35738     curl_cv_func_ioctl="no"
35739   fi
35740
35741
35742     #
35743   tst_links_ioctlsocket="unknown"
35744   tst_proto_ioctlsocket="unknown"
35745   tst_compi_ioctlsocket="unknown"
35746   tst_allow_ioctlsocket="unknown"
35747   #
35748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35749 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35751 /* end confdefs.h.  */
35752
35753
35754       $curl_includes_winsock2
35755
35756 int main (void)
35757 {
35758
35759       if(0 != ioctlsocket(0, 0, 0))
35760         return 1;
35761
35762  ;
35763  return 0;
35764 }
35765
35766 _ACEOF
35767 if ac_fn_c_try_link "$LINENO"; then :
35768
35769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35770 $as_echo "yes" >&6; }
35771     tst_links_ioctlsocket="yes"
35772
35773 else
35774
35775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35776 $as_echo "no" >&6; }
35777     tst_links_ioctlsocket="no"
35778
35779 fi
35780 rm -f core conftest.err conftest.$ac_objext \
35781     conftest$ac_exeext conftest.$ac_ext
35782   #
35783   if test "$tst_links_ioctlsocket" = "yes"; then
35784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35785 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35786     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35787 /* end confdefs.h.  */
35788
35789       $curl_includes_winsock2
35790
35791 _ACEOF
35792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35793   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35794
35795       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35796 $as_echo "yes" >&6; }
35797       tst_proto_ioctlsocket="yes"
35798
35799 else
35800
35801       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35802 $as_echo "no" >&6; }
35803       tst_proto_ioctlsocket="no"
35804
35805 fi
35806 rm -f conftest*
35807
35808   fi
35809   #
35810   if test "$tst_proto_ioctlsocket" = "yes"; then
35811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35812 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35813     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35814 /* end confdefs.h.  */
35815
35816
35817         $curl_includes_winsock2
35818
35819 int main (void)
35820 {
35821
35822         if(0 != ioctlsocket(0, 0, 0))
35823           return 1;
35824
35825  ;
35826  return 0;
35827 }
35828
35829 _ACEOF
35830 if ac_fn_c_try_compile "$LINENO"; then :
35831
35832       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35833 $as_echo "yes" >&6; }
35834       tst_compi_ioctlsocket="yes"
35835
35836 else
35837
35838       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35839 $as_echo "no" >&6; }
35840       tst_compi_ioctlsocket="no"
35841
35842 fi
35843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35844   fi
35845   #
35846   if test "$tst_compi_ioctlsocket" = "yes"; then
35847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35848 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35849     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35850       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35851 $as_echo "yes" >&6; }
35852       tst_allow_ioctlsocket="yes"
35853     else
35854       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35855 $as_echo "no" >&6; }
35856       tst_allow_ioctlsocket="no"
35857     fi
35858   fi
35859   #
35860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35861 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
35862   if test "$tst_links_ioctlsocket" = "yes" &&
35863      test "$tst_proto_ioctlsocket" = "yes" &&
35864      test "$tst_compi_ioctlsocket" = "yes" &&
35865      test "$tst_allow_ioctlsocket" = "yes"; then
35866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35867 $as_echo "yes" >&6; }
35868
35869 cat >>confdefs.h <<_ACEOF
35870 #define HAVE_IOCTLSOCKET 1
35871 _ACEOF
35872
35873     curl_cv_func_ioctlsocket="yes"
35874
35875   #
35876   tst_compi_ioctlsocket_fionbio="unknown"
35877   tst_allow_ioctlsocket_fionbio="unknown"
35878   #
35879   if test "$curl_cv_func_ioctlsocket" = "yes"; then
35880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35881 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35882     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35883 /* end confdefs.h.  */
35884
35885
35886         $curl_includes_winsock2
35887
35888 int main (void)
35889 {
35890
35891         int flags = 0;
35892         if(0 != ioctlsocket(0, FIONBIO, &flags))
35893           return 1;
35894
35895  ;
35896  return 0;
35897 }
35898
35899 _ACEOF
35900 if ac_fn_c_try_compile "$LINENO"; then :
35901
35902       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35903 $as_echo "yes" >&6; }
35904       tst_compi_ioctlsocket_fionbio="yes"
35905
35906 else
35907
35908       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35909 $as_echo "no" >&6; }
35910       tst_compi_ioctlsocket_fionbio="no"
35911
35912 fi
35913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35914   fi
35915   #
35916   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35918 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35919     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35920       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35921 $as_echo "yes" >&6; }
35922       tst_allow_ioctlsocket_fionbio="yes"
35923     else
35924       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35925 $as_echo "no" >&6; }
35926       tst_allow_ioctlsocket_fionbio="no"
35927     fi
35928   fi
35929   #
35930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35931 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35932   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35933      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35935 $as_echo "yes" >&6; }
35936
35937 cat >>confdefs.h <<_ACEOF
35938 #define HAVE_IOCTLSOCKET_FIONBIO 1
35939 _ACEOF
35940
35941     curl_cv_func_ioctlsocket_fionbio="yes"
35942   else
35943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35944 $as_echo "no" >&6; }
35945     curl_cv_func_ioctlsocket_fionbio="no"
35946   fi
35947
35948   else
35949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35950 $as_echo "no" >&6; }
35951     curl_cv_func_ioctlsocket="no"
35952   fi
35953
35954
35955     #
35956   tst_links_ioctlsocket_camel="unknown"
35957   tst_proto_ioctlsocket_camel="unknown"
35958   tst_compi_ioctlsocket_camel="unknown"
35959   tst_allow_ioctlsocket_camel="unknown"
35960   #
35961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35962 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35964 /* end confdefs.h.  */
35965
35966
35967 #define IoctlSocket innocuous_IoctlSocket
35968 #ifdef __STDC__
35969 # include <limits.h>
35970 #else
35971 # include <assert.h>
35972 #endif
35973 #undef IoctlSocket
35974 #ifdef __cplusplus
35975 extern "C"
35976 #endif
35977 char IoctlSocket ();
35978 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35979 choke me
35980 #endif
35981
35982 int main (void)
35983 {
35984 return IoctlSocket ();
35985  ;
35986  return 0;
35987 }
35988
35989 _ACEOF
35990 if ac_fn_c_try_link "$LINENO"; then :
35991
35992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35993 $as_echo "yes" >&6; }
35994     tst_links_ioctlsocket_camel="yes"
35995
35996 else
35997
35998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35999 $as_echo "no" >&6; }
36000     tst_links_ioctlsocket_camel="no"
36001
36002 fi
36003 rm -f core conftest.err conftest.$ac_objext \
36004     conftest$ac_exeext conftest.$ac_ext
36005   #
36006   if test "$tst_links_ioctlsocket_camel" = "yes"; then
36007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
36008 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
36009     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36010 /* end confdefs.h.  */
36011
36012       $curl_includes_stropts
36013
36014 _ACEOF
36015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36016   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
36017
36018       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36019 $as_echo "yes" >&6; }
36020       tst_proto_ioctlsocket_camel="yes"
36021
36022 else
36023
36024       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36025 $as_echo "no" >&6; }
36026       tst_proto_ioctlsocket_camel="no"
36027
36028 fi
36029 rm -f conftest*
36030
36031   fi
36032   #
36033   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
36034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
36035 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
36036     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36037 /* end confdefs.h.  */
36038
36039
36040         $curl_includes_stropts
36041
36042 int main (void)
36043 {
36044
36045         if(0 != IoctlSocket(0, 0, 0))
36046           return 1;
36047
36048  ;
36049  return 0;
36050 }
36051
36052 _ACEOF
36053 if ac_fn_c_try_compile "$LINENO"; then :
36054
36055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36056 $as_echo "yes" >&6; }
36057       tst_compi_ioctlsocket_camel="yes"
36058
36059 else
36060
36061       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36062 $as_echo "no" >&6; }
36063       tst_compi_ioctlsocket_camel="no"
36064
36065 fi
36066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36067   fi
36068   #
36069   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
36070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
36071 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
36072     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
36073       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36074 $as_echo "yes" >&6; }
36075       tst_allow_ioctlsocket_camel="yes"
36076     else
36077       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36078 $as_echo "no" >&6; }
36079       tst_allow_ioctlsocket_camel="no"
36080     fi
36081   fi
36082   #
36083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
36084 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
36085   if test "$tst_links_ioctlsocket_camel" = "yes" &&
36086      test "$tst_proto_ioctlsocket_camel" = "yes" &&
36087      test "$tst_compi_ioctlsocket_camel" = "yes" &&
36088      test "$tst_allow_ioctlsocket_camel" = "yes"; then
36089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36090 $as_echo "yes" >&6; }
36091
36092 cat >>confdefs.h <<_ACEOF
36093 #define HAVE_IOCTLSOCKET_CAMEL 1
36094 _ACEOF
36095
36096     curl_cv_func_ioctlsocket_camel="yes"
36097
36098   #
36099   tst_compi_ioctlsocket_camel_fionbio="unknown"
36100   tst_allow_ioctlsocket_camel_fionbio="unknown"
36101   #
36102   if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
36103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
36104 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
36105     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36106 /* end confdefs.h.  */
36107
36108
36109         $curl_includes_stropts
36110
36111 int main (void)
36112 {
36113
36114         long flags = 0;
36115         if(0 != ioctlsocket(0, FIONBIO, &flags))
36116           return 1;
36117
36118  ;
36119  return 0;
36120 }
36121
36122 _ACEOF
36123 if ac_fn_c_try_compile "$LINENO"; then :
36124
36125       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36126 $as_echo "yes" >&6; }
36127       tst_compi_ioctlsocket_camel_fionbio="yes"
36128
36129 else
36130
36131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36132 $as_echo "no" >&6; }
36133       tst_compi_ioctlsocket_camel_fionbio="no"
36134
36135 fi
36136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36137   fi
36138   #
36139   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
36140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
36141 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
36142     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
36143       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36144 $as_echo "yes" >&6; }
36145       tst_allow_ioctlsocket_camel_fionbio="yes"
36146     else
36147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36148 $as_echo "no" >&6; }
36149       tst_allow_ioctlsocket_camel_fionbio="no"
36150     fi
36151   fi
36152   #
36153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
36154 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
36155   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
36156      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
36157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36158 $as_echo "yes" >&6; }
36159
36160 cat >>confdefs.h <<_ACEOF
36161 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
36162 _ACEOF
36163
36164     curl_cv_func_ioctlsocket_camel_fionbio="yes"
36165   else
36166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36167 $as_echo "no" >&6; }
36168     curl_cv_func_ioctlsocket_camel_fionbio="no"
36169   fi
36170
36171   else
36172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36173 $as_echo "no" >&6; }
36174     curl_cv_func_ioctlsocket_camel="no"
36175   fi
36176
36177
36178       #
36179   tst_links_localtime_r="unknown"
36180   tst_proto_localtime_r="unknown"
36181   tst_compi_localtime_r="unknown"
36182   tst_works_localtime_r="unknown"
36183   tst_allow_localtime_r="unknown"
36184   #
36185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
36186 $as_echo_n "checking if localtime_r can be linked... " >&6; }
36187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36188 /* end confdefs.h.  */
36189
36190
36191 #define localtime_r innocuous_localtime_r
36192 #ifdef __STDC__
36193 # include <limits.h>
36194 #else
36195 # include <assert.h>
36196 #endif
36197 #undef localtime_r
36198 #ifdef __cplusplus
36199 extern "C"
36200 #endif
36201 char localtime_r ();
36202 #if defined __stub_localtime_r || defined __stub___localtime_r
36203 choke me
36204 #endif
36205
36206 int main (void)
36207 {
36208 return localtime_r ();
36209  ;
36210  return 0;
36211 }
36212
36213 _ACEOF
36214 if ac_fn_c_try_link "$LINENO"; then :
36215
36216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36217 $as_echo "yes" >&6; }
36218     tst_links_localtime_r="yes"
36219
36220 else
36221
36222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36223 $as_echo "no" >&6; }
36224     tst_links_localtime_r="no"
36225
36226 fi
36227 rm -f core conftest.err conftest.$ac_objext \
36228     conftest$ac_exeext conftest.$ac_ext
36229   #
36230   if test "$tst_links_localtime_r" = "yes"; then
36231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
36232 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
36233     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36234 /* end confdefs.h.  */
36235
36236       $curl_includes_time
36237
36238 _ACEOF
36239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36240   $EGREP "localtime_r" >/dev/null 2>&1; then :
36241
36242       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36243 $as_echo "yes" >&6; }
36244       tst_proto_localtime_r="yes"
36245
36246 else
36247
36248       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36249 $as_echo "no" >&6; }
36250       tst_proto_localtime_r="no"
36251
36252 fi
36253 rm -f conftest*
36254
36255   fi
36256   #
36257   if test "$tst_proto_localtime_r" = "yes"; then
36258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36259 $as_echo_n "checking if localtime_r is compilable... " >&6; }
36260     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36261 /* end confdefs.h.  */
36262
36263
36264         $curl_includes_time
36265
36266 int main (void)
36267 {
36268
36269         if(0 != localtime_r(0, 0))
36270           return 1;
36271
36272  ;
36273  return 0;
36274 }
36275
36276 _ACEOF
36277 if ac_fn_c_try_compile "$LINENO"; then :
36278
36279       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36280 $as_echo "yes" >&6; }
36281       tst_compi_localtime_r="yes"
36282
36283 else
36284
36285       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36286 $as_echo "no" >&6; }
36287       tst_compi_localtime_r="no"
36288
36289 fi
36290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36291   fi
36292   #
36293     if test "x$cross_compiling" != "xyes" &&
36294     test "$tst_compi_localtime_r" = "yes"; then
36295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36296 $as_echo_n "checking if localtime_r seems to work... " >&6; }
36297
36298
36299    old=$LD_LIBRARY_PATH
36300    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36301    export LD_LIBRARY_PATH
36302    if test "$cross_compiling" = yes; then :
36303   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36305 as_fn_error $? "cannot run test program while cross compiling
36306 See \`config.log' for more details" "$LINENO" 5; }
36307 else
36308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36309 /* end confdefs.h.  */
36310
36311
36312         $curl_includes_stdlib
36313         $curl_includes_time
36314
36315 int main (void)
36316 {
36317
36318         time_t clock = 1170352587;
36319         struct tm *tmp = 0;
36320         struct tm result;
36321         tmp = localtime_r(&clock, &result);
36322         if(tmp)
36323           exit(0);
36324         else
36325           exit(1);
36326
36327  ;
36328  return 0;
36329 }
36330
36331 _ACEOF
36332 if ac_fn_c_try_run "$LINENO"; then :
36333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36334 $as_echo "yes" >&6; }
36335       tst_works_localtime_r="yes"
36336
36337 else
36338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36339 $as_echo "no" >&6; }
36340       tst_works_localtime_r="no"
36341
36342 fi
36343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36344   conftest.$ac_objext conftest.beam conftest.$ac_ext
36345 fi
36346
36347    LD_LIBRARY_PATH=$old # restore
36348
36349   fi
36350   #
36351   if test "$tst_compi_localtime_r" = "yes" &&
36352     test "$tst_works_localtime_r" != "no"; then
36353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36354 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
36355     if test "x$curl_disallow_localtime_r" != "xyes"; then
36356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36357 $as_echo "yes" >&6; }
36358       tst_allow_localtime_r="yes"
36359     else
36360       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36361 $as_echo "no" >&6; }
36362       tst_allow_localtime_r="no"
36363     fi
36364   fi
36365   #
36366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36367 $as_echo_n "checking if localtime_r might be used... " >&6; }
36368   if test "$tst_links_localtime_r" = "yes" &&
36369      test "$tst_proto_localtime_r" = "yes" &&
36370      test "$tst_compi_localtime_r" = "yes" &&
36371      test "$tst_allow_localtime_r" = "yes" &&
36372      test "$tst_works_localtime_r" != "no"; then
36373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36374 $as_echo "yes" >&6; }
36375
36376 cat >>confdefs.h <<_ACEOF
36377 #define HAVE_LOCALTIME_R 1
36378 _ACEOF
36379
36380     curl_cv_func_localtime_r="yes"
36381   else
36382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36383 $as_echo "no" >&6; }
36384     curl_cv_func_localtime_r="no"
36385   fi
36386
36387
36388     #
36389   tst_links_memrchr="unknown"
36390   tst_macro_memrchr="unknown"
36391   tst_proto_memrchr="unknown"
36392   tst_compi_memrchr="unknown"
36393   tst_allow_memrchr="unknown"
36394   #
36395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36396 $as_echo_n "checking if memrchr can be linked... " >&6; }
36397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36398 /* end confdefs.h.  */
36399
36400
36401 #define memrchr innocuous_memrchr
36402 #ifdef __STDC__
36403 # include <limits.h>
36404 #else
36405 # include <assert.h>
36406 #endif
36407 #undef memrchr
36408 #ifdef __cplusplus
36409 extern "C"
36410 #endif
36411 char memrchr ();
36412 #if defined __stub_memrchr || defined __stub___memrchr
36413 choke me
36414 #endif
36415
36416 int main (void)
36417 {
36418 return memrchr ();
36419  ;
36420  return 0;
36421 }
36422
36423 _ACEOF
36424 if ac_fn_c_try_link "$LINENO"; then :
36425
36426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36427 $as_echo "yes" >&6; }
36428     tst_links_memrchr="yes"
36429
36430 else
36431
36432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36433 $as_echo "no" >&6; }
36434     tst_links_memrchr="no"
36435
36436 fi
36437 rm -f core conftest.err conftest.$ac_objext \
36438     conftest$ac_exeext conftest.$ac_ext
36439   #
36440   if test "$tst_links_memrchr" = "no"; then
36441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36442 $as_echo_n "checking if memrchr seems a macro... " >&6; }
36443     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36444 /* end confdefs.h.  */
36445
36446
36447         $curl_includes_string
36448
36449 int main (void)
36450 {
36451
36452         if(0 != memrchr(0, 0, 0))
36453           return 1;
36454
36455  ;
36456  return 0;
36457 }
36458
36459 _ACEOF
36460 if ac_fn_c_try_link "$LINENO"; then :
36461
36462       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36463 $as_echo "yes" >&6; }
36464       tst_macro_memrchr="yes"
36465
36466 else
36467
36468       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36469 $as_echo "no" >&6; }
36470       tst_macro_memrchr="no"
36471
36472 fi
36473 rm -f core conftest.err conftest.$ac_objext \
36474     conftest$ac_exeext conftest.$ac_ext
36475   fi
36476   #
36477   if test "$tst_links_memrchr" = "yes"; then
36478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36479 $as_echo_n "checking if memrchr is prototyped... " >&6; }
36480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36481 /* end confdefs.h.  */
36482
36483       $curl_includes_string
36484
36485 _ACEOF
36486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36487   $EGREP "memrchr" >/dev/null 2>&1; then :
36488
36489       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36490 $as_echo "yes" >&6; }
36491       tst_proto_memrchr="yes"
36492
36493 else
36494
36495       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36496 $as_echo "no" >&6; }
36497       tst_proto_memrchr="no"
36498
36499 fi
36500 rm -f conftest*
36501
36502   fi
36503   #
36504   if test "$tst_proto_memrchr" = "yes" ||
36505      test "$tst_macro_memrchr" = "yes"; then
36506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36507 $as_echo_n "checking if memrchr is compilable... " >&6; }
36508     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36509 /* end confdefs.h.  */
36510
36511
36512         $curl_includes_string
36513
36514 int main (void)
36515 {
36516
36517         if(0 != memrchr(0, 0, 0))
36518           return 1;
36519
36520  ;
36521  return 0;
36522 }
36523
36524 _ACEOF
36525 if ac_fn_c_try_compile "$LINENO"; then :
36526
36527       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36528 $as_echo "yes" >&6; }
36529       tst_compi_memrchr="yes"
36530
36531 else
36532
36533       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36534 $as_echo "no" >&6; }
36535       tst_compi_memrchr="no"
36536
36537 fi
36538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36539   fi
36540   #
36541   if test "$tst_compi_memrchr" = "yes"; then
36542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36543 $as_echo_n "checking if memrchr usage allowed... " >&6; }
36544     if test "x$curl_disallow_memrchr" != "xyes"; then
36545       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36546 $as_echo "yes" >&6; }
36547       tst_allow_memrchr="yes"
36548     else
36549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36550 $as_echo "no" >&6; }
36551       tst_allow_memrchr="no"
36552     fi
36553   fi
36554   #
36555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36556 $as_echo_n "checking if memrchr might be used... " >&6; }
36557   if (test "$tst_proto_memrchr" = "yes" ||
36558       test "$tst_macro_memrchr" = "yes") &&
36559      test "$tst_compi_memrchr" = "yes" &&
36560      test "$tst_allow_memrchr" = "yes"; then
36561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36562 $as_echo "yes" >&6; }
36563
36564 cat >>confdefs.h <<_ACEOF
36565 #define HAVE_MEMRCHR 1
36566 _ACEOF
36567
36568     curl_cv_func_memrchr="yes"
36569   else
36570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36571 $as_echo "no" >&6; }
36572     curl_cv_func_memrchr="no"
36573   fi
36574
36575
36576       #
36577   tst_links_poll="unknown"
36578   tst_proto_poll="unknown"
36579   tst_compi_poll="unknown"
36580   tst_works_poll="unknown"
36581   tst_allow_poll="unknown"
36582   #
36583   case $host_os in
36584     darwin*|interix*)
36585                                           curl_disallow_poll="yes"
36586       tst_compi_poll="no"
36587       ;;
36588   esac
36589   #
36590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36591 $as_echo_n "checking if poll can be linked... " >&6; }
36592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36593 /* end confdefs.h.  */
36594
36595
36596       $curl_includes_poll
36597
36598 int main (void)
36599 {
36600
36601       if(0 != poll(0, 0, 0))
36602         return 1;
36603
36604  ;
36605  return 0;
36606 }
36607
36608 _ACEOF
36609 if ac_fn_c_try_link "$LINENO"; then :
36610
36611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36612 $as_echo "yes" >&6; }
36613     tst_links_poll="yes"
36614
36615 else
36616
36617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36618 $as_echo "no" >&6; }
36619     tst_links_poll="no"
36620
36621 fi
36622 rm -f core conftest.err conftest.$ac_objext \
36623     conftest$ac_exeext conftest.$ac_ext
36624   #
36625   if test "$tst_links_poll" = "yes"; then
36626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36627 $as_echo_n "checking if poll is prototyped... " >&6; }
36628     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36629 /* end confdefs.h.  */
36630
36631       $curl_includes_poll
36632
36633 _ACEOF
36634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36635   $EGREP "poll" >/dev/null 2>&1; then :
36636
36637       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36638 $as_echo "yes" >&6; }
36639       tst_proto_poll="yes"
36640
36641 else
36642
36643       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36644 $as_echo "no" >&6; }
36645       tst_proto_poll="no"
36646
36647 fi
36648 rm -f conftest*
36649
36650   fi
36651   #
36652   if test "$tst_proto_poll" = "yes"; then
36653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36654 $as_echo_n "checking if poll is compilable... " >&6; }
36655     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36656 /* end confdefs.h.  */
36657
36658
36659         $curl_includes_poll
36660
36661 int main (void)
36662 {
36663
36664         if(0 != poll(0, 0, 0))
36665           return 1;
36666
36667  ;
36668  return 0;
36669 }
36670
36671 _ACEOF
36672 if ac_fn_c_try_compile "$LINENO"; then :
36673
36674       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36675 $as_echo "yes" >&6; }
36676       tst_compi_poll="yes"
36677
36678 else
36679
36680       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36681 $as_echo "no" >&6; }
36682       tst_compi_poll="no"
36683
36684 fi
36685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36686   fi
36687   #
36688     if test "x$cross_compiling" != "xyes" &&
36689     test "$tst_compi_poll" = "yes"; then
36690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36691 $as_echo_n "checking if poll seems to work... " >&6; }
36692
36693
36694    old=$LD_LIBRARY_PATH
36695    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36696    export LD_LIBRARY_PATH
36697    if test "$cross_compiling" = yes; then :
36698   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36700 as_fn_error $? "cannot run test program while cross compiling
36701 See \`config.log' for more details" "$LINENO" 5; }
36702 else
36703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36704 /* end confdefs.h.  */
36705
36706
36707         $curl_includes_stdlib
36708         $curl_includes_poll
36709         $curl_includes_time
36710
36711 int main (void)
36712 {
36713
36714         /* detect the original poll() breakage */
36715         if(0 != poll(0, 0, 10))
36716           exit(1); /* fail */
36717         else {
36718           /* detect the 10.12 poll() breakage */
36719           struct timeval before, after;
36720           int rc;
36721           size_t us;
36722
36723           gettimeofday(&before, NULL);
36724           rc = poll(NULL, 0, 500);
36725           gettimeofday(&after, NULL);
36726
36727           us = (after.tv_sec - before.tv_sec) * 1000000 +
36728             (after.tv_usec - before.tv_usec);
36729
36730           if(us < 400000)
36731             exit(1);
36732         }
36733
36734  ;
36735  return 0;
36736 }
36737
36738 _ACEOF
36739 if ac_fn_c_try_run "$LINENO"; then :
36740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36741 $as_echo "yes" >&6; }
36742       tst_works_poll="yes"
36743
36744 else
36745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36746 $as_echo "no" >&6; }
36747       tst_works_poll="no"
36748
36749 fi
36750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36751   conftest.$ac_objext conftest.beam conftest.$ac_ext
36752 fi
36753
36754    LD_LIBRARY_PATH=$old # restore
36755
36756   fi
36757   #
36758   if test "$tst_compi_poll" = "yes" &&
36759     test "$tst_works_poll" != "no"; then
36760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36761 $as_echo_n "checking if poll usage allowed... " >&6; }
36762     if test "x$curl_disallow_poll" != "xyes"; then
36763       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36764 $as_echo "yes" >&6; }
36765       tst_allow_poll="yes"
36766     else
36767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36768 $as_echo "no" >&6; }
36769       tst_allow_poll="no"
36770     fi
36771   fi
36772   #
36773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36774 $as_echo_n "checking if poll might be used... " >&6; }
36775   if test "$tst_links_poll" = "yes" &&
36776      test "$tst_proto_poll" = "yes" &&
36777      test "$tst_compi_poll" = "yes" &&
36778      test "$tst_allow_poll" = "yes" &&
36779      test "$tst_works_poll" != "no"; then
36780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36781 $as_echo "yes" >&6; }
36782
36783 cat >>confdefs.h <<_ACEOF
36784 #define HAVE_POLL 1
36785 _ACEOF
36786
36787
36788 cat >>confdefs.h <<_ACEOF
36789 #define HAVE_POLL_FINE 1
36790 _ACEOF
36791
36792     curl_cv_func_poll="yes"
36793   else
36794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36795 $as_echo "no" >&6; }
36796     curl_cv_func_poll="no"
36797   fi
36798
36799
36800       #
36801   tst_links_setsockopt="unknown"
36802   tst_proto_setsockopt="unknown"
36803   tst_compi_setsockopt="unknown"
36804   tst_allow_setsockopt="unknown"
36805   #
36806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36807 $as_echo_n "checking if setsockopt can be linked... " >&6; }
36808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36809 /* end confdefs.h.  */
36810
36811
36812       $curl_includes_winsock2
36813       $curl_includes_sys_socket
36814
36815 int main (void)
36816 {
36817
36818       if(0 != setsockopt(0, 0, 0, 0, 0))
36819         return 1;
36820
36821  ;
36822  return 0;
36823 }
36824
36825 _ACEOF
36826 if ac_fn_c_try_link "$LINENO"; then :
36827
36828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36829 $as_echo "yes" >&6; }
36830     tst_links_setsockopt="yes"
36831
36832 else
36833
36834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36835 $as_echo "no" >&6; }
36836     tst_links_setsockopt="no"
36837
36838 fi
36839 rm -f core conftest.err conftest.$ac_objext \
36840     conftest$ac_exeext conftest.$ac_ext
36841   #
36842   if test "$tst_links_setsockopt" = "yes"; then
36843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36844 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
36845     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36846 /* end confdefs.h.  */
36847
36848       $curl_includes_winsock2
36849       $curl_includes_sys_socket
36850
36851 _ACEOF
36852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36853   $EGREP "setsockopt" >/dev/null 2>&1; then :
36854
36855       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36856 $as_echo "yes" >&6; }
36857       tst_proto_setsockopt="yes"
36858
36859 else
36860
36861       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36862 $as_echo "no" >&6; }
36863       tst_proto_setsockopt="no"
36864
36865 fi
36866 rm -f conftest*
36867
36868   fi
36869   #
36870   if test "$tst_proto_setsockopt" = "yes"; then
36871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36872 $as_echo_n "checking if setsockopt is compilable... " >&6; }
36873     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36874 /* end confdefs.h.  */
36875
36876
36877         $curl_includes_winsock2
36878         $curl_includes_sys_socket
36879
36880 int main (void)
36881 {
36882
36883         if(0 != setsockopt(0, 0, 0, 0, 0))
36884           return 1;
36885
36886  ;
36887  return 0;
36888 }
36889
36890 _ACEOF
36891 if ac_fn_c_try_compile "$LINENO"; then :
36892
36893       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36894 $as_echo "yes" >&6; }
36895       tst_compi_setsockopt="yes"
36896
36897 else
36898
36899       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36900 $as_echo "no" >&6; }
36901       tst_compi_setsockopt="no"
36902
36903 fi
36904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36905   fi
36906   #
36907   if test "$tst_compi_setsockopt" = "yes"; then
36908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36909 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
36910     if test "x$curl_disallow_setsockopt" != "xyes"; then
36911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36912 $as_echo "yes" >&6; }
36913       tst_allow_setsockopt="yes"
36914     else
36915       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36916 $as_echo "no" >&6; }
36917       tst_allow_setsockopt="no"
36918     fi
36919   fi
36920   #
36921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36922 $as_echo_n "checking if setsockopt might be used... " >&6; }
36923   if test "$tst_links_setsockopt" = "yes" &&
36924      test "$tst_proto_setsockopt" = "yes" &&
36925      test "$tst_compi_setsockopt" = "yes" &&
36926      test "$tst_allow_setsockopt" = "yes"; then
36927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36928 $as_echo "yes" >&6; }
36929
36930 cat >>confdefs.h <<_ACEOF
36931 #define HAVE_SETSOCKOPT 1
36932 _ACEOF
36933
36934     curl_cv_func_setsockopt="yes"
36935
36936   #
36937   tst_compi_setsockopt_so_nonblock="unknown"
36938   tst_allow_setsockopt_so_nonblock="unknown"
36939   #
36940   if test "$curl_cv_func_setsockopt" = "yes"; then
36941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36942 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36944 /* end confdefs.h.  */
36945
36946
36947         $curl_includes_winsock2
36948         $curl_includes_sys_socket
36949
36950 int main (void)
36951 {
36952
36953         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36954           return 1;
36955
36956  ;
36957  return 0;
36958 }
36959
36960 _ACEOF
36961 if ac_fn_c_try_compile "$LINENO"; then :
36962
36963       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36964 $as_echo "yes" >&6; }
36965       tst_compi_setsockopt_so_nonblock="yes"
36966
36967 else
36968
36969       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36970 $as_echo "no" >&6; }
36971       tst_compi_setsockopt_so_nonblock="no"
36972
36973 fi
36974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36975   fi
36976   #
36977   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36979 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36980     if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36981       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36982 $as_echo "yes" >&6; }
36983       tst_allow_setsockopt_so_nonblock="yes"
36984     else
36985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36986 $as_echo "no" >&6; }
36987       tst_allow_setsockopt_so_nonblock="no"
36988     fi
36989   fi
36990   #
36991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36992 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36993   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36994      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36996 $as_echo "yes" >&6; }
36997
36998 cat >>confdefs.h <<_ACEOF
36999 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
37000 _ACEOF
37001
37002     curl_cv_func_setsockopt_so_nonblock="yes"
37003   else
37004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37005 $as_echo "no" >&6; }
37006     curl_cv_func_setsockopt_so_nonblock="no"
37007   fi
37008
37009   else
37010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37011 $as_echo "no" >&6; }
37012     curl_cv_func_setsockopt="no"
37013   fi
37014
37015
37016 curl_includes_signal="\
37017 /* includes start */
37018 #ifdef HAVE_SYS_TYPES_H
37019 #  include <sys/types.h>
37020 #endif
37021 #ifdef HAVE_SIGNAL_H
37022 #  include <signal.h>
37023 #endif
37024 /* includes end */"
37025   for ac_header in sys/types.h signal.h
37026 do :
37027   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37028 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
37029 "
37030 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37031   cat >>confdefs.h <<_ACEOF
37032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37033 _ACEOF
37034
37035 fi
37036
37037 done
37038
37039
37040
37041     #
37042   tst_links_sigaction="unknown"
37043   tst_proto_sigaction="unknown"
37044   tst_compi_sigaction="unknown"
37045   tst_allow_sigaction="unknown"
37046   #
37047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
37048 $as_echo_n "checking if sigaction can be linked... " >&6; }
37049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37050 /* end confdefs.h.  */
37051
37052
37053 #define sigaction innocuous_sigaction
37054 #ifdef __STDC__
37055 # include <limits.h>
37056 #else
37057 # include <assert.h>
37058 #endif
37059 #undef sigaction
37060 #ifdef __cplusplus
37061 extern "C"
37062 #endif
37063 char sigaction ();
37064 #if defined __stub_sigaction || defined __stub___sigaction
37065 choke me
37066 #endif
37067
37068 int main (void)
37069 {
37070 return sigaction ();
37071  ;
37072  return 0;
37073 }
37074
37075 _ACEOF
37076 if ac_fn_c_try_link "$LINENO"; then :
37077
37078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37079 $as_echo "yes" >&6; }
37080     tst_links_sigaction="yes"
37081
37082 else
37083
37084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37085 $as_echo "no" >&6; }
37086     tst_links_sigaction="no"
37087
37088 fi
37089 rm -f core conftest.err conftest.$ac_objext \
37090     conftest$ac_exeext conftest.$ac_ext
37091   #
37092   if test "$tst_links_sigaction" = "yes"; then
37093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
37094 $as_echo_n "checking if sigaction is prototyped... " >&6; }
37095     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37096 /* end confdefs.h.  */
37097
37098       $curl_includes_signal
37099
37100 _ACEOF
37101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37102   $EGREP "sigaction" >/dev/null 2>&1; then :
37103
37104       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37105 $as_echo "yes" >&6; }
37106       tst_proto_sigaction="yes"
37107
37108 else
37109
37110       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37111 $as_echo "no" >&6; }
37112       tst_proto_sigaction="no"
37113
37114 fi
37115 rm -f conftest*
37116
37117   fi
37118   #
37119   if test "$tst_proto_sigaction" = "yes"; then
37120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
37121 $as_echo_n "checking if sigaction is compilable... " >&6; }
37122     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37123 /* end confdefs.h.  */
37124
37125
37126         $curl_includes_signal
37127
37128 int main (void)
37129 {
37130
37131         if(0 != sigaction(0, 0, 0))
37132           return 1;
37133
37134  ;
37135  return 0;
37136 }
37137
37138 _ACEOF
37139 if ac_fn_c_try_compile "$LINENO"; then :
37140
37141       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37142 $as_echo "yes" >&6; }
37143       tst_compi_sigaction="yes"
37144
37145 else
37146
37147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37148 $as_echo "no" >&6; }
37149       tst_compi_sigaction="no"
37150
37151 fi
37152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37153   fi
37154   #
37155   if test "$tst_compi_sigaction" = "yes"; then
37156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
37157 $as_echo_n "checking if sigaction usage allowed... " >&6; }
37158     if test "x$curl_disallow_sigaction" != "xyes"; then
37159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37160 $as_echo "yes" >&6; }
37161       tst_allow_sigaction="yes"
37162     else
37163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37164 $as_echo "no" >&6; }
37165       tst_allow_sigaction="no"
37166     fi
37167   fi
37168   #
37169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
37170 $as_echo_n "checking if sigaction might be used... " >&6; }
37171   if test "$tst_links_sigaction" = "yes" &&
37172      test "$tst_proto_sigaction" = "yes" &&
37173      test "$tst_compi_sigaction" = "yes" &&
37174      test "$tst_allow_sigaction" = "yes"; then
37175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37176 $as_echo "yes" >&6; }
37177
37178 cat >>confdefs.h <<_ACEOF
37179 #define HAVE_SIGACTION 1
37180 _ACEOF
37181
37182     curl_cv_func_sigaction="yes"
37183   else
37184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37185 $as_echo "no" >&6; }
37186     curl_cv_func_sigaction="no"
37187   fi
37188
37189
37190     #
37191   tst_links_siginterrupt="unknown"
37192   tst_proto_siginterrupt="unknown"
37193   tst_compi_siginterrupt="unknown"
37194   tst_allow_siginterrupt="unknown"
37195   #
37196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
37197 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
37198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37199 /* end confdefs.h.  */
37200
37201
37202 #define siginterrupt innocuous_siginterrupt
37203 #ifdef __STDC__
37204 # include <limits.h>
37205 #else
37206 # include <assert.h>
37207 #endif
37208 #undef siginterrupt
37209 #ifdef __cplusplus
37210 extern "C"
37211 #endif
37212 char siginterrupt ();
37213 #if defined __stub_siginterrupt || defined __stub___siginterrupt
37214 choke me
37215 #endif
37216
37217 int main (void)
37218 {
37219 return siginterrupt ();
37220  ;
37221  return 0;
37222 }
37223
37224 _ACEOF
37225 if ac_fn_c_try_link "$LINENO"; then :
37226
37227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37228 $as_echo "yes" >&6; }
37229     tst_links_siginterrupt="yes"
37230
37231 else
37232
37233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37234 $as_echo "no" >&6; }
37235     tst_links_siginterrupt="no"
37236
37237 fi
37238 rm -f core conftest.err conftest.$ac_objext \
37239     conftest$ac_exeext conftest.$ac_ext
37240   #
37241   if test "$tst_links_siginterrupt" = "yes"; then
37242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37243 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37245 /* end confdefs.h.  */
37246
37247       $curl_includes_signal
37248
37249 _ACEOF
37250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37251   $EGREP "siginterrupt" >/dev/null 2>&1; then :
37252
37253       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37254 $as_echo "yes" >&6; }
37255       tst_proto_siginterrupt="yes"
37256
37257 else
37258
37259       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37260 $as_echo "no" >&6; }
37261       tst_proto_siginterrupt="no"
37262
37263 fi
37264 rm -f conftest*
37265
37266   fi
37267   #
37268   if test "$tst_proto_siginterrupt" = "yes"; then
37269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37270 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
37271     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37272 /* end confdefs.h.  */
37273
37274
37275         $curl_includes_signal
37276
37277 int main (void)
37278 {
37279
37280         if(0 != siginterrupt(0, 0))
37281           return 1;
37282
37283  ;
37284  return 0;
37285 }
37286
37287 _ACEOF
37288 if ac_fn_c_try_compile "$LINENO"; then :
37289
37290       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37291 $as_echo "yes" >&6; }
37292       tst_compi_siginterrupt="yes"
37293
37294 else
37295
37296       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37297 $as_echo "no" >&6; }
37298       tst_compi_siginterrupt="no"
37299
37300 fi
37301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37302   fi
37303   #
37304   if test "$tst_compi_siginterrupt" = "yes"; then
37305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37306 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37307     if test "x$curl_disallow_siginterrupt" != "xyes"; then
37308       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37309 $as_echo "yes" >&6; }
37310       tst_allow_siginterrupt="yes"
37311     else
37312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37313 $as_echo "no" >&6; }
37314       tst_allow_siginterrupt="no"
37315     fi
37316   fi
37317   #
37318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37319 $as_echo_n "checking if siginterrupt might be used... " >&6; }
37320   if test "$tst_links_siginterrupt" = "yes" &&
37321      test "$tst_proto_siginterrupt" = "yes" &&
37322      test "$tst_compi_siginterrupt" = "yes" &&
37323      test "$tst_allow_siginterrupt" = "yes"; then
37324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37325 $as_echo "yes" >&6; }
37326
37327 cat >>confdefs.h <<_ACEOF
37328 #define HAVE_SIGINTERRUPT 1
37329 _ACEOF
37330
37331     curl_cv_func_siginterrupt="yes"
37332   else
37333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37334 $as_echo "no" >&6; }
37335     curl_cv_func_siginterrupt="no"
37336   fi
37337
37338
37339     #
37340   tst_links_signal="unknown"
37341   tst_proto_signal="unknown"
37342   tst_compi_signal="unknown"
37343   tst_allow_signal="unknown"
37344   #
37345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37346 $as_echo_n "checking if signal can be linked... " >&6; }
37347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37348 /* end confdefs.h.  */
37349
37350
37351 #define signal innocuous_signal
37352 #ifdef __STDC__
37353 # include <limits.h>
37354 #else
37355 # include <assert.h>
37356 #endif
37357 #undef signal
37358 #ifdef __cplusplus
37359 extern "C"
37360 #endif
37361 char signal ();
37362 #if defined __stub_signal || defined __stub___signal
37363 choke me
37364 #endif
37365
37366 int main (void)
37367 {
37368 return signal ();
37369  ;
37370  return 0;
37371 }
37372
37373 _ACEOF
37374 if ac_fn_c_try_link "$LINENO"; then :
37375
37376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37377 $as_echo "yes" >&6; }
37378     tst_links_signal="yes"
37379
37380 else
37381
37382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37383 $as_echo "no" >&6; }
37384     tst_links_signal="no"
37385
37386 fi
37387 rm -f core conftest.err conftest.$ac_objext \
37388     conftest$ac_exeext conftest.$ac_ext
37389   #
37390   if test "$tst_links_signal" = "yes"; then
37391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37392 $as_echo_n "checking if signal is prototyped... " >&6; }
37393     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37394 /* end confdefs.h.  */
37395
37396       $curl_includes_signal
37397
37398 _ACEOF
37399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37400   $EGREP "signal" >/dev/null 2>&1; then :
37401
37402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37403 $as_echo "yes" >&6; }
37404       tst_proto_signal="yes"
37405
37406 else
37407
37408       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37409 $as_echo "no" >&6; }
37410       tst_proto_signal="no"
37411
37412 fi
37413 rm -f conftest*
37414
37415   fi
37416   #
37417   if test "$tst_proto_signal" = "yes"; then
37418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37419 $as_echo_n "checking if signal is compilable... " >&6; }
37420     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37421 /* end confdefs.h.  */
37422
37423
37424         $curl_includes_signal
37425
37426 int main (void)
37427 {
37428
37429         if(0 != signal(0, 0))
37430           return 1;
37431
37432  ;
37433  return 0;
37434 }
37435
37436 _ACEOF
37437 if ac_fn_c_try_compile "$LINENO"; then :
37438
37439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37440 $as_echo "yes" >&6; }
37441       tst_compi_signal="yes"
37442
37443 else
37444
37445       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37446 $as_echo "no" >&6; }
37447       tst_compi_signal="no"
37448
37449 fi
37450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37451   fi
37452   #
37453   if test "$tst_compi_signal" = "yes"; then
37454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37455 $as_echo_n "checking if signal usage allowed... " >&6; }
37456     if test "x$curl_disallow_signal" != "xyes"; then
37457       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37458 $as_echo "yes" >&6; }
37459       tst_allow_signal="yes"
37460     else
37461       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37462 $as_echo "no" >&6; }
37463       tst_allow_signal="no"
37464     fi
37465   fi
37466   #
37467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37468 $as_echo_n "checking if signal might be used... " >&6; }
37469   if test "$tst_links_signal" = "yes" &&
37470      test "$tst_proto_signal" = "yes" &&
37471      test "$tst_compi_signal" = "yes" &&
37472      test "$tst_allow_signal" = "yes"; then
37473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37474 $as_echo "yes" >&6; }
37475
37476 cat >>confdefs.h <<_ACEOF
37477 #define HAVE_SIGNAL 1
37478 _ACEOF
37479
37480     curl_cv_func_signal="yes"
37481   else
37482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37483 $as_echo "no" >&6; }
37484     curl_cv_func_signal="no"
37485   fi
37486
37487
37488 curl_includes_setjmp="\
37489 /* includes start */
37490 #ifdef HAVE_SYS_TYPES_H
37491 #  include <sys/types.h>
37492 #endif
37493 #ifdef HAVE_SETJMP_H
37494 #  include <setjmp.h>
37495 #endif
37496 /* includes end */"
37497   for ac_header in sys/types.h setjmp.h
37498 do :
37499   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37500 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37501 "
37502 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37503   cat >>confdefs.h <<_ACEOF
37504 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37505 _ACEOF
37506
37507 fi
37508
37509 done
37510
37511
37512
37513     #
37514   tst_links_sigsetjmp="unknown"
37515   tst_macro_sigsetjmp="unknown"
37516   tst_proto_sigsetjmp="unknown"
37517   tst_compi_sigsetjmp="unknown"
37518   tst_allow_sigsetjmp="unknown"
37519   #
37520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37521 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37523 /* end confdefs.h.  */
37524
37525
37526 #define sigsetjmp innocuous_sigsetjmp
37527 #ifdef __STDC__
37528 # include <limits.h>
37529 #else
37530 # include <assert.h>
37531 #endif
37532 #undef sigsetjmp
37533 #ifdef __cplusplus
37534 extern "C"
37535 #endif
37536 char sigsetjmp ();
37537 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37538 choke me
37539 #endif
37540
37541 int main (void)
37542 {
37543 return sigsetjmp ();
37544  ;
37545  return 0;
37546 }
37547
37548 _ACEOF
37549 if ac_fn_c_try_link "$LINENO"; then :
37550
37551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37552 $as_echo "yes" >&6; }
37553     tst_links_sigsetjmp="yes"
37554
37555 else
37556
37557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37558 $as_echo "no" >&6; }
37559     tst_links_sigsetjmp="no"
37560
37561 fi
37562 rm -f core conftest.err conftest.$ac_objext \
37563     conftest$ac_exeext conftest.$ac_ext
37564   #
37565   if test "$tst_links_sigsetjmp" = "no"; then
37566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37567 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37568     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37569 /* end confdefs.h.  */
37570
37571
37572         $curl_includes_setjmp
37573
37574 int main (void)
37575 {
37576
37577         sigjmp_buf env;
37578         if(0 != sigsetjmp(env, 0))
37579           return 1;
37580
37581  ;
37582  return 0;
37583 }
37584
37585 _ACEOF
37586 if ac_fn_c_try_link "$LINENO"; then :
37587
37588       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37589 $as_echo "yes" >&6; }
37590       tst_macro_sigsetjmp="yes"
37591
37592 else
37593
37594       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37595 $as_echo "no" >&6; }
37596       tst_macro_sigsetjmp="no"
37597
37598 fi
37599 rm -f core conftest.err conftest.$ac_objext \
37600     conftest$ac_exeext conftest.$ac_ext
37601   fi
37602   #
37603   if test "$tst_links_sigsetjmp" = "yes"; then
37604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37605 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37606     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37607 /* end confdefs.h.  */
37608
37609       $curl_includes_setjmp
37610
37611 _ACEOF
37612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37613   $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37614
37615       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37616 $as_echo "yes" >&6; }
37617       tst_proto_sigsetjmp="yes"
37618
37619 else
37620
37621       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37622 $as_echo "no" >&6; }
37623       tst_proto_sigsetjmp="no"
37624
37625 fi
37626 rm -f conftest*
37627
37628   fi
37629   #
37630   if test "$tst_proto_sigsetjmp" = "yes" ||
37631      test "$tst_macro_sigsetjmp" = "yes"; then
37632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37633 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37634     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37635 /* end confdefs.h.  */
37636
37637
37638         $curl_includes_setjmp
37639
37640 int main (void)
37641 {
37642
37643         sigjmp_buf env;
37644         if(0 != sigsetjmp(env, 0))
37645           return 1;
37646
37647  ;
37648  return 0;
37649 }
37650
37651 _ACEOF
37652 if ac_fn_c_try_compile "$LINENO"; then :
37653
37654       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37655 $as_echo "yes" >&6; }
37656       tst_compi_sigsetjmp="yes"
37657
37658 else
37659
37660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37661 $as_echo "no" >&6; }
37662       tst_compi_sigsetjmp="no"
37663
37664 fi
37665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37666   fi
37667   #
37668   if test "$tst_compi_sigsetjmp" = "yes"; then
37669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37670 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37671     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37672       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37673 $as_echo "yes" >&6; }
37674       tst_allow_sigsetjmp="yes"
37675     else
37676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37677 $as_echo "no" >&6; }
37678       tst_allow_sigsetjmp="no"
37679     fi
37680   fi
37681   #
37682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37683 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
37684   if (test "$tst_proto_sigsetjmp" = "yes" ||
37685       test "$tst_macro_sigsetjmp" = "yes") &&
37686      test "$tst_compi_sigsetjmp" = "yes" &&
37687      test "$tst_allow_sigsetjmp" = "yes"; then
37688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37689 $as_echo "yes" >&6; }
37690
37691 cat >>confdefs.h <<_ACEOF
37692 #define HAVE_SIGSETJMP 1
37693 _ACEOF
37694
37695     curl_cv_func_sigsetjmp="yes"
37696   else
37697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37698 $as_echo "no" >&6; }
37699     curl_cv_func_sigsetjmp="no"
37700   fi
37701
37702
37703         #
37704   tst_links_socket="unknown"
37705   tst_proto_socket="unknown"
37706   tst_compi_socket="unknown"
37707   tst_allow_socket="unknown"
37708   #
37709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37710 $as_echo_n "checking if socket can be linked... " >&6; }
37711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37712 /* end confdefs.h.  */
37713
37714
37715       $curl_includes_winsock2
37716       $curl_includes_sys_socket
37717       $curl_includes_socket
37718
37719 int main (void)
37720 {
37721
37722       if(0 != socket(0, 0, 0))
37723         return 1;
37724
37725  ;
37726  return 0;
37727 }
37728
37729 _ACEOF
37730 if ac_fn_c_try_link "$LINENO"; then :
37731
37732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37733 $as_echo "yes" >&6; }
37734     tst_links_socket="yes"
37735
37736 else
37737
37738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37739 $as_echo "no" >&6; }
37740     tst_links_socket="no"
37741
37742 fi
37743 rm -f core conftest.err conftest.$ac_objext \
37744     conftest$ac_exeext conftest.$ac_ext
37745   #
37746   if test "$tst_links_socket" = "yes"; then
37747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37748 $as_echo_n "checking if socket is prototyped... " >&6; }
37749     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37750 /* end confdefs.h.  */
37751
37752       $curl_includes_winsock2
37753       $curl_includes_sys_socket
37754       $curl_includes_socket
37755
37756 _ACEOF
37757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37758   $EGREP "socket" >/dev/null 2>&1; then :
37759
37760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37761 $as_echo "yes" >&6; }
37762       tst_proto_socket="yes"
37763
37764 else
37765
37766       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37767 $as_echo "no" >&6; }
37768       tst_proto_socket="no"
37769
37770 fi
37771 rm -f conftest*
37772
37773   fi
37774   #
37775   if test "$tst_proto_socket" = "yes"; then
37776     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37777 $as_echo_n "checking if socket is compilable... " >&6; }
37778     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37779 /* end confdefs.h.  */
37780
37781
37782         $curl_includes_winsock2
37783         $curl_includes_sys_socket
37784         $curl_includes_socket
37785
37786 int main (void)
37787 {
37788
37789         if(0 != socket(0, 0, 0))
37790           return 1;
37791
37792  ;
37793  return 0;
37794 }
37795
37796 _ACEOF
37797 if ac_fn_c_try_compile "$LINENO"; then :
37798
37799       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37800 $as_echo "yes" >&6; }
37801       tst_compi_socket="yes"
37802
37803 else
37804
37805       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37806 $as_echo "no" >&6; }
37807       tst_compi_socket="no"
37808
37809 fi
37810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37811   fi
37812   #
37813   if test "$tst_compi_socket" = "yes"; then
37814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37815 $as_echo_n "checking if socket usage allowed... " >&6; }
37816     if test "x$curl_disallow_socket" != "xyes"; then
37817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37818 $as_echo "yes" >&6; }
37819       tst_allow_socket="yes"
37820     else
37821       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37822 $as_echo "no" >&6; }
37823       tst_allow_socket="no"
37824     fi
37825   fi
37826   #
37827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37828 $as_echo_n "checking if socket might be used... " >&6; }
37829   if test "$tst_links_socket" = "yes" &&
37830      test "$tst_proto_socket" = "yes" &&
37831      test "$tst_compi_socket" = "yes" &&
37832      test "$tst_allow_socket" = "yes"; then
37833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37834 $as_echo "yes" >&6; }
37835
37836 cat >>confdefs.h <<_ACEOF
37837 #define HAVE_SOCKET 1
37838 _ACEOF
37839
37840     curl_cv_func_socket="yes"
37841   else
37842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37843 $as_echo "no" >&6; }
37844     curl_cv_func_socket="no"
37845   fi
37846
37847
37848       #
37849   tst_links_socketpair="unknown"
37850   tst_proto_socketpair="unknown"
37851   tst_compi_socketpair="unknown"
37852   tst_allow_socketpair="unknown"
37853   #
37854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37855 $as_echo_n "checking if socketpair can be linked... " >&6; }
37856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37857 /* end confdefs.h.  */
37858
37859
37860 #define socketpair innocuous_socketpair
37861 #ifdef __STDC__
37862 # include <limits.h>
37863 #else
37864 # include <assert.h>
37865 #endif
37866 #undef socketpair
37867 #ifdef __cplusplus
37868 extern "C"
37869 #endif
37870 char socketpair ();
37871 #if defined __stub_socketpair || defined __stub___socketpair
37872 choke me
37873 #endif
37874
37875 int main (void)
37876 {
37877 return socketpair ();
37878  ;
37879  return 0;
37880 }
37881
37882 _ACEOF
37883 if ac_fn_c_try_link "$LINENO"; then :
37884
37885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37886 $as_echo "yes" >&6; }
37887     tst_links_socketpair="yes"
37888
37889 else
37890
37891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37892 $as_echo "no" >&6; }
37893     tst_links_socketpair="no"
37894
37895 fi
37896 rm -f core conftest.err conftest.$ac_objext \
37897     conftest$ac_exeext conftest.$ac_ext
37898   #
37899   if test "$tst_links_socketpair" = "yes"; then
37900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37901 $as_echo_n "checking if socketpair is prototyped... " >&6; }
37902     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37903 /* end confdefs.h.  */
37904
37905       $curl_includes_sys_socket
37906       $curl_includes_socket
37907
37908 _ACEOF
37909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37910   $EGREP "socketpair" >/dev/null 2>&1; then :
37911
37912       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37913 $as_echo "yes" >&6; }
37914       tst_proto_socketpair="yes"
37915
37916 else
37917
37918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37919 $as_echo "no" >&6; }
37920       tst_proto_socketpair="no"
37921
37922 fi
37923 rm -f conftest*
37924
37925   fi
37926   #
37927   if test "$tst_proto_socketpair" = "yes"; then
37928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37929 $as_echo_n "checking if socketpair is compilable... " >&6; }
37930     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37931 /* end confdefs.h.  */
37932
37933
37934         $curl_includes_sys_socket
37935         $curl_includes_socket
37936
37937 int main (void)
37938 {
37939
37940         int sv[2];
37941         if(0 != socketpair(0, 0, 0, sv))
37942           return 1;
37943
37944  ;
37945  return 0;
37946 }
37947
37948 _ACEOF
37949 if ac_fn_c_try_compile "$LINENO"; then :
37950
37951       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37952 $as_echo "yes" >&6; }
37953       tst_compi_socketpair="yes"
37954
37955 else
37956
37957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37958 $as_echo "no" >&6; }
37959       tst_compi_socketpair="no"
37960
37961 fi
37962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37963   fi
37964   #
37965   if test "$tst_compi_socketpair" = "yes"; then
37966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37967 $as_echo_n "checking if socketpair usage allowed... " >&6; }
37968     if test "x$curl_disallow_socketpair" != "xyes"; then
37969       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37970 $as_echo "yes" >&6; }
37971       tst_allow_socketpair="yes"
37972     else
37973       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37974 $as_echo "no" >&6; }
37975       tst_allow_socketpair="no"
37976     fi
37977   fi
37978   #
37979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37980 $as_echo_n "checking if socketpair might be used... " >&6; }
37981   if test "$tst_links_socketpair" = "yes" &&
37982      test "$tst_proto_socketpair" = "yes" &&
37983      test "$tst_compi_socketpair" = "yes" &&
37984      test "$tst_allow_socketpair" = "yes"; then
37985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37986 $as_echo "yes" >&6; }
37987
37988 cat >>confdefs.h <<_ACEOF
37989 #define HAVE_SOCKETPAIR 1
37990 _ACEOF
37991
37992     curl_cv_func_socketpair="yes"
37993   else
37994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37995 $as_echo "no" >&6; }
37996     curl_cv_func_socketpair="no"
37997   fi
37998
37999
38000     #
38001   tst_links_strcasecmp="unknown"
38002   tst_proto_strcasecmp="unknown"
38003   tst_compi_strcasecmp="unknown"
38004   tst_allow_strcasecmp="unknown"
38005   #
38006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
38007 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
38008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38009 /* end confdefs.h.  */
38010
38011
38012 #define strcasecmp innocuous_strcasecmp
38013 #ifdef __STDC__
38014 # include <limits.h>
38015 #else
38016 # include <assert.h>
38017 #endif
38018 #undef strcasecmp
38019 #ifdef __cplusplus
38020 extern "C"
38021 #endif
38022 char strcasecmp ();
38023 #if defined __stub_strcasecmp || defined __stub___strcasecmp
38024 choke me
38025 #endif
38026
38027 int main (void)
38028 {
38029 return strcasecmp ();
38030  ;
38031  return 0;
38032 }
38033
38034 _ACEOF
38035 if ac_fn_c_try_link "$LINENO"; then :
38036
38037     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38038 $as_echo "yes" >&6; }
38039     tst_links_strcasecmp="yes"
38040
38041 else
38042
38043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38044 $as_echo "no" >&6; }
38045     tst_links_strcasecmp="no"
38046
38047 fi
38048 rm -f core conftest.err conftest.$ac_objext \
38049     conftest$ac_exeext conftest.$ac_ext
38050   #
38051   if test "$tst_links_strcasecmp" = "yes"; then
38052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
38053 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
38054     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38055 /* end confdefs.h.  */
38056
38057       $curl_includes_string
38058
38059 _ACEOF
38060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38061   $EGREP "strcasecmp" >/dev/null 2>&1; then :
38062
38063       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38064 $as_echo "yes" >&6; }
38065       tst_proto_strcasecmp="yes"
38066
38067 else
38068
38069       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38070 $as_echo "no" >&6; }
38071       tst_proto_strcasecmp="no"
38072
38073 fi
38074 rm -f conftest*
38075
38076   fi
38077   #
38078   if test "$tst_proto_strcasecmp" = "yes"; then
38079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
38080 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
38081     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38082 /* end confdefs.h.  */
38083
38084
38085         $curl_includes_string
38086
38087 int main (void)
38088 {
38089
38090         if(0 != strcasecmp(0, 0))
38091           return 1;
38092
38093  ;
38094  return 0;
38095 }
38096
38097 _ACEOF
38098 if ac_fn_c_try_compile "$LINENO"; then :
38099
38100       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38101 $as_echo "yes" >&6; }
38102       tst_compi_strcasecmp="yes"
38103
38104 else
38105
38106       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38107 $as_echo "no" >&6; }
38108       tst_compi_strcasecmp="no"
38109
38110 fi
38111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38112   fi
38113   #
38114   if test "$tst_compi_strcasecmp" = "yes"; then
38115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
38116 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
38117     if test "x$curl_disallow_strcasecmp" != "xyes"; then
38118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38119 $as_echo "yes" >&6; }
38120       tst_allow_strcasecmp="yes"
38121     else
38122       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38123 $as_echo "no" >&6; }
38124       tst_allow_strcasecmp="no"
38125     fi
38126   fi
38127   #
38128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
38129 $as_echo_n "checking if strcasecmp might be used... " >&6; }
38130   if test "$tst_links_strcasecmp" = "yes" &&
38131      test "$tst_proto_strcasecmp" = "yes" &&
38132      test "$tst_compi_strcasecmp" = "yes" &&
38133      test "$tst_allow_strcasecmp" = "yes"; then
38134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38135 $as_echo "yes" >&6; }
38136
38137 cat >>confdefs.h <<_ACEOF
38138 #define HAVE_STRCASECMP 1
38139 _ACEOF
38140
38141     curl_cv_func_strcasecmp="yes"
38142   else
38143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38144 $as_echo "no" >&6; }
38145     curl_cv_func_strcasecmp="no"
38146   fi
38147
38148
38149     #
38150   tst_links_strcmpi="unknown"
38151   tst_proto_strcmpi="unknown"
38152   tst_compi_strcmpi="unknown"
38153   tst_allow_strcmpi="unknown"
38154   #
38155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
38156 $as_echo_n "checking if strcmpi can be linked... " >&6; }
38157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38158 /* end confdefs.h.  */
38159
38160
38161 #define strcmpi innocuous_strcmpi
38162 #ifdef __STDC__
38163 # include <limits.h>
38164 #else
38165 # include <assert.h>
38166 #endif
38167 #undef strcmpi
38168 #ifdef __cplusplus
38169 extern "C"
38170 #endif
38171 char strcmpi ();
38172 #if defined __stub_strcmpi || defined __stub___strcmpi
38173 choke me
38174 #endif
38175
38176 int main (void)
38177 {
38178 return strcmpi ();
38179  ;
38180  return 0;
38181 }
38182
38183 _ACEOF
38184 if ac_fn_c_try_link "$LINENO"; then :
38185
38186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38187 $as_echo "yes" >&6; }
38188     tst_links_strcmpi="yes"
38189
38190 else
38191
38192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38193 $as_echo "no" >&6; }
38194     tst_links_strcmpi="no"
38195
38196 fi
38197 rm -f core conftest.err conftest.$ac_objext \
38198     conftest$ac_exeext conftest.$ac_ext
38199   #
38200   if test "$tst_links_strcmpi" = "yes"; then
38201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
38202 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
38203     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38204 /* end confdefs.h.  */
38205
38206       $curl_includes_string
38207
38208 _ACEOF
38209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38210   $EGREP "strcmpi" >/dev/null 2>&1; then :
38211
38212       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38213 $as_echo "yes" >&6; }
38214       tst_proto_strcmpi="yes"
38215
38216 else
38217
38218       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38219 $as_echo "no" >&6; }
38220       tst_proto_strcmpi="no"
38221
38222 fi
38223 rm -f conftest*
38224
38225   fi
38226   #
38227   if test "$tst_proto_strcmpi" = "yes"; then
38228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38229 $as_echo_n "checking if strcmpi is compilable... " >&6; }
38230     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38231 /* end confdefs.h.  */
38232
38233
38234         $curl_includes_string
38235
38236 int main (void)
38237 {
38238
38239         if(0 != strcmpi(0, 0))
38240           return 1;
38241
38242  ;
38243  return 0;
38244 }
38245
38246 _ACEOF
38247 if ac_fn_c_try_compile "$LINENO"; then :
38248
38249       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38250 $as_echo "yes" >&6; }
38251       tst_compi_strcmpi="yes"
38252
38253 else
38254
38255       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38256 $as_echo "no" >&6; }
38257       tst_compi_strcmpi="no"
38258
38259 fi
38260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38261   fi
38262   #
38263   if test "$tst_compi_strcmpi" = "yes"; then
38264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38265 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
38266     if test "x$curl_disallow_strcmpi" != "xyes"; then
38267       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38268 $as_echo "yes" >&6; }
38269       tst_allow_strcmpi="yes"
38270     else
38271       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38272 $as_echo "no" >&6; }
38273       tst_allow_strcmpi="no"
38274     fi
38275   fi
38276   #
38277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38278 $as_echo_n "checking if strcmpi might be used... " >&6; }
38279   if test "$tst_links_strcmpi" = "yes" &&
38280      test "$tst_proto_strcmpi" = "yes" &&
38281      test "$tst_compi_strcmpi" = "yes" &&
38282      test "$tst_allow_strcmpi" = "yes"; then
38283     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38284 $as_echo "yes" >&6; }
38285
38286 cat >>confdefs.h <<_ACEOF
38287 #define HAVE_STRCMPI 1
38288 _ACEOF
38289
38290     curl_cv_func_strcmpi="yes"
38291   else
38292     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38293 $as_echo "no" >&6; }
38294     curl_cv_func_strcmpi="no"
38295   fi
38296
38297
38298     #
38299   tst_links_strdup="unknown"
38300   tst_proto_strdup="unknown"
38301   tst_compi_strdup="unknown"
38302   tst_allow_strdup="unknown"
38303   #
38304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38305 $as_echo_n "checking if strdup can be linked... " >&6; }
38306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38307 /* end confdefs.h.  */
38308
38309
38310 #define strdup innocuous_strdup
38311 #ifdef __STDC__
38312 # include <limits.h>
38313 #else
38314 # include <assert.h>
38315 #endif
38316 #undef strdup
38317 #ifdef __cplusplus
38318 extern "C"
38319 #endif
38320 char strdup ();
38321 #if defined __stub_strdup || defined __stub___strdup
38322 choke me
38323 #endif
38324
38325 int main (void)
38326 {
38327 return strdup ();
38328  ;
38329  return 0;
38330 }
38331
38332 _ACEOF
38333 if ac_fn_c_try_link "$LINENO"; then :
38334
38335     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38336 $as_echo "yes" >&6; }
38337     tst_links_strdup="yes"
38338
38339 else
38340
38341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38342 $as_echo "no" >&6; }
38343     tst_links_strdup="no"
38344
38345 fi
38346 rm -f core conftest.err conftest.$ac_objext \
38347     conftest$ac_exeext conftest.$ac_ext
38348   #
38349   if test "$tst_links_strdup" = "yes"; then
38350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38351 $as_echo_n "checking if strdup is prototyped... " >&6; }
38352     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38353 /* end confdefs.h.  */
38354
38355       $curl_includes_string
38356
38357 _ACEOF
38358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38359   $EGREP "strdup" >/dev/null 2>&1; then :
38360
38361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38362 $as_echo "yes" >&6; }
38363       tst_proto_strdup="yes"
38364
38365 else
38366
38367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38368 $as_echo "no" >&6; }
38369       tst_proto_strdup="no"
38370
38371 fi
38372 rm -f conftest*
38373
38374   fi
38375   #
38376   if test "$tst_proto_strdup" = "yes"; then
38377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38378 $as_echo_n "checking if strdup is compilable... " >&6; }
38379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38380 /* end confdefs.h.  */
38381
38382
38383         $curl_includes_string
38384
38385 int main (void)
38386 {
38387
38388         if(0 != strdup(0))
38389           return 1;
38390
38391  ;
38392  return 0;
38393 }
38394
38395 _ACEOF
38396 if ac_fn_c_try_compile "$LINENO"; then :
38397
38398       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38399 $as_echo "yes" >&6; }
38400       tst_compi_strdup="yes"
38401
38402 else
38403
38404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38405 $as_echo "no" >&6; }
38406       tst_compi_strdup="no"
38407
38408 fi
38409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38410   fi
38411   #
38412   if test "$tst_compi_strdup" = "yes"; then
38413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38414 $as_echo_n "checking if strdup usage allowed... " >&6; }
38415     if test "x$curl_disallow_strdup" != "xyes"; then
38416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38417 $as_echo "yes" >&6; }
38418       tst_allow_strdup="yes"
38419     else
38420       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38421 $as_echo "no" >&6; }
38422       tst_allow_strdup="no"
38423     fi
38424   fi
38425   #
38426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38427 $as_echo_n "checking if strdup might be used... " >&6; }
38428   if test "$tst_links_strdup" = "yes" &&
38429      test "$tst_proto_strdup" = "yes" &&
38430      test "$tst_compi_strdup" = "yes" &&
38431      test "$tst_allow_strdup" = "yes"; then
38432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38433 $as_echo "yes" >&6; }
38434
38435 cat >>confdefs.h <<_ACEOF
38436 #define HAVE_STRDUP 1
38437 _ACEOF
38438
38439     curl_cv_func_strdup="yes"
38440   else
38441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38442 $as_echo "no" >&6; }
38443     curl_cv_func_strdup="no"
38444   fi
38445
38446
38447       #
38448   tst_links_strerror_r="unknown"
38449   tst_proto_strerror_r="unknown"
38450   tst_compi_strerror_r="unknown"
38451   tst_glibc_strerror_r="unknown"
38452   tst_posix_strerror_r="unknown"
38453   tst_allow_strerror_r="unknown"
38454   tst_works_glibc_strerror_r="unknown"
38455   tst_works_posix_strerror_r="unknown"
38456   tst_glibc_strerror_r_type_arg3="unknown"
38457   tst_posix_strerror_r_type_arg3="unknown"
38458   #
38459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38460 $as_echo_n "checking if strerror_r can be linked... " >&6; }
38461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38462 /* end confdefs.h.  */
38463
38464
38465 #define strerror_r innocuous_strerror_r
38466 #ifdef __STDC__
38467 # include <limits.h>
38468 #else
38469 # include <assert.h>
38470 #endif
38471 #undef strerror_r
38472 #ifdef __cplusplus
38473 extern "C"
38474 #endif
38475 char strerror_r ();
38476 #if defined __stub_strerror_r || defined __stub___strerror_r
38477 choke me
38478 #endif
38479
38480 int main (void)
38481 {
38482 return strerror_r ();
38483  ;
38484  return 0;
38485 }
38486
38487 _ACEOF
38488 if ac_fn_c_try_link "$LINENO"; then :
38489
38490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38491 $as_echo "yes" >&6; }
38492     tst_links_strerror_r="yes"
38493
38494 else
38495
38496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38497 $as_echo "no" >&6; }
38498     tst_links_strerror_r="no"
38499
38500 fi
38501 rm -f core conftest.err conftest.$ac_objext \
38502     conftest$ac_exeext conftest.$ac_ext
38503   #
38504   if test "$tst_links_strerror_r" = "yes"; then
38505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38506 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
38507     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38508 /* end confdefs.h.  */
38509
38510       $curl_includes_string
38511
38512 _ACEOF
38513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38514   $EGREP "strerror_r" >/dev/null 2>&1; then :
38515
38516       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38517 $as_echo "yes" >&6; }
38518       tst_proto_strerror_r="yes"
38519
38520 else
38521
38522       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38523 $as_echo "no" >&6; }
38524       tst_proto_strerror_r="no"
38525
38526 fi
38527 rm -f conftest*
38528
38529   fi
38530   #
38531   if test "$tst_proto_strerror_r" = "yes"; then
38532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38533 $as_echo_n "checking if strerror_r is compilable... " >&6; }
38534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38535 /* end confdefs.h.  */
38536
38537
38538         $curl_includes_string
38539
38540 int main (void)
38541 {
38542
38543         if(0 != strerror_r(0, 0, 0))
38544           return 1;
38545
38546  ;
38547  return 0;
38548 }
38549
38550 _ACEOF
38551 if ac_fn_c_try_compile "$LINENO"; then :
38552
38553       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38554 $as_echo "yes" >&6; }
38555       tst_compi_strerror_r="yes"
38556
38557 else
38558
38559       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38560 $as_echo "no" >&6; }
38561       tst_compi_strerror_r="no"
38562
38563 fi
38564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38565   fi
38566   #
38567   if test "$tst_compi_strerror_r" = "yes"; then
38568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38569 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
38570     tst_glibc_strerror_r_type_arg3="unknown"
38571     for arg3 in 'size_t' 'int' 'unsigned int'; do
38572       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38573         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38574 /* end confdefs.h.  */
38575
38576
38577             $curl_includes_string
38578             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38579
38580 int main (void)
38581 {
38582
38583             if(0 != strerror_r(0, 0, 0))
38584               return 1;
38585
38586  ;
38587  return 0;
38588 }
38589
38590 _ACEOF
38591 if ac_fn_c_try_compile "$LINENO"; then :
38592
38593           tst_glibc_strerror_r_type_arg3="$arg3"
38594
38595 fi
38596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38597       fi
38598     done
38599     case "$tst_glibc_strerror_r_type_arg3" in
38600       unknown)
38601         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38602 $as_echo "no" >&6; }
38603         tst_glibc_strerror_r="no"
38604         ;;
38605       *)
38606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38607 $as_echo "yes" >&6; }
38608         tst_glibc_strerror_r="yes"
38609         ;;
38610     esac
38611   fi
38612   #
38613     if test "x$cross_compiling" != "xyes" &&
38614     test "$tst_glibc_strerror_r" = "yes"; then
38615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38616 $as_echo_n "checking if strerror_r seems to work... " >&6; }
38617
38618
38619    old=$LD_LIBRARY_PATH
38620    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38621    export LD_LIBRARY_PATH
38622    if test "$cross_compiling" = yes; then :
38623   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38625 as_fn_error $? "cannot run test program while cross compiling
38626 See \`config.log' for more details" "$LINENO" 5; }
38627 else
38628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38629 /* end confdefs.h.  */
38630
38631
38632         $curl_includes_stdlib
38633         $curl_includes_string
38634 #       include <errno.h>
38635
38636 int main (void)
38637 {
38638
38639         char buffer[1024];
38640         char *string = 0;
38641         buffer[0] = '\0';
38642         string = strerror_r(EACCES, buffer, sizeof(buffer));
38643         if(!string)
38644           exit(1); /* fail */
38645         if(!string[0])
38646           exit(1); /* fail */
38647         else
38648           exit(0);
38649
38650  ;
38651  return 0;
38652 }
38653
38654 _ACEOF
38655 if ac_fn_c_try_run "$LINENO"; then :
38656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38657 $as_echo "yes" >&6; }
38658       tst_works_glibc_strerror_r="yes"
38659
38660 else
38661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38662 $as_echo "no" >&6; }
38663       tst_works_glibc_strerror_r="no"
38664
38665 fi
38666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38667   conftest.$ac_objext conftest.beam conftest.$ac_ext
38668 fi
38669
38670    LD_LIBRARY_PATH=$old # restore
38671
38672   fi
38673   #
38674   if test "$tst_compi_strerror_r" = "yes" &&
38675     test "$tst_works_glibc_strerror_r" != "yes"; then
38676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38677 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38678     tst_posix_strerror_r_type_arg3="unknown"
38679     for arg3 in 'size_t' 'int' 'unsigned int'; do
38680       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38681         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38682 /* end confdefs.h.  */
38683
38684
38685             $curl_includes_string
38686             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38687
38688 int main (void)
38689 {
38690
38691             if(0 != strerror_r(0, 0, 0))
38692               return 1;
38693
38694  ;
38695  return 0;
38696 }
38697
38698 _ACEOF
38699 if ac_fn_c_try_compile "$LINENO"; then :
38700
38701           tst_posix_strerror_r_type_arg3="$arg3"
38702
38703 fi
38704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38705       fi
38706     done
38707     case "$tst_posix_strerror_r_type_arg3" in
38708       unknown)
38709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38710 $as_echo "no" >&6; }
38711         tst_posix_strerror_r="no"
38712         ;;
38713       *)
38714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38715 $as_echo "yes" >&6; }
38716         tst_posix_strerror_r="yes"
38717         ;;
38718     esac
38719   fi
38720   #
38721     if test "x$cross_compiling" != "xyes" &&
38722     test "$tst_posix_strerror_r" = "yes"; then
38723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38724 $as_echo_n "checking if strerror_r seems to work... " >&6; }
38725
38726
38727    old=$LD_LIBRARY_PATH
38728    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38729    export LD_LIBRARY_PATH
38730    if test "$cross_compiling" = yes; then :
38731   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38733 as_fn_error $? "cannot run test program while cross compiling
38734 See \`config.log' for more details" "$LINENO" 5; }
38735 else
38736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38737 /* end confdefs.h.  */
38738
38739
38740         $curl_includes_stdlib
38741         $curl_includes_string
38742 #       include <errno.h>
38743
38744 int main (void)
38745 {
38746
38747         char buffer[1024];
38748         int error = 1;
38749         buffer[0] = '\0';
38750         error = strerror_r(EACCES, buffer, sizeof(buffer));
38751         if(error)
38752           exit(1); /* fail */
38753         if(buffer[0] == '\0')
38754           exit(1); /* fail */
38755         else
38756           exit(0);
38757
38758  ;
38759  return 0;
38760 }
38761
38762 _ACEOF
38763 if ac_fn_c_try_run "$LINENO"; then :
38764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38765 $as_echo "yes" >&6; }
38766       tst_works_posix_strerror_r="yes"
38767
38768 else
38769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38770 $as_echo "no" >&6; }
38771       tst_works_posix_strerror_r="no"
38772
38773 fi
38774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38775   conftest.$ac_objext conftest.beam conftest.$ac_ext
38776 fi
38777
38778    LD_LIBRARY_PATH=$old # restore
38779
38780   fi
38781   #
38782   if test "$tst_works_glibc_strerror_r" = "yes"; then
38783     tst_posix_strerror_r="no"
38784   fi
38785   if test "$tst_works_posix_strerror_r" = "yes"; then
38786     tst_glibc_strerror_r="no"
38787   fi
38788   if test "$tst_glibc_strerror_r" = "yes" &&
38789     test "$tst_works_glibc_strerror_r" != "no" &&
38790     test "$tst_posix_strerror_r" != "yes"; then
38791     tst_allow_strerror_r="check"
38792   fi
38793   if test "$tst_posix_strerror_r" = "yes" &&
38794     test "$tst_works_posix_strerror_r" != "no" &&
38795     test "$tst_glibc_strerror_r" != "yes"; then
38796     tst_allow_strerror_r="check"
38797   fi
38798   if test "$tst_allow_strerror_r" = "check"; then
38799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38800 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
38801     if test "x$curl_disallow_strerror_r" != "xyes"; then
38802       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38803 $as_echo "yes" >&6; }
38804       tst_allow_strerror_r="yes"
38805     else
38806       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38807 $as_echo "no" >&6; }
38808       tst_allow_strerror_r="no"
38809     fi
38810   fi
38811   #
38812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38813 $as_echo_n "checking if strerror_r might be used... " >&6; }
38814   if test "$tst_links_strerror_r" = "yes" &&
38815      test "$tst_proto_strerror_r" = "yes" &&
38816      test "$tst_compi_strerror_r" = "yes" &&
38817      test "$tst_allow_strerror_r" = "yes"; then
38818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38819 $as_echo "yes" >&6; }
38820     if test "$tst_glibc_strerror_r" = "yes"; then
38821
38822 cat >>confdefs.h <<_ACEOF
38823 #define HAVE_STRERROR_R 1
38824 _ACEOF
38825
38826
38827 cat >>confdefs.h <<_ACEOF
38828 #define HAVE_GLIBC_STRERROR_R 1
38829 _ACEOF
38830
38831
38832 cat >>confdefs.h <<_ACEOF
38833 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38834 _ACEOF
38835
38836     fi
38837     if test "$tst_posix_strerror_r" = "yes"; then
38838
38839 cat >>confdefs.h <<_ACEOF
38840 #define HAVE_STRERROR_R 1
38841 _ACEOF
38842
38843
38844 cat >>confdefs.h <<_ACEOF
38845 #define HAVE_POSIX_STRERROR_R 1
38846 _ACEOF
38847
38848
38849 cat >>confdefs.h <<_ACEOF
38850 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38851 _ACEOF
38852
38853     fi
38854     curl_cv_func_strerror_r="yes"
38855   else
38856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38857 $as_echo "no" >&6; }
38858     curl_cv_func_strerror_r="no"
38859   fi
38860   #
38861   if test "$tst_compi_strerror_r" = "yes" &&
38862      test "$tst_allow_strerror_r" = "unknown"; then
38863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38864 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38865   fi
38866   #
38867
38868
38869     #
38870   tst_links_stricmp="unknown"
38871   tst_proto_stricmp="unknown"
38872   tst_compi_stricmp="unknown"
38873   tst_allow_stricmp="unknown"
38874   #
38875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38876 $as_echo_n "checking if stricmp can be linked... " >&6; }
38877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38878 /* end confdefs.h.  */
38879
38880
38881 #define stricmp innocuous_stricmp
38882 #ifdef __STDC__
38883 # include <limits.h>
38884 #else
38885 # include <assert.h>
38886 #endif
38887 #undef stricmp
38888 #ifdef __cplusplus
38889 extern "C"
38890 #endif
38891 char stricmp ();
38892 #if defined __stub_stricmp || defined __stub___stricmp
38893 choke me
38894 #endif
38895
38896 int main (void)
38897 {
38898 return stricmp ();
38899  ;
38900  return 0;
38901 }
38902
38903 _ACEOF
38904 if ac_fn_c_try_link "$LINENO"; then :
38905
38906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38907 $as_echo "yes" >&6; }
38908     tst_links_stricmp="yes"
38909
38910 else
38911
38912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38913 $as_echo "no" >&6; }
38914     tst_links_stricmp="no"
38915
38916 fi
38917 rm -f core conftest.err conftest.$ac_objext \
38918     conftest$ac_exeext conftest.$ac_ext
38919   #
38920   if test "$tst_links_stricmp" = "yes"; then
38921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38922 $as_echo_n "checking if stricmp is prototyped... " >&6; }
38923     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38924 /* end confdefs.h.  */
38925
38926       $curl_includes_string
38927
38928 _ACEOF
38929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38930   $EGREP "stricmp" >/dev/null 2>&1; then :
38931
38932       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38933 $as_echo "yes" >&6; }
38934       tst_proto_stricmp="yes"
38935
38936 else
38937
38938       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38939 $as_echo "no" >&6; }
38940       tst_proto_stricmp="no"
38941
38942 fi
38943 rm -f conftest*
38944
38945   fi
38946   #
38947   if test "$tst_proto_stricmp" = "yes"; then
38948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38949 $as_echo_n "checking if stricmp is compilable... " >&6; }
38950     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38951 /* end confdefs.h.  */
38952
38953
38954         $curl_includes_string
38955
38956 int main (void)
38957 {
38958
38959         if(0 != stricmp(0, 0))
38960           return 1;
38961
38962  ;
38963  return 0;
38964 }
38965
38966 _ACEOF
38967 if ac_fn_c_try_compile "$LINENO"; then :
38968
38969       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38970 $as_echo "yes" >&6; }
38971       tst_compi_stricmp="yes"
38972
38973 else
38974
38975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38976 $as_echo "no" >&6; }
38977       tst_compi_stricmp="no"
38978
38979 fi
38980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38981   fi
38982   #
38983   if test "$tst_compi_stricmp" = "yes"; then
38984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38985 $as_echo_n "checking if stricmp usage allowed... " >&6; }
38986     if test "x$curl_disallow_stricmp" != "xyes"; then
38987       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38988 $as_echo "yes" >&6; }
38989       tst_allow_stricmp="yes"
38990     else
38991       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38992 $as_echo "no" >&6; }
38993       tst_allow_stricmp="no"
38994     fi
38995   fi
38996   #
38997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38998 $as_echo_n "checking if stricmp might be used... " >&6; }
38999   if test "$tst_links_stricmp" = "yes" &&
39000      test "$tst_proto_stricmp" = "yes" &&
39001      test "$tst_compi_stricmp" = "yes" &&
39002      test "$tst_allow_stricmp" = "yes"; then
39003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39004 $as_echo "yes" >&6; }
39005
39006 cat >>confdefs.h <<_ACEOF
39007 #define HAVE_STRICMP 1
39008 _ACEOF
39009
39010     curl_cv_func_stricmp="yes"
39011   else
39012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39013 $as_echo "no" >&6; }
39014     curl_cv_func_stricmp="no"
39015   fi
39016
39017
39018     #
39019   tst_links_strncasecmp="unknown"
39020   tst_proto_strncasecmp="unknown"
39021   tst_compi_strncasecmp="unknown"
39022   tst_allow_strncasecmp="unknown"
39023   #
39024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
39025 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
39026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39027 /* end confdefs.h.  */
39028
39029
39030 #define strncasecmp innocuous_strncasecmp
39031 #ifdef __STDC__
39032 # include <limits.h>
39033 #else
39034 # include <assert.h>
39035 #endif
39036 #undef strncasecmp
39037 #ifdef __cplusplus
39038 extern "C"
39039 #endif
39040 char strncasecmp ();
39041 #if defined __stub_strncasecmp || defined __stub___strncasecmp
39042 choke me
39043 #endif
39044
39045 int main (void)
39046 {
39047 return strncasecmp ();
39048  ;
39049  return 0;
39050 }
39051
39052 _ACEOF
39053 if ac_fn_c_try_link "$LINENO"; then :
39054
39055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39056 $as_echo "yes" >&6; }
39057     tst_links_strncasecmp="yes"
39058
39059 else
39060
39061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39062 $as_echo "no" >&6; }
39063     tst_links_strncasecmp="no"
39064
39065 fi
39066 rm -f core conftest.err conftest.$ac_objext \
39067     conftest$ac_exeext conftest.$ac_ext
39068   #
39069   if test "$tst_links_strncasecmp" = "yes"; then
39070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
39071 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
39072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39073 /* end confdefs.h.  */
39074
39075       $curl_includes_string
39076
39077 _ACEOF
39078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39079   $EGREP "strncasecmp" >/dev/null 2>&1; then :
39080
39081       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39082 $as_echo "yes" >&6; }
39083       tst_proto_strncasecmp="yes"
39084
39085 else
39086
39087       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39088 $as_echo "no" >&6; }
39089       tst_proto_strncasecmp="no"
39090
39091 fi
39092 rm -f conftest*
39093
39094   fi
39095   #
39096   if test "$tst_proto_strncasecmp" = "yes"; then
39097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
39098 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
39099     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39100 /* end confdefs.h.  */
39101
39102
39103         $curl_includes_string
39104
39105 int main (void)
39106 {
39107
39108         if(0 != strncasecmp(0, 0, 0))
39109           return 1;
39110
39111  ;
39112  return 0;
39113 }
39114
39115 _ACEOF
39116 if ac_fn_c_try_compile "$LINENO"; then :
39117
39118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39119 $as_echo "yes" >&6; }
39120       tst_compi_strncasecmp="yes"
39121
39122 else
39123
39124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39125 $as_echo "no" >&6; }
39126       tst_compi_strncasecmp="no"
39127
39128 fi
39129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39130   fi
39131   #
39132   if test "$tst_compi_strncasecmp" = "yes"; then
39133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
39134 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
39135     if test "x$curl_disallow_strncasecmp" != "xyes"; then
39136       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39137 $as_echo "yes" >&6; }
39138       tst_allow_strncasecmp="yes"
39139     else
39140       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39141 $as_echo "no" >&6; }
39142       tst_allow_strncasecmp="no"
39143     fi
39144   fi
39145   #
39146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
39147 $as_echo_n "checking if strncasecmp might be used... " >&6; }
39148   if test "$tst_links_strncasecmp" = "yes" &&
39149      test "$tst_proto_strncasecmp" = "yes" &&
39150      test "$tst_compi_strncasecmp" = "yes" &&
39151      test "$tst_allow_strncasecmp" = "yes"; then
39152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39153 $as_echo "yes" >&6; }
39154
39155 cat >>confdefs.h <<_ACEOF
39156 #define HAVE_STRNCASECMP 1
39157 _ACEOF
39158
39159     curl_cv_func_strncasecmp="yes"
39160   else
39161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39162 $as_echo "no" >&6; }
39163     curl_cv_func_strncasecmp="no"
39164   fi
39165
39166
39167     #
39168   tst_links_strncmpi="unknown"
39169   tst_proto_strncmpi="unknown"
39170   tst_compi_strncmpi="unknown"
39171   tst_allow_strncmpi="unknown"
39172   #
39173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
39174 $as_echo_n "checking if strncmpi can be linked... " >&6; }
39175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39176 /* end confdefs.h.  */
39177
39178
39179 #define strncmpi innocuous_strncmpi
39180 #ifdef __STDC__
39181 # include <limits.h>
39182 #else
39183 # include <assert.h>
39184 #endif
39185 #undef strncmpi
39186 #ifdef __cplusplus
39187 extern "C"
39188 #endif
39189 char strncmpi ();
39190 #if defined __stub_strncmpi || defined __stub___strncmpi
39191 choke me
39192 #endif
39193
39194 int main (void)
39195 {
39196 return strncmpi ();
39197  ;
39198  return 0;
39199 }
39200
39201 _ACEOF
39202 if ac_fn_c_try_link "$LINENO"; then :
39203
39204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39205 $as_echo "yes" >&6; }
39206     tst_links_strncmpi="yes"
39207
39208 else
39209
39210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39211 $as_echo "no" >&6; }
39212     tst_links_strncmpi="no"
39213
39214 fi
39215 rm -f core conftest.err conftest.$ac_objext \
39216     conftest$ac_exeext conftest.$ac_ext
39217   #
39218   if test "$tst_links_strncmpi" = "yes"; then
39219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
39220 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
39221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39222 /* end confdefs.h.  */
39223
39224       $curl_includes_string
39225
39226 _ACEOF
39227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39228   $EGREP "strncmpi" >/dev/null 2>&1; then :
39229
39230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39231 $as_echo "yes" >&6; }
39232       tst_proto_strncmpi="yes"
39233
39234 else
39235
39236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39237 $as_echo "no" >&6; }
39238       tst_proto_strncmpi="no"
39239
39240 fi
39241 rm -f conftest*
39242
39243   fi
39244   #
39245   if test "$tst_proto_strncmpi" = "yes"; then
39246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39247 $as_echo_n "checking if strncmpi is compilable... " >&6; }
39248     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39249 /* end confdefs.h.  */
39250
39251
39252         $curl_includes_string
39253
39254 int main (void)
39255 {
39256
39257         if(0 != strncmpi(0, 0))
39258           return 1;
39259
39260  ;
39261  return 0;
39262 }
39263
39264 _ACEOF
39265 if ac_fn_c_try_compile "$LINENO"; then :
39266
39267       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39268 $as_echo "yes" >&6; }
39269       tst_compi_strncmpi="yes"
39270
39271 else
39272
39273       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39274 $as_echo "no" >&6; }
39275       tst_compi_strncmpi="no"
39276
39277 fi
39278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39279   fi
39280   #
39281   if test "$tst_compi_strncmpi" = "yes"; then
39282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39283 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
39284     if test "x$curl_disallow_strncmpi" != "xyes"; then
39285       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39286 $as_echo "yes" >&6; }
39287       tst_allow_strncmpi="yes"
39288     else
39289       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39290 $as_echo "no" >&6; }
39291       tst_allow_strncmpi="no"
39292     fi
39293   fi
39294   #
39295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39296 $as_echo_n "checking if strncmpi might be used... " >&6; }
39297   if test "$tst_links_strncmpi" = "yes" &&
39298      test "$tst_proto_strncmpi" = "yes" &&
39299      test "$tst_compi_strncmpi" = "yes" &&
39300      test "$tst_allow_strncmpi" = "yes"; then
39301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39302 $as_echo "yes" >&6; }
39303
39304 cat >>confdefs.h <<_ACEOF
39305 #define HAVE_STRNCMPI 1
39306 _ACEOF
39307
39308     curl_cv_func_strncmpi="yes"
39309   else
39310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39311 $as_echo "no" >&6; }
39312     curl_cv_func_strncmpi="no"
39313   fi
39314
39315
39316     #
39317   tst_links_strnicmp="unknown"
39318   tst_proto_strnicmp="unknown"
39319   tst_compi_strnicmp="unknown"
39320   tst_allow_strnicmp="unknown"
39321   #
39322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39323 $as_echo_n "checking if strnicmp can be linked... " >&6; }
39324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39325 /* end confdefs.h.  */
39326
39327
39328 #define strnicmp innocuous_strnicmp
39329 #ifdef __STDC__
39330 # include <limits.h>
39331 #else
39332 # include <assert.h>
39333 #endif
39334 #undef strnicmp
39335 #ifdef __cplusplus
39336 extern "C"
39337 #endif
39338 char strnicmp ();
39339 #if defined __stub_strnicmp || defined __stub___strnicmp
39340 choke me
39341 #endif
39342
39343 int main (void)
39344 {
39345 return strnicmp ();
39346  ;
39347  return 0;
39348 }
39349
39350 _ACEOF
39351 if ac_fn_c_try_link "$LINENO"; then :
39352
39353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39354 $as_echo "yes" >&6; }
39355     tst_links_strnicmp="yes"
39356
39357 else
39358
39359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39360 $as_echo "no" >&6; }
39361     tst_links_strnicmp="no"
39362
39363 fi
39364 rm -f core conftest.err conftest.$ac_objext \
39365     conftest$ac_exeext conftest.$ac_ext
39366   #
39367   if test "$tst_links_strnicmp" = "yes"; then
39368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39369 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
39370     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39371 /* end confdefs.h.  */
39372
39373       $curl_includes_string
39374
39375 _ACEOF
39376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39377   $EGREP "strnicmp" >/dev/null 2>&1; then :
39378
39379       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39380 $as_echo "yes" >&6; }
39381       tst_proto_strnicmp="yes"
39382
39383 else
39384
39385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39386 $as_echo "no" >&6; }
39387       tst_proto_strnicmp="no"
39388
39389 fi
39390 rm -f conftest*
39391
39392   fi
39393   #
39394   if test "$tst_proto_strnicmp" = "yes"; then
39395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39396 $as_echo_n "checking if strnicmp is compilable... " >&6; }
39397     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39398 /* end confdefs.h.  */
39399
39400
39401         $curl_includes_string
39402
39403 int main (void)
39404 {
39405
39406         if(0 != strnicmp(0, 0))
39407           return 1;
39408
39409  ;
39410  return 0;
39411 }
39412
39413 _ACEOF
39414 if ac_fn_c_try_compile "$LINENO"; then :
39415
39416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39417 $as_echo "yes" >&6; }
39418       tst_compi_strnicmp="yes"
39419
39420 else
39421
39422       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39423 $as_echo "no" >&6; }
39424       tst_compi_strnicmp="no"
39425
39426 fi
39427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39428   fi
39429   #
39430   if test "$tst_compi_strnicmp" = "yes"; then
39431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39432 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
39433     if test "x$curl_disallow_strnicmp" != "xyes"; then
39434       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39435 $as_echo "yes" >&6; }
39436       tst_allow_strnicmp="yes"
39437     else
39438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39439 $as_echo "no" >&6; }
39440       tst_allow_strnicmp="no"
39441     fi
39442   fi
39443   #
39444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39445 $as_echo_n "checking if strnicmp might be used... " >&6; }
39446   if test "$tst_links_strnicmp" = "yes" &&
39447      test "$tst_proto_strnicmp" = "yes" &&
39448      test "$tst_compi_strnicmp" = "yes" &&
39449      test "$tst_allow_strnicmp" = "yes"; then
39450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39451 $as_echo "yes" >&6; }
39452
39453 cat >>confdefs.h <<_ACEOF
39454 #define HAVE_STRNICMP 1
39455 _ACEOF
39456
39457     curl_cv_func_strnicmp="yes"
39458   else
39459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39460 $as_echo "no" >&6; }
39461     curl_cv_func_strnicmp="no"
39462   fi
39463
39464
39465     #
39466   tst_links_strstr="unknown"
39467   tst_proto_strstr="unknown"
39468   tst_compi_strstr="unknown"
39469   tst_allow_strstr="unknown"
39470   #
39471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39472 $as_echo_n "checking if strstr can be linked... " >&6; }
39473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39474 /* end confdefs.h.  */
39475
39476
39477 #define strstr innocuous_strstr
39478 #ifdef __STDC__
39479 # include <limits.h>
39480 #else
39481 # include <assert.h>
39482 #endif
39483 #undef strstr
39484 #ifdef __cplusplus
39485 extern "C"
39486 #endif
39487 char strstr ();
39488 #if defined __stub_strstr || defined __stub___strstr
39489 choke me
39490 #endif
39491
39492 int main (void)
39493 {
39494 return strstr ();
39495  ;
39496  return 0;
39497 }
39498
39499 _ACEOF
39500 if ac_fn_c_try_link "$LINENO"; then :
39501
39502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39503 $as_echo "yes" >&6; }
39504     tst_links_strstr="yes"
39505
39506 else
39507
39508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39509 $as_echo "no" >&6; }
39510     tst_links_strstr="no"
39511
39512 fi
39513 rm -f core conftest.err conftest.$ac_objext \
39514     conftest$ac_exeext conftest.$ac_ext
39515   #
39516   if test "$tst_links_strstr" = "yes"; then
39517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39518 $as_echo_n "checking if strstr is prototyped... " >&6; }
39519     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39520 /* end confdefs.h.  */
39521
39522       $curl_includes_string
39523
39524 _ACEOF
39525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39526   $EGREP "strstr" >/dev/null 2>&1; then :
39527
39528       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39529 $as_echo "yes" >&6; }
39530       tst_proto_strstr="yes"
39531
39532 else
39533
39534       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39535 $as_echo "no" >&6; }
39536       tst_proto_strstr="no"
39537
39538 fi
39539 rm -f conftest*
39540
39541   fi
39542   #
39543   if test "$tst_proto_strstr" = "yes"; then
39544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39545 $as_echo_n "checking if strstr is compilable... " >&6; }
39546     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39547 /* end confdefs.h.  */
39548
39549
39550         $curl_includes_string
39551
39552 int main (void)
39553 {
39554
39555         if(0 != strstr(0, 0))
39556           return 1;
39557
39558  ;
39559  return 0;
39560 }
39561
39562 _ACEOF
39563 if ac_fn_c_try_compile "$LINENO"; then :
39564
39565       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39566 $as_echo "yes" >&6; }
39567       tst_compi_strstr="yes"
39568
39569 else
39570
39571       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39572 $as_echo "no" >&6; }
39573       tst_compi_strstr="no"
39574
39575 fi
39576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39577   fi
39578   #
39579   if test "$tst_compi_strstr" = "yes"; then
39580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39581 $as_echo_n "checking if strstr usage allowed... " >&6; }
39582     if test "x$curl_disallow_strstr" != "xyes"; then
39583       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39584 $as_echo "yes" >&6; }
39585       tst_allow_strstr="yes"
39586     else
39587       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39588 $as_echo "no" >&6; }
39589       tst_allow_strstr="no"
39590     fi
39591   fi
39592   #
39593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39594 $as_echo_n "checking if strstr might be used... " >&6; }
39595   if test "$tst_links_strstr" = "yes" &&
39596      test "$tst_proto_strstr" = "yes" &&
39597      test "$tst_compi_strstr" = "yes" &&
39598      test "$tst_allow_strstr" = "yes"; then
39599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39600 $as_echo "yes" >&6; }
39601
39602 cat >>confdefs.h <<_ACEOF
39603 #define HAVE_STRSTR 1
39604 _ACEOF
39605
39606     curl_cv_func_strstr="yes"
39607   else
39608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39609 $as_echo "no" >&6; }
39610     curl_cv_func_strstr="no"
39611   fi
39612
39613
39614     #
39615   tst_links_strtok_r="unknown"
39616   tst_proto_strtok_r="unknown"
39617   tst_compi_strtok_r="unknown"
39618   tst_allow_strtok_r="unknown"
39619   #
39620   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39621 $as_echo_n "checking if strtok_r can be linked... " >&6; }
39622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39623 /* end confdefs.h.  */
39624
39625
39626 #define strtok_r innocuous_strtok_r
39627 #ifdef __STDC__
39628 # include <limits.h>
39629 #else
39630 # include <assert.h>
39631 #endif
39632 #undef strtok_r
39633 #ifdef __cplusplus
39634 extern "C"
39635 #endif
39636 char strtok_r ();
39637 #if defined __stub_strtok_r || defined __stub___strtok_r
39638 choke me
39639 #endif
39640
39641 int main (void)
39642 {
39643 return strtok_r ();
39644  ;
39645  return 0;
39646 }
39647
39648 _ACEOF
39649 if ac_fn_c_try_link "$LINENO"; then :
39650
39651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39652 $as_echo "yes" >&6; }
39653     tst_links_strtok_r="yes"
39654
39655 else
39656
39657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39658 $as_echo "no" >&6; }
39659     tst_links_strtok_r="no"
39660
39661 fi
39662 rm -f core conftest.err conftest.$ac_objext \
39663     conftest$ac_exeext conftest.$ac_ext
39664   #
39665   if test "$tst_links_strtok_r" = "yes"; then
39666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39667 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
39668     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39669 /* end confdefs.h.  */
39670
39671       $curl_includes_string
39672
39673 _ACEOF
39674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39675   $EGREP "strtok_r" >/dev/null 2>&1; then :
39676
39677       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39678 $as_echo "yes" >&6; }
39679       tst_proto_strtok_r="yes"
39680
39681 else
39682
39683       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39684 $as_echo "no" >&6; }
39685       tst_proto_strtok_r="no"
39686
39687 fi
39688 rm -f conftest*
39689
39690   fi
39691   #
39692   if test "$tst_proto_strtok_r" = "yes"; then
39693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39694 $as_echo_n "checking if strtok_r is compilable... " >&6; }
39695     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39696 /* end confdefs.h.  */
39697
39698
39699         $curl_includes_string
39700
39701 int main (void)
39702 {
39703
39704         if(0 != strtok_r(0, 0, 0))
39705           return 1;
39706
39707  ;
39708  return 0;
39709 }
39710
39711 _ACEOF
39712 if ac_fn_c_try_compile "$LINENO"; then :
39713
39714       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39715 $as_echo "yes" >&6; }
39716       tst_compi_strtok_r="yes"
39717
39718 else
39719
39720       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39721 $as_echo "no" >&6; }
39722       tst_compi_strtok_r="no"
39723
39724 fi
39725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39726   fi
39727   #
39728   if test "$tst_compi_strtok_r" = "yes"; then
39729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39730 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
39731     if test "x$curl_disallow_strtok_r" != "xyes"; then
39732       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39733 $as_echo "yes" >&6; }
39734       tst_allow_strtok_r="yes"
39735     else
39736       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39737 $as_echo "no" >&6; }
39738       tst_allow_strtok_r="no"
39739     fi
39740   fi
39741   #
39742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39743 $as_echo_n "checking if strtok_r might be used... " >&6; }
39744   if test "$tst_links_strtok_r" = "yes" &&
39745      test "$tst_proto_strtok_r" = "yes" &&
39746      test "$tst_compi_strtok_r" = "yes" &&
39747      test "$tst_allow_strtok_r" = "yes"; then
39748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39749 $as_echo "yes" >&6; }
39750
39751 cat >>confdefs.h <<_ACEOF
39752 #define HAVE_STRTOK_R 1
39753 _ACEOF
39754
39755     curl_cv_func_strtok_r="yes"
39756   else
39757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39758 $as_echo "no" >&6; }
39759     curl_cv_func_strtok_r="no"
39760   fi
39761
39762
39763     #
39764   tst_links_strtoll="unknown"
39765   tst_proto_strtoll="unknown"
39766   tst_compi_strtoll="unknown"
39767   tst_allow_strtoll="unknown"
39768   #
39769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39770 $as_echo_n "checking if strtoll can be linked... " >&6; }
39771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39772 /* end confdefs.h.  */
39773
39774
39775 #define strtoll innocuous_strtoll
39776 #ifdef __STDC__
39777 # include <limits.h>
39778 #else
39779 # include <assert.h>
39780 #endif
39781 #undef strtoll
39782 #ifdef __cplusplus
39783 extern "C"
39784 #endif
39785 char strtoll ();
39786 #if defined __stub_strtoll || defined __stub___strtoll
39787 choke me
39788 #endif
39789
39790 int main (void)
39791 {
39792 return strtoll ();
39793  ;
39794  return 0;
39795 }
39796
39797 _ACEOF
39798 if ac_fn_c_try_link "$LINENO"; then :
39799
39800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39801 $as_echo "yes" >&6; }
39802     tst_links_strtoll="yes"
39803
39804 else
39805
39806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39807 $as_echo "no" >&6; }
39808     tst_links_strtoll="no"
39809
39810 fi
39811 rm -f core conftest.err conftest.$ac_objext \
39812     conftest$ac_exeext conftest.$ac_ext
39813   #
39814   if test "$tst_links_strtoll" = "yes"; then
39815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39816 $as_echo_n "checking if strtoll is prototyped... " >&6; }
39817     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39818 /* end confdefs.h.  */
39819
39820       $curl_includes_stdlib
39821
39822 _ACEOF
39823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39824   $EGREP "strtoll" >/dev/null 2>&1; then :
39825
39826       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39827 $as_echo "yes" >&6; }
39828       tst_proto_strtoll="yes"
39829
39830 else
39831
39832       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39833 $as_echo "no" >&6; }
39834       tst_proto_strtoll="no"
39835
39836 fi
39837 rm -f conftest*
39838
39839   fi
39840   #
39841   if test "$tst_proto_strtoll" = "yes"; then
39842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39843 $as_echo_n "checking if strtoll is compilable... " >&6; }
39844     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39845 /* end confdefs.h.  */
39846
39847
39848         $curl_includes_stdlib
39849
39850 int main (void)
39851 {
39852
39853         if(0 != strtoll(0, 0, 0))
39854           return 1;
39855
39856  ;
39857  return 0;
39858 }
39859
39860 _ACEOF
39861 if ac_fn_c_try_compile "$LINENO"; then :
39862
39863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39864 $as_echo "yes" >&6; }
39865       tst_compi_strtoll="yes"
39866
39867 else
39868
39869       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39870 $as_echo "no" >&6; }
39871       tst_compi_strtoll="no"
39872
39873 fi
39874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39875   fi
39876   #
39877   if test "$tst_compi_strtoll" = "yes"; then
39878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39879 $as_echo_n "checking if strtoll usage allowed... " >&6; }
39880     if test "x$curl_disallow_strtoll" != "xyes"; then
39881       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39882 $as_echo "yes" >&6; }
39883       tst_allow_strtoll="yes"
39884     else
39885       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39886 $as_echo "no" >&6; }
39887       tst_allow_strtoll="no"
39888     fi
39889   fi
39890   #
39891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39892 $as_echo_n "checking if strtoll might be used... " >&6; }
39893   if test "$tst_links_strtoll" = "yes" &&
39894      test "$tst_proto_strtoll" = "yes" &&
39895      test "$tst_compi_strtoll" = "yes" &&
39896      test "$tst_allow_strtoll" = "yes"; then
39897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39898 $as_echo "yes" >&6; }
39899
39900 cat >>confdefs.h <<_ACEOF
39901 #define HAVE_STRTOLL 1
39902 _ACEOF
39903
39904     curl_cv_func_strtoll="yes"
39905   else
39906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39907 $as_echo "no" >&6; }
39908     curl_cv_func_strtoll="no"
39909   fi
39910
39911
39912 curl_includes_sys_uio="\
39913 /* includes start */
39914 #ifdef HAVE_SYS_TYPES_H
39915 #  include <sys/types.h>
39916 #endif
39917 #ifdef HAVE_SYS_UIO_H
39918 #  include <sys/uio.h>
39919 #endif
39920 /* includes end */"
39921   for ac_header in sys/types.h sys/uio.h
39922 do :
39923   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39924 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39925 "
39926 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39927   cat >>confdefs.h <<_ACEOF
39928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39929 _ACEOF
39930
39931 fi
39932
39933 done
39934
39935
39936
39937     #
39938   tst_links_writev="unknown"
39939   tst_proto_writev="unknown"
39940   tst_compi_writev="unknown"
39941   tst_allow_writev="unknown"
39942   #
39943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39944 $as_echo_n "checking if writev can be linked... " >&6; }
39945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39946 /* end confdefs.h.  */
39947
39948
39949 #define writev innocuous_writev
39950 #ifdef __STDC__
39951 # include <limits.h>
39952 #else
39953 # include <assert.h>
39954 #endif
39955 #undef writev
39956 #ifdef __cplusplus
39957 extern "C"
39958 #endif
39959 char writev ();
39960 #if defined __stub_writev || defined __stub___writev
39961 choke me
39962 #endif
39963
39964 int main (void)
39965 {
39966 return writev ();
39967  ;
39968  return 0;
39969 }
39970
39971 _ACEOF
39972 if ac_fn_c_try_link "$LINENO"; then :
39973
39974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39975 $as_echo "yes" >&6; }
39976     tst_links_writev="yes"
39977
39978 else
39979
39980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39981 $as_echo "no" >&6; }
39982     tst_links_writev="no"
39983
39984 fi
39985 rm -f core conftest.err conftest.$ac_objext \
39986     conftest$ac_exeext conftest.$ac_ext
39987   #
39988   if test "$tst_links_writev" = "yes"; then
39989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39990 $as_echo_n "checking if writev is prototyped... " >&6; }
39991     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39992 /* end confdefs.h.  */
39993
39994       $curl_includes_sys_uio
39995
39996 _ACEOF
39997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39998   $EGREP "writev" >/dev/null 2>&1; then :
39999
40000       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40001 $as_echo "yes" >&6; }
40002       tst_proto_writev="yes"
40003
40004 else
40005
40006       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40007 $as_echo "no" >&6; }
40008       tst_proto_writev="no"
40009
40010 fi
40011 rm -f conftest*
40012
40013   fi
40014   #
40015   if test "$tst_proto_writev" = "yes"; then
40016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
40017 $as_echo_n "checking if writev is compilable... " >&6; }
40018     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40019 /* end confdefs.h.  */
40020
40021
40022         $curl_includes_sys_uio
40023
40024 int main (void)
40025 {
40026
40027         if(0 != writev(0, 0, 0))
40028           return 1;
40029
40030  ;
40031  return 0;
40032 }
40033
40034 _ACEOF
40035 if ac_fn_c_try_compile "$LINENO"; then :
40036
40037       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40038 $as_echo "yes" >&6; }
40039       tst_compi_writev="yes"
40040
40041 else
40042
40043       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40044 $as_echo "no" >&6; }
40045       tst_compi_writev="no"
40046
40047 fi
40048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40049   fi
40050   #
40051   if test "$tst_compi_writev" = "yes"; then
40052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
40053 $as_echo_n "checking if writev usage allowed... " >&6; }
40054     if test "x$curl_disallow_writev" != "xyes"; then
40055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40056 $as_echo "yes" >&6; }
40057       tst_allow_writev="yes"
40058     else
40059       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40060 $as_echo "no" >&6; }
40061       tst_allow_writev="no"
40062     fi
40063   fi
40064   #
40065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
40066 $as_echo_n "checking if writev might be used... " >&6; }
40067   if test "$tst_links_writev" = "yes" &&
40068      test "$tst_proto_writev" = "yes" &&
40069      test "$tst_compi_writev" = "yes" &&
40070      test "$tst_allow_writev" = "yes"; then
40071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40072 $as_echo "yes" >&6; }
40073
40074 cat >>confdefs.h <<_ACEOF
40075 #define HAVE_WRITEV 1
40076 _ACEOF
40077
40078     curl_cv_func_writev="yes"
40079   else
40080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40081 $as_echo "no" >&6; }
40082     curl_cv_func_writev="no"
40083   fi
40084
40085
40086 case $host in
40087   *msdosdjgpp)
40088      ac_cv_func_pipe=no
40089      skipcheck_pipe=yes
40090      { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
40091 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
40092     ;;
40093 esac
40094
40095 ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
40096           #include <sys/types.h>
40097 "
40098 if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
40099   ac_have_decl=1
40100 else
40101   ac_have_decl=0
40102 fi
40103
40104 cat >>confdefs.h <<_ACEOF
40105 #define HAVE_DECL_GETPWUID_R $ac_have_decl
40106 _ACEOF
40107 if test $ac_have_decl = 1; then :
40108
40109 else
40110
40111 $as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
40112
40113 fi
40114
40115
40116
40117 for ac_func in fnmatch \
40118   geteuid \
40119   getpass_r \
40120   getppid \
40121   getpwuid \
40122   getpwuid_r \
40123   getrlimit \
40124   gettimeofday \
40125   if_nametoindex \
40126   mach_absolute_time \
40127   pipe \
40128   setlocale \
40129   setmode \
40130   setrlimit \
40131   utime \
40132   utimes
40133
40134 do :
40135   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40136 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40137 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40138   cat >>confdefs.h <<_ACEOF
40139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40140 _ACEOF
40141
40142
40143 else
40144
40145   func="$ac_func"
40146   eval skipcheck=\$skipcheck_$func
40147   if test "x$skipcheck" != "xyes"; then
40148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
40149 $as_echo_n "checking deeper for $func... " >&6; }
40150     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40151 /* end confdefs.h.  */
40152
40153
40154
40155 int main (void)
40156 {
40157
40158         $func ();
40159
40160  ;
40161  return 0;
40162 }
40163
40164 _ACEOF
40165 if ac_fn_c_try_link "$LINENO"; then :
40166
40167       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40168 $as_echo "yes" >&6; }
40169       eval "ac_cv_func_$func=yes"
40170
40171 cat >>confdefs.h <<_ACEOF
40172 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
40173 _ACEOF
40174
40175
40176 else
40177
40178       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40179 $as_echo "but still no" >&6; }
40180
40181 fi
40182 rm -f core conftest.err conftest.$ac_objext \
40183     conftest$ac_exeext conftest.$ac_ext
40184   fi
40185
40186 fi
40187 done
40188
40189
40190 if test "$ipv6" = "yes"; then
40191   if test "$curl_cv_func_getaddrinfo" = "yes"; then
40192
40193 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40194
40195     IPV6_ENABLED=1
40196
40197   fi
40198 fi
40199
40200
40201             #
40202   tst_method="unknown"
40203
40204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40205 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40206   if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40207     tst_method="fcntl O_NONBLOCK"
40208   elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40209     tst_method="ioctl FIONBIO"
40210   elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40211     tst_method="ioctlsocket FIONBIO"
40212   elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40213     tst_method="IoctlSocket FIONBIO"
40214   elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40215     tst_method="setsockopt SO_NONBLOCK"
40216   fi
40217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40218 $as_echo "$tst_method" >&6; }
40219   if test "$tst_method" = "unknown"; then
40220     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40221 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40222   fi
40223
40224
40225
40226 # Extract the first word of "perl", so it can be a program name with args.
40227 set dummy perl; ac_word=$2
40228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40229 $as_echo_n "checking for $ac_word... " >&6; }
40230 if ${ac_cv_path_PERL+:} false; then :
40231   $as_echo_n "(cached) " >&6
40232 else
40233   case $PERL in
40234   [\\/]* | ?:[\\/]*)
40235   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40236   ;;
40237   *)
40238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40239 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40240 for as_dir in $as_dummy
40241 do
40242   IFS=$as_save_IFS
40243   test -z "$as_dir" && as_dir=.
40244     for ac_exec_ext in '' $ac_executable_extensions; do
40245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40246     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40248     break 2
40249   fi
40250 done
40251   done
40252 IFS=$as_save_IFS
40253
40254   ;;
40255 esac
40256 fi
40257 PERL=$ac_cv_path_PERL
40258 if test -n "$PERL"; then
40259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40260 $as_echo "$PERL" >&6; }
40261 else
40262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40263 $as_echo "no" >&6; }
40264 fi
40265
40266
40267
40268
40269 for ac_prog in gnroff nroff
40270 do
40271   # Extract the first word of "$ac_prog", so it can be a program name with args.
40272 set dummy $ac_prog; ac_word=$2
40273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40274 $as_echo_n "checking for $ac_word... " >&6; }
40275 if ${ac_cv_path_NROFF+:} false; then :
40276   $as_echo_n "(cached) " >&6
40277 else
40278   case $NROFF in
40279   [\\/]* | ?:[\\/]*)
40280   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40281   ;;
40282   *)
40283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40284 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40285 for as_dir in $as_dummy
40286 do
40287   IFS=$as_save_IFS
40288   test -z "$as_dir" && as_dir=.
40289     for ac_exec_ext in '' $ac_executable_extensions; do
40290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40291     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40293     break 2
40294   fi
40295 done
40296   done
40297 IFS=$as_save_IFS
40298
40299   ;;
40300 esac
40301 fi
40302 NROFF=$ac_cv_path_NROFF
40303 if test -n "$NROFF"; then
40304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40305 $as_echo "$NROFF" >&6; }
40306 else
40307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40308 $as_echo "no" >&6; }
40309 fi
40310
40311
40312   test -n "$NROFF" && break
40313 done
40314
40315
40316
40317 if test -n "$NROFF"; then
40318
40319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40320 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40321   MANOPT="-man"
40322   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40323   if test -z "$mancheck"; then
40324     MANOPT="-mandoc"
40325    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40326     if test -z "$mancheck"; then
40327       MANOPT=""
40328       { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40329 $as_echo "failed" >&6; }
40330       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40331 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40332     else
40333       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40334 $as_echo "$MANOPT" >&6; }
40335     fi
40336   else
40337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40338 $as_echo "$MANOPT" >&6; }
40339   fi
40340
40341 fi
40342
40343 if test -z "$MANOPT"
40344 then
40345       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40346 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40347   USE_MANUAL="no";
40348 fi
40349
40350
40351 if test "$USE_MANUAL" = "1"; then
40352
40353 $as_echo "#define USE_MANUAL 1" >>confdefs.h
40354
40355   curl_manual_msg="enabled"
40356 fi
40357
40358  if test x"$USE_MANUAL" = x1; then
40359   USE_MANUAL_TRUE=
40360   USE_MANUAL_FALSE='#'
40361 else
40362   USE_MANUAL_TRUE='#'
40363   USE_MANUAL_FALSE=
40364 fi
40365
40366
40367
40368
40369
40370   #
40371   if test "$want_ares" = "yes"; then
40372         clean_CPPFLAGS="$CPPFLAGS"
40373     clean_LDFLAGS="$LDFLAGS"
40374     clean_LIBS="$LIBS"
40375     embedded_ares="unknown"
40376     configure_runpath=`pwd`
40377     embedded_ares_builddir="$configure_runpath/ares"
40378     if test -n "$want_ares_path"; then
40379             ARES_PCDIR="$want_ares_path/lib/pkgconfig"
40380
40381     if test -n "$PKG_CONFIG"; then
40382       PKGCONFIG="$PKG_CONFIG"
40383     else
40384       if test -n "$ac_tool_prefix"; then
40385   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40386 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40388 $as_echo_n "checking for $ac_word... " >&6; }
40389 if ${ac_cv_path_PKGCONFIG+:} false; then :
40390   $as_echo_n "(cached) " >&6
40391 else
40392   case $PKGCONFIG in
40393   [\\/]* | ?:[\\/]*)
40394   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40395   ;;
40396   *)
40397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40398 as_dummy="$PATH:/usr/bin:/usr/local/bin"
40399 for as_dir in $as_dummy
40400 do
40401   IFS=$as_save_IFS
40402   test -z "$as_dir" && as_dir=.
40403     for ac_exec_ext in '' $ac_executable_extensions; do
40404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40405     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40407     break 2
40408   fi
40409 done
40410   done
40411 IFS=$as_save_IFS
40412
40413   ;;
40414 esac
40415 fi
40416 PKGCONFIG=$ac_cv_path_PKGCONFIG
40417 if test -n "$PKGCONFIG"; then
40418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40419 $as_echo "$PKGCONFIG" >&6; }
40420 else
40421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40422 $as_echo "no" >&6; }
40423 fi
40424
40425
40426 fi
40427 if test -z "$ac_cv_path_PKGCONFIG"; then
40428   ac_pt_PKGCONFIG=$PKGCONFIG
40429   # Extract the first word of "pkg-config", so it can be a program name with args.
40430 set dummy pkg-config; ac_word=$2
40431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40432 $as_echo_n "checking for $ac_word... " >&6; }
40433 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40434   $as_echo_n "(cached) " >&6
40435 else
40436   case $ac_pt_PKGCONFIG in
40437   [\\/]* | ?:[\\/]*)
40438   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40439   ;;
40440   *)
40441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40442 as_dummy="$PATH:/usr/bin:/usr/local/bin"
40443 for as_dir in $as_dummy
40444 do
40445   IFS=$as_save_IFS
40446   test -z "$as_dir" && as_dir=.
40447     for ac_exec_ext in '' $ac_executable_extensions; do
40448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40449     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40451     break 2
40452   fi
40453 done
40454   done
40455 IFS=$as_save_IFS
40456
40457   ;;
40458 esac
40459 fi
40460 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40461 if test -n "$ac_pt_PKGCONFIG"; then
40462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40463 $as_echo "$ac_pt_PKGCONFIG" >&6; }
40464 else
40465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40466 $as_echo "no" >&6; }
40467 fi
40468
40469   if test "x$ac_pt_PKGCONFIG" = x; then
40470     PKGCONFIG="no"
40471   else
40472     case $cross_compiling:$ac_tool_warned in
40473 yes:)
40474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40476 ac_tool_warned=yes ;;
40477 esac
40478     PKGCONFIG=$ac_pt_PKGCONFIG
40479   fi
40480 else
40481   PKGCONFIG="$ac_cv_path_PKGCONFIG"
40482 fi
40483
40484     fi
40485
40486     if test "x$PKGCONFIG" != "xno"; then
40487       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40488 $as_echo_n "checking for libcares options with pkg-config... " >&6; }
40489             itexists=`
40490     if test -n "$ARES_PCDIR"; then
40491       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40492       export PKG_CONFIG_LIBDIR
40493     fi
40494          $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40495
40496       if test -z "$itexists"; then
40497                         PKGCONFIG="no"
40498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40499 $as_echo "no" >&6; }
40500       else
40501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40502 $as_echo "found" >&6; }
40503       fi
40504     fi
40505
40506       if test "$PKGCONFIG" != "no" ; then
40507         ares_LIBS=`
40508     if test -n "$ARES_PCDIR"; then
40509       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40510       export PKG_CONFIG_LIBDIR
40511     fi
40512
40513           $PKGCONFIG --libs-only-l libcares`
40514         ares_LDFLAGS=`
40515     if test -n "$ARES_PCDIR"; then
40516       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40517       export PKG_CONFIG_LIBDIR
40518     fi
40519
40520           $PKGCONFIG --libs-only-L libcares`
40521         ares_CPPFLAGS=`
40522     if test -n "$ARES_PCDIR"; then
40523       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40524       export PKG_CONFIG_LIBDIR
40525     fi
40526
40527           $PKGCONFIG --cflags-only-I libcares`
40528         { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
40529 $as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
40530         { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
40531 $as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40532         { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40533 $as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40534       else
40535                 ares_CPPFLAGS="-I$want_ares_path/include"
40536         ares_LDFLAGS="-L$want_ares_path/lib"
40537         ares_LIBS="-lcares"
40538       fi
40539     else
40540             if test -d "$srcdir/ares"; then
40541                 embedded_ares="yes"
40542         subdirs="$subdirs ares"
40543
40544                         ares_CPPFLAGS=""
40545         ares_LDFLAGS="-L$embedded_ares_builddir"
40546         ares_LIBS="-lcares"
40547       else
40548
40549     if test -n "$PKG_CONFIG"; then
40550       PKGCONFIG="$PKG_CONFIG"
40551     else
40552       if test -n "$ac_tool_prefix"; then
40553   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40554 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40556 $as_echo_n "checking for $ac_word... " >&6; }
40557 if ${ac_cv_path_PKGCONFIG+:} false; then :
40558   $as_echo_n "(cached) " >&6
40559 else
40560   case $PKGCONFIG in
40561   [\\/]* | ?:[\\/]*)
40562   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40563   ;;
40564   *)
40565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40566 as_dummy="$PATH:/usr/bin:/usr/local/bin"
40567 for as_dir in $as_dummy
40568 do
40569   IFS=$as_save_IFS
40570   test -z "$as_dir" && as_dir=.
40571     for ac_exec_ext in '' $ac_executable_extensions; do
40572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40573     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40575     break 2
40576   fi
40577 done
40578   done
40579 IFS=$as_save_IFS
40580
40581   ;;
40582 esac
40583 fi
40584 PKGCONFIG=$ac_cv_path_PKGCONFIG
40585 if test -n "$PKGCONFIG"; then
40586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40587 $as_echo "$PKGCONFIG" >&6; }
40588 else
40589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40590 $as_echo "no" >&6; }
40591 fi
40592
40593
40594 fi
40595 if test -z "$ac_cv_path_PKGCONFIG"; then
40596   ac_pt_PKGCONFIG=$PKGCONFIG
40597   # Extract the first word of "pkg-config", so it can be a program name with args.
40598 set dummy pkg-config; ac_word=$2
40599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40600 $as_echo_n "checking for $ac_word... " >&6; }
40601 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40602   $as_echo_n "(cached) " >&6
40603 else
40604   case $ac_pt_PKGCONFIG in
40605   [\\/]* | ?:[\\/]*)
40606   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40607   ;;
40608   *)
40609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40610 as_dummy="$PATH:/usr/bin:/usr/local/bin"
40611 for as_dir in $as_dummy
40612 do
40613   IFS=$as_save_IFS
40614   test -z "$as_dir" && as_dir=.
40615     for ac_exec_ext in '' $ac_executable_extensions; do
40616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40617     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40619     break 2
40620   fi
40621 done
40622   done
40623 IFS=$as_save_IFS
40624
40625   ;;
40626 esac
40627 fi
40628 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40629 if test -n "$ac_pt_PKGCONFIG"; then
40630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40631 $as_echo "$ac_pt_PKGCONFIG" >&6; }
40632 else
40633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40634 $as_echo "no" >&6; }
40635 fi
40636
40637   if test "x$ac_pt_PKGCONFIG" = x; then
40638     PKGCONFIG="no"
40639   else
40640     case $cross_compiling:$ac_tool_warned in
40641 yes:)
40642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40644 ac_tool_warned=yes ;;
40645 esac
40646     PKGCONFIG=$ac_pt_PKGCONFIG
40647   fi
40648 else
40649   PKGCONFIG="$ac_cv_path_PKGCONFIG"
40650 fi
40651
40652     fi
40653
40654     if test "x$PKGCONFIG" != "xno"; then
40655       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40656 $as_echo_n "checking for libcares options with pkg-config... " >&6; }
40657             itexists=`
40658     if test -n ""; then
40659       PKG_CONFIG_LIBDIR=""
40660       export PKG_CONFIG_LIBDIR
40661     fi
40662          $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40663
40664       if test -z "$itexists"; then
40665                         PKGCONFIG="no"
40666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40667 $as_echo "no" >&6; }
40668       else
40669         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40670 $as_echo "found" >&6; }
40671       fi
40672     fi
40673
40674         if test "$PKGCONFIG" != "no" ; then
40675           ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
40676           ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
40677           ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
40678           { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
40679 $as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
40680           { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
40681 $as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40682           { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40683 $as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40684         else
40685           ares_CPPFLAGS=""
40686           ares_LDFLAGS=""
40687           ares_LIBS="-lcares"
40688         fi
40689       fi
40690     fi
40691     #
40692     CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40693     LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40694     LIBS="$ares_LIBS $clean_LIBS"
40695     #
40696     if test "$embedded_ares" != "yes"; then
40697                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40698 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40699       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40700 /* end confdefs.h.  */
40701
40702
40703 #include <ares.h>
40704           /* set of dummy functions in case c-ares was built with debug */
40705           void curl_dofree() { }
40706           void curl_sclose() { }
40707           void curl_domalloc() { }
40708           void curl_docalloc() { }
40709           void curl_socket() { }
40710
40711 int main (void)
40712 {
40713
40714           ares_channel channel;
40715           ares_cancel(channel); /* added in 1.2.0 */
40716           ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40717           ares_dup(&channel, channel); /* added in 1.6.0 */
40718
40719  ;
40720  return 0;
40721 }
40722
40723 _ACEOF
40724 if ac_fn_c_try_link "$LINENO"; then :
40725
40726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40727 $as_echo "yes" >&6; }
40728
40729 else
40730
40731         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40732 $as_echo "no" >&6; }
40733         as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40734                 CPPFLAGS="$clean_CPPFLAGS"
40735         LDFLAGS="$clean_LDFLAGS"
40736         LIBS="$clean_LIBS"
40737         # prevent usage
40738         want_ares="no"
40739
40740 fi
40741 rm -f core conftest.err conftest.$ac_objext \
40742     conftest$ac_exeext conftest.$ac_ext
40743     fi
40744     if test "$want_ares" = "yes"; then
40745
40746 $as_echo "#define USE_ARES 1" >>confdefs.h
40747
40748       USE_ARES=1
40749
40750       curl_res_msg="c-ares"
40751     fi
40752   fi
40753
40754  if test x$embedded_ares = xyes; then
40755   USE_EMBEDDED_ARES_TRUE=
40756   USE_EMBEDDED_ARES_FALSE='#'
40757 else
40758   USE_EMBEDDED_ARES_TRUE='#'
40759   USE_EMBEDDED_ARES_FALSE=
40760 fi
40761
40762
40763 if test "x$curl_cv_native_windows" != "xyes" &&
40764    test "x$enable_shared" = "xyes"; then
40765   build_libhostname=yes
40766 else
40767   build_libhostname=no
40768 fi
40769  if test x$build_libhostname = xyes; then
40770   BUILD_LIBHOSTNAME_TRUE=
40771   BUILD_LIBHOSTNAME_FALSE='#'
40772 else
40773   BUILD_LIBHOSTNAME_TRUE='#'
40774   BUILD_LIBHOSTNAME_FALSE=
40775 fi
40776
40777
40778 if test "x$want_ares" != xyes; then
40779
40780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40781 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40782   OPT_THRES="default"
40783   # Check whether --enable-threaded_resolver was given.
40784 if test "${enable_threaded_resolver+set}" = set; then :
40785   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40786 fi
40787
40788   case "$OPT_THRES" in
40789     no)
40790             want_thres="no"
40791       ;;
40792     *)
40793             want_thres="yes"
40794       ;;
40795   esac
40796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40797 $as_echo "$want_thres" >&6; }
40798
40799 fi
40800
40801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40802 $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40803 # Check whether --enable-pthreads was given.
40804 if test "${enable_pthreads+set}" = set; then :
40805   enableval=$enable_pthreads;  case "$enableval" in
40806   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40807 $as_echo "no" >&6; }
40808        want_pthreads=no
40809        ;;
40810   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40811 $as_echo "yes" >&6; }
40812        want_pthreads=yes
40813        ;;
40814   esac
40815 else
40816
40817        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40818 $as_echo "auto" >&6; }
40819        want_pthreads=auto
40820
40821
40822 fi
40823
40824
40825 if test "$want_pthreads" != "no"; then
40826   if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40827     as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40828   fi
40829   if test "$dontwant_rt" != "no"; then
40830         if test "$want_pthreads" = "yes"; then
40831       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40832 $as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40833     fi
40834     want_pthreads=no
40835   fi
40836 fi
40837
40838 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40839   want_pthreads=no
40840 fi
40841
40842 if test "$want_pthreads" != "no"; then
40843   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40844 if test "x$ac_cv_header_pthread_h" = xyes; then :
40845
40846 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40847
40848       save_CFLAGS="$CFLAGS"
40849
40850             ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40851 if test "x$ac_cv_func_pthread_create" = xyes; then :
40852   USE_THREADS_POSIX=1
40853 fi
40854
40855
40856             case $host in
40857       *-hp-hpux*)
40858                   USE_THREADS_POSIX=""
40859          ;;
40860       *)
40861          ;;
40862       esac
40863
40864             if test "$USE_THREADS_POSIX" != "1"
40865       then
40866         CFLAGS="$CFLAGS -pthread"
40867         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40868 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40869 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40870   $as_echo_n "(cached) " >&6
40871 else
40872   ac_check_lib_save_LIBS=$LIBS
40873 LIBS="-lpthread  $LIBS"
40874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40875 /* end confdefs.h.  */
40876
40877
40878 #ifdef __cplusplus
40879 extern "C"
40880 #endif
40881 char pthread_create ();
40882 int main (void)
40883 {
40884 return pthread_create ();
40885  ;
40886  return 0;
40887 }
40888 _ACEOF
40889 if ac_fn_c_try_link "$LINENO"; then :
40890   ac_cv_lib_pthread_pthread_create=yes
40891 else
40892   ac_cv_lib_pthread_pthread_create=no
40893 fi
40894 rm -f core conftest.err conftest.$ac_objext \
40895     conftest$ac_exeext conftest.$ac_ext
40896 LIBS=$ac_check_lib_save_LIBS
40897 fi
40898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40899 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40900 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40901   USE_THREADS_POSIX=1
40902 else
40903    CFLAGS="$save_CFLAGS"
40904 fi
40905
40906       fi
40907
40908       if test "x$USE_THREADS_POSIX" = "x1"
40909       then
40910
40911 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40912
40913         curl_res_msg="POSIX threaded"
40914       fi
40915
40916 fi
40917
40918
40919 fi
40920
40921 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40922   if test "$want_pthreads" = "yes"; then
40923     as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40924   fi
40925     if test "$curl_cv_native_windows" = "yes"; then
40926     USE_THREADS_WIN32=1
40927
40928 $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40929
40930     curl_res_msg="Win32 threaded"
40931   else
40932     as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40933   fi
40934 fi
40935
40936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40937 $as_echo_n "checking whether to enable verbose strings... " >&6; }
40938 # Check whether --enable-verbose was given.
40939 if test "${enable_verbose+set}" = set; then :
40940   enableval=$enable_verbose;  case "$enableval" in
40941   no)
40942        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40943 $as_echo "no" >&6; }
40944
40945 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40946
40947        curl_verbose_msg="no"
40948        ;;
40949   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40950 $as_echo "yes" >&6; }
40951        ;;
40952   esac
40953 else
40954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40955 $as_echo "yes" >&6; }
40956
40957 fi
40958
40959
40960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40961 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40962 # Check whether --enable-sspi was given.
40963 if test "${enable_sspi+set}" = set; then :
40964   enableval=$enable_sspi;  case "$enableval" in
40965   yes)
40966        if test "$curl_cv_native_windows" = "yes"; then
40967          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40968 $as_echo "yes" >&6; }
40969
40970 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40971
40972          USE_WINDOWS_SSPI=1
40973
40974          curl_sspi_msg="enabled"
40975        else
40976          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40977 $as_echo "no" >&6; }
40978          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40979 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40980        fi
40981        ;;
40982   *)
40983        if test "x$WINSSL_ENABLED" = "x1"; then
40984          # --with-winssl implies --enable-sspi
40985          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40986 $as_echo "yes" >&6; }
40987        else
40988          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40989 $as_echo "no" >&6; }
40990        fi
40991        ;;
40992   esac
40993 else
40994   if test "x$WINSSL_ENABLED" = "x1"; then
40995          # --with-winssl implies --enable-sspi
40996          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40997 $as_echo "yes" >&6; }
40998        else
40999          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41000 $as_echo "no" >&6; }
41001        fi
41002
41003 fi
41004
41005
41006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
41007 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
41008 # Check whether --enable-crypto-auth was given.
41009 if test "${enable_crypto_auth+set}" = set; then :
41010   enableval=$enable_crypto_auth;  case "$enableval" in
41011   no)
41012        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41013 $as_echo "no" >&6; }
41014
41015 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
41016
41017        CURL_DISABLE_CRYPTO_AUTH=1
41018        ;;
41019   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41020 $as_echo "yes" >&6; }
41021        ;;
41022   esac
41023 else
41024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41025 $as_echo "yes" >&6; }
41026
41027 fi
41028
41029
41030
41031     OPT_NTLM_WB="default"
41032   # Check whether --enable-ntlm-wb was given.
41033 if test "${enable_ntlm_wb+set}" = set; then :
41034   enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
41035 fi
41036
41037   want_ntlm_wb_file="/usr/bin/ntlm_auth"
41038   case "$OPT_NTLM_WB" in
41039     no)
41040             want_ntlm_wb="no"
41041       ;;
41042     default)
41043             want_ntlm_wb="yes"
41044       ;;
41045     *)
41046             want_ntlm_wb="yes"
41047       if test -n "$enableval" && test "$enableval" != "yes"; then
41048         want_ntlm_wb_file="$enableval"
41049       fi
41050       ;;
41051   esac
41052
41053
41054
41055       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
41056 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
41057   if test "$curl_cv_native_windows" = "yes" ||
41058     test "x$SSL_ENABLED" = "x"; then
41059     want_ntlm_wb_file=""
41060     want_ntlm_wb="no"
41061   fi
41062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
41063 $as_echo "$want_ntlm_wb" >&6; }
41064   if test "$want_ntlm_wb" = "yes"; then
41065
41066 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
41067
41068
41069 cat >>confdefs.h <<_ACEOF
41070 #define NTLM_WB_FILE "$want_ntlm_wb_file"
41071 _ACEOF
41072
41073     NTLM_WB_ENABLED=1
41074   fi
41075
41076
41077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
41078 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
41079 # Check whether --enable-tls-srp was given.
41080 if test "${enable_tls_srp+set}" = set; then :
41081   enableval=$enable_tls_srp;  case "$enableval" in
41082   no)
41083        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41084 $as_echo "no" >&6; }
41085
41086 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
41087
41088        want_tls_srp=no
41089        ;;
41090   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41091 $as_echo "yes" >&6; }
41092        want_tls_srp=yes
41093        ;;
41094   esac
41095 else
41096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41097 $as_echo "yes" >&6; }
41098        want_tls_srp=yes
41099
41100 fi
41101
41102
41103 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
41104
41105 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
41106
41107    USE_TLS_SRP=1
41108    curl_tls_srp_msg="enabled"
41109 fi
41110
41111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
41112 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
41113 # Check whether --enable-unix-sockets was given.
41114 if test "${enable_unix_sockets+set}" = set; then :
41115   enableval=$enable_unix_sockets;  case "$enableval" in
41116   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41117 $as_echo "no" >&6; }
41118        want_unix_sockets=no
41119        ;;
41120   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41121 $as_echo "yes" >&6; }
41122        want_unix_sockets=yes
41123        ;;
41124   esac
41125 else
41126
41127        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41128 $as_echo "auto" >&6; }
41129        want_unix_sockets=auto
41130
41131
41132 fi
41133
41134 if test "x$want_unix_sockets" != "xno"; then
41135   ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41136     #include <sys/un.h>
41137
41138 "
41139 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41140
41141
41142 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41143
41144     USE_UNIX_SOCKETS=1
41145
41146     curl_unix_sockets_msg="enabled"
41147
41148 else
41149
41150     if test "x$want_unix_sockets" = "xyes"; then
41151       as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41152     fi
41153
41154 fi
41155
41156 fi
41157
41158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41159 $as_echo_n "checking whether to enable support for cookies... " >&6; }
41160 # Check whether --enable-cookies was given.
41161 if test "${enable_cookies+set}" = set; then :
41162   enableval=$enable_cookies;  case "$enableval" in
41163   no)
41164        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41165 $as_echo "no" >&6; }
41166
41167 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41168
41169        ;;
41170   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41171 $as_echo "yes" >&6; }
41172        ;;
41173   esac
41174 else
41175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41176 $as_echo "yes" >&6; }
41177
41178 fi
41179
41180
41181
41182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41183 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41184   CFLAG_CURL_SYMBOL_HIDING=""
41185   doing_symbol_hiding="no"
41186   if test x"$curl_cv_native_windows" != "xyes" &&
41187     test "$want_symbol_hiding" = "yes" &&
41188     test "$supports_symbol_hiding" = "yes"; then
41189     doing_symbol_hiding="yes"
41190     CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41191
41192 cat >>confdefs.h <<_ACEOF
41193 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41194 _ACEOF
41195
41196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41197 $as_echo "yes" >&6; }
41198   else
41199     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41200 $as_echo "no" >&6; }
41201   fi
41202    if test x$doing_symbol_hiding = xyes; then
41203   DOING_CURL_SYMBOL_HIDING_TRUE=
41204   DOING_CURL_SYMBOL_HIDING_FALSE='#'
41205 else
41206   DOING_CURL_SYMBOL_HIDING_TRUE='#'
41207   DOING_CURL_SYMBOL_HIDING_FALSE=
41208 fi
41209
41210
41211
41212
41213 LIBCURL_LIBS=$LIBS
41214
41215
41216
41217
41218
41219 BLANK_AT_MAKETIME=
41220
41221
41222  if test x$cross_compiling = xyes; then
41223   CROSSCOMPILING_TRUE=
41224   CROSSCOMPILING_FALSE='#'
41225 else
41226   CROSSCOMPILING_TRUE='#'
41227   CROSSCOMPILING_FALSE=
41228 fi
41229
41230
41231 ENABLE_SHARED="$enable_shared"
41232
41233
41234 ENABLE_STATIC="$enable_static"
41235
41236
41237
41238
41239 if test "x$OPENSSL_ENABLED" = "x1"; then
41240   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41241 elif test -n "$SSL_ENABLED"; then
41242   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41243 fi
41244 if test "x$IPV6_ENABLED" = "x1"; then
41245   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41246 fi
41247 if test "x$USE_UNIX_SOCKETS" = "x1"; then
41248   SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41249 fi
41250 if test "x$HAVE_LIBZ" = "x1"; then
41251   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41252 fi
41253 if test "x$HAVE_BROTLI" = "x1"; then
41254   SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41255 fi
41256 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41257                             -o "x$USE_THREADS_WIN32" = "x1"; then
41258   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41259 fi
41260 if test "x$IDN_ENABLED" = "x1"; then
41261   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41262 fi
41263 if test "x$USE_WINDOWS_SSPI" = "x1"; then
41264   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41265 fi
41266
41267 if test "x$HAVE_GSSAPI" = "x1"; then
41268   SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41269 fi
41270
41271 if test "x$curl_psl_msg" = "xyes"; then
41272   SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41273 fi
41274
41275 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41276     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41277   SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41278 fi
41279
41280 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41281     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41282   SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41283 fi
41284
41285 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41286   if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41287       -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41288       -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
41289     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41290
41291     if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41292         "x$NTLM_WB_ENABLED" = "x1"; then
41293       SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41294     fi
41295   fi
41296 fi
41297
41298 if test "x$USE_TLS_SRP" = "x1"; then
41299   SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41300 fi
41301
41302 if test "x$USE_NGHTTP2" = "x1"; then
41303   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41304 fi
41305
41306 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41307   SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41308 fi
41309
41310 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41311     -o "x$NSS_ENABLED" = "x1"; then
41312   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41313 fi
41314
41315
41316
41317 if test "x$CURL_DISABLE_HTTP" != "x1"; then
41318   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41319   if test "x$SSL_ENABLED" = "x1"; then
41320     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41321   fi
41322 fi
41323 if test "x$CURL_DISABLE_FTP" != "x1"; then
41324   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41325   if test "x$SSL_ENABLED" = "x1"; then
41326     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41327   fi
41328 fi
41329 if test "x$CURL_DISABLE_FILE" != "x1"; then
41330   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41331 fi
41332 if test "x$CURL_DISABLE_TELNET" != "x1"; then
41333   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41334 fi
41335 if test "x$CURL_DISABLE_LDAP" != "x1"; then
41336   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41337   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41338     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41339       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
41340       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41341     fi
41342   fi
41343 fi
41344 if test "x$CURL_DISABLE_DICT" != "x1"; then
41345   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41346 fi
41347 if test "x$CURL_DISABLE_TFTP" != "x1"; then
41348   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41349 fi
41350 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41351   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41352 fi
41353 if test "x$CURL_DISABLE_POP3" != "x1"; then
41354   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41355   if test "x$SSL_ENABLED" = "x1"; then
41356     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41357   fi
41358 fi
41359 if test "x$CURL_DISABLE_IMAP" != "x1"; then
41360   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41361   if test "x$SSL_ENABLED" = "x1"; then
41362     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41363   fi
41364 fi
41365 if test "x$CURL_DISABLE_SMB" != "x1" \
41366     -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41367     -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41368       -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41369       -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41370   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41371   if test "x$SSL_ENABLED" = "x1"; then
41372     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41373   fi
41374 fi
41375 if test "x$CURL_DISABLE_SMTP" != "x1"; then
41376   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41377   if test "x$SSL_ENABLED" = "x1"; then
41378     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41379   fi
41380 fi
41381 if test "x$USE_LIBSSH2" = "x1"; then
41382   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41383   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41384 fi
41385 if test "x$USE_LIBSSH" = "x1"; then
41386   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41387   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41388 fi
41389 if test "x$CURL_DISABLE_RTSP" != "x1"; then
41390   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41391 fi
41392 if test "x$USE_LIBRTMP" = "x1"; then
41393   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41394 fi
41395
41396 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41397
41398
41399
41400
41401 squeeze CFLAGS
41402 squeeze CPPFLAGS
41403 squeeze DEFS
41404 squeeze LDFLAGS
41405 squeeze LIBS
41406
41407 squeeze LIBCURL_LIBS
41408 squeeze CURL_NETWORK_LIBS
41409 squeeze CURL_NETWORK_AND_TIME_LIBS
41410
41411 squeeze SUPPORT_FEATURES
41412 squeeze SUPPORT_PROTOCOLS
41413
41414
41415
41416   xc_bad_var_libs=no
41417   for xc_word in $LIBS; do
41418     case "$xc_word" in
41419       -l* | --library=*)
41420         :
41421         ;;
41422       *)
41423         xc_bad_var_libs=yes
41424         ;;
41425     esac
41426   done
41427   if test $xc_bad_var_libs = yes; then
41428     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41429 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
41430     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41431 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41432   fi
41433
41434
41435   xc_bad_var_ldflags=no
41436   for xc_word in $LDFLAGS; do
41437     case "$xc_word" in
41438       -D*)
41439         xc_bad_var_ldflags=yes
41440         ;;
41441       -U*)
41442         xc_bad_var_ldflags=yes
41443         ;;
41444       -I*)
41445         xc_bad_var_ldflags=yes
41446         ;;
41447       -l* | --library=*)
41448         xc_bad_var_ldflags=yes
41449         ;;
41450     esac
41451   done
41452   if test $xc_bad_var_ldflags = yes; then
41453     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41454 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41455     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41456     for xc_word in $LDFLAGS; do
41457       case "$xc_word" in
41458         -D*)
41459           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41460 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41461           ;;
41462         -U*)
41463           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41464 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41465           ;;
41466         -I*)
41467           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41468 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41469           ;;
41470         -l* | --library=*)
41471           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41472 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41473           ;;
41474       esac
41475     done
41476   fi
41477
41478
41479   xc_bad_var_cppflags=no
41480   for xc_word in $CPPFLAGS; do
41481     case "$xc_word" in
41482       -rpath*)
41483         xc_bad_var_cppflags=yes
41484         ;;
41485       -L* | --library-path=*)
41486         xc_bad_var_cppflags=yes
41487         ;;
41488       -l* | --library=*)
41489         xc_bad_var_cppflags=yes
41490         ;;
41491     esac
41492   done
41493   if test $xc_bad_var_cppflags = yes; then
41494     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41495 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41496     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41497     for xc_word in $CPPFLAGS; do
41498       case "$xc_word" in
41499         -rpath*)
41500           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41501 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41502           ;;
41503         -L* | --library-path=*)
41504           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41505 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41506           ;;
41507         -l* | --library=*)
41508           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41509 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41510           ;;
41511       esac
41512     done
41513   fi
41514
41515
41516   xc_bad_var_cflags=no
41517   for xc_word in $CFLAGS; do
41518     case "$xc_word" in
41519       -D*)
41520         xc_bad_var_cflags=yes
41521         ;;
41522       -U*)
41523         xc_bad_var_cflags=yes
41524         ;;
41525       -I*)
41526         xc_bad_var_cflags=yes
41527         ;;
41528       -rpath*)
41529         xc_bad_var_cflags=yes
41530         ;;
41531       -L* | --library-path=*)
41532         xc_bad_var_cflags=yes
41533         ;;
41534       -l* | --library=*)
41535         xc_bad_var_cflags=yes
41536         ;;
41537     esac
41538   done
41539   if test $xc_bad_var_cflags = yes; then
41540     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41541 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41542     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41543     for xc_word in $CFLAGS; do
41544       case "$xc_word" in
41545         -D*)
41546           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41547 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41548           ;;
41549         -U*)
41550           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41551 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41552           ;;
41553         -I*)
41554           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41555 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41556           ;;
41557         -rpath*)
41558           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41559 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41560           ;;
41561         -L* | --library-path=*)
41562           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41563 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41564           ;;
41565         -l* | --library=*)
41566           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41567 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41568           ;;
41569       esac
41570     done
41571   fi
41572
41573   if test $xc_bad_var_libs = yes ||
41574      test $xc_bad_var_cflags = yes ||
41575      test $xc_bad_var_ldflags = yes ||
41576      test $xc_bad_var_cppflags = yes; then
41577      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41578 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41579   fi
41580
41581
41582 SSL_BACKENDS=${ssl_backends}
41583
41584
41585 if test "x$want_curldebug_assumed" = "xyes" &&
41586   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41587   ac_configure_args="$ac_configure_args --enable-curldebug"
41588 fi
41589
41590 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 tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
41591
41592 cat >confcache <<\_ACEOF
41593 # This file is a shell script that caches the results of configure
41594 # tests run on this system so they can be shared between configure
41595 # scripts and configure runs, see configure's option --config-cache.
41596 # It is not useful on other systems.  If it contains results you don't
41597 # want to keep, you may remove or edit it.
41598 #
41599 # config.status only pays attention to the cache file if you give it
41600 # the --recheck option to rerun configure.
41601 #
41602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41604 # following values.
41605
41606 _ACEOF
41607
41608 # The following way of writing the cache mishandles newlines in values,
41609 # but we know of no workaround that is simple, portable, and efficient.
41610 # So, we kill variables containing newlines.
41611 # Ultrix sh set writes to stderr and can't be redirected directly,
41612 # and sets the high bit in the cache file unless we assign to the vars.
41613 (
41614   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41615     eval ac_val=\$$ac_var
41616     case $ac_val in #(
41617     *${as_nl}*)
41618       case $ac_var in #(
41619       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41620 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41621       esac
41622       case $ac_var in #(
41623       _ | IFS | as_nl) ;; #(
41624       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41625       *) { eval $ac_var=; unset $ac_var;} ;;
41626       esac ;;
41627     esac
41628   done
41629
41630   (set) 2>&1 |
41631     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41632     *${as_nl}ac_space=\ *)
41633       # `set' does not quote correctly, so add quotes: double-quote
41634       # substitution turns \\\\ into \\, and sed turns \\ into \.
41635       sed -n \
41636         "s/'/'\\\\''/g;
41637           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41638       ;; #(
41639     *)
41640       # `set' quotes correctly as required by POSIX, so do not add quotes.
41641       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41642       ;;
41643     esac |
41644     sort
41645 ) |
41646   sed '
41647      /^ac_cv_env_/b end
41648      t clear
41649      :clear
41650      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41651      t end
41652      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41653      :end' >>confcache
41654 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41655   if test -w "$cache_file"; then
41656     if test "x$cache_file" != "x/dev/null"; then
41657       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41658 $as_echo "$as_me: updating cache $cache_file" >&6;}
41659       if test ! -f "$cache_file" || test -h "$cache_file"; then
41660         cat confcache >"$cache_file"
41661       else
41662         case $cache_file in #(
41663         */* | ?:*)
41664           mv -f confcache "$cache_file"$$ &&
41665           mv -f "$cache_file"$$ "$cache_file" ;; #(
41666         *)
41667           mv -f confcache "$cache_file" ;;
41668         esac
41669       fi
41670     fi
41671   else
41672     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41673 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41674   fi
41675 fi
41676 rm -f confcache
41677
41678 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41679 # Let make expand exec_prefix.
41680 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41681
41682 DEFS=-DHAVE_CONFIG_H
41683
41684 ac_libobjs=
41685 ac_ltlibobjs=
41686 U=
41687 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41688   # 1. Remove the extension, and $U if already installed.
41689   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41690   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41691   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41692   #    will be set to the directory where LIBOBJS objects are built.
41693   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41694   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41695 done
41696 LIBOBJS=$ac_libobjs
41697
41698 LTLIBOBJS=$ac_ltlibobjs
41699
41700
41701 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41702   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41704 fi
41705 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41706   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41708 fi
41709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41710 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41711    if test -n "$am_sleep_pid"; then
41712      # Hide warnings about reused PIDs.
41713      wait $am_sleep_pid 2>/dev/null
41714    fi
41715    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41716 $as_echo "done" >&6; }
41717 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41718   as_fn_error $? "conditional \"AMDEP\" was never defined.
41719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41720 fi
41721 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41722   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41724 fi
41725  if test -n "$EXEEXT"; then
41726   am__EXEEXT_TRUE=
41727   am__EXEEXT_FALSE='#'
41728 else
41729   am__EXEEXT_TRUE='#'
41730   am__EXEEXT_FALSE=
41731 fi
41732
41733 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41734   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41736 fi
41737 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41738   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41740 fi
41741 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41742   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41744 fi
41745 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41746   as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41748 fi
41749 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41750   as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41752 fi
41753 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41754   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41756 fi
41757 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41758   as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41760 fi
41761 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41762   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41764 fi
41765 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41766   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41768 fi
41769 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41770   as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41772 fi
41773 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41774   as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41776 fi
41777 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41778   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41780 fi
41781 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41782   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41784 fi
41785 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41786   as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41788 fi
41789 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41790   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41792 fi
41793 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41794   as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41796 fi
41797 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41798   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41800 fi
41801
41802 : "${CONFIG_STATUS=./config.status}"
41803 ac_write_fail=0
41804 ac_clean_files_save=$ac_clean_files
41805 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41806 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41807 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41808 as_write_fail=0
41809 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41810 #! $SHELL
41811 # Generated by $as_me.
41812 # Run this file to recreate the current configuration.
41813 # Compiler output produced by configure, useful for debugging
41814 # configure, is in config.log if it exists.
41815
41816 debug=false
41817 ac_cs_recheck=false
41818 ac_cs_silent=false
41819
41820 SHELL=\${CONFIG_SHELL-$SHELL}
41821 export SHELL
41822 _ASEOF
41823 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41824 ## -------------------- ##
41825 ## M4sh Initialization. ##
41826 ## -------------------- ##
41827
41828 # Be more Bourne compatible
41829 DUALCASE=1; export DUALCASE # for MKS sh
41830 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41831   emulate sh
41832   NULLCMD=:
41833   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41834   # is contrary to our usage.  Disable this feature.
41835   alias -g '${1+"$@"}'='"$@"'
41836   setopt NO_GLOB_SUBST
41837 else
41838   case `(set -o) 2>/dev/null` in #(
41839   *posix*) :
41840     set -o posix ;; #(
41841   *) :
41842      ;;
41843 esac
41844 fi
41845
41846
41847 as_nl='
41848 '
41849 export as_nl
41850 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41851 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41853 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41854 # Prefer a ksh shell builtin over an external printf program on Solaris,
41855 # but without wasting forks for bash or zsh.
41856 if test -z "$BASH_VERSION$ZSH_VERSION" \
41857     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41858   as_echo='print -r --'
41859   as_echo_n='print -rn --'
41860 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41861   as_echo='printf %s\n'
41862   as_echo_n='printf %s'
41863 else
41864   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41865     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41866     as_echo_n='/usr/ucb/echo -n'
41867   else
41868     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41869     as_echo_n_body='eval
41870       arg=$1;
41871       case $arg in #(
41872       *"$as_nl"*)
41873         expr "X$arg" : "X\\(.*\\)$as_nl";
41874         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41875       esac;
41876       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41877     '
41878     export as_echo_n_body
41879     as_echo_n='sh -c $as_echo_n_body as_echo'
41880   fi
41881   export as_echo_body
41882   as_echo='sh -c $as_echo_body as_echo'
41883 fi
41884
41885
41886
41887 # IFS
41888 # We need space, tab and new line, in precisely that order.  Quoting is
41889 # there to prevent editors from complaining about space-tab.
41890 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41891 # splitting by setting IFS to empty value.)
41892 IFS=" ""        $as_nl"
41893
41894 # Find who we are.  Look in the path if we contain no directory separator.
41895 as_myself=
41896 case $0 in #((
41897   *[\\/]* ) as_myself=$0 ;;
41898   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41899 for as_dir in $PATH
41900 do
41901   IFS=$as_save_IFS
41902   test -z "$as_dir" && as_dir=.
41903     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41904   done
41905 IFS=$as_save_IFS
41906
41907      ;;
41908 esac
41909 # We did not find ourselves, most probably we were run as `sh COMMAND'
41910 # in which case we are not to be found in the path.
41911 if test "x$as_myself" = x; then
41912   as_myself=$0
41913 fi
41914 if test ! -f "$as_myself"; then
41915   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41916   exit 1
41917 fi
41918
41919 # Unset variables that we do not need and which cause bugs (e.g. in
41920 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
41921 # suppresses any "Segmentation fault" message there.  '((' could
41922 # trigger a bug in pdksh 5.2.14.
41923 for as_var in BASH_ENV ENV MAIL MAILPATH
41924 do eval test x\${$as_var+set} = xset \
41925   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41926 done
41927 PS1='$ '
41928 PS2='> '
41929 PS4='+ '
41930
41931 # NLS nuisances.
41932 LC_ALL=C
41933 export LC_ALL
41934 LANGUAGE=C
41935 export LANGUAGE
41936
41937 # CDPATH.
41938 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41939
41940
41941 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41942 # ----------------------------------------
41943 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41944 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41945 # script with STATUS, using 1 if that was 0.
41946 as_fn_error ()
41947 {
41948   as_status=$1; test $as_status -eq 0 && as_status=1
41949   if test "$4"; then
41950     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41951     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41952   fi
41953   $as_echo "$as_me: error: $2" >&2
41954   as_fn_exit $as_status
41955 } # as_fn_error
41956
41957
41958 # as_fn_set_status STATUS
41959 # -----------------------
41960 # Set $? to STATUS, without forking.
41961 as_fn_set_status ()
41962 {
41963   return $1
41964 } # as_fn_set_status
41965
41966 # as_fn_exit STATUS
41967 # -----------------
41968 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41969 as_fn_exit ()
41970 {
41971   set +e
41972   as_fn_set_status $1
41973   exit $1
41974 } # as_fn_exit
41975
41976 # as_fn_unset VAR
41977 # ---------------
41978 # Portably unset VAR.
41979 as_fn_unset ()
41980 {
41981   { eval $1=; unset $1;}
41982 }
41983 as_unset=as_fn_unset
41984 # as_fn_append VAR VALUE
41985 # ----------------------
41986 # Append the text in VALUE to the end of the definition contained in VAR. Take
41987 # advantage of any shell optimizations that allow amortized linear growth over
41988 # repeated appends, instead of the typical quadratic growth present in naive
41989 # implementations.
41990 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41991   eval 'as_fn_append ()
41992   {
41993     eval $1+=\$2
41994   }'
41995 else
41996   as_fn_append ()
41997   {
41998     eval $1=\$$1\$2
41999   }
42000 fi # as_fn_append
42001
42002 # as_fn_arith ARG...
42003 # ------------------
42004 # Perform arithmetic evaluation on the ARGs, and store the result in the
42005 # global $as_val. Take advantage of shells that can avoid forks. The arguments
42006 # must be portable across $(()) and expr.
42007 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
42008   eval 'as_fn_arith ()
42009   {
42010     as_val=$(( $* ))
42011   }'
42012 else
42013   as_fn_arith ()
42014   {
42015     as_val=`expr "$@" || test $? -eq 1`
42016   }
42017 fi # as_fn_arith
42018
42019
42020 if expr a : '\(a\)' >/dev/null 2>&1 &&
42021    test "X`expr 00001 : '.*\(...\)'`" = X001; then
42022   as_expr=expr
42023 else
42024   as_expr=false
42025 fi
42026
42027 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42028   as_basename=basename
42029 else
42030   as_basename=false
42031 fi
42032
42033 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42034   as_dirname=dirname
42035 else
42036   as_dirname=false
42037 fi
42038
42039 as_me=`$as_basename -- "$0" ||
42040 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42041          X"$0" : 'X\(//\)$' \| \
42042          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42043 $as_echo X/"$0" |
42044     sed '/^.*\/\([^/][^/]*\)\/*$/{
42045             s//\1/
42046             q
42047           }
42048           /^X\/\(\/\/\)$/{
42049             s//\1/
42050             q
42051           }
42052           /^X\/\(\/\).*/{
42053             s//\1/
42054             q
42055           }
42056           s/.*/./; q'`
42057
42058 # Avoid depending upon Character Ranges.
42059 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42060 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42061 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42062 as_cr_digits='0123456789'
42063 as_cr_alnum=$as_cr_Letters$as_cr_digits
42064
42065 ECHO_C= ECHO_N= ECHO_T=
42066 case `echo -n x` in #(((((
42067 -n*)
42068   case `echo 'xy\c'` in
42069   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
42070   xy)  ECHO_C='\c';;
42071   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
42072        ECHO_T=' ';;
42073   esac;;
42074 *)
42075   ECHO_N='-n';;
42076 esac
42077
42078 rm -f conf$$ conf$$.exe conf$$.file
42079 if test -d conf$$.dir; then
42080   rm -f conf$$.dir/conf$$.file
42081 else
42082   rm -f conf$$.dir
42083   mkdir conf$$.dir 2>/dev/null
42084 fi
42085 if (echo >conf$$.file) 2>/dev/null; then
42086   if ln -s conf$$.file conf$$ 2>/dev/null; then
42087     as_ln_s='ln -s'
42088     # ... but there are two gotchas:
42089     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42090     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42091     # In both cases, we have to default to `cp -pR'.
42092     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42093       as_ln_s='cp -pR'
42094   elif ln conf$$.file conf$$ 2>/dev/null; then
42095     as_ln_s=ln
42096   else
42097     as_ln_s='cp -pR'
42098   fi
42099 else
42100   as_ln_s='cp -pR'
42101 fi
42102 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42103 rmdir conf$$.dir 2>/dev/null
42104
42105
42106 # as_fn_mkdir_p
42107 # -------------
42108 # Create "$as_dir" as a directory, including parents if necessary.
42109 as_fn_mkdir_p ()
42110 {
42111
42112   case $as_dir in #(
42113   -*) as_dir=./$as_dir;;
42114   esac
42115   test -d "$as_dir" || eval $as_mkdir_p || {
42116     as_dirs=
42117     while :; do
42118       case $as_dir in #(
42119       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42120       *) as_qdir=$as_dir;;
42121       esac
42122       as_dirs="'$as_qdir' $as_dirs"
42123       as_dir=`$as_dirname -- "$as_dir" ||
42124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42125          X"$as_dir" : 'X\(//\)[^/]' \| \
42126          X"$as_dir" : 'X\(//\)$' \| \
42127          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42128 $as_echo X"$as_dir" |
42129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42130             s//\1/
42131             q
42132           }
42133           /^X\(\/\/\)[^/].*/{
42134             s//\1/
42135             q
42136           }
42137           /^X\(\/\/\)$/{
42138             s//\1/
42139             q
42140           }
42141           /^X\(\/\).*/{
42142             s//\1/
42143             q
42144           }
42145           s/.*/./; q'`
42146       test -d "$as_dir" && break
42147     done
42148     test -z "$as_dirs" || eval "mkdir $as_dirs"
42149   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42150
42151
42152 } # as_fn_mkdir_p
42153 if mkdir -p . 2>/dev/null; then
42154   as_mkdir_p='mkdir -p "$as_dir"'
42155 else
42156   test -d ./-p && rmdir ./-p
42157   as_mkdir_p=false
42158 fi
42159
42160
42161 # as_fn_executable_p FILE
42162 # -----------------------
42163 # Test if FILE is an executable regular file.
42164 as_fn_executable_p ()
42165 {
42166   test -f "$1" && test -x "$1"
42167 } # as_fn_executable_p
42168 as_test_x='test -x'
42169 as_executable_p=as_fn_executable_p
42170
42171 # Sed expression to map a string onto a valid CPP name.
42172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42173
42174 # Sed expression to map a string onto a valid variable name.
42175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42176
42177
42178 exec 6>&1
42179 ## ----------------------------------- ##
42180 ## Main body of $CONFIG_STATUS script. ##
42181 ## ----------------------------------- ##
42182 _ASEOF
42183 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42184
42185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42186 # Save the log message, to keep $0 and so on meaningful, and to
42187 # report actual input values of CONFIG_FILES etc. instead of their
42188 # values after options handling.
42189 ac_log="
42190 This file was extended by curl $as_me -, which was
42191 generated by GNU Autoconf 2.69.  Invocation command line was
42192
42193   CONFIG_FILES    = $CONFIG_FILES
42194   CONFIG_HEADERS  = $CONFIG_HEADERS
42195   CONFIG_LINKS    = $CONFIG_LINKS
42196   CONFIG_COMMANDS = $CONFIG_COMMANDS
42197   $ $0 $@
42198
42199 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42200 "
42201
42202 _ACEOF
42203
42204 case $ac_config_files in *"
42205 "*) set x $ac_config_files; shift; ac_config_files=$*;;
42206 esac
42207
42208 case $ac_config_headers in *"
42209 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42210 esac
42211
42212
42213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42214 # Files that config.status was made for.
42215 config_files="$ac_config_files"
42216 config_headers="$ac_config_headers"
42217 config_commands="$ac_config_commands"
42218
42219 _ACEOF
42220
42221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42222 ac_cs_usage="\
42223 \`$as_me' instantiates files and other configuration actions
42224 from templates according to the current configuration.  Unless the files
42225 and actions are specified as TAGs, all are instantiated by default.
42226
42227 Usage: $0 [OPTION]... [TAG]...
42228
42229   -h, --help       print this help, then exit
42230   -V, --version    print version number and configuration settings, then exit
42231       --config     print configuration, then exit
42232   -q, --quiet, --silent
42233                    do not print progress messages
42234   -d, --debug      don't remove temporary files
42235       --recheck    update $as_me by reconfiguring in the same conditions
42236       --file=FILE[:TEMPLATE]
42237                    instantiate the configuration file FILE
42238       --header=FILE[:TEMPLATE]
42239                    instantiate the configuration header FILE
42240
42241 Configuration files:
42242 $config_files
42243
42244 Configuration headers:
42245 $config_headers
42246
42247 Configuration commands:
42248 $config_commands
42249
42250 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42251
42252 _ACEOF
42253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42254 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42255 ac_cs_version="\\
42256 curl config.status -
42257 configured by $0, generated by GNU Autoconf 2.69,
42258   with options \\"\$ac_cs_config\\"
42259
42260 Copyright (C) 2012 Free Software Foundation, Inc.
42261 This config.status script is free software; the Free Software Foundation
42262 gives unlimited permission to copy, distribute and modify it."
42263
42264 ac_pwd='$ac_pwd'
42265 srcdir='$srcdir'
42266 INSTALL='$INSTALL'
42267 MKDIR_P='$MKDIR_P'
42268 AWK='$AWK'
42269 test -n "\$AWK" || AWK=awk
42270 _ACEOF
42271
42272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42273 # The default lists apply if the user does not specify any file.
42274 ac_need_defaults=:
42275 while test $# != 0
42276 do
42277   case $1 in
42278   --*=?*)
42279     ac_option=`expr "X$1" : 'X\([^=]*\)='`
42280     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42281     ac_shift=:
42282     ;;
42283   --*=)
42284     ac_option=`expr "X$1" : 'X\([^=]*\)='`
42285     ac_optarg=
42286     ac_shift=:
42287     ;;
42288   *)
42289     ac_option=$1
42290     ac_optarg=$2
42291     ac_shift=shift
42292     ;;
42293   esac
42294
42295   case $ac_option in
42296   # Handling of the options.
42297   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42298     ac_cs_recheck=: ;;
42299   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42300     $as_echo "$ac_cs_version"; exit ;;
42301   --config | --confi | --conf | --con | --co | --c )
42302     $as_echo "$ac_cs_config"; exit ;;
42303   --debug | --debu | --deb | --de | --d | -d )
42304     debug=: ;;
42305   --file | --fil | --fi | --f )
42306     $ac_shift
42307     case $ac_optarg in
42308     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42309     '') as_fn_error $? "missing file argument" ;;
42310     esac
42311     as_fn_append CONFIG_FILES " '$ac_optarg'"
42312     ac_need_defaults=false;;
42313   --header | --heade | --head | --hea )
42314     $ac_shift
42315     case $ac_optarg in
42316     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42317     esac
42318     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42319     ac_need_defaults=false;;
42320   --he | --h)
42321     # Conflict between --help and --header
42322     as_fn_error $? "ambiguous option: \`$1'
42323 Try \`$0 --help' for more information.";;
42324   --help | --hel | -h )
42325     $as_echo "$ac_cs_usage"; exit ;;
42326   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42327   | -silent | --silent | --silen | --sile | --sil | --si | --s)
42328     ac_cs_silent=: ;;
42329
42330   # This is an error.
42331   -*) as_fn_error $? "unrecognized option: \`$1'
42332 Try \`$0 --help' for more information." ;;
42333
42334   *) as_fn_append ac_config_targets " $1"
42335      ac_need_defaults=false ;;
42336
42337   esac
42338   shift
42339 done
42340
42341 ac_configure_extra_args=
42342
42343 if $ac_cs_silent; then
42344   exec 6>/dev/null
42345   ac_configure_extra_args="$ac_configure_extra_args --silent"
42346 fi
42347
42348 _ACEOF
42349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42350 if \$ac_cs_recheck; then
42351   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42352   shift
42353   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42354   CONFIG_SHELL='$SHELL'
42355   export CONFIG_SHELL
42356   exec "\$@"
42357 fi
42358
42359 _ACEOF
42360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42361 exec 5>>config.log
42362 {
42363   echo
42364   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42365 ## Running $as_me. ##
42366 _ASBOX
42367   $as_echo "$ac_log"
42368 } >&5
42369
42370 _ACEOF
42371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42372 #
42373 # INIT-COMMANDS
42374 #
42375 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
42376
42377
42378 # The HP-UX ksh and POSIX shell print the target directory to stdout
42379 # if CDPATH is set.
42380 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42381
42382 sed_quote_subst='$sed_quote_subst'
42383 double_quote_subst='$double_quote_subst'
42384 delay_variable_subst='$delay_variable_subst'
42385 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42386 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42387 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42388 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42389 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42390 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42391 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42392 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42393 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42394 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42395 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42396 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42397 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42398 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42399 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42400 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42401 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42402 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42403 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42404 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42405 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42406 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42407 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42408 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42409 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42410 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42411 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42412 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42413 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42414 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42415 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42416 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42417 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42418 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42419 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42420 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42421 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42422 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42423 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42424 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42425 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42426 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42427 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42428 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42429 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42430 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42431 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42432 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42433 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42434 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42435 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42436 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42437 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42438 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42439 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42440 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42441 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42442 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42443 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42444 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"`'
42445 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42446 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42447 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42448 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42449 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42450 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42451 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42452 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42453 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42454 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42455 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42456 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42457 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42458 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42459 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42460 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42461 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42462 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42463 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42464 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42465 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42466 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42467 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42468 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42469 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42470 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42471 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42472 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42473 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42474 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42475 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42476 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42477 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42478 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42479 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42480 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42481 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42482 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42483 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42484 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42485 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42486 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42487 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42488 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42489 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42490 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42491 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42492 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42493 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42494 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42495 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42496 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42497 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42498 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42499 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42500 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42501 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42502 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42503 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42504 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42505 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42506 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42507 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42508 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42509 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42510 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42511 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42512 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42513 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42514 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42515 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42516 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42517 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42518 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42519 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42520 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42521
42522 LTCC='$LTCC'
42523 LTCFLAGS='$LTCFLAGS'
42524 compiler='$compiler_DEFAULT'
42525
42526 # A function that is used when there is no print builtin or printf.
42527 func_fallback_echo ()
42528 {
42529   eval 'cat <<_LTECHO_EOF
42530 \$1
42531 _LTECHO_EOF'
42532 }
42533
42534 # Quote evaled strings.
42535 for var in AS \
42536 DLLTOOL \
42537 OBJDUMP \
42538 SHELL \
42539 ECHO \
42540 PATH_SEPARATOR \
42541 SED \
42542 GREP \
42543 EGREP \
42544 FGREP \
42545 LD \
42546 NM \
42547 LN_S \
42548 lt_SP2NL \
42549 lt_NL2SP \
42550 reload_flag \
42551 deplibs_check_method \
42552 file_magic_cmd \
42553 file_magic_glob \
42554 want_nocaseglob \
42555 sharedlib_from_linklib_cmd \
42556 AR \
42557 AR_FLAGS \
42558 archiver_list_spec \
42559 STRIP \
42560 RANLIB \
42561 CC \
42562 CFLAGS \
42563 compiler \
42564 lt_cv_sys_global_symbol_pipe \
42565 lt_cv_sys_global_symbol_to_cdecl \
42566 lt_cv_sys_global_symbol_to_import \
42567 lt_cv_sys_global_symbol_to_c_name_address \
42568 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42569 lt_cv_nm_interface \
42570 nm_file_list_spec \
42571 lt_cv_truncate_bin \
42572 lt_prog_compiler_no_builtin_flag \
42573 lt_prog_compiler_pic \
42574 lt_prog_compiler_wl \
42575 lt_prog_compiler_static \
42576 lt_cv_prog_compiler_c_o \
42577 need_locks \
42578 MANIFEST_TOOL \
42579 DSYMUTIL \
42580 NMEDIT \
42581 LIPO \
42582 OTOOL \
42583 OTOOL64 \
42584 shrext_cmds \
42585 export_dynamic_flag_spec \
42586 whole_archive_flag_spec \
42587 compiler_needs_object \
42588 with_gnu_ld \
42589 allow_undefined_flag \
42590 no_undefined_flag \
42591 hardcode_libdir_flag_spec \
42592 hardcode_libdir_separator \
42593 exclude_expsyms \
42594 include_expsyms \
42595 file_list_spec \
42596 variables_saved_for_relink \
42597 libname_spec \
42598 library_names_spec \
42599 soname_spec \
42600 install_override_mode \
42601 finish_eval \
42602 old_striplib \
42603 striplib; do
42604     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42605     *[\\\\\\\`\\"\\\$]*)
42606       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42607       ;;
42608     *)
42609       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42610       ;;
42611     esac
42612 done
42613
42614 # Double-quote double-evaled strings.
42615 for var in reload_cmds \
42616 old_postinstall_cmds \
42617 old_postuninstall_cmds \
42618 old_archive_cmds \
42619 extract_expsyms_cmds \
42620 old_archive_from_new_cmds \
42621 old_archive_from_expsyms_cmds \
42622 archive_cmds \
42623 archive_expsym_cmds \
42624 module_cmds \
42625 module_expsym_cmds \
42626 export_symbols_cmds \
42627 prelink_cmds \
42628 postlink_cmds \
42629 postinstall_cmds \
42630 postuninstall_cmds \
42631 finish_cmds \
42632 sys_lib_search_path_spec \
42633 configure_time_dlsearch_path \
42634 configure_time_lt_sys_library_path; do
42635     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42636     *[\\\\\\\`\\"\\\$]*)
42637       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42638       ;;
42639     *)
42640       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42641       ;;
42642     esac
42643 done
42644
42645 ac_aux_dir='$ac_aux_dir'
42646
42647 # See if we are running on zsh, and set the options that allow our
42648 # commands through without removal of \ escapes INIT.
42649 if test -n "\${ZSH_VERSION+set}"; then
42650    setopt NO_GLOB_SUBST
42651 fi
42652
42653
42654     PACKAGE='$PACKAGE'
42655     VERSION='$VERSION'
42656     RM='$RM'
42657     ofile='$ofile'
42658
42659
42660
42661
42662 _ACEOF
42663
42664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42665
42666 # Handling of arguments.
42667 for ac_config_target in $ac_config_targets
42668 do
42669   case $ac_config_target in
42670     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42671     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42672     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42673     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42674     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42675     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42676     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42677     "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42678     "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42679     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42680     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42681     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42682     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42683     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42684     "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42685     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42686     "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42687     "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42688     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42689     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42690     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42691     "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
42692     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42693     "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42694     "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42695     "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42696     "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42697     "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42698     "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42699     "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42700     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42701     "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42702     "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42703     "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42704     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42705     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42706
42707   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42708   esac
42709 done
42710
42711
42712 # If the user did not use the arguments to specify the items to instantiate,
42713 # then the envvar interface is used.  Set only those that are not.
42714 # We use the long form for the default assignment because of an extremely
42715 # bizarre bug on SunOS 4.1.3.
42716 if $ac_need_defaults; then
42717   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42718   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42719   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42720 fi
42721
42722 # Have a temporary directory for convenience.  Make it in the build tree
42723 # simply because there is no reason against having it here, and in addition,
42724 # creating and moving files from /tmp can sometimes cause problems.
42725 # Hook for its removal unless debugging.
42726 # Note that there is a small window in which the directory will not be cleaned:
42727 # after its creation but before its name has been assigned to `$tmp'.
42728 $debug ||
42729 {
42730   tmp= ac_tmp=
42731   trap 'exit_status=$?
42732   : "${ac_tmp:=$tmp}"
42733   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42734 ' 0
42735   trap 'as_fn_exit 1' 1 2 13 15
42736 }
42737 # Create a (secure) tmp directory for tmp files.
42738
42739 {
42740   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42741   test -d "$tmp"
42742 }  ||
42743 {
42744   tmp=./conf$$-$RANDOM
42745   (umask 077 && mkdir "$tmp")
42746 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42747 ac_tmp=$tmp
42748
42749 # Set up the scripts for CONFIG_FILES section.
42750 # No need to generate them if there are no CONFIG_FILES.
42751 # This happens for instance with `./config.status config.h'.
42752 if test -n "$CONFIG_FILES"; then
42753
42754
42755 ac_cr=`echo X | tr X '\015'`
42756 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42757 # But we know of no other shell where ac_cr would be empty at this
42758 # point, so we can use a bashism as a fallback.
42759 if test "x$ac_cr" = x; then
42760   eval ac_cr=\$\'\\r\'
42761 fi
42762 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42763 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42764   ac_cs_awk_cr='\\r'
42765 else
42766   ac_cs_awk_cr=$ac_cr
42767 fi
42768
42769 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42770 _ACEOF
42771
42772
42773 {
42774   echo "cat >conf$$subs.awk <<_ACEOF" &&
42775   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42776   echo "_ACEOF"
42777 } >conf$$subs.sh ||
42778   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42779 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42780 ac_delim='%!_!# '
42781 for ac_last_try in false false false false false :; do
42782   . ./conf$$subs.sh ||
42783     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42784
42785   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42786   if test $ac_delim_n = $ac_delim_num; then
42787     break
42788   elif $ac_last_try; then
42789     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42790   else
42791     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42792   fi
42793 done
42794 rm -f conf$$subs.sh
42795
42796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42797 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42798 _ACEOF
42799 sed -n '
42800 h
42801 s/^/S["/; s/!.*/"]=/
42802 p
42803 g
42804 s/^[^!]*!//
42805 :repl
42806 t repl
42807 s/'"$ac_delim"'$//
42808 t delim
42809 :nl
42810 h
42811 s/\(.\{148\}\)..*/\1/
42812 t more1
42813 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42814 p
42815 n
42816 b repl
42817 :more1
42818 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42819 p
42820 g
42821 s/.\{148\}//
42822 t nl
42823 :delim
42824 h
42825 s/\(.\{148\}\)..*/\1/
42826 t more2
42827 s/["\\]/\\&/g; s/^/"/; s/$/"/
42828 p
42829 b
42830 :more2
42831 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42832 p
42833 g
42834 s/.\{148\}//
42835 t delim
42836 ' <conf$$subs.awk | sed '
42837 /^[^""]/{
42838   N
42839   s/\n//
42840 }
42841 ' >>$CONFIG_STATUS || ac_write_fail=1
42842 rm -f conf$$subs.awk
42843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42844 _ACAWK
42845 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42846   for (key in S) S_is_set[key] = 1
42847   FS = "\a"
42848
42849 }
42850 {
42851   line = $ 0
42852   nfields = split(line, field, "@")
42853   substed = 0
42854   len = length(field[1])
42855   for (i = 2; i < nfields; i++) {
42856     key = field[i]
42857     keylen = length(key)
42858     if (S_is_set[key]) {
42859       value = S[key]
42860       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42861       len += length(value) + length(field[++i])
42862       substed = 1
42863     } else
42864       len += 1 + keylen
42865   }
42866
42867   print line
42868 }
42869
42870 _ACAWK
42871 _ACEOF
42872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42873 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42874   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42875 else
42876   cat
42877 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42878   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42879 _ACEOF
42880
42881 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42882 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42883 # trailing colons and then remove the whole line if VPATH becomes empty
42884 # (actually we leave an empty line to preserve line numbers).
42885 if test "x$srcdir" = x.; then
42886   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
42887 h
42888 s///
42889 s/^/:/
42890 s/[      ]*$/:/
42891 s/:\$(srcdir):/:/g
42892 s/:\${srcdir}:/:/g
42893 s/:@srcdir@:/:/g
42894 s/^:*//
42895 s/:*$//
42896 x
42897 s/\(=[   ]*\).*/\1/
42898 G
42899 s/\n//
42900 s/^[^=]*=[       ]*$//
42901 }'
42902 fi
42903
42904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42905 fi # test -n "$CONFIG_FILES"
42906
42907 # Set up the scripts for CONFIG_HEADERS section.
42908 # No need to generate them if there are no CONFIG_HEADERS.
42909 # This happens for instance with `./config.status Makefile'.
42910 if test -n "$CONFIG_HEADERS"; then
42911 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42912 BEGIN {
42913 _ACEOF
42914
42915 # Transform confdefs.h into an awk script `defines.awk', embedded as
42916 # here-document in config.status, that substitutes the proper values into
42917 # config.h.in to produce config.h.
42918
42919 # Create a delimiter string that does not exist in confdefs.h, to ease
42920 # handling of long lines.
42921 ac_delim='%!_!# '
42922 for ac_last_try in false false :; do
42923   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42924   if test -z "$ac_tt"; then
42925     break
42926   elif $ac_last_try; then
42927     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42928   else
42929     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42930   fi
42931 done
42932
42933 # For the awk script, D is an array of macro values keyed by name,
42934 # likewise P contains macro parameters if any.  Preserve backslash
42935 # newline sequences.
42936
42937 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42938 sed -n '
42939 s/.\{148\}/&'"$ac_delim"'/g
42940 t rset
42941 :rset
42942 s/^[     ]*#[    ]*define[       ][      ]*/ /
42943 t def
42944 d
42945 :def
42946 s/\\$//
42947 t bsnl
42948 s/["\\]/\\&/g
42949 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
42950 D["\1"]=" \3"/p
42951 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
42952 d
42953 :bsnl
42954 s/["\\]/\\&/g
42955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
42956 D["\1"]=" \3\\\\\\n"\\/p
42957 t cont
42958 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42959 t cont
42960 d
42961 :cont
42962 n
42963 s/.\{148\}/&'"$ac_delim"'/g
42964 t clear
42965 :clear
42966 s/\\$//
42967 t bsnlc
42968 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42969 d
42970 :bsnlc
42971 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42972 b cont
42973 ' <confdefs.h | sed '
42974 s/'"$ac_delim"'/"\\\
42975 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42976
42977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42978   for (key in D) D_is_set[key] = 1
42979   FS = "\a"
42980 }
42981 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42982   line = \$ 0
42983   split(line, arg, " ")
42984   if (arg[1] == "#") {
42985     defundef = arg[2]
42986     mac1 = arg[3]
42987   } else {
42988     defundef = substr(arg[1], 2)
42989     mac1 = arg[2]
42990   }
42991   split(mac1, mac2, "(") #)
42992   macro = mac2[1]
42993   prefix = substr(line, 1, index(line, defundef) - 1)
42994   if (D_is_set[macro]) {
42995     # Preserve the white space surrounding the "#".
42996     print prefix "define", macro P[macro] D[macro]
42997     next
42998   } else {
42999     # Replace #undef with comments.  This is necessary, for example,
43000     # in the case of _POSIX_SOURCE, which is predefined and required
43001     # on some systems where configure will not decide to define it.
43002     if (defundef == "undef") {
43003       print "/*", prefix defundef, macro, "*/"
43004       next
43005     }
43006   }
43007 }
43008 { print }
43009 _ACAWK
43010 _ACEOF
43011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43012   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
43013 fi # test -n "$CONFIG_HEADERS"
43014
43015
43016 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
43017 shift
43018 for ac_tag
43019 do
43020   case $ac_tag in
43021   :[FHLC]) ac_mode=$ac_tag; continue;;
43022   esac
43023   case $ac_mode$ac_tag in
43024   :[FHL]*:*);;
43025   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
43026   :[FH]-) ac_tag=-:-;;
43027   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43028   esac
43029   ac_save_IFS=$IFS
43030   IFS=:
43031   set x $ac_tag
43032   IFS=$ac_save_IFS
43033   shift
43034   ac_file=$1
43035   shift
43036
43037   case $ac_mode in
43038   :L) ac_source=$1;;
43039   :[FH])
43040     ac_file_inputs=
43041     for ac_f
43042     do
43043       case $ac_f in
43044       -) ac_f="$ac_tmp/stdin";;
43045       *) # Look for the file first in the build tree, then in the source tree
43046          # (if the path is not absolute).  The absolute path cannot be DOS-style,
43047          # because $ac_f cannot contain `:'.
43048          test -f "$ac_f" ||
43049            case $ac_f in
43050            [\\/$]*) false;;
43051            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43052            esac ||
43053            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
43054       esac
43055       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
43056       as_fn_append ac_file_inputs " '$ac_f'"
43057     done
43058
43059     # Let's still pretend it is `configure' which instantiates (i.e., don't
43060     # use $as_me), people would be surprised to read:
43061     #    /* config.h.  Generated by config.status.  */
43062     configure_input='Generated from '`
43063           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
43064         `' by configure.'
43065     if test x"$ac_file" != x-; then
43066       configure_input="$ac_file.  $configure_input"
43067       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
43068 $as_echo "$as_me: creating $ac_file" >&6;}
43069     fi
43070     # Neutralize special characters interpreted by sed in replacement strings.
43071     case $configure_input in #(
43072     *\&* | *\|* | *\\* )
43073        ac_sed_conf_input=`$as_echo "$configure_input" |
43074        sed 's/[\\\\&|]/\\\\&/g'`;; #(
43075     *) ac_sed_conf_input=$configure_input;;
43076     esac
43077
43078     case $ac_tag in
43079     *:-:* | *:-) cat >"$ac_tmp/stdin" \
43080       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
43081     esac
43082     ;;
43083   esac
43084
43085   ac_dir=`$as_dirname -- "$ac_file" ||
43086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43087          X"$ac_file" : 'X\(//\)[^/]' \| \
43088          X"$ac_file" : 'X\(//\)$' \| \
43089          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43090 $as_echo X"$ac_file" |
43091     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43092             s//\1/
43093             q
43094           }
43095           /^X\(\/\/\)[^/].*/{
43096             s//\1/
43097             q
43098           }
43099           /^X\(\/\/\)$/{
43100             s//\1/
43101             q
43102           }
43103           /^X\(\/\).*/{
43104             s//\1/
43105             q
43106           }
43107           s/.*/./; q'`
43108   as_dir="$ac_dir"; as_fn_mkdir_p
43109   ac_builddir=.
43110
43111 case "$ac_dir" in
43112 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43113 *)
43114   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43115   # A ".." for each directory in $ac_dir_suffix.
43116   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43117   case $ac_top_builddir_sub in
43118   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43119   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43120   esac ;;
43121 esac
43122 ac_abs_top_builddir=$ac_pwd
43123 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43124 # for backward compatibility:
43125 ac_top_builddir=$ac_top_build_prefix
43126
43127 case $srcdir in
43128   .)  # We are building in place.
43129     ac_srcdir=.
43130     ac_top_srcdir=$ac_top_builddir_sub
43131     ac_abs_top_srcdir=$ac_pwd ;;
43132   [\\/]* | ?:[\\/]* )  # Absolute name.
43133     ac_srcdir=$srcdir$ac_dir_suffix;
43134     ac_top_srcdir=$srcdir
43135     ac_abs_top_srcdir=$srcdir ;;
43136   *) # Relative name.
43137     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43138     ac_top_srcdir=$ac_top_build_prefix$srcdir
43139     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43140 esac
43141 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43142
43143
43144   case $ac_mode in
43145   :F)
43146   #
43147   # CONFIG_FILE
43148   #
43149
43150   case $INSTALL in
43151   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43152   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43153   esac
43154   ac_MKDIR_P=$MKDIR_P
43155   case $MKDIR_P in
43156   [\\/$]* | ?:[\\/]* ) ;;
43157   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43158   esac
43159 _ACEOF
43160
43161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43162 # If the template does not know about datarootdir, expand it.
43163 # FIXME: This hack should be removed a few years after 2.60.
43164 ac_datarootdir_hack=; ac_datarootdir_seen=
43165 ac_sed_dataroot='
43166 /datarootdir/ {
43167   p
43168   q
43169 }
43170 /@datadir@/p
43171 /@docdir@/p
43172 /@infodir@/p
43173 /@localedir@/p
43174 /@mandir@/p'
43175 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43176 *datarootdir*) ac_datarootdir_seen=yes;;
43177 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43178   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43179 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43180 _ACEOF
43181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43182   ac_datarootdir_hack='
43183   s&@datadir@&$datadir&g
43184   s&@docdir@&$docdir&g
43185   s&@infodir@&$infodir&g
43186   s&@localedir@&$localedir&g
43187   s&@mandir@&$mandir&g
43188   s&\\\${datarootdir}&$datarootdir&g' ;;
43189 esac
43190 _ACEOF
43191
43192 # Neutralize VPATH when `$srcdir' = `.'.
43193 # Shell code in configure.ac might set extrasub.
43194 # FIXME: do we really want to maintain this feature?
43195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43196 ac_sed_extra="$ac_vpsub
43197 $extrasub
43198 _ACEOF
43199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43200 :t
43201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43202 s|@configure_input@|$ac_sed_conf_input|;t t
43203 s&@top_builddir@&$ac_top_builddir_sub&;t t
43204 s&@top_build_prefix@&$ac_top_build_prefix&;t t
43205 s&@srcdir@&$ac_srcdir&;t t
43206 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43207 s&@top_srcdir@&$ac_top_srcdir&;t t
43208 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43209 s&@builddir@&$ac_builddir&;t t
43210 s&@abs_builddir@&$ac_abs_builddir&;t t
43211 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43212 s&@INSTALL@&$ac_INSTALL&;t t
43213 s&@MKDIR_P@&$ac_MKDIR_P&;t t
43214 $ac_datarootdir_hack
43215 "
43216 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43217   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43218
43219 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43220   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43221   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
43222       "$ac_tmp/out"`; test -z "$ac_out"; } &&
43223   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43224 which seems to be undefined.  Please make sure it is defined" >&5
43225 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43226 which seems to be undefined.  Please make sure it is defined" >&2;}
43227
43228   rm -f "$ac_tmp/stdin"
43229   case $ac_file in
43230   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43231   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43232   esac \
43233   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43234  ;;
43235   :H)
43236   #
43237   # CONFIG_HEADER
43238   #
43239   if test x"$ac_file" != x-; then
43240     {
43241       $as_echo "/* $configure_input  */" \
43242       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43243     } >"$ac_tmp/config.h" \
43244       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43245     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43246       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43247 $as_echo "$as_me: $ac_file is unchanged" >&6;}
43248     else
43249       rm -f "$ac_file"
43250       mv "$ac_tmp/config.h" "$ac_file" \
43251         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43252     fi
43253   else
43254     $as_echo "/* $configure_input  */" \
43255       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43256       || as_fn_error $? "could not create -" "$LINENO" 5
43257   fi
43258 # Compute "$ac_file"'s index in $config_headers.
43259 _am_arg="$ac_file"
43260 _am_stamp_count=1
43261 for _am_header in $config_headers :; do
43262   case $_am_header in
43263     $_am_arg | $_am_arg:* )
43264       break ;;
43265     * )
43266       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43267   esac
43268 done
43269 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43270 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43271          X"$_am_arg" : 'X\(//\)[^/]' \| \
43272          X"$_am_arg" : 'X\(//\)$' \| \
43273          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43274 $as_echo X"$_am_arg" |
43275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43276             s//\1/
43277             q
43278           }
43279           /^X\(\/\/\)[^/].*/{
43280             s//\1/
43281             q
43282           }
43283           /^X\(\/\/\)$/{
43284             s//\1/
43285             q
43286           }
43287           /^X\(\/\).*/{
43288             s//\1/
43289             q
43290           }
43291           s/.*/./; q'`/stamp-h$_am_stamp_count
43292  ;;
43293
43294   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43295 $as_echo "$as_me: executing $ac_file commands" >&6;}
43296  ;;
43297   esac
43298
43299
43300   case $ac_file$ac_mode in
43301     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43302   # Older Autoconf quotes --file arguments for eval, but not when files
43303   # are listed without --file.  Let's play safe and only enable the eval
43304   # if we detect the quoting.
43305   # TODO: see whether this extra hack can be removed once we start
43306   # requiring Autoconf 2.70 or later.
43307   case $CONFIG_FILES in #(
43308   *\'*) :
43309     eval set x "$CONFIG_FILES" ;; #(
43310   *) :
43311     set x $CONFIG_FILES ;; #(
43312   *) :
43313      ;;
43314 esac
43315   shift
43316   # Used to flag and report bootstrapping failures.
43317   am_rc=0
43318   for am_mf
43319   do
43320     # Strip MF so we end up with the name of the file.
43321     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
43322     # Check whether this is an Automake generated Makefile which includes
43323     # dependency-tracking related rules and includes.
43324     # Grep'ing the whole file directly is not great: AIX grep has a line
43325     # limit of 2048, but all sed's we know have understand at least 4000.
43326     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
43327       || continue
43328     am_dirpart=`$as_dirname -- "$am_mf" ||
43329 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43330          X"$am_mf" : 'X\(//\)[^/]' \| \
43331          X"$am_mf" : 'X\(//\)$' \| \
43332          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
43333 $as_echo X"$am_mf" |
43334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43335             s//\1/
43336             q
43337           }
43338           /^X\(\/\/\)[^/].*/{
43339             s//\1/
43340             q
43341           }
43342           /^X\(\/\/\)$/{
43343             s//\1/
43344             q
43345           }
43346           /^X\(\/\).*/{
43347             s//\1/
43348             q
43349           }
43350           s/.*/./; q'`
43351     am_filepart=`$as_basename -- "$am_mf" ||
43352 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
43353          X"$am_mf" : 'X\(//\)$' \| \
43354          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
43355 $as_echo X/"$am_mf" |
43356     sed '/^.*\/\([^/][^/]*\)\/*$/{
43357             s//\1/
43358             q
43359           }
43360           /^X\/\(\/\/\)$/{
43361             s//\1/
43362             q
43363           }
43364           /^X\/\(\/\).*/{
43365             s//\1/
43366             q
43367           }
43368           s/.*/./; q'`
43369     { echo "$as_me:$LINENO: cd "$am_dirpart" \
43370       && sed -e '/# am--include-marker/d' "$am_filepart" \
43371         | $MAKE -f - am--depfiles" >&5
43372    (cd "$am_dirpart" \
43373       && sed -e '/# am--include-marker/d' "$am_filepart" \
43374         | $MAKE -f - am--depfiles) >&5 2>&5
43375    ac_status=$?
43376    echo "$as_me:$LINENO: \$? = $ac_status" >&5
43377    (exit $ac_status); } || am_rc=$?
43378   done
43379   if test $am_rc -ne 0; then
43380     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43382 as_fn_error $? "Something went wrong bootstrapping makefile fragments
43383     for automatic dependency tracking.  Try re-running configure with the
43384     '--disable-dependency-tracking' option to at least be able to build
43385     the package (albeit without support for automatic dependency tracking).
43386 See \`config.log' for more details" "$LINENO" 5; }
43387   fi
43388   { am_dirpart=; unset am_dirpart;}
43389   { am_filepart=; unset am_filepart;}
43390   { am_mf=; unset am_mf;}
43391   { am_rc=; unset am_rc;}
43392   rm -f conftest-deps.mk
43393 }
43394  ;;
43395     "libtool":C)
43396
43397     # See if we are running on zsh, and set the options that allow our
43398     # commands through without removal of \ escapes.
43399     if test -n "${ZSH_VERSION+set}"; then
43400       setopt NO_GLOB_SUBST
43401     fi
43402
43403     cfgfile=${ofile}T
43404     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43405     $RM "$cfgfile"
43406
43407     cat <<_LT_EOF >> "$cfgfile"
43408 #! $SHELL
43409 # Generated automatically by $as_me ($PACKAGE) $VERSION
43410 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43411
43412 # Provide generalized library-building support services.
43413 # Written by Gordon Matzigkeit, 1996
43414
43415 # Copyright (C) 2014 Free Software Foundation, Inc.
43416 # This is free software; see the source for copying conditions.  There is NO
43417 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43418
43419 # GNU Libtool is free software; you can redistribute it and/or modify
43420 # it under the terms of the GNU General Public License as published by
43421 # the Free Software Foundation; either version 2 of of the License, or
43422 # (at your option) any later version.
43423 #
43424 # As a special exception to the GNU General Public License, if you
43425 # distribute this file as part of a program or library that is built
43426 # using GNU Libtool, you may include this file under the  same
43427 # distribution terms that you use for the rest of that program.
43428 #
43429 # GNU Libtool is distributed in the hope that it will be useful, but
43430 # WITHOUT ANY WARRANTY; without even the implied warranty of
43431 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43432 # GNU General Public License for more details.
43433 #
43434 # You should have received a copy of the GNU General Public License
43435 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
43436
43437
43438 # The names of the tagged configurations supported by this script.
43439 available_tags=''
43440
43441 # Configured defaults for sys_lib_dlsearch_path munging.
43442 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43443
43444 # ### BEGIN LIBTOOL CONFIG
43445
43446 # Which release of libtool.m4 was used?
43447 macro_version=$macro_version
43448 macro_revision=$macro_revision
43449
43450 # Assembler program.
43451 AS=$lt_AS
43452
43453 # DLL creation program.
43454 DLLTOOL=$lt_DLLTOOL
43455
43456 # Object dumper program.
43457 OBJDUMP=$lt_OBJDUMP
43458
43459 # Whether or not to build shared libraries.
43460 build_libtool_libs=$enable_shared
43461
43462 # Whether or not to build static libraries.
43463 build_old_libs=$enable_static
43464
43465 # What type of objects to build.
43466 pic_mode=$pic_mode
43467
43468 # Whether or not to optimize for fast installation.
43469 fast_install=$enable_fast_install
43470
43471 # Shared archive member basename,for filename based shared library versioning on AIX.
43472 shared_archive_member_spec=$shared_archive_member_spec
43473
43474 # Shell to use when invoking shell scripts.
43475 SHELL=$lt_SHELL
43476
43477 # An echo program that protects backslashes.
43478 ECHO=$lt_ECHO
43479
43480 # The PATH separator for the build system.
43481 PATH_SEPARATOR=$lt_PATH_SEPARATOR
43482
43483 # The host system.
43484 host_alias=$host_alias
43485 host=$host
43486 host_os=$host_os
43487
43488 # The build system.
43489 build_alias=$build_alias
43490 build=$build
43491 build_os=$build_os
43492
43493 # A sed program that does not truncate output.
43494 SED=$lt_SED
43495
43496 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43497 Xsed="\$SED -e 1s/^X//"
43498
43499 # A grep program that handles long lines.
43500 GREP=$lt_GREP
43501
43502 # An ERE matcher.
43503 EGREP=$lt_EGREP
43504
43505 # A literal string matcher.
43506 FGREP=$lt_FGREP
43507
43508 # A BSD- or MS-compatible name lister.
43509 NM=$lt_NM
43510
43511 # Whether we need soft or hard links.
43512 LN_S=$lt_LN_S
43513
43514 # What is the maximum length of a command?
43515 max_cmd_len=$max_cmd_len
43516
43517 # Object file suffix (normally "o").
43518 objext=$ac_objext
43519
43520 # Executable file suffix (normally "").
43521 exeext=$exeext
43522
43523 # whether the shell understands "unset".
43524 lt_unset=$lt_unset
43525
43526 # turn spaces into newlines.
43527 SP2NL=$lt_lt_SP2NL
43528
43529 # turn newlines into spaces.
43530 NL2SP=$lt_lt_NL2SP
43531
43532 # convert \$build file names to \$host format.
43533 to_host_file_cmd=$lt_cv_to_host_file_cmd
43534
43535 # convert \$build files to toolchain format.
43536 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43537
43538 # Method to check whether dependent libraries are shared objects.
43539 deplibs_check_method=$lt_deplibs_check_method
43540
43541 # Command to use when deplibs_check_method = "file_magic".
43542 file_magic_cmd=$lt_file_magic_cmd
43543
43544 # How to find potential files when deplibs_check_method = "file_magic".
43545 file_magic_glob=$lt_file_magic_glob
43546
43547 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43548 want_nocaseglob=$lt_want_nocaseglob
43549
43550 # Command to associate shared and link libraries.
43551 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43552
43553 # The archiver.
43554 AR=$lt_AR
43555
43556 # Flags to create an archive.
43557 AR_FLAGS=$lt_AR_FLAGS
43558
43559 # How to feed a file listing to the archiver.
43560 archiver_list_spec=$lt_archiver_list_spec
43561
43562 # A symbol stripping program.
43563 STRIP=$lt_STRIP
43564
43565 # Commands used to install an old-style archive.
43566 RANLIB=$lt_RANLIB
43567 old_postinstall_cmds=$lt_old_postinstall_cmds
43568 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43569
43570 # Whether to use a lock for old archive extraction.
43571 lock_old_archive_extraction=$lock_old_archive_extraction
43572
43573 # A C compiler.
43574 LTCC=$lt_CC
43575
43576 # LTCC compiler flags.
43577 LTCFLAGS=$lt_CFLAGS
43578
43579 # Take the output of nm and produce a listing of raw symbols and C names.
43580 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43581
43582 # Transform the output of nm in a proper C declaration.
43583 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43584
43585 # Transform the output of nm into a list of symbols to manually relocate.
43586 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43587
43588 # Transform the output of nm in a C name address pair.
43589 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43590
43591 # Transform the output of nm in a C name address pair when lib prefix is needed.
43592 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43593
43594 # The name lister interface.
43595 nm_interface=$lt_lt_cv_nm_interface
43596
43597 # Specify filename containing input files for \$NM.
43598 nm_file_list_spec=$lt_nm_file_list_spec
43599
43600 # The root where to search for dependent libraries,and where our libraries should be installed.
43601 lt_sysroot=$lt_sysroot
43602
43603 # Command to truncate a binary pipe.
43604 lt_truncate_bin=$lt_lt_cv_truncate_bin
43605
43606 # The name of the directory that contains temporary libtool files.
43607 objdir=$objdir
43608
43609 # Used to examine libraries when file_magic_cmd begins with "file".
43610 MAGIC_CMD=$MAGIC_CMD
43611
43612 # Must we lock files when doing compilation?
43613 need_locks=$lt_need_locks
43614
43615 # Manifest tool.
43616 MANIFEST_TOOL=$lt_MANIFEST_TOOL
43617
43618 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43619 DSYMUTIL=$lt_DSYMUTIL
43620
43621 # Tool to change global to local symbols on Mac OS X.
43622 NMEDIT=$lt_NMEDIT
43623
43624 # Tool to manipulate fat objects and archives on Mac OS X.
43625 LIPO=$lt_LIPO
43626
43627 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43628 OTOOL=$lt_OTOOL
43629
43630 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43631 OTOOL64=$lt_OTOOL64
43632
43633 # Old archive suffix (normally "a").
43634 libext=$libext
43635
43636 # Shared library suffix (normally ".so").
43637 shrext_cmds=$lt_shrext_cmds
43638
43639 # The commands to extract the exported symbol list from a shared archive.
43640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43641
43642 # Variables whose values should be saved in libtool wrapper scripts and
43643 # restored at link time.
43644 variables_saved_for_relink=$lt_variables_saved_for_relink
43645
43646 # Do we need the "lib" prefix for modules?
43647 need_lib_prefix=$need_lib_prefix
43648
43649 # Do we need a version for libraries?
43650 need_version=$need_version
43651
43652 # Library versioning type.
43653 version_type=$version_type
43654
43655 # Shared library runtime path variable.
43656 runpath_var=$runpath_var
43657
43658 # Shared library path variable.
43659 shlibpath_var=$shlibpath_var
43660
43661 # Is shlibpath searched before the hard-coded library search path?
43662 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43663
43664 # Format of library name prefix.
43665 libname_spec=$lt_libname_spec
43666
43667 # List of archive names.  First name is the real one, the rest are links.
43668 # The last name is the one that the linker finds with -lNAME
43669 library_names_spec=$lt_library_names_spec
43670
43671 # The coded name of the library, if different from the real name.
43672 soname_spec=$lt_soname_spec
43673
43674 # Permission mode override for installation of shared libraries.
43675 install_override_mode=$lt_install_override_mode
43676
43677 # Command to use after installation of a shared archive.
43678 postinstall_cmds=$lt_postinstall_cmds
43679
43680 # Command to use after uninstallation of a shared archive.
43681 postuninstall_cmds=$lt_postuninstall_cmds
43682
43683 # Commands used to finish a libtool library installation in a directory.
43684 finish_cmds=$lt_finish_cmds
43685
43686 # As "finish_cmds", except a single script fragment to be evaled but
43687 # not shown.
43688 finish_eval=$lt_finish_eval
43689
43690 # Whether we should hardcode library paths into libraries.
43691 hardcode_into_libs=$hardcode_into_libs
43692
43693 # Compile-time system search path for libraries.
43694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43695
43696 # Detected run-time system search path for libraries.
43697 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43698
43699 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43700 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43701
43702 # Whether dlopen is supported.
43703 dlopen_support=$enable_dlopen
43704
43705 # Whether dlopen of programs is supported.
43706 dlopen_self=$enable_dlopen_self
43707
43708 # Whether dlopen of statically linked programs is supported.
43709 dlopen_self_static=$enable_dlopen_self_static
43710
43711 # Commands to strip libraries.
43712 old_striplib=$lt_old_striplib
43713 striplib=$lt_striplib
43714
43715
43716 # The linker used to build libraries.
43717 LD=$lt_LD
43718
43719 # How to create reloadable object files.
43720 reload_flag=$lt_reload_flag
43721 reload_cmds=$lt_reload_cmds
43722
43723 # Commands used to build an old-style archive.
43724 old_archive_cmds=$lt_old_archive_cmds
43725
43726 # A language specific compiler.
43727 CC=$lt_compiler
43728
43729 # Is the compiler the GNU compiler?
43730 with_gcc=$GCC
43731
43732 # Compiler flag to turn off builtin functions.
43733 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43734
43735 # Additional compiler flags for building library objects.
43736 pic_flag=$lt_lt_prog_compiler_pic
43737
43738 # How to pass a linker flag through the compiler.
43739 wl=$lt_lt_prog_compiler_wl
43740
43741 # Compiler flag to prevent dynamic linking.
43742 link_static_flag=$lt_lt_prog_compiler_static
43743
43744 # Does compiler simultaneously support -c and -o options?
43745 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43746
43747 # Whether or not to add -lc for building shared libraries.
43748 build_libtool_need_lc=$archive_cmds_need_lc
43749
43750 # Whether or not to disallow shared libs when runtime libs are static.
43751 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43752
43753 # Compiler flag to allow reflexive dlopens.
43754 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43755
43756 # Compiler flag to generate shared objects directly from archives.
43757 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43758
43759 # Whether the compiler copes with passing no objects directly.
43760 compiler_needs_object=$lt_compiler_needs_object
43761
43762 # Create an old-style archive from a shared archive.
43763 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43764
43765 # Create a temporary old-style archive to link instead of a shared archive.
43766 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43767
43768 # Commands used to build a shared archive.
43769 archive_cmds=$lt_archive_cmds
43770 archive_expsym_cmds=$lt_archive_expsym_cmds
43771
43772 # Commands used to build a loadable module if different from building
43773 # a shared archive.
43774 module_cmds=$lt_module_cmds
43775 module_expsym_cmds=$lt_module_expsym_cmds
43776
43777 # Whether we are building with GNU ld or not.
43778 with_gnu_ld=$lt_with_gnu_ld
43779
43780 # Flag that allows shared libraries with undefined symbols to be built.
43781 allow_undefined_flag=$lt_allow_undefined_flag
43782
43783 # Flag that enforces no undefined symbols.
43784 no_undefined_flag=$lt_no_undefined_flag
43785
43786 # Flag to hardcode \$libdir into a binary during linking.
43787 # This must work even if \$libdir does not exist
43788 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43789
43790 # Whether we need a single "-rpath" flag with a separated argument.
43791 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43792
43793 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43794 # DIR into the resulting binary.
43795 hardcode_direct=$hardcode_direct
43796
43797 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43798 # DIR into the resulting binary and the resulting library dependency is
43799 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43800 # library is relocated.
43801 hardcode_direct_absolute=$hardcode_direct_absolute
43802
43803 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43804 # into the resulting binary.
43805 hardcode_minus_L=$hardcode_minus_L
43806
43807 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43808 # into the resulting binary.
43809 hardcode_shlibpath_var=$hardcode_shlibpath_var
43810
43811 # Set to "yes" if building a shared library automatically hardcodes DIR
43812 # into the library and all subsequent libraries and executables linked
43813 # against it.
43814 hardcode_automatic=$hardcode_automatic
43815
43816 # Set to yes if linker adds runtime paths of dependent libraries
43817 # to runtime path list.
43818 inherit_rpath=$inherit_rpath
43819
43820 # Whether libtool must link a program against all its dependency libraries.
43821 link_all_deplibs=$link_all_deplibs
43822
43823 # Set to "yes" if exported symbols are required.
43824 always_export_symbols=$always_export_symbols
43825
43826 # The commands to list exported symbols.
43827 export_symbols_cmds=$lt_export_symbols_cmds
43828
43829 # Symbols that should not be listed in the preloaded symbols.
43830 exclude_expsyms=$lt_exclude_expsyms
43831
43832 # Symbols that must always be exported.
43833 include_expsyms=$lt_include_expsyms
43834
43835 # Commands necessary for linking programs (against libraries) with templates.
43836 prelink_cmds=$lt_prelink_cmds
43837
43838 # Commands necessary for finishing linking programs.
43839 postlink_cmds=$lt_postlink_cmds
43840
43841 # Specify filename containing input files.
43842 file_list_spec=$lt_file_list_spec
43843
43844 # How to hardcode a shared library path into an executable.
43845 hardcode_action=$hardcode_action
43846
43847 # ### END LIBTOOL CONFIG
43848
43849 _LT_EOF
43850
43851     cat <<'_LT_EOF' >> "$cfgfile"
43852
43853 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43854
43855 # func_munge_path_list VARIABLE PATH
43856 # -----------------------------------
43857 # VARIABLE is name of variable containing _space_ separated list of
43858 # directories to be munged by the contents of PATH, which is string
43859 # having a format:
43860 # "DIR[:DIR]:"
43861 #       string "DIR[ DIR]" will be prepended to VARIABLE
43862 # ":DIR[:DIR]"
43863 #       string "DIR[ DIR]" will be appended to VARIABLE
43864 # "DIRP[:DIRP]::[DIRA:]DIRA"
43865 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43866 #       "DIRA[ DIRA]" will be appended to VARIABLE
43867 # "DIR[:DIR]"
43868 #       VARIABLE will be replaced by "DIR[ DIR]"
43869 func_munge_path_list ()
43870 {
43871     case x$2 in
43872     x)
43873         ;;
43874     *:)
43875         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43876         ;;
43877     x:*)
43878         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43879         ;;
43880     *::*)
43881         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43882         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43883         ;;
43884     *)
43885         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43886         ;;
43887     esac
43888 }
43889
43890
43891 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
43892 func_cc_basename ()
43893 {
43894     for cc_temp in $*""; do
43895       case $cc_temp in
43896         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43897         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43898         \-*) ;;
43899         *) break;;
43900       esac
43901     done
43902     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43903 }
43904
43905
43906 # ### END FUNCTIONS SHARED WITH CONFIGURE
43907
43908 _LT_EOF
43909
43910   case $host_os in
43911   aix3*)
43912     cat <<\_LT_EOF >> "$cfgfile"
43913 # AIX sometimes has problems with the GCC collect2 program.  For some
43914 # reason, if we set the COLLECT_NAMES environment variable, the problems
43915 # vanish in a puff of smoke.
43916 if test set != "${COLLECT_NAMES+set}"; then
43917   COLLECT_NAMES=
43918   export COLLECT_NAMES
43919 fi
43920 _LT_EOF
43921     ;;
43922   esac
43923
43924
43925 ltmain=$ac_aux_dir/ltmain.sh
43926
43927
43928   # We use sed instead of cat because bash on DJGPP gets confused if
43929   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43930   # text mode, it properly converts lines to CR/LF.  This bash problem
43931   # is reportedly fixed, but why not run on old versions too?
43932   sed '$q' "$ltmain" >> "$cfgfile" \
43933      || (rm -f "$cfgfile"; exit 1)
43934
43935    mv -f "$cfgfile" "$ofile" ||
43936     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43937   chmod +x "$ofile"
43938
43939  ;;
43940
43941   esac
43942 done # for ac_tag
43943
43944
43945 as_fn_exit 0
43946 _ACEOF
43947 ac_clean_files=$ac_clean_files_save
43948
43949 test $ac_write_fail = 0 ||
43950   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43951
43952
43953 # configure is writing to config.log, and then calls config.status.
43954 # config.status does its own redirection, appending to config.log.
43955 # Unfortunately, on DOS this fails, as config.log is still kept open
43956 # by configure, so config.status won't be able to write to it; its
43957 # output is simply discarded.  So we exec the FD to /dev/null,
43958 # effectively closing config.log, so it can be properly (re)opened and
43959 # appended to by config.status.  When coming back to configure, we
43960 # need to make the FD available again.
43961 if test "$no_create" != yes; then
43962   ac_cs_success=:
43963   ac_config_status_args=
43964   test "$silent" = yes &&
43965     ac_config_status_args="$ac_config_status_args --quiet"
43966   exec 5>/dev/null
43967   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43968   exec 5>>config.log
43969   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43970   # would make configure fail if this is the last instruction.
43971   $ac_cs_success || as_fn_exit 1
43972 fi
43973
43974 #
43975 # CONFIG_SUBDIRS section.
43976 #
43977 if test "$no_recursion" != yes; then
43978
43979   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43980   # so they do not pile up.
43981   ac_sub_configure_args=
43982   ac_prev=
43983   eval "set x $ac_configure_args"
43984   shift
43985   for ac_arg
43986   do
43987     if test -n "$ac_prev"; then
43988       ac_prev=
43989       continue
43990     fi
43991     case $ac_arg in
43992     -cache-file | --cache-file | --cache-fil | --cache-fi \
43993     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43994       ac_prev=cache_file ;;
43995     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43996     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43997     | --c=*)
43998       ;;
43999     --config-cache | -C)
44000       ;;
44001     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44002       ac_prev=srcdir ;;
44003     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44004       ;;
44005     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44006       ac_prev=prefix ;;
44007     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44008       ;;
44009     --disable-option-checking)
44010       ;;
44011     *)
44012       case $ac_arg in
44013       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44014       esac
44015       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
44016     esac
44017   done
44018
44019   # Always prepend --prefix to ensure using the same prefix
44020   # in subdir configurations.
44021   ac_arg="--prefix=$prefix"
44022   case $ac_arg in
44023   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44024   esac
44025   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
44026
44027   # Pass --silent
44028   if test "$silent" = yes; then
44029     ac_sub_configure_args="--silent $ac_sub_configure_args"
44030   fi
44031
44032   # Always prepend --disable-option-checking to silence warnings, since
44033   # different subdirs can have different --enable and --with options.
44034   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
44035
44036   ac_popdir=`pwd`
44037   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44038
44039     # Do not complain, so a configure script can configure whichever
44040     # parts of a large source tree are present.
44041     test -d "$srcdir/$ac_dir" || continue
44042
44043     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
44044     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
44045     $as_echo "$ac_msg" >&6
44046     as_dir="$ac_dir"; as_fn_mkdir_p
44047     ac_builddir=.
44048
44049 case "$ac_dir" in
44050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44051 *)
44052   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
44053   # A ".." for each directory in $ac_dir_suffix.
44054   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
44055   case $ac_top_builddir_sub in
44056   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44057   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44058   esac ;;
44059 esac
44060 ac_abs_top_builddir=$ac_pwd
44061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44062 # for backward compatibility:
44063 ac_top_builddir=$ac_top_build_prefix
44064
44065 case $srcdir in
44066   .)  # We are building in place.
44067     ac_srcdir=.
44068     ac_top_srcdir=$ac_top_builddir_sub
44069     ac_abs_top_srcdir=$ac_pwd ;;
44070   [\\/]* | ?:[\\/]* )  # Absolute name.
44071     ac_srcdir=$srcdir$ac_dir_suffix;
44072     ac_top_srcdir=$srcdir
44073     ac_abs_top_srcdir=$srcdir ;;
44074   *) # Relative name.
44075     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44076     ac_top_srcdir=$ac_top_build_prefix$srcdir
44077     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44078 esac
44079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44080
44081
44082     cd "$ac_dir"
44083
44084     # Check for guested configure; otherwise get Cygnus style configure.
44085     if test -f "$ac_srcdir/configure.gnu"; then
44086       ac_sub_configure=$ac_srcdir/configure.gnu
44087     elif test -f "$ac_srcdir/configure"; then
44088       ac_sub_configure=$ac_srcdir/configure
44089     elif test -f "$ac_srcdir/configure.in"; then
44090       # This should be Cygnus configure.
44091       ac_sub_configure=$ac_aux_dir/configure
44092     else
44093       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
44094 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44095       ac_sub_configure=
44096     fi
44097
44098     # The recursion is here.
44099     if test -n "$ac_sub_configure"; then
44100       # Make the cache file name correct relative to the subdirectory.
44101       case $cache_file in
44102       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44103       *) # Relative name.
44104         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
44105       esac
44106
44107       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
44108 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44109       # The eval makes quoting arguments work.
44110       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44111            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44112         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
44113     fi
44114
44115     cd "$ac_popdir"
44116   done
44117 fi
44118 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44119   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44120 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44121 fi
44122
44123
44124
44125     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44126   if test -z "$tmp_cpp"; then
44127     tmp_cpp='cpp'
44128   fi
44129   cat >./tests/configurehelp.pm <<_EOF
44130 # This is a generated file.  Do not edit.
44131
44132 package configurehelp;
44133
44134 use strict;
44135 use warnings;
44136 use Exporter;
44137
44138 use vars qw(
44139     @ISA
44140     @EXPORT_OK
44141     \$Cpreprocessor
44142     );
44143
44144 @ISA = qw(Exporter);
44145
44146 @EXPORT_OK = qw(
44147     \$Cpreprocessor
44148     );
44149
44150 \$Cpreprocessor = '$tmp_cpp';
44151
44152 1;
44153 _EOF
44154
44155
44156
44157 ## ---------------------------------- ##
44158 ##  Start of distclean amending code  ##
44159 ## ---------------------------------- ##
44160
44161 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44162 do
44163
44164 if test ! -f "$xc_subdir/Makefile"; then
44165   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44166   exit 1
44167 fi
44168
44169 # Fetch dependency tracking file list from Makefile include lines.
44170
44171 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44172 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44173
44174 # --disable-dependency-tracking might have been used, consequently
44175 # there is nothing to amend without a dependency tracking file list.
44176
44177 if test $xc_cnt_words -gt 0; then
44178
44179 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44180 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44181
44182 # Build Makefile specific patch hunk.
44183
44184 xc_p="$xc_subdir/xc_patch.tmp"
44185
44186 xc_rm_depfiles=`echo "$xc_inc_lines" \
44187   | $SED 's%include%    -rm -f%' 2>/dev/null`
44188
44189 xc_dep_subdirs=`echo "$xc_inc_lines" \
44190   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44191   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44192   | sort | uniq`
44193
44194 echo "$xc_rm_depfiles" >$xc_p
44195
44196 for xc_dep_dir in $xc_dep_subdirs; do
44197   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
44198   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
44199   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
44200   echo "${xc_tab}fi"                                                                >>$xc_p
44201 done
44202
44203 # Build Makefile patching sed scripts.
44204
44205 xc_s1="$xc_subdir/xc_script_1.tmp"
44206 xc_s2="$xc_subdir/xc_script_2.tmp"
44207 xc_s3="$xc_subdir/xc_script_3.tmp"
44208
44209 cat >$xc_s1 <<\_EOT
44210 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
44211   s/^.*(DEPDIR)/___xc_depdir_line___/
44212 }
44213 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
44214   s/^.*(DEPDIR)/___xc_depdir_line___/
44215 }
44216 _EOT
44217
44218 cat >$xc_s2 <<\_EOT
44219 /___xc_depdir_line___$/{
44220   N
44221   /___xc_depdir_line___$/D
44222 }
44223 _EOT
44224
44225 cat >$xc_s3 <<_EOT
44226 /^___xc_depdir_line___/{
44227   r $xc_p
44228   d
44229 }
44230 _EOT
44231
44232 # Apply patch to Makefile and cleanup.
44233
44234 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
44235 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44236 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44237
44238 if test -f "$xc_subdir/Makefile.tmp3"; then
44239   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44240 fi
44241
44242 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44243 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44244 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44245
44246 test -f "$xc_p"  && rm -f "$xc_p"
44247 test -f "$xc_s1" && rm -f "$xc_s1"
44248 test -f "$xc_s2" && rm -f "$xc_s2"
44249 test -f "$xc_s3" && rm -f "$xc_s3"
44250
44251 fi
44252
44253 done
44254
44255 ## -------------------------------- ##
44256 ##  End of distclean amending code  ##
44257 ## -------------------------------- ##
44258
44259
44260
44261 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44262
44263   curl version:     ${CURLVERSION}
44264   Host setup:       ${host}
44265   Install prefix:   ${prefix}
44266   Compiler:         ${CC}
44267   SSL support:      ${curl_ssl_msg}
44268   SSH support:      ${curl_ssh_msg}
44269   zlib support:     ${curl_zlib_msg}
44270   brotli support:   ${curl_brotli_msg}
44271   GSS-API support:  ${curl_gss_msg}
44272   TLS-SRP support:  ${curl_tls_srp_msg}
44273   resolver:         ${curl_res_msg}
44274   IPv6 support:     ${curl_ipv6_msg}
44275   Unix sockets support: ${curl_unix_sockets_msg}
44276   IDN support:      ${curl_idn_msg}
44277   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
44278   Built-in manual:  ${curl_manual_msg}
44279   --libcurl option: ${curl_libcurl_msg}
44280   Verbose errors:   ${curl_verbose_msg}
44281   SSPI support:     ${curl_sspi_msg}
44282   ca cert bundle:   ${ca}${ca_warning}
44283   ca cert path:     ${capath}${capath_warning}
44284   ca fallback:      ${with_ca_fallback}
44285   LDAP support:     ${curl_ldap_msg}
44286   LDAPS support:    ${curl_ldaps_msg}
44287   RTSP support:     ${curl_rtsp_msg}
44288   RTMP support:     ${curl_rtmp_msg}
44289   metalink support: ${curl_mtlnk_msg}
44290   PSL support:      ${curl_psl_msg}
44291   HTTP2 support:    ${curl_h2_msg}
44292   Protocols:        ${SUPPORT_PROTOCOLS}
44293 " >&5
44294 $as_echo "$as_me: Configured to build curl/libcurl:
44295
44296   curl version:     ${CURLVERSION}
44297   Host setup:       ${host}
44298   Install prefix:   ${prefix}
44299   Compiler:         ${CC}
44300   SSL support:      ${curl_ssl_msg}
44301   SSH support:      ${curl_ssh_msg}
44302   zlib support:     ${curl_zlib_msg}
44303   brotli support:   ${curl_brotli_msg}
44304   GSS-API support:  ${curl_gss_msg}
44305   TLS-SRP support:  ${curl_tls_srp_msg}
44306   resolver:         ${curl_res_msg}
44307   IPv6 support:     ${curl_ipv6_msg}
44308   Unix sockets support: ${curl_unix_sockets_msg}
44309   IDN support:      ${curl_idn_msg}
44310   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
44311   Built-in manual:  ${curl_manual_msg}
44312   --libcurl option: ${curl_libcurl_msg}
44313   Verbose errors:   ${curl_verbose_msg}
44314   SSPI support:     ${curl_sspi_msg}
44315   ca cert bundle:   ${ca}${ca_warning}
44316   ca cert path:     ${capath}${capath_warning}
44317   ca fallback:      ${with_ca_fallback}
44318   LDAP support:     ${curl_ldap_msg}
44319   LDAPS support:    ${curl_ldaps_msg}
44320   RTSP support:     ${curl_rtsp_msg}
44321   RTMP support:     ${curl_rtmp_msg}
44322   metalink support: ${curl_mtlnk_msg}
44323   PSL support:      ${curl_psl_msg}
44324   HTTP2 support:    ${curl_h2_msg}
44325   Protocols:        ${SUPPORT_PROTOCOLS}
44326 " >&6;}