[CVE-2016-7167] curl escape and unescape integer overflows
[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 - 2016 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     # Stop dead until user provides 'PATH_SEPARATOR' definition.
237     echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
238     exit 1
239   fi
240 else
241   # Separator with the greater directory count is the auto-detected one.
242   if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
243     xc_tst_auto_separator=';'
244   else
245     xc_tst_auto_separator=':'
246   fi
247   if test -z "$PATH_SEPARATOR"; then
248     # Simply use the auto-detected one when not already set.
249     PATH_SEPARATOR=$xc_tst_auto_separator
250   elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
251     echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
252   fi
253 fi
254 xc_PATH_SEPARATOR=$PATH_SEPARATOR
255
256 xc_configure_preamble_result='yes'
257
258
259 ## -------------------- ##
260 ## M4sh Initialization. ##
261 ## -------------------- ##
262
263 # Be more Bourne compatible
264 DUALCASE=1; export DUALCASE # for MKS sh
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
266   emulate sh
267   NULLCMD=:
268   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in #(
274   *posix*) :
275     set -o posix ;; #(
276   *) :
277      ;;
278 esac
279 fi
280
281
282 as_nl='
283 '
284 export as_nl
285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
286 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
289 # Prefer a ksh shell builtin over an external printf program on Solaris,
290 # but without wasting forks for bash or zsh.
291 if test -z "$BASH_VERSION$ZSH_VERSION" \
292     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
293   as_echo='print -r --'
294   as_echo_n='print -rn --'
295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
296   as_echo='printf %s\n'
297   as_echo_n='printf %s'
298 else
299   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
300     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
301     as_echo_n='/usr/ucb/echo -n'
302   else
303     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
304     as_echo_n_body='eval
305       arg=$1;
306       case $arg in #(
307       *"$as_nl"*)
308         expr "X$arg" : "X\\(.*\\)$as_nl";
309         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
310       esac;
311       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
312     '
313     export as_echo_n_body
314     as_echo_n='sh -c $as_echo_n_body as_echo'
315   fi
316   export as_echo_body
317   as_echo='sh -c $as_echo_body as_echo'
318 fi
319
320
321
322 # IFS
323 # We need space, tab and new line, in precisely that order.  Quoting is
324 # there to prevent editors from complaining about space-tab.
325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
326 # splitting by setting IFS to empty value.)
327 IFS=" ""        $as_nl"
328
329 # Find who we are.  Look in the path if we contain no directory separator.
330 as_myself=
331 case $0 in #((
332   *[\\/]* ) as_myself=$0 ;;
333   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
334 for as_dir in $PATH
335 do
336   IFS=$as_save_IFS
337   test -z "$as_dir" && as_dir=.
338     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
339   done
340 IFS=$as_save_IFS
341
342      ;;
343 esac
344 # We did not find ourselves, most probably we were run as `sh COMMAND'
345 # in which case we are not to be found in the path.
346 if test "x$as_myself" = x; then
347   as_myself=$0
348 fi
349 if test ! -f "$as_myself"; then
350   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
351   exit 1
352 fi
353
354 # Unset variables that we do not need and which cause bugs (e.g. in
355 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
356 # suppresses any "Segmentation fault" message there.  '((' could
357 # trigger a bug in pdksh 5.2.14.
358 for as_var in BASH_ENV ENV MAIL MAILPATH
359 do eval test x\${$as_var+set} = xset \
360   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
361 done
362 PS1='$ '
363 PS2='> '
364 PS4='+ '
365
366 # NLS nuisances.
367 LC_ALL=C
368 export LC_ALL
369 LANGUAGE=C
370 export LANGUAGE
371
372 # CDPATH.
373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
374
375 # Use a proper internal environment variable to ensure we don't fall
376   # into an infinite loop, continuously re-executing ourselves.
377   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
378     _as_can_reexec=no; export _as_can_reexec;
379     # We cannot yet assume a decent shell, so we have to provide a
380 # neutralization value for shells without unset; and this also
381 # works around shells that cannot unset nonexistent variables.
382 # Preserve -v and -x to the replacement shell.
383 BASH_ENV=/dev/null
384 ENV=/dev/null
385 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
386 case $- in # ((((
387   *v*x* | *x*v* ) as_opts=-vx ;;
388   *v* ) as_opts=-v ;;
389   *x* ) as_opts=-x ;;
390   * ) as_opts= ;;
391 esac
392 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
393 # Admittedly, this is quite paranoid, since all the known shells bail
394 # out after a failed `exec'.
395 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
396 as_fn_exit 255
397   fi
398   # We don't want this to propagate to other subprocesses.
399           { _as_can_reexec=; unset _as_can_reexec;}
400 if test "x$CONFIG_SHELL" = x; then
401   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
402   emulate sh
403   NULLCMD=:
404   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
405   # is contrary to our usage.  Disable this feature.
406   alias -g '\${1+\"\$@\"}'='\"\$@\"'
407   setopt NO_GLOB_SUBST
408 else
409   case \`(set -o) 2>/dev/null\` in #(
410   *posix*) :
411     set -o posix ;; #(
412   *) :
413      ;;
414 esac
415 fi
416 "
417   as_required="as_fn_return () { (exit \$1); }
418 as_fn_success () { as_fn_return 0; }
419 as_fn_failure () { as_fn_return 1; }
420 as_fn_ret_success () { return 0; }
421 as_fn_ret_failure () { return 1; }
422
423 exitcode=0
424 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
425 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
426 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
427 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
428 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
429
430 else
431   exitcode=1; echo positional parameters were not saved.
432 fi
433 test x\$exitcode = x0 || exit 1
434 test -x / || exit 1"
435   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
436   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
437   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
438   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
439 test \$(( 1 + 1 )) = 2 || exit 1
440
441   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
442     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
443     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
444     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445     PATH=/empty FPATH=/empty; export PATH FPATH
446     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
447       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
448   if (eval "$as_required") 2>/dev/null; then :
449   as_have_required=yes
450 else
451   as_have_required=no
452 fi
453   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
454
455 else
456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
457 as_found=false
458 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
459 do
460   IFS=$as_save_IFS
461   test -z "$as_dir" && as_dir=.
462   as_found=:
463   case $as_dir in #(
464          /*)
465            for as_base in sh bash ksh sh5; do
466              # Try only shells that exist, to save several forks.
467              as_shell=$as_dir/$as_base
468              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
469                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
470   CONFIG_SHELL=$as_shell as_have_required=yes
471                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
472   break 2
473 fi
474 fi
475            done;;
476        esac
477   as_found=false
478 done
479 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
480               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
481   CONFIG_SHELL=$SHELL as_have_required=yes
482 fi; }
483 IFS=$as_save_IFS
484
485
486       if test "x$CONFIG_SHELL" != x; then :
487   export CONFIG_SHELL
488              # We cannot yet assume a decent shell, so we have to provide a
489 # neutralization value for shells without unset; and this also
490 # works around shells that cannot unset nonexistent variables.
491 # Preserve -v and -x to the replacement shell.
492 BASH_ENV=/dev/null
493 ENV=/dev/null
494 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
495 case $- in # ((((
496   *v*x* | *x*v* ) as_opts=-vx ;;
497   *v* ) as_opts=-v ;;
498   *x* ) as_opts=-x ;;
499   * ) as_opts= ;;
500 esac
501 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
502 # Admittedly, this is quite paranoid, since all the known shells bail
503 # out after a failed `exec'.
504 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
505 exit 255
506 fi
507
508     if test x$as_have_required = xno; then :
509   $as_echo "$0: This script requires a shell more modern than all"
510   $as_echo "$0: the shells that I found on your system."
511   if test x${ZSH_VERSION+set} = xset ; then
512     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
513     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
514   else
515     $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
516 $0: mailing list: https://curl.haxx.se/mail/ about your
517 $0: system, including any error possibly output before this
518 $0: message. Then install a modern shell, or manually run
519 $0: the script under such a shell if you do have one."
520   fi
521   exit 1
522 fi
523 fi
524 fi
525 SHELL=${CONFIG_SHELL-/bin/sh}
526 export SHELL
527 # Unset more variables known to interfere with behavior of common tools.
528 CLICOLOR_FORCE= GREP_OPTIONS=
529 unset CLICOLOR_FORCE GREP_OPTIONS
530
531 ## --------------------- ##
532 ## M4sh Shell Functions. ##
533 ## --------------------- ##
534 # as_fn_unset VAR
535 # ---------------
536 # Portably unset VAR.
537 as_fn_unset ()
538 {
539   { eval $1=; unset $1;}
540 }
541 as_unset=as_fn_unset
542
543 # as_fn_set_status STATUS
544 # -----------------------
545 # Set $? to STATUS, without forking.
546 as_fn_set_status ()
547 {
548   return $1
549 } # as_fn_set_status
550
551 # as_fn_exit STATUS
552 # -----------------
553 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
554 as_fn_exit ()
555 {
556   set +e
557   as_fn_set_status $1
558   exit $1
559 } # as_fn_exit
560
561 # as_fn_mkdir_p
562 # -------------
563 # Create "$as_dir" as a directory, including parents if necessary.
564 as_fn_mkdir_p ()
565 {
566
567   case $as_dir in #(
568   -*) as_dir=./$as_dir;;
569   esac
570   test -d "$as_dir" || eval $as_mkdir_p || {
571     as_dirs=
572     while :; do
573       case $as_dir in #(
574       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
575       *) as_qdir=$as_dir;;
576       esac
577       as_dirs="'$as_qdir' $as_dirs"
578       as_dir=`$as_dirname -- "$as_dir" ||
579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
580          X"$as_dir" : 'X\(//\)[^/]' \| \
581          X"$as_dir" : 'X\(//\)$' \| \
582          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
583 $as_echo X"$as_dir" |
584     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
585             s//\1/
586             q
587           }
588           /^X\(\/\/\)[^/].*/{
589             s//\1/
590             q
591           }
592           /^X\(\/\/\)$/{
593             s//\1/
594             q
595           }
596           /^X\(\/\).*/{
597             s//\1/
598             q
599           }
600           s/.*/./; q'`
601       test -d "$as_dir" && break
602     done
603     test -z "$as_dirs" || eval "mkdir $as_dirs"
604   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
605
606
607 } # as_fn_mkdir_p
608
609 # as_fn_executable_p FILE
610 # -----------------------
611 # Test if FILE is an executable regular file.
612 as_fn_executable_p ()
613 {
614   test -f "$1" && test -x "$1"
615 } # as_fn_executable_p
616 # as_fn_append VAR VALUE
617 # ----------------------
618 # Append the text in VALUE to the end of the definition contained in VAR. Take
619 # advantage of any shell optimizations that allow amortized linear growth over
620 # repeated appends, instead of the typical quadratic growth present in naive
621 # implementations.
622 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
623   eval 'as_fn_append ()
624   {
625     eval $1+=\$2
626   }'
627 else
628   as_fn_append ()
629   {
630     eval $1=\$$1\$2
631   }
632 fi # as_fn_append
633
634 # as_fn_arith ARG...
635 # ------------------
636 # Perform arithmetic evaluation on the ARGs, and store the result in the
637 # global $as_val. Take advantage of shells that can avoid forks. The arguments
638 # must be portable across $(()) and expr.
639 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
640   eval 'as_fn_arith ()
641   {
642     as_val=$(( $* ))
643   }'
644 else
645   as_fn_arith ()
646   {
647     as_val=`expr "$@" || test $? -eq 1`
648   }
649 fi # as_fn_arith
650
651
652 # as_fn_error STATUS ERROR [LINENO LOG_FD]
653 # ----------------------------------------
654 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
655 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
656 # script with STATUS, using 1 if that was 0.
657 as_fn_error ()
658 {
659   as_status=$1; test $as_status -eq 0 && as_status=1
660   if test "$4"; then
661     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
662     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
663   fi
664   $as_echo "$as_me: error: $2" >&2
665   as_fn_exit $as_status
666 } # as_fn_error
667
668 if expr a : '\(a\)' >/dev/null 2>&1 &&
669    test "X`expr 00001 : '.*\(...\)'`" = X001; then
670   as_expr=expr
671 else
672   as_expr=false
673 fi
674
675 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
676   as_basename=basename
677 else
678   as_basename=false
679 fi
680
681 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
682   as_dirname=dirname
683 else
684   as_dirname=false
685 fi
686
687 as_me=`$as_basename -- "$0" ||
688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
689          X"$0" : 'X\(//\)$' \| \
690          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
691 $as_echo X/"$0" |
692     sed '/^.*\/\([^/][^/]*\)\/*$/{
693             s//\1/
694             q
695           }
696           /^X\/\(\/\/\)$/{
697             s//\1/
698             q
699           }
700           /^X\/\(\/\).*/{
701             s//\1/
702             q
703           }
704           s/.*/./; q'`
705
706 # Avoid depending upon Character Ranges.
707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
710 as_cr_digits='0123456789'
711 as_cr_alnum=$as_cr_Letters$as_cr_digits
712
713
714   as_lineno_1=$LINENO as_lineno_1a=$LINENO
715   as_lineno_2=$LINENO as_lineno_2a=$LINENO
716   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
717   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
718   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
719   sed -n '
720     p
721     /[$]LINENO/=
722   ' <$as_myself |
723     sed '
724       s/[$]LINENO.*/&-/
725       t lineno
726       b
727       :lineno
728       N
729       :loop
730       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
731       t loop
732       s/-\n.*//
733     ' >$as_me.lineno &&
734   chmod +x "$as_me.lineno" ||
735     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
736
737   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
738   # already done that, so ensure we don't try to do so again and fall
739   # in an infinite loop.  This has already happened in practice.
740   _as_can_reexec=no; export _as_can_reexec
741   # Don't try to exec as it changes $[0], causing all sort of problems
742   # (the dirname of $[0] is not the place where we might find the
743   # original and so on.  Autoconf is especially sensitive to this).
744   . "./$as_me.lineno"
745   # Exit status is that of the last command.
746   exit
747 }
748
749 ECHO_C= ECHO_N= ECHO_T=
750 case `echo -n x` in #(((((
751 -n*)
752   case `echo 'xy\c'` in
753   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
754   xy)  ECHO_C='\c';;
755   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
756        ECHO_T=' ';;
757   esac;;
758 *)
759   ECHO_N='-n';;
760 esac
761
762 rm -f conf$$ conf$$.exe conf$$.file
763 if test -d conf$$.dir; then
764   rm -f conf$$.dir/conf$$.file
765 else
766   rm -f conf$$.dir
767   mkdir conf$$.dir 2>/dev/null
768 fi
769 if (echo >conf$$.file) 2>/dev/null; then
770   if ln -s conf$$.file conf$$ 2>/dev/null; then
771     as_ln_s='ln -s'
772     # ... but there are two gotchas:
773     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
774     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
775     # In both cases, we have to default to `cp -pR'.
776     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
777       as_ln_s='cp -pR'
778   elif ln conf$$.file conf$$ 2>/dev/null; then
779     as_ln_s=ln
780   else
781     as_ln_s='cp -pR'
782   fi
783 else
784   as_ln_s='cp -pR'
785 fi
786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
787 rmdir conf$$.dir 2>/dev/null
788
789 if mkdir -p . 2>/dev/null; then
790   as_mkdir_p='mkdir -p "$as_dir"'
791 else
792   test -d ./-p && rmdir ./-p
793   as_mkdir_p=false
794 fi
795
796 as_test_x='test -x'
797 as_executable_p=as_fn_executable_p
798
799 # Sed expression to map a string onto a valid CPP name.
800 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
801
802 # Sed expression to map a string onto a valid variable name.
803 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
804
805 SHELL=${CONFIG_SHELL-/bin/sh}
806
807
808 test -n "$DJDIR" || exec 7<&0 </dev/null
809 exec 6>&1
810
811 # Name of the host.
812 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
813 # so uname gets run too.
814 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
815
816 #
817 # Initializations.
818 #
819 ac_default_prefix=/usr/local
820 ac_clean_files=
821 ac_config_libobj_dir=.
822 LIBOBJS=
823 cross_compiling=no
824 subdirs=
825 MFLAGS=
826 MAKEFLAGS=
827
828 # Identity of this package.
829 PACKAGE_NAME='curl'
830 PACKAGE_TARNAME='curl'
831 PACKAGE_VERSION='-'
832 PACKAGE_STRING='curl -'
833 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
834 PACKAGE_URL=''
835
836 ac_unique_file="lib/urldata.h"
837 # Factoring default headers for most tests.
838 ac_includes_default="\
839 #include <stdio.h>
840 #ifdef HAVE_SYS_TYPES_H
841 # include <sys/types.h>
842 #endif
843 #ifdef HAVE_SYS_STAT_H
844 # include <sys/stat.h>
845 #endif
846 #ifdef STDC_HEADERS
847 # include <stdlib.h>
848 # include <stddef.h>
849 #else
850 # ifdef HAVE_STDLIB_H
851 #  include <stdlib.h>
852 # endif
853 #endif
854 #ifdef HAVE_STRING_H
855 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
856 #  include <memory.h>
857 # endif
858 # include <string.h>
859 #endif
860 #ifdef HAVE_STRINGS_H
861 # include <strings.h>
862 #endif
863 #ifdef HAVE_INTTYPES_H
864 # include <inttypes.h>
865 #endif
866 #ifdef HAVE_STDINT_H
867 # include <stdint.h>
868 #endif
869 #ifdef HAVE_UNISTD_H
870 # include <unistd.h>
871 #endif"
872
873 enable_option_checking=no
874 ac_subst_vars='am__EXEEXT_FALSE
875 am__EXEEXT_TRUE
876 LTLIBOBJS
877 LIBOBJS
878 SUPPORT_PROTOCOLS
879 SUPPORT_FEATURES
880 ENABLE_STATIC
881 ENABLE_SHARED
882 CROSSCOMPILING_FALSE
883 CROSSCOMPILING_TRUE
884 BLANK_AT_MAKETIME
885 CURL_NETWORK_AND_TIME_LIBS
886 CURL_NETWORK_LIBS
887 LIBCURL_LIBS
888 SONAME_BUMP_FALSE
889 SONAME_BUMP_TRUE
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_LIBSSH2
914 LIBMETALINK_CPPFLAGS
915 LIBMETALINK_LDFLAGS
916 LIBMETALINK_LIBS
917 USE_LIBPSL_FALSE
918 USE_LIBPSL_TRUE
919 CURL_CA_BUNDLE
920 SSL_ENABLED
921 USE_AXTLS
922 NSS_LIBS
923 USE_NSS
924 USE_CYASSL
925 USE_MBEDTLS
926 USE_POLARSSL
927 HAVE_GNUTLS_SRP
928 USE_GNUTLS_NETTLE
929 USE_GNUTLS
930 HAVE_OPENSSL_SRP
931 RANDOM_FILE
932 SSL_LIBS
933 USE_DARWINSSL
934 USE_WINDOWS_SSPI
935 USE_SCHANNEL
936 USE_OPENLDAP
937 ZLIB_LIBS
938 HAVE_LIBZ_FALSE
939 HAVE_LIBZ_TRUE
940 HAVE_LIBZ
941 PKGCONFIG
942 CURL_DISABLE_GOPHER
943 CURL_DISABLE_SMTP
944 CURL_DISABLE_SMB
945 CURL_DISABLE_IMAP
946 CURL_DISABLE_POP3
947 CURL_DISABLE_TFTP
948 CURL_DISABLE_TELNET
949 CURL_DISABLE_DICT
950 CURL_DISABLE_PROXY
951 HAVE_LDAP_SSL
952 CURL_DISABLE_LDAPS
953 CURL_DISABLE_LDAP
954 CURL_DISABLE_FILE
955 CURL_DISABLE_FTP
956 CURL_DISABLE_RTSP
957 CURL_DISABLE_HTTP
958 DOING_NATIVE_WINDOWS_FALSE
959 DOING_NATIVE_WINDOWS_TRUE
960 BUILD_UNITTESTS_FALSE
961 BUILD_UNITTESTS_TRUE
962 CURLDEBUG_FALSE
963 CURLDEBUG_TRUE
964 USE_EXPLICIT_LIB_DEPS_FALSE
965 USE_EXPLICIT_LIB_DEPS_TRUE
966 REQUIRE_LIB_DEPS
967 CPPFLAG_CURL_STATICLIB
968 USE_CPPFLAG_CURL_STATICLIB_FALSE
969 USE_CPPFLAG_CURL_STATICLIB_TRUE
970 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
971 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
972 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
973 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
974 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
975 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
976 LT_SYS_LIBRARY_PATH
977 OTOOL64
978 OTOOL
979 LIPO
980 NMEDIT
981 DSYMUTIL
982 MANIFEST_TOOL
983 RANLIB
984 ac_ct_AR
985 LN_S
986 NM
987 ac_ct_DUMPBIN
988 DUMPBIN
989 LD
990 FGREP
991 LIBTOOL
992 OBJDUMP
993 DLLTOOL
994 AS
995 host_os
996 host_vendor
997 host_cpu
998 host
999 build_os
1000 build_vendor
1001 build_cpu
1002 build
1003 PKGADD_VENDOR
1004 PKGADD_NAME
1005 PKGADD_PKG
1006 VERSIONNUM
1007 CURLVERSION
1008 am__fastdepCC_FALSE
1009 am__fastdepCC_TRUE
1010 CCDEPMODE
1011 am__nodep
1012 AMDEPBACKSLASH
1013 AMDEP_FALSE
1014 AMDEP_TRUE
1015 am__quote
1016 am__include
1017 DEPDIR
1018 am__untar
1019 am__tar
1020 AMTAR
1021 am__leading_dot
1022 SET_MAKE
1023 AWK
1024 mkdir_p
1025 MKDIR_P
1026 INSTALL_STRIP_PROGRAM
1027 STRIP
1028 install_sh
1029 MAKEINFO
1030 AUTOHEADER
1031 AUTOMAKE
1032 AUTOCONF
1033 ACLOCAL
1034 VERSION
1035 PACKAGE
1036 CYGPATH_W
1037 am__isrc
1038 CPP
1039 OBJEXT
1040 EXEEXT
1041 ac_ct_CC
1042 CPPFLAGS
1043 LDFLAGS
1044 CFLAGS
1045 CC
1046 INSTALL_DATA
1047 INSTALL_SCRIPT
1048 INSTALL_PROGRAM
1049 libext
1050 AR
1051 EGREP
1052 GREP
1053 SED
1054 CURL_CFLAG_EXTRAS
1055 CONFIGURE_OPTIONS
1056 AM_BACKSLASH
1057 AM_DEFAULT_VERBOSITY
1058 AM_DEFAULT_V
1059 AM_V
1060 MAINT
1061 MAINTAINER_MODE_FALSE
1062 MAINTAINER_MODE_TRUE
1063 target_alias
1064 host_alias
1065 build_alias
1066 LIBS
1067 ECHO_T
1068 ECHO_N
1069 ECHO_C
1070 DEFS
1071 mandir
1072 localedir
1073 libdir
1074 psdir
1075 pdfdir
1076 dvidir
1077 htmldir
1078 infodir
1079 docdir
1080 oldincludedir
1081 includedir
1082 runstatedir
1083 localstatedir
1084 sharedstatedir
1085 sysconfdir
1086 datadir
1087 datarootdir
1088 libexecdir
1089 sbindir
1090 bindir
1091 program_transform_name
1092 prefix
1093 exec_prefix
1094 PACKAGE_URL
1095 PACKAGE_BUGREPORT
1096 PACKAGE_STRING
1097 PACKAGE_VERSION
1098 PACKAGE_TARNAME
1099 PACKAGE_NAME
1100 SHELL
1101 PATH_SEPARATOR'
1102 ac_subst_files=''
1103 ac_user_opts='
1104 enable_option_checking
1105 enable_maintainer_mode
1106 enable_silent_rules
1107 enable_debug
1108 enable_optimize
1109 enable_warnings
1110 enable_werror
1111 enable_curldebug
1112 enable_symbol_hiding
1113 enable_hidden_symbols
1114 enable_ares
1115 enable_rt
1116 enable_dependency_tracking
1117 enable_largefile
1118 enable_shared
1119 enable_static
1120 with_pic
1121 enable_fast_install
1122 with_aix_soname
1123 with_gnu_ld
1124 with_sysroot
1125 enable_libtool_lock
1126 enable_http
1127 enable_ftp
1128 enable_file
1129 enable_ldap
1130 enable_ldaps
1131 enable_rtsp
1132 enable_proxy
1133 enable_dict
1134 enable_telnet
1135 enable_tftp
1136 enable_pop3
1137 enable_imap
1138 enable_smb
1139 enable_smtp
1140 enable_gopher
1141 enable_manual
1142 enable_libcurl_option
1143 enable_libgcc
1144 with_zlib
1145 with_ldap_lib
1146 with_lber_lib
1147 enable_ipv6
1148 with_gssapi_includes
1149 with_gssapi_libs
1150 with_gssapi
1151 with_winssl
1152 with_darwinssl
1153 with_ssl
1154 with_egd_socket
1155 with_random
1156 with_gnutls
1157 with_polarssl
1158 with_mbedtls
1159 with_cyassl
1160 with_nss
1161 with_axtls
1162 with_ca_bundle
1163 with_ca_path
1164 with_ca_fallback
1165 with_libpsl
1166 with_libmetalink
1167 with_libssh2
1168 with_librtmp
1169 enable_versioned_symbols
1170 with_winidn
1171 with_libidn
1172 with_nghttp2
1173 with_zsh_functions_dir
1174 enable_threaded_resolver
1175 enable_verbose
1176 enable_sspi
1177 enable_crypto_auth
1178 enable_ntlm_wb
1179 enable_tls_srp
1180 enable_unix_sockets
1181 enable_cookies
1182 enable_soname_bump
1183 '
1184       ac_precious_vars='build_alias
1185 host_alias
1186 target_alias
1187 CC
1188 CFLAGS
1189 LDFLAGS
1190 LIBS
1191 CPPFLAGS
1192 CPP
1193 LT_SYS_LIBRARY_PATH'
1194 ac_subdirs_all='ares'
1195
1196 # Initialize some variables set by options.
1197 ac_init_help=
1198 ac_init_version=false
1199 ac_unrecognized_opts=
1200 ac_unrecognized_sep=
1201 # The variables have the same names as the options, with
1202 # dashes changed to underlines.
1203 cache_file=/dev/null
1204 exec_prefix=NONE
1205 no_create=
1206 no_recursion=
1207 prefix=NONE
1208 program_prefix=NONE
1209 program_suffix=NONE
1210 program_transform_name=s,x,x,
1211 silent=
1212 site=
1213 srcdir=
1214 verbose=
1215 x_includes=NONE
1216 x_libraries=NONE
1217
1218 # Installation directory options.
1219 # These are left unexpanded so users can "make install exec_prefix=/foo"
1220 # and all the variables that are supposed to be based on exec_prefix
1221 # by default will actually change.
1222 # Use braces instead of parens because sh, perl, etc. also accept them.
1223 # (The list follows the same order as the GNU Coding Standards.)
1224 bindir='${exec_prefix}/bin'
1225 sbindir='${exec_prefix}/sbin'
1226 libexecdir='${exec_prefix}/libexec'
1227 datarootdir='${prefix}/share'
1228 datadir='${datarootdir}'
1229 sysconfdir='${prefix}/etc'
1230 sharedstatedir='${prefix}/com'
1231 localstatedir='${prefix}/var'
1232 runstatedir='${localstatedir}/run'
1233 includedir='${prefix}/include'
1234 oldincludedir='/usr/include'
1235 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1236 infodir='${datarootdir}/info'
1237 htmldir='${docdir}'
1238 dvidir='${docdir}'
1239 pdfdir='${docdir}'
1240 psdir='${docdir}'
1241 libdir='${exec_prefix}/lib'
1242 localedir='${datarootdir}/locale'
1243 mandir='${datarootdir}/man'
1244
1245 ac_prev=
1246 ac_dashdash=
1247 for ac_option
1248 do
1249   # If the previous option needs an argument, assign it.
1250   if test -n "$ac_prev"; then
1251     eval $ac_prev=\$ac_option
1252     ac_prev=
1253     continue
1254   fi
1255
1256   case $ac_option in
1257   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1258   *=)   ac_optarg= ;;
1259   *)    ac_optarg=yes ;;
1260   esac
1261
1262   # Accept the important Cygnus configure options, so we can diagnose typos.
1263
1264   case $ac_dashdash$ac_option in
1265   --)
1266     ac_dashdash=yes ;;
1267
1268   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1269     ac_prev=bindir ;;
1270   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1271     bindir=$ac_optarg ;;
1272
1273   -build | --build | --buil | --bui | --bu)
1274     ac_prev=build_alias ;;
1275   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1276     build_alias=$ac_optarg ;;
1277
1278   -cache-file | --cache-file | --cache-fil | --cache-fi \
1279   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1280     ac_prev=cache_file ;;
1281   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1282   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1283     cache_file=$ac_optarg ;;
1284
1285   --config-cache | -C)
1286     cache_file=config.cache ;;
1287
1288   -datadir | --datadir | --datadi | --datad)
1289     ac_prev=datadir ;;
1290   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1291     datadir=$ac_optarg ;;
1292
1293   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1294   | --dataroo | --dataro | --datar)
1295     ac_prev=datarootdir ;;
1296   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1297   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1298     datarootdir=$ac_optarg ;;
1299
1300   -disable-* | --disable-*)
1301     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1302     # Reject names that are not valid shell variable names.
1303     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304       as_fn_error $? "invalid feature name: $ac_useropt"
1305     ac_useropt_orig=$ac_useropt
1306     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307     case $ac_user_opts in
1308       *"
1309 "enable_$ac_useropt"
1310 "*) ;;
1311       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1312          ac_unrecognized_sep=', ';;
1313     esac
1314     eval enable_$ac_useropt=no ;;
1315
1316   -docdir | --docdir | --docdi | --doc | --do)
1317     ac_prev=docdir ;;
1318   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1319     docdir=$ac_optarg ;;
1320
1321   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1322     ac_prev=dvidir ;;
1323   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1324     dvidir=$ac_optarg ;;
1325
1326   -enable-* | --enable-*)
1327     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1328     # Reject names that are not valid shell variable names.
1329     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330       as_fn_error $? "invalid feature name: $ac_useropt"
1331     ac_useropt_orig=$ac_useropt
1332     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333     case $ac_user_opts in
1334       *"
1335 "enable_$ac_useropt"
1336 "*) ;;
1337       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1338          ac_unrecognized_sep=', ';;
1339     esac
1340     eval enable_$ac_useropt=\$ac_optarg ;;
1341
1342   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1343   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1344   | --exec | --exe | --ex)
1345     ac_prev=exec_prefix ;;
1346   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1347   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1348   | --exec=* | --exe=* | --ex=*)
1349     exec_prefix=$ac_optarg ;;
1350
1351   -gas | --gas | --ga | --g)
1352     # Obsolete; use --with-gas.
1353     with_gas=yes ;;
1354
1355   -help | --help | --hel | --he | -h)
1356     ac_init_help=long ;;
1357   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1358     ac_init_help=recursive ;;
1359   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1360     ac_init_help=short ;;
1361
1362   -host | --host | --hos | --ho)
1363     ac_prev=host_alias ;;
1364   -host=* | --host=* | --hos=* | --ho=*)
1365     host_alias=$ac_optarg ;;
1366
1367   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1368     ac_prev=htmldir ;;
1369   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1370   | --ht=*)
1371     htmldir=$ac_optarg ;;
1372
1373   -includedir | --includedir | --includedi | --included | --include \
1374   | --includ | --inclu | --incl | --inc)
1375     ac_prev=includedir ;;
1376   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1377   | --includ=* | --inclu=* | --incl=* | --inc=*)
1378     includedir=$ac_optarg ;;
1379
1380   -infodir | --infodir | --infodi | --infod | --info | --inf)
1381     ac_prev=infodir ;;
1382   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1383     infodir=$ac_optarg ;;
1384
1385   -libdir | --libdir | --libdi | --libd)
1386     ac_prev=libdir ;;
1387   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1388     libdir=$ac_optarg ;;
1389
1390   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1391   | --libexe | --libex | --libe)
1392     ac_prev=libexecdir ;;
1393   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1394   | --libexe=* | --libex=* | --libe=*)
1395     libexecdir=$ac_optarg ;;
1396
1397   -localedir | --localedir | --localedi | --localed | --locale)
1398     ac_prev=localedir ;;
1399   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1400     localedir=$ac_optarg ;;
1401
1402   -localstatedir | --localstatedir | --localstatedi | --localstated \
1403   | --localstate | --localstat | --localsta | --localst | --locals)
1404     ac_prev=localstatedir ;;
1405   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1406   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1407     localstatedir=$ac_optarg ;;
1408
1409   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1410     ac_prev=mandir ;;
1411   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1412     mandir=$ac_optarg ;;
1413
1414   -nfp | --nfp | --nf)
1415     # Obsolete; use --without-fp.
1416     with_fp=no ;;
1417
1418   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1419   | --no-cr | --no-c | -n)
1420     no_create=yes ;;
1421
1422   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1423   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1424     no_recursion=yes ;;
1425
1426   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1427   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1428   | --oldin | --oldi | --old | --ol | --o)
1429     ac_prev=oldincludedir ;;
1430   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1431   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1432   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1433     oldincludedir=$ac_optarg ;;
1434
1435   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1436     ac_prev=prefix ;;
1437   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1438     prefix=$ac_optarg ;;
1439
1440   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1441   | --program-pre | --program-pr | --program-p)
1442     ac_prev=program_prefix ;;
1443   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1444   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1445     program_prefix=$ac_optarg ;;
1446
1447   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1448   | --program-suf | --program-su | --program-s)
1449     ac_prev=program_suffix ;;
1450   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1451   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1452     program_suffix=$ac_optarg ;;
1453
1454   -program-transform-name | --program-transform-name \
1455   | --program-transform-nam | --program-transform-na \
1456   | --program-transform-n | --program-transform- \
1457   | --program-transform | --program-transfor \
1458   | --program-transfo | --program-transf \
1459   | --program-trans | --program-tran \
1460   | --progr-tra | --program-tr | --program-t)
1461     ac_prev=program_transform_name ;;
1462   -program-transform-name=* | --program-transform-name=* \
1463   | --program-transform-nam=* | --program-transform-na=* \
1464   | --program-transform-n=* | --program-transform-=* \
1465   | --program-transform=* | --program-transfor=* \
1466   | --program-transfo=* | --program-transf=* \
1467   | --program-trans=* | --program-tran=* \
1468   | --progr-tra=* | --program-tr=* | --program-t=*)
1469     program_transform_name=$ac_optarg ;;
1470
1471   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1472     ac_prev=pdfdir ;;
1473   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1474     pdfdir=$ac_optarg ;;
1475
1476   -psdir | --psdir | --psdi | --psd | --ps)
1477     ac_prev=psdir ;;
1478   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1479     psdir=$ac_optarg ;;
1480
1481   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482   | -silent | --silent | --silen | --sile | --sil)
1483     silent=yes ;;
1484
1485   -runstatedir | --runstatedir | --runstatedi | --runstated \
1486   | --runstate | --runstat | --runsta | --runst | --runs \
1487   | --run | --ru | --r)
1488     ac_prev=runstatedir ;;
1489   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1490   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1491   | --run=* | --ru=* | --r=*)
1492     runstatedir=$ac_optarg ;;
1493
1494   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1495     ac_prev=sbindir ;;
1496   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1497   | --sbi=* | --sb=*)
1498     sbindir=$ac_optarg ;;
1499
1500   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1501   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1502   | --sharedst | --shareds | --shared | --share | --shar \
1503   | --sha | --sh)
1504     ac_prev=sharedstatedir ;;
1505   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1506   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1507   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1508   | --sha=* | --sh=*)
1509     sharedstatedir=$ac_optarg ;;
1510
1511   -site | --site | --sit)
1512     ac_prev=site ;;
1513   -site=* | --site=* | --sit=*)
1514     site=$ac_optarg ;;
1515
1516   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1517     ac_prev=srcdir ;;
1518   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1519     srcdir=$ac_optarg ;;
1520
1521   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1522   | --syscon | --sysco | --sysc | --sys | --sy)
1523     ac_prev=sysconfdir ;;
1524   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1525   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1526     sysconfdir=$ac_optarg ;;
1527
1528   -target | --target | --targe | --targ | --tar | --ta | --t)
1529     ac_prev=target_alias ;;
1530   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1531     target_alias=$ac_optarg ;;
1532
1533   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1534     verbose=yes ;;
1535
1536   -version | --version | --versio | --versi | --vers | -V)
1537     ac_init_version=: ;;
1538
1539   -with-* | --with-*)
1540     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1541     # Reject names that are not valid shell variable names.
1542     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1543       as_fn_error $? "invalid package name: $ac_useropt"
1544     ac_useropt_orig=$ac_useropt
1545     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1546     case $ac_user_opts in
1547       *"
1548 "with_$ac_useropt"
1549 "*) ;;
1550       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1551          ac_unrecognized_sep=', ';;
1552     esac
1553     eval with_$ac_useropt=\$ac_optarg ;;
1554
1555   -without-* | --without-*)
1556     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1557     # Reject names that are not valid shell variable names.
1558     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1559       as_fn_error $? "invalid package name: $ac_useropt"
1560     ac_useropt_orig=$ac_useropt
1561     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1562     case $ac_user_opts in
1563       *"
1564 "with_$ac_useropt"
1565 "*) ;;
1566       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1567          ac_unrecognized_sep=', ';;
1568     esac
1569     eval with_$ac_useropt=no ;;
1570
1571   --x)
1572     # Obsolete; use --with-x.
1573     with_x=yes ;;
1574
1575   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1576   | --x-incl | --x-inc | --x-in | --x-i)
1577     ac_prev=x_includes ;;
1578   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1579   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1580     x_includes=$ac_optarg ;;
1581
1582   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1583   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1584     ac_prev=x_libraries ;;
1585   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1586   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1587     x_libraries=$ac_optarg ;;
1588
1589   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1590 Try \`$0 --help' for more information"
1591     ;;
1592
1593   *=*)
1594     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1595     # Reject names that are not valid shell variable names.
1596     case $ac_envvar in #(
1597       '' | [0-9]* | *[!_$as_cr_alnum]* )
1598       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1599     esac
1600     eval $ac_envvar=\$ac_optarg
1601     export $ac_envvar ;;
1602
1603   *)
1604     # FIXME: should be removed in autoconf 3.0.
1605     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1606     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1607       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1608     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1609     ;;
1610
1611   esac
1612 done
1613
1614 if test -n "$ac_prev"; then
1615   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1616   as_fn_error $? "missing argument to $ac_option"
1617 fi
1618
1619 if test -n "$ac_unrecognized_opts"; then
1620   case $enable_option_checking in
1621     no) ;;
1622     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1623     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1624   esac
1625 fi
1626
1627 # Check all directory arguments for consistency.
1628 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1629                 datadir sysconfdir sharedstatedir localstatedir includedir \
1630                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1631                 libdir localedir mandir runstatedir
1632 do
1633   eval ac_val=\$$ac_var
1634   # Remove trailing slashes.
1635   case $ac_val in
1636     */ )
1637       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1638       eval $ac_var=\$ac_val;;
1639   esac
1640   # Be sure to have absolute directory names.
1641   case $ac_val in
1642     [\\/$]* | ?:[\\/]* )  continue;;
1643     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1644   esac
1645   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1646 done
1647
1648 # There might be people who depend on the old broken behavior: `$host'
1649 # used to hold the argument of --host etc.
1650 # FIXME: To remove some day.
1651 build=$build_alias
1652 host=$host_alias
1653 target=$target_alias
1654
1655 # FIXME: To remove some day.
1656 if test "x$host_alias" != x; then
1657   if test "x$build_alias" = x; then
1658     cross_compiling=maybe
1659   elif test "x$build_alias" != "x$host_alias"; then
1660     cross_compiling=yes
1661   fi
1662 fi
1663
1664 ac_tool_prefix=
1665 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1666
1667 test "$silent" = yes && exec 6>/dev/null
1668
1669
1670 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1671 ac_ls_di=`ls -di .` &&
1672 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1673   as_fn_error $? "working directory cannot be determined"
1674 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1675   as_fn_error $? "pwd does not report name of working directory"
1676
1677
1678 # Find the source files, if location was not specified.
1679 if test -z "$srcdir"; then
1680   ac_srcdir_defaulted=yes
1681   # Try the directory containing this script, then the parent directory.
1682   ac_confdir=`$as_dirname -- "$as_myself" ||
1683 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1684          X"$as_myself" : 'X\(//\)[^/]' \| \
1685          X"$as_myself" : 'X\(//\)$' \| \
1686          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1687 $as_echo X"$as_myself" |
1688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1689             s//\1/
1690             q
1691           }
1692           /^X\(\/\/\)[^/].*/{
1693             s//\1/
1694             q
1695           }
1696           /^X\(\/\/\)$/{
1697             s//\1/
1698             q
1699           }
1700           /^X\(\/\).*/{
1701             s//\1/
1702             q
1703           }
1704           s/.*/./; q'`
1705   srcdir=$ac_confdir
1706   if test ! -r "$srcdir/$ac_unique_file"; then
1707     srcdir=..
1708   fi
1709 else
1710   ac_srcdir_defaulted=no
1711 fi
1712 if test ! -r "$srcdir/$ac_unique_file"; then
1713   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1714   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1715 fi
1716 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1717 ac_abs_confdir=`(
1718         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1719         pwd)`
1720 # When building in place, set srcdir=.
1721 if test "$ac_abs_confdir" = "$ac_pwd"; then
1722   srcdir=.
1723 fi
1724 # Remove unnecessary trailing slashes from srcdir.
1725 # Double slashes in file names in object file debugging info
1726 # mess up M-x gdb in Emacs.
1727 case $srcdir in
1728 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1729 esac
1730 for ac_var in $ac_precious_vars; do
1731   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1732   eval ac_env_${ac_var}_value=\$${ac_var}
1733   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1734   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1735 done
1736
1737 #
1738 # Report the --help message.
1739 #
1740 if test "$ac_init_help" = "long"; then
1741   # Omit some internal or obsolete options to make the list less imposing.
1742   # This message is too long to be a string in the A/UX 3.1 sh.
1743   cat <<_ACEOF
1744 \`configure' configures curl - to adapt to many kinds of systems.
1745
1746 Usage: $0 [OPTION]... [VAR=VALUE]...
1747
1748 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1749 VAR=VALUE.  See below for descriptions of some of the useful variables.
1750
1751 Defaults for the options are specified in brackets.
1752
1753 Configuration:
1754   -h, --help              display this help and exit
1755       --help=short        display options specific to this package
1756       --help=recursive    display the short help of all the included packages
1757   -V, --version           display version information and exit
1758   -q, --quiet, --silent   do not print \`checking ...' messages
1759       --cache-file=FILE   cache test results in FILE [disabled]
1760   -C, --config-cache      alias for \`--cache-file=config.cache'
1761   -n, --no-create         do not create output files
1762       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1763
1764 Installation directories:
1765   --prefix=PREFIX         install architecture-independent files in PREFIX
1766                           [$ac_default_prefix]
1767   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1768                           [PREFIX]
1769
1770 By default, \`make install' will install all the files in
1771 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1772 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1773 for instance \`--prefix=\$HOME'.
1774
1775 For better control, use the options below.
1776
1777 Fine tuning of the installation directories:
1778   --bindir=DIR            user executables [EPREFIX/bin]
1779   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1780   --libexecdir=DIR        program executables [EPREFIX/libexec]
1781   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1782   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1783   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1784   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1785   --libdir=DIR            object code libraries [EPREFIX/lib]
1786   --includedir=DIR        C header files [PREFIX/include]
1787   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1788   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1789   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1790   --infodir=DIR           info documentation [DATAROOTDIR/info]
1791   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1792   --mandir=DIR            man documentation [DATAROOTDIR/man]
1793   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1794   --htmldir=DIR           html documentation [DOCDIR]
1795   --dvidir=DIR            dvi documentation [DOCDIR]
1796   --pdfdir=DIR            pdf documentation [DOCDIR]
1797   --psdir=DIR             ps documentation [DOCDIR]
1798 _ACEOF
1799
1800   cat <<\_ACEOF
1801
1802 Program names:
1803   --program-prefix=PREFIX            prepend PREFIX to installed program names
1804   --program-suffix=SUFFIX            append SUFFIX to installed program names
1805   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1806
1807 System types:
1808   --build=BUILD     configure for building on BUILD [guessed]
1809   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1810 _ACEOF
1811 fi
1812
1813 if test -n "$ac_init_help"; then
1814   case $ac_init_help in
1815      short | recursive ) echo "Configuration of curl -:";;
1816    esac
1817   cat <<\_ACEOF
1818
1819 Optional Features:
1820   --disable-option-checking  ignore unrecognized --enable/--with options
1821   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1822   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1823   --enable-maintainer-mode
1824                           enable make rules and dependencies not useful (and
1825                           sometimes confusing) to the casual installer
1826   --enable-silent-rules   less verbose build output (undo: "make V=1")
1827   --disable-silent-rules  verbose build output (undo: "make V=0")
1828   --enable-debug          Enable debug build options
1829   --disable-debug         Disable debug build options
1830   --enable-optimize       Enable compiler optimizations
1831   --disable-optimize      Disable compiler optimizations
1832   --enable-warnings       Enable strict compiler warnings
1833   --disable-warnings      Disable strict compiler warnings
1834   --enable-werror         Enable compiler warnings as errors
1835   --disable-werror        Disable compiler warnings as errors
1836   --enable-curldebug      Enable curl debug memory tracking
1837   --disable-curldebug     Disable curl debug memory tracking
1838   --enable-symbol-hiding  Enable hiding of library internal symbols
1839   --disable-symbol-hiding Disable hiding of library internal symbols
1840   --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1841   --disable-hidden-symbols
1842                           To be deprecated, use --disable-symbol-hiding
1843   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1844   --disable-ares          Disable c-ares for DNS lookups
1845   --disable-rt            disable dependency on -lrt
1846   --enable-dependency-tracking
1847                           do not reject slow dependency extractors
1848   --disable-dependency-tracking
1849                           speeds up one-time build
1850   --disable-largefile     omit support for large files
1851   --enable-shared[=PKGS]  build shared libraries [default=yes]
1852   --enable-static[=PKGS]  build static libraries [default=yes]
1853   --enable-fast-install[=PKGS]
1854                           optimize for fast installation [default=yes]
1855   --disable-libtool-lock  avoid locking (might break parallel builds)
1856   --enable-http           Enable HTTP support
1857   --disable-http          Disable HTTP support
1858   --enable-ftp            Enable FTP support
1859   --disable-ftp           Disable FTP support
1860   --enable-file           Enable FILE support
1861   --disable-file          Disable FILE support
1862   --enable-ldap           Enable LDAP support
1863   --disable-ldap          Disable LDAP support
1864   --enable-ldaps          Enable LDAPS support
1865   --disable-ldaps         Disable LDAPS support
1866   --enable-rtsp           Enable RTSP support
1867   --disable-rtsp          Disable RTSP support
1868   --enable-proxy          Enable proxy support
1869   --disable-proxy         Disable proxy support
1870   --enable-dict           Enable DICT support
1871   --disable-dict          Disable DICT support
1872   --enable-telnet         Enable TELNET support
1873   --disable-telnet        Disable TELNET support
1874   --enable-tftp           Enable TFTP support
1875   --disable-tftp          Disable TFTP support
1876   --enable-pop3           Enable POP3 support
1877   --disable-pop3          Disable POP3 support
1878   --enable-imap           Enable IMAP support
1879   --disable-imap          Disable IMAP support
1880   --enable-smb            Enable SMB/CIFS support
1881   --disable-smb           Disable SMB/CIFS support
1882   --enable-smtp           Enable SMTP support
1883   --disable-smtp          Disable SMTP support
1884   --enable-gopher         Enable Gopher support
1885   --disable-gopher        Disable Gopher support
1886   --enable-manual         Enable built-in manual
1887   --disable-manual        Disable built-in manual
1888   --enable-libcurl-option Enable --libcurl C code generation support
1889   --disable-libcurl-option
1890                           Disable --libcurl C code generation support
1891   --enable-libgcc         use libgcc when linking
1892   --enable-ipv6           Enable IPv6 (with IPv4) support
1893   --disable-ipv6          Disable IPv6 support
1894   --enable-versioned-symbols
1895                           Enable versioned symbols in shared library
1896   --disable-versioned-symbols
1897                           Disable versioned symbols in shared library
1898   --enable-threaded-resolver
1899                           Enable threaded resolver
1900   --disable-threaded-resolver
1901                           Disable threaded resolver
1902   --enable-verbose        Enable verbose strings
1903   --disable-verbose       Disable verbose strings
1904   --enable-sspi           Enable SSPI
1905   --disable-sspi          Disable SSPI
1906   --enable-crypto-auth    Enable cryptographic authentication
1907   --disable-crypto-auth   Disable cryptographic authentication
1908   --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1909                           helper, where FILE is ntlm_auth's absolute filename
1910                           (default: /usr/bin/ntlm_auth)
1911   --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
1912                           helper
1913   --enable-tls-srp        Enable TLS-SRP authentication
1914   --disable-tls-srp       Disable TLS-SRP authentication
1915   --enable-unix-sockets   Enable Unix domain sockets
1916   --disable-unix-sockets  Disable Unix domain sockets
1917   --enable-cookies        Enable cookies support
1918   --disable-cookies       Disable cookies support
1919   --enable-soname-bump    Enable enforced SONAME bump
1920   --disable-soname-bump   Disable enforced SONAME bump
1921
1922 Optional Packages:
1923   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1924   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1925   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1926                           both]
1927   --with-aix-soname=aix|svr4|both
1928                           shared library versioning (aka "SONAME") variant to
1929                           provide on AIX, [default=aix].
1930   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1931   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1932                           compiler's sysroot if not specified).
1933   --with-zlib=PATH        search for zlib in PATH
1934   --without-zlib          disable use of zlib
1935   --with-ldap-lib=libname Specify name of ldap lib file
1936   --with-lber-lib=libname Specify name of lber lib file
1937   --with-gssapi-includes=DIR
1938                           Specify location of GSS-API headers
1939   --with-gssapi-libs=DIR  Specify location of GSS-API libs
1940   --with-gssapi=DIR       Where to look for GSS-API
1941   --with-winssl           enable Windows native SSL/TLS
1942   --without-winssl        disable Windows native SSL/TLS
1943   --with-darwinssl        enable iOS/Mac OS X native SSL/TLS
1944   --without-darwinssl     disable iOS/Mac OS X native SSL/TLS
1945   --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
1946                           installation (default: /usr/local/ssl); when
1947                           possible, set the PKG_CONFIG_PATH environment
1948                           variable instead of using this option
1949   --without-ssl           disable OpenSSL
1950   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1951   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1952   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
1953                           installation root
1954   --without-gnutls        disable GnuTLS detection
1955   --with-polarssl=PATH    where to look for PolarSSL, PATH points to the
1956                           installation root
1957   --without-polarssl      disable PolarSSL detection
1958   --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
1959                           installation root
1960   --without-mbedtls       disable mbedTLS detection
1961   --with-cyassl=PATH      where to look for CyaSSL, PATH points to the
1962                           installation root (default: system lib default)
1963   --without-cyassl        disable CyaSSL detection
1964   --with-nss=PATH         where to look for NSS, PATH points to the
1965                           installation root
1966   --without-nss           disable NSS detection
1967   --with-axtls=PATH       Where to look for axTLS, PATH points to the axTLS
1968                           installation prefix (default: /usr/local). Ignored
1969                           if another SSL engine is selected.
1970   --without-axtls         disable axTLS
1971   --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
1972                           /etc/ca-bundle.crt)
1973   --without-ca-bundle     Don't use a default CA bundle
1974   --with-ca-path=DIRECTORY
1975                           Path to a directory containing CA certificates
1976                           stored individually, with their filenames in a hash
1977                           format. This option can be used with OpenSSL, GnuTLS
1978                           and PolarSSL backends. Refer to OpenSSL c_rehash for
1979                           details. (example: /etc/certificates)
1980   --without-ca-path       Don't use a default CA path
1981   --with-ca-fallback      Use the built in CA store of the SSL library
1982   --without-ca-fallback   Don't use the built in CA store of the SSL library
1983   --without-libpsl        disable support for libpsl cookie checking
1984   --with-libmetalink=PATH where to look for libmetalink, PATH points to the
1985                           installation root
1986   --without-libmetalink   disable libmetalink detection
1987   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
1988                           LIBSSH2 installation; when possible, set the
1989                           PKG_CONFIG_PATH environment variable instead of
1990                           using this option
1991   --without-libssh2       disable LIBSSH2
1992   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
1993                           LIBRTMP installation; when possible, set the
1994                           PKG_CONFIG_PATH environment variable instead of
1995                           using this option
1996   --without-librtmp       disable LIBRTMP
1997   --with-winidn=PATH      enable Windows native IDN
1998   --without-winidn        disable Windows native IDN
1999   --with-libidn=PATH      Enable libidn usage
2000   --without-libidn        Disable libidn usage
2001   --with-nghttp2=PATH     Enable nghttp2 usage
2002   --without-nghttp2       Disable nghttp2 usage
2003   --with-zsh-functions-dir=PATH
2004                           Install zsh completions to PATH
2005   --without-zsh-functions-dir
2006                           Do not install zsh completions
2007
2008 Some influential environment variables:
2009   CC          C compiler command
2010   CFLAGS      C compiler flags
2011   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2012               nonstandard directory <lib dir>
2013   LIBS        libraries to pass to the linker, e.g. -l<library>
2014   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2015               you have headers in a nonstandard directory <include dir>
2016   CPP         C preprocessor
2017   LT_SYS_LIBRARY_PATH
2018               User-defined run-time library search path.
2019
2020 Use these variables to override the choices made by `configure' or to help
2021 it to find libraries and programs with nonstandard names/locations.
2022
2023 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2024 _ACEOF
2025 ac_status=$?
2026 fi
2027
2028 if test "$ac_init_help" = "recursive"; then
2029   # If there are subdirs, report their specific --help.
2030   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2031     test -d "$ac_dir" ||
2032       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2033       continue
2034     ac_builddir=.
2035
2036 case "$ac_dir" in
2037 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2038 *)
2039   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2040   # A ".." for each directory in $ac_dir_suffix.
2041   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2042   case $ac_top_builddir_sub in
2043   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2044   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2045   esac ;;
2046 esac
2047 ac_abs_top_builddir=$ac_pwd
2048 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2049 # for backward compatibility:
2050 ac_top_builddir=$ac_top_build_prefix
2051
2052 case $srcdir in
2053   .)  # We are building in place.
2054     ac_srcdir=.
2055     ac_top_srcdir=$ac_top_builddir_sub
2056     ac_abs_top_srcdir=$ac_pwd ;;
2057   [\\/]* | ?:[\\/]* )  # Absolute name.
2058     ac_srcdir=$srcdir$ac_dir_suffix;
2059     ac_top_srcdir=$srcdir
2060     ac_abs_top_srcdir=$srcdir ;;
2061   *) # Relative name.
2062     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2063     ac_top_srcdir=$ac_top_build_prefix$srcdir
2064     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2065 esac
2066 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2067
2068     cd "$ac_dir" || { ac_status=$?; continue; }
2069     # Check for guested configure.
2070     if test -f "$ac_srcdir/configure.gnu"; then
2071       echo &&
2072       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2073     elif test -f "$ac_srcdir/configure"; then
2074       echo &&
2075       $SHELL "$ac_srcdir/configure" --help=recursive
2076     else
2077       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2078     fi || ac_status=$?
2079     cd "$ac_pwd" || { ac_status=$?; break; }
2080   done
2081 fi
2082
2083 test -n "$ac_init_help" && exit $ac_status
2084 if $ac_init_version; then
2085   cat <<\_ACEOF
2086 curl configure -
2087 generated by GNU Autoconf 2.69
2088
2089 Copyright (C) 2012 Free Software Foundation, Inc.
2090 This configure script is free software; the Free Software Foundation
2091 gives unlimited permission to copy, distribute and modify it.
2092
2093 Copyright (c) 1998 - 2016 Daniel Stenberg, <daniel@haxx.se>
2094 This configure script may be copied, distributed and modified under the
2095 terms of the curl license; see COPYING for more details
2096 _ACEOF
2097   exit
2098 fi
2099
2100 ## ------------------------ ##
2101 ## Autoconf initialization. ##
2102 ## ------------------------ ##
2103
2104 # ac_fn_c_try_compile LINENO
2105 # --------------------------
2106 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2107 ac_fn_c_try_compile ()
2108 {
2109   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110   rm -f conftest.$ac_objext
2111   if { { ac_try="$ac_compile"
2112 case "(($ac_try" in
2113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114   *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118   (eval "$ac_compile") 2>conftest.err
2119   ac_status=$?
2120   if test -s conftest.err; then
2121     grep -v '^ *+' conftest.err >conftest.er1
2122     cat conftest.er1 >&5
2123     mv -f conftest.er1 conftest.err
2124   fi
2125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126   test $ac_status = 0; } && {
2127          test -z "$ac_c_werror_flag" ||
2128          test ! -s conftest.err
2129        } && test -s conftest.$ac_objext; then :
2130   ac_retval=0
2131 else
2132   $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2134
2135         ac_retval=1
2136 fi
2137   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138   as_fn_set_status $ac_retval
2139
2140 } # ac_fn_c_try_compile
2141
2142 # ac_fn_c_try_cpp LINENO
2143 # ----------------------
2144 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2145 ac_fn_c_try_cpp ()
2146 {
2147   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148   if { { ac_try="$ac_cpp conftest.$ac_ext"
2149 case "(($ac_try" in
2150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151   *) ac_try_echo=$ac_try;;
2152 esac
2153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 $as_echo "$ac_try_echo"; } >&5
2155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2156   ac_status=$?
2157   if test -s conftest.err; then
2158     grep -v '^ *+' conftest.err >conftest.er1
2159     cat conftest.er1 >&5
2160     mv -f conftest.er1 conftest.err
2161   fi
2162   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163   test $ac_status = 0; } > conftest.i && {
2164          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2165          test ! -s conftest.err
2166        }; then :
2167   ac_retval=0
2168 else
2169   $as_echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2171
2172     ac_retval=1
2173 fi
2174   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175   as_fn_set_status $ac_retval
2176
2177 } # ac_fn_c_try_cpp
2178
2179 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2180 # -------------------------------------------------------
2181 # Tests whether HEADER exists and can be compiled using the include files in
2182 # INCLUDES, setting the cache variable VAR accordingly.
2183 ac_fn_c_check_header_compile ()
2184 {
2185   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if eval \${$3+:} false; then :
2189   $as_echo_n "(cached) " >&6
2190 else
2191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 $4
2194 #include <$2>
2195 _ACEOF
2196 if ac_fn_c_try_compile "$LINENO"; then :
2197   eval "$3=yes"
2198 else
2199   eval "$3=no"
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 fi
2203 eval ac_res=\$$3
2204                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205 $as_echo "$ac_res" >&6; }
2206   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207
2208 } # ac_fn_c_check_header_compile
2209
2210 # ac_fn_c_try_run LINENO
2211 # ----------------------
2212 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2213 # that executables *can* be run.
2214 ac_fn_c_try_run ()
2215 {
2216   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217   if { { ac_try="$ac_link"
2218 case "(($ac_try" in
2219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220   *) ac_try_echo=$ac_try;;
2221 esac
2222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 $as_echo "$ac_try_echo"; } >&5
2224   (eval "$ac_link") 2>&5
2225   ac_status=$?
2226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2228   { { case "(($ac_try" in
2229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230   *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234   (eval "$ac_try") 2>&5
2235   ac_status=$?
2236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237   test $ac_status = 0; }; }; then :
2238   ac_retval=0
2239 else
2240   $as_echo "$as_me: program exited with status $ac_status" >&5
2241        $as_echo "$as_me: failed program was:" >&5
2242 sed 's/^/| /' conftest.$ac_ext >&5
2243
2244        ac_retval=$ac_status
2245 fi
2246   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248   as_fn_set_status $ac_retval
2249
2250 } # ac_fn_c_try_run
2251
2252 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2253 # --------------------------------------------
2254 # Tries to find the compile-time value of EXPR in a program that includes
2255 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2256 # computed
2257 ac_fn_c_compute_int ()
2258 {
2259   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260   if test "$cross_compiling" = yes; then
2261     # Depending upon the size, compute the lo and hi bounds.
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h.  */
2264 $4
2265 int main (void)
2266 {
2267 static int test_array [1 - 2 * !(($2) >= 0)];
2268 test_array [0] = 0;
2269 return test_array [0];
2270
2271  ;
2272  return 0;
2273 }
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276   ac_lo=0 ac_mid=0
2277   while :; do
2278     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h.  */
2280 $4
2281 int main (void)
2282 {
2283 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2284 test_array [0] = 0;
2285 return test_array [0];
2286
2287  ;
2288  return 0;
2289 }
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292   ac_hi=$ac_mid; break
2293 else
2294   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2295                         if test $ac_lo -le $ac_mid; then
2296                           ac_lo= ac_hi=
2297                           break
2298                         fi
2299                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2300 fi
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302   done
2303 else
2304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 $4
2307 int main (void)
2308 {
2309 static int test_array [1 - 2 * !(($2) < 0)];
2310 test_array [0] = 0;
2311 return test_array [0];
2312
2313  ;
2314  return 0;
2315 }
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"; then :
2318   ac_hi=-1 ac_mid=-1
2319   while :; do
2320     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h.  */
2322 $4
2323 int main (void)
2324 {
2325 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2326 test_array [0] = 0;
2327 return test_array [0];
2328
2329  ;
2330  return 0;
2331 }
2332 _ACEOF
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334   ac_lo=$ac_mid; break
2335 else
2336   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2337                         if test $ac_mid -le $ac_hi; then
2338                           ac_lo= ac_hi=
2339                           break
2340                         fi
2341                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2342 fi
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344   done
2345 else
2346   ac_lo= ac_hi=
2347 fi
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 fi
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 # Binary search between lo and hi bounds.
2352 while test "x$ac_lo" != "x$ac_hi"; do
2353   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2356 $4
2357 int main (void)
2358 {
2359 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2360 test_array [0] = 0;
2361 return test_array [0];
2362
2363  ;
2364  return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_c_try_compile "$LINENO"; then :
2368   ac_hi=$ac_mid
2369 else
2370   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2371 fi
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 done
2374 case $ac_lo in #((
2375 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2376 '') ac_retval=1 ;;
2377 esac
2378   else
2379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h.  */
2381 $4
2382 static long int longval () { return $2; }
2383 static unsigned long int ulongval () { return $2; }
2384 #include <stdio.h>
2385 #include <stdlib.h>
2386 int main (void)
2387 {
2388
2389   FILE *f = fopen ("conftest.val", "w");
2390   if (! f)
2391     return 1;
2392   if (($2) < 0)
2393     {
2394       long int i = longval ();
2395       if (i != ($2))
2396         return 1;
2397       fprintf (f, "%ld", i);
2398     }
2399   else
2400     {
2401       unsigned long int i = ulongval ();
2402       if (i != ($2))
2403         return 1;
2404       fprintf (f, "%lu", i);
2405     }
2406   /* Do not output a trailing newline, as this causes \r\n confusion
2407      on some platforms.  */
2408   return ferror (f) || fclose (f) != 0;
2409
2410  ;
2411  return 0;
2412 }
2413 _ACEOF
2414 if ac_fn_c_try_run "$LINENO"; then :
2415   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2416 else
2417   ac_retval=1
2418 fi
2419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2420   conftest.$ac_objext conftest.beam conftest.$ac_ext
2421 rm -f conftest.val
2422
2423   fi
2424   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2425   as_fn_set_status $ac_retval
2426
2427 } # ac_fn_c_compute_int
2428
2429 # ac_fn_c_try_link LINENO
2430 # -----------------------
2431 # Try to link conftest.$ac_ext, and return whether this succeeded.
2432 ac_fn_c_try_link ()
2433 {
2434   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435   rm -f conftest.$ac_objext conftest$ac_exeext
2436   if { { ac_try="$ac_link"
2437 case "(($ac_try" in
2438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439   *) ac_try_echo=$ac_try;;
2440 esac
2441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2442 $as_echo "$ac_try_echo"; } >&5
2443   (eval "$ac_link") 2>conftest.err
2444   ac_status=$?
2445   if test -s conftest.err; then
2446     grep -v '^ *+' conftest.err >conftest.er1
2447     cat conftest.er1 >&5
2448     mv -f conftest.er1 conftest.err
2449   fi
2450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451   test $ac_status = 0; } && {
2452          test -z "$ac_c_werror_flag" ||
2453          test ! -s conftest.err
2454        } && test -s conftest$ac_exeext && {
2455          test "$cross_compiling" = yes ||
2456          test -x conftest$ac_exeext
2457        }; then :
2458   ac_retval=0
2459 else
2460   $as_echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463         ac_retval=1
2464 fi
2465   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2466   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2467   # interfere with the next link command; also delete a directory that is
2468   # left behind by Apple's compiler.  We do this before executing the actions.
2469   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2470   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2471   as_fn_set_status $ac_retval
2472
2473 } # ac_fn_c_try_link
2474
2475 # ac_fn_c_check_func LINENO FUNC VAR
2476 # ----------------------------------
2477 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2478 ac_fn_c_check_func ()
2479 {
2480   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2482 $as_echo_n "checking for $2... " >&6; }
2483 if eval \${$3+:} false; then :
2484   $as_echo_n "(cached) " >&6
2485 else
2486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h.  */
2488
2489 #define $2 innocuous_$2
2490 #ifdef __STDC__
2491 # include <limits.h>
2492 #else
2493 # include <assert.h>
2494 #endif
2495 #undef $2
2496 #ifdef __cplusplus
2497 extern "C"
2498 #endif
2499 char $2 ();
2500 #if defined __stub_$2 || defined __stub___$2
2501 choke me
2502 #endif
2503
2504 int main (void)
2505 {
2506 return $2 ();
2507  ;
2508  return 0;
2509 }
2510 _ACEOF
2511 if ac_fn_c_try_link "$LINENO"; then :
2512   eval "$3=yes"
2513 else
2514   eval "$3=no"
2515 fi
2516 rm -f core conftest.err conftest.$ac_objext \
2517     conftest$ac_exeext conftest.$ac_ext
2518 fi
2519 eval ac_res=\$$3
2520                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2521 $as_echo "$ac_res" >&6; }
2522   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2523
2524 } # ac_fn_c_check_func
2525
2526 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2527 # -------------------------------------------------------
2528 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2529 # the include files in INCLUDES and setting the cache variable VAR
2530 # accordingly.
2531 ac_fn_c_check_header_mongrel ()
2532 {
2533   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534   if eval \${$3+:} false; then :
2535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 $as_echo_n "checking for $2... " >&6; }
2537 if eval \${$3+:} false; then :
2538   $as_echo_n "(cached) " >&6
2539 fi
2540 eval ac_res=\$$3
2541                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 else
2544   # Is the header compilable?
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2546 $as_echo_n "checking $2 usability... " >&6; }
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h.  */
2549 $4
2550 #include <$2>
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553   ac_header_compiler=yes
2554 else
2555   ac_header_compiler=no
2556 fi
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2559 $as_echo "$ac_header_compiler" >&6; }
2560
2561 # Is the header present?
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2563 $as_echo_n "checking $2 presence... " >&6; }
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h.  */
2566 #include <$2>
2567 _ACEOF
2568 if ac_fn_c_try_cpp "$LINENO"; then :
2569   ac_header_preproc=yes
2570 else
2571   ac_header_preproc=no
2572 fi
2573 rm -f conftest.err conftest.i conftest.$ac_ext
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2575 $as_echo "$ac_header_preproc" >&6; }
2576
2577 # So?  What about this header?
2578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2579   yes:no: )
2580     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2581 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2582     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2583 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2584     ;;
2585   no:yes:* )
2586     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2587 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2588     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2589 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2590     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2591 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2592     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2593 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2594     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2595 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2596 ( $as_echo "## ----------------------------------------------------------------------- ##
2597 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2598 ## ----------------------------------------------------------------------- ##"
2599      ) | sed "s/^/$as_me: WARNING:     /" >&2
2600     ;;
2601 esac
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603 $as_echo_n "checking for $2... " >&6; }
2604 if eval \${$3+:} false; then :
2605   $as_echo_n "(cached) " >&6
2606 else
2607   eval "$3=\$ac_header_compiler"
2608 fi
2609 eval ac_res=\$$3
2610                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611 $as_echo "$ac_res" >&6; }
2612 fi
2613   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2614
2615 } # ac_fn_c_check_header_mongrel
2616
2617 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2618 # -------------------------------------------
2619 # Tests whether TYPE exists after having included INCLUDES, setting cache
2620 # variable VAR accordingly.
2621 ac_fn_c_check_type ()
2622 {
2623   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2625 $as_echo_n "checking for $2... " >&6; }
2626 if eval \${$3+:} false; then :
2627   $as_echo_n "(cached) " >&6
2628 else
2629   eval "$3=no"
2630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h.  */
2632 $4
2633 int main (void)
2634 {
2635 if (sizeof ($2))
2636          return 0;
2637  ;
2638  return 0;
2639 }
2640 _ACEOF
2641 if ac_fn_c_try_compile "$LINENO"; then :
2642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2643 /* end confdefs.h.  */
2644 $4
2645 int main (void)
2646 {
2647 if (sizeof (($2)))
2648             return 0;
2649  ;
2650  return 0;
2651 }
2652 _ACEOF
2653 if ac_fn_c_try_compile "$LINENO"; then :
2654
2655 else
2656   eval "$3=yes"
2657 fi
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 fi
2660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 fi
2662 eval ac_res=\$$3
2663                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2664 $as_echo "$ac_res" >&6; }
2665   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2666
2667 } # ac_fn_c_check_type
2668
2669 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2670 # ----------------------------------------------------
2671 # Tries to find if the field MEMBER exists in type AGGR, after including
2672 # INCLUDES, setting cache variable VAR accordingly.
2673 ac_fn_c_check_member ()
2674 {
2675   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2677 $as_echo_n "checking for $2.$3... " >&6; }
2678 if eval \${$4+:} false; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h.  */
2683 $5
2684 int main (void)
2685 {
2686 static $2 ac_aggr;
2687 if (ac_aggr.$3)
2688 return 0;
2689  ;
2690  return 0;
2691 }
2692 _ACEOF
2693 if ac_fn_c_try_compile "$LINENO"; then :
2694   eval "$4=yes"
2695 else
2696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h.  */
2698 $5
2699 int main (void)
2700 {
2701 static $2 ac_aggr;
2702 if (sizeof ac_aggr.$3)
2703 return 0;
2704  ;
2705  return 0;
2706 }
2707 _ACEOF
2708 if ac_fn_c_try_compile "$LINENO"; then :
2709   eval "$4=yes"
2710 else
2711   eval "$4=no"
2712 fi
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714 fi
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716 fi
2717 eval ac_res=\$$4
2718                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2719 $as_echo "$ac_res" >&6; }
2720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2721
2722 } # ac_fn_c_check_member
2723 cat >config.log <<_ACEOF
2724 This file contains any messages produced by compilers while
2725 running configure, to aid debugging if configure makes a mistake.
2726
2727 It was created by curl $as_me -, which was
2728 generated by GNU Autoconf 2.69.  Invocation command line was
2729
2730   $ $0 $@
2731
2732 _ACEOF
2733 exec 5>>config.log
2734 {
2735 cat <<_ASUNAME
2736 ## --------- ##
2737 ## Platform. ##
2738 ## --------- ##
2739
2740 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2741 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2742 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2743 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2744 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2745
2746 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2747 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2748
2749 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2750 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2751 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2752 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2753 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2754 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2755 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2756
2757 _ASUNAME
2758
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762   IFS=$as_save_IFS
2763   test -z "$as_dir" && as_dir=.
2764     $as_echo "PATH: $as_dir"
2765   done
2766 IFS=$as_save_IFS
2767
2768 } >&5
2769
2770 cat >&5 <<_ACEOF
2771
2772
2773 ## ----------- ##
2774 ## Core tests. ##
2775 ## ----------- ##
2776
2777 _ACEOF
2778
2779
2780 # Keep a trace of the command line.
2781 # Strip out --no-create and --no-recursion so they do not pile up.
2782 # Strip out --silent because we don't want to record it for future runs.
2783 # Also quote any args containing shell meta-characters.
2784 # Make two passes to allow for proper duplicate-argument suppression.
2785 ac_configure_args=
2786 ac_configure_args0=
2787 ac_configure_args1=
2788 ac_must_keep_next=false
2789 for ac_pass in 1 2
2790 do
2791   for ac_arg
2792   do
2793     case $ac_arg in
2794     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2795     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2796     | -silent | --silent | --silen | --sile | --sil)
2797       continue ;;
2798     *\'*)
2799       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2800     esac
2801     case $ac_pass in
2802     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2803     2)
2804       as_fn_append ac_configure_args1 " '$ac_arg'"
2805       if test $ac_must_keep_next = true; then
2806         ac_must_keep_next=false # Got value, back to normal.
2807       else
2808         case $ac_arg in
2809           *=* | --config-cache | -C | -disable-* | --disable-* \
2810           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2811           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2812           | -with-* | --with-* | -without-* | --without-* | --x)
2813             case "$ac_configure_args0 " in
2814               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2815             esac
2816             ;;
2817           -* ) ac_must_keep_next=true ;;
2818         esac
2819       fi
2820       as_fn_append ac_configure_args " '$ac_arg'"
2821       ;;
2822     esac
2823   done
2824 done
2825 { ac_configure_args0=; unset ac_configure_args0;}
2826 { ac_configure_args1=; unset ac_configure_args1;}
2827
2828 # When interrupted or exit'd, cleanup temporary files, and complete
2829 # config.log.  We remove comments because anyway the quotes in there
2830 # would cause problems or look ugly.
2831 # WARNING: Use '\'' to represent an apostrophe within the trap.
2832 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2833 trap 'exit_status=$?
2834   # Save into config.log some information that might help in debugging.
2835   {
2836     echo
2837
2838     $as_echo "## ---------------- ##
2839 ## Cache variables. ##
2840 ## ---------------- ##"
2841     echo
2842     # The following way of writing the cache mishandles newlines in values,
2843 (
2844   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2845     eval ac_val=\$$ac_var
2846     case $ac_val in #(
2847     *${as_nl}*)
2848       case $ac_var in #(
2849       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2850 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2851       esac
2852       case $ac_var in #(
2853       _ | IFS | as_nl) ;; #(
2854       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2855       *) { eval $ac_var=; unset $ac_var;} ;;
2856       esac ;;
2857     esac
2858   done
2859   (set) 2>&1 |
2860     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2861     *${as_nl}ac_space=\ *)
2862       sed -n \
2863         "s/'\''/'\''\\\\'\'''\''/g;
2864           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2865       ;; #(
2866     *)
2867       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2868       ;;
2869     esac |
2870     sort
2871 )
2872     echo
2873
2874     $as_echo "## ----------------- ##
2875 ## Output variables. ##
2876 ## ----------------- ##"
2877     echo
2878     for ac_var in $ac_subst_vars
2879     do
2880       eval ac_val=\$$ac_var
2881       case $ac_val in
2882       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2883       esac
2884       $as_echo "$ac_var='\''$ac_val'\''"
2885     done | sort
2886     echo
2887
2888     if test -n "$ac_subst_files"; then
2889       $as_echo "## ------------------- ##
2890 ## File substitutions. ##
2891 ## ------------------- ##"
2892       echo
2893       for ac_var in $ac_subst_files
2894       do
2895         eval ac_val=\$$ac_var
2896         case $ac_val in
2897         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2898         esac
2899         $as_echo "$ac_var='\''$ac_val'\''"
2900       done | sort
2901       echo
2902     fi
2903
2904     if test -s confdefs.h; then
2905       $as_echo "## ----------- ##
2906 ## confdefs.h. ##
2907 ## ----------- ##"
2908       echo
2909       cat confdefs.h
2910       echo
2911     fi
2912     test "$ac_signal" != 0 &&
2913       $as_echo "$as_me: caught signal $ac_signal"
2914     $as_echo "$as_me: exit $exit_status"
2915   } >&5
2916   rm -f core *.core core.conftest.* &&
2917     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2918     exit $exit_status
2919 ' 0
2920 for ac_signal in 1 2 13 15; do
2921   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2922 done
2923 ac_signal=0
2924
2925 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2926 rm -f -r conftest* confdefs.h
2927
2928 $as_echo "/* confdefs.h */" > confdefs.h
2929
2930 # Predefined preprocessor variables.
2931
2932 cat >>confdefs.h <<_ACEOF
2933 #define PACKAGE_NAME "$PACKAGE_NAME"
2934 _ACEOF
2935
2936 cat >>confdefs.h <<_ACEOF
2937 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2938 _ACEOF
2939
2940 cat >>confdefs.h <<_ACEOF
2941 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2942 _ACEOF
2943
2944 cat >>confdefs.h <<_ACEOF
2945 #define PACKAGE_STRING "$PACKAGE_STRING"
2946 _ACEOF
2947
2948 cat >>confdefs.h <<_ACEOF
2949 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2950 _ACEOF
2951
2952 cat >>confdefs.h <<_ACEOF
2953 #define PACKAGE_URL "$PACKAGE_URL"
2954 _ACEOF
2955
2956
2957 # Let the site file select an alternate cache file if it wants to.
2958 # Prefer an explicitly selected file to automatically selected ones.
2959 ac_site_file1=NONE
2960 ac_site_file2=NONE
2961 if test -n "$CONFIG_SITE"; then
2962   # We do not want a PATH search for config.site.
2963   case $CONFIG_SITE in #((
2964     -*)  ac_site_file1=./$CONFIG_SITE;;
2965     */*) ac_site_file1=$CONFIG_SITE;;
2966     *)   ac_site_file1=./$CONFIG_SITE;;
2967   esac
2968 elif test "x$prefix" != xNONE; then
2969   ac_site_file1=$prefix/share/config.site
2970   ac_site_file2=$prefix/etc/config.site
2971 else
2972   ac_site_file1=$ac_default_prefix/share/config.site
2973   ac_site_file2=$ac_default_prefix/etc/config.site
2974 fi
2975 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2976 do
2977   test "x$ac_site_file" = xNONE && continue
2978   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2979     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2980 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2981     sed 's/^/| /' "$ac_site_file" >&5
2982     . "$ac_site_file" \
2983       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985 as_fn_error $? "failed to load site script $ac_site_file
2986 See \`config.log' for more details" "$LINENO" 5; }
2987   fi
2988 done
2989
2990 if test -r "$cache_file"; then
2991   # Some versions of bash will fail to source /dev/null (special files
2992   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2993   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2994     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2995 $as_echo "$as_me: loading cache $cache_file" >&6;}
2996     case $cache_file in
2997       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2998       *)                      . "./$cache_file";;
2999     esac
3000   fi
3001 else
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3003 $as_echo "$as_me: creating cache $cache_file" >&6;}
3004   >$cache_file
3005 fi
3006
3007 # Check that the precious variables saved in the cache have kept the same
3008 # value.
3009 ac_cache_corrupted=false
3010 for ac_var in $ac_precious_vars; do
3011   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3012   eval ac_new_set=\$ac_env_${ac_var}_set
3013   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3014   eval ac_new_val=\$ac_env_${ac_var}_value
3015   case $ac_old_set,$ac_new_set in
3016     set,)
3017       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3018 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3019       ac_cache_corrupted=: ;;
3020     ,set)
3021       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3022 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3023       ac_cache_corrupted=: ;;
3024     ,);;
3025     *)
3026       if test "x$ac_old_val" != "x$ac_new_val"; then
3027         # differences in whitespace do not lead to failure.
3028         ac_old_val_w=`echo x $ac_old_val`
3029         ac_new_val_w=`echo x $ac_new_val`
3030         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3031           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3032 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3033           ac_cache_corrupted=:
3034         else
3035           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3036 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3037           eval $ac_var=\$ac_old_val
3038         fi
3039         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3040 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3041         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3042 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3043       fi;;
3044   esac
3045   # Pass precious variables to config.status.
3046   if test "$ac_new_set" = set; then
3047     case $ac_new_val in
3048     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3049     *) ac_arg=$ac_var=$ac_new_val ;;
3050     esac
3051     case " $ac_configure_args " in
3052       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3053       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3054     esac
3055   fi
3056 done
3057 if $ac_cache_corrupted; then
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3061 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3062   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3063 fi
3064 ## -------------------- ##
3065 ## Main body of script. ##
3066 ## -------------------- ##
3067
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073
3074
3075
3076
3077
3078
3079
3080 # using curl-override.m4
3081
3082
3083
3084
3085
3086 ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
3087
3088
3089
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3091 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3092     # Check whether --enable-maintainer-mode was given.
3093 if test "${enable_maintainer_mode+set}" = set; then :
3094   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3095 else
3096   USE_MAINTAINER_MODE=no
3097 fi
3098
3099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3100 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3101    if test $USE_MAINTAINER_MODE = yes; then
3102   MAINTAINER_MODE_TRUE=
3103   MAINTAINER_MODE_FALSE='#'
3104 else
3105   MAINTAINER_MODE_TRUE='#'
3106   MAINTAINER_MODE_FALSE=
3107 fi
3108
3109   MAINT=$MAINTAINER_MODE_TRUE
3110
3111
3112 # Check whether --enable-silent-rules was given.
3113 if test "${enable_silent_rules+set}" = set; then :
3114   enableval=$enable_silent_rules;
3115 fi
3116
3117 case $enable_silent_rules in # (((
3118   yes) AM_DEFAULT_VERBOSITY=0;;
3119    no) AM_DEFAULT_VERBOSITY=1;;
3120     *) AM_DEFAULT_VERBOSITY=0;;
3121 esac
3122 am_make=${MAKE-make}
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3124 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3125 if ${am_cv_make_support_nested_variables+:} false; then :
3126   $as_echo_n "(cached) " >&6
3127 else
3128   if $as_echo 'TRUE=$(BAR$(V))
3129 BAR0=false
3130 BAR1=true
3131 V=1
3132 am__doit:
3133         @$(TRUE)
3134 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3135   am_cv_make_support_nested_variables=yes
3136 else
3137   am_cv_make_support_nested_variables=no
3138 fi
3139 fi
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3141 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3142 if test $am_cv_make_support_nested_variables = yes; then
3143     AM_V='$(V)'
3144   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3145 else
3146   AM_V=$AM_DEFAULT_VERBOSITY
3147   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3148 fi
3149 AM_BACKSLASH='\'
3150
3151
3152
3153         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3154 $as_echo_n "checking whether to enable debug build options... " >&6; }
3155   OPT_DEBUG_BUILD="default"
3156   # Check whether --enable-debug was given.
3157 if test "${enable_debug+set}" = set; then :
3158   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3159 fi
3160
3161   case "$OPT_DEBUG_BUILD" in
3162     no)
3163             want_debug="no"
3164       ;;
3165     default)
3166             want_debug="no"
3167       ;;
3168     *)
3169             want_debug="yes"
3170       ;;
3171   esac
3172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3173 $as_echo "$want_debug" >&6; }
3174
3175
3176       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3177 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3178   OPT_COMPILER_OPTIMIZE="default"
3179   # Check whether --enable-optimize was given.
3180 if test "${enable_optimize+set}" = set; then :
3181   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3182 fi
3183
3184   case "$OPT_COMPILER_OPTIMIZE" in
3185     no)
3186                               want_optimize="no"
3187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189       ;;
3190     default)
3191                                                                         if test "$want_debug" = "yes"; then
3192         want_optimize="assume_no"
3193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3194 $as_echo "(assumed) no" >&6; }
3195       else
3196         want_optimize="assume_yes"
3197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3198 $as_echo "(assumed) yes" >&6; }
3199       fi
3200       ;;
3201     *)
3202                               want_optimize="yes"
3203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204 $as_echo "yes" >&6; }
3205       ;;
3206   esac
3207
3208
3209         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3210 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3211   OPT_COMPILER_WARNINGS="default"
3212   # Check whether --enable-warnings was given.
3213 if test "${enable_warnings+set}" = set; then :
3214   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3215 fi
3216
3217   case "$OPT_COMPILER_WARNINGS" in
3218     no)
3219             want_warnings="no"
3220       ;;
3221     default)
3222                   want_warnings="$want_debug"
3223       ;;
3224     *)
3225             want_warnings="yes"
3226       ;;
3227   esac
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3229 $as_echo "$want_warnings" >&6; }
3230
3231
3232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3233 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3234   OPT_COMPILER_WERROR="default"
3235   # Check whether --enable-werror was given.
3236 if test "${enable_werror+set}" = set; then :
3237   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3238 fi
3239
3240   case "$OPT_COMPILER_WERROR" in
3241     no)
3242             want_werror="no"
3243       ;;
3244     default)
3245             want_werror="no"
3246       ;;
3247     *)
3248             want_werror="yes"
3249       ;;
3250   esac
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3252 $as_echo "$want_werror" >&6; }
3253
3254
3255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3256 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3257   OPT_CURLDEBUG_BUILD="default"
3258   # Check whether --enable-curldebug was given.
3259 if test "${enable_curldebug+set}" = set; then :
3260   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3261 fi
3262
3263   case "$OPT_CURLDEBUG_BUILD" in
3264     no)
3265             want_curldebug="no"
3266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268       ;;
3269     default)
3270                                           if test "$want_debug" = "yes"; then
3271         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3272 $as_echo "(assumed) yes" >&6; }
3273       else
3274         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276       fi
3277       want_curldebug_assumed="yes"
3278       want_curldebug="$want_debug"
3279       ;;
3280     *)
3281                                                       want_curldebug="yes"
3282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283 $as_echo "yes" >&6; }
3284       ;;
3285   esac
3286
3287
3288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3289 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3290   OPT_SYMBOL_HIDING="default"
3291   # Check whether --enable-symbol-hiding was given.
3292 if test "${enable_symbol_hiding+set}" = set; then :
3293   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3294 fi
3295
3296   # Check whether --enable-hidden-symbols was given.
3297 if test "${enable_hidden_symbols+set}" = set; then :
3298   enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3299 fi
3300
3301   case "$OPT_SYMBOL_HIDING" in
3302     no)
3303                               want_symbol_hiding="no"
3304       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306       ;;
3307     default)
3308                   want_symbol_hiding="yes"
3309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3311       ;;
3312     *)
3313                         want_symbol_hiding="yes"
3314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315 $as_echo "yes" >&6; }
3316       ;;
3317   esac
3318
3319
3320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3321 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3322   OPT_ARES="default"
3323   # Check whether --enable-ares was given.
3324 if test "${enable_ares+set}" = set; then :
3325   enableval=$enable_ares; OPT_ARES=$enableval
3326 fi
3327
3328   case "$OPT_ARES" in
3329     no)
3330             want_ares="no"
3331       ;;
3332     default)
3333             want_ares="no"
3334       ;;
3335     *)
3336             want_ares="yes"
3337       if test -n "$enableval" && test "$enableval" != "yes"; then
3338         want_ares_path="$enableval"
3339       fi
3340       ;;
3341   esac
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3343 $as_echo "$want_ares" >&6; }
3344
3345
3346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3347 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3348   OPT_RT="default"
3349   # Check whether --enable-rt was given.
3350 if test "${enable_rt+set}" = set; then :
3351   enableval=$enable_rt; OPT_RT=$enableval
3352 fi
3353
3354   case "$OPT_RT" in
3355     no)
3356             dontwant_rt="yes"
3357       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3358 $as_echo "yes" >&6; }
3359       ;;
3360     default)
3361             dontwant_rt="no"
3362       { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3363 $as_echo "(assumed no)" >&6; }
3364       ;;
3365     *)
3366             dontwant_rt="no"
3367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369       ;;
3370   esac
3371     if test "$dontwant_rt" = "yes" && test "$want_thres" = "yes" ; then
3372     as_fn_error $? "options --disable-rt and --enable-thread-resolver are mutually exclusive, at most one can be selected." "$LINENO" 5
3373   fi
3374
3375
3376 #
3377 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3378 #
3379
3380 if test -z "$xc_configure_preamble_result"; then
3381   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3382 fi
3383
3384 #
3385 # Check that 'PATH_SEPARATOR' has already been set.
3386 #
3387
3388 if test -z "$xc_PATH_SEPARATOR"; then
3389   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3390 fi
3391 if test -z "$PATH_SEPARATOR"; then
3392   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3395 $as_echo_n "checking for path separator... " >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3397 $as_echo "$PATH_SEPARATOR" >&6; }
3398 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3400 $as_echo_n "checking for initial path separator... " >&6; }
3401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3402 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3403   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3404 fi
3405
3406
3407 #
3408 # save the configure arguments
3409 #
3410 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3411
3412
3413 CURL_CFLAG_EXTRAS=""
3414 if test X"$want_werror" = Xyes; then
3415   CURL_CFLAG_EXTRAS="-Werror"
3416 fi
3417
3418
3419 if test -z "$SED"; then
3420     # Extract the first word of "sed", so it can be a program name with args.
3421 set dummy sed; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_path_SED+:} false; then :
3425   $as_echo_n "(cached) " >&6
3426 else
3427   case $SED in
3428   [\\/]* | ?:[\\/]*)
3429   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3430   ;;
3431   *)
3432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3434 for as_dir in $as_dummy
3435 do
3436   IFS=$as_save_IFS
3437   test -z "$as_dir" && as_dir=.
3438     for ac_exec_ext in '' $ac_executable_extensions; do
3439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442     break 2
3443   fi
3444 done
3445   done
3446 IFS=$as_save_IFS
3447
3448   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3449   ;;
3450 esac
3451 fi
3452 SED=$ac_cv_path_SED
3453 if test -n "$SED"; then
3454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3455 $as_echo "$SED" >&6; }
3456 else
3457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3459 fi
3460
3461
3462   if test -z "$SED" || test "$SED" = "not_found"; then
3463     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3464   fi
3465 fi
3466
3467
3468 if test -z "$GREP"; then
3469     # Extract the first word of "grep", so it can be a program name with args.
3470 set dummy grep; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_path_GREP+:} false; then :
3474   $as_echo_n "(cached) " >&6
3475 else
3476   case $GREP in
3477   [\\/]* | ?:[\\/]*)
3478   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3479   ;;
3480   *)
3481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3483 for as_dir in $as_dummy
3484 do
3485   IFS=$as_save_IFS
3486   test -z "$as_dir" && as_dir=.
3487     for ac_exec_ext in '' $ac_executable_extensions; do
3488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491     break 2
3492   fi
3493 done
3494   done
3495 IFS=$as_save_IFS
3496
3497   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3498   ;;
3499 esac
3500 fi
3501 GREP=$ac_cv_path_GREP
3502 if test -n "$GREP"; then
3503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3504 $as_echo "$GREP" >&6; }
3505 else
3506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3508 fi
3509
3510
3511   if test -z "$GREP" || test "$GREP" = "not_found"; then
3512     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3513   fi
3514 fi
3515
3516
3517 if test -z "$EGREP"; then
3518     if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3520 $as_echo_n "checking for egrep... " >&6; }
3521     EGREP="$GREP -E"
3522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3523 $as_echo "$EGREP" >&6; }
3524   else
3525     # Extract the first word of "egrep", so it can be a program name with args.
3526 set dummy egrep; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_path_EGREP+:} false; then :
3530   $as_echo_n "(cached) " >&6
3531 else
3532   case $EGREP in
3533   [\\/]* | ?:[\\/]*)
3534   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3535   ;;
3536   *)
3537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3539 for as_dir in $as_dummy
3540 do
3541   IFS=$as_save_IFS
3542   test -z "$as_dir" && as_dir=.
3543     for ac_exec_ext in '' $ac_executable_extensions; do
3544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547     break 2
3548   fi
3549 done
3550   done
3551 IFS=$as_save_IFS
3552
3553   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3554   ;;
3555 esac
3556 fi
3557 EGREP=$ac_cv_path_EGREP
3558 if test -n "$EGREP"; then
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3560 $as_echo "$EGREP" >&6; }
3561 else
3562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 fi
3565
3566
3567   fi
3568 fi
3569 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3570   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3571 fi
3572
3573
3574 if test -z "$AR"; then
3575     if test -n "$ac_tool_prefix"; then
3576   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}ar; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_path_AR+:} false; then :
3581   $as_echo_n "(cached) " >&6
3582 else
3583   case $AR in
3584   [\\/]* | ?:[\\/]*)
3585   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3586   ;;
3587   *)
3588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3590 for as_dir in $as_dummy
3591 do
3592   IFS=$as_save_IFS
3593   test -z "$as_dir" && as_dir=.
3594     for ac_exec_ext in '' $ac_executable_extensions; do
3595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598     break 2
3599   fi
3600 done
3601   done
3602 IFS=$as_save_IFS
3603
3604   ;;
3605 esac
3606 fi
3607 AR=$ac_cv_path_AR
3608 if test -n "$AR"; then
3609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3610 $as_echo "$AR" >&6; }
3611 else
3612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3614 fi
3615
3616
3617 fi
3618 if test -z "$ac_cv_path_AR"; then
3619   ac_pt_AR=$AR
3620   # Extract the first word of "ar", so it can be a program name with args.
3621 set dummy ar; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if ${ac_cv_path_ac_pt_AR+:} false; then :
3625   $as_echo_n "(cached) " >&6
3626 else
3627   case $ac_pt_AR in
3628   [\\/]* | ?:[\\/]*)
3629   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3630   ;;
3631   *)
3632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3634 for as_dir in $as_dummy
3635 do
3636   IFS=$as_save_IFS
3637   test -z "$as_dir" && as_dir=.
3638     for ac_exec_ext in '' $ac_executable_extensions; do
3639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3640     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642     break 2
3643   fi
3644 done
3645   done
3646 IFS=$as_save_IFS
3647
3648   ;;
3649 esac
3650 fi
3651 ac_pt_AR=$ac_cv_path_ac_pt_AR
3652 if test -n "$ac_pt_AR"; then
3653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3654 $as_echo "$ac_pt_AR" >&6; }
3655 else
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 fi
3659
3660   if test "x$ac_pt_AR" = x; then
3661     AR="not_found"
3662   else
3663     case $cross_compiling:$ac_tool_warned in
3664 yes:)
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3667 ac_tool_warned=yes ;;
3668 esac
3669     AR=$ac_pt_AR
3670   fi
3671 else
3672   AR="$ac_cv_path_AR"
3673 fi
3674
3675   if test -z "$AR" || test "$AR" = "not_found"; then
3676     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3677   fi
3678 fi
3679
3680
3681
3682
3683 if test -f ${srcdir}/include/curl/curlbuild.h; then
3684   rm -f ${srcdir}/include/curl/curlbuild.h
3685 fi
3686
3687 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3688
3689   xc_prog_cc_prev_IFS=$IFS
3690   xc_prog_cc_prev_LIBS=$LIBS
3691   xc_prog_cc_prev_CFLAGS=$CFLAGS
3692   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3693   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3694
3695
3696
3697   xc_bad_var_libs=no
3698   for xc_word in $LIBS; do
3699     case "$xc_word" in
3700       -l* | --library=*)
3701         :
3702         ;;
3703       *)
3704         xc_bad_var_libs=yes
3705         ;;
3706     esac
3707   done
3708   if test $xc_bad_var_libs = yes; then
3709     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3710 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3711     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3712 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3713   fi
3714
3715
3716   xc_bad_var_ldflags=no
3717   for xc_word in $LDFLAGS; do
3718     case "$xc_word" in
3719       -D*)
3720         xc_bad_var_ldflags=yes
3721         ;;
3722       -U*)
3723         xc_bad_var_ldflags=yes
3724         ;;
3725       -I*)
3726         xc_bad_var_ldflags=yes
3727         ;;
3728       -l* | --library=*)
3729         xc_bad_var_ldflags=yes
3730         ;;
3731     esac
3732   done
3733   if test $xc_bad_var_ldflags = yes; then
3734     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3735 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3736     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3737     for xc_word in $LDFLAGS; do
3738       case "$xc_word" in
3739         -D*)
3740           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3741 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3742           ;;
3743         -U*)
3744           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3745 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3746           ;;
3747         -I*)
3748           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3749 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3750           ;;
3751         -l* | --library=*)
3752           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3753 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3754           ;;
3755       esac
3756     done
3757   fi
3758
3759
3760   xc_bad_var_cppflags=no
3761   for xc_word in $CPPFLAGS; do
3762     case "$xc_word" in
3763       -rpath*)
3764         xc_bad_var_cppflags=yes
3765         ;;
3766       -L* | --library-path=*)
3767         xc_bad_var_cppflags=yes
3768         ;;
3769       -l* | --library=*)
3770         xc_bad_var_cppflags=yes
3771         ;;
3772     esac
3773   done
3774   if test $xc_bad_var_cppflags = yes; then
3775     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3776 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3777     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3778     for xc_word in $CPPFLAGS; do
3779       case "$xc_word" in
3780         -rpath*)
3781           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3782 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3783           ;;
3784         -L* | --library-path=*)
3785           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3786 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3787           ;;
3788         -l* | --library=*)
3789           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3790 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3791           ;;
3792       esac
3793     done
3794   fi
3795
3796
3797   xc_bad_var_cflags=no
3798   for xc_word in $CFLAGS; do
3799     case "$xc_word" in
3800       -D*)
3801         xc_bad_var_cflags=yes
3802         ;;
3803       -U*)
3804         xc_bad_var_cflags=yes
3805         ;;
3806       -I*)
3807         xc_bad_var_cflags=yes
3808         ;;
3809       -rpath*)
3810         xc_bad_var_cflags=yes
3811         ;;
3812       -L* | --library-path=*)
3813         xc_bad_var_cflags=yes
3814         ;;
3815       -l* | --library=*)
3816         xc_bad_var_cflags=yes
3817         ;;
3818     esac
3819   done
3820   if test $xc_bad_var_cflags = yes; then
3821     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3822 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3823     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3824     for xc_word in $CFLAGS; do
3825       case "$xc_word" in
3826         -D*)
3827           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3828 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3829           ;;
3830         -U*)
3831           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3832 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3833           ;;
3834         -I*)
3835           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3836 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3837           ;;
3838         -rpath*)
3839           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3840 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3841           ;;
3842         -L* | --library-path=*)
3843           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3844 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3845           ;;
3846         -l* | --library=*)
3847           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3848 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3849           ;;
3850       esac
3851     done
3852   fi
3853
3854   if test $xc_bad_var_libs = yes ||
3855      test $xc_bad_var_cflags = yes ||
3856      test $xc_bad_var_ldflags = yes ||
3857      test $xc_bad_var_cppflags = yes; then
3858      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3859 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3860   fi
3861
3862 ac_aux_dir=
3863 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3864   if test -f "$ac_dir/install-sh"; then
3865     ac_aux_dir=$ac_dir
3866     ac_install_sh="$ac_aux_dir/install-sh -c"
3867     break
3868   elif test -f "$ac_dir/install.sh"; then
3869     ac_aux_dir=$ac_dir
3870     ac_install_sh="$ac_aux_dir/install.sh -c"
3871     break
3872   elif test -f "$ac_dir/shtool"; then
3873     ac_aux_dir=$ac_dir
3874     ac_install_sh="$ac_aux_dir/shtool install -c"
3875     break
3876   fi
3877 done
3878 if test -z "$ac_aux_dir"; then
3879   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3880 fi
3881
3882 # These three variables are undocumented and unsupported,
3883 # and are intended to be withdrawn in a future Autoconf release.
3884 # They can cause serious problems if a builder's source tree is in a directory
3885 # whose full name contains unusual characters.
3886 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3887 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3888 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3889
3890
3891 # Find a good install program.  We prefer a C program (faster),
3892 # so one script is as good as another.  But avoid the broken or
3893 # incompatible versions:
3894 # SysV /etc/install, /usr/sbin/install
3895 # SunOS /usr/etc/install
3896 # IRIX /sbin/install
3897 # AIX /bin/install
3898 # AmigaOS /C/install, which installs bootblocks on floppy discs
3899 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3900 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3901 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3902 # OS/2's system install, which has a completely different semantic
3903 # ./install, which can be erroneously created by make from ./install.sh.
3904 # Reject install programs that cannot install multiple files.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3906 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3907 if test -z "$INSTALL"; then
3908 if ${ac_cv_path_install+:} false; then :
3909   $as_echo_n "(cached) " >&6
3910 else
3911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916     # Account for people who put trailing slashes in PATH elements.
3917 case $as_dir/ in #((
3918   ./ | .// | /[cC]/* | \
3919   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3920   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3921   /usr/ucb/* ) ;;
3922   *)
3923     # OSF1 and SCO ODT 3.0 have their own names for install.
3924     # Don't use installbsd from OSF since it installs stuff as root
3925     # by default.
3926     for ac_prog in ginstall scoinst install; do
3927       for ac_exec_ext in '' $ac_executable_extensions; do
3928         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3929           if test $ac_prog = install &&
3930             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3931             # AIX install.  It has an incompatible calling convention.
3932             :
3933           elif test $ac_prog = install &&
3934             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3935             # program-specific install script used by HP pwplus--don't use.
3936             :
3937           else
3938             rm -rf conftest.one conftest.two conftest.dir
3939             echo one > conftest.one
3940             echo two > conftest.two
3941             mkdir conftest.dir
3942             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3943               test -s conftest.one && test -s conftest.two &&
3944               test -s conftest.dir/conftest.one &&
3945               test -s conftest.dir/conftest.two
3946             then
3947               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3948               break 3
3949             fi
3950           fi
3951         fi
3952       done
3953     done
3954     ;;
3955 esac
3956
3957   done
3958 IFS=$as_save_IFS
3959
3960 rm -rf conftest.one conftest.two conftest.dir
3961
3962 fi
3963   if test "${ac_cv_path_install+set}" = set; then
3964     INSTALL=$ac_cv_path_install
3965   else
3966     # As a last resort, use the slow shell script.  Don't cache a
3967     # value for INSTALL within a source directory, because that will
3968     # break other packages using the cache if that directory is
3969     # removed, or if the value is a relative name.
3970     INSTALL=$ac_install_sh
3971   fi
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3974 $as_echo "$INSTALL" >&6; }
3975
3976 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3977 # It thinks the first close brace ends the variable substitution.
3978 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3979
3980 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3981
3982 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3983
3984 # Expand $ac_aux_dir to an absolute path.
3985 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3986
3987 ac_ext=c
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992 if test -n "$ac_tool_prefix"; then
3993   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3994 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_prog_CC+:} false; then :
3998   $as_echo_n "(cached) " >&6
3999 else
4000   if test -n "$CC"; then
4001   ac_cv_prog_CC="$CC" # Let the user override the test.
4002 else
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4005 do
4006   IFS=$as_save_IFS
4007   test -z "$as_dir" && as_dir=.
4008     for ac_exec_ext in '' $ac_executable_extensions; do
4009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012     break 2
4013   fi
4014 done
4015   done
4016 IFS=$as_save_IFS
4017
4018 fi
4019 fi
4020 CC=$ac_cv_prog_CC
4021 if test -n "$CC"; then
4022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4023 $as_echo "$CC" >&6; }
4024 else
4025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4027 fi
4028
4029
4030 fi
4031 if test -z "$ac_cv_prog_CC"; then
4032   ac_ct_CC=$CC
4033   # Extract the first word of "gcc", so it can be a program name with args.
4034 set dummy gcc; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4038   $as_echo_n "(cached) " >&6
4039 else
4040   if test -n "$ac_ct_CC"; then
4041   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4042 else
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046   IFS=$as_save_IFS
4047   test -z "$as_dir" && as_dir=.
4048     for ac_exec_ext in '' $ac_executable_extensions; do
4049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4050     ac_cv_prog_ac_ct_CC="gcc"
4051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052     break 2
4053   fi
4054 done
4055   done
4056 IFS=$as_save_IFS
4057
4058 fi
4059 fi
4060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4061 if test -n "$ac_ct_CC"; then
4062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4063 $as_echo "$ac_ct_CC" >&6; }
4064 else
4065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4067 fi
4068
4069   if test "x$ac_ct_CC" = x; then
4070     CC=""
4071   else
4072     case $cross_compiling:$ac_tool_warned in
4073 yes:)
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4076 ac_tool_warned=yes ;;
4077 esac
4078     CC=$ac_ct_CC
4079   fi
4080 else
4081   CC="$ac_cv_prog_CC"
4082 fi
4083
4084 if test -z "$CC"; then
4085           if test -n "$ac_tool_prefix"; then
4086     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4087 set dummy ${ac_tool_prefix}cc; ac_word=$2
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if ${ac_cv_prog_CC+:} false; then :
4091   $as_echo_n "(cached) " >&6
4092 else
4093   if test -n "$CC"; then
4094   ac_cv_prog_CC="$CC" # Let the user override the test.
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099   IFS=$as_save_IFS
4100   test -z "$as_dir" && as_dir=.
4101     for ac_exec_ext in '' $ac_executable_extensions; do
4102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103     ac_cv_prog_CC="${ac_tool_prefix}cc"
4104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105     break 2
4106   fi
4107 done
4108   done
4109 IFS=$as_save_IFS
4110
4111 fi
4112 fi
4113 CC=$ac_cv_prog_CC
4114 if test -n "$CC"; then
4115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4116 $as_echo "$CC" >&6; }
4117 else
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4120 fi
4121
4122
4123   fi
4124 fi
4125 if test -z "$CC"; then
4126   # Extract the first word of "cc", so it can be a program name with args.
4127 set dummy cc; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_CC+:} false; then :
4131   $as_echo_n "(cached) " >&6
4132 else
4133   if test -n "$CC"; then
4134   ac_cv_prog_CC="$CC" # Let the user override the test.
4135 else
4136   ac_prog_rejected=no
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140   IFS=$as_save_IFS
4141   test -z "$as_dir" && as_dir=.
4142     for ac_exec_ext in '' $ac_executable_extensions; do
4143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4145        ac_prog_rejected=yes
4146        continue
4147      fi
4148     ac_cv_prog_CC="cc"
4149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150     break 2
4151   fi
4152 done
4153   done
4154 IFS=$as_save_IFS
4155
4156 if test $ac_prog_rejected = yes; then
4157   # We found a bogon in the path, so make sure we never use it.
4158   set dummy $ac_cv_prog_CC
4159   shift
4160   if test $# != 0; then
4161     # We chose a different compiler from the bogus one.
4162     # However, it has the same basename, so the bogon will be chosen
4163     # first if we set CC to just the basename; use the full file name.
4164     shift
4165     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4166   fi
4167 fi
4168 fi
4169 fi
4170 CC=$ac_cv_prog_CC
4171 if test -n "$CC"; then
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4173 $as_echo "$CC" >&6; }
4174 else
4175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4177 fi
4178
4179
4180 fi
4181 if test -z "$CC"; then
4182   if test -n "$ac_tool_prefix"; then
4183   for ac_prog in cl.exe
4184   do
4185     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if ${ac_cv_prog_CC+:} false; then :
4190   $as_echo_n "(cached) " >&6
4191 else
4192   if test -n "$CC"; then
4193   ac_cv_prog_CC="$CC" # Let the user override the test.
4194 else
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4197 do
4198   IFS=$as_save_IFS
4199   test -z "$as_dir" && as_dir=.
4200     for ac_exec_ext in '' $ac_executable_extensions; do
4201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204     break 2
4205   fi
4206 done
4207   done
4208 IFS=$as_save_IFS
4209
4210 fi
4211 fi
4212 CC=$ac_cv_prog_CC
4213 if test -n "$CC"; then
4214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4215 $as_echo "$CC" >&6; }
4216 else
4217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 $as_echo "no" >&6; }
4219 fi
4220
4221
4222     test -n "$CC" && break
4223   done
4224 fi
4225 if test -z "$CC"; then
4226   ac_ct_CC=$CC
4227   for ac_prog in cl.exe
4228 do
4229   # Extract the first word of "$ac_prog", so it can be a program name with args.
4230 set dummy $ac_prog; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4234   $as_echo_n "(cached) " >&6
4235 else
4236   if test -n "$ac_ct_CC"; then
4237   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242   IFS=$as_save_IFS
4243   test -z "$as_dir" && as_dir=.
4244     for ac_exec_ext in '' $ac_executable_extensions; do
4245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4246     ac_cv_prog_ac_ct_CC="$ac_prog"
4247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248     break 2
4249   fi
4250 done
4251   done
4252 IFS=$as_save_IFS
4253
4254 fi
4255 fi
4256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4257 if test -n "$ac_ct_CC"; then
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4259 $as_echo "$ac_ct_CC" >&6; }
4260 else
4261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4263 fi
4264
4265
4266   test -n "$ac_ct_CC" && break
4267 done
4268
4269   if test "x$ac_ct_CC" = x; then
4270     CC=""
4271   else
4272     case $cross_compiling:$ac_tool_warned in
4273 yes:)
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4276 ac_tool_warned=yes ;;
4277 esac
4278     CC=$ac_ct_CC
4279   fi
4280 fi
4281
4282 fi
4283
4284
4285 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4287 as_fn_error $? "no acceptable C compiler found in \$PATH
4288 See \`config.log' for more details" "$LINENO" 5; }
4289
4290 # Provide some information about the compiler.
4291 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4292 set X $ac_compile
4293 ac_compiler=$2
4294 for ac_option in --version -v -V -qversion; do
4295   { { ac_try="$ac_compiler $ac_option >&5"
4296 case "(($ac_try" in
4297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298   *) ac_try_echo=$ac_try;;
4299 esac
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 $as_echo "$ac_try_echo"; } >&5
4302   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4303   ac_status=$?
4304   if test -s conftest.err; then
4305     sed '10a\
4306 ... rest of stderr output deleted ...
4307          10q' conftest.err >conftest.er1
4308     cat conftest.er1 >&5
4309   fi
4310   rm -f conftest.er1 conftest.err
4311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312   test $ac_status = 0; }
4313 done
4314
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h.  */
4317
4318 int main (void)
4319 {
4320
4321  ;
4322  return 0;
4323 }
4324 _ACEOF
4325 ac_clean_files_save=$ac_clean_files
4326 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4327 # Try to create an executable without -o first, disregard a.out.
4328 # It will help us diagnose broken compilers, and finding out an intuition
4329 # of exeext.
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4331 $as_echo_n "checking whether the C compiler works... " >&6; }
4332 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4333
4334 # The possible output files:
4335 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4336
4337 ac_rmfiles=
4338 for ac_file in $ac_files
4339 do
4340   case $ac_file in
4341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4342     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4343   esac
4344 done
4345 rm -f $ac_rmfiles
4346
4347 if { { ac_try="$ac_link_default"
4348 case "(($ac_try" in
4349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350   *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354   (eval "$ac_link_default") 2>&5
4355   ac_status=$?
4356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357   test $ac_status = 0; }; then :
4358   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4360 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4361 # so that the user can short-circuit this test for compilers unknown to
4362 # Autoconf.
4363 for ac_file in $ac_files ''
4364 do
4365   test -f "$ac_file" || continue
4366   case $ac_file in
4367     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4368         ;;
4369     [ab].out )
4370         # We found the default executable, but exeext='' is most
4371         # certainly right.
4372         break;;
4373     *.* )
4374         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4375         then :; else
4376            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4377         fi
4378         # We set ac_cv_exeext here because the later test for it is not
4379         # safe: cross compilers may not add the suffix if given an `-o'
4380         # argument, so we may need to know it at that point already.
4381         # Even if this section looks crufty: it has the advantage of
4382         # actually working.
4383         break;;
4384     * )
4385         break;;
4386   esac
4387 done
4388 test "$ac_cv_exeext" = no && ac_cv_exeext=
4389
4390 else
4391   ac_file=''
4392 fi
4393 if test -z "$ac_file"; then :
4394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396 $as_echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4398
4399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4401 as_fn_error 77 "C compiler cannot create executables
4402 See \`config.log' for more details" "$LINENO" 5; }
4403 else
4404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4405 $as_echo "yes" >&6; }
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4408 $as_echo_n "checking for C compiler default output file name... " >&6; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4410 $as_echo "$ac_file" >&6; }
4411 ac_exeext=$ac_cv_exeext
4412
4413 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4414 ac_clean_files=$ac_clean_files_save
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4416 $as_echo_n "checking for suffix of executables... " >&6; }
4417 if { { ac_try="$ac_link"
4418 case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424   (eval "$ac_link") 2>&5
4425   ac_status=$?
4426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427   test $ac_status = 0; }; then :
4428   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4429 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4430 # work properly (i.e., refer to `conftest.exe'), while it won't with
4431 # `rm'.
4432 for ac_file in conftest.exe conftest conftest.*; do
4433   test -f "$ac_file" || continue
4434   case $ac_file in
4435     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4436     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4437           break;;
4438     * ) break;;
4439   esac
4440 done
4441 else
4442   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4445 See \`config.log' for more details" "$LINENO" 5; }
4446 fi
4447 rm -f conftest conftest$ac_cv_exeext
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4449 $as_echo "$ac_cv_exeext" >&6; }
4450
4451 rm -f conftest.$ac_ext
4452 EXEEXT=$ac_cv_exeext
4453 ac_exeext=$EXEEXT
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h.  */
4456 #include <stdio.h>
4457 int main (void)
4458 {
4459 FILE *f = fopen ("conftest.out", "w");
4460  return ferror (f) || fclose (f) != 0;
4461
4462  ;
4463  return 0;
4464 }
4465 _ACEOF
4466 ac_clean_files="$ac_clean_files conftest.out"
4467 # Check that the compiler produces executables we can run.  If not, either
4468 # the compiler is broken, or we cross compile.
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4470 $as_echo_n "checking whether we are cross compiling... " >&6; }
4471 if test "$cross_compiling" != yes; then
4472   { { ac_try="$ac_link"
4473 case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479   (eval "$ac_link") 2>&5
4480   ac_status=$?
4481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482   test $ac_status = 0; }
4483   if { ac_try='./conftest$ac_cv_exeext'
4484   { { case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490   (eval "$ac_try") 2>&5
4491   ac_status=$?
4492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493   test $ac_status = 0; }; }; then
4494     cross_compiling=no
4495   else
4496     if test "$cross_compiling" = maybe; then
4497         cross_compiling=yes
4498     else
4499         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4501 as_fn_error $? "cannot run C compiled programs.
4502 If you meant to cross compile, use \`--host'.
4503 See \`config.log' for more details" "$LINENO" 5; }
4504     fi
4505   fi
4506 fi
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4508 $as_echo "$cross_compiling" >&6; }
4509
4510 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4511 ac_clean_files=$ac_clean_files_save
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4513 $as_echo_n "checking for suffix of object files... " >&6; }
4514 if ${ac_cv_objext+:} false; then :
4515   $as_echo_n "(cached) " >&6
4516 else
4517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h.  */
4519
4520 int main (void)
4521 {
4522
4523  ;
4524  return 0;
4525 }
4526 _ACEOF
4527 rm -f conftest.o conftest.obj
4528 if { { ac_try="$ac_compile"
4529 case "(($ac_try" in
4530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531   *) ac_try_echo=$ac_try;;
4532 esac
4533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534 $as_echo "$ac_try_echo"; } >&5
4535   (eval "$ac_compile") 2>&5
4536   ac_status=$?
4537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538   test $ac_status = 0; }; then :
4539   for ac_file in conftest.o conftest.obj conftest.*; do
4540   test -f "$ac_file" || continue;
4541   case $ac_file in
4542     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4543     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4544        break;;
4545   esac
4546 done
4547 else
4548   $as_echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4550
4551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553 as_fn_error $? "cannot compute suffix of object files: cannot compile
4554 See \`config.log' for more details" "$LINENO" 5; }
4555 fi
4556 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4557 fi
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4559 $as_echo "$ac_cv_objext" >&6; }
4560 OBJEXT=$ac_cv_objext
4561 ac_objext=$OBJEXT
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4563 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4564 if ${ac_cv_c_compiler_gnu+:} false; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h.  */
4569
4570 int main (void)
4571 {
4572 #ifndef __GNUC__
4573        choke me
4574 #endif
4575
4576  ;
4577  return 0;
4578 }
4579 _ACEOF
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581   ac_compiler_gnu=yes
4582 else
4583   ac_compiler_gnu=no
4584 fi
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4587
4588 fi
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4590 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4591 if test $ac_compiler_gnu = yes; then
4592   GCC=yes
4593 else
4594   GCC=
4595 fi
4596 ac_test_CFLAGS=${CFLAGS+set}
4597 ac_save_CFLAGS=$CFLAGS
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4599 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4600 if ${ac_cv_prog_cc_g+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   ac_save_c_werror_flag=$ac_c_werror_flag
4604    ac_c_werror_flag=yes
4605    ac_cv_prog_cc_g=no
4606    CFLAGS="-g"
4607    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h.  */
4609
4610 int main (void)
4611 {
4612
4613  ;
4614  return 0;
4615 }
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618   ac_cv_prog_cc_g=yes
4619 else
4620   CFLAGS=""
4621       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h.  */
4623
4624 int main (void)
4625 {
4626
4627  ;
4628  return 0;
4629 }
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632
4633 else
4634   ac_c_werror_flag=$ac_save_c_werror_flag
4635          CFLAGS="-g"
4636          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638
4639 int main (void)
4640 {
4641
4642  ;
4643  return 0;
4644 }
4645 _ACEOF
4646 if ac_fn_c_try_compile "$LINENO"; then :
4647   ac_cv_prog_cc_g=yes
4648 fi
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 fi
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 fi
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654    ac_c_werror_flag=$ac_save_c_werror_flag
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4657 $as_echo "$ac_cv_prog_cc_g" >&6; }
4658 if test "$ac_test_CFLAGS" = set; then
4659   CFLAGS=$ac_save_CFLAGS
4660 elif test $ac_cv_prog_cc_g = yes; then
4661   if test "$GCC" = yes; then
4662     CFLAGS="-g -O2"
4663   else
4664     CFLAGS="-g"
4665   fi
4666 else
4667   if test "$GCC" = yes; then
4668     CFLAGS="-O2"
4669   else
4670     CFLAGS=
4671   fi
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4674 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4675 if ${ac_cv_prog_cc_c89+:} false; then :
4676   $as_echo_n "(cached) " >&6
4677 else
4678   ac_cv_prog_cc_c89=no
4679 ac_save_CC=$CC
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h.  */
4682 #include <stdarg.h>
4683 #include <stdio.h>
4684 struct stat;
4685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4686 struct buf { int x; };
4687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4688 static char *e (p, i)
4689      char **p;
4690      int i;
4691 {
4692   return p[i];
4693 }
4694 static char *f (char * (*g) (char **, int), char **p, ...)
4695 {
4696   char *s;
4697   va_list v;
4698   va_start (v,p);
4699   s = g (p, va_arg (v,int));
4700   va_end (v);
4701   return s;
4702 }
4703
4704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4705    function prototypes and stuff, but not '\xHH' hex character constants.
4706    These don't provoke an error unfortunately, instead are silently treated
4707    as 'x'.  The following induces an error, until -std is added to get
4708    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4709    array size at least.  It's necessary to write '\x00'==0 to get something
4710    that's true only with -std.  */
4711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4712
4713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4714    inside strings and character constants.  */
4715 #define FOO(x) 'x'
4716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4717
4718 int test (int i, double x);
4719 struct s1 {int (*f) (int a);};
4720 struct s2 {int (*f) (double a);};
4721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4722 int argc;
4723 char **argv;
4724 int main (void)
4725 {
4726 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4727  ;
4728  return 0;
4729 }
4730 _ACEOF
4731 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4732         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4733 do
4734   CC="$ac_save_CC $ac_arg"
4735   if ac_fn_c_try_compile "$LINENO"; then :
4736   ac_cv_prog_cc_c89=$ac_arg
4737 fi
4738 rm -f core conftest.err conftest.$ac_objext
4739   test "x$ac_cv_prog_cc_c89" != "xno" && break
4740 done
4741 rm -f conftest.$ac_ext
4742 CC=$ac_save_CC
4743
4744 fi
4745 # AC_CACHE_VAL
4746 case "x$ac_cv_prog_cc_c89" in
4747   x)
4748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4749 $as_echo "none needed" >&6; } ;;
4750   xno)
4751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4752 $as_echo "unsupported" >&6; } ;;
4753   *)
4754     CC="$CC $ac_cv_prog_cc_c89"
4755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4756 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4757 esac
4758 if test "x$ac_cv_prog_cc_c89" != xno; then :
4759
4760 fi
4761
4762 ac_ext=c
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767
4768 ac_ext=c
4769 ac_cpp='$CPP $CPPFLAGS'
4770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4774 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4775 if ${am_cv_prog_cc_c_o+:} false; then :
4776   $as_echo_n "(cached) " >&6
4777 else
4778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h.  */
4780
4781 int main (void)
4782 {
4783
4784  ;
4785  return 0;
4786 }
4787 _ACEOF
4788   # Make sure it works both with $CC and with simple cc.
4789   # Following AC_PROG_CC_C_O, we do the test twice because some
4790   # compilers refuse to overwrite an existing .o file with -o,
4791   # though they will create one.
4792   am_cv_prog_cc_c_o=yes
4793   for am_i in 1 2; do
4794     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4795    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4796    ac_status=$?
4797    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798    (exit $ac_status); } \
4799          && test -f conftest2.$ac_objext; then
4800       : OK
4801     else
4802       am_cv_prog_cc_c_o=no
4803       break
4804     fi
4805   done
4806   rm -f core conftest*
4807   unset am_i
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4810 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4811 if test "$am_cv_prog_cc_c_o" != yes; then
4812    # Losing compiler, so override with the script.
4813    # FIXME: It is wrong to rewrite CC.
4814    # But if we don't then we get into trouble of one sort or another.
4815    # A longer-term fix would be to have automake use am__CC in this case,
4816    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4817    CC="$am_aux_dir/compile $CC"
4818 fi
4819 ac_ext=c
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824
4825
4826
4827 ac_ext=c
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4833 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4834 # On Suns, sometimes $CPP names a directory.
4835 if test -n "$CPP" && test -d "$CPP"; then
4836   CPP=
4837 fi
4838 if test -z "$CPP"; then
4839   if ${ac_cv_prog_CPP+:} false; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842       # Double quotes because CPP needs to be expanded
4843     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4844     do
4845       ac_preproc_ok=false
4846 for ac_c_preproc_warn_flag in '' yes
4847 do
4848   # Use a header file that comes with gcc, so configuring glibc
4849   # with a fresh cross-compiler works.
4850   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4851   # <limits.h> exists even on freestanding compilers.
4852   # On the NeXT, cc -E runs the code through the compiler's parser,
4853   # not just through cpp. "Syntax error" is here to catch this case.
4854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h.  */
4856 #ifdef __STDC__
4857 # include <limits.h>
4858 #else
4859 # include <assert.h>
4860 #endif
4861                      Syntax error
4862 _ACEOF
4863 if ac_fn_c_try_cpp "$LINENO"; then :
4864
4865 else
4866   # Broken: fails on valid input.
4867 continue
4868 fi
4869 rm -f conftest.err conftest.i conftest.$ac_ext
4870
4871   # OK, works on sane cases.  Now check whether nonexistent headers
4872   # can be detected and how.
4873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h.  */
4875 #include <ac_nonexistent.h>
4876 _ACEOF
4877 if ac_fn_c_try_cpp "$LINENO"; then :
4878   # Broken: success on invalid input.
4879 continue
4880 else
4881   # Passes both tests.
4882 ac_preproc_ok=:
4883 break
4884 fi
4885 rm -f conftest.err conftest.i conftest.$ac_ext
4886
4887 done
4888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4889 rm -f conftest.i conftest.err conftest.$ac_ext
4890 if $ac_preproc_ok; then :
4891   break
4892 fi
4893
4894     done
4895     ac_cv_prog_CPP=$CPP
4896
4897 fi
4898   CPP=$ac_cv_prog_CPP
4899 else
4900   ac_cv_prog_CPP=$CPP
4901 fi
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4903 $as_echo "$CPP" >&6; }
4904 ac_preproc_ok=false
4905 for ac_c_preproc_warn_flag in '' yes
4906 do
4907   # Use a header file that comes with gcc, so configuring glibc
4908   # with a fresh cross-compiler works.
4909   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4910   # <limits.h> exists even on freestanding compilers.
4911   # On the NeXT, cc -E runs the code through the compiler's parser,
4912   # not just through cpp. "Syntax error" is here to catch this case.
4913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h.  */
4915 #ifdef __STDC__
4916 # include <limits.h>
4917 #else
4918 # include <assert.h>
4919 #endif
4920                      Syntax error
4921 _ACEOF
4922 if ac_fn_c_try_cpp "$LINENO"; then :
4923
4924 else
4925   # Broken: fails on valid input.
4926 continue
4927 fi
4928 rm -f conftest.err conftest.i conftest.$ac_ext
4929
4930   # OK, works on sane cases.  Now check whether nonexistent headers
4931   # can be detected and how.
4932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h.  */
4934 #include <ac_nonexistent.h>
4935 _ACEOF
4936 if ac_fn_c_try_cpp "$LINENO"; then :
4937   # Broken: success on invalid input.
4938 continue
4939 else
4940   # Passes both tests.
4941 ac_preproc_ok=:
4942 break
4943 fi
4944 rm -f conftest.err conftest.i conftest.$ac_ext
4945
4946 done
4947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948 rm -f conftest.i conftest.err conftest.$ac_ext
4949 if $ac_preproc_ok; then :
4950
4951 else
4952   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4954 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4955 See \`config.log' for more details" "$LINENO" 5; }
4956 fi
4957
4958 ac_ext=c
4959 ac_cpp='$CPP $CPPFLAGS'
4960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4963
4964
4965   IFS=$xc_prog_cc_prev_IFS
4966   LIBS=$xc_prog_cc_prev_LIBS
4967   CFLAGS=$xc_prog_cc_prev_CFLAGS
4968   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4969   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4970
4971
4972
4973
4974
4975 am__api_version='1.15'
4976
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4978 $as_echo_n "checking whether build environment is sane... " >&6; }
4979 # Reject unsafe characters in $srcdir or the absolute working directory
4980 # name.  Accept space and tab only in the latter.
4981 am_lf='
4982 '
4983 case `pwd` in
4984   *[\\\"\#\$\&\'\`$am_lf]*)
4985     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4986 esac
4987 case $srcdir in
4988   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4989     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4990 esac
4991
4992 # Do 'set' in a subshell so we don't clobber the current shell's
4993 # arguments.  Must try -L first in case configure is actually a
4994 # symlink; some systems play weird games with the mod time of symlinks
4995 # (eg FreeBSD returns the mod time of the symlink's containing
4996 # directory).
4997 if (
4998    am_has_slept=no
4999    for am_try in 1 2; do
5000      echo "timestamp, slept: $am_has_slept" > conftest.file
5001      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5002      if test "$*" = "X"; then
5003         # -L didn't work.
5004         set X `ls -t "$srcdir/configure" conftest.file`
5005      fi
5006      if test "$*" != "X $srcdir/configure conftest.file" \
5007         && test "$*" != "X conftest.file $srcdir/configure"; then
5008
5009         # If neither matched, then we have a broken ls.  This can happen
5010         # if, for instance, CONFIG_SHELL is bash and it inherits a
5011         # broken ls alias from the environment.  This has actually
5012         # happened.  Such a system could not be considered "sane".
5013         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5014   alias in your environment" "$LINENO" 5
5015      fi
5016      if test "$2" = conftest.file || test $am_try -eq 2; then
5017        break
5018      fi
5019      # Just in case.
5020      sleep 1
5021      am_has_slept=yes
5022    done
5023    test "$2" = conftest.file
5024    )
5025 then
5026    # Ok.
5027    :
5028 else
5029    as_fn_error $? "newly created file is older than distributed files!
5030 Check your system clock" "$LINENO" 5
5031 fi
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033 $as_echo "yes" >&6; }
5034 # If we didn't sleep, we still need to ensure time stamps of config.status and
5035 # generated files are strictly newer.
5036 am_sleep_pid=
5037 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5038   ( sleep 1 ) &
5039   am_sleep_pid=$!
5040 fi
5041
5042 rm -f conftest.file
5043
5044 test "$program_prefix" != NONE &&
5045   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5046 # Use a double $ so make ignores it.
5047 test "$program_suffix" != NONE &&
5048   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5049 # Double any \ or $.
5050 # By default was `s,x,x', remove it if useless.
5051 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5052 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5053
5054 if test x"${MISSING+set}" != xset; then
5055   case $am_aux_dir in
5056   *\ * | *\     *)
5057     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5058   *)
5059     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5060   esac
5061 fi
5062 # Use eval to expand $SHELL
5063 if eval "$MISSING --is-lightweight"; then
5064   am_missing_run="$MISSING "
5065 else
5066   am_missing_run=
5067   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5068 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5069 fi
5070
5071 if test x"${install_sh+set}" != xset; then
5072   case $am_aux_dir in
5073   *\ * | *\     *)
5074     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5075   *)
5076     install_sh="\${SHELL} $am_aux_dir/install-sh"
5077   esac
5078 fi
5079
5080 # Installed binaries are usually stripped using 'strip' when the user
5081 # run "make install-strip".  However 'strip' might not be the right
5082 # tool to use in cross-compilation environments, therefore Automake
5083 # will honor the 'STRIP' environment variable to overrule this program.
5084 if test "$cross_compiling" != no; then
5085   if test -n "$ac_tool_prefix"; then
5086   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5087 set dummy ${ac_tool_prefix}strip; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_STRIP+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   if test -n "$STRIP"; then
5094   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101     for ac_exec_ext in '' $ac_executable_extensions; do
5102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108   done
5109 IFS=$as_save_IFS
5110
5111 fi
5112 fi
5113 STRIP=$ac_cv_prog_STRIP
5114 if test -n "$STRIP"; then
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5116 $as_echo "$STRIP" >&6; }
5117 else
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5120 fi
5121
5122
5123 fi
5124 if test -z "$ac_cv_prog_STRIP"; then
5125   ac_ct_STRIP=$STRIP
5126   # Extract the first word of "strip", so it can be a program name with args.
5127 set dummy strip; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5131   $as_echo_n "(cached) " >&6
5132 else
5133   if test -n "$ac_ct_STRIP"; then
5134   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141     for ac_exec_ext in '' $ac_executable_extensions; do
5142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143     ac_cv_prog_ac_ct_STRIP="strip"
5144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145     break 2
5146   fi
5147 done
5148   done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5154 if test -n "$ac_ct_STRIP"; then
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5156 $as_echo "$ac_ct_STRIP" >&6; }
5157 else
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162   if test "x$ac_ct_STRIP" = x; then
5163     STRIP=":"
5164   else
5165     case $cross_compiling:$ac_tool_warned in
5166 yes:)
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169 ac_tool_warned=yes ;;
5170 esac
5171     STRIP=$ac_ct_STRIP
5172   fi
5173 else
5174   STRIP="$ac_cv_prog_STRIP"
5175 fi
5176
5177 fi
5178 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5179
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5181 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5182 if test -z "$MKDIR_P"; then
5183   if ${ac_cv_path_mkdir+:} false; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5188 do
5189   IFS=$as_save_IFS
5190   test -z "$as_dir" && as_dir=.
5191     for ac_prog in mkdir gmkdir; do
5192          for ac_exec_ext in '' $ac_executable_extensions; do
5193            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5194            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5195              'mkdir (GNU coreutils) '* | \
5196              'mkdir (coreutils) '* | \
5197              'mkdir (fileutils) '4.1*)
5198                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5199                break 3;;
5200            esac
5201          done
5202        done
5203   done
5204 IFS=$as_save_IFS
5205
5206 fi
5207
5208   test -d ./--version && rmdir ./--version
5209   if test "${ac_cv_path_mkdir+set}" = set; then
5210     MKDIR_P="$ac_cv_path_mkdir -p"
5211   else
5212     # As a last resort, use the slow shell script.  Don't cache a
5213     # value for MKDIR_P within a source directory, because that will
5214     # break other packages using the cache if that directory is
5215     # removed, or if the value is a relative name.
5216     MKDIR_P="$ac_install_sh -d"
5217   fi
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5220 $as_echo "$MKDIR_P" >&6; }
5221
5222 for ac_prog in gawk mawk nawk awk
5223 do
5224   # Extract the first word of "$ac_prog", so it can be a program name with args.
5225 set dummy $ac_prog; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_AWK+:} false; then :
5229   $as_echo_n "(cached) " >&6
5230 else
5231   if test -n "$AWK"; then
5232   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239     for ac_exec_ext in '' $ac_executable_extensions; do
5240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241     ac_cv_prog_AWK="$ac_prog"
5242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246   done
5247 IFS=$as_save_IFS
5248
5249 fi
5250 fi
5251 AWK=$ac_cv_prog_AWK
5252 if test -n "$AWK"; then
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5254 $as_echo "$AWK" >&6; }
5255 else
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259
5260
5261   test -n "$AWK" && break
5262 done
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5265 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5266 set x ${MAKE-make}
5267 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5268 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5269   $as_echo_n "(cached) " >&6
5270 else
5271   cat >conftest.make <<\_ACEOF
5272 SHELL = /bin/sh
5273 all:
5274         @echo '@@@%%%=$(MAKE)=@@@%%%'
5275 _ACEOF
5276 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5277 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5278   *@@@%%%=?*=@@@%%%*)
5279     eval ac_cv_prog_make_${ac_make}_set=yes;;
5280   *)
5281     eval ac_cv_prog_make_${ac_make}_set=no;;
5282 esac
5283 rm -f conftest.make
5284 fi
5285 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5287 $as_echo "yes" >&6; }
5288   SET_MAKE=
5289 else
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292   SET_MAKE="MAKE=${MAKE-make}"
5293 fi
5294
5295 rm -rf .tst 2>/dev/null
5296 mkdir .tst 2>/dev/null
5297 if test -d .tst; then
5298   am__leading_dot=.
5299 else
5300   am__leading_dot=_
5301 fi
5302 rmdir .tst 2>/dev/null
5303
5304 DEPDIR="${am__leading_dot}deps"
5305
5306 ac_config_commands="$ac_config_commands depfiles"
5307
5308
5309 am_make=${MAKE-make}
5310 cat > confinc << 'END'
5311 am__doit:
5312         @echo this is the am__doit target
5313 .PHONY: am__doit
5314 END
5315 # If we don't find an include directive, just comment out the code.
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5317 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5318 am__include="#"
5319 am__quote=
5320 _am_result=none
5321 # First try GNU make style include.
5322 echo "include confinc" > confmf
5323 # Ignore all kinds of additional output from 'make'.
5324 case `$am_make -s -f confmf 2> /dev/null` in #(
5325 *the\ am__doit\ target*)
5326   am__include=include
5327   am__quote=
5328   _am_result=GNU
5329   ;;
5330 esac
5331 # Now try BSD make style include.
5332 if test "$am__include" = "#"; then
5333    echo '.include "confinc"' > confmf
5334    case `$am_make -s -f confmf 2> /dev/null` in #(
5335    *the\ am__doit\ target*)
5336      am__include=.include
5337      am__quote="\""
5338      _am_result=BSD
5339      ;;
5340    esac
5341 fi
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5345 $as_echo "$_am_result" >&6; }
5346 rm -f confinc confmf
5347
5348 # Check whether --enable-dependency-tracking was given.
5349 if test "${enable_dependency_tracking+set}" = set; then :
5350   enableval=$enable_dependency_tracking;
5351 fi
5352
5353 if test "x$enable_dependency_tracking" != xno; then
5354   am_depcomp="$ac_aux_dir/depcomp"
5355   AMDEPBACKSLASH='\'
5356   am__nodep='_no'
5357 fi
5358  if test "x$enable_dependency_tracking" != xno; then
5359   AMDEP_TRUE=
5360   AMDEP_FALSE='#'
5361 else
5362   AMDEP_TRUE='#'
5363   AMDEP_FALSE=
5364 fi
5365
5366
5367 ## --------------------------------------- ##
5368 ##  Start of automake initialization code  ##
5369 ## --------------------------------------- ##
5370
5371 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5372   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5373   # is not polluted with repeated "-I."
5374   am__isrc=' -I$(srcdir)'
5375   # test to see if srcdir already configured
5376   if test -f $srcdir/config.status; then
5377     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5378   fi
5379 fi
5380
5381 # test whether we have cygpath
5382 if test -z "$CYGPATH_W"; then
5383   if (cygpath --version) >/dev/null 2>/dev/null; then
5384     CYGPATH_W='cygpath -w'
5385   else
5386     CYGPATH_W=echo
5387   fi
5388 fi
5389
5390
5391 # Define the identity of the package.
5392  PACKAGE='curl'
5393  VERSION='-'
5394
5395
5396 cat >>confdefs.h <<_ACEOF
5397 #define PACKAGE "$PACKAGE"
5398 _ACEOF
5399
5400
5401 cat >>confdefs.h <<_ACEOF
5402 #define VERSION "$VERSION"
5403 _ACEOF
5404
5405 # Some tools Automake needs.
5406
5407 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5408
5409
5410 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5411
5412
5413 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5414
5415
5416 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5417
5418
5419 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5420
5421 # For better backward compatibility.  To be removed once Automake 1.9.x
5422 # dies out for good.  For more background, see:
5423 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5424 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5425 mkdir_p='$(MKDIR_P)'
5426
5427 # We need awk for the "check" target (and possibly the TAP driver).  The
5428 # system "awk" is bad on some platforms.
5429 # Always define AMTAR for backward compatibility.  Yes, it's still used
5430 # in the wild :-(  We should find a proper way to deprecate it ...
5431 AMTAR='$${TAR-tar}'
5432
5433
5434 # We'll loop over all known methods to create a tar archive until one works.
5435 _am_tools='gnutar  pax cpio none'
5436
5437 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5438
5439
5440
5441
5442
5443 depcc="$CC"   am_compiler_list=
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5446 $as_echo_n "checking dependency style of $depcc... " >&6; }
5447 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5451   # We make a subdir and do the tests there.  Otherwise we can end up
5452   # making bogus files that we don't know about and never remove.  For
5453   # instance it was reported that on HP-UX the gcc test will end up
5454   # making a dummy file named 'D' -- because '-MD' means "put the output
5455   # in D".
5456   rm -rf conftest.dir
5457   mkdir conftest.dir
5458   # Copy depcomp to subdir because otherwise we won't find it if we're
5459   # using a relative directory.
5460   cp "$am_depcomp" conftest.dir
5461   cd conftest.dir
5462   # We will build objects and dependencies in a subdirectory because
5463   # it helps to detect inapplicable dependency modes.  For instance
5464   # both Tru64's cc and ICC support -MD to output dependencies as a
5465   # side effect of compilation, but ICC will put the dependencies in
5466   # the current directory while Tru64 will put them in the object
5467   # directory.
5468   mkdir sub
5469
5470   am_cv_CC_dependencies_compiler_type=none
5471   if test "$am_compiler_list" = ""; then
5472      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5473   fi
5474   am__universal=false
5475   case " $depcc " in #(
5476      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5477      esac
5478
5479   for depmode in $am_compiler_list; do
5480     # Setup a source with many dependencies, because some compilers
5481     # like to wrap large dependency lists on column 80 (with \), and
5482     # we should not choose a depcomp mode which is confused by this.
5483     #
5484     # We need to recreate these files for each test, as the compiler may
5485     # overwrite some of them when testing with obscure command lines.
5486     # This happens at least with the AIX C compiler.
5487     : > sub/conftest.c
5488     for i in 1 2 3 4 5 6; do
5489       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5490       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5491       # Solaris 10 /bin/sh.
5492       echo '/* dummy */' > sub/conftst$i.h
5493     done
5494     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5495
5496     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5497     # mode.  It turns out that the SunPro C++ compiler does not properly
5498     # handle '-M -o', and we need to detect this.  Also, some Intel
5499     # versions had trouble with output in subdirs.
5500     am__obj=sub/conftest.${OBJEXT-o}
5501     am__minus_obj="-o $am__obj"
5502     case $depmode in
5503     gcc)
5504       # This depmode causes a compiler race in universal mode.
5505       test "$am__universal" = false || continue
5506       ;;
5507     nosideeffect)
5508       # After this tag, mechanisms are not by side-effect, so they'll
5509       # only be used when explicitly requested.
5510       if test "x$enable_dependency_tracking" = xyes; then
5511         continue
5512       else
5513         break
5514       fi
5515       ;;
5516     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5517       # This compiler won't grok '-c -o', but also, the minuso test has
5518       # not run yet.  These depmodes are late enough in the game, and
5519       # so weak that their functioning should not be impacted.
5520       am__obj=conftest.${OBJEXT-o}
5521       am__minus_obj=
5522       ;;
5523     none) break ;;
5524     esac
5525     if depmode=$depmode \
5526        source=sub/conftest.c object=$am__obj \
5527        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5528        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5529          >/dev/null 2>conftest.err &&
5530        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5531        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5532        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5533        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5534       # icc doesn't choke on unknown options, it will just issue warnings
5535       # or remarks (even with -Werror).  So we grep stderr for any message
5536       # that says an option was ignored or not supported.
5537       # When given -MP, icc 7.0 and 7.1 complain thusly:
5538       #   icc: Command line warning: ignoring option '-M'; no argument required
5539       # The diagnosis changed in icc 8.0:
5540       #   icc: Command line remark: option '-MP' not supported
5541       if (grep 'ignoring option' conftest.err ||
5542           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5543         am_cv_CC_dependencies_compiler_type=$depmode
5544         break
5545       fi
5546     fi
5547   done
5548
5549   cd ..
5550   rm -rf conftest.dir
5551 else
5552   am_cv_CC_dependencies_compiler_type=none
5553 fi
5554
5555 fi
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5557 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5559
5560  if
5561   test "x$enable_dependency_tracking" != xno \
5562   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5563   am__fastdepCC_TRUE=
5564   am__fastdepCC_FALSE='#'
5565 else
5566   am__fastdepCC_TRUE='#'
5567   am__fastdepCC_FALSE=
5568 fi
5569
5570
5571
5572 # POSIX will say in a future version that running "rm -f" with no argument
5573 # is OK; and we want to be able to make that assumption in our Makefile
5574 # recipes.  So use an aggressive probe to check that the usage we want is
5575 # actually supported "in the wild" to an acceptable degree.
5576 # See automake bug#10828.
5577 # To make any issue more visible, cause the running configure to be aborted
5578 # by default if the 'rm' program in use doesn't match our expectations; the
5579 # user can still override this though.
5580 if rm -f && rm -fr && rm -rf; then : OK; else
5581   cat >&2 <<'END'
5582 Oops!
5583
5584 Your 'rm' program seems unable to run without file operands specified
5585 on the command line, even when the '-f' option is present.  This is contrary
5586 to the behaviour of most rm programs out there, and not conforming with
5587 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5588
5589 Please tell bug-automake@gnu.org about your system, including the value
5590 of your $PATH and any error possibly output before this message.  This
5591 can help us improve future automake versions.
5592
5593 END
5594   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5595     echo 'Configuration will proceed anyway, since you have set the' >&2
5596     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5597     echo >&2
5598   else
5599     cat >&2 <<'END'
5600 Aborting the configuration process, to ensure you take notice of the issue.
5601
5602 You can download and install GNU coreutils to get an 'rm' implementation
5603 that behaves properly: <http://www.gnu.org/software/coreutils/>.
5604
5605 If you want to complete the configuration process using your problematic
5606 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5607 to "yes", and re-run configure.
5608
5609 END
5610     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5611   fi
5612 fi
5613
5614 ## ------------------------------------- ##
5615 ##  End of automake initialization code  ##
5616 ## ------------------------------------- ##
5617
5618
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5620 $as_echo_n "checking curl version... " >&6; }
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5622 $as_echo "$CURLVERSION" >&6; }
5623
5624
5625
5626 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
5627
5628
5629 PKGADD_PKG="HAXXcurl"
5630 PKGADD_NAME="cURL - a client that groks URLs"
5631 PKGADD_VENDOR="curl.haxx.se"
5632
5633
5634
5635
5636     curl_ssl_msg="no      (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
5637     curl_ssh_msg="no      (--with-libssh2)"
5638    curl_zlib_msg="no      (--with-zlib)"
5639     curl_gss_msg="no      (--with-gssapi)"
5640 curl_tls_srp_msg="no      (--enable-tls-srp)"
5641     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5642    curl_ipv6_msg="no      (--enable-ipv6)"
5643 curl_unix_sockets_msg="no      (--enable-unix-sockets)"
5644     curl_idn_msg="no      (--with-{libidn,winidn})"
5645  curl_manual_msg="no      (--enable-manual)"
5646 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5647 curl_verbose_msg="enabled (--disable-verbose)"
5648    curl_sspi_msg="no      (--enable-sspi)"
5649    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5650   curl_ldaps_msg="no      (--enable-ldaps)"
5651    curl_rtsp_msg="no      (--enable-rtsp)"
5652    curl_rtmp_msg="no      (--with-librtmp)"
5653   curl_mtlnk_msg="no      (--with-libmetalink)"
5654     curl_psl_msg="no      (--with-libpsl)"
5655
5656     init_ssl_msg=${curl_ssl_msg}
5657
5658 INITIAL_LDFLAGS=$LDFLAGS
5659 INITIAL_LIBS=$LIBS
5660
5661
5662 # Make sure we can run config.sub.
5663 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5664   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5665
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5667 $as_echo_n "checking build system type... " >&6; }
5668 if ${ac_cv_build+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   ac_build_alias=$build_alias
5672 test "x$ac_build_alias" = x &&
5673   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5674 test "x$ac_build_alias" = x &&
5675   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5676 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5677   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5678
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5681 $as_echo "$ac_cv_build" >&6; }
5682 case $ac_cv_build in
5683 *-*-*) ;;
5684 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5685 esac
5686 build=$ac_cv_build
5687 ac_save_IFS=$IFS; IFS='-'
5688 set x $ac_cv_build
5689 shift
5690 build_cpu=$1
5691 build_vendor=$2
5692 shift; shift
5693 # Remember, the first character of IFS is used to create $*,
5694 # except with old shells:
5695 build_os=$*
5696 IFS=$ac_save_IFS
5697 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5698
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5701 $as_echo_n "checking host system type... " >&6; }
5702 if ${ac_cv_host+:} false; then :
5703   $as_echo_n "(cached) " >&6
5704 else
5705   if test "x$host_alias" = x; then
5706   ac_cv_host=$ac_cv_build
5707 else
5708   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5709     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5710 fi
5711
5712 fi
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5714 $as_echo "$ac_cv_host" >&6; }
5715 case $ac_cv_host in
5716 *-*-*) ;;
5717 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5718 esac
5719 host=$ac_cv_host
5720 ac_save_IFS=$IFS; IFS='-'
5721 set x $ac_cv_host
5722 shift
5723 host_cpu=$1
5724 host_vendor=$2
5725 shift; shift
5726 # Remember, the first character of IFS is used to create $*,
5727 # except with old shells:
5728 host_os=$*
5729 IFS=$ac_save_IFS
5730 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5731
5732
5733
5734 cat >>confdefs.h <<_ACEOF
5735 #define OS "${host}"
5736 _ACEOF
5737
5738
5739
5740
5741
5742 curl_includes_inttypes="\
5743 /* includes start */
5744 #ifdef HAVE_SYS_TYPES_H
5745 # include <sys/types.h>
5746 #endif
5747 #ifdef HAVE_STDINT_H
5748 # include <stdint.h>
5749 #endif
5750 #ifdef HAVE_INTTYPES_H
5751 # include <inttypes.h>
5752 #endif
5753 /* includes end */"
5754   case $host_os in
5755     irix*)
5756       ac_cv_header_stdint_h="no"
5757       ;;
5758   esac
5759   for ac_header in sys/types.h stdint.h inttypes.h
5760 do :
5761   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
5763 "
5764 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5765   cat >>confdefs.h <<_ACEOF
5766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5767 _ACEOF
5768
5769 fi
5770
5771 done
5772
5773
5774
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5776 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5777 if ${ac_cv_path_GREP+:} false; then :
5778   $as_echo_n "(cached) " >&6
5779 else
5780   if test -z "$GREP"; then
5781   ac_path_GREP_found=false
5782   # Loop through the user's path and test for each of PROGNAME-LIST
5783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5785 do
5786   IFS=$as_save_IFS
5787   test -z "$as_dir" && as_dir=.
5788     for ac_prog in grep ggrep; do
5789     for ac_exec_ext in '' $ac_executable_extensions; do
5790       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5791       as_fn_executable_p "$ac_path_GREP" || continue
5792 # Check for GNU ac_path_GREP and select it if it is found.
5793   # Check for GNU $ac_path_GREP
5794 case `"$ac_path_GREP" --version 2>&1` in
5795 *GNU*)
5796   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5797 *)
5798   ac_count=0
5799   $as_echo_n 0123456789 >"conftest.in"
5800   while :
5801   do
5802     cat "conftest.in" "conftest.in" >"conftest.tmp"
5803     mv "conftest.tmp" "conftest.in"
5804     cp "conftest.in" "conftest.nl"
5805     $as_echo 'GREP' >> "conftest.nl"
5806     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5807     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5808     as_fn_arith $ac_count + 1 && ac_count=$as_val
5809     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5810       # Best one so far, save it but keep looking for a better one
5811       ac_cv_path_GREP="$ac_path_GREP"
5812       ac_path_GREP_max=$ac_count
5813     fi
5814     # 10*(2^10) chars as input seems more than enough
5815     test $ac_count -gt 10 && break
5816   done
5817   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5818 esac
5819
5820       $ac_path_GREP_found && break 3
5821     done
5822   done
5823   done
5824 IFS=$as_save_IFS
5825   if test -z "$ac_cv_path_GREP"; then
5826     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5827   fi
5828 else
5829   ac_cv_path_GREP=$GREP
5830 fi
5831
5832 fi
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5834 $as_echo "$ac_cv_path_GREP" >&6; }
5835  GREP="$ac_cv_path_GREP"
5836
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5839 $as_echo_n "checking for egrep... " >&6; }
5840 if ${ac_cv_path_EGREP+:} false; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5844    then ac_cv_path_EGREP="$GREP -E"
5845    else
5846      if test -z "$EGREP"; then
5847   ac_path_EGREP_found=false
5848   # Loop through the user's path and test for each of PROGNAME-LIST
5849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5851 do
5852   IFS=$as_save_IFS
5853   test -z "$as_dir" && as_dir=.
5854     for ac_prog in egrep; do
5855     for ac_exec_ext in '' $ac_executable_extensions; do
5856       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5857       as_fn_executable_p "$ac_path_EGREP" || continue
5858 # Check for GNU ac_path_EGREP and select it if it is found.
5859   # Check for GNU $ac_path_EGREP
5860 case `"$ac_path_EGREP" --version 2>&1` in
5861 *GNU*)
5862   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5863 *)
5864   ac_count=0
5865   $as_echo_n 0123456789 >"conftest.in"
5866   while :
5867   do
5868     cat "conftest.in" "conftest.in" >"conftest.tmp"
5869     mv "conftest.tmp" "conftest.in"
5870     cp "conftest.in" "conftest.nl"
5871     $as_echo 'EGREP' >> "conftest.nl"
5872     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5873     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5874     as_fn_arith $ac_count + 1 && ac_count=$as_val
5875     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5876       # Best one so far, save it but keep looking for a better one
5877       ac_cv_path_EGREP="$ac_path_EGREP"
5878       ac_path_EGREP_max=$ac_count
5879     fi
5880     # 10*(2^10) chars as input seems more than enough
5881     test $ac_count -gt 10 && break
5882   done
5883   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5884 esac
5885
5886       $ac_path_EGREP_found && break 3
5887     done
5888   done
5889   done
5890 IFS=$as_save_IFS
5891   if test -z "$ac_cv_path_EGREP"; then
5892     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5893   fi
5894 else
5895   ac_cv_path_EGREP=$EGREP
5896 fi
5897
5898    fi
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5901 $as_echo "$ac_cv_path_EGREP" >&6; }
5902  EGREP="$ac_cv_path_EGREP"
5903
5904
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5906 $as_echo_n "checking for ANSI C header files... " >&6; }
5907 if ${ac_cv_header_stdc+:} false; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h.  */
5912 #include <stdlib.h>
5913 #include <stdarg.h>
5914 #include <string.h>
5915 #include <float.h>
5916
5917 int main (void)
5918 {
5919
5920  ;
5921  return 0;
5922 }
5923 _ACEOF
5924 if ac_fn_c_try_compile "$LINENO"; then :
5925   ac_cv_header_stdc=yes
5926 else
5927   ac_cv_header_stdc=no
5928 fi
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930
5931 if test $ac_cv_header_stdc = yes; then
5932   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h.  */
5935 #include <string.h>
5936
5937 _ACEOF
5938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5939   $EGREP "memchr" >/dev/null 2>&1; then :
5940
5941 else
5942   ac_cv_header_stdc=no
5943 fi
5944 rm -f conftest*
5945
5946 fi
5947
5948 if test $ac_cv_header_stdc = yes; then
5949   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h.  */
5952 #include <stdlib.h>
5953
5954 _ACEOF
5955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5956   $EGREP "free" >/dev/null 2>&1; then :
5957
5958 else
5959   ac_cv_header_stdc=no
5960 fi
5961 rm -f conftest*
5962
5963 fi
5964
5965 if test $ac_cv_header_stdc = yes; then
5966   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5967   if test "$cross_compiling" = yes; then :
5968   :
5969 else
5970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h.  */
5972 #include <ctype.h>
5973 #include <stdlib.h>
5974 #if ((' ' & 0x0FF) == 0x020)
5975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5977 #else
5978 # define ISLOWER(c) \
5979                    (('a' <= (c) && (c) <= 'i') \
5980                      || ('j' <= (c) && (c) <= 'r') \
5981                      || ('s' <= (c) && (c) <= 'z'))
5982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5983 #endif
5984
5985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5986 int
5987 main ()
5988 {
5989   int i;
5990   for (i = 0; i < 256; i++)
5991     if (XOR (islower (i), ISLOWER (i))
5992         || toupper (i) != TOUPPER (i))
5993       return 2;
5994   return 0;
5995 }
5996 _ACEOF
5997 if ac_fn_c_try_run "$LINENO"; then :
5998
5999 else
6000   ac_cv_header_stdc=no
6001 fi
6002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6003   conftest.$ac_objext conftest.beam conftest.$ac_ext
6004 fi
6005
6006 fi
6007 fi
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6009 $as_echo "$ac_cv_header_stdc" >&6; }
6010 if test $ac_cv_header_stdc = yes; then
6011
6012 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6013
6014 fi
6015
6016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6017 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6018                   inttypes.h stdint.h unistd.h
6019 do :
6020   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6021 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6022 "
6023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6024   cat >>confdefs.h <<_ACEOF
6025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6026 _ACEOF
6027
6028 fi
6029
6030 done
6031
6032
6033
6034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
6035 $as_echo_n "checking if cpp -P is needed... " >&6; }
6036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h.  */
6038
6039  #include <errno.h>
6040 TEST EINVAL TEST
6041
6042 _ACEOF
6043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
6045   cpp=no
6046 else
6047   cpp=yes
6048 fi
6049 rm -f conftest*
6050
6051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
6052 $as_echo "$cpp" >&6; }
6053
6054     if test "x$cpp" = "xyes"; then
6055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
6056 $as_echo_n "checking if cpp -P works... " >&6; }
6057     OLDCPPFLAGS=$CPPFLAGS
6058     CPPFLAGS="$CPPFLAGS -P"
6059     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h.  */
6061
6062  #include <errno.h>
6063 TEST EINVAL TEST
6064
6065 _ACEOF
6066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
6068   cpp_p=yes
6069 else
6070   cpp_p=no
6071 fi
6072 rm -f conftest*
6073
6074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
6075 $as_echo "$cpp_p" >&6; }
6076
6077     if test "x$cpp_p" = "xno"; then
6078       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
6079 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
6080       # without -P
6081       CPPPFLAG=""
6082     else
6083       # with -P
6084       CPPPFLAG="-P"
6085     fi
6086         CPPFLAGS=$OLDCPPFLAGS
6087   else
6088     # without -P
6089     CPPPFLAG=""
6090   fi
6091
6092
6093     #
6094         #
6095   if test -z "$SED"; then
6096     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6097   fi
6098   #
6099   # The cast to long int works around a bug in the HP C Compiler
6100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6102 # This bug is HP SR number 8606223364.
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6104 $as_echo_n "checking size of long... " >&6; }
6105 if ${ac_cv_sizeof_long+:} false; then :
6106   $as_echo_n "(cached) " >&6
6107 else
6108   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6109
6110 else
6111   if test "$ac_cv_type_long" = yes; then
6112      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6114 as_fn_error 77 "cannot compute sizeof (long)
6115 See \`config.log' for more details" "$LINENO" 5; }
6116    else
6117      ac_cv_sizeof_long=0
6118    fi
6119 fi
6120
6121 fi
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6123 $as_echo "$ac_cv_sizeof_long" >&6; }
6124
6125
6126
6127 cat >>confdefs.h <<_ACEOF
6128 #define SIZEOF_LONG $ac_cv_sizeof_long
6129 _ACEOF
6130
6131
6132   # The cast to long int works around a bug in the HP C Compiler
6133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6135 # This bug is HP SR number 8606223364.
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
6137 $as_echo_n "checking size of void*... " >&6; }
6138 if ${ac_cv_sizeof_voidp+:} false; then :
6139   $as_echo_n "(cached) " >&6
6140 else
6141   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
6142
6143 else
6144   if test "$ac_cv_type_voidp" = yes; then
6145      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6147 as_fn_error 77 "cannot compute sizeof (void*)
6148 See \`config.log' for more details" "$LINENO" 5; }
6149    else
6150      ac_cv_sizeof_voidp=0
6151    fi
6152 fi
6153
6154 fi
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6156 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6157
6158
6159
6160 cat >>confdefs.h <<_ACEOF
6161 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6162 _ACEOF
6163
6164
6165   #
6166   if test -z "$ac_cv_sizeof_long" ||
6167     test "$ac_cv_sizeof_long" -eq "0"; then
6168     as_fn_error $? "cannot find out size of long." "$LINENO" 5
6169   fi
6170   if test -z "$ac_cv_sizeof_voidp" ||
6171      test "$ac_cv_sizeof_voidp" -eq "0"; then
6172     as_fn_error $? "cannot find out size of void*." "$LINENO" 5
6173   fi
6174   #
6175   x_LP64_long=""
6176   x_LP32_long=""
6177   #
6178   if test "$ac_cv_sizeof_long" -eq "8" &&
6179      test "$ac_cv_sizeof_voidp" -ge "8"; then
6180     x_LP64_long="long"
6181   elif test "$ac_cv_sizeof_long" -eq "4" &&
6182        test "$ac_cv_sizeof_voidp" -ge "4"; then
6183     x_LP32_long="long"
6184   fi
6185   #
6186     #
6187   curl_typeof_curl_off_t="unknown"
6188   curl_sizeof_curl_off_t="unknown"
6189   curl_format_curl_off_t="unknown"
6190   curl_format_curl_off_tu="unknown"
6191   #
6192   if test "$curl_typeof_curl_off_t" = "unknown"; then
6193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
6194 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
6195     for t8 in          \
6196       "$x_LP64_long"   \
6197       'int64_t'        \
6198       '__int64'        \
6199       'long long'      \
6200       '__longlong'     \
6201       '__longlong_t'   ; do
6202
6203     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6204     tmp_includes=""
6205     tmp_source=""
6206     tmp_fmt=""
6207     case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6208       int64_t)
6209         tmp_includes="$curl_includes_inttypes"
6210         tmp_source="char f[] = PRId64;"
6211         tmp_fmt="PRId64"
6212         ;;
6213       int32_t)
6214         tmp_includes="$curl_includes_inttypes"
6215         tmp_source="char f[] = PRId32;"
6216         tmp_fmt="PRId32"
6217         ;;
6218       int16_t)
6219         tmp_includes="$curl_includes_inttypes"
6220         tmp_source="char f[] = PRId16;"
6221         tmp_fmt="PRId16"
6222         ;;
6223     esac
6224     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h.  */
6226
6227
6228         $tmp_includes
6229         typedef $t8 curl_off_t;
6230         typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6231
6232 int main (void)
6233 {
6234
6235         $tmp_source
6236         curl_off_t dummy;
6237
6238  ;
6239  return 0;
6240 }
6241
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244
6245       if test -z "$tmp_fmt"; then
6246         curl_typeof_curl_off_t="$t8"
6247         curl_sizeof_curl_off_t="8"
6248       else
6249
6250     OLDCPPFLAGS=$CPPFLAGS
6251   # CPPPFLAG comes from CURL_CPP_P
6252   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
6253   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6254   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6255   if test -z "$SED"; then
6256     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6257   fi
6258   if test -z "$GREP"; then
6259     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6260   fi
6261
6262   tmp_exp=""
6263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h.  */
6265
6266     $curl_includes_inttypes
6267 #ifdef $tmp_fmt
6268 CURL_DEF_TOKEN $tmp_fmt
6269 #endif
6270
6271
6272 _ACEOF
6273 if ac_fn_c_try_cpp "$LINENO"; then :
6274
6275     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6276       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6277       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6278       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6279     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6280       tmp_exp=""
6281     fi
6282
6283 fi
6284 rm -f conftest.err conftest.i conftest.$ac_ext
6285   if test -z "$tmp_exp"; then
6286     eval "$as_ac_HaveDef=no"
6287
6288   else
6289     eval "$as_ac_HaveDef=yes"
6290     eval "$as_ac_Def=\$tmp_exp"
6291
6292   fi
6293       CPPFLAGS=$OLDCPPFLAGS
6294
6295         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6296         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6297         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6298           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6299           curl_typeof_curl_off_t="$t8"
6300           curl_sizeof_curl_off_t="8"
6301         fi
6302                       fi
6303
6304 fi
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306   fi
6307
6308     done
6309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6310 $as_echo "$curl_typeof_curl_off_t" >&6; }
6311   fi
6312   if test "$curl_typeof_curl_off_t" = "unknown"; then
6313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6314 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6315     for t4 in          \
6316       "$x_LP32_long"   \
6317       'int32_t'        \
6318       '__int32'        \
6319       'int'            ; do
6320
6321     if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6322     tmp_includes=""
6323     tmp_source=""
6324     tmp_fmt=""
6325     case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6326       int64_t)
6327         tmp_includes="$curl_includes_inttypes"
6328         tmp_source="char f[] = PRId64;"
6329         tmp_fmt="PRId64"
6330         ;;
6331       int32_t)
6332         tmp_includes="$curl_includes_inttypes"
6333         tmp_source="char f[] = PRId32;"
6334         tmp_fmt="PRId32"
6335         ;;
6336       int16_t)
6337         tmp_includes="$curl_includes_inttypes"
6338         tmp_source="char f[] = PRId16;"
6339         tmp_fmt="PRId16"
6340         ;;
6341     esac
6342     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h.  */
6344
6345
6346         $tmp_includes
6347         typedef $t4 curl_off_t;
6348         typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6349
6350 int main (void)
6351 {
6352
6353         $tmp_source
6354         curl_off_t dummy;
6355
6356  ;
6357  return 0;
6358 }
6359
6360 _ACEOF
6361 if ac_fn_c_try_compile "$LINENO"; then :
6362
6363       if test -z "$tmp_fmt"; then
6364         curl_typeof_curl_off_t="$t4"
6365         curl_sizeof_curl_off_t="4"
6366       else
6367
6368     OLDCPPFLAGS=$CPPFLAGS
6369   # CPPPFLAG comes from CURL_CPP_P
6370   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
6371   as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6372   as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6373   if test -z "$SED"; then
6374     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6375   fi
6376   if test -z "$GREP"; then
6377     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6378   fi
6379
6380   tmp_exp=""
6381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h.  */
6383
6384     $curl_includes_inttypes
6385 #ifdef $tmp_fmt
6386 CURL_DEF_TOKEN $tmp_fmt
6387 #endif
6388
6389
6390 _ACEOF
6391 if ac_fn_c_try_cpp "$LINENO"; then :
6392
6393     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6394       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6395       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6396       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6397     if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6398       tmp_exp=""
6399     fi
6400
6401 fi
6402 rm -f conftest.err conftest.i conftest.$ac_ext
6403   if test -z "$tmp_exp"; then
6404     eval "$as_ac_HaveDef=no"
6405
6406   else
6407     eval "$as_ac_HaveDef=yes"
6408     eval "$as_ac_Def=\$tmp_exp"
6409
6410   fi
6411       CPPFLAGS=$OLDCPPFLAGS
6412
6413         as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6414         as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6415         if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6416           curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6417           curl_typeof_curl_off_t="$t4"
6418           curl_sizeof_curl_off_t="4"
6419         fi
6420                       fi
6421
6422 fi
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424   fi
6425
6426     done
6427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6428 $as_echo "$curl_typeof_curl_off_t" >&6; }
6429   fi
6430   if test "$curl_typeof_curl_off_t" = "unknown"; then
6431     as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6432   fi
6433   #
6434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6435 $as_echo_n "checking size of curl_off_t... " >&6; }
6436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6437 $as_echo "$curl_sizeof_curl_off_t" >&6; }
6438   #
6439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6440 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6441   if test "$curl_format_curl_off_t" != "unknown"; then
6442     x_pull_headers="yes"
6443     curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6444     curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6445     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6446     curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6447   else
6448     x_pull_headers="no"
6449     case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6450       long_long | __longlong | __longlong_t)
6451         curl_format_curl_off_t="lld"
6452         curl_format_curl_off_tu="llu"
6453         ;;
6454       long)
6455         curl_format_curl_off_t="ld"
6456         curl_format_curl_off_tu="lu"
6457         ;;
6458       int)
6459         curl_format_curl_off_t="d"
6460         curl_format_curl_off_tu="u"
6461         ;;
6462       __int64)
6463         curl_format_curl_off_t="I64d"
6464         curl_format_curl_off_tu="I64u"
6465         ;;
6466       __int32)
6467         curl_format_curl_off_t="I32d"
6468         curl_format_curl_off_tu="I32u"
6469         ;;
6470       __int16)
6471         curl_format_curl_off_t="I16d"
6472         curl_format_curl_off_tu="I16u"
6473         ;;
6474       *)
6475         as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6476         ;;
6477     esac
6478   fi
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6480 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
6481   #
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6483 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6485 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6486   #
6487
6488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6489 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6490   #
6491   curl_suffix_curl_off_t="unknown"
6492   curl_suffix_curl_off_tu="unknown"
6493   #
6494   case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6495     long_long | __longlong | __longlong_t)
6496       tst_suffixes="LL::"
6497       ;;
6498     long)
6499       tst_suffixes="L::"
6500       ;;
6501     int)
6502       tst_suffixes="::"
6503       ;;
6504     __int64 | int64_t)
6505       tst_suffixes="LL:i64::"
6506       ;;
6507     __int32 | int32_t)
6508       tst_suffixes="L:i32::"
6509       ;;
6510     __int16 | int16_t)
6511       tst_suffixes="L:i16::"
6512       ;;
6513     *)
6514       as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6515       ;;
6516   esac
6517   #
6518   old_IFS=$IFS; IFS=':'
6519   for tmp_ssuf in $tst_suffixes ; do
6520     IFS=$old_IFS
6521     if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6522       case $tmp_ssuf in
6523         i64 | i32 | i16)
6524           tmp_usuf="u$tmp_ssuf"
6525           ;;
6526         LL | L)
6527           tmp_usuf="U$tmp_ssuf"
6528           ;;
6529         *)
6530           tmp_usuf=""
6531           ;;
6532       esac
6533       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h.  */
6535
6536
6537           $curl_includes_inttypes
6538           typedef $curl_typeof_curl_off_t new_t;
6539
6540 int main (void)
6541 {
6542
6543           new_t s1;
6544           new_t s2;
6545           s1 = -10$tmp_ssuf ;
6546           s2 =  20$tmp_ssuf ;
6547           if(s1 > s2)
6548             return 1;
6549
6550  ;
6551  return 0;
6552 }
6553
6554 _ACEOF
6555 if ac_fn_c_try_compile "$LINENO"; then :
6556
6557         curl_suffix_curl_off_t="$tmp_ssuf"
6558         curl_suffix_curl_off_tu="$tmp_usuf"
6559
6560 fi
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562     fi
6563   done
6564   IFS=$old_IFS
6565   #
6566   if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6567     as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
6568   else
6569     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
6570 $as_echo "$curl_suffix_curl_off_t" >&6; }
6571     { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
6572 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
6573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
6574 $as_echo "$curl_suffix_curl_off_tu" >&6; }
6575   fi
6576   #
6577
6578   #
6579   if test "$x_pull_headers" = "yes"; then
6580     if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6581
6582 cat >>confdefs.h <<_EOF
6583 #define CURL_PULL_SYS_TYPES_H 1
6584 _EOF
6585
6586     fi
6587     if test "x$ac_cv_header_stdint_h" = "xyes"; then
6588
6589 cat >>confdefs.h <<_EOF
6590 #define CURL_PULL_STDINT_H 1
6591 _EOF
6592
6593     fi
6594     if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6595
6596 cat >>confdefs.h <<_EOF
6597 #define CURL_PULL_INTTYPES_H 1
6598 _EOF
6599
6600     fi
6601   fi
6602   #
6603
6604 cat >>confdefs.h <<_EOF
6605 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6606 _EOF
6607
6608
6609 cat >>confdefs.h <<_EOF
6610 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6611 _EOF
6612
6613
6614 cat >>confdefs.h <<_EOF
6615 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6616 _EOF
6617
6618
6619 cat >>confdefs.h <<_EOF
6620 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6621 _EOF
6622
6623
6624 cat >>confdefs.h <<_EOF
6625 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6626 _EOF
6627
6628
6629 cat >>confdefs.h <<_EOF
6630 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6631 _EOF
6632
6633
6634 cat >>confdefs.h <<_EOF
6635 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6636 _EOF
6637
6638   #
6639
6640
6641
6642
6643         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6644 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h.  */
6647
6648 #ifdef _AIX
6649    yes_this_is_aix
6650 #endif
6651
6652 _ACEOF
6653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6654   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6655
6656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6657 $as_echo "yes" >&6; }
6658     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6659
6660
6661 else
6662
6663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6665
6666 fi
6667 rm -f conftest*
6668
6669
6670
6671
6672     #
6673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6674 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h.  */
6677
6678
6679
6680 int main (void)
6681 {
6682
6683 #ifdef _THREAD_SAFE
6684       int dummy=1;
6685 #else
6686       force compilation error
6687 #endif
6688
6689  ;
6690  return 0;
6691 }
6692
6693 _ACEOF
6694 if ac_fn_c_try_compile "$LINENO"; then :
6695
6696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6697 $as_echo "yes" >&6; }
6698     tmp_thread_safe_initially_defined="yes"
6699
6700 else
6701
6702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704     tmp_thread_safe_initially_defined="no"
6705
6706 fi
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708   #
6709   if test "$tmp_thread_safe_initially_defined" = "no"; then
6710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6711 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6712
6713   case $host_os in
6714     aix[123].* | aix4.[012].*)
6715             tmp_need_thread_safe="no"
6716       ;;
6717     aix*)
6718             tmp_need_thread_safe="yes"
6719       ;;
6720     *)
6721       tmp_need_thread_safe="no"
6722       ;;
6723   esac
6724
6725     if test "$tmp_need_thread_safe" = "yes"; then
6726       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6727 $as_echo "yes" >&6; }
6728     else
6729       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731     fi
6732   fi
6733   #
6734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6735 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6736   if test "$tmp_thread_safe_initially_defined" = "yes" ||
6737     test "$tmp_need_thread_safe" = "yes"; then
6738
6739
6740 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6741
6742 cat >>confdefs.h <<_EOF
6743 #ifndef _THREAD_SAFE
6744 #  define _THREAD_SAFE
6745 #endif
6746 _EOF
6747
6748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6749 $as_echo "yes" >&6; }
6750   else
6751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6753   fi
6754   #
6755
6756
6757     #
6758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6759 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h.  */
6762
6763
6764
6765 int main (void)
6766 {
6767
6768 #ifdef _REENTRANT
6769       int dummy=1;
6770 #else
6771       force compilation error
6772 #endif
6773
6774  ;
6775  return 0;
6776 }
6777
6778 _ACEOF
6779 if ac_fn_c_try_compile "$LINENO"; then :
6780
6781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6782 $as_echo "yes" >&6; }
6783     tmp_reentrant_initially_defined="yes"
6784
6785 else
6786
6787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6789     tmp_reentrant_initially_defined="no"
6790
6791 fi
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793   #
6794   if test "$tmp_reentrant_initially_defined" = "no"; then
6795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6796 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6797
6798   case $host_os in
6799     solaris*)
6800       tmp_need_reentrant="yes"
6801       ;;
6802     *)
6803       tmp_need_reentrant="no"
6804       ;;
6805   esac
6806
6807     if test "$tmp_need_reentrant" = "no"; then
6808
6809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h.  */
6811
6812
6813 #include <errno.h>
6814
6815 int main (void)
6816 {
6817
6818       if(0 != errno)
6819         return 1;
6820
6821  ;
6822  return 0;
6823 }
6824
6825 _ACEOF
6826 if ac_fn_c_try_compile "$LINENO"; then :
6827
6828     tmp_errno="yes"
6829
6830 else
6831
6832     tmp_errno="no"
6833
6834 fi
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836   if test "$tmp_errno" = "yes"; then
6837     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h.  */
6839
6840
6841 #include <errno.h>
6842
6843 int main (void)
6844 {
6845
6846 #ifdef errno
6847         int dummy=1;
6848 #else
6849         force compilation error
6850 #endif
6851
6852  ;
6853  return 0;
6854 }
6855
6856 _ACEOF
6857 if ac_fn_c_try_compile "$LINENO"; then :
6858
6859       tmp_errno="errno_macro_defined"
6860
6861 else
6862
6863       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h.  */
6865
6866
6867 #define _REENTRANT
6868 #include <errno.h>
6869
6870 int main (void)
6871 {
6872
6873 #ifdef errno
6874           int dummy=1;
6875 #else
6876           force compilation error
6877 #endif
6878
6879  ;
6880  return 0;
6881 }
6882
6883 _ACEOF
6884 if ac_fn_c_try_compile "$LINENO"; then :
6885
6886         tmp_errno="errno_macro_needs_reentrant"
6887         tmp_need_reentrant="yes"
6888
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891
6892 fi
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894   fi
6895
6896     fi
6897     if test "$tmp_need_reentrant" = "no"; then
6898
6899   if test "$tmp_need_reentrant" = "no"; then
6900
6901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h.  */
6903
6904
6905 #define gmtime_r innocuous_gmtime_r
6906 #ifdef __STDC__
6907 # include <limits.h>
6908 #else
6909 # include <assert.h>
6910 #endif
6911 #undef gmtime_r
6912 #ifdef __cplusplus
6913 extern "C"
6914 #endif
6915 char gmtime_r ();
6916 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6917 choke me
6918 #endif
6919
6920 int main (void)
6921 {
6922 return gmtime_r ();
6923  ;
6924  return 0;
6925 }
6926
6927 _ACEOF
6928 if ac_fn_c_try_link "$LINENO"; then :
6929
6930     tmp_gmtime_r="yes"
6931
6932 else
6933
6934     tmp_gmtime_r="no"
6935
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext \
6938     conftest$ac_exeext conftest.$ac_ext
6939   if test "$tmp_gmtime_r" = "yes"; then
6940     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h.  */
6942
6943 #include <sys/types.h>
6944 #include <time.h>
6945
6946 _ACEOF
6947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6948   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6949
6950       tmp_gmtime_r="proto_declared"
6951
6952 else
6953
6954       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h.  */
6956
6957 #define _REENTRANT
6958 #include <sys/types.h>
6959 #include <time.h>
6960
6961 _ACEOF
6962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6963   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6964
6965         tmp_gmtime_r="proto_needs_reentrant"
6966         tmp_need_reentrant="yes"
6967
6968 fi
6969 rm -f conftest*
6970
6971
6972 fi
6973 rm -f conftest*
6974
6975   fi
6976
6977   fi
6978   if test "$tmp_need_reentrant" = "no"; then
6979
6980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h.  */
6982
6983
6984 #define localtime_r innocuous_localtime_r
6985 #ifdef __STDC__
6986 # include <limits.h>
6987 #else
6988 # include <assert.h>
6989 #endif
6990 #undef localtime_r
6991 #ifdef __cplusplus
6992 extern "C"
6993 #endif
6994 char localtime_r ();
6995 #if defined __stub_localtime_r || defined __stub___localtime_r
6996 choke me
6997 #endif
6998
6999 int main (void)
7000 {
7001 return localtime_r ();
7002  ;
7003  return 0;
7004 }
7005
7006 _ACEOF
7007 if ac_fn_c_try_link "$LINENO"; then :
7008
7009     tmp_localtime_r="yes"
7010
7011 else
7012
7013     tmp_localtime_r="no"
7014
7015 fi
7016 rm -f core conftest.err conftest.$ac_objext \
7017     conftest$ac_exeext conftest.$ac_ext
7018   if test "$tmp_localtime_r" = "yes"; then
7019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h.  */
7021
7022 #include <sys/types.h>
7023 #include <time.h>
7024
7025 _ACEOF
7026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7027   $EGREP "localtime_r" >/dev/null 2>&1; then :
7028
7029       tmp_localtime_r="proto_declared"
7030
7031 else
7032
7033       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h.  */
7035
7036 #define _REENTRANT
7037 #include <sys/types.h>
7038 #include <time.h>
7039
7040 _ACEOF
7041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7042   $EGREP "localtime_r" >/dev/null 2>&1; then :
7043
7044         tmp_localtime_r="proto_needs_reentrant"
7045         tmp_need_reentrant="yes"
7046
7047 fi
7048 rm -f conftest*
7049
7050
7051 fi
7052 rm -f conftest*
7053
7054   fi
7055
7056   fi
7057   if test "$tmp_need_reentrant" = "no"; then
7058
7059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h.  */
7061
7062
7063 #define strerror_r innocuous_strerror_r
7064 #ifdef __STDC__
7065 # include <limits.h>
7066 #else
7067 # include <assert.h>
7068 #endif
7069 #undef strerror_r
7070 #ifdef __cplusplus
7071 extern "C"
7072 #endif
7073 char strerror_r ();
7074 #if defined __stub_strerror_r || defined __stub___strerror_r
7075 choke me
7076 #endif
7077
7078 int main (void)
7079 {
7080 return strerror_r ();
7081  ;
7082  return 0;
7083 }
7084
7085 _ACEOF
7086 if ac_fn_c_try_link "$LINENO"; then :
7087
7088     tmp_strerror_r="yes"
7089
7090 else
7091
7092     tmp_strerror_r="no"
7093
7094 fi
7095 rm -f core conftest.err conftest.$ac_objext \
7096     conftest$ac_exeext conftest.$ac_ext
7097   if test "$tmp_strerror_r" = "yes"; then
7098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h.  */
7100
7101 #include <sys/types.h>
7102 #include <string.h>
7103
7104 _ACEOF
7105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7106   $EGREP "strerror_r" >/dev/null 2>&1; then :
7107
7108       tmp_strerror_r="proto_declared"
7109
7110 else
7111
7112       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h.  */
7114
7115 #define _REENTRANT
7116 #include <sys/types.h>
7117 #include <string.h>
7118
7119 _ACEOF
7120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7121   $EGREP "strerror_r" >/dev/null 2>&1; then :
7122
7123         tmp_strerror_r="proto_needs_reentrant"
7124         tmp_need_reentrant="yes"
7125
7126 fi
7127 rm -f conftest*
7128
7129
7130 fi
7131 rm -f conftest*
7132
7133   fi
7134
7135   fi
7136   if test "$tmp_need_reentrant" = "no"; then
7137
7138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h.  */
7140
7141
7142 #define strtok_r innocuous_strtok_r
7143 #ifdef __STDC__
7144 # include <limits.h>
7145 #else
7146 # include <assert.h>
7147 #endif
7148 #undef strtok_r
7149 #ifdef __cplusplus
7150 extern "C"
7151 #endif
7152 char strtok_r ();
7153 #if defined __stub_strtok_r || defined __stub___strtok_r
7154 choke me
7155 #endif
7156
7157 int main (void)
7158 {
7159 return strtok_r ();
7160  ;
7161  return 0;
7162 }
7163
7164 _ACEOF
7165 if ac_fn_c_try_link "$LINENO"; then :
7166
7167     tmp_strtok_r="yes"
7168
7169 else
7170
7171     tmp_strtok_r="no"
7172
7173 fi
7174 rm -f core conftest.err conftest.$ac_objext \
7175     conftest$ac_exeext conftest.$ac_ext
7176   if test "$tmp_strtok_r" = "yes"; then
7177     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h.  */
7179
7180 #include <sys/types.h>
7181 #include <string.h>
7182
7183 _ACEOF
7184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7185   $EGREP "strtok_r" >/dev/null 2>&1; then :
7186
7187       tmp_strtok_r="proto_declared"
7188
7189 else
7190
7191       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h.  */
7193
7194 #define _REENTRANT
7195 #include <sys/types.h>
7196 #include <string.h>
7197
7198 _ACEOF
7199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7200   $EGREP "strtok_r" >/dev/null 2>&1; then :
7201
7202         tmp_strtok_r="proto_needs_reentrant"
7203         tmp_need_reentrant="yes"
7204
7205 fi
7206 rm -f conftest*
7207
7208
7209 fi
7210 rm -f conftest*
7211
7212   fi
7213
7214   fi
7215   if test "$tmp_need_reentrant" = "no"; then
7216
7217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h.  */
7219
7220
7221 #define inet_ntoa_r innocuous_inet_ntoa_r
7222 #ifdef __STDC__
7223 # include <limits.h>
7224 #else
7225 # include <assert.h>
7226 #endif
7227 #undef inet_ntoa_r
7228 #ifdef __cplusplus
7229 extern "C"
7230 #endif
7231 char inet_ntoa_r ();
7232 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7233 choke me
7234 #endif
7235
7236 int main (void)
7237 {
7238 return inet_ntoa_r ();
7239  ;
7240  return 0;
7241 }
7242
7243 _ACEOF
7244 if ac_fn_c_try_link "$LINENO"; then :
7245
7246     tmp_inet_ntoa_r="yes"
7247
7248 else
7249
7250     tmp_inet_ntoa_r="no"
7251
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext \
7254     conftest$ac_exeext conftest.$ac_ext
7255   if test "$tmp_inet_ntoa_r" = "yes"; then
7256     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h.  */
7258
7259 #include <sys/types.h>
7260 #include <sys/socket.h>
7261 #include <netinet/in.h>
7262 #include <arpa/inet.h>
7263
7264 _ACEOF
7265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7266   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7267
7268       tmp_inet_ntoa_r="proto_declared"
7269
7270 else
7271
7272       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h.  */
7274
7275 #define _REENTRANT
7276 #include <sys/types.h>
7277 #include <sys/socket.h>
7278 #include <netinet/in.h>
7279 #include <arpa/inet.h>
7280
7281 _ACEOF
7282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7284
7285         tmp_inet_ntoa_r="proto_needs_reentrant"
7286         tmp_need_reentrant="yes"
7287
7288 fi
7289 rm -f conftest*
7290
7291
7292 fi
7293 rm -f conftest*
7294
7295   fi
7296
7297   fi
7298   if test "$tmp_need_reentrant" = "no"; then
7299
7300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h.  */
7302
7303
7304 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7305 #ifdef __STDC__
7306 # include <limits.h>
7307 #else
7308 # include <assert.h>
7309 #endif
7310 #undef gethostbyaddr_r
7311 #ifdef __cplusplus
7312 extern "C"
7313 #endif
7314 char gethostbyaddr_r ();
7315 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7316 choke me
7317 #endif
7318
7319 int main (void)
7320 {
7321 return gethostbyaddr_r ();
7322  ;
7323  return 0;
7324 }
7325
7326 _ACEOF
7327 if ac_fn_c_try_link "$LINENO"; then :
7328
7329     tmp_gethostbyaddr_r="yes"
7330
7331 else
7332
7333     tmp_gethostbyaddr_r="no"
7334
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext \
7337     conftest$ac_exeext conftest.$ac_ext
7338   if test "$tmp_gethostbyaddr_r" = "yes"; then
7339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h.  */
7341
7342 #include <sys/types.h>
7343 #include <netdb.h>
7344
7345 _ACEOF
7346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7347   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7348
7349       tmp_gethostbyaddr_r="proto_declared"
7350
7351 else
7352
7353       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h.  */
7355
7356 #define _REENTRANT
7357 #include <sys/types.h>
7358 #include <netdb.h>
7359
7360 _ACEOF
7361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7362   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7363
7364         tmp_gethostbyaddr_r="proto_needs_reentrant"
7365         tmp_need_reentrant="yes"
7366
7367 fi
7368 rm -f conftest*
7369
7370
7371 fi
7372 rm -f conftest*
7373
7374   fi
7375
7376   fi
7377   if test "$tmp_need_reentrant" = "no"; then
7378
7379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h.  */
7381
7382
7383 #define gethostbyname_r innocuous_gethostbyname_r
7384 #ifdef __STDC__
7385 # include <limits.h>
7386 #else
7387 # include <assert.h>
7388 #endif
7389 #undef gethostbyname_r
7390 #ifdef __cplusplus
7391 extern "C"
7392 #endif
7393 char gethostbyname_r ();
7394 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7395 choke me
7396 #endif
7397
7398 int main (void)
7399 {
7400 return gethostbyname_r ();
7401  ;
7402  return 0;
7403 }
7404
7405 _ACEOF
7406 if ac_fn_c_try_link "$LINENO"; then :
7407
7408     tmp_gethostbyname_r="yes"
7409
7410 else
7411
7412     tmp_gethostbyname_r="no"
7413
7414 fi
7415 rm -f core conftest.err conftest.$ac_objext \
7416     conftest$ac_exeext conftest.$ac_ext
7417   if test "$tmp_gethostbyname_r" = "yes"; then
7418     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h.  */
7420
7421 #include <sys/types.h>
7422 #include <netdb.h>
7423
7424 _ACEOF
7425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7426   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7427
7428       tmp_gethostbyname_r="proto_declared"
7429
7430 else
7431
7432       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h.  */
7434
7435 #define _REENTRANT
7436 #include <sys/types.h>
7437 #include <netdb.h>
7438
7439 _ACEOF
7440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7441   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7442
7443         tmp_gethostbyname_r="proto_needs_reentrant"
7444         tmp_need_reentrant="yes"
7445
7446 fi
7447 rm -f conftest*
7448
7449
7450 fi
7451 rm -f conftest*
7452
7453   fi
7454
7455   fi
7456   if test "$tmp_need_reentrant" = "no"; then
7457
7458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h.  */
7460
7461
7462 #define getprotobyname_r innocuous_getprotobyname_r
7463 #ifdef __STDC__
7464 # include <limits.h>
7465 #else
7466 # include <assert.h>
7467 #endif
7468 #undef getprotobyname_r
7469 #ifdef __cplusplus
7470 extern "C"
7471 #endif
7472 char getprotobyname_r ();
7473 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7474 choke me
7475 #endif
7476
7477 int main (void)
7478 {
7479 return getprotobyname_r ();
7480  ;
7481  return 0;
7482 }
7483
7484 _ACEOF
7485 if ac_fn_c_try_link "$LINENO"; then :
7486
7487     tmp_getprotobyname_r="yes"
7488
7489 else
7490
7491     tmp_getprotobyname_r="no"
7492
7493 fi
7494 rm -f core conftest.err conftest.$ac_objext \
7495     conftest$ac_exeext conftest.$ac_ext
7496   if test "$tmp_getprotobyname_r" = "yes"; then
7497     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h.  */
7499
7500 #include <sys/types.h>
7501 #include <netdb.h>
7502
7503 _ACEOF
7504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7505   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7506
7507       tmp_getprotobyname_r="proto_declared"
7508
7509 else
7510
7511       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h.  */
7513
7514 #define _REENTRANT
7515 #include <sys/types.h>
7516 #include <netdb.h>
7517
7518 _ACEOF
7519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7520   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7521
7522         tmp_getprotobyname_r="proto_needs_reentrant"
7523         tmp_need_reentrant="yes"
7524
7525 fi
7526 rm -f conftest*
7527
7528
7529 fi
7530 rm -f conftest*
7531
7532   fi
7533
7534   fi
7535   if test "$tmp_need_reentrant" = "no"; then
7536
7537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h.  */
7539
7540
7541 #define getservbyport_r innocuous_getservbyport_r
7542 #ifdef __STDC__
7543 # include <limits.h>
7544 #else
7545 # include <assert.h>
7546 #endif
7547 #undef getservbyport_r
7548 #ifdef __cplusplus
7549 extern "C"
7550 #endif
7551 char getservbyport_r ();
7552 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7553 choke me
7554 #endif
7555
7556 int main (void)
7557 {
7558 return getservbyport_r ();
7559  ;
7560  return 0;
7561 }
7562
7563 _ACEOF
7564 if ac_fn_c_try_link "$LINENO"; then :
7565
7566     tmp_getservbyport_r="yes"
7567
7568 else
7569
7570     tmp_getservbyport_r="no"
7571
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext \
7574     conftest$ac_exeext conftest.$ac_ext
7575   if test "$tmp_getservbyport_r" = "yes"; then
7576     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h.  */
7578
7579 #include <sys/types.h>
7580 #include <netdb.h>
7581
7582 _ACEOF
7583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7584   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7585
7586       tmp_getservbyport_r="proto_declared"
7587
7588 else
7589
7590       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h.  */
7592
7593 #define _REENTRANT
7594 #include <sys/types.h>
7595 #include <netdb.h>
7596
7597 _ACEOF
7598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7599   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7600
7601         tmp_getservbyport_r="proto_needs_reentrant"
7602         tmp_need_reentrant="yes"
7603
7604 fi
7605 rm -f conftest*
7606
7607
7608 fi
7609 rm -f conftest*
7610
7611   fi
7612
7613   fi
7614
7615     fi
7616     if test "$tmp_need_reentrant" = "yes"; then
7617       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7618 $as_echo "yes" >&6; }
7619     else
7620       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7622     fi
7623   fi
7624   #
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7626 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7627   if test "$tmp_reentrant_initially_defined" = "yes" ||
7628     test "$tmp_need_reentrant" = "yes"; then
7629
7630
7631 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7632
7633 cat >>confdefs.h <<_EOF
7634 #ifndef _REENTRANT
7635 #  define _REENTRANT
7636 #endif
7637 _EOF
7638
7639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7640 $as_echo "yes" >&6; }
7641   else
7642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7644   fi
7645   #
7646
7647
7648 # Check whether --enable-largefile was given.
7649 if test "${enable_largefile+set}" = set; then :
7650   enableval=$enable_largefile;
7651 fi
7652
7653 if test "$enable_largefile" != no; then
7654
7655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7656 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7657 if ${ac_cv_sys_largefile_CC+:} false; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660   ac_cv_sys_largefile_CC=no
7661      if test "$GCC" != yes; then
7662        ac_save_CC=$CC
7663        while :; do
7664          # IRIX 6.2 and later do not support large files by default,
7665          # so use the C compiler's -n32 option if that helps.
7666          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h.  */
7668 #include <sys/types.h>
7669  /* Check that off_t can represent 2**63 - 1 correctly.
7670     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7671     since some C++ compilers masquerading as C compilers
7672     incorrectly reject 9223372036854775807.  */
7673 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7674   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7675                        && LARGE_OFF_T % 2147483647 == 1)
7676                       ? 1 : -1];
7677 int main (void)
7678 {
7679
7680  ;
7681  return 0;
7682 }
7683 _ACEOF
7684          if ac_fn_c_try_compile "$LINENO"; then :
7685   break
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext
7688          CC="$CC -n32"
7689          if ac_fn_c_try_compile "$LINENO"; then :
7690   ac_cv_sys_largefile_CC=' -n32'; break
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext
7693          break
7694        done
7695        CC=$ac_save_CC
7696        rm -f conftest.$ac_ext
7697     fi
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7700 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7701   if test "$ac_cv_sys_largefile_CC" != no; then
7702     CC=$CC$ac_cv_sys_largefile_CC
7703   fi
7704
7705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7706 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7707 if ${ac_cv_sys_file_offset_bits+:} false; then :
7708   $as_echo_n "(cached) " >&6
7709 else
7710   while :; do
7711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h.  */
7713 #include <sys/types.h>
7714  /* Check that off_t can represent 2**63 - 1 correctly.
7715     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7716     since some C++ compilers masquerading as C compilers
7717     incorrectly reject 9223372036854775807.  */
7718 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7719   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7720                        && LARGE_OFF_T % 2147483647 == 1)
7721                       ? 1 : -1];
7722 int main (void)
7723 {
7724
7725  ;
7726  return 0;
7727 }
7728 _ACEOF
7729 if ac_fn_c_try_compile "$LINENO"; then :
7730   ac_cv_sys_file_offset_bits=no; break
7731 fi
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h.  */
7735 #define _FILE_OFFSET_BITS 64
7736 #include <sys/types.h>
7737  /* Check that off_t can represent 2**63 - 1 correctly.
7738     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7739     since some C++ compilers masquerading as C compilers
7740     incorrectly reject 9223372036854775807.  */
7741 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7742   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7743                        && LARGE_OFF_T % 2147483647 == 1)
7744                       ? 1 : -1];
7745 int main (void)
7746 {
7747
7748  ;
7749  return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753   ac_cv_sys_file_offset_bits=64; break
7754 fi
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756   ac_cv_sys_file_offset_bits=unknown
7757   break
7758 done
7759 fi
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7761 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7762 case $ac_cv_sys_file_offset_bits in #(
7763   no | unknown) ;;
7764   *)
7765 cat >>confdefs.h <<_ACEOF
7766 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7767 _ACEOF
7768 ;;
7769 esac
7770 rm -rf conftest*
7771   if test $ac_cv_sys_file_offset_bits = unknown; then
7772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7773 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7774 if ${ac_cv_sys_large_files+:} false; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   while :; do
7778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h.  */
7780 #include <sys/types.h>
7781  /* Check that off_t can represent 2**63 - 1 correctly.
7782     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7783     since some C++ compilers masquerading as C compilers
7784     incorrectly reject 9223372036854775807.  */
7785 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7786   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7787                        && LARGE_OFF_T % 2147483647 == 1)
7788                       ? 1 : -1];
7789 int main (void)
7790 {
7791
7792  ;
7793  return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_c_try_compile "$LINENO"; then :
7797   ac_cv_sys_large_files=no; break
7798 fi
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h.  */
7802 #define _LARGE_FILES 1
7803 #include <sys/types.h>
7804  /* Check that off_t can represent 2**63 - 1 correctly.
7805     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7806     since some C++ compilers masquerading as C compilers
7807     incorrectly reject 9223372036854775807.  */
7808 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7809   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7810                        && LARGE_OFF_T % 2147483647 == 1)
7811                       ? 1 : -1];
7812 int main (void)
7813 {
7814
7815  ;
7816  return 0;
7817 }
7818 _ACEOF
7819 if ac_fn_c_try_compile "$LINENO"; then :
7820   ac_cv_sys_large_files=1; break
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823   ac_cv_sys_large_files=unknown
7824   break
7825 done
7826 fi
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7828 $as_echo "$ac_cv_sys_large_files" >&6; }
7829 case $ac_cv_sys_large_files in #(
7830   no | unknown) ;;
7831   *)
7832 cat >>confdefs.h <<_ACEOF
7833 #define _LARGE_FILES $ac_cv_sys_large_files
7834 _ACEOF
7835 ;;
7836 esac
7837 rm -rf conftest*
7838   fi
7839
7840
7841 fi
7842
7843
7844 case `pwd` in
7845   *\ * | *\     *)
7846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7847 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7848 esac
7849
7850
7851
7852 macro_version='2.4.6'
7853 macro_revision='2.4.6'
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867 ltmain=$ac_aux_dir/ltmain.sh
7868
7869 # Backslashify metacharacters that are still active within
7870 # double-quoted strings.
7871 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7872
7873 # Same as above, but do not quote variable references.
7874 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7875
7876 # Sed substitution to delay expansion of an escaped shell variable in a
7877 # double_quote_subst'ed string.
7878 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7879
7880 # Sed substitution to delay expansion of an escaped single quote.
7881 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7882
7883 # Sed substitution to avoid accidental globbing in evaled expressions
7884 no_glob_subst='s/\*/\\\*/g'
7885
7886 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7887 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7888 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7889
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7891 $as_echo_n "checking how to print strings... " >&6; }
7892 # Test print first, because it will be a builtin if present.
7893 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7894    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7895   ECHO='print -r --'
7896 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7897   ECHO='printf %s\n'
7898 else
7899   # Use this function as a fallback that always works.
7900   func_fallback_echo ()
7901   {
7902     eval 'cat <<_LTECHO_EOF
7903 $1
7904 _LTECHO_EOF'
7905   }
7906   ECHO='func_fallback_echo'
7907 fi
7908
7909 # func_echo_all arg...
7910 # Invoke $ECHO with all args, space-separated.
7911 func_echo_all ()
7912 {
7913     $ECHO ""
7914 }
7915
7916 case $ECHO in
7917   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7918 $as_echo "printf" >&6; } ;;
7919   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7920 $as_echo "print -r" >&6; } ;;
7921   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7922 $as_echo "cat" >&6; } ;;
7923 esac
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7939 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7940 if ${ac_cv_path_SED+:} false; then :
7941   $as_echo_n "(cached) " >&6
7942 else
7943             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7944      for ac_i in 1 2 3 4 5 6 7; do
7945        ac_script="$ac_script$as_nl$ac_script"
7946      done
7947      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7948      { ac_script=; unset ac_script;}
7949      if test -z "$SED"; then
7950   ac_path_SED_found=false
7951   # Loop through the user's path and test for each of PROGNAME-LIST
7952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955   IFS=$as_save_IFS
7956   test -z "$as_dir" && as_dir=.
7957     for ac_prog in sed gsed; do
7958     for ac_exec_ext in '' $ac_executable_extensions; do
7959       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7960       as_fn_executable_p "$ac_path_SED" || continue
7961 # Check for GNU ac_path_SED and select it if it is found.
7962   # Check for GNU $ac_path_SED
7963 case `"$ac_path_SED" --version 2>&1` in
7964 *GNU*)
7965   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7966 *)
7967   ac_count=0
7968   $as_echo_n 0123456789 >"conftest.in"
7969   while :
7970   do
7971     cat "conftest.in" "conftest.in" >"conftest.tmp"
7972     mv "conftest.tmp" "conftest.in"
7973     cp "conftest.in" "conftest.nl"
7974     $as_echo '' >> "conftest.nl"
7975     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7976     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7977     as_fn_arith $ac_count + 1 && ac_count=$as_val
7978     if test $ac_count -gt ${ac_path_SED_max-0}; then
7979       # Best one so far, save it but keep looking for a better one
7980       ac_cv_path_SED="$ac_path_SED"
7981       ac_path_SED_max=$ac_count
7982     fi
7983     # 10*(2^10) chars as input seems more than enough
7984     test $ac_count -gt 10 && break
7985   done
7986   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7987 esac
7988
7989       $ac_path_SED_found && break 3
7990     done
7991   done
7992   done
7993 IFS=$as_save_IFS
7994   if test -z "$ac_cv_path_SED"; then
7995     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7996   fi
7997 else
7998   ac_cv_path_SED=$SED
7999 fi
8000
8001 fi
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8003 $as_echo "$ac_cv_path_SED" >&6; }
8004  SED="$ac_cv_path_SED"
8005   rm -f conftest.sed
8006
8007 test -z "$SED" && SED=sed
8008 Xsed="$SED -e 1s/^X//"
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8021 $as_echo_n "checking for fgrep... " >&6; }
8022 if ${ac_cv_path_FGREP+:} false; then :
8023   $as_echo_n "(cached) " >&6
8024 else
8025   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8026    then ac_cv_path_FGREP="$GREP -F"
8027    else
8028      if test -z "$FGREP"; then
8029   ac_path_FGREP_found=false
8030   # Loop through the user's path and test for each of PROGNAME-LIST
8031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8033 do
8034   IFS=$as_save_IFS
8035   test -z "$as_dir" && as_dir=.
8036     for ac_prog in fgrep; do
8037     for ac_exec_ext in '' $ac_executable_extensions; do
8038       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8039       as_fn_executable_p "$ac_path_FGREP" || continue
8040 # Check for GNU ac_path_FGREP and select it if it is found.
8041   # Check for GNU $ac_path_FGREP
8042 case `"$ac_path_FGREP" --version 2>&1` in
8043 *GNU*)
8044   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8045 *)
8046   ac_count=0
8047   $as_echo_n 0123456789 >"conftest.in"
8048   while :
8049   do
8050     cat "conftest.in" "conftest.in" >"conftest.tmp"
8051     mv "conftest.tmp" "conftest.in"
8052     cp "conftest.in" "conftest.nl"
8053     $as_echo 'FGREP' >> "conftest.nl"
8054     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8055     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8056     as_fn_arith $ac_count + 1 && ac_count=$as_val
8057     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8058       # Best one so far, save it but keep looking for a better one
8059       ac_cv_path_FGREP="$ac_path_FGREP"
8060       ac_path_FGREP_max=$ac_count
8061     fi
8062     # 10*(2^10) chars as input seems more than enough
8063     test $ac_count -gt 10 && break
8064   done
8065   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8066 esac
8067
8068       $ac_path_FGREP_found && break 3
8069     done
8070   done
8071   done
8072 IFS=$as_save_IFS
8073   if test -z "$ac_cv_path_FGREP"; then
8074     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8075   fi
8076 else
8077   ac_cv_path_FGREP=$FGREP
8078 fi
8079
8080    fi
8081 fi
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8083 $as_echo "$ac_cv_path_FGREP" >&6; }
8084  FGREP="$ac_cv_path_FGREP"
8085
8086
8087 test -z "$GREP" && GREP=grep
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107 # Check whether --with-gnu-ld was given.
8108 if test "${with_gnu_ld+set}" = set; then :
8109   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8110 else
8111   with_gnu_ld=no
8112 fi
8113
8114 ac_prog=ld
8115 if test yes = "$GCC"; then
8116   # Check if gcc -print-prog-name=ld gives a path.
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8118 $as_echo_n "checking for ld used by $CC... " >&6; }
8119   case $host in
8120   *-*-mingw*)
8121     # gcc leaves a trailing carriage return, which upsets mingw
8122     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8123   *)
8124     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8125   esac
8126   case $ac_prog in
8127     # Accept absolute paths.
8128     [\\/]* | ?:[\\/]*)
8129       re_direlt='/[^/][^/]*/\.\./'
8130       # Canonicalize the pathname of ld
8131       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8132       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8133         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8134       done
8135       test -z "$LD" && LD=$ac_prog
8136       ;;
8137   "")
8138     # If it fails, then pretend we aren't using GCC.
8139     ac_prog=ld
8140     ;;
8141   *)
8142     # If it is relative, then search for the first ld in PATH.
8143     with_gnu_ld=unknown
8144     ;;
8145   esac
8146 elif test yes = "$with_gnu_ld"; then
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8148 $as_echo_n "checking for GNU ld... " >&6; }
8149 else
8150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8151 $as_echo_n "checking for non-GNU ld... " >&6; }
8152 fi
8153 if ${lt_cv_path_LD+:} false; then :
8154   $as_echo_n "(cached) " >&6
8155 else
8156   if test -z "$LD"; then
8157   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8158   for ac_dir in $PATH; do
8159     IFS=$lt_save_ifs
8160     test -z "$ac_dir" && ac_dir=.
8161     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8162       lt_cv_path_LD=$ac_dir/$ac_prog
8163       # Check to see if the program is GNU ld.  I'd rather use --version,
8164       # but apparently some variants of GNU ld only accept -v.
8165       # Break only if it was the GNU/non-GNU ld that we prefer.
8166       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8167       *GNU* | *'with BFD'*)
8168         test no != "$with_gnu_ld" && break
8169         ;;
8170       *)
8171         test yes != "$with_gnu_ld" && break
8172         ;;
8173       esac
8174     fi
8175   done
8176   IFS=$lt_save_ifs
8177 else
8178   lt_cv_path_LD=$LD # Let the user override the test with a path.
8179 fi
8180 fi
8181
8182 LD=$lt_cv_path_LD
8183 if test -n "$LD"; then
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8185 $as_echo "$LD" >&6; }
8186 else
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8189 fi
8190 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8192 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8193 if ${lt_cv_prog_gnu_ld+:} false; then :
8194   $as_echo_n "(cached) " >&6
8195 else
8196   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8197 case `$LD -v 2>&1 </dev/null` in
8198 *GNU* | *'with BFD'*)
8199   lt_cv_prog_gnu_ld=yes
8200   ;;
8201 *)
8202   lt_cv_prog_gnu_ld=no
8203   ;;
8204 esac
8205 fi
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8207 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8208 with_gnu_ld=$lt_cv_prog_gnu_ld
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8219 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8220 if ${lt_cv_path_NM+:} false; then :
8221   $as_echo_n "(cached) " >&6
8222 else
8223   if test -n "$NM"; then
8224   # Let the user override the test.
8225   lt_cv_path_NM=$NM
8226 else
8227   lt_nm_to_check=${ac_tool_prefix}nm
8228   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8229     lt_nm_to_check="$lt_nm_to_check nm"
8230   fi
8231   for lt_tmp_nm in $lt_nm_to_check; do
8232     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8233     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8234       IFS=$lt_save_ifs
8235       test -z "$ac_dir" && ac_dir=.
8236       tmp_nm=$ac_dir/$lt_tmp_nm
8237       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8238         # Check to see if the nm accepts a BSD-compat flag.
8239         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8240         #   nm: unknown option "B" ignored
8241         # Tru64's nm complains that /dev/null is an invalid object file
8242         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8243         case $build_os in
8244         mingw*) lt_bad_file=conftest.nm/nofile ;;
8245         *) lt_bad_file=/dev/null ;;
8246         esac
8247         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8248         *$lt_bad_file* | *'Invalid file or object type'*)
8249           lt_cv_path_NM="$tmp_nm -B"
8250           break 2
8251           ;;
8252         *)
8253           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8254           */dev/null*)
8255             lt_cv_path_NM="$tmp_nm -p"
8256             break 2
8257             ;;
8258           *)
8259             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8260             continue # so that we can try to find one that supports BSD flags
8261             ;;
8262           esac
8263           ;;
8264         esac
8265       fi
8266     done
8267     IFS=$lt_save_ifs
8268   done
8269   : ${lt_cv_path_NM=no}
8270 fi
8271 fi
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8273 $as_echo "$lt_cv_path_NM" >&6; }
8274 if test no != "$lt_cv_path_NM"; then
8275   NM=$lt_cv_path_NM
8276 else
8277   # Didn't find any BSD compatible name lister, look for dumpbin.
8278   if test -n "$DUMPBIN"; then :
8279     # Let the user override the test.
8280   else
8281     if test -n "$ac_tool_prefix"; then
8282   for ac_prog in dumpbin "link -dump"
8283   do
8284     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8287 $as_echo_n "checking for $ac_word... " >&6; }
8288 if ${ac_cv_prog_DUMPBIN+:} false; then :
8289   $as_echo_n "(cached) " >&6
8290 else
8291   if test -n "$DUMPBIN"; then
8292   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8293 else
8294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295 for as_dir in $PATH
8296 do
8297   IFS=$as_save_IFS
8298   test -z "$as_dir" && as_dir=.
8299     for ac_exec_ext in '' $ac_executable_extensions; do
8300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8301     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8303     break 2
8304   fi
8305 done
8306   done
8307 IFS=$as_save_IFS
8308
8309 fi
8310 fi
8311 DUMPBIN=$ac_cv_prog_DUMPBIN
8312 if test -n "$DUMPBIN"; then
8313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8314 $as_echo "$DUMPBIN" >&6; }
8315 else
8316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317 $as_echo "no" >&6; }
8318 fi
8319
8320
8321     test -n "$DUMPBIN" && break
8322   done
8323 fi
8324 if test -z "$DUMPBIN"; then
8325   ac_ct_DUMPBIN=$DUMPBIN
8326   for ac_prog in dumpbin "link -dump"
8327 do
8328   # Extract the first word of "$ac_prog", so it can be a program name with args.
8329 set dummy $ac_prog; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8333   $as_echo_n "(cached) " >&6
8334 else
8335   if test -n "$ac_ct_DUMPBIN"; then
8336   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8340 do
8341   IFS=$as_save_IFS
8342   test -z "$as_dir" && as_dir=.
8343     for ac_exec_ext in '' $ac_executable_extensions; do
8344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347     break 2
8348   fi
8349 done
8350   done
8351 IFS=$as_save_IFS
8352
8353 fi
8354 fi
8355 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8356 if test -n "$ac_ct_DUMPBIN"; then
8357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8358 $as_echo "$ac_ct_DUMPBIN" >&6; }
8359 else
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8362 fi
8363
8364
8365   test -n "$ac_ct_DUMPBIN" && break
8366 done
8367
8368   if test "x$ac_ct_DUMPBIN" = x; then
8369     DUMPBIN=":"
8370   else
8371     case $cross_compiling:$ac_tool_warned in
8372 yes:)
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8375 ac_tool_warned=yes ;;
8376 esac
8377     DUMPBIN=$ac_ct_DUMPBIN
8378   fi
8379 fi
8380
8381     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8382     *COFF*)
8383       DUMPBIN="$DUMPBIN -symbols -headers"
8384       ;;
8385     *)
8386       DUMPBIN=:
8387       ;;
8388     esac
8389   fi
8390
8391   if test : != "$DUMPBIN"; then
8392     NM=$DUMPBIN
8393   fi
8394 fi
8395 test -z "$NM" && NM=nm
8396
8397
8398
8399
8400
8401
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8403 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8404 if ${lt_cv_nm_interface+:} false; then :
8405   $as_echo_n "(cached) " >&6
8406 else
8407   lt_cv_nm_interface="BSD nm"
8408   echo "int some_variable = 0;" > conftest.$ac_ext
8409   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8410   (eval "$ac_compile" 2>conftest.err)
8411   cat conftest.err >&5
8412   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8413   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8414   cat conftest.err >&5
8415   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8416   cat conftest.out >&5
8417   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8418     lt_cv_nm_interface="MS dumpbin"
8419   fi
8420   rm -f conftest*
8421 fi
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8423 $as_echo "$lt_cv_nm_interface" >&6; }
8424
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8426 $as_echo_n "checking whether ln -s works... " >&6; }
8427 LN_S=$as_ln_s
8428 if test "$LN_S" = "ln -s"; then
8429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8430 $as_echo "yes" >&6; }
8431 else
8432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8433 $as_echo "no, using $LN_S" >&6; }
8434 fi
8435
8436 # find the maximum length of command line arguments
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8438 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8439 if ${lt_cv_sys_max_cmd_len+:} false; then :
8440   $as_echo_n "(cached) " >&6
8441 else
8442     i=0
8443   teststring=ABCD
8444
8445   case $build_os in
8446   msdosdjgpp*)
8447     # On DJGPP, this test can blow up pretty badly due to problems in libc
8448     # (any single argument exceeding 2000 bytes causes a buffer overrun
8449     # during glob expansion).  Even if it were fixed, the result of this
8450     # check would be larger than it should be.
8451     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8452     ;;
8453
8454   gnu*)
8455     # Under GNU Hurd, this test is not required because there is
8456     # no limit to the length of command line arguments.
8457     # Libtool will interpret -1 as no limit whatsoever
8458     lt_cv_sys_max_cmd_len=-1;
8459     ;;
8460
8461   cygwin* | mingw* | cegcc*)
8462     # On Win9x/ME, this test blows up -- it succeeds, but takes
8463     # about 5 minutes as the teststring grows exponentially.
8464     # Worse, since 9x/ME are not pre-emptively multitasking,
8465     # you end up with a "frozen" computer, even though with patience
8466     # the test eventually succeeds (with a max line length of 256k).
8467     # Instead, let's just punt: use the minimum linelength reported by
8468     # all of the supported platforms: 8192 (on NT/2K/XP).
8469     lt_cv_sys_max_cmd_len=8192;
8470     ;;
8471
8472   mint*)
8473     # On MiNT this can take a long time and run out of memory.
8474     lt_cv_sys_max_cmd_len=8192;
8475     ;;
8476
8477   amigaos*)
8478     # On AmigaOS with pdksh, this test takes hours, literally.
8479     # So we just punt and use a minimum line length of 8192.
8480     lt_cv_sys_max_cmd_len=8192;
8481     ;;
8482
8483   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8484     # This has been around since 386BSD, at least.  Likely further.
8485     if test -x /sbin/sysctl; then
8486       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8487     elif test -x /usr/sbin/sysctl; then
8488       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8489     else
8490       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8491     fi
8492     # And add a safety zone
8493     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8494     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8495     ;;
8496
8497   interix*)
8498     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8499     lt_cv_sys_max_cmd_len=196608
8500     ;;
8501
8502   os2*)
8503     # The test takes a long time on OS/2.
8504     lt_cv_sys_max_cmd_len=8192
8505     ;;
8506
8507   osf*)
8508     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8509     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8510     # nice to cause kernel panics so lets avoid the loop below.
8511     # First set a reasonable default.
8512     lt_cv_sys_max_cmd_len=16384
8513     #
8514     if test -x /sbin/sysconfig; then
8515       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8516         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8517       esac
8518     fi
8519     ;;
8520   sco3.2v5*)
8521     lt_cv_sys_max_cmd_len=102400
8522     ;;
8523   sysv5* | sco5v6* | sysv4.2uw2*)
8524     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8525     if test -n "$kargmax"; then
8526       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8527     else
8528       lt_cv_sys_max_cmd_len=32768
8529     fi
8530     ;;
8531   *)
8532     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8533     if test -n "$lt_cv_sys_max_cmd_len" && \
8534        test undefined != "$lt_cv_sys_max_cmd_len"; then
8535       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8536       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8537     else
8538       # Make teststring a little bigger before we do anything with it.
8539       # a 1K string should be a reasonable start.
8540       for i in 1 2 3 4 5 6 7 8; do
8541         teststring=$teststring$teststring
8542       done
8543       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8544       # If test is not a shell built-in, we'll probably end up computing a
8545       # maximum length that is only half of the actual maximum length, but
8546       # we can't tell.
8547       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8548                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8549               test 17 != "$i" # 1/2 MB should be enough
8550       do
8551         i=`expr $i + 1`
8552         teststring=$teststring$teststring
8553       done
8554       # Only check the string length outside the loop.
8555       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8556       teststring=
8557       # Add a significant safety factor because C++ compilers can tack on
8558       # massive amounts of additional arguments before passing them to the
8559       # linker.  It appears as though 1/2 is a usable value.
8560       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8561     fi
8562     ;;
8563   esac
8564
8565 fi
8566
8567 if test -n "$lt_cv_sys_max_cmd_len"; then
8568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8569 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8570 else
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8572 $as_echo "none" >&6; }
8573 fi
8574 max_cmd_len=$lt_cv_sys_max_cmd_len
8575
8576
8577
8578
8579
8580
8581 : ${CP="cp -f"}
8582 : ${MV="mv -f"}
8583 : ${RM="rm -f"}
8584
8585 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8586   lt_unset=unset
8587 else
8588   lt_unset=false
8589 fi
8590
8591
8592
8593
8594
8595 # test EBCDIC or ASCII
8596 case `echo X|tr X '\101'` in
8597  A) # ASCII based system
8598     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8599   lt_SP2NL='tr \040 \012'
8600   lt_NL2SP='tr \015\012 \040\040'
8601   ;;
8602  *) # EBCDIC based system
8603   lt_SP2NL='tr \100 \n'
8604   lt_NL2SP='tr \r\n \100\100'
8605   ;;
8606 esac
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8617 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8618 if ${lt_cv_to_host_file_cmd+:} false; then :
8619   $as_echo_n "(cached) " >&6
8620 else
8621   case $host in
8622   *-*-mingw* )
8623     case $build in
8624       *-*-mingw* ) # actually msys
8625         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8626         ;;
8627       *-*-cygwin* )
8628         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8629         ;;
8630       * ) # otherwise, assume *nix
8631         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8632         ;;
8633     esac
8634     ;;
8635   *-*-cygwin* )
8636     case $build in
8637       *-*-mingw* ) # actually msys
8638         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8639         ;;
8640       *-*-cygwin* )
8641         lt_cv_to_host_file_cmd=func_convert_file_noop
8642         ;;
8643       * ) # otherwise, assume *nix
8644         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8645         ;;
8646     esac
8647     ;;
8648   * ) # unhandled hosts (and "normal" native builds)
8649     lt_cv_to_host_file_cmd=func_convert_file_noop
8650     ;;
8651 esac
8652
8653 fi
8654
8655 to_host_file_cmd=$lt_cv_to_host_file_cmd
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8657 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8658
8659
8660
8661
8662
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8664 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8665 if ${lt_cv_to_tool_file_cmd+:} false; then :
8666   $as_echo_n "(cached) " >&6
8667 else
8668   #assume ordinary cross tools, or native build.
8669 lt_cv_to_tool_file_cmd=func_convert_file_noop
8670 case $host in
8671   *-*-mingw* )
8672     case $build in
8673       *-*-mingw* ) # actually msys
8674         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8675         ;;
8676     esac
8677     ;;
8678 esac
8679
8680 fi
8681
8682 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8684 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8685
8686
8687
8688
8689
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8691 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8692 if ${lt_cv_ld_reload_flag+:} false; then :
8693   $as_echo_n "(cached) " >&6
8694 else
8695   lt_cv_ld_reload_flag='-r'
8696 fi
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8698 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8699 reload_flag=$lt_cv_ld_reload_flag
8700 case $reload_flag in
8701 "" | " "*) ;;
8702 *) reload_flag=" $reload_flag" ;;
8703 esac
8704 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8705 case $host_os in
8706   cygwin* | mingw* | pw32* | cegcc*)
8707     if test yes != "$GCC"; then
8708       reload_cmds=false
8709     fi
8710     ;;
8711   darwin*)
8712     if test yes = "$GCC"; then
8713       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8714     else
8715       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8716     fi
8717     ;;
8718 esac
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728 if test -n "$ac_tool_prefix"; then
8729   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8730 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 $as_echo_n "checking for $ac_word... " >&6; }
8733 if ${ac_cv_prog_OBJDUMP+:} false; then :
8734   $as_echo_n "(cached) " >&6
8735 else
8736   if test -n "$OBJDUMP"; then
8737   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8738 else
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 for as_dir in $PATH
8741 do
8742   IFS=$as_save_IFS
8743   test -z "$as_dir" && as_dir=.
8744     for ac_exec_ext in '' $ac_executable_extensions; do
8745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8746     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8748     break 2
8749   fi
8750 done
8751   done
8752 IFS=$as_save_IFS
8753
8754 fi
8755 fi
8756 OBJDUMP=$ac_cv_prog_OBJDUMP
8757 if test -n "$OBJDUMP"; then
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8759 $as_echo "$OBJDUMP" >&6; }
8760 else
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8763 fi
8764
8765
8766 fi
8767 if test -z "$ac_cv_prog_OBJDUMP"; then
8768   ac_ct_OBJDUMP=$OBJDUMP
8769   # Extract the first word of "objdump", so it can be a program name with args.
8770 set dummy objdump; ac_word=$2
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 $as_echo_n "checking for $ac_word... " >&6; }
8773 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8774   $as_echo_n "(cached) " >&6
8775 else
8776   if test -n "$ac_ct_OBJDUMP"; then
8777   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8778 else
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 for as_dir in $PATH
8781 do
8782   IFS=$as_save_IFS
8783   test -z "$as_dir" && as_dir=.
8784     for ac_exec_ext in '' $ac_executable_extensions; do
8785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8786     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788     break 2
8789   fi
8790 done
8791   done
8792 IFS=$as_save_IFS
8793
8794 fi
8795 fi
8796 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8797 if test -n "$ac_ct_OBJDUMP"; then
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8799 $as_echo "$ac_ct_OBJDUMP" >&6; }
8800 else
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8803 fi
8804
8805   if test "x$ac_ct_OBJDUMP" = x; then
8806     OBJDUMP="false"
8807   else
8808     case $cross_compiling:$ac_tool_warned in
8809 yes:)
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8812 ac_tool_warned=yes ;;
8813 esac
8814     OBJDUMP=$ac_ct_OBJDUMP
8815   fi
8816 else
8817   OBJDUMP="$ac_cv_prog_OBJDUMP"
8818 fi
8819
8820 test -z "$OBJDUMP" && OBJDUMP=objdump
8821
8822
8823
8824
8825
8826
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8828 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8829 if ${lt_cv_deplibs_check_method+:} false; then :
8830   $as_echo_n "(cached) " >&6
8831 else
8832   lt_cv_file_magic_cmd='$MAGIC_CMD'
8833 lt_cv_file_magic_test_file=
8834 lt_cv_deplibs_check_method='unknown'
8835 # Need to set the preceding variable on all platforms that support
8836 # interlibrary dependencies.
8837 # 'none' -- dependencies not supported.
8838 # 'unknown' -- same as none, but documents that we really don't know.
8839 # 'pass_all' -- all dependencies passed with no checks.
8840 # 'test_compile' -- check by making test program.
8841 # 'file_magic [[regex]]' -- check by looking for files in library path
8842 # that responds to the $file_magic_cmd with a given extended regex.
8843 # If you have 'file' or equivalent on your system and you're not sure
8844 # whether 'pass_all' will *always* work, you probably want this one.
8845
8846 case $host_os in
8847 aix[4-9]*)
8848   lt_cv_deplibs_check_method=pass_all
8849   ;;
8850
8851 beos*)
8852   lt_cv_deplibs_check_method=pass_all
8853   ;;
8854
8855 bsdi[45]*)
8856   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8857   lt_cv_file_magic_cmd='/usr/bin/file -L'
8858   lt_cv_file_magic_test_file=/shlib/libc.so
8859   ;;
8860
8861 cygwin*)
8862   # func_win32_libid is a shell function defined in ltmain.sh
8863   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8864   lt_cv_file_magic_cmd='func_win32_libid'
8865   ;;
8866
8867 mingw* | pw32*)
8868   # Base MSYS/MinGW do not provide the 'file' command needed by
8869   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8870   # unless we find 'file', for example because we are cross-compiling.
8871   if ( file / ) >/dev/null 2>&1; then
8872     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8873     lt_cv_file_magic_cmd='func_win32_libid'
8874   else
8875     # Keep this pattern in sync with the one in func_win32_libid.
8876     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8877     lt_cv_file_magic_cmd='$OBJDUMP -f'
8878   fi
8879   ;;
8880
8881 cegcc*)
8882   # use the weaker test based on 'objdump'. See mingw*.
8883   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8884   lt_cv_file_magic_cmd='$OBJDUMP -f'
8885   ;;
8886
8887 darwin* | rhapsody*)
8888   lt_cv_deplibs_check_method=pass_all
8889   ;;
8890
8891 freebsd* | dragonfly*)
8892   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8893     case $host_cpu in
8894     i*86 )
8895       # Not sure whether the presence of OpenBSD here was a mistake.
8896       # Let's accept both of them until this is cleared up.
8897       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8898       lt_cv_file_magic_cmd=/usr/bin/file
8899       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8900       ;;
8901     esac
8902   else
8903     lt_cv_deplibs_check_method=pass_all
8904   fi
8905   ;;
8906
8907 haiku*)
8908   lt_cv_deplibs_check_method=pass_all
8909   ;;
8910
8911 hpux10.20* | hpux11*)
8912   lt_cv_file_magic_cmd=/usr/bin/file
8913   case $host_cpu in
8914   ia64*)
8915     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8916     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8917     ;;
8918   hppa*64*)
8919     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]'
8920     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8921     ;;
8922   *)
8923     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8924     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8925     ;;
8926   esac
8927   ;;
8928
8929 interix[3-9]*)
8930   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8931   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8932   ;;
8933
8934 irix5* | irix6* | nonstopux*)
8935   case $LD in
8936   *-32|*"-32 ") libmagic=32-bit;;
8937   *-n32|*"-n32 ") libmagic=N32;;
8938   *-64|*"-64 ") libmagic=64-bit;;
8939   *) libmagic=never-match;;
8940   esac
8941   lt_cv_deplibs_check_method=pass_all
8942   ;;
8943
8944 # This must be glibc/ELF.
8945 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8946   lt_cv_deplibs_check_method=pass_all
8947   ;;
8948
8949 netbsd* | netbsdelf*-gnu)
8950   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8951     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8952   else
8953     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8954   fi
8955   ;;
8956
8957 newos6*)
8958   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8959   lt_cv_file_magic_cmd=/usr/bin/file
8960   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8961   ;;
8962
8963 *nto* | *qnx*)
8964   lt_cv_deplibs_check_method=pass_all
8965   ;;
8966
8967 openbsd* | bitrig*)
8968   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8969     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8970   else
8971     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8972   fi
8973   ;;
8974
8975 osf3* | osf4* | osf5*)
8976   lt_cv_deplibs_check_method=pass_all
8977   ;;
8978
8979 rdos*)
8980   lt_cv_deplibs_check_method=pass_all
8981   ;;
8982
8983 solaris*)
8984   lt_cv_deplibs_check_method=pass_all
8985   ;;
8986
8987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8988   lt_cv_deplibs_check_method=pass_all
8989   ;;
8990
8991 sysv4 | sysv4.3*)
8992   case $host_vendor in
8993   motorola)
8994     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]'
8995     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8996     ;;
8997   ncr)
8998     lt_cv_deplibs_check_method=pass_all
8999     ;;
9000   sequent)
9001     lt_cv_file_magic_cmd='/bin/file'
9002     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9003     ;;
9004   sni)
9005     lt_cv_file_magic_cmd='/bin/file'
9006     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9007     lt_cv_file_magic_test_file=/lib/libc.so
9008     ;;
9009   siemens)
9010     lt_cv_deplibs_check_method=pass_all
9011     ;;
9012   pc)
9013     lt_cv_deplibs_check_method=pass_all
9014     ;;
9015   esac
9016   ;;
9017
9018 tpf*)
9019   lt_cv_deplibs_check_method=pass_all
9020   ;;
9021 os2*)
9022   lt_cv_deplibs_check_method=pass_all
9023   ;;
9024 esac
9025
9026 fi
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9028 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9029
9030 file_magic_glob=
9031 want_nocaseglob=no
9032 if test "$build" = "$host"; then
9033   case $host_os in
9034   mingw* | pw32*)
9035     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9036       want_nocaseglob=yes
9037     else
9038       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9039     fi
9040     ;;
9041   esac
9042 fi
9043
9044 file_magic_cmd=$lt_cv_file_magic_cmd
9045 deplibs_check_method=$lt_cv_deplibs_check_method
9046 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069 if test -n "$ac_tool_prefix"; then
9070   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9071 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073 $as_echo_n "checking for $ac_word... " >&6; }
9074 if ${ac_cv_prog_DLLTOOL+:} false; then :
9075   $as_echo_n "(cached) " >&6
9076 else
9077   if test -n "$DLLTOOL"; then
9078   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9079 else
9080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 for as_dir in $PATH
9082 do
9083   IFS=$as_save_IFS
9084   test -z "$as_dir" && as_dir=.
9085     for ac_exec_ext in '' $ac_executable_extensions; do
9086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9087     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089     break 2
9090   fi
9091 done
9092   done
9093 IFS=$as_save_IFS
9094
9095 fi
9096 fi
9097 DLLTOOL=$ac_cv_prog_DLLTOOL
9098 if test -n "$DLLTOOL"; then
9099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9100 $as_echo "$DLLTOOL" >&6; }
9101 else
9102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9104 fi
9105
9106
9107 fi
9108 if test -z "$ac_cv_prog_DLLTOOL"; then
9109   ac_ct_DLLTOOL=$DLLTOOL
9110   # Extract the first word of "dlltool", so it can be a program name with args.
9111 set dummy dlltool; ac_word=$2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113 $as_echo_n "checking for $ac_word... " >&6; }
9114 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9115   $as_echo_n "(cached) " >&6
9116 else
9117   if test -n "$ac_ct_DLLTOOL"; then
9118   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9119 else
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 for as_dir in $PATH
9122 do
9123   IFS=$as_save_IFS
9124   test -z "$as_dir" && as_dir=.
9125     for ac_exec_ext in '' $ac_executable_extensions; do
9126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9127     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9129     break 2
9130   fi
9131 done
9132   done
9133 IFS=$as_save_IFS
9134
9135 fi
9136 fi
9137 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9138 if test -n "$ac_ct_DLLTOOL"; then
9139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9140 $as_echo "$ac_ct_DLLTOOL" >&6; }
9141 else
9142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9144 fi
9145
9146   if test "x$ac_ct_DLLTOOL" = x; then
9147     DLLTOOL="false"
9148   else
9149     case $cross_compiling:$ac_tool_warned in
9150 yes:)
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9153 ac_tool_warned=yes ;;
9154 esac
9155     DLLTOOL=$ac_ct_DLLTOOL
9156   fi
9157 else
9158   DLLTOOL="$ac_cv_prog_DLLTOOL"
9159 fi
9160
9161 test -z "$DLLTOOL" && DLLTOOL=dlltool
9162
9163
9164
9165
9166
9167
9168
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9170 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9171 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9172   $as_echo_n "(cached) " >&6
9173 else
9174   lt_cv_sharedlib_from_linklib_cmd='unknown'
9175
9176 case $host_os in
9177 cygwin* | mingw* | pw32* | cegcc*)
9178   # two different shell functions defined in ltmain.sh;
9179   # decide which one to use based on capabilities of $DLLTOOL
9180   case `$DLLTOOL --help 2>&1` in
9181   *--identify-strict*)
9182     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9183     ;;
9184   *)
9185     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9186     ;;
9187   esac
9188   ;;
9189 *)
9190   # fallback: assume linklib IS sharedlib
9191   lt_cv_sharedlib_from_linklib_cmd=$ECHO
9192   ;;
9193 esac
9194
9195 fi
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9197 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9198 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9199 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9200
9201
9202
9203
9204
9205
9206
9207 if test -n "$ac_tool_prefix"; then
9208   for ac_prog in ar
9209   do
9210     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if ${ac_cv_prog_AR+:} false; then :
9215   $as_echo_n "(cached) " >&6
9216 else
9217   if test -n "$AR"; then
9218   ac_cv_prog_AR="$AR" # Let the user override the test.
9219 else
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in $PATH
9222 do
9223   IFS=$as_save_IFS
9224   test -z "$as_dir" && as_dir=.
9225     for ac_exec_ext in '' $ac_executable_extensions; do
9226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229     break 2
9230   fi
9231 done
9232   done
9233 IFS=$as_save_IFS
9234
9235 fi
9236 fi
9237 AR=$ac_cv_prog_AR
9238 if test -n "$AR"; then
9239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9240 $as_echo "$AR" >&6; }
9241 else
9242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9244 fi
9245
9246
9247     test -n "$AR" && break
9248   done
9249 fi
9250 if test -z "$AR"; then
9251   ac_ct_AR=$AR
9252   for ac_prog in ar
9253 do
9254   # Extract the first word of "$ac_prog", so it can be a program name with args.
9255 set dummy $ac_prog; ac_word=$2
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9257 $as_echo_n "checking for $ac_word... " >&6; }
9258 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9259   $as_echo_n "(cached) " >&6
9260 else
9261   if test -n "$ac_ct_AR"; then
9262   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9263 else
9264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265 for as_dir in $PATH
9266 do
9267   IFS=$as_save_IFS
9268   test -z "$as_dir" && as_dir=.
9269     for ac_exec_ext in '' $ac_executable_extensions; do
9270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9271     ac_cv_prog_ac_ct_AR="$ac_prog"
9272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9273     break 2
9274   fi
9275 done
9276   done
9277 IFS=$as_save_IFS
9278
9279 fi
9280 fi
9281 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9282 if test -n "$ac_ct_AR"; then
9283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9284 $as_echo "$ac_ct_AR" >&6; }
9285 else
9286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9287 $as_echo "no" >&6; }
9288 fi
9289
9290
9291   test -n "$ac_ct_AR" && break
9292 done
9293
9294   if test "x$ac_ct_AR" = x; then
9295     AR="false"
9296   else
9297     case $cross_compiling:$ac_tool_warned in
9298 yes:)
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9301 ac_tool_warned=yes ;;
9302 esac
9303     AR=$ac_ct_AR
9304   fi
9305 fi
9306
9307 : ${AR=ar}
9308 : ${AR_FLAGS=cru}
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9321 $as_echo_n "checking for archiver @FILE support... " >&6; }
9322 if ${lt_cv_ar_at_file+:} false; then :
9323   $as_echo_n "(cached) " >&6
9324 else
9325   lt_cv_ar_at_file=no
9326    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h.  */
9328
9329 int main (void)
9330 {
9331
9332  ;
9333  return 0;
9334 }
9335 _ACEOF
9336 if ac_fn_c_try_compile "$LINENO"; then :
9337   echo conftest.$ac_objext > conftest.lst
9338       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9339       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9340   (eval $lt_ar_try) 2>&5
9341   ac_status=$?
9342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9343   test $ac_status = 0; }
9344       if test 0 -eq "$ac_status"; then
9345         # Ensure the archiver fails upon bogus file names.
9346         rm -f conftest.$ac_objext libconftest.a
9347         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9348   (eval $lt_ar_try) 2>&5
9349   ac_status=$?
9350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9351   test $ac_status = 0; }
9352         if test 0 -ne "$ac_status"; then
9353           lt_cv_ar_at_file=@
9354         fi
9355       fi
9356       rm -f conftest.* libconftest.a
9357
9358 fi
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9363 $as_echo "$lt_cv_ar_at_file" >&6; }
9364
9365 if test no = "$lt_cv_ar_at_file"; then
9366   archiver_list_spec=
9367 else
9368   archiver_list_spec=$lt_cv_ar_at_file
9369 fi
9370
9371
9372
9373
9374
9375
9376
9377 if test -n "$ac_tool_prefix"; then
9378   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9379 set dummy ${ac_tool_prefix}strip; ac_word=$2
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 $as_echo_n "checking for $ac_word... " >&6; }
9382 if ${ac_cv_prog_STRIP+:} false; then :
9383   $as_echo_n "(cached) " >&6
9384 else
9385   if test -n "$STRIP"; then
9386   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9387 else
9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 for as_dir in $PATH
9390 do
9391   IFS=$as_save_IFS
9392   test -z "$as_dir" && as_dir=.
9393     for ac_exec_ext in '' $ac_executable_extensions; do
9394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9395     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397     break 2
9398   fi
9399 done
9400   done
9401 IFS=$as_save_IFS
9402
9403 fi
9404 fi
9405 STRIP=$ac_cv_prog_STRIP
9406 if test -n "$STRIP"; then
9407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9408 $as_echo "$STRIP" >&6; }
9409 else
9410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411 $as_echo "no" >&6; }
9412 fi
9413
9414
9415 fi
9416 if test -z "$ac_cv_prog_STRIP"; then
9417   ac_ct_STRIP=$STRIP
9418   # Extract the first word of "strip", so it can be a program name with args.
9419 set dummy strip; ac_word=$2
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421 $as_echo_n "checking for $ac_word... " >&6; }
9422 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9423   $as_echo_n "(cached) " >&6
9424 else
9425   if test -n "$ac_ct_STRIP"; then
9426   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9427 else
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in $PATH
9430 do
9431   IFS=$as_save_IFS
9432   test -z "$as_dir" && as_dir=.
9433     for ac_exec_ext in '' $ac_executable_extensions; do
9434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9435     ac_cv_prog_ac_ct_STRIP="strip"
9436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9437     break 2
9438   fi
9439 done
9440   done
9441 IFS=$as_save_IFS
9442
9443 fi
9444 fi
9445 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9446 if test -n "$ac_ct_STRIP"; then
9447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9448 $as_echo "$ac_ct_STRIP" >&6; }
9449 else
9450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9452 fi
9453
9454   if test "x$ac_ct_STRIP" = x; then
9455     STRIP=":"
9456   else
9457     case $cross_compiling:$ac_tool_warned in
9458 yes:)
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9461 ac_tool_warned=yes ;;
9462 esac
9463     STRIP=$ac_ct_STRIP
9464   fi
9465 else
9466   STRIP="$ac_cv_prog_STRIP"
9467 fi
9468
9469 test -z "$STRIP" && STRIP=:
9470
9471
9472
9473
9474
9475
9476 if test -n "$ac_tool_prefix"; then
9477   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9478 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480 $as_echo_n "checking for $ac_word... " >&6; }
9481 if ${ac_cv_prog_RANLIB+:} false; then :
9482   $as_echo_n "(cached) " >&6
9483 else
9484   if test -n "$RANLIB"; then
9485   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9486 else
9487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488 for as_dir in $PATH
9489 do
9490   IFS=$as_save_IFS
9491   test -z "$as_dir" && as_dir=.
9492     for ac_exec_ext in '' $ac_executable_extensions; do
9493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9494     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9496     break 2
9497   fi
9498 done
9499   done
9500 IFS=$as_save_IFS
9501
9502 fi
9503 fi
9504 RANLIB=$ac_cv_prog_RANLIB
9505 if test -n "$RANLIB"; then
9506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9507 $as_echo "$RANLIB" >&6; }
9508 else
9509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9511 fi
9512
9513
9514 fi
9515 if test -z "$ac_cv_prog_RANLIB"; then
9516   ac_ct_RANLIB=$RANLIB
9517   # Extract the first word of "ranlib", so it can be a program name with args.
9518 set dummy ranlib; ac_word=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9522   $as_echo_n "(cached) " >&6
9523 else
9524   if test -n "$ac_ct_RANLIB"; then
9525   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9526 else
9527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528 for as_dir in $PATH
9529 do
9530   IFS=$as_save_IFS
9531   test -z "$as_dir" && as_dir=.
9532     for ac_exec_ext in '' $ac_executable_extensions; do
9533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9534     ac_cv_prog_ac_ct_RANLIB="ranlib"
9535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9536     break 2
9537   fi
9538 done
9539   done
9540 IFS=$as_save_IFS
9541
9542 fi
9543 fi
9544 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9545 if test -n "$ac_ct_RANLIB"; then
9546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9547 $as_echo "$ac_ct_RANLIB" >&6; }
9548 else
9549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550 $as_echo "no" >&6; }
9551 fi
9552
9553   if test "x$ac_ct_RANLIB" = x; then
9554     RANLIB=":"
9555   else
9556     case $cross_compiling:$ac_tool_warned in
9557 yes:)
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9560 ac_tool_warned=yes ;;
9561 esac
9562     RANLIB=$ac_ct_RANLIB
9563   fi
9564 else
9565   RANLIB="$ac_cv_prog_RANLIB"
9566 fi
9567
9568 test -z "$RANLIB" && RANLIB=:
9569
9570
9571
9572
9573
9574
9575 # Determine commands to create old-style static archives.
9576 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9577 old_postinstall_cmds='chmod 644 $oldlib'
9578 old_postuninstall_cmds=
9579
9580 if test -n "$RANLIB"; then
9581   case $host_os in
9582   bitrig* | openbsd*)
9583     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9584     ;;
9585   *)
9586     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9587     ;;
9588   esac
9589   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9590 fi
9591
9592 case $host_os in
9593   darwin*)
9594     lock_old_archive_extraction=yes ;;
9595   *)
9596     lock_old_archive_extraction=no ;;
9597 esac
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637 # If no C compiler was specified, use CC.
9638 LTCC=${LTCC-"$CC"}
9639
9640 # If no C compiler flags were specified, use CFLAGS.
9641 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9642
9643 # Allow CC to be a program name with arguments.
9644 compiler=$CC
9645
9646
9647 # Check for command to grab the raw symbol name followed by C symbol from nm.
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9649 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9650 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9651   $as_echo_n "(cached) " >&6
9652 else
9653
9654 # These are sane defaults that work on at least a few old systems.
9655 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9656
9657 # Character class describing NM global symbol codes.
9658 symcode='[BCDEGRST]'
9659
9660 # Regexp to match symbols that can be accessed directly from C.
9661 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9662
9663 # Define system-specific variables.
9664 case $host_os in
9665 aix*)
9666   symcode='[BCDT]'
9667   ;;
9668 cygwin* | mingw* | pw32* | cegcc*)
9669   symcode='[ABCDGISTW]'
9670   ;;
9671 hpux*)
9672   if test ia64 = "$host_cpu"; then
9673     symcode='[ABCDEGRST]'
9674   fi
9675   ;;
9676 irix* | nonstopux*)
9677   symcode='[BCDEGRST]'
9678   ;;
9679 osf*)
9680   symcode='[BCDEGQRST]'
9681   ;;
9682 solaris*)
9683   symcode='[BDRT]'
9684   ;;
9685 sco3.2v5*)
9686   symcode='[DT]'
9687   ;;
9688 sysv4.2uw2*)
9689   symcode='[DT]'
9690   ;;
9691 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9692   symcode='[ABDT]'
9693   ;;
9694 sysv4)
9695   symcode='[DFNSTU]'
9696   ;;
9697 esac
9698
9699 # If we're using GNU nm, then use its standard symbol codes.
9700 case `$NM -V 2>&1` in
9701 *GNU* | *'with BFD'*)
9702   symcode='[ABCDGIRSTW]' ;;
9703 esac
9704
9705 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9706   # Gets list of data symbols to import.
9707   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9708   # Adjust the below global symbol transforms to fixup imported variables.
9709   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9710   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9711   lt_c_name_lib_hook="\
9712   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9713   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9714 else
9715   # Disable hooks by default.
9716   lt_cv_sys_global_symbol_to_import=
9717   lt_cdecl_hook=
9718   lt_c_name_hook=
9719   lt_c_name_lib_hook=
9720 fi
9721
9722 # Transform an extracted symbol line into a proper C declaration.
9723 # Some systems (esp. on ia64) link data and code symbols differently,
9724 # so use this general approach.
9725 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9726 $lt_cdecl_hook\
9727 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9728 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9729
9730 # Transform an extracted symbol line into symbol name and symbol address
9731 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9732 $lt_c_name_hook\
9733 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9734 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9735
9736 # Transform an extracted symbol line into symbol name with lib prefix and
9737 # symbol address.
9738 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9739 $lt_c_name_lib_hook\
9740 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9741 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9742 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9743
9744 # Handle CRLF in mingw tool chain
9745 opt_cr=
9746 case $build_os in
9747 mingw*)
9748   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9749   ;;
9750 esac
9751
9752 # Try without a prefix underscore, then with it.
9753 for ac_symprfx in "" "_"; do
9754
9755   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9756   symxfrm="\\1 $ac_symprfx\\2 \\2"
9757
9758   # Write the raw and C identifiers.
9759   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9760     # Fake it for dumpbin and say T for any non-static function,
9761     # D for any global variable and I for any imported variable.
9762     # Also find C++ and __fastcall symbols from MSVC++,
9763     # which start with @ or ?.
9764     lt_cv_sys_global_symbol_pipe="$AWK '"\
9765 "     {last_section=section; section=\$ 3};"\
9766 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9767 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9768 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9769 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9770 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9771 "     \$ 0!~/External *\|/{next};"\
9772 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9773 "     {if(hide[section]) next};"\
9774 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9775 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9776 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9777 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9778 "     ' prfx=^$ac_symprfx"
9779   else
9780     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9781   fi
9782   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9783
9784   # Check to see that the pipe works correctly.
9785   pipe_works=no
9786
9787   rm -f conftest*
9788   cat > conftest.$ac_ext <<_LT_EOF
9789 #ifdef __cplusplus
9790 extern "C" {
9791 #endif
9792 char nm_test_var;
9793 void nm_test_func(void);
9794 void nm_test_func(void){}
9795 #ifdef __cplusplus
9796 }
9797 #endif
9798 int main(){nm_test_var='a';nm_test_func();return(0);}
9799 _LT_EOF
9800
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     # Now try to grab the symbols.
9807     nlist=conftest.nm
9808     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9809   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9810   ac_status=$?
9811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9812   test $ac_status = 0; } && test -s "$nlist"; then
9813       # Try sorting and uniquifying the output.
9814       if sort "$nlist" | uniq > "$nlist"T; then
9815         mv -f "$nlist"T "$nlist"
9816       else
9817         rm -f "$nlist"T
9818       fi
9819
9820       # Make sure that we snagged all the symbols we need.
9821       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9822         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9823           cat <<_LT_EOF > conftest.$ac_ext
9824 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9825 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9826 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9827    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9828 # define LT_DLSYM_CONST
9829 #elif defined __osf__
9830 /* This system does not cope well with relocations in const data.  */
9831 # define LT_DLSYM_CONST
9832 #else
9833 # define LT_DLSYM_CONST const
9834 #endif
9835
9836 #ifdef __cplusplus
9837 extern "C" {
9838 #endif
9839
9840 _LT_EOF
9841           # Now generate the symbol file.
9842           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9843
9844           cat <<_LT_EOF >> conftest.$ac_ext
9845
9846 /* The mapping between symbol names and symbols.  */
9847 LT_DLSYM_CONST struct {
9848   const char *name;
9849   void       *address;
9850 }
9851 lt__PROGRAM__LTX_preloaded_symbols[] =
9852 {
9853   { "@PROGRAM@", (void *) 0 },
9854 _LT_EOF
9855           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9856           cat <<\_LT_EOF >> conftest.$ac_ext
9857   {0, (void *) 0}
9858 };
9859
9860 /* This works around a problem in FreeBSD linker */
9861 #ifdef FREEBSD_WORKAROUND
9862 static const void *lt_preloaded_setup() {
9863   return lt__PROGRAM__LTX_preloaded_symbols;
9864 }
9865 #endif
9866
9867 #ifdef __cplusplus
9868 }
9869 #endif
9870 _LT_EOF
9871           # Now try linking the two files.
9872           mv -f conftest.$ac_objext conftstm.$ac_objext
9873           lt_globsym_save_LIBS=$LIBS
9874           lt_globsym_save_CFLAGS=$CFLAGS
9875           LIBS=conftstm.$ac_objext
9876           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9877           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9878   (eval $ac_link) 2>&5
9879   ac_status=$?
9880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9881   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9882             pipe_works=yes
9883           fi
9884           LIBS=$lt_globsym_save_LIBS
9885           CFLAGS=$lt_globsym_save_CFLAGS
9886         else
9887           echo "cannot find nm_test_func in $nlist" >&5
9888         fi
9889       else
9890         echo "cannot find nm_test_var in $nlist" >&5
9891       fi
9892     else
9893       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9894     fi
9895   else
9896     echo "$progname: failed program was:" >&5
9897     cat conftest.$ac_ext >&5
9898   fi
9899   rm -rf conftest* conftst*
9900
9901   # Do not use the global_symbol_pipe unless it works.
9902   if test yes = "$pipe_works"; then
9903     break
9904   else
9905     lt_cv_sys_global_symbol_pipe=
9906   fi
9907 done
9908
9909 fi
9910
9911 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9912   lt_cv_sys_global_symbol_to_cdecl=
9913 fi
9914 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9916 $as_echo "failed" >&6; }
9917 else
9918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9919 $as_echo "ok" >&6; }
9920 fi
9921
9922 # Response file support.
9923 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9924   nm_file_list_spec='@'
9925 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9926   nm_file_list_spec='@'
9927 fi
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9966 $as_echo_n "checking for sysroot... " >&6; }
9967
9968 # Check whether --with-sysroot was given.
9969 if test "${with_sysroot+set}" = set; then :
9970   withval=$with_sysroot;
9971 else
9972   with_sysroot=no
9973 fi
9974
9975
9976 lt_sysroot=
9977 case $with_sysroot in #(
9978  yes)
9979    if test yes = "$GCC"; then
9980      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9981    fi
9982    ;; #(
9983  /*)
9984    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9985    ;; #(
9986  no|'')
9987    ;; #(
9988  *)
9989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9990 $as_echo "$with_sysroot" >&6; }
9991    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9992    ;;
9993 esac
9994
9995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9996 $as_echo "${lt_sysroot:-no}" >&6; }
9997
9998
9999
10000
10001
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10003 $as_echo_n "checking for a working dd... " >&6; }
10004 if ${ac_cv_path_lt_DD+:} false; then :
10005   $as_echo_n "(cached) " >&6
10006 else
10007   printf 0123456789abcdef0123456789abcdef >conftest.i
10008 cat conftest.i conftest.i >conftest2.i
10009 : ${lt_DD:=$DD}
10010 if test -z "$lt_DD"; then
10011   ac_path_lt_DD_found=false
10012   # Loop through the user's path and test for each of PROGNAME-LIST
10013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10015 do
10016   IFS=$as_save_IFS
10017   test -z "$as_dir" && as_dir=.
10018     for ac_prog in dd; do
10019     for ac_exec_ext in '' $ac_executable_extensions; do
10020       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10021       as_fn_executable_p "$ac_path_lt_DD" || continue
10022 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10023   cmp -s conftest.i conftest.out \
10024   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10025 fi
10026       $ac_path_lt_DD_found && break 3
10027     done
10028   done
10029   done
10030 IFS=$as_save_IFS
10031   if test -z "$ac_cv_path_lt_DD"; then
10032     :
10033   fi
10034 else
10035   ac_cv_path_lt_DD=$lt_DD
10036 fi
10037
10038 rm -f conftest.i conftest2.i conftest.out
10039 fi
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10041 $as_echo "$ac_cv_path_lt_DD" >&6; }
10042
10043
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10045 $as_echo_n "checking how to truncate binary pipes... " >&6; }
10046 if ${lt_cv_truncate_bin+:} false; then :
10047   $as_echo_n "(cached) " >&6
10048 else
10049   printf 0123456789abcdef0123456789abcdef >conftest.i
10050 cat conftest.i conftest.i >conftest2.i
10051 lt_cv_truncate_bin=
10052 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10053   cmp -s conftest.i conftest.out \
10054   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10055 fi
10056 rm -f conftest.i conftest2.i conftest.out
10057 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10058 fi
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10060 $as_echo "$lt_cv_truncate_bin" >&6; }
10061
10062
10063
10064
10065
10066
10067
10068 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10069 func_cc_basename ()
10070 {
10071     for cc_temp in $*""; do
10072       case $cc_temp in
10073         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10074         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10075         \-*) ;;
10076         *) break;;
10077       esac
10078     done
10079     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10080 }
10081
10082 # Check whether --enable-libtool-lock was given.
10083 if test "${enable_libtool_lock+set}" = set; then :
10084   enableval=$enable_libtool_lock;
10085 fi
10086
10087 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10088
10089 # Some flags need to be propagated to the compiler or linker for good
10090 # libtool support.
10091 case $host in
10092 ia64-*-hpux*)
10093   # Find out what ABI is being produced by ac_compile, and set mode
10094   # options accordingly.
10095   echo 'int i;' > conftest.$ac_ext
10096   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10097   (eval $ac_compile) 2>&5
10098   ac_status=$?
10099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10100   test $ac_status = 0; }; then
10101     case `/usr/bin/file conftest.$ac_objext` in
10102       *ELF-32*)
10103         HPUX_IA64_MODE=32
10104         ;;
10105       *ELF-64*)
10106         HPUX_IA64_MODE=64
10107         ;;
10108     esac
10109   fi
10110   rm -rf conftest*
10111   ;;
10112 *-*-irix6*)
10113   # Find out what ABI is being produced by ac_compile, and set linker
10114   # options accordingly.
10115   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10116   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10117   (eval $ac_compile) 2>&5
10118   ac_status=$?
10119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10120   test $ac_status = 0; }; then
10121     if test yes = "$lt_cv_prog_gnu_ld"; then
10122       case `/usr/bin/file conftest.$ac_objext` in
10123         *32-bit*)
10124           LD="${LD-ld} -melf32bsmip"
10125           ;;
10126         *N32*)
10127           LD="${LD-ld} -melf32bmipn32"
10128           ;;
10129         *64-bit*)
10130           LD="${LD-ld} -melf64bmip"
10131         ;;
10132       esac
10133     else
10134       case `/usr/bin/file conftest.$ac_objext` in
10135         *32-bit*)
10136           LD="${LD-ld} -32"
10137           ;;
10138         *N32*)
10139           LD="${LD-ld} -n32"
10140           ;;
10141         *64-bit*)
10142           LD="${LD-ld} -64"
10143           ;;
10144       esac
10145     fi
10146   fi
10147   rm -rf conftest*
10148   ;;
10149
10150 mips64*-*linux*)
10151   # Find out what ABI is being produced by ac_compile, and set linker
10152   # options accordingly.
10153   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10154   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10155   (eval $ac_compile) 2>&5
10156   ac_status=$?
10157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10158   test $ac_status = 0; }; then
10159     emul=elf
10160     case `/usr/bin/file conftest.$ac_objext` in
10161       *32-bit*)
10162         emul="${emul}32"
10163         ;;
10164       *64-bit*)
10165         emul="${emul}64"
10166         ;;
10167     esac
10168     case `/usr/bin/file conftest.$ac_objext` in
10169       *MSB*)
10170         emul="${emul}btsmip"
10171         ;;
10172       *LSB*)
10173         emul="${emul}ltsmip"
10174         ;;
10175     esac
10176     case `/usr/bin/file conftest.$ac_objext` in
10177       *N32*)
10178         emul="${emul}n32"
10179         ;;
10180     esac
10181     LD="${LD-ld} -m $emul"
10182   fi
10183   rm -rf conftest*
10184   ;;
10185
10186 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10187 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10188   # Find out what ABI is being produced by ac_compile, and set linker
10189   # options accordingly.  Note that the listed cases only cover the
10190   # situations where additional linker options are needed (such as when
10191   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10192   # vice versa); the common cases where no linker options are needed do
10193   # not appear in the list.
10194   echo 'int i;' > conftest.$ac_ext
10195   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10196   (eval $ac_compile) 2>&5
10197   ac_status=$?
10198   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199   test $ac_status = 0; }; then
10200     case `/usr/bin/file conftest.o` in
10201       *32-bit*)
10202         case $host in
10203           x86_64-*kfreebsd*-gnu)
10204             LD="${LD-ld} -m elf_i386_fbsd"
10205             ;;
10206           x86_64-*linux*)
10207             case `/usr/bin/file conftest.o` in
10208               *x86-64*)
10209                 LD="${LD-ld} -m elf32_x86_64"
10210                 ;;
10211               *)
10212                 LD="${LD-ld} -m elf_i386"
10213                 ;;
10214             esac
10215             ;;
10216           powerpc64le-*linux*)
10217             LD="${LD-ld} -m elf32lppclinux"
10218             ;;
10219           powerpc64-*linux*)
10220             LD="${LD-ld} -m elf32ppclinux"
10221             ;;
10222           s390x-*linux*)
10223             LD="${LD-ld} -m elf_s390"
10224             ;;
10225           sparc64-*linux*)
10226             LD="${LD-ld} -m elf32_sparc"
10227             ;;
10228         esac
10229         ;;
10230       *64-bit*)
10231         case $host in
10232           x86_64-*kfreebsd*-gnu)
10233             LD="${LD-ld} -m elf_x86_64_fbsd"
10234             ;;
10235           x86_64-*linux*)
10236             LD="${LD-ld} -m elf_x86_64"
10237             ;;
10238           powerpcle-*linux*)
10239             LD="${LD-ld} -m elf64lppc"
10240             ;;
10241           powerpc-*linux*)
10242             LD="${LD-ld} -m elf64ppc"
10243             ;;
10244           s390*-*linux*|s390*-*tpf*)
10245             LD="${LD-ld} -m elf64_s390"
10246             ;;
10247           sparc*-*linux*)
10248             LD="${LD-ld} -m elf64_sparc"
10249             ;;
10250         esac
10251         ;;
10252     esac
10253   fi
10254   rm -rf conftest*
10255   ;;
10256
10257 *-*-sco3.2v5*)
10258   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10259   SAVE_CFLAGS=$CFLAGS
10260   CFLAGS="$CFLAGS -belf"
10261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10262 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10263 if ${lt_cv_cc_needs_belf+:} false; then :
10264   $as_echo_n "(cached) " >&6
10265 else
10266   ac_ext=c
10267 ac_cpp='$CPP $CPPFLAGS'
10268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10271
10272      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h.  */
10274
10275 int main (void)
10276 {
10277
10278  ;
10279  return 0;
10280 }
10281 _ACEOF
10282 if ac_fn_c_try_link "$LINENO"; then :
10283   lt_cv_cc_needs_belf=yes
10284 else
10285   lt_cv_cc_needs_belf=no
10286 fi
10287 rm -f core conftest.err conftest.$ac_objext \
10288     conftest$ac_exeext conftest.$ac_ext
10289      ac_ext=c
10290 ac_cpp='$CPP $CPPFLAGS'
10291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10294
10295 fi
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10297 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10298   if test yes != "$lt_cv_cc_needs_belf"; then
10299     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10300     CFLAGS=$SAVE_CFLAGS
10301   fi
10302   ;;
10303 *-*solaris*)
10304   # Find out what ABI is being produced by ac_compile, and set linker
10305   # options accordingly.
10306   echo 'int i;' > conftest.$ac_ext
10307   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10308   (eval $ac_compile) 2>&5
10309   ac_status=$?
10310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10311   test $ac_status = 0; }; then
10312     case `/usr/bin/file conftest.o` in
10313     *64-bit*)
10314       case $lt_cv_prog_gnu_ld in
10315       yes*)
10316         case $host in
10317         i?86-*-solaris*|x86_64-*-solaris*)
10318           LD="${LD-ld} -m elf_x86_64"
10319           ;;
10320         sparc*-*-solaris*)
10321           LD="${LD-ld} -m elf64_sparc"
10322           ;;
10323         esac
10324         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10325         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10326           LD=${LD-ld}_sol2
10327         fi
10328         ;;
10329       *)
10330         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10331           LD="${LD-ld} -64"
10332         fi
10333         ;;
10334       esac
10335       ;;
10336     esac
10337   fi
10338   rm -rf conftest*
10339   ;;
10340 esac
10341
10342 need_locks=$enable_libtool_lock
10343
10344 if test -n "$ac_tool_prefix"; then
10345   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10346 set dummy ${ac_tool_prefix}mt; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10350   $as_echo_n "(cached) " >&6
10351 else
10352   if test -n "$MANIFEST_TOOL"; then
10353   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10354 else
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10357 do
10358   IFS=$as_save_IFS
10359   test -z "$as_dir" && as_dir=.
10360     for ac_exec_ext in '' $ac_executable_extensions; do
10361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364     break 2
10365   fi
10366 done
10367   done
10368 IFS=$as_save_IFS
10369
10370 fi
10371 fi
10372 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10373 if test -n "$MANIFEST_TOOL"; then
10374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10375 $as_echo "$MANIFEST_TOOL" >&6; }
10376 else
10377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10379 fi
10380
10381
10382 fi
10383 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10384   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10385   # Extract the first word of "mt", so it can be a program name with args.
10386 set dummy mt; ac_word=$2
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10388 $as_echo_n "checking for $ac_word... " >&6; }
10389 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10390   $as_echo_n "(cached) " >&6
10391 else
10392   if test -n "$ac_ct_MANIFEST_TOOL"; then
10393   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10394 else
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10397 do
10398   IFS=$as_save_IFS
10399   test -z "$as_dir" && as_dir=.
10400     for ac_exec_ext in '' $ac_executable_extensions; do
10401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404     break 2
10405   fi
10406 done
10407   done
10408 IFS=$as_save_IFS
10409
10410 fi
10411 fi
10412 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10413 if test -n "$ac_ct_MANIFEST_TOOL"; then
10414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10415 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10416 else
10417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418 $as_echo "no" >&6; }
10419 fi
10420
10421   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10422     MANIFEST_TOOL=":"
10423   else
10424     case $cross_compiling:$ac_tool_warned in
10425 yes:)
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10428 ac_tool_warned=yes ;;
10429 esac
10430     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10431   fi
10432 else
10433   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10434 fi
10435
10436 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10438 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10439 if ${lt_cv_path_mainfest_tool+:} false; then :
10440   $as_echo_n "(cached) " >&6
10441 else
10442   lt_cv_path_mainfest_tool=no
10443   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10444   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10445   cat conftest.err >&5
10446   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10447     lt_cv_path_mainfest_tool=yes
10448   fi
10449   rm -f conftest*
10450 fi
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10452 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10453 if test yes != "$lt_cv_path_mainfest_tool"; then
10454   MANIFEST_TOOL=:
10455 fi
10456
10457
10458
10459
10460
10461
10462   case $host_os in
10463     rhapsody* | darwin*)
10464     if test -n "$ac_tool_prefix"; then
10465   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10466 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10468 $as_echo_n "checking for $ac_word... " >&6; }
10469 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10470   $as_echo_n "(cached) " >&6
10471 else
10472   if test -n "$DSYMUTIL"; then
10473   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10474 else
10475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476 for as_dir in $PATH
10477 do
10478   IFS=$as_save_IFS
10479   test -z "$as_dir" && as_dir=.
10480     for ac_exec_ext in '' $ac_executable_extensions; do
10481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10482     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10484     break 2
10485   fi
10486 done
10487   done
10488 IFS=$as_save_IFS
10489
10490 fi
10491 fi
10492 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10493 if test -n "$DSYMUTIL"; then
10494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10495 $as_echo "$DSYMUTIL" >&6; }
10496 else
10497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10499 fi
10500
10501
10502 fi
10503 if test -z "$ac_cv_prog_DSYMUTIL"; then
10504   ac_ct_DSYMUTIL=$DSYMUTIL
10505   # Extract the first word of "dsymutil", so it can be a program name with args.
10506 set dummy dsymutil; ac_word=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10510   $as_echo_n "(cached) " >&6
10511 else
10512   if test -n "$ac_ct_DSYMUTIL"; then
10513   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10514 else
10515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 for as_dir in $PATH
10517 do
10518   IFS=$as_save_IFS
10519   test -z "$as_dir" && as_dir=.
10520     for ac_exec_ext in '' $ac_executable_extensions; do
10521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10522     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10524     break 2
10525   fi
10526 done
10527   done
10528 IFS=$as_save_IFS
10529
10530 fi
10531 fi
10532 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10533 if test -n "$ac_ct_DSYMUTIL"; then
10534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10535 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10536 else
10537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10539 fi
10540
10541   if test "x$ac_ct_DSYMUTIL" = x; then
10542     DSYMUTIL=":"
10543   else
10544     case $cross_compiling:$ac_tool_warned in
10545 yes:)
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10548 ac_tool_warned=yes ;;
10549 esac
10550     DSYMUTIL=$ac_ct_DSYMUTIL
10551   fi
10552 else
10553   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10554 fi
10555
10556     if test -n "$ac_tool_prefix"; then
10557   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10558 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560 $as_echo_n "checking for $ac_word... " >&6; }
10561 if ${ac_cv_prog_NMEDIT+:} false; then :
10562   $as_echo_n "(cached) " >&6
10563 else
10564   if test -n "$NMEDIT"; then
10565   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10566 else
10567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568 for as_dir in $PATH
10569 do
10570   IFS=$as_save_IFS
10571   test -z "$as_dir" && as_dir=.
10572     for ac_exec_ext in '' $ac_executable_extensions; do
10573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10574     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10576     break 2
10577   fi
10578 done
10579   done
10580 IFS=$as_save_IFS
10581
10582 fi
10583 fi
10584 NMEDIT=$ac_cv_prog_NMEDIT
10585 if test -n "$NMEDIT"; then
10586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10587 $as_echo "$NMEDIT" >&6; }
10588 else
10589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590 $as_echo "no" >&6; }
10591 fi
10592
10593
10594 fi
10595 if test -z "$ac_cv_prog_NMEDIT"; then
10596   ac_ct_NMEDIT=$NMEDIT
10597   # Extract the first word of "nmedit", so it can be a program name with args.
10598 set dummy nmedit; ac_word=$2
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10600 $as_echo_n "checking for $ac_word... " >&6; }
10601 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10602   $as_echo_n "(cached) " >&6
10603 else
10604   if test -n "$ac_ct_NMEDIT"; then
10605   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10606 else
10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608 for as_dir in $PATH
10609 do
10610   IFS=$as_save_IFS
10611   test -z "$as_dir" && as_dir=.
10612     for ac_exec_ext in '' $ac_executable_extensions; do
10613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10614     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10616     break 2
10617   fi
10618 done
10619   done
10620 IFS=$as_save_IFS
10621
10622 fi
10623 fi
10624 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10625 if test -n "$ac_ct_NMEDIT"; then
10626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10627 $as_echo "$ac_ct_NMEDIT" >&6; }
10628 else
10629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 $as_echo "no" >&6; }
10631 fi
10632
10633   if test "x$ac_ct_NMEDIT" = x; then
10634     NMEDIT=":"
10635   else
10636     case $cross_compiling:$ac_tool_warned in
10637 yes:)
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10640 ac_tool_warned=yes ;;
10641 esac
10642     NMEDIT=$ac_ct_NMEDIT
10643   fi
10644 else
10645   NMEDIT="$ac_cv_prog_NMEDIT"
10646 fi
10647
10648     if test -n "$ac_tool_prefix"; then
10649   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10650 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 $as_echo_n "checking for $ac_word... " >&6; }
10653 if ${ac_cv_prog_LIPO+:} false; then :
10654   $as_echo_n "(cached) " >&6
10655 else
10656   if test -n "$LIPO"; then
10657   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10658 else
10659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660 for as_dir in $PATH
10661 do
10662   IFS=$as_save_IFS
10663   test -z "$as_dir" && as_dir=.
10664     for ac_exec_ext in '' $ac_executable_extensions; do
10665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10666     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10668     break 2
10669   fi
10670 done
10671   done
10672 IFS=$as_save_IFS
10673
10674 fi
10675 fi
10676 LIPO=$ac_cv_prog_LIPO
10677 if test -n "$LIPO"; then
10678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10679 $as_echo "$LIPO" >&6; }
10680 else
10681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10683 fi
10684
10685
10686 fi
10687 if test -z "$ac_cv_prog_LIPO"; then
10688   ac_ct_LIPO=$LIPO
10689   # Extract the first word of "lipo", so it can be a program name with args.
10690 set dummy lipo; ac_word=$2
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692 $as_echo_n "checking for $ac_word... " >&6; }
10693 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10694   $as_echo_n "(cached) " >&6
10695 else
10696   if test -n "$ac_ct_LIPO"; then
10697   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10698 else
10699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700 for as_dir in $PATH
10701 do
10702   IFS=$as_save_IFS
10703   test -z "$as_dir" && as_dir=.
10704     for ac_exec_ext in '' $ac_executable_extensions; do
10705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10706     ac_cv_prog_ac_ct_LIPO="lipo"
10707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10708     break 2
10709   fi
10710 done
10711   done
10712 IFS=$as_save_IFS
10713
10714 fi
10715 fi
10716 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10717 if test -n "$ac_ct_LIPO"; then
10718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10719 $as_echo "$ac_ct_LIPO" >&6; }
10720 else
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10722 $as_echo "no" >&6; }
10723 fi
10724
10725   if test "x$ac_ct_LIPO" = x; then
10726     LIPO=":"
10727   else
10728     case $cross_compiling:$ac_tool_warned in
10729 yes:)
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10732 ac_tool_warned=yes ;;
10733 esac
10734     LIPO=$ac_ct_LIPO
10735   fi
10736 else
10737   LIPO="$ac_cv_prog_LIPO"
10738 fi
10739
10740     if test -n "$ac_tool_prefix"; then
10741   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10742 set dummy ${ac_tool_prefix}otool; ac_word=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if ${ac_cv_prog_OTOOL+:} false; then :
10746   $as_echo_n "(cached) " >&6
10747 else
10748   if test -n "$OTOOL"; then
10749   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10750 else
10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752 for as_dir in $PATH
10753 do
10754   IFS=$as_save_IFS
10755   test -z "$as_dir" && as_dir=.
10756     for ac_exec_ext in '' $ac_executable_extensions; do
10757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10758     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10760     break 2
10761   fi
10762 done
10763   done
10764 IFS=$as_save_IFS
10765
10766 fi
10767 fi
10768 OTOOL=$ac_cv_prog_OTOOL
10769 if test -n "$OTOOL"; then
10770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10771 $as_echo "$OTOOL" >&6; }
10772 else
10773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774 $as_echo "no" >&6; }
10775 fi
10776
10777
10778 fi
10779 if test -z "$ac_cv_prog_OTOOL"; then
10780   ac_ct_OTOOL=$OTOOL
10781   # Extract the first word of "otool", so it can be a program name with args.
10782 set dummy otool; ac_word=$2
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784 $as_echo_n "checking for $ac_word... " >&6; }
10785 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10786   $as_echo_n "(cached) " >&6
10787 else
10788   if test -n "$ac_ct_OTOOL"; then
10789   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10790 else
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10793 do
10794   IFS=$as_save_IFS
10795   test -z "$as_dir" && as_dir=.
10796     for ac_exec_ext in '' $ac_executable_extensions; do
10797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10798     ac_cv_prog_ac_ct_OTOOL="otool"
10799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800     break 2
10801   fi
10802 done
10803   done
10804 IFS=$as_save_IFS
10805
10806 fi
10807 fi
10808 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10809 if test -n "$ac_ct_OTOOL"; then
10810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10811 $as_echo "$ac_ct_OTOOL" >&6; }
10812 else
10813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10815 fi
10816
10817   if test "x$ac_ct_OTOOL" = x; then
10818     OTOOL=":"
10819   else
10820     case $cross_compiling:$ac_tool_warned in
10821 yes:)
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10824 ac_tool_warned=yes ;;
10825 esac
10826     OTOOL=$ac_ct_OTOOL
10827   fi
10828 else
10829   OTOOL="$ac_cv_prog_OTOOL"
10830 fi
10831
10832     if test -n "$ac_tool_prefix"; then
10833   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10834 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10836 $as_echo_n "checking for $ac_word... " >&6; }
10837 if ${ac_cv_prog_OTOOL64+:} false; then :
10838   $as_echo_n "(cached) " >&6
10839 else
10840   if test -n "$OTOOL64"; then
10841   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10842 else
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10845 do
10846   IFS=$as_save_IFS
10847   test -z "$as_dir" && as_dir=.
10848     for ac_exec_ext in '' $ac_executable_extensions; do
10849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10852     break 2
10853   fi
10854 done
10855   done
10856 IFS=$as_save_IFS
10857
10858 fi
10859 fi
10860 OTOOL64=$ac_cv_prog_OTOOL64
10861 if test -n "$OTOOL64"; then
10862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10863 $as_echo "$OTOOL64" >&6; }
10864 else
10865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866 $as_echo "no" >&6; }
10867 fi
10868
10869
10870 fi
10871 if test -z "$ac_cv_prog_OTOOL64"; then
10872   ac_ct_OTOOL64=$OTOOL64
10873   # Extract the first word of "otool64", so it can be a program name with args.
10874 set dummy otool64; ac_word=$2
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876 $as_echo_n "checking for $ac_word... " >&6; }
10877 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10878   $as_echo_n "(cached) " >&6
10879 else
10880   if test -n "$ac_ct_OTOOL64"; then
10881   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10882 else
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in $PATH
10885 do
10886   IFS=$as_save_IFS
10887   test -z "$as_dir" && as_dir=.
10888     for ac_exec_ext in '' $ac_executable_extensions; do
10889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10890     ac_cv_prog_ac_ct_OTOOL64="otool64"
10891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892     break 2
10893   fi
10894 done
10895   done
10896 IFS=$as_save_IFS
10897
10898 fi
10899 fi
10900 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10901 if test -n "$ac_ct_OTOOL64"; then
10902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10903 $as_echo "$ac_ct_OTOOL64" >&6; }
10904 else
10905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906 $as_echo "no" >&6; }
10907 fi
10908
10909   if test "x$ac_ct_OTOOL64" = x; then
10910     OTOOL64=":"
10911   else
10912     case $cross_compiling:$ac_tool_warned in
10913 yes:)
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10916 ac_tool_warned=yes ;;
10917 esac
10918     OTOOL64=$ac_ct_OTOOL64
10919   fi
10920 else
10921   OTOOL64="$ac_cv_prog_OTOOL64"
10922 fi
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10951 $as_echo_n "checking for -single_module linker flag... " >&6; }
10952 if ${lt_cv_apple_cc_single_mod+:} false; then :
10953   $as_echo_n "(cached) " >&6
10954 else
10955   lt_cv_apple_cc_single_mod=no
10956       if test -z "$LT_MULTI_MODULE"; then
10957         # By default we will add the -single_module flag. You can override
10958         # by either setting the environment variable LT_MULTI_MODULE
10959         # non-empty at configure time, or by adding -multi_module to the
10960         # link flags.
10961         rm -rf libconftest.dylib*
10962         echo "int foo(void){return 1;}" > conftest.c
10963         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10964 -dynamiclib -Wl,-single_module conftest.c" >&5
10965         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10966           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10967         _lt_result=$?
10968         # If there is a non-empty error log, and "single_module"
10969         # appears in it, assume the flag caused a linker warning
10970         if test -s conftest.err && $GREP single_module conftest.err; then
10971           cat conftest.err >&5
10972         # Otherwise, if the output was created with a 0 exit code from
10973         # the compiler, it worked.
10974         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10975           lt_cv_apple_cc_single_mod=yes
10976         else
10977           cat conftest.err >&5
10978         fi
10979         rm -rf libconftest.dylib*
10980         rm -f conftest.*
10981       fi
10982 fi
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10984 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10985
10986     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10987 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10988 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10989   $as_echo_n "(cached) " >&6
10990 else
10991   lt_cv_ld_exported_symbols_list=no
10992       save_LDFLAGS=$LDFLAGS
10993       echo "_main" > conftest.sym
10994       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10995       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h.  */
10997
10998 int main (void)
10999 {
11000
11001  ;
11002  return 0;
11003 }
11004 _ACEOF
11005 if ac_fn_c_try_link "$LINENO"; then :
11006   lt_cv_ld_exported_symbols_list=yes
11007 else
11008   lt_cv_ld_exported_symbols_list=no
11009 fi
11010 rm -f core conftest.err conftest.$ac_objext \
11011     conftest$ac_exeext conftest.$ac_ext
11012         LDFLAGS=$save_LDFLAGS
11013
11014 fi
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11016 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11017
11018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11019 $as_echo_n "checking for -force_load linker flag... " >&6; }
11020 if ${lt_cv_ld_force_load+:} false; then :
11021   $as_echo_n "(cached) " >&6
11022 else
11023   lt_cv_ld_force_load=no
11024       cat > conftest.c << _LT_EOF
11025 int forced_loaded() { return 2;}
11026 _LT_EOF
11027       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11028       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11029       echo "$AR cru libconftest.a conftest.o" >&5
11030       $AR cru libconftest.a conftest.o 2>&5
11031       echo "$RANLIB libconftest.a" >&5
11032       $RANLIB libconftest.a 2>&5
11033       cat > conftest.c << _LT_EOF
11034 int main() { return 0;}
11035 _LT_EOF
11036       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11037       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11038       _lt_result=$?
11039       if test -s conftest.err && $GREP force_load conftest.err; then
11040         cat conftest.err >&5
11041       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11042         lt_cv_ld_force_load=yes
11043       else
11044         cat conftest.err >&5
11045       fi
11046         rm -f conftest.err libconftest.a conftest conftest.c
11047         rm -rf conftest.dSYM
11048
11049 fi
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11051 $as_echo "$lt_cv_ld_force_load" >&6; }
11052     case $host_os in
11053     rhapsody* | darwin1.[012])
11054       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11055     darwin1.*)
11056       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11057     darwin*) # darwin 5.x on
11058       # if running on 10.5 or later, the deployment target defaults
11059       # to the OS version, if on x86, and 10.4, the deployment
11060       # target defaults to 10.4. Don't you love it?
11061       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11062         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11063           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11064         10.[012][,.]*)
11065           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11066         10.*)
11067           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11068       esac
11069     ;;
11070   esac
11071     if test yes = "$lt_cv_apple_cc_single_mod"; then
11072       _lt_dar_single_mod='$single_module'
11073     fi
11074     if test yes = "$lt_cv_ld_exported_symbols_list"; then
11075       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11076     else
11077       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11078     fi
11079     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11080       _lt_dsymutil='~$DSYMUTIL $lib || :'
11081     else
11082       _lt_dsymutil=
11083     fi
11084     ;;
11085   esac
11086
11087 # func_munge_path_list VARIABLE PATH
11088 # -----------------------------------
11089 # VARIABLE is name of variable containing _space_ separated list of
11090 # directories to be munged by the contents of PATH, which is string
11091 # having a format:
11092 # "DIR[:DIR]:"
11093 #       string "DIR[ DIR]" will be prepended to VARIABLE
11094 # ":DIR[:DIR]"
11095 #       string "DIR[ DIR]" will be appended to VARIABLE
11096 # "DIRP[:DIRP]::[DIRA:]DIRA"
11097 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11098 #       "DIRA[ DIRA]" will be appended to VARIABLE
11099 # "DIR[:DIR]"
11100 #       VARIABLE will be replaced by "DIR[ DIR]"
11101 func_munge_path_list ()
11102 {
11103     case x$2 in
11104     x)
11105         ;;
11106     *:)
11107         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11108         ;;
11109     x:*)
11110         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11111         ;;
11112     *::*)
11113         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11114         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11115         ;;
11116     *)
11117         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11118         ;;
11119     esac
11120 }
11121
11122 for ac_header in dlfcn.h
11123 do :
11124   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11125 "
11126 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11127   cat >>confdefs.h <<_ACEOF
11128 #define HAVE_DLFCN_H 1
11129 _ACEOF
11130
11131 fi
11132
11133 done
11134
11135 # ------------------------------------ #
11136 #  Determine libtool default behavior  #
11137 # ------------------------------------ #
11138
11139 #
11140 # Default behavior is to enable shared and static libraries on systems
11141 # where libtool knows how to build both library versions, and does not
11142 # require separate configuration and build runs for each flavor.
11143 #
11144
11145 xc_lt_want_enable_shared='yes'
11146 xc_lt_want_enable_static='yes'
11147
11148 #
11149 # User may have disabled shared or static libraries.
11150 #
11151 case "x$enable_shared" in # (
11152   xno)
11153     xc_lt_want_enable_shared='no'
11154     ;;
11155 esac
11156 case "x$enable_static" in # (
11157   xno)
11158     xc_lt_want_enable_static='no'
11159     ;;
11160 esac
11161 if test "x$xc_lt_want_enable_shared" = 'xno' &&
11162   test "x$xc_lt_want_enable_static" = 'xno'; then
11163   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11164 fi
11165
11166 #
11167 # Default behavior on systems that require independent configuration
11168 # and build runs for shared and static is to enable shared libraries
11169 # and disable static ones. On these systems option '--disable-shared'
11170 # must be used in order to build a proper static library.
11171 #
11172
11173 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11174   test "x$xc_lt_want_enable_static" = 'xyes'; then
11175   case $host_os in # (
11176     pw32* | cegcc* | os2* | aix*)
11177       xc_lt_want_enable_static='no'
11178       ;;
11179   esac
11180 fi
11181
11182 #
11183 # Make libtool aware of current shared and static library preferences
11184 # taking in account that, depending on host characteristics, libtool
11185 # may modify these option preferences later in this configure script.
11186 #
11187
11188 enable_shared=$xc_lt_want_enable_shared
11189 enable_static=$xc_lt_want_enable_static
11190
11191 #
11192 # Default behavior is to build PIC objects for shared libraries and
11193 # non-PIC objects for static libraries.
11194 #
11195
11196 xc_lt_want_with_pic='default'
11197
11198 #
11199 # User may have specified PIC preference.
11200 #
11201
11202 case "x$with_pic" in # ((
11203   xno)
11204     xc_lt_want_with_pic='no'
11205     ;;
11206   xyes)
11207     xc_lt_want_with_pic='yes'
11208     ;;
11209 esac
11210
11211 #
11212 # Default behavior on some systems where building a shared library out
11213 # of non-PIC compiled objects will fail with following linker error
11214 # "relocation R_X86_64_32 can not be used when making a shared object"
11215 # is to build PIC objects even for static libraries. This behavior may
11216 # be overriden using 'configure --disable-shared --without-pic'.
11217 #
11218
11219 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11220   case $host_cpu in # (
11221     x86_64 | amd64 | ia64)
11222       case $host_os in # (
11223         linux* | freebsd*)
11224           xc_lt_want_with_pic='yes'
11225           ;;
11226       esac
11227       ;;
11228   esac
11229 fi
11230
11231 #
11232 # Make libtool aware of current PIC preference taking in account that,
11233 # depending on host characteristics, libtool may modify PIC default
11234 # behavior to fit host system idiosyncrasies later in this script.
11235 #
11236
11237 with_pic=$xc_lt_want_with_pic
11238
11239 ## ----------------------- ##
11240 ##  Start of libtool code  ##
11241 ## ----------------------- ##
11242
11243
11244
11245
11246 # Set options
11247 enable_win32_dll=yes
11248
11249 case $host in
11250 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11251   if test -n "$ac_tool_prefix"; then
11252   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11253 set dummy ${ac_tool_prefix}as; ac_word=$2
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255 $as_echo_n "checking for $ac_word... " >&6; }
11256 if ${ac_cv_prog_AS+:} false; then :
11257   $as_echo_n "(cached) " >&6
11258 else
11259   if test -n "$AS"; then
11260   ac_cv_prog_AS="$AS" # Let the user override the test.
11261 else
11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH
11264 do
11265   IFS=$as_save_IFS
11266   test -z "$as_dir" && as_dir=.
11267     for ac_exec_ext in '' $ac_executable_extensions; do
11268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11269     ac_cv_prog_AS="${ac_tool_prefix}as"
11270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11271     break 2
11272   fi
11273 done
11274   done
11275 IFS=$as_save_IFS
11276
11277 fi
11278 fi
11279 AS=$ac_cv_prog_AS
11280 if test -n "$AS"; then
11281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11282 $as_echo "$AS" >&6; }
11283 else
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11286 fi
11287
11288
11289 fi
11290 if test -z "$ac_cv_prog_AS"; then
11291   ac_ct_AS=$AS
11292   # Extract the first word of "as", so it can be a program name with args.
11293 set dummy as; ac_word=$2
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11295 $as_echo_n "checking for $ac_word... " >&6; }
11296 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11297   $as_echo_n "(cached) " >&6
11298 else
11299   if test -n "$ac_ct_AS"; then
11300   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11301 else
11302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303 for as_dir in $PATH
11304 do
11305   IFS=$as_save_IFS
11306   test -z "$as_dir" && as_dir=.
11307     for ac_exec_ext in '' $ac_executable_extensions; do
11308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11309     ac_cv_prog_ac_ct_AS="as"
11310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11311     break 2
11312   fi
11313 done
11314   done
11315 IFS=$as_save_IFS
11316
11317 fi
11318 fi
11319 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11320 if test -n "$ac_ct_AS"; then
11321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11322 $as_echo "$ac_ct_AS" >&6; }
11323 else
11324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11325 $as_echo "no" >&6; }
11326 fi
11327
11328   if test "x$ac_ct_AS" = x; then
11329     AS="false"
11330   else
11331     case $cross_compiling:$ac_tool_warned in
11332 yes:)
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11335 ac_tool_warned=yes ;;
11336 esac
11337     AS=$ac_ct_AS
11338   fi
11339 else
11340   AS="$ac_cv_prog_AS"
11341 fi
11342
11343   if test -n "$ac_tool_prefix"; then
11344   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11345 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if ${ac_cv_prog_DLLTOOL+:} false; then :
11349   $as_echo_n "(cached) " >&6
11350 else
11351   if test -n "$DLLTOOL"; then
11352   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11353 else
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11356 do
11357   IFS=$as_save_IFS
11358   test -z "$as_dir" && as_dir=.
11359     for ac_exec_ext in '' $ac_executable_extensions; do
11360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11361     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363     break 2
11364   fi
11365 done
11366   done
11367 IFS=$as_save_IFS
11368
11369 fi
11370 fi
11371 DLLTOOL=$ac_cv_prog_DLLTOOL
11372 if test -n "$DLLTOOL"; then
11373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11374 $as_echo "$DLLTOOL" >&6; }
11375 else
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11378 fi
11379
11380
11381 fi
11382 if test -z "$ac_cv_prog_DLLTOOL"; then
11383   ac_ct_DLLTOOL=$DLLTOOL
11384   # Extract the first word of "dlltool", so it can be a program name with args.
11385 set dummy dlltool; ac_word=$2
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11387 $as_echo_n "checking for $ac_word... " >&6; }
11388 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11389   $as_echo_n "(cached) " >&6
11390 else
11391   if test -n "$ac_ct_DLLTOOL"; then
11392   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11393 else
11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395 for as_dir in $PATH
11396 do
11397   IFS=$as_save_IFS
11398   test -z "$as_dir" && as_dir=.
11399     for ac_exec_ext in '' $ac_executable_extensions; do
11400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11401     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11403     break 2
11404   fi
11405 done
11406   done
11407 IFS=$as_save_IFS
11408
11409 fi
11410 fi
11411 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11412 if test -n "$ac_ct_DLLTOOL"; then
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11414 $as_echo "$ac_ct_DLLTOOL" >&6; }
11415 else
11416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11418 fi
11419
11420   if test "x$ac_ct_DLLTOOL" = x; then
11421     DLLTOOL="false"
11422   else
11423     case $cross_compiling:$ac_tool_warned in
11424 yes:)
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11427 ac_tool_warned=yes ;;
11428 esac
11429     DLLTOOL=$ac_ct_DLLTOOL
11430   fi
11431 else
11432   DLLTOOL="$ac_cv_prog_DLLTOOL"
11433 fi
11434
11435   if test -n "$ac_tool_prefix"; then
11436   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11437 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if ${ac_cv_prog_OBJDUMP+:} false; then :
11441   $as_echo_n "(cached) " >&6
11442 else
11443   if test -n "$OBJDUMP"; then
11444   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11445 else
11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 for as_dir in $PATH
11448 do
11449   IFS=$as_save_IFS
11450   test -z "$as_dir" && as_dir=.
11451     for ac_exec_ext in '' $ac_executable_extensions; do
11452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11453     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11455     break 2
11456   fi
11457 done
11458   done
11459 IFS=$as_save_IFS
11460
11461 fi
11462 fi
11463 OBJDUMP=$ac_cv_prog_OBJDUMP
11464 if test -n "$OBJDUMP"; then
11465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11466 $as_echo "$OBJDUMP" >&6; }
11467 else
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11470 fi
11471
11472
11473 fi
11474 if test -z "$ac_cv_prog_OBJDUMP"; then
11475   ac_ct_OBJDUMP=$OBJDUMP
11476   # Extract the first word of "objdump", so it can be a program name with args.
11477 set dummy objdump; ac_word=$2
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479 $as_echo_n "checking for $ac_word... " >&6; }
11480 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11481   $as_echo_n "(cached) " >&6
11482 else
11483   if test -n "$ac_ct_OBJDUMP"; then
11484   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11485 else
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11488 do
11489   IFS=$as_save_IFS
11490   test -z "$as_dir" && as_dir=.
11491     for ac_exec_ext in '' $ac_executable_extensions; do
11492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11493     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11495     break 2
11496   fi
11497 done
11498   done
11499 IFS=$as_save_IFS
11500
11501 fi
11502 fi
11503 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11504 if test -n "$ac_ct_OBJDUMP"; then
11505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11506 $as_echo "$ac_ct_OBJDUMP" >&6; }
11507 else
11508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 $as_echo "no" >&6; }
11510 fi
11511
11512   if test "x$ac_ct_OBJDUMP" = x; then
11513     OBJDUMP="false"
11514   else
11515     case $cross_compiling:$ac_tool_warned in
11516 yes:)
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11519 ac_tool_warned=yes ;;
11520 esac
11521     OBJDUMP=$ac_ct_OBJDUMP
11522   fi
11523 else
11524   OBJDUMP="$ac_cv_prog_OBJDUMP"
11525 fi
11526
11527   ;;
11528 esac
11529
11530 test -z "$AS" && AS=as
11531
11532
11533
11534
11535
11536 test -z "$DLLTOOL" && DLLTOOL=dlltool
11537
11538
11539
11540
11541
11542 test -z "$OBJDUMP" && OBJDUMP=objdump
11543
11544
11545
11546
11547
11548
11549
11550         enable_dlopen=no
11551
11552
11553
11554             # Check whether --enable-shared was given.
11555 if test "${enable_shared+set}" = set; then :
11556   enableval=$enable_shared; p=${PACKAGE-default}
11557     case $enableval in
11558     yes) enable_shared=yes ;;
11559     no) enable_shared=no ;;
11560     *)
11561       enable_shared=no
11562       # Look at the argument we got.  We use all the common list separators.
11563       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11564       for pkg in $enableval; do
11565         IFS=$lt_save_ifs
11566         if test "X$pkg" = "X$p"; then
11567           enable_shared=yes
11568         fi
11569       done
11570       IFS=$lt_save_ifs
11571       ;;
11572     esac
11573 else
11574   enable_shared=yes
11575 fi
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585   # Check whether --enable-static was given.
11586 if test "${enable_static+set}" = set; then :
11587   enableval=$enable_static; p=${PACKAGE-default}
11588     case $enableval in
11589     yes) enable_static=yes ;;
11590     no) enable_static=no ;;
11591     *)
11592      enable_static=no
11593       # Look at the argument we got.  We use all the common list separators.
11594       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11595       for pkg in $enableval; do
11596         IFS=$lt_save_ifs
11597         if test "X$pkg" = "X$p"; then
11598           enable_static=yes
11599         fi
11600       done
11601       IFS=$lt_save_ifs
11602       ;;
11603     esac
11604 else
11605   enable_static=yes
11606 fi
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617 # Check whether --with-pic was given.
11618 if test "${with_pic+set}" = set; then :
11619   withval=$with_pic; lt_p=${PACKAGE-default}
11620     case $withval in
11621     yes|no) pic_mode=$withval ;;
11622     *)
11623       pic_mode=default
11624       # Look at the argument we got.  We use all the common list separators.
11625       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11626       for lt_pkg in $withval; do
11627         IFS=$lt_save_ifs
11628         if test "X$lt_pkg" = "X$lt_p"; then
11629           pic_mode=yes
11630         fi
11631       done
11632       IFS=$lt_save_ifs
11633       ;;
11634     esac
11635 else
11636   pic_mode=default
11637 fi
11638
11639
11640
11641
11642
11643
11644
11645
11646   # Check whether --enable-fast-install was given.
11647 if test "${enable_fast_install+set}" = set; then :
11648   enableval=$enable_fast_install; p=${PACKAGE-default}
11649     case $enableval in
11650     yes) enable_fast_install=yes ;;
11651     no) enable_fast_install=no ;;
11652     *)
11653       enable_fast_install=no
11654       # Look at the argument we got.  We use all the common list separators.
11655       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11656       for pkg in $enableval; do
11657         IFS=$lt_save_ifs
11658         if test "X$pkg" = "X$p"; then
11659           enable_fast_install=yes
11660         fi
11661       done
11662       IFS=$lt_save_ifs
11663       ;;
11664     esac
11665 else
11666   enable_fast_install=yes
11667 fi
11668
11669
11670
11671
11672
11673
11674
11675
11676   shared_archive_member_spec=
11677 case $host,$enable_shared in
11678 power*-*-aix[5-9]*,yes)
11679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11680 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11681
11682 # Check whether --with-aix-soname was given.
11683 if test "${with_aix_soname+set}" = set; then :
11684   withval=$with_aix_soname; case $withval in
11685     aix|svr4|both)
11686       ;;
11687     *)
11688       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11689       ;;
11690     esac
11691     lt_cv_with_aix_soname=$with_aix_soname
11692 else
11693   if ${lt_cv_with_aix_soname+:} false; then :
11694   $as_echo_n "(cached) " >&6
11695 else
11696   lt_cv_with_aix_soname=aix
11697 fi
11698
11699     with_aix_soname=$lt_cv_with_aix_soname
11700 fi
11701
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11703 $as_echo "$with_aix_soname" >&6; }
11704   if test aix != "$with_aix_soname"; then
11705     # For the AIX way of multilib, we name the shared archive member
11706     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11707     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11708     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11709     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11710     if test 64 = "${OBJECT_MODE-32}"; then
11711       shared_archive_member_spec=shr_64
11712     else
11713       shared_archive_member_spec=shr
11714     fi
11715   fi
11716   ;;
11717 *)
11718   with_aix_soname=aix
11719   ;;
11720 esac
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731 # This can be used to rebuild libtool when needed
11732 LIBTOOL_DEPS=$ltmain
11733
11734 # Always use our own libtool.
11735 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766 test -z "$LN_S" && LN_S="ln -s"
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781 if test -n "${ZSH_VERSION+set}"; then
11782    setopt NO_GLOB_SUBST
11783 fi
11784
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11786 $as_echo_n "checking for objdir... " >&6; }
11787 if ${lt_cv_objdir+:} false; then :
11788   $as_echo_n "(cached) " >&6
11789 else
11790   rm -f .libs 2>/dev/null
11791 mkdir .libs 2>/dev/null
11792 if test -d .libs; then
11793   lt_cv_objdir=.libs
11794 else
11795   # MS-DOS does not allow filenames that begin with a dot.
11796   lt_cv_objdir=_libs
11797 fi
11798 rmdir .libs 2>/dev/null
11799 fi
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11801 $as_echo "$lt_cv_objdir" >&6; }
11802 objdir=$lt_cv_objdir
11803
11804
11805
11806
11807
11808 cat >>confdefs.h <<_ACEOF
11809 #define LT_OBJDIR "$lt_cv_objdir/"
11810 _ACEOF
11811
11812
11813
11814
11815 case $host_os in
11816 aix3*)
11817   # AIX sometimes has problems with the GCC collect2 program.  For some
11818   # reason, if we set the COLLECT_NAMES environment variable, the problems
11819   # vanish in a puff of smoke.
11820   if test set != "${COLLECT_NAMES+set}"; then
11821     COLLECT_NAMES=
11822     export COLLECT_NAMES
11823   fi
11824   ;;
11825 esac
11826
11827 # Global variables:
11828 ofile=libtool
11829 can_build_shared=yes
11830
11831 # All known linkers require a '.a' archive for static linking (except MSVC,
11832 # which needs '.lib').
11833 libext=a
11834
11835 with_gnu_ld=$lt_cv_prog_gnu_ld
11836
11837 old_CC=$CC
11838 old_CFLAGS=$CFLAGS
11839
11840 # Set sane defaults for various variables
11841 test -z "$CC" && CC=cc
11842 test -z "$LTCC" && LTCC=$CC
11843 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11844 test -z "$LD" && LD=ld
11845 test -z "$ac_objext" && ac_objext=o
11846
11847 func_cc_basename $compiler
11848 cc_basename=$func_cc_basename_result
11849
11850
11851 # Only perform the check for file, if the check method requires it
11852 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11853 case $deplibs_check_method in
11854 file_magic*)
11855   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11857 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11858 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11859   $as_echo_n "(cached) " >&6
11860 else
11861   case $MAGIC_CMD in
11862 [\\/*] |  ?:[\\/]*)
11863   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11864   ;;
11865 *)
11866   lt_save_MAGIC_CMD=$MAGIC_CMD
11867   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11868   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11869   for ac_dir in $ac_dummy; do
11870     IFS=$lt_save_ifs
11871     test -z "$ac_dir" && ac_dir=.
11872     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11873       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11874       if test -n "$file_magic_test_file"; then
11875         case $deplibs_check_method in
11876         "file_magic "*)
11877           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11878           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11879           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11880             $EGREP "$file_magic_regex" > /dev/null; then
11881             :
11882           else
11883             cat <<_LT_EOF 1>&2
11884
11885 *** Warning: the command libtool uses to detect shared libraries,
11886 *** $file_magic_cmd, produces output that libtool cannot recognize.
11887 *** The result is that libtool may fail to recognize shared libraries
11888 *** as such.  This will affect the creation of libtool libraries that
11889 *** depend on shared libraries, but programs linked with such libtool
11890 *** libraries will work regardless of this problem.  Nevertheless, you
11891 *** may want to report the problem to your system manager and/or to
11892 *** bug-libtool@gnu.org
11893
11894 _LT_EOF
11895           fi ;;
11896         esac
11897       fi
11898       break
11899     fi
11900   done
11901   IFS=$lt_save_ifs
11902   MAGIC_CMD=$lt_save_MAGIC_CMD
11903   ;;
11904 esac
11905 fi
11906
11907 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11908 if test -n "$MAGIC_CMD"; then
11909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11910 $as_echo "$MAGIC_CMD" >&6; }
11911 else
11912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11914 fi
11915
11916
11917
11918
11919
11920 if test -z "$lt_cv_path_MAGIC_CMD"; then
11921   if test -n "$ac_tool_prefix"; then
11922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11923 $as_echo_n "checking for file... " >&6; }
11924 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11925   $as_echo_n "(cached) " >&6
11926 else
11927   case $MAGIC_CMD in
11928 [\\/*] |  ?:[\\/]*)
11929   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11930   ;;
11931 *)
11932   lt_save_MAGIC_CMD=$MAGIC_CMD
11933   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11934   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11935   for ac_dir in $ac_dummy; do
11936     IFS=$lt_save_ifs
11937     test -z "$ac_dir" && ac_dir=.
11938     if test -f "$ac_dir/file"; then
11939       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11940       if test -n "$file_magic_test_file"; then
11941         case $deplibs_check_method in
11942         "file_magic "*)
11943           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11944           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11945           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11946             $EGREP "$file_magic_regex" > /dev/null; then
11947             :
11948           else
11949             cat <<_LT_EOF 1>&2
11950
11951 *** Warning: the command libtool uses to detect shared libraries,
11952 *** $file_magic_cmd, produces output that libtool cannot recognize.
11953 *** The result is that libtool may fail to recognize shared libraries
11954 *** as such.  This will affect the creation of libtool libraries that
11955 *** depend on shared libraries, but programs linked with such libtool
11956 *** libraries will work regardless of this problem.  Nevertheless, you
11957 *** may want to report the problem to your system manager and/or to
11958 *** bug-libtool@gnu.org
11959
11960 _LT_EOF
11961           fi ;;
11962         esac
11963       fi
11964       break
11965     fi
11966   done
11967   IFS=$lt_save_ifs
11968   MAGIC_CMD=$lt_save_MAGIC_CMD
11969   ;;
11970 esac
11971 fi
11972
11973 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11974 if test -n "$MAGIC_CMD"; then
11975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11976 $as_echo "$MAGIC_CMD" >&6; }
11977 else
11978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11980 fi
11981
11982
11983   else
11984     MAGIC_CMD=:
11985   fi
11986 fi
11987
11988   fi
11989   ;;
11990 esac
11991
11992 # Use C for the default configuration in the libtool script
11993
11994 lt_save_CC=$CC
11995 ac_ext=c
11996 ac_cpp='$CPP $CPPFLAGS'
11997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12000
12001
12002 # Source file extension for C test sources.
12003 ac_ext=c
12004
12005 # Object file extension for compiled C test sources.
12006 objext=o
12007 objext=$objext
12008
12009 # Code to be used in simple compile tests
12010 lt_simple_compile_test_code="int some_variable = 0;"
12011
12012 # Code to be used in simple link tests
12013 lt_simple_link_test_code='int main(){return(0);}'
12014
12015
12016
12017
12018
12019
12020
12021 # If no C compiler was specified, use CC.
12022 LTCC=${LTCC-"$CC"}
12023
12024 # If no C compiler flags were specified, use CFLAGS.
12025 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12026
12027 # Allow CC to be a program name with arguments.
12028 compiler=$CC
12029
12030 # Save the default compiler, since it gets overwritten when the other
12031 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12032 compiler_DEFAULT=$CC
12033
12034 # save warnings/boilerplate of simple test code
12035 ac_outfile=conftest.$ac_objext
12036 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12038 _lt_compiler_boilerplate=`cat conftest.err`
12039 $RM conftest*
12040
12041 ac_outfile=conftest.$ac_objext
12042 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12044 _lt_linker_boilerplate=`cat conftest.err`
12045 $RM -r conftest*
12046
12047
12048 ## CAVEAT EMPTOR:
12049 ## There is no encapsulation within the following macros, do not change
12050 ## the running order or otherwise move them around unless you know exactly
12051 ## what you are doing...
12052 if test -n "$compiler"; then
12053
12054 lt_prog_compiler_no_builtin_flag=
12055
12056 if test yes = "$GCC"; then
12057   case $cc_basename in
12058   nvcc*)
12059     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12060   *)
12061     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12062   esac
12063
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12065 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12066 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12067   $as_echo_n "(cached) " >&6
12068 else
12069   lt_cv_prog_compiler_rtti_exceptions=no
12070    ac_outfile=conftest.$ac_objext
12071    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12072    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
12073    # Insert the option either (1) after the last *FLAGS variable, or
12074    # (2) before a word containing "conftest.", or (3) at the end.
12075    # Note that $ac_compile itself does not contain backslashes and begins
12076    # with a dollar sign (not a hyphen), so the echo should work correctly.
12077    # The option is referenced via a variable to avoid confusing sed.
12078    lt_compile=`echo "$ac_compile" | $SED \
12079    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12080    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12081    -e 's:$: $lt_compiler_flag:'`
12082    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12083    (eval "$lt_compile" 2>conftest.err)
12084    ac_status=$?
12085    cat conftest.err >&5
12086    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087    if (exit $ac_status) && test -s "$ac_outfile"; then
12088      # The compiler can only warn and ignore the option if not recognized
12089      # So say no if there are warnings other than the usual output.
12090      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12091      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12092      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12093        lt_cv_prog_compiler_rtti_exceptions=yes
12094      fi
12095    fi
12096    $RM conftest*
12097
12098 fi
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12100 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12101
12102 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12103     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12104 else
12105     :
12106 fi
12107
12108 fi
12109
12110
12111
12112
12113
12114
12115   lt_prog_compiler_wl=
12116 lt_prog_compiler_pic=
12117 lt_prog_compiler_static=
12118
12119
12120   if test yes = "$GCC"; then
12121     lt_prog_compiler_wl='-Wl,'
12122     lt_prog_compiler_static='-static'
12123
12124     case $host_os in
12125       aix*)
12126       # All AIX code is PIC.
12127       if test ia64 = "$host_cpu"; then
12128         # AIX 5 now supports IA64 processor
12129         lt_prog_compiler_static='-Bstatic'
12130       fi
12131       lt_prog_compiler_pic='-fPIC'
12132       ;;
12133
12134     amigaos*)
12135       case $host_cpu in
12136       powerpc)
12137             # see comment about AmigaOS4 .so support
12138             lt_prog_compiler_pic='-fPIC'
12139         ;;
12140       m68k)
12141             # FIXME: we need at least 68020 code to build shared libraries, but
12142             # adding the '-m68020' flag to GCC prevents building anything better,
12143             # like '-m68040'.
12144             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12145         ;;
12146       esac
12147       ;;
12148
12149     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12150       # PIC is the default for these OSes.
12151       ;;
12152
12153     mingw* | cygwin* | pw32* | os2* | cegcc*)
12154       # This hack is so that the source file can tell whether it is being
12155       # built for inclusion in a dll (and should export symbols for example).
12156       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12157       # (--disable-auto-import) libraries
12158       lt_prog_compiler_pic='-DDLL_EXPORT'
12159       case $host_os in
12160       os2*)
12161         lt_prog_compiler_static='$wl-static'
12162         ;;
12163       esac
12164       ;;
12165
12166     darwin* | rhapsody*)
12167       # PIC is the default on this platform
12168       # Common symbols not allowed in MH_DYLIB files
12169       lt_prog_compiler_pic='-fno-common'
12170       ;;
12171
12172     haiku*)
12173       # PIC is the default for Haiku.
12174       # The "-static" flag exists, but is broken.
12175       lt_prog_compiler_static=
12176       ;;
12177
12178     hpux*)
12179       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12180       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12181       # sets the default TLS model and affects inlining.
12182       case $host_cpu in
12183       hppa*64*)
12184         # +Z the default
12185         ;;
12186       *)
12187         lt_prog_compiler_pic='-fPIC'
12188         ;;
12189       esac
12190       ;;
12191
12192     interix[3-9]*)
12193       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12194       # Instead, we relocate shared libraries at runtime.
12195       ;;
12196
12197     msdosdjgpp*)
12198       # Just because we use GCC doesn't mean we suddenly get shared libraries
12199       # on systems that don't support them.
12200       lt_prog_compiler_can_build_shared=no
12201       enable_shared=no
12202       ;;
12203
12204     *nto* | *qnx*)
12205       # QNX uses GNU C++, but need to define -shared option too, otherwise
12206       # it will coredump.
12207       lt_prog_compiler_pic='-fPIC -shared'
12208       ;;
12209
12210     sysv4*MP*)
12211       if test -d /usr/nec; then
12212         lt_prog_compiler_pic=-Kconform_pic
12213       fi
12214       ;;
12215
12216     *)
12217       lt_prog_compiler_pic='-fPIC'
12218       ;;
12219     esac
12220
12221     case $cc_basename in
12222     nvcc*) # Cuda Compiler Driver 2.2
12223       lt_prog_compiler_wl='-Xlinker '
12224       if test -n "$lt_prog_compiler_pic"; then
12225         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12226       fi
12227       ;;
12228     esac
12229   else
12230     # PORTME Check for flag to pass linker flags through the system compiler.
12231     case $host_os in
12232     aix*)
12233       lt_prog_compiler_wl='-Wl,'
12234       if test ia64 = "$host_cpu"; then
12235         # AIX 5 now supports IA64 processor
12236         lt_prog_compiler_static='-Bstatic'
12237       else
12238         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12239       fi
12240       ;;
12241
12242     darwin* | rhapsody*)
12243       # PIC is the default on this platform
12244       # Common symbols not allowed in MH_DYLIB files
12245       lt_prog_compiler_pic='-fno-common'
12246       case $cc_basename in
12247       nagfor*)
12248         # NAG Fortran compiler
12249         lt_prog_compiler_wl='-Wl,-Wl,,'
12250         lt_prog_compiler_pic='-PIC'
12251         lt_prog_compiler_static='-Bstatic'
12252         ;;
12253       esac
12254       ;;
12255
12256     mingw* | cygwin* | pw32* | os2* | cegcc*)
12257       # This hack is so that the source file can tell whether it is being
12258       # built for inclusion in a dll (and should export symbols for example).
12259       lt_prog_compiler_pic='-DDLL_EXPORT'
12260       case $host_os in
12261       os2*)
12262         lt_prog_compiler_static='$wl-static'
12263         ;;
12264       esac
12265       ;;
12266
12267     hpux9* | hpux10* | hpux11*)
12268       lt_prog_compiler_wl='-Wl,'
12269       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12270       # not for PA HP-UX.
12271       case $host_cpu in
12272       hppa*64*|ia64*)
12273         # +Z the default
12274         ;;
12275       *)
12276         lt_prog_compiler_pic='+Z'
12277         ;;
12278       esac
12279       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12280       lt_prog_compiler_static='$wl-a ${wl}archive'
12281       ;;
12282
12283     irix5* | irix6* | nonstopux*)
12284       lt_prog_compiler_wl='-Wl,'
12285       # PIC (with -KPIC) is the default.
12286       lt_prog_compiler_static='-non_shared'
12287       ;;
12288
12289     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12290       case $cc_basename in
12291       # old Intel for x86_64, which still supported -KPIC.
12292       ecc*)
12293         lt_prog_compiler_wl='-Wl,'
12294         lt_prog_compiler_pic='-KPIC'
12295         lt_prog_compiler_static='-static'
12296         ;;
12297       # icc used to be incompatible with GCC.
12298       # ICC 10 doesn't accept -KPIC any more.
12299       icc* | ifort*)
12300         lt_prog_compiler_wl='-Wl,'
12301         lt_prog_compiler_pic='-fPIC'
12302         lt_prog_compiler_static='-static'
12303         ;;
12304       # Lahey Fortran 8.1.
12305       lf95*)
12306         lt_prog_compiler_wl='-Wl,'
12307         lt_prog_compiler_pic='--shared'
12308         lt_prog_compiler_static='--static'
12309         ;;
12310       nagfor*)
12311         # NAG Fortran compiler
12312         lt_prog_compiler_wl='-Wl,-Wl,,'
12313         lt_prog_compiler_pic='-PIC'
12314         lt_prog_compiler_static='-Bstatic'
12315         ;;
12316       tcc*)
12317         # Fabrice Bellard et al's Tiny C Compiler
12318         lt_prog_compiler_wl='-Wl,'
12319         lt_prog_compiler_pic='-fPIC'
12320         lt_prog_compiler_static='-static'
12321         ;;
12322       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12323         # Portland Group compilers (*not* the Pentium gcc compiler,
12324         # which looks to be a dead project)
12325         lt_prog_compiler_wl='-Wl,'
12326         lt_prog_compiler_pic='-fpic'
12327         lt_prog_compiler_static='-Bstatic'
12328         ;;
12329       ccc*)
12330         lt_prog_compiler_wl='-Wl,'
12331         # All Alpha code is PIC.
12332         lt_prog_compiler_static='-non_shared'
12333         ;;
12334       xl* | bgxl* | bgf* | mpixl*)
12335         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12336         lt_prog_compiler_wl='-Wl,'
12337         lt_prog_compiler_pic='-qpic'
12338         lt_prog_compiler_static='-qstaticlink'
12339         ;;
12340       *)
12341         case `$CC -V 2>&1 | sed 5q` in
12342         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12343           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12344           lt_prog_compiler_pic='-KPIC'
12345           lt_prog_compiler_static='-Bstatic'
12346           lt_prog_compiler_wl=''
12347           ;;
12348         *Sun\ F* | *Sun*Fortran*)
12349           lt_prog_compiler_pic='-KPIC'
12350           lt_prog_compiler_static='-Bstatic'
12351           lt_prog_compiler_wl='-Qoption ld '
12352           ;;
12353         *Sun\ C*)
12354           # Sun C 5.9
12355           lt_prog_compiler_pic='-KPIC'
12356           lt_prog_compiler_static='-Bstatic'
12357           lt_prog_compiler_wl='-Wl,'
12358           ;;
12359         *Intel*\ [CF]*Compiler*)
12360           lt_prog_compiler_wl='-Wl,'
12361           lt_prog_compiler_pic='-fPIC'
12362           lt_prog_compiler_static='-static'
12363           ;;
12364         *Portland\ Group*)
12365           lt_prog_compiler_wl='-Wl,'
12366           lt_prog_compiler_pic='-fpic'
12367           lt_prog_compiler_static='-Bstatic'
12368           ;;
12369         esac
12370         ;;
12371       esac
12372       ;;
12373
12374     newsos6)
12375       lt_prog_compiler_pic='-KPIC'
12376       lt_prog_compiler_static='-Bstatic'
12377       ;;
12378
12379     *nto* | *qnx*)
12380       # QNX uses GNU C++, but need to define -shared option too, otherwise
12381       # it will coredump.
12382       lt_prog_compiler_pic='-fPIC -shared'
12383       ;;
12384
12385     osf3* | osf4* | osf5*)
12386       lt_prog_compiler_wl='-Wl,'
12387       # All OSF/1 code is PIC.
12388       lt_prog_compiler_static='-non_shared'
12389       ;;
12390
12391     rdos*)
12392       lt_prog_compiler_static='-non_shared'
12393       ;;
12394
12395     solaris*)
12396       lt_prog_compiler_pic='-KPIC'
12397       lt_prog_compiler_static='-Bstatic'
12398       case $cc_basename in
12399       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12400         lt_prog_compiler_wl='-Qoption ld ';;
12401       *)
12402         lt_prog_compiler_wl='-Wl,';;
12403       esac
12404       ;;
12405
12406     sunos4*)
12407       lt_prog_compiler_wl='-Qoption ld '
12408       lt_prog_compiler_pic='-PIC'
12409       lt_prog_compiler_static='-Bstatic'
12410       ;;
12411
12412     sysv4 | sysv4.2uw2* | sysv4.3*)
12413       lt_prog_compiler_wl='-Wl,'
12414       lt_prog_compiler_pic='-KPIC'
12415       lt_prog_compiler_static='-Bstatic'
12416       ;;
12417
12418     sysv4*MP*)
12419       if test -d /usr/nec; then
12420         lt_prog_compiler_pic='-Kconform_pic'
12421         lt_prog_compiler_static='-Bstatic'
12422       fi
12423       ;;
12424
12425     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12426       lt_prog_compiler_wl='-Wl,'
12427       lt_prog_compiler_pic='-KPIC'
12428       lt_prog_compiler_static='-Bstatic'
12429       ;;
12430
12431     unicos*)
12432       lt_prog_compiler_wl='-Wl,'
12433       lt_prog_compiler_can_build_shared=no
12434       ;;
12435
12436     uts4*)
12437       lt_prog_compiler_pic='-pic'
12438       lt_prog_compiler_static='-Bstatic'
12439       ;;
12440
12441     *)
12442       lt_prog_compiler_can_build_shared=no
12443       ;;
12444     esac
12445   fi
12446
12447 case $host_os in
12448   # For platforms that do not support PIC, -DPIC is meaningless:
12449   *djgpp*)
12450     lt_prog_compiler_pic=
12451     ;;
12452   *)
12453     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12454     ;;
12455 esac
12456
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12458 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12459 if ${lt_cv_prog_compiler_pic+:} false; then :
12460   $as_echo_n "(cached) " >&6
12461 else
12462   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12463 fi
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12465 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12466 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12467
12468 #
12469 # Check to make sure the PIC flag actually works.
12470 #
12471 if test -n "$lt_prog_compiler_pic"; then
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12473 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12474 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12475   $as_echo_n "(cached) " >&6
12476 else
12477   lt_cv_prog_compiler_pic_works=no
12478    ac_outfile=conftest.$ac_objext
12479    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12480    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12481    # Insert the option either (1) after the last *FLAGS variable, or
12482    # (2) before a word containing "conftest.", or (3) at the end.
12483    # Note that $ac_compile itself does not contain backslashes and begins
12484    # with a dollar sign (not a hyphen), so the echo should work correctly.
12485    # The option is referenced via a variable to avoid confusing sed.
12486    lt_compile=`echo "$ac_compile" | $SED \
12487    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12488    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12489    -e 's:$: $lt_compiler_flag:'`
12490    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12491    (eval "$lt_compile" 2>conftest.err)
12492    ac_status=$?
12493    cat conftest.err >&5
12494    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495    if (exit $ac_status) && test -s "$ac_outfile"; then
12496      # The compiler can only warn and ignore the option if not recognized
12497      # So say no if there are warnings other than the usual output.
12498      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12499      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12500      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12501        lt_cv_prog_compiler_pic_works=yes
12502      fi
12503    fi
12504    $RM conftest*
12505
12506 fi
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12508 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12509
12510 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12511     case $lt_prog_compiler_pic in
12512      "" | " "*) ;;
12513      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12514      esac
12515 else
12516     lt_prog_compiler_pic=
12517      lt_prog_compiler_can_build_shared=no
12518 fi
12519
12520 fi
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532 #
12533 # Check to make sure the static flag actually works.
12534 #
12535 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12537 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12538 if ${lt_cv_prog_compiler_static_works+:} false; then :
12539   $as_echo_n "(cached) " >&6
12540 else
12541   lt_cv_prog_compiler_static_works=no
12542    save_LDFLAGS=$LDFLAGS
12543    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12544    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12545    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12546      # The linker can only warn and ignore the option if not recognized
12547      # So say no if there are warnings
12548      if test -s conftest.err; then
12549        # Append any errors to the config.log.
12550        cat conftest.err 1>&5
12551        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12552        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12553        if diff conftest.exp conftest.er2 >/dev/null; then
12554          lt_cv_prog_compiler_static_works=yes
12555        fi
12556      else
12557        lt_cv_prog_compiler_static_works=yes
12558      fi
12559    fi
12560    $RM -r conftest*
12561    LDFLAGS=$save_LDFLAGS
12562
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12565 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12566
12567 if test yes = "$lt_cv_prog_compiler_static_works"; then
12568     :
12569 else
12570     lt_prog_compiler_static=
12571 fi
12572
12573
12574
12575
12576
12577
12578
12579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12580 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12581 if ${lt_cv_prog_compiler_c_o+:} false; then :
12582   $as_echo_n "(cached) " >&6
12583 else
12584   lt_cv_prog_compiler_c_o=no
12585    $RM -r conftest 2>/dev/null
12586    mkdir conftest
12587    cd conftest
12588    mkdir out
12589    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12590
12591    lt_compiler_flag="-o out/conftest2.$ac_objext"
12592    # Insert the option either (1) after the last *FLAGS variable, or
12593    # (2) before a word containing "conftest.", or (3) at the end.
12594    # Note that $ac_compile itself does not contain backslashes and begins
12595    # with a dollar sign (not a hyphen), so the echo should work correctly.
12596    lt_compile=`echo "$ac_compile" | $SED \
12597    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12598    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12599    -e 's:$: $lt_compiler_flag:'`
12600    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12601    (eval "$lt_compile" 2>out/conftest.err)
12602    ac_status=$?
12603    cat out/conftest.err >&5
12604    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12606    then
12607      # The compiler can only warn and ignore the option if not recognized
12608      # So say no if there are warnings
12609      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12610      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12611      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12612        lt_cv_prog_compiler_c_o=yes
12613      fi
12614    fi
12615    chmod u+w . 2>&5
12616    $RM conftest*
12617    # SGI C++ compiler will create directory out/ii_files/ for
12618    # template instantiation
12619    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12620    $RM out/* && rmdir out
12621    cd ..
12622    $RM -r conftest
12623    $RM conftest*
12624
12625 fi
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12627 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12628
12629
12630
12631
12632
12633
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12635 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12636 if ${lt_cv_prog_compiler_c_o+:} false; then :
12637   $as_echo_n "(cached) " >&6
12638 else
12639   lt_cv_prog_compiler_c_o=no
12640    $RM -r conftest 2>/dev/null
12641    mkdir conftest
12642    cd conftest
12643    mkdir out
12644    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12645
12646    lt_compiler_flag="-o out/conftest2.$ac_objext"
12647    # Insert the option either (1) after the last *FLAGS variable, or
12648    # (2) before a word containing "conftest.", or (3) at the end.
12649    # Note that $ac_compile itself does not contain backslashes and begins
12650    # with a dollar sign (not a hyphen), so the echo should work correctly.
12651    lt_compile=`echo "$ac_compile" | $SED \
12652    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12653    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12654    -e 's:$: $lt_compiler_flag:'`
12655    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12656    (eval "$lt_compile" 2>out/conftest.err)
12657    ac_status=$?
12658    cat out/conftest.err >&5
12659    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12661    then
12662      # The compiler can only warn and ignore the option if not recognized
12663      # So say no if there are warnings
12664      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12665      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12666      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12667        lt_cv_prog_compiler_c_o=yes
12668      fi
12669    fi
12670    chmod u+w . 2>&5
12671    $RM conftest*
12672    # SGI C++ compiler will create directory out/ii_files/ for
12673    # template instantiation
12674    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12675    $RM out/* && rmdir out
12676    cd ..
12677    $RM -r conftest
12678    $RM conftest*
12679
12680 fi
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12682 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12683
12684
12685
12686
12687 hard_links=nottested
12688 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12689   # do not overwrite the value of need_locks provided by the user
12690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12691 $as_echo_n "checking if we can lock with hard links... " >&6; }
12692   hard_links=yes
12693   $RM conftest*
12694   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12695   touch conftest.a
12696   ln conftest.a conftest.b 2>&5 || hard_links=no
12697   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12699 $as_echo "$hard_links" >&6; }
12700   if test no = "$hard_links"; then
12701     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12702 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12703     need_locks=warn
12704   fi
12705 else
12706   need_locks=no
12707 fi
12708
12709
12710
12711
12712
12713
12714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12715 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12716
12717   runpath_var=
12718   allow_undefined_flag=
12719   always_export_symbols=no
12720   archive_cmds=
12721   archive_expsym_cmds=
12722   compiler_needs_object=no
12723   enable_shared_with_static_runtimes=no
12724   export_dynamic_flag_spec=
12725   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12726   hardcode_automatic=no
12727   hardcode_direct=no
12728   hardcode_direct_absolute=no
12729   hardcode_libdir_flag_spec=
12730   hardcode_libdir_separator=
12731   hardcode_minus_L=no
12732   hardcode_shlibpath_var=unsupported
12733   inherit_rpath=no
12734   link_all_deplibs=unknown
12735   module_cmds=
12736   module_expsym_cmds=
12737   old_archive_from_new_cmds=
12738   old_archive_from_expsyms_cmds=
12739   thread_safe_flag_spec=
12740   whole_archive_flag_spec=
12741   # include_expsyms should be a list of space-separated symbols to be *always*
12742   # included in the symbol list
12743   include_expsyms=
12744   # exclude_expsyms can be an extended regexp of symbols to exclude
12745   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12746   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12747   # as well as any symbol that contains 'd'.
12748   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12749   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12750   # platforms (ab)use it in PIC code, but their linkers get confused if
12751   # the symbol is explicitly referenced.  Since portable code cannot
12752   # rely on this symbol name, it's probably fine to never include it in
12753   # preloaded symbol tables.
12754   # Exclude shared library initialization/finalization symbols.
12755   extract_expsyms_cmds=
12756
12757   case $host_os in
12758   cygwin* | mingw* | pw32* | cegcc*)
12759     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12760     # When not using gcc, we currently assume that we are using
12761     # Microsoft Visual C++.
12762     if test yes != "$GCC"; then
12763       with_gnu_ld=no
12764     fi
12765     ;;
12766   interix*)
12767     # we just hope/assume this is gcc and not c89 (= MSVC++)
12768     with_gnu_ld=yes
12769     ;;
12770   openbsd* | bitrig*)
12771     with_gnu_ld=no
12772     ;;
12773   linux* | k*bsd*-gnu | gnu*)
12774     link_all_deplibs=no
12775     ;;
12776   esac
12777
12778   ld_shlibs=yes
12779
12780   # On some targets, GNU ld is compatible enough with the native linker
12781   # that we're better off using the native interface for both.
12782   lt_use_gnu_ld_interface=no
12783   if test yes = "$with_gnu_ld"; then
12784     case $host_os in
12785       aix*)
12786         # The AIX port of GNU ld has always aspired to compatibility
12787         # with the native linker.  However, as the warning in the GNU ld
12788         # block says, versions before 2.19.5* couldn't really create working
12789         # shared libraries, regardless of the interface used.
12790         case `$LD -v 2>&1` in
12791           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12792           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12793           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12794           *)
12795             lt_use_gnu_ld_interface=yes
12796             ;;
12797         esac
12798         ;;
12799       *)
12800         lt_use_gnu_ld_interface=yes
12801         ;;
12802     esac
12803   fi
12804
12805   if test yes = "$lt_use_gnu_ld_interface"; then
12806     # If archive_cmds runs LD, not CC, wlarc should be empty
12807     wlarc='$wl'
12808
12809     # Set some defaults for GNU ld with shared library support. These
12810     # are reset later if shared libraries are not supported. Putting them
12811     # here allows them to be overridden if necessary.
12812     runpath_var=LD_RUN_PATH
12813     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12814     export_dynamic_flag_spec='$wl--export-dynamic'
12815     # ancient GNU ld didn't support --whole-archive et. al.
12816     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12817       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12818     else
12819       whole_archive_flag_spec=
12820     fi
12821     supports_anon_versioning=no
12822     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12823       *GNU\ gold*) supports_anon_versioning=yes ;;
12824       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12825       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12826       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12827       *\ 2.11.*) ;; # other 2.11 versions
12828       *) supports_anon_versioning=yes ;;
12829     esac
12830
12831     # See if GNU ld supports shared libraries.
12832     case $host_os in
12833     aix[3-9]*)
12834       # On AIX/PPC, the GNU linker is very broken
12835       if test ia64 != "$host_cpu"; then
12836         ld_shlibs=no
12837         cat <<_LT_EOF 1>&2
12838
12839 *** Warning: the GNU linker, at least up to release 2.19, is reported
12840 *** to be unable to reliably create shared libraries on AIX.
12841 *** Therefore, libtool is disabling shared libraries support.  If you
12842 *** really care for shared libraries, you may want to install binutils
12843 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12844 *** You will then need to restart the configuration process.
12845
12846 _LT_EOF
12847       fi
12848       ;;
12849
12850     amigaos*)
12851       case $host_cpu in
12852       powerpc)
12853             # see comment about AmigaOS4 .so support
12854             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12855             archive_expsym_cmds=''
12856         ;;
12857       m68k)
12858             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)'
12859             hardcode_libdir_flag_spec='-L$libdir'
12860             hardcode_minus_L=yes
12861         ;;
12862       esac
12863       ;;
12864
12865     beos*)
12866       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12867         allow_undefined_flag=unsupported
12868         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12869         # support --undefined.  This deserves some investigation.  FIXME
12870         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12871       else
12872         ld_shlibs=no
12873       fi
12874       ;;
12875
12876     cygwin* | mingw* | pw32* | cegcc*)
12877       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12878       # as there is no search path for DLLs.
12879       hardcode_libdir_flag_spec='-L$libdir'
12880       export_dynamic_flag_spec='$wl--export-all-symbols'
12881       allow_undefined_flag=unsupported
12882       always_export_symbols=no
12883       enable_shared_with_static_runtimes=yes
12884       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'
12885       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12886
12887       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12888         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12889         # If the export-symbols file already is a .def file, use it as
12890         # is; otherwise, prepend EXPORTS...
12891         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12892           cp $export_symbols $output_objdir/$soname.def;
12893         else
12894           echo EXPORTS > $output_objdir/$soname.def;
12895           cat $export_symbols >> $output_objdir/$soname.def;
12896         fi~
12897         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12898       else
12899         ld_shlibs=no
12900       fi
12901       ;;
12902
12903     haiku*)
12904       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12905       link_all_deplibs=yes
12906       ;;
12907
12908     os2*)
12909       hardcode_libdir_flag_spec='-L$libdir'
12910       hardcode_minus_L=yes
12911       allow_undefined_flag=unsupported
12912       shrext_cmds=.dll
12913       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12914         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12915         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12916         $ECHO EXPORTS >> $output_objdir/$libname.def~
12917         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12918         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12919         emximp -o $lib $output_objdir/$libname.def'
12920       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12921         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12922         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12923         $ECHO EXPORTS >> $output_objdir/$libname.def~
12924         prefix_cmds="$SED"~
12925         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12926           prefix_cmds="$prefix_cmds -e 1d";
12927         fi~
12928         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12929         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12930         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12931         emximp -o $lib $output_objdir/$libname.def'
12932       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12933       enable_shared_with_static_runtimes=yes
12934       ;;
12935
12936     interix[3-9]*)
12937       hardcode_direct=no
12938       hardcode_shlibpath_var=no
12939       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12940       export_dynamic_flag_spec='$wl-E'
12941       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12942       # Instead, shared libraries are loaded at an image base (0x10000000 by
12943       # default) and relocated if they conflict, which is a slow very memory
12944       # consuming and fragmenting process.  To avoid this, we pick a random,
12945       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12946       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12947       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12948       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'
12949       ;;
12950
12951     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12952       tmp_diet=no
12953       if test linux-dietlibc = "$host_os"; then
12954         case $cc_basename in
12955           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12956         esac
12957       fi
12958       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12959          && test no = "$tmp_diet"
12960       then
12961         tmp_addflag=' $pic_flag'
12962         tmp_sharedflag='-shared'
12963         case $cc_basename,$host_cpu in
12964         pgcc*)                          # Portland Group C compiler
12965           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'
12966           tmp_addflag=' $pic_flag'
12967           ;;
12968         pgf77* | pgf90* | pgf95* | pgfortran*)
12969                                         # Portland Group f77 and f90 compilers
12970           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'
12971           tmp_addflag=' $pic_flag -Mnomain' ;;
12972         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12973           tmp_addflag=' -i_dynamic' ;;
12974         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12975           tmp_addflag=' -i_dynamic -nofor_main' ;;
12976         ifc* | ifort*)                  # Intel Fortran compiler
12977           tmp_addflag=' -nofor_main' ;;
12978         lf95*)                          # Lahey Fortran 8.1
12979           whole_archive_flag_spec=
12980           tmp_sharedflag='--shared' ;;
12981         nagfor*)                        # NAGFOR 5.3
12982           tmp_sharedflag='-Wl,-shared' ;;
12983         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12984           tmp_sharedflag='-qmkshrobj'
12985           tmp_addflag= ;;
12986         nvcc*)  # Cuda Compiler Driver 2.2
12987           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'
12988           compiler_needs_object=yes
12989           ;;
12990         esac
12991         case `$CC -V 2>&1 | sed 5q` in
12992         *Sun\ C*)                       # Sun C 5.9
12993           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'
12994           compiler_needs_object=yes
12995           tmp_sharedflag='-G' ;;
12996         *Sun\ F*)                       # Sun Fortran 8.3
12997           tmp_sharedflag='-G' ;;
12998         esac
12999         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13000
13001         if test yes = "$supports_anon_versioning"; then
13002           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13003             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13004             echo "local: *; };" >> $output_objdir/$libname.ver~
13005             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13006         fi
13007
13008         case $cc_basename in
13009         tcc*)
13010           export_dynamic_flag_spec='-rdynamic'
13011           ;;
13012         xlf* | bgf* | bgxlf* | mpixlf*)
13013           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13014           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13015           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13016           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13017           if test yes = "$supports_anon_versioning"; then
13018             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13019               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13020               echo "local: *; };" >> $output_objdir/$libname.ver~
13021               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13022           fi
13023           ;;
13024         esac
13025       else
13026         ld_shlibs=no
13027       fi
13028       ;;
13029
13030     netbsd* | netbsdelf*-gnu)
13031       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13032         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13033         wlarc=
13034       else
13035         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13036         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13037       fi
13038       ;;
13039
13040     solaris*)
13041       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13042         ld_shlibs=no
13043         cat <<_LT_EOF 1>&2
13044
13045 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13046 *** create shared libraries on Solaris systems.  Therefore, libtool
13047 *** is disabling shared libraries support.  We urge you to upgrade GNU
13048 *** binutils to release 2.9.1 or newer.  Another option is to modify
13049 *** your PATH or compiler configuration so that the native linker is
13050 *** used, and then restart.
13051
13052 _LT_EOF
13053       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13054         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13055         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13056       else
13057         ld_shlibs=no
13058       fi
13059       ;;
13060
13061     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13062       case `$LD -v 2>&1` in
13063         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13064         ld_shlibs=no
13065         cat <<_LT_EOF 1>&2
13066
13067 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13068 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13069 *** is disabling shared libraries support.  We urge you to upgrade GNU
13070 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13071 *** your PATH or compiler configuration so that the native linker is
13072 *** used, and then restart.
13073
13074 _LT_EOF
13075         ;;
13076         *)
13077           # For security reasons, it is highly recommended that you always
13078           # use absolute paths for naming shared libraries, and exclude the
13079           # DT_RUNPATH tag from executables and libraries.  But doing so
13080           # requires that you compile everything twice, which is a pain.
13081           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13082             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13083             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13084             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13085           else
13086             ld_shlibs=no
13087           fi
13088         ;;
13089       esac
13090       ;;
13091
13092     sunos4*)
13093       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13094       wlarc=
13095       hardcode_direct=yes
13096       hardcode_shlibpath_var=no
13097       ;;
13098
13099     *)
13100       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13101         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13102         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13103       else
13104         ld_shlibs=no
13105       fi
13106       ;;
13107     esac
13108
13109     if test no = "$ld_shlibs"; then
13110       runpath_var=
13111       hardcode_libdir_flag_spec=
13112       export_dynamic_flag_spec=
13113       whole_archive_flag_spec=
13114     fi
13115   else
13116     # PORTME fill in a description of your system's linker (not GNU ld)
13117     case $host_os in
13118     aix3*)
13119       allow_undefined_flag=unsupported
13120       always_export_symbols=yes
13121       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'
13122       # Note: this linker hardcodes the directories in LIBPATH if there
13123       # are no directories specified by -L.
13124       hardcode_minus_L=yes
13125       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13126         # Neither direct hardcoding nor static linking is supported with a
13127         # broken collect2.
13128         hardcode_direct=unsupported
13129       fi
13130       ;;
13131
13132     aix[4-9]*)
13133       if test ia64 = "$host_cpu"; then
13134         # On IA64, the linker does run time linking by default, so we don't
13135         # have to do anything special.
13136         aix_use_runtimelinking=no
13137         exp_sym_flag='-Bexport'
13138         no_entry_flag=
13139       else
13140         # If we're using GNU nm, then we don't want the "-C" option.
13141         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13142         # Without the "-l" option, or with the "-B" option, AIX nm treats
13143         # weak defined symbols like other global defined symbols, whereas
13144         # GNU nm marks them as "W".
13145         # While the 'weak' keyword is ignored in the Export File, we need
13146         # it in the Import File for the 'aix-soname' feature, so we have
13147         # to replace the "-B" option with "-P" for AIX nm.
13148         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13149           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'
13150         else
13151           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'
13152         fi
13153         aix_use_runtimelinking=no
13154
13155         # Test if we are trying to use run time linking or normal
13156         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13157         # have runtime linking enabled, and use it for executables.
13158         # For shared libraries, we enable/disable runtime linking
13159         # depending on the kind of the shared library created -
13160         # when "with_aix_soname,aix_use_runtimelinking" is:
13161         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13162         # "aix,yes"  lib.so          shared, rtl:yes, for executables
13163         #            lib.a           static archive
13164         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13165         #            lib.a(lib.so.V) shared, rtl:no,  for executables
13166         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13167         #            lib.a(lib.so.V) shared, rtl:no
13168         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13169         #            lib.a           static archive
13170         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13171           for ld_flag in $LDFLAGS; do
13172           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13173             aix_use_runtimelinking=yes
13174             break
13175           fi
13176           done
13177           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13178             # With aix-soname=svr4, we create the lib.so.V shared archives only,
13179             # so we don't have lib.a shared libs to link our executables.
13180             # We have to force runtime linking in this case.
13181             aix_use_runtimelinking=yes
13182             LDFLAGS="$LDFLAGS -Wl,-brtl"
13183           fi
13184           ;;
13185         esac
13186
13187         exp_sym_flag='-bexport'
13188         no_entry_flag='-bnoentry'
13189       fi
13190
13191       # When large executables or shared objects are built, AIX ld can
13192       # have problems creating the table of contents.  If linking a library
13193       # or program results in "error TOC overflow" add -mminimal-toc to
13194       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13195       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13196
13197       archive_cmds=''
13198       hardcode_direct=yes
13199       hardcode_direct_absolute=yes
13200       hardcode_libdir_separator=':'
13201       link_all_deplibs=yes
13202       file_list_spec='$wl-f,'
13203       case $with_aix_soname,$aix_use_runtimelinking in
13204       aix,*) ;; # traditional, no import file
13205       svr4,* | *,yes) # use import file
13206         # The Import File defines what to hardcode.
13207         hardcode_direct=no
13208         hardcode_direct_absolute=no
13209         ;;
13210       esac
13211
13212       if test yes = "$GCC"; then
13213         case $host_os in aix4.[012]|aix4.[012].*)
13214         # We only want to do this on AIX 4.2 and lower, the check
13215         # below for broken collect2 doesn't work under 4.3+
13216           collect2name=`$CC -print-prog-name=collect2`
13217           if test -f "$collect2name" &&
13218            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13219           then
13220           # We have reworked collect2
13221           :
13222           else
13223           # We have old collect2
13224           hardcode_direct=unsupported
13225           # It fails to find uninstalled libraries when the uninstalled
13226           # path is not listed in the libpath.  Setting hardcode_minus_L
13227           # to unsupported forces relinking
13228           hardcode_minus_L=yes
13229           hardcode_libdir_flag_spec='-L$libdir'
13230           hardcode_libdir_separator=
13231           fi
13232           ;;
13233         esac
13234         shared_flag='-shared'
13235         if test yes = "$aix_use_runtimelinking"; then
13236           shared_flag="$shared_flag "'$wl-G'
13237         fi
13238         # Need to ensure runtime linking is disabled for the traditional
13239         # shared library, or the linker may eventually find shared libraries
13240         # /with/ Import File - we do not want to mix them.
13241         shared_flag_aix='-shared'
13242         shared_flag_svr4='-shared $wl-G'
13243       else
13244         # not using gcc
13245         if test ia64 = "$host_cpu"; then
13246         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13247         # chokes on -Wl,-G. The following line is correct:
13248           shared_flag='-G'
13249         else
13250           if test yes = "$aix_use_runtimelinking"; then
13251             shared_flag='$wl-G'
13252           else
13253             shared_flag='$wl-bM:SRE'
13254           fi
13255           shared_flag_aix='$wl-bM:SRE'
13256           shared_flag_svr4='$wl-G'
13257         fi
13258       fi
13259
13260       export_dynamic_flag_spec='$wl-bexpall'
13261       # It seems that -bexpall does not export symbols beginning with
13262       # underscore (_), so it is better to generate a list of symbols to export.
13263       always_export_symbols=yes
13264       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13265         # Warning - without using the other runtime loading flags (-brtl),
13266         # -berok will link without error, but may produce a broken library.
13267         allow_undefined_flag='-berok'
13268         # Determine the default libpath from the value encoded in an
13269         # empty executable.
13270         if test set = "${lt_cv_aix_libpath+set}"; then
13271   aix_libpath=$lt_cv_aix_libpath
13272 else
13273   if ${lt_cv_aix_libpath_+:} false; then :
13274   $as_echo_n "(cached) " >&6
13275 else
13276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h.  */
13278
13279 int main (void)
13280 {
13281
13282  ;
13283  return 0;
13284 }
13285 _ACEOF
13286 if ac_fn_c_try_link "$LINENO"; then :
13287
13288   lt_aix_libpath_sed='
13289       /Import File Strings/,/^$/ {
13290           /^0/ {
13291               s/^0  *\([^ ]*\) *$/\1/
13292               p
13293           }
13294       }'
13295   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13296   # Check for a 64-bit object if we didn't find anything.
13297   if test -z "$lt_cv_aix_libpath_"; then
13298     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13299   fi
13300 fi
13301 rm -f core conftest.err conftest.$ac_objext \
13302     conftest$ac_exeext conftest.$ac_ext
13303   if test -z "$lt_cv_aix_libpath_"; then
13304     lt_cv_aix_libpath_=/usr/lib:/lib
13305   fi
13306
13307 fi
13308
13309   aix_libpath=$lt_cv_aix_libpath_
13310 fi
13311
13312         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13313         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
13314       else
13315         if test ia64 = "$host_cpu"; then
13316           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13317           allow_undefined_flag="-z nodefs"
13318           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"
13319         else
13320          # Determine the default libpath from the value encoded in an
13321          # empty executable.
13322          if test set = "${lt_cv_aix_libpath+set}"; then
13323   aix_libpath=$lt_cv_aix_libpath
13324 else
13325   if ${lt_cv_aix_libpath_+:} false; then :
13326   $as_echo_n "(cached) " >&6
13327 else
13328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h.  */
13330
13331 int main (void)
13332 {
13333
13334  ;
13335  return 0;
13336 }
13337 _ACEOF
13338 if ac_fn_c_try_link "$LINENO"; then :
13339
13340   lt_aix_libpath_sed='
13341       /Import File Strings/,/^$/ {
13342           /^0/ {
13343               s/^0  *\([^ ]*\) *$/\1/
13344               p
13345           }
13346       }'
13347   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13348   # Check for a 64-bit object if we didn't find anything.
13349   if test -z "$lt_cv_aix_libpath_"; then
13350     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13351   fi
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext \
13354     conftest$ac_exeext conftest.$ac_ext
13355   if test -z "$lt_cv_aix_libpath_"; then
13356     lt_cv_aix_libpath_=/usr/lib:/lib
13357   fi
13358
13359 fi
13360
13361   aix_libpath=$lt_cv_aix_libpath_
13362 fi
13363
13364          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13365           # Warning - without using the other run time loading flags,
13366           # -berok will link without error, but may produce a broken library.
13367           no_undefined_flag=' $wl-bernotok'
13368           allow_undefined_flag=' $wl-berok'
13369           if test yes = "$with_gnu_ld"; then
13370             # We only use this code for GNU lds that support --whole-archive.
13371             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13372           else
13373             # Exported symbols can be pulled into shared objects from archives
13374             whole_archive_flag_spec='$convenience'
13375           fi
13376           archive_cmds_need_lc=yes
13377           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13378           # -brtl affects multiple linker settings, -berok does not and is overridden later
13379           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13380           if test svr4 != "$with_aix_soname"; then
13381             # This is similar to how AIX traditionally builds its shared libraries.
13382             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'
13383           fi
13384           if test aix != "$with_aix_soname"; then
13385             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'
13386           else
13387             # used by -dlpreopen to get the symbols
13388             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13389           fi
13390           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13391         fi
13392       fi
13393       ;;
13394
13395     amigaos*)
13396       case $host_cpu in
13397       powerpc)
13398             # see comment about AmigaOS4 .so support
13399             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13400             archive_expsym_cmds=''
13401         ;;
13402       m68k)
13403             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)'
13404             hardcode_libdir_flag_spec='-L$libdir'
13405             hardcode_minus_L=yes
13406         ;;
13407       esac
13408       ;;
13409
13410     bsdi[45]*)
13411       export_dynamic_flag_spec=-rdynamic
13412       ;;
13413
13414     cygwin* | mingw* | pw32* | cegcc*)
13415       # When not using gcc, we currently assume that we are using
13416       # Microsoft Visual C++.
13417       # hardcode_libdir_flag_spec is actually meaningless, as there is
13418       # no search path for DLLs.
13419       case $cc_basename in
13420       cl*)
13421         # Native MSVC
13422         hardcode_libdir_flag_spec=' '
13423         allow_undefined_flag=unsupported
13424         always_export_symbols=yes
13425         file_list_spec='@'
13426         # Tell ltmain to make .lib files, not .a files.
13427         libext=lib
13428         # Tell ltmain to make .dll files, not .so files.
13429         shrext_cmds=.dll
13430         # FIXME: Setting linknames here is a bad hack.
13431         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13432         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13433             cp "$export_symbols" "$output_objdir/$soname.def";
13434             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13435           else
13436             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13437           fi~
13438           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13439           linknames='
13440         # The linker will not automatically build a static lib if we build a DLL.
13441         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13442         enable_shared_with_static_runtimes=yes
13443         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13444         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13445         # Don't use ranlib
13446         old_postinstall_cmds='chmod 644 $oldlib'
13447         postlink_cmds='lt_outputfile="@OUTPUT@"~
13448           lt_tool_outputfile="@TOOL_OUTPUT@"~
13449           case $lt_outputfile in
13450             *.exe|*.EXE) ;;
13451             *)
13452               lt_outputfile=$lt_outputfile.exe
13453               lt_tool_outputfile=$lt_tool_outputfile.exe
13454               ;;
13455           esac~
13456           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13457             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13458             $RM "$lt_outputfile.manifest";
13459           fi'
13460         ;;
13461       *)
13462         # Assume MSVC wrapper
13463         hardcode_libdir_flag_spec=' '
13464         allow_undefined_flag=unsupported
13465         # Tell ltmain to make .lib files, not .a files.
13466         libext=lib
13467         # Tell ltmain to make .dll files, not .so files.
13468         shrext_cmds=.dll
13469         # FIXME: Setting linknames here is a bad hack.
13470         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13471         # The linker will automatically build a .lib file if we build a DLL.
13472         old_archive_from_new_cmds='true'
13473         # FIXME: Should let the user specify the lib program.
13474         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13475         enable_shared_with_static_runtimes=yes
13476         ;;
13477       esac
13478       ;;
13479
13480     darwin* | rhapsody*)
13481
13482
13483   archive_cmds_need_lc=no
13484   hardcode_direct=no
13485   hardcode_automatic=yes
13486   hardcode_shlibpath_var=unsupported
13487   if test yes = "$lt_cv_ld_force_load"; then
13488     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\"`'
13489
13490   else
13491     whole_archive_flag_spec=''
13492   fi
13493   link_all_deplibs=yes
13494   allow_undefined_flag=$_lt_dar_allow_undefined
13495   case $cc_basename in
13496      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13497      *) _lt_dar_can_shared=$GCC ;;
13498   esac
13499   if test yes = "$_lt_dar_can_shared"; then
13500     output_verbose_link_cmd=func_echo_all
13501     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13502     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13503     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"
13504     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"
13505
13506   else
13507   ld_shlibs=no
13508   fi
13509
13510       ;;
13511
13512     dgux*)
13513       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13514       hardcode_libdir_flag_spec='-L$libdir'
13515       hardcode_shlibpath_var=no
13516       ;;
13517
13518     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13519     # support.  Future versions do this automatically, but an explicit c++rt0.o
13520     # does not break anything, and helps significantly (at the cost of a little
13521     # extra space).
13522     freebsd2.2*)
13523       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13524       hardcode_libdir_flag_spec='-R$libdir'
13525       hardcode_direct=yes
13526       hardcode_shlibpath_var=no
13527       ;;
13528
13529     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13530     freebsd2.*)
13531       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13532       hardcode_direct=yes
13533       hardcode_minus_L=yes
13534       hardcode_shlibpath_var=no
13535       ;;
13536
13537     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13538     freebsd* | dragonfly*)
13539       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13540       hardcode_libdir_flag_spec='-R$libdir'
13541       hardcode_direct=yes
13542       hardcode_shlibpath_var=no
13543       ;;
13544
13545     hpux9*)
13546       if test yes = "$GCC"; then
13547         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'
13548       else
13549         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'
13550       fi
13551       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13552       hardcode_libdir_separator=:
13553       hardcode_direct=yes
13554
13555       # hardcode_minus_L: Not really in the search PATH,
13556       # but as the default location of the library.
13557       hardcode_minus_L=yes
13558       export_dynamic_flag_spec='$wl-E'
13559       ;;
13560
13561     hpux10*)
13562       if test yes,no = "$GCC,$with_gnu_ld"; then
13563         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13564       else
13565         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13566       fi
13567       if test no = "$with_gnu_ld"; then
13568         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13569         hardcode_libdir_separator=:
13570         hardcode_direct=yes
13571         hardcode_direct_absolute=yes
13572         export_dynamic_flag_spec='$wl-E'
13573         # hardcode_minus_L: Not really in the search PATH,
13574         # but as the default location of the library.
13575         hardcode_minus_L=yes
13576       fi
13577       ;;
13578
13579     hpux11*)
13580       if test yes,no = "$GCC,$with_gnu_ld"; then
13581         case $host_cpu in
13582         hppa*64*)
13583           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13584           ;;
13585         ia64*)
13586           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13587           ;;
13588         *)
13589           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13590           ;;
13591         esac
13592       else
13593         case $host_cpu in
13594         hppa*64*)
13595           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13596           ;;
13597         ia64*)
13598           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13599           ;;
13600         *)
13601
13602           # Older versions of the 11.00 compiler do not understand -b yet
13603           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13604           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13605 $as_echo_n "checking if $CC understands -b... " >&6; }
13606 if ${lt_cv_prog_compiler__b+:} false; then :
13607   $as_echo_n "(cached) " >&6
13608 else
13609   lt_cv_prog_compiler__b=no
13610    save_LDFLAGS=$LDFLAGS
13611    LDFLAGS="$LDFLAGS -b"
13612    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13613    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13614      # The linker can only warn and ignore the option if not recognized
13615      # So say no if there are warnings
13616      if test -s conftest.err; then
13617        # Append any errors to the config.log.
13618        cat conftest.err 1>&5
13619        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13620        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13621        if diff conftest.exp conftest.er2 >/dev/null; then
13622          lt_cv_prog_compiler__b=yes
13623        fi
13624      else
13625        lt_cv_prog_compiler__b=yes
13626      fi
13627    fi
13628    $RM -r conftest*
13629    LDFLAGS=$save_LDFLAGS
13630
13631 fi
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13633 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13634
13635 if test yes = "$lt_cv_prog_compiler__b"; then
13636     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13637 else
13638     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13639 fi
13640
13641           ;;
13642         esac
13643       fi
13644       if test no = "$with_gnu_ld"; then
13645         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13646         hardcode_libdir_separator=:
13647
13648         case $host_cpu in
13649         hppa*64*|ia64*)
13650           hardcode_direct=no
13651           hardcode_shlibpath_var=no
13652           ;;
13653         *)
13654           hardcode_direct=yes
13655           hardcode_direct_absolute=yes
13656           export_dynamic_flag_spec='$wl-E'
13657
13658           # hardcode_minus_L: Not really in the search PATH,
13659           # but as the default location of the library.
13660           hardcode_minus_L=yes
13661           ;;
13662         esac
13663       fi
13664       ;;
13665
13666     irix5* | irix6* | nonstopux*)
13667       if test yes = "$GCC"; then
13668         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'
13669         # Try to use the -exported_symbol ld option, if it does not
13670         # work, assume that -exports_file does not work either and
13671         # implicitly export all symbols.
13672         # This should be the same for all languages, so no per-tag cache variable.
13673         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13674 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13675 if ${lt_cv_irix_exported_symbol+:} false; then :
13676   $as_echo_n "(cached) " >&6
13677 else
13678   save_LDFLAGS=$LDFLAGS
13679            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13680            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h.  */
13682 int foo (void) { return 0; }
13683 _ACEOF
13684 if ac_fn_c_try_link "$LINENO"; then :
13685   lt_cv_irix_exported_symbol=yes
13686 else
13687   lt_cv_irix_exported_symbol=no
13688 fi
13689 rm -f core conftest.err conftest.$ac_objext \
13690     conftest$ac_exeext conftest.$ac_ext
13691            LDFLAGS=$save_LDFLAGS
13692 fi
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13694 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13695         if test yes = "$lt_cv_irix_exported_symbol"; then
13696           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'
13697         fi
13698         link_all_deplibs=no
13699       else
13700         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'
13701         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'
13702       fi
13703       archive_cmds_need_lc='no'
13704       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13705       hardcode_libdir_separator=:
13706       inherit_rpath=yes
13707       link_all_deplibs=yes
13708       ;;
13709
13710     linux*)
13711       case $cc_basename in
13712       tcc*)
13713         # Fabrice Bellard et al's Tiny C Compiler
13714         ld_shlibs=yes
13715         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13716         ;;
13717       esac
13718       ;;
13719
13720     netbsd* | netbsdelf*-gnu)
13721       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13722         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13723       else
13724         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13725       fi
13726       hardcode_libdir_flag_spec='-R$libdir'
13727       hardcode_direct=yes
13728       hardcode_shlibpath_var=no
13729       ;;
13730
13731     newsos6)
13732       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13733       hardcode_direct=yes
13734       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13735       hardcode_libdir_separator=:
13736       hardcode_shlibpath_var=no
13737       ;;
13738
13739     *nto* | *qnx*)
13740       ;;
13741
13742     openbsd* | bitrig*)
13743       if test -f /usr/libexec/ld.so; then
13744         hardcode_direct=yes
13745         hardcode_shlibpath_var=no
13746         hardcode_direct_absolute=yes
13747         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13748           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13749           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13750           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13751           export_dynamic_flag_spec='$wl-E'
13752         else
13753           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13754           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13755         fi
13756       else
13757         ld_shlibs=no
13758       fi
13759       ;;
13760
13761     os2*)
13762       hardcode_libdir_flag_spec='-L$libdir'
13763       hardcode_minus_L=yes
13764       allow_undefined_flag=unsupported
13765       shrext_cmds=.dll
13766       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13767         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13768         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13769         $ECHO EXPORTS >> $output_objdir/$libname.def~
13770         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13771         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13772         emximp -o $lib $output_objdir/$libname.def'
13773       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13774         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13775         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13776         $ECHO EXPORTS >> $output_objdir/$libname.def~
13777         prefix_cmds="$SED"~
13778         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13779           prefix_cmds="$prefix_cmds -e 1d";
13780         fi~
13781         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13782         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13783         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13784         emximp -o $lib $output_objdir/$libname.def'
13785       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13786       enable_shared_with_static_runtimes=yes
13787       ;;
13788
13789     osf3*)
13790       if test yes = "$GCC"; then
13791         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13792         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'
13793       else
13794         allow_undefined_flag=' -expect_unresolved \*'
13795         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'
13796       fi
13797       archive_cmds_need_lc='no'
13798       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13799       hardcode_libdir_separator=:
13800       ;;
13801
13802     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13803       if test yes = "$GCC"; then
13804         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13805         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'
13806         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13807       else
13808         allow_undefined_flag=' -expect_unresolved \*'
13809         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'
13810         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~
13811           $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'
13812
13813         # Both c and cxx compiler support -rpath directly
13814         hardcode_libdir_flag_spec='-rpath $libdir'
13815       fi
13816       archive_cmds_need_lc='no'
13817       hardcode_libdir_separator=:
13818       ;;
13819
13820     solaris*)
13821       no_undefined_flag=' -z defs'
13822       if test yes = "$GCC"; then
13823         wlarc='$wl'
13824         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13825         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13826           $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'
13827       else
13828         case `$CC -V 2>&1` in
13829         *"Compilers 5.0"*)
13830           wlarc=''
13831           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13832           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13833             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13834           ;;
13835         *)
13836           wlarc='$wl'
13837           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13838           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13839             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13840           ;;
13841         esac
13842       fi
13843       hardcode_libdir_flag_spec='-R$libdir'
13844       hardcode_shlibpath_var=no
13845       case $host_os in
13846       solaris2.[0-5] | solaris2.[0-5].*) ;;
13847       *)
13848         # The compiler driver will combine and reorder linker options,
13849         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13850         # but is careful enough not to reorder.
13851         # Supported since Solaris 2.6 (maybe 2.5.1?)
13852         if test yes = "$GCC"; then
13853           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13854         else
13855           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13856         fi
13857         ;;
13858       esac
13859       link_all_deplibs=yes
13860       ;;
13861
13862     sunos4*)
13863       if test sequent = "$host_vendor"; then
13864         # Use $CC to link under sequent, because it throws in some extra .o
13865         # files that make .init and .fini sections work.
13866         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13867       else
13868         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13869       fi
13870       hardcode_libdir_flag_spec='-L$libdir'
13871       hardcode_direct=yes
13872       hardcode_minus_L=yes
13873       hardcode_shlibpath_var=no
13874       ;;
13875
13876     sysv4)
13877       case $host_vendor in
13878         sni)
13879           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13880           hardcode_direct=yes # is this really true???
13881         ;;
13882         siemens)
13883           ## LD is ld it makes a PLAMLIB
13884           ## CC just makes a GrossModule.
13885           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13886           reload_cmds='$CC -r -o $output$reload_objs'
13887           hardcode_direct=no
13888         ;;
13889         motorola)
13890           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13891           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13892         ;;
13893       esac
13894       runpath_var='LD_RUN_PATH'
13895       hardcode_shlibpath_var=no
13896       ;;
13897
13898     sysv4.3*)
13899       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13900       hardcode_shlibpath_var=no
13901       export_dynamic_flag_spec='-Bexport'
13902       ;;
13903
13904     sysv4*MP*)
13905       if test -d /usr/nec; then
13906         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13907         hardcode_shlibpath_var=no
13908         runpath_var=LD_RUN_PATH
13909         hardcode_runpath_var=yes
13910         ld_shlibs=yes
13911       fi
13912       ;;
13913
13914     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13915       no_undefined_flag='$wl-z,text'
13916       archive_cmds_need_lc=no
13917       hardcode_shlibpath_var=no
13918       runpath_var='LD_RUN_PATH'
13919
13920       if test yes = "$GCC"; then
13921         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13922         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13923       else
13924         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13925         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13926       fi
13927       ;;
13928
13929     sysv5* | sco3.2v5* | sco5v6*)
13930       # Note: We CANNOT use -z defs as we might desire, because we do not
13931       # link with -lc, and that would cause any symbols used from libc to
13932       # always be unresolved, which means just about no library would
13933       # ever link correctly.  If we're not using GNU ld we use -z text
13934       # though, which does catch some bad symbols but isn't as heavy-handed
13935       # as -z defs.
13936       no_undefined_flag='$wl-z,text'
13937       allow_undefined_flag='$wl-z,nodefs'
13938       archive_cmds_need_lc=no
13939       hardcode_shlibpath_var=no
13940       hardcode_libdir_flag_spec='$wl-R,$libdir'
13941       hardcode_libdir_separator=':'
13942       link_all_deplibs=yes
13943       export_dynamic_flag_spec='$wl-Bexport'
13944       runpath_var='LD_RUN_PATH'
13945
13946       if test yes = "$GCC"; then
13947         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13948         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13949       else
13950         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13951         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13952       fi
13953       ;;
13954
13955     uts4*)
13956       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13957       hardcode_libdir_flag_spec='-L$libdir'
13958       hardcode_shlibpath_var=no
13959       ;;
13960
13961     *)
13962       ld_shlibs=no
13963       ;;
13964     esac
13965
13966     if test sni = "$host_vendor"; then
13967       case $host in
13968       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13969         export_dynamic_flag_spec='$wl-Blargedynsym'
13970         ;;
13971       esac
13972     fi
13973   fi
13974
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13976 $as_echo "$ld_shlibs" >&6; }
13977 test no = "$ld_shlibs" && can_build_shared=no
13978
13979 with_gnu_ld=$with_gnu_ld
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995 #
13996 # Do we need to explicitly link libc?
13997 #
13998 case "x$archive_cmds_need_lc" in
13999 x|xyes)
14000   # Assume -lc should be added
14001   archive_cmds_need_lc=yes
14002
14003   if test yes,yes = "$GCC,$enable_shared"; then
14004     case $archive_cmds in
14005     *'~'*)
14006       # FIXME: we may have to deal with multi-command sequences.
14007       ;;
14008     '$CC '*)
14009       # Test whether the compiler implicitly links with -lc since on some
14010       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14011       # to ld, don't add -lc before -lgcc.
14012       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14013 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14014 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14015   $as_echo_n "(cached) " >&6
14016 else
14017   $RM conftest*
14018         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14019
14020         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14021   (eval $ac_compile) 2>&5
14022   ac_status=$?
14023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14024   test $ac_status = 0; } 2>conftest.err; then
14025           soname=conftest
14026           lib=conftest
14027           libobjs=conftest.$ac_objext
14028           deplibs=
14029           wl=$lt_prog_compiler_wl
14030           pic_flag=$lt_prog_compiler_pic
14031           compiler_flags=-v
14032           linker_flags=-v
14033           verstring=
14034           output_objdir=.
14035           libname=conftest
14036           lt_save_allow_undefined_flag=$allow_undefined_flag
14037           allow_undefined_flag=
14038           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14039   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14040   ac_status=$?
14041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14042   test $ac_status = 0; }
14043           then
14044             lt_cv_archive_cmds_need_lc=no
14045           else
14046             lt_cv_archive_cmds_need_lc=yes
14047           fi
14048           allow_undefined_flag=$lt_save_allow_undefined_flag
14049         else
14050           cat conftest.err 1>&5
14051         fi
14052         $RM conftest*
14053
14054 fi
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14056 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14057       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14058       ;;
14059     esac
14060   fi
14061   ;;
14062 esac
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14216 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14217
14218 if test yes = "$GCC"; then
14219   case $host_os in
14220     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14221     *) lt_awk_arg='/^libraries:/' ;;
14222   esac
14223   case $host_os in
14224     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14225     *) lt_sed_strip_eq='s|=/|/|g' ;;
14226   esac
14227   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14228   case $lt_search_path_spec in
14229   *\;*)
14230     # if the path contains ";" then we assume it to be the separator
14231     # otherwise default to the standard path separator (i.e. ":") - it is
14232     # assumed that no part of a normal pathname contains ";" but that should
14233     # okay in the real world where ";" in dirpaths is itself problematic.
14234     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14235     ;;
14236   *)
14237     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14238     ;;
14239   esac
14240   # Ok, now we have the path, separated by spaces, we can step through it
14241   # and add multilib dir if necessary...
14242   lt_tmp_lt_search_path_spec=
14243   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14244   # ...but if some path component already ends with the multilib dir we assume
14245   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14246   case "$lt_multi_os_dir; $lt_search_path_spec " in
14247   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14248     lt_multi_os_dir=
14249     ;;
14250   esac
14251   for lt_sys_path in $lt_search_path_spec; do
14252     if test -d "$lt_sys_path$lt_multi_os_dir"; then
14253       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14254     elif test -n "$lt_multi_os_dir"; then
14255       test -d "$lt_sys_path" && \
14256         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14257     fi
14258   done
14259   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14260 BEGIN {RS = " "; FS = "/|\n";} {
14261   lt_foo = "";
14262   lt_count = 0;
14263   for (lt_i = NF; lt_i > 0; lt_i--) {
14264     if ($lt_i != "" && $lt_i != ".") {
14265       if ($lt_i == "..") {
14266         lt_count++;
14267       } else {
14268         if (lt_count == 0) {
14269           lt_foo = "/" $lt_i lt_foo;
14270         } else {
14271           lt_count--;
14272         }
14273       }
14274     }
14275   }
14276   if (lt_foo != "") { lt_freq[lt_foo]++; }
14277   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14278 }'`
14279   # AWK program above erroneously prepends '/' to C:/dos/paths
14280   # for these hosts.
14281   case $host_os in
14282     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14283       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14284   esac
14285   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14286 else
14287   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14288 fi
14289 library_names_spec=
14290 libname_spec='lib$name'
14291 soname_spec=
14292 shrext_cmds=.so
14293 postinstall_cmds=
14294 postuninstall_cmds=
14295 finish_cmds=
14296 finish_eval=
14297 shlibpath_var=
14298 shlibpath_overrides_runpath=unknown
14299 version_type=none
14300 dynamic_linker="$host_os ld.so"
14301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14302 need_lib_prefix=unknown
14303 hardcode_into_libs=no
14304
14305 # when you set need_version to no, make sure it does not cause -set_version
14306 # flags to be left without arguments
14307 need_version=unknown
14308
14309
14310
14311 case $host_os in
14312 aix3*)
14313   version_type=linux # correct to gnu/linux during the next big refactor
14314   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14315   shlibpath_var=LIBPATH
14316
14317   # AIX 3 has no versioning support, so we append a major version to the name.
14318   soname_spec='$libname$release$shared_ext$major'
14319   ;;
14320
14321 aix[4-9]*)
14322   version_type=linux # correct to gnu/linux during the next big refactor
14323   need_lib_prefix=no
14324   need_version=no
14325   hardcode_into_libs=yes
14326   if test ia64 = "$host_cpu"; then
14327     # AIX 5 supports IA64
14328     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14329     shlibpath_var=LD_LIBRARY_PATH
14330   else
14331     # With GCC up to 2.95.x, collect2 would create an import file
14332     # for dependence libraries.  The import file would start with
14333     # the line '#! .'.  This would cause the generated library to
14334     # depend on '.', always an invalid library.  This was fixed in
14335     # development snapshots of GCC prior to 3.0.
14336     case $host_os in
14337       aix4 | aix4.[01] | aix4.[01].*)
14338       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14339            echo ' yes '
14340            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14341         :
14342       else
14343         can_build_shared=no
14344       fi
14345       ;;
14346     esac
14347     # Using Import Files as archive members, it is possible to support
14348     # filename-based versioning of shared library archives on AIX. While
14349     # this would work for both with and without runtime linking, it will
14350     # prevent static linking of such archives. So we do filename-based
14351     # shared library versioning with .so extension only, which is used
14352     # when both runtime linking and shared linking is enabled.
14353     # Unfortunately, runtime linking may impact performance, so we do
14354     # not want this to be the default eventually. Also, we use the
14355     # versioned .so libs for executables only if there is the -brtl
14356     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14357     # To allow for filename-based versioning support, we need to create
14358     # libNAME.so.V as an archive file, containing:
14359     # *) an Import File, referring to the versioned filename of the
14360     #    archive as well as the shared archive member, telling the
14361     #    bitwidth (32 or 64) of that shared object, and providing the
14362     #    list of exported symbols of that shared object, eventually
14363     #    decorated with the 'weak' keyword
14364     # *) the shared object with the F_LOADONLY flag set, to really avoid
14365     #    it being seen by the linker.
14366     # At run time we better use the real file rather than another symlink,
14367     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14368
14369     case $with_aix_soname,$aix_use_runtimelinking in
14370     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14371     # soname into executable. Probably we can add versioning support to
14372     # collect2, so additional links can be useful in future.
14373     aix,yes) # traditional libtool
14374       dynamic_linker='AIX unversionable lib.so'
14375       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14376       # instead of lib<name>.a to let people know that these are not
14377       # typical AIX shared libraries.
14378       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14379       ;;
14380     aix,no) # traditional AIX only
14381       dynamic_linker='AIX lib.a(lib.so.V)'
14382       # We preserve .a as extension for shared libraries through AIX4.2
14383       # and later when we are not doing run time linking.
14384       library_names_spec='$libname$release.a $libname.a'
14385       soname_spec='$libname$release$shared_ext$major'
14386       ;;
14387     svr4,*) # full svr4 only
14388       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14389       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14390       # We do not specify a path in Import Files, so LIBPATH fires.
14391       shlibpath_overrides_runpath=yes
14392       ;;
14393     *,yes) # both, prefer svr4
14394       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14395       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14396       # unpreferred sharedlib libNAME.a needs extra handling
14397       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"'
14398       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"'
14399       # We do not specify a path in Import Files, so LIBPATH fires.
14400       shlibpath_overrides_runpath=yes
14401       ;;
14402     *,no) # both, prefer aix
14403       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14404       library_names_spec='$libname$release.a $libname.a'
14405       soname_spec='$libname$release$shared_ext$major'
14406       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14407       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)'
14408       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"'
14409       ;;
14410     esac
14411     shlibpath_var=LIBPATH
14412   fi
14413   ;;
14414
14415 amigaos*)
14416   case $host_cpu in
14417   powerpc)
14418     # Since July 2007 AmigaOS4 officially supports .so libraries.
14419     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14420     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14421     ;;
14422   m68k)
14423     library_names_spec='$libname.ixlibrary $libname.a'
14424     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14425     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'
14426     ;;
14427   esac
14428   ;;
14429
14430 beos*)
14431   library_names_spec='$libname$shared_ext'
14432   dynamic_linker="$host_os ld.so"
14433   shlibpath_var=LIBRARY_PATH
14434   ;;
14435
14436 bsdi[45]*)
14437   version_type=linux # correct to gnu/linux during the next big refactor
14438   need_version=no
14439   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14440   soname_spec='$libname$release$shared_ext$major'
14441   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14442   shlibpath_var=LD_LIBRARY_PATH
14443   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14444   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14445   # the default ld.so.conf also contains /usr/contrib/lib and
14446   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14447   # libtool to hard-code these into programs
14448   ;;
14449
14450 cygwin* | mingw* | pw32* | cegcc*)
14451   version_type=windows
14452   shrext_cmds=.dll
14453   need_version=no
14454   need_lib_prefix=no
14455
14456   case $GCC,$cc_basename in
14457   yes,*)
14458     # gcc
14459     library_names_spec='$libname.dll.a'
14460     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14461     postinstall_cmds='base_file=`basename \$file`~
14462       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14463       dldir=$destdir/`dirname \$dlpath`~
14464       test -d \$dldir || mkdir -p \$dldir~
14465       $install_prog $dir/$dlname \$dldir/$dlname~
14466       chmod a+x \$dldir/$dlname~
14467       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14468         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14469       fi'
14470     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14471       dlpath=$dir/\$dldll~
14472        $RM \$dlpath'
14473     shlibpath_overrides_runpath=yes
14474
14475     case $host_os in
14476     cygwin*)
14477       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14478       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14479
14480       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14481       ;;
14482     mingw* | cegcc*)
14483       # MinGW DLLs use traditional 'lib' prefix
14484       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14485       ;;
14486     pw32*)
14487       # pw32 DLLs use 'pw' prefix rather than 'lib'
14488       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14489       ;;
14490     esac
14491     dynamic_linker='Win32 ld.exe'
14492     ;;
14493
14494   *,cl*)
14495     # Native MSVC
14496     libname_spec='$name'
14497     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14498     library_names_spec='$libname.dll.lib'
14499
14500     case $build_os in
14501     mingw*)
14502       sys_lib_search_path_spec=
14503       lt_save_ifs=$IFS
14504       IFS=';'
14505       for lt_path in $LIB
14506       do
14507         IFS=$lt_save_ifs
14508         # Let DOS variable expansion print the short 8.3 style file name.
14509         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14510         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14511       done
14512       IFS=$lt_save_ifs
14513       # Convert to MSYS style.
14514       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14515       ;;
14516     cygwin*)
14517       # Convert to unix form, then to dos form, then back to unix form
14518       # but this time dos style (no spaces!) so that the unix form looks
14519       # like /cygdrive/c/PROGRA~1:/cygdr...
14520       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14521       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14522       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14523       ;;
14524     *)
14525       sys_lib_search_path_spec=$LIB
14526       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14527         # It is most probably a Windows format PATH.
14528         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14529       else
14530         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14531       fi
14532       # FIXME: find the short name or the path components, as spaces are
14533       # common. (e.g. "Program Files" -> "PROGRA~1")
14534       ;;
14535     esac
14536
14537     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14538     postinstall_cmds='base_file=`basename \$file`~
14539       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14540       dldir=$destdir/`dirname \$dlpath`~
14541       test -d \$dldir || mkdir -p \$dldir~
14542       $install_prog $dir/$dlname \$dldir/$dlname'
14543     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14544       dlpath=$dir/\$dldll~
14545        $RM \$dlpath'
14546     shlibpath_overrides_runpath=yes
14547     dynamic_linker='Win32 link.exe'
14548     ;;
14549
14550   *)
14551     # Assume MSVC wrapper
14552     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14553     dynamic_linker='Win32 ld.exe'
14554     ;;
14555   esac
14556   # FIXME: first we should search . and the directory the executable is in
14557   shlibpath_var=PATH
14558   ;;
14559
14560 darwin* | rhapsody*)
14561   dynamic_linker="$host_os dyld"
14562   version_type=darwin
14563   need_lib_prefix=no
14564   need_version=no
14565   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14566   soname_spec='$libname$release$major$shared_ext'
14567   shlibpath_overrides_runpath=yes
14568   shlibpath_var=DYLD_LIBRARY_PATH
14569   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14570
14571   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14572   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14573   ;;
14574
14575 dgux*)
14576   version_type=linux # correct to gnu/linux during the next big refactor
14577   need_lib_prefix=no
14578   need_version=no
14579   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14580   soname_spec='$libname$release$shared_ext$major'
14581   shlibpath_var=LD_LIBRARY_PATH
14582   ;;
14583
14584 freebsd* | dragonfly*)
14585   # DragonFly does not have aout.  When/if they implement a new
14586   # versioning mechanism, adjust this.
14587   if test -x /usr/bin/objformat; then
14588     objformat=`/usr/bin/objformat`
14589   else
14590     case $host_os in
14591     freebsd[23].*) objformat=aout ;;
14592     *) objformat=elf ;;
14593     esac
14594   fi
14595   version_type=freebsd-$objformat
14596   case $version_type in
14597     freebsd-elf*)
14598       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14599       soname_spec='$libname$release$shared_ext$major'
14600       need_version=no
14601       need_lib_prefix=no
14602       ;;
14603     freebsd-*)
14604       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14605       need_version=yes
14606       ;;
14607   esac
14608   shlibpath_var=LD_LIBRARY_PATH
14609   case $host_os in
14610   freebsd2.*)
14611     shlibpath_overrides_runpath=yes
14612     ;;
14613   freebsd3.[01]* | freebsdelf3.[01]*)
14614     shlibpath_overrides_runpath=yes
14615     hardcode_into_libs=yes
14616     ;;
14617   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14618   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14619     shlibpath_overrides_runpath=no
14620     hardcode_into_libs=yes
14621     ;;
14622   *) # from 4.6 on, and DragonFly
14623     shlibpath_overrides_runpath=yes
14624     hardcode_into_libs=yes
14625     ;;
14626   esac
14627   ;;
14628
14629 haiku*)
14630   version_type=linux # correct to gnu/linux during the next big refactor
14631   need_lib_prefix=no
14632   need_version=no
14633   dynamic_linker="$host_os runtime_loader"
14634   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14635   soname_spec='$libname$release$shared_ext$major'
14636   shlibpath_var=LIBRARY_PATH
14637   shlibpath_overrides_runpath=no
14638   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14639   hardcode_into_libs=yes
14640   ;;
14641
14642 hpux9* | hpux10* | hpux11*)
14643   # Give a soname corresponding to the major version so that dld.sl refuses to
14644   # link against other versions.
14645   version_type=sunos
14646   need_lib_prefix=no
14647   need_version=no
14648   case $host_cpu in
14649   ia64*)
14650     shrext_cmds='.so'
14651     hardcode_into_libs=yes
14652     dynamic_linker="$host_os dld.so"
14653     shlibpath_var=LD_LIBRARY_PATH
14654     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14655     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14656     soname_spec='$libname$release$shared_ext$major'
14657     if test 32 = "$HPUX_IA64_MODE"; then
14658       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14659       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14660     else
14661       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14662       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14663     fi
14664     ;;
14665   hppa*64*)
14666     shrext_cmds='.sl'
14667     hardcode_into_libs=yes
14668     dynamic_linker="$host_os dld.sl"
14669     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14670     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14671     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14672     soname_spec='$libname$release$shared_ext$major'
14673     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14674     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14675     ;;
14676   *)
14677     shrext_cmds='.sl'
14678     dynamic_linker="$host_os dld.sl"
14679     shlibpath_var=SHLIB_PATH
14680     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
14684   esac
14685   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14686   postinstall_cmds='chmod 555 $lib'
14687   # or fails outright, so override atomically:
14688   install_override_mode=555
14689   ;;
14690
14691 interix[3-9]*)
14692   version_type=linux # correct to gnu/linux during the next big refactor
14693   need_lib_prefix=no
14694   need_version=no
14695   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14696   soname_spec='$libname$release$shared_ext$major'
14697   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14698   shlibpath_var=LD_LIBRARY_PATH
14699   shlibpath_overrides_runpath=no
14700   hardcode_into_libs=yes
14701   ;;
14702
14703 irix5* | irix6* | nonstopux*)
14704   case $host_os in
14705     nonstopux*) version_type=nonstopux ;;
14706     *)
14707         if test yes = "$lt_cv_prog_gnu_ld"; then
14708                 version_type=linux # correct to gnu/linux during the next big refactor
14709         else
14710                 version_type=irix
14711         fi ;;
14712   esac
14713   need_lib_prefix=no
14714   need_version=no
14715   soname_spec='$libname$release$shared_ext$major'
14716   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14717   case $host_os in
14718   irix5* | nonstopux*)
14719     libsuff= shlibsuff=
14720     ;;
14721   *)
14722     case $LD in # libtool.m4 will add one of these switches to LD
14723     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14724       libsuff= shlibsuff= libmagic=32-bit;;
14725     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14726       libsuff=32 shlibsuff=N32 libmagic=N32;;
14727     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14728       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14729     *) libsuff= shlibsuff= libmagic=never-match;;
14730     esac
14731     ;;
14732   esac
14733   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14734   shlibpath_overrides_runpath=no
14735   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14736   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14737   hardcode_into_libs=yes
14738   ;;
14739
14740 # No shared lib support for Linux oldld, aout, or coff.
14741 linux*oldld* | linux*aout* | linux*coff*)
14742   dynamic_linker=no
14743   ;;
14744
14745 linux*android*)
14746   version_type=none # Android doesn't support versioned libraries.
14747   need_lib_prefix=no
14748   need_version=no
14749   library_names_spec='$libname$release$shared_ext'
14750   soname_spec='$libname$release$shared_ext'
14751   finish_cmds=
14752   shlibpath_var=LD_LIBRARY_PATH
14753   shlibpath_overrides_runpath=yes
14754
14755   # This implies no fast_install, which is unacceptable.
14756   # Some rework will be needed to allow for fast_install
14757   # before this can be enabled.
14758   hardcode_into_libs=yes
14759
14760   dynamic_linker='Android linker'
14761   # Don't embed -rpath directories since the linker doesn't support them.
14762   hardcode_libdir_flag_spec='-L$libdir'
14763   ;;
14764
14765 # This must be glibc/ELF.
14766 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14767   version_type=linux # correct to gnu/linux during the next big refactor
14768   need_lib_prefix=no
14769   need_version=no
14770   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14771   soname_spec='$libname$release$shared_ext$major'
14772   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14773   shlibpath_var=LD_LIBRARY_PATH
14774   shlibpath_overrides_runpath=no
14775
14776   # Some binutils ld are patched to set DT_RUNPATH
14777   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14778   $as_echo_n "(cached) " >&6
14779 else
14780   lt_cv_shlibpath_overrides_runpath=no
14781     save_LDFLAGS=$LDFLAGS
14782     save_libdir=$libdir
14783     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14784          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14785     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h.  */
14787
14788 int main (void)
14789 {
14790
14791  ;
14792  return 0;
14793 }
14794 _ACEOF
14795 if ac_fn_c_try_link "$LINENO"; then :
14796   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14797   lt_cv_shlibpath_overrides_runpath=yes
14798 fi
14799 fi
14800 rm -f core conftest.err conftest.$ac_objext \
14801     conftest$ac_exeext conftest.$ac_ext
14802     LDFLAGS=$save_LDFLAGS
14803     libdir=$save_libdir
14804
14805 fi
14806
14807   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14808
14809   # This implies no fast_install, which is unacceptable.
14810   # Some rework will be needed to allow for fast_install
14811   # before this can be enabled.
14812   hardcode_into_libs=yes
14813
14814   # Ideally, we could use ldconfig to report *all* directores which are
14815   # searched for libraries, however this is still not possible.  Aside from not
14816   # being certain /sbin/ldconfig is available, command
14817   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14818   # even though it is searched at run-time.  Try to do the best guess by
14819   # appending ld.so.conf contents (and includes) to the search path.
14820   if test -f /etc/ld.so.conf; then
14821     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' ' '`
14822     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14823   fi
14824
14825   # We used to test for /lib/ld.so.1 and disable shared libraries on
14826   # powerpc, because MkLinux only supported shared libraries with the
14827   # GNU dynamic linker.  Since this was broken with cross compilers,
14828   # most powerpc-linux boxes support dynamic linking these days and
14829   # people can always --disable-shared, the test was removed, and we
14830   # assume the GNU/Linux dynamic linker is in use.
14831   dynamic_linker='GNU/Linux ld.so'
14832   ;;
14833
14834 netbsdelf*-gnu)
14835   version_type=linux
14836   need_lib_prefix=no
14837   need_version=no
14838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14839   soname_spec='${libname}${release}${shared_ext}$major'
14840   shlibpath_var=LD_LIBRARY_PATH
14841   shlibpath_overrides_runpath=no
14842   hardcode_into_libs=yes
14843   dynamic_linker='NetBSD ld.elf_so'
14844   ;;
14845
14846 netbsd*)
14847   version_type=sunos
14848   need_lib_prefix=no
14849   need_version=no
14850   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14851     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14852     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14853     dynamic_linker='NetBSD (a.out) ld.so'
14854   else
14855     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14856     soname_spec='$libname$release$shared_ext$major'
14857     dynamic_linker='NetBSD ld.elf_so'
14858   fi
14859   shlibpath_var=LD_LIBRARY_PATH
14860   shlibpath_overrides_runpath=yes
14861   hardcode_into_libs=yes
14862   ;;
14863
14864 newsos6)
14865   version_type=linux # correct to gnu/linux during the next big refactor
14866   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14867   shlibpath_var=LD_LIBRARY_PATH
14868   shlibpath_overrides_runpath=yes
14869   ;;
14870
14871 *nto* | *qnx*)
14872   version_type=qnx
14873   need_lib_prefix=no
14874   need_version=no
14875   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14876   soname_spec='$libname$release$shared_ext$major'
14877   shlibpath_var=LD_LIBRARY_PATH
14878   shlibpath_overrides_runpath=no
14879   hardcode_into_libs=yes
14880   dynamic_linker='ldqnx.so'
14881   ;;
14882
14883 openbsd* | bitrig*)
14884   version_type=sunos
14885   sys_lib_dlsearch_path_spec=/usr/lib
14886   need_lib_prefix=no
14887   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14888     need_version=no
14889   else
14890     need_version=yes
14891   fi
14892   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14893   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14894   shlibpath_var=LD_LIBRARY_PATH
14895   shlibpath_overrides_runpath=yes
14896   ;;
14897
14898 os2*)
14899   libname_spec='$name'
14900   version_type=windows
14901   shrext_cmds=.dll
14902   need_version=no
14903   need_lib_prefix=no
14904   # OS/2 can only load a DLL with a base name of 8 characters or less.
14905   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14906     v=$($ECHO $release$versuffix | tr -d .-);
14907     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14908     $ECHO $n$v`$shared_ext'
14909   library_names_spec='${libname}_dll.$libext'
14910   dynamic_linker='OS/2 ld.exe'
14911   shlibpath_var=BEGINLIBPATH
14912   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14913   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14914   postinstall_cmds='base_file=`basename \$file`~
14915     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14916     dldir=$destdir/`dirname \$dlpath`~
14917     test -d \$dldir || mkdir -p \$dldir~
14918     $install_prog $dir/$dlname \$dldir/$dlname~
14919     chmod a+x \$dldir/$dlname~
14920     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14921       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14922     fi'
14923   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14924     dlpath=$dir/\$dldll~
14925     $RM \$dlpath'
14926   ;;
14927
14928 osf3* | osf4* | osf5*)
14929   version_type=osf
14930   need_lib_prefix=no
14931   need_version=no
14932   soname_spec='$libname$release$shared_ext$major'
14933   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14934   shlibpath_var=LD_LIBRARY_PATH
14935   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14936   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14937   ;;
14938
14939 rdos*)
14940   dynamic_linker=no
14941   ;;
14942
14943 solaris*)
14944   version_type=linux # correct to gnu/linux during the next big refactor
14945   need_lib_prefix=no
14946   need_version=no
14947   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14948   soname_spec='$libname$release$shared_ext$major'
14949   shlibpath_var=LD_LIBRARY_PATH
14950   shlibpath_overrides_runpath=yes
14951   hardcode_into_libs=yes
14952   # ldd complains unless libraries are executable
14953   postinstall_cmds='chmod +x $lib'
14954   ;;
14955
14956 sunos4*)
14957   version_type=sunos
14958   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14959   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14960   shlibpath_var=LD_LIBRARY_PATH
14961   shlibpath_overrides_runpath=yes
14962   if test yes = "$with_gnu_ld"; then
14963     need_lib_prefix=no
14964   fi
14965   need_version=yes
14966   ;;
14967
14968 sysv4 | sysv4.3*)
14969   version_type=linux # correct to gnu/linux during the next big refactor
14970   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14971   soname_spec='$libname$release$shared_ext$major'
14972   shlibpath_var=LD_LIBRARY_PATH
14973   case $host_vendor in
14974     sni)
14975       shlibpath_overrides_runpath=no
14976       need_lib_prefix=no
14977       runpath_var=LD_RUN_PATH
14978       ;;
14979     siemens)
14980       need_lib_prefix=no
14981       ;;
14982     motorola)
14983       need_lib_prefix=no
14984       need_version=no
14985       shlibpath_overrides_runpath=no
14986       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14987       ;;
14988   esac
14989   ;;
14990
14991 sysv4*MP*)
14992   if test -d /usr/nec; then
14993     version_type=linux # correct to gnu/linux during the next big refactor
14994     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14995     soname_spec='$libname$shared_ext.$major'
14996     shlibpath_var=LD_LIBRARY_PATH
14997   fi
14998   ;;
14999
15000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15001   version_type=sco
15002   need_lib_prefix=no
15003   need_version=no
15004   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15005   soname_spec='$libname$release$shared_ext$major'
15006   shlibpath_var=LD_LIBRARY_PATH
15007   shlibpath_overrides_runpath=yes
15008   hardcode_into_libs=yes
15009   if test yes = "$with_gnu_ld"; then
15010     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15011   else
15012     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15013     case $host_os in
15014       sco3.2v5*)
15015         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15016         ;;
15017     esac
15018   fi
15019   sys_lib_dlsearch_path_spec='/usr/lib'
15020   ;;
15021
15022 tpf*)
15023   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15024   version_type=linux # correct to gnu/linux during the next big refactor
15025   need_lib_prefix=no
15026   need_version=no
15027   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15028   shlibpath_var=LD_LIBRARY_PATH
15029   shlibpath_overrides_runpath=no
15030   hardcode_into_libs=yes
15031   ;;
15032
15033 uts4*)
15034   version_type=linux # correct to gnu/linux during the next big refactor
15035   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15036   soname_spec='$libname$release$shared_ext$major'
15037   shlibpath_var=LD_LIBRARY_PATH
15038   ;;
15039
15040 *)
15041   dynamic_linker=no
15042   ;;
15043 esac
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15045 $as_echo "$dynamic_linker" >&6; }
15046 test no = "$dynamic_linker" && can_build_shared=no
15047
15048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15049 if test yes = "$GCC"; then
15050   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15051 fi
15052
15053 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15054   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15055 fi
15056
15057 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15058   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15059 fi
15060
15061 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15062 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15063
15064 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15065 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15066
15067 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15068 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15167 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15168 hardcode_action=
15169 if test -n "$hardcode_libdir_flag_spec" ||
15170    test -n "$runpath_var" ||
15171    test yes = "$hardcode_automatic"; then
15172
15173   # We can hardcode non-existent directories.
15174   if test no != "$hardcode_direct" &&
15175      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15176      # have to relink, otherwise we might link with an installed library
15177      # when we should be linking with a yet-to-be-installed one
15178      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15179      test no != "$hardcode_minus_L"; then
15180     # Linking always hardcodes the temporary library directory.
15181     hardcode_action=relink
15182   else
15183     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15184     hardcode_action=immediate
15185   fi
15186 else
15187   # We cannot hardcode anything, or else we can only hardcode existing
15188   # directories.
15189   hardcode_action=unsupported
15190 fi
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15192 $as_echo "$hardcode_action" >&6; }
15193
15194 if test relink = "$hardcode_action" ||
15195    test yes = "$inherit_rpath"; then
15196   # Fast installation is not supported
15197   enable_fast_install=no
15198 elif test yes = "$shlibpath_overrides_runpath" ||
15199      test no = "$enable_shared"; then
15200   # Fast installation is not necessary
15201   enable_fast_install=needless
15202 fi
15203
15204
15205
15206
15207
15208
15209   if test yes != "$enable_dlopen"; then
15210   enable_dlopen=unknown
15211   enable_dlopen_self=unknown
15212   enable_dlopen_self_static=unknown
15213 else
15214   lt_cv_dlopen=no
15215   lt_cv_dlopen_libs=
15216
15217   case $host_os in
15218   beos*)
15219     lt_cv_dlopen=load_add_on
15220     lt_cv_dlopen_libs=
15221     lt_cv_dlopen_self=yes
15222     ;;
15223
15224   mingw* | pw32* | cegcc*)
15225     lt_cv_dlopen=LoadLibrary
15226     lt_cv_dlopen_libs=
15227     ;;
15228
15229   cygwin*)
15230     lt_cv_dlopen=dlopen
15231     lt_cv_dlopen_libs=
15232     ;;
15233
15234   darwin*)
15235     # if libdl is installed we need to link against it
15236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15237 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15238 if ${ac_cv_lib_dl_dlopen+:} false; then :
15239   $as_echo_n "(cached) " >&6
15240 else
15241   ac_check_lib_save_LIBS=$LIBS
15242 LIBS="-ldl  $LIBS"
15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h.  */
15245
15246
15247 #ifdef __cplusplus
15248 extern "C"
15249 #endif
15250 char dlopen ();
15251 int main (void)
15252 {
15253 return dlopen ();
15254  ;
15255  return 0;
15256 }
15257 _ACEOF
15258 if ac_fn_c_try_link "$LINENO"; then :
15259   ac_cv_lib_dl_dlopen=yes
15260 else
15261   ac_cv_lib_dl_dlopen=no
15262 fi
15263 rm -f core conftest.err conftest.$ac_objext \
15264     conftest$ac_exeext conftest.$ac_ext
15265 LIBS=$ac_check_lib_save_LIBS
15266 fi
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15268 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15269 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15270   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15271 else
15272
15273     lt_cv_dlopen=dyld
15274     lt_cv_dlopen_libs=
15275     lt_cv_dlopen_self=yes
15276
15277 fi
15278
15279     ;;
15280
15281   tpf*)
15282     # Don't try to run any link tests for TPF.  We know it's impossible
15283     # because TPF is a cross-compiler, and we know how we open DSOs.
15284     lt_cv_dlopen=dlopen
15285     lt_cv_dlopen_libs=
15286     lt_cv_dlopen_self=no
15287     ;;
15288
15289   *)
15290     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15291 if test "x$ac_cv_func_shl_load" = xyes; then :
15292   lt_cv_dlopen=shl_load
15293 else
15294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15295 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15296 if ${ac_cv_lib_dld_shl_load+:} false; then :
15297   $as_echo_n "(cached) " >&6
15298 else
15299   ac_check_lib_save_LIBS=$LIBS
15300 LIBS="-ldld  $LIBS"
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h.  */
15303
15304
15305 #ifdef __cplusplus
15306 extern "C"
15307 #endif
15308 char shl_load ();
15309 int main (void)
15310 {
15311 return shl_load ();
15312  ;
15313  return 0;
15314 }
15315 _ACEOF
15316 if ac_fn_c_try_link "$LINENO"; then :
15317   ac_cv_lib_dld_shl_load=yes
15318 else
15319   ac_cv_lib_dld_shl_load=no
15320 fi
15321 rm -f core conftest.err conftest.$ac_objext \
15322     conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15324 fi
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15326 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15327 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15328   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15329 else
15330   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15331 if test "x$ac_cv_func_dlopen" = xyes; then :
15332   lt_cv_dlopen=dlopen
15333 else
15334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15335 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15336 if ${ac_cv_lib_dl_dlopen+:} false; then :
15337   $as_echo_n "(cached) " >&6
15338 else
15339   ac_check_lib_save_LIBS=$LIBS
15340 LIBS="-ldl  $LIBS"
15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h.  */
15343
15344
15345 #ifdef __cplusplus
15346 extern "C"
15347 #endif
15348 char dlopen ();
15349 int main (void)
15350 {
15351 return dlopen ();
15352  ;
15353  return 0;
15354 }
15355 _ACEOF
15356 if ac_fn_c_try_link "$LINENO"; then :
15357   ac_cv_lib_dl_dlopen=yes
15358 else
15359   ac_cv_lib_dl_dlopen=no
15360 fi
15361 rm -f core conftest.err conftest.$ac_objext \
15362     conftest$ac_exeext conftest.$ac_ext
15363 LIBS=$ac_check_lib_save_LIBS
15364 fi
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15366 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15367 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15368   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15369 else
15370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15371 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15372 if ${ac_cv_lib_svld_dlopen+:} false; then :
15373   $as_echo_n "(cached) " >&6
15374 else
15375   ac_check_lib_save_LIBS=$LIBS
15376 LIBS="-lsvld  $LIBS"
15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h.  */
15379
15380
15381 #ifdef __cplusplus
15382 extern "C"
15383 #endif
15384 char dlopen ();
15385 int main (void)
15386 {
15387 return dlopen ();
15388  ;
15389  return 0;
15390 }
15391 _ACEOF
15392 if ac_fn_c_try_link "$LINENO"; then :
15393   ac_cv_lib_svld_dlopen=yes
15394 else
15395   ac_cv_lib_svld_dlopen=no
15396 fi
15397 rm -f core conftest.err conftest.$ac_objext \
15398     conftest$ac_exeext conftest.$ac_ext
15399 LIBS=$ac_check_lib_save_LIBS
15400 fi
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15402 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15403 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15404   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15405 else
15406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15407 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15408 if ${ac_cv_lib_dld_dld_link+:} false; then :
15409   $as_echo_n "(cached) " >&6
15410 else
15411   ac_check_lib_save_LIBS=$LIBS
15412 LIBS="-ldld  $LIBS"
15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h.  */
15415
15416
15417 #ifdef __cplusplus
15418 extern "C"
15419 #endif
15420 char dld_link ();
15421 int main (void)
15422 {
15423 return dld_link ();
15424  ;
15425  return 0;
15426 }
15427 _ACEOF
15428 if ac_fn_c_try_link "$LINENO"; then :
15429   ac_cv_lib_dld_dld_link=yes
15430 else
15431   ac_cv_lib_dld_dld_link=no
15432 fi
15433 rm -f core conftest.err conftest.$ac_objext \
15434     conftest$ac_exeext conftest.$ac_ext
15435 LIBS=$ac_check_lib_save_LIBS
15436 fi
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15438 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15439 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15440   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15441 fi
15442
15443
15444 fi
15445
15446
15447 fi
15448
15449
15450 fi
15451
15452
15453 fi
15454
15455
15456 fi
15457
15458     ;;
15459   esac
15460
15461   if test no = "$lt_cv_dlopen"; then
15462     enable_dlopen=no
15463   else
15464     enable_dlopen=yes
15465   fi
15466
15467   case $lt_cv_dlopen in
15468   dlopen)
15469     save_CPPFLAGS=$CPPFLAGS
15470     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15471
15472     save_LDFLAGS=$LDFLAGS
15473     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15474
15475     save_LIBS=$LIBS
15476     LIBS="$lt_cv_dlopen_libs $LIBS"
15477
15478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15479 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15480 if ${lt_cv_dlopen_self+:} false; then :
15481   $as_echo_n "(cached) " >&6
15482 else
15483           if test yes = "$cross_compiling"; then :
15484   lt_cv_dlopen_self=cross
15485 else
15486   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15487   lt_status=$lt_dlunknown
15488   cat > conftest.$ac_ext <<_LT_EOF
15489 #line $LINENO "configure"
15490 #include "confdefs.h"
15491
15492 #if HAVE_DLFCN_H
15493 #include <dlfcn.h>
15494 #endif
15495
15496 #include <stdio.h>
15497
15498 #ifdef RTLD_GLOBAL
15499 #  define LT_DLGLOBAL           RTLD_GLOBAL
15500 #else
15501 #  ifdef DL_GLOBAL
15502 #    define LT_DLGLOBAL         DL_GLOBAL
15503 #  else
15504 #    define LT_DLGLOBAL         0
15505 #  endif
15506 #endif
15507
15508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15509    find out it does not work in some platform. */
15510 #ifndef LT_DLLAZY_OR_NOW
15511 #  ifdef RTLD_LAZY
15512 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15513 #  else
15514 #    ifdef DL_LAZY
15515 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15516 #    else
15517 #      ifdef RTLD_NOW
15518 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15519 #      else
15520 #        ifdef DL_NOW
15521 #          define LT_DLLAZY_OR_NOW      DL_NOW
15522 #        else
15523 #          define LT_DLLAZY_OR_NOW      0
15524 #        endif
15525 #      endif
15526 #    endif
15527 #  endif
15528 #endif
15529
15530 /* When -fvisibility=hidden is used, assume the code has been annotated
15531    correspondingly for the symbols needed.  */
15532 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15533 int fnord () __attribute__((visibility("default")));
15534 #endif
15535
15536 int fnord () { return 42; }
15537 int main ()
15538 {
15539   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15540   int status = $lt_dlunknown;
15541
15542   if (self)
15543     {
15544       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15545       else
15546         {
15547           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15548           else puts (dlerror ());
15549         }
15550       /* dlclose (self); */
15551     }
15552   else
15553     puts (dlerror ());
15554
15555   return status;
15556 }
15557 _LT_EOF
15558   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15559   (eval $ac_link) 2>&5
15560   ac_status=$?
15561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15562   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15563     (./conftest; exit; ) >&5 2>/dev/null
15564     lt_status=$?
15565     case x$lt_status in
15566       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15567       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15568       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15569     esac
15570   else :
15571     # compilation failed
15572     lt_cv_dlopen_self=no
15573   fi
15574 fi
15575 rm -fr conftest*
15576
15577
15578 fi
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15580 $as_echo "$lt_cv_dlopen_self" >&6; }
15581
15582     if test yes = "$lt_cv_dlopen_self"; then
15583       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15584       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15585 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15586 if ${lt_cv_dlopen_self_static+:} false; then :
15587   $as_echo_n "(cached) " >&6
15588 else
15589           if test yes = "$cross_compiling"; then :
15590   lt_cv_dlopen_self_static=cross
15591 else
15592   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15593   lt_status=$lt_dlunknown
15594   cat > conftest.$ac_ext <<_LT_EOF
15595 #line $LINENO "configure"
15596 #include "confdefs.h"
15597
15598 #if HAVE_DLFCN_H
15599 #include <dlfcn.h>
15600 #endif
15601
15602 #include <stdio.h>
15603
15604 #ifdef RTLD_GLOBAL
15605 #  define LT_DLGLOBAL           RTLD_GLOBAL
15606 #else
15607 #  ifdef DL_GLOBAL
15608 #    define LT_DLGLOBAL         DL_GLOBAL
15609 #  else
15610 #    define LT_DLGLOBAL         0
15611 #  endif
15612 #endif
15613
15614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15615    find out it does not work in some platform. */
15616 #ifndef LT_DLLAZY_OR_NOW
15617 #  ifdef RTLD_LAZY
15618 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15619 #  else
15620 #    ifdef DL_LAZY
15621 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15622 #    else
15623 #      ifdef RTLD_NOW
15624 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15625 #      else
15626 #        ifdef DL_NOW
15627 #          define LT_DLLAZY_OR_NOW      DL_NOW
15628 #        else
15629 #          define LT_DLLAZY_OR_NOW      0
15630 #        endif
15631 #      endif
15632 #    endif
15633 #  endif
15634 #endif
15635
15636 /* When -fvisibility=hidden is used, assume the code has been annotated
15637    correspondingly for the symbols needed.  */
15638 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15639 int fnord () __attribute__((visibility("default")));
15640 #endif
15641
15642 int fnord () { return 42; }
15643 int main ()
15644 {
15645   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15646   int status = $lt_dlunknown;
15647
15648   if (self)
15649     {
15650       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15651       else
15652         {
15653           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15654           else puts (dlerror ());
15655         }
15656       /* dlclose (self); */
15657     }
15658   else
15659     puts (dlerror ());
15660
15661   return status;
15662 }
15663 _LT_EOF
15664   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15665   (eval $ac_link) 2>&5
15666   ac_status=$?
15667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15668   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15669     (./conftest; exit; ) >&5 2>/dev/null
15670     lt_status=$?
15671     case x$lt_status in
15672       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15673       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15674       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15675     esac
15676   else :
15677     # compilation failed
15678     lt_cv_dlopen_self_static=no
15679   fi
15680 fi
15681 rm -fr conftest*
15682
15683
15684 fi
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15686 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15687     fi
15688
15689     CPPFLAGS=$save_CPPFLAGS
15690     LDFLAGS=$save_LDFLAGS
15691     LIBS=$save_LIBS
15692     ;;
15693   esac
15694
15695   case $lt_cv_dlopen_self in
15696   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15697   *) enable_dlopen_self=unknown ;;
15698   esac
15699
15700   case $lt_cv_dlopen_self_static in
15701   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15702   *) enable_dlopen_self_static=unknown ;;
15703   esac
15704 fi
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722 striplib=
15723 old_striplib=
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15725 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15726 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15727   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15728   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15730 $as_echo "yes" >&6; }
15731 else
15732 # FIXME - insert some real tests, host_os isn't really good enough
15733   case $host_os in
15734   darwin*)
15735     if test -n "$STRIP"; then
15736       striplib="$STRIP -x"
15737       old_striplib="$STRIP -S"
15738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15739 $as_echo "yes" >&6; }
15740     else
15741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15742 $as_echo "no" >&6; }
15743     fi
15744     ;;
15745   *)
15746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15747 $as_echo "no" >&6; }
15748     ;;
15749   esac
15750 fi
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763   # Report what library types will actually be built
15764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15765 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15767 $as_echo "$can_build_shared" >&6; }
15768
15769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15770 $as_echo_n "checking whether to build shared libraries... " >&6; }
15771   test no = "$can_build_shared" && enable_shared=no
15772
15773   # On AIX, shared libraries and static libraries use the same namespace, and
15774   # are all built from PIC.
15775   case $host_os in
15776   aix3*)
15777     test yes = "$enable_shared" && enable_static=no
15778     if test -n "$RANLIB"; then
15779       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15780       postinstall_cmds='$RANLIB $lib'
15781     fi
15782     ;;
15783
15784   aix[4-9]*)
15785     if test ia64 != "$host_cpu"; then
15786       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15787       yes,aix,yes) ;;                   # shared object as lib.so file only
15788       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15789       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15790       esac
15791     fi
15792     ;;
15793   esac
15794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15795 $as_echo "$enable_shared" >&6; }
15796
15797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15798 $as_echo_n "checking whether to build static libraries... " >&6; }
15799   # Make sure either enable_shared or enable_static is yes.
15800   test yes = "$enable_shared" || enable_static=yes
15801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15802 $as_echo "$enable_static" >&6; }
15803
15804
15805
15806
15807 fi
15808 ac_ext=c
15809 ac_cpp='$CPP $CPPFLAGS'
15810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15813
15814 CC=$lt_save_CC
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830         ac_config_commands="$ac_config_commands libtool"
15831
15832
15833
15834
15835 # Only expand once:
15836
15837
15838 ## --------------------- ##
15839 ##  End of libtool code  ##
15840 ## --------------------- ##
15841
15842 #
15843 # Verify if finally libtool shared libraries will be built
15844 #
15845
15846 case "x$enable_shared" in # ((
15847   xyes | xno)
15848     xc_lt_build_shared=$enable_shared
15849     ;;
15850   *)
15851     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15852     ;;
15853 esac
15854
15855 #
15856 # Verify if finally libtool static libraries will be built
15857 #
15858
15859 case "x$enable_static" in # ((
15860   xyes | xno)
15861     xc_lt_build_static=$enable_static
15862     ;;
15863   *)
15864     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15865     ;;
15866 esac
15867
15868 #
15869 # Verify if libtool shared libraries should be linked using flag -version-info
15870 #
15871
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15873 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15874 xc_lt_shlib_use_version_info='yes'
15875 if test "x$version_type" = 'xnone'; then
15876   xc_lt_shlib_use_version_info='no'
15877 fi
15878 case $host_os in # (
15879   amigaos*)
15880     xc_lt_shlib_use_version_info='yes'
15881     ;;
15882 esac
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15884 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15885
15886 #
15887 # Verify if libtool shared libraries should be linked using flag -no-undefined
15888 #
15889
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15891 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15892 xc_lt_shlib_use_no_undefined='no'
15893 if test "x$allow_undefined" = 'xno'; then
15894   xc_lt_shlib_use_no_undefined='yes'
15895 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15896   xc_lt_shlib_use_no_undefined='yes'
15897 fi
15898 case $host_os in # (
15899   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15900     xc_lt_shlib_use_no_undefined='yes'
15901     ;;
15902 esac
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15904 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15905
15906 #
15907 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15908 #
15909
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15911 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15912 xc_lt_shlib_use_mimpure_text='no'
15913 case $host_os in # (
15914   solaris2*)
15915     if test "x$GCC" = 'xyes'; then
15916       xc_lt_shlib_use_mimpure_text='yes'
15917     fi
15918     ;;
15919 esac
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15921 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15922
15923 #
15924 # Find out wether libtool libraries would be built wit PIC
15925 #
15926
15927 case "x$pic_mode" in # ((((
15928   xdefault)
15929     xc_lt_build_shared_with_pic='yes'
15930     xc_lt_build_static_with_pic='no'
15931     ;;
15932   xyes)
15933     xc_lt_build_shared_with_pic='yes'
15934     xc_lt_build_static_with_pic='yes'
15935     ;;
15936   xno)
15937     xc_lt_build_shared_with_pic='no'
15938     xc_lt_build_static_with_pic='no'
15939     ;;
15940   *)
15941     xc_lt_build_shared_with_pic='unknown'
15942     xc_lt_build_static_with_pic='unknown'
15943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15944 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15945     ;;
15946 esac
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15948 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15950 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15952 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15954 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15955
15956 #
15957 # Verify if libtool shared libraries will be built while static not built
15958 #
15959
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15961 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15962 if test "$xc_lt_build_shared" = 'yes' &&
15963   test "$xc_lt_build_static" = 'no'; then
15964   xc_lt_build_shared_only='yes'
15965 else
15966   xc_lt_build_shared_only='no'
15967 fi
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15969 $as_echo "$xc_lt_build_shared_only" >&6; }
15970
15971 #
15972 # Verify if libtool static libraries will be built while shared not built
15973 #
15974
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15976 $as_echo_n "checking whether to build static libraries only... " >&6; }
15977 if test "$xc_lt_build_static" = 'yes' &&
15978   test "$xc_lt_build_shared" = 'no'; then
15979   xc_lt_build_static_only='yes'
15980 else
15981   xc_lt_build_static_only='no'
15982 fi
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15984 $as_echo "$xc_lt_build_static_only" >&6; }
15985
15986
15987
15988
15989 #
15990 # Automake conditionals based on libtool related checks
15991 #
15992
15993  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15994   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15995   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15996 else
15997   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15998   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15999 fi
16000
16001  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
16002   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
16003   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
16004 else
16005   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
16006   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
16007 fi
16008
16009  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
16010   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
16011   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
16012 else
16013   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
16014   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
16015 fi
16016
16017
16018 #
16019 # Due to libtool and automake machinery limitations of not allowing
16020 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
16021 # inclusion of these in shared or static libraries, we are forced to
16022 # build using separate configure runs for shared and static libraries
16023 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
16024 # to compile objects for each kind of library. Notice that relying on
16025 # the '-DPIC' CFLAG that libtool provides is not valid given that the
16026 # user might for example choose to build static libraries with PIC.
16027 #
16028
16029 #
16030 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
16031 # targeting a static library and not building its shared counterpart.
16032 #
16033
16034  if test "x$xc_lt_build_static_only" = 'xyes'; then
16035   USE_CPPFLAG_CURL_STATICLIB_TRUE=
16036   USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
16037 else
16038   USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
16039   USE_CPPFLAG_CURL_STATICLIB_FALSE=
16040 fi
16041
16042
16043 #
16044 # Make staticlib CPPFLAG variable and its definition visible in output
16045 # files unconditionally, providing an empty definition unless strictly
16046 # targeting a static library and not building its shared counterpart.
16047 #
16048
16049 CPPFLAG_CURL_STATICLIB=
16050 if test "x$xc_lt_build_static_only" = 'xyes'; then
16051   CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
16052 fi
16053
16054
16055
16056 # Determine whether all dependent libraries must be specified when linking
16057 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
16058 then
16059     REQUIRE_LIB_DEPS=no
16060 else
16061     REQUIRE_LIB_DEPS=yes
16062 fi
16063
16064  if test x$REQUIRE_LIB_DEPS = xyes; then
16065   USE_EXPLICIT_LIB_DEPS_TRUE=
16066   USE_EXPLICIT_LIB_DEPS_FALSE='#'
16067 else
16068   USE_EXPLICIT_LIB_DEPS_TRUE='#'
16069   USE_EXPLICIT_LIB_DEPS_FALSE=
16070 fi
16071
16072
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16074 $as_echo_n "checking for inline... " >&6; }
16075 if ${ac_cv_c_inline+:} false; then :
16076   $as_echo_n "(cached) " >&6
16077 else
16078   ac_cv_c_inline=no
16079 for ac_kw in inline __inline__ __inline; do
16080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h.  */
16082 #ifndef __cplusplus
16083 typedef int foo_t;
16084 static $ac_kw foo_t static_foo () {return 0; }
16085 $ac_kw foo_t foo () {return 0; }
16086 #endif
16087
16088 _ACEOF
16089 if ac_fn_c_try_compile "$LINENO"; then :
16090   ac_cv_c_inline=$ac_kw
16091 fi
16092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16093   test "$ac_cv_c_inline" != no && break
16094 done
16095
16096 fi
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16098 $as_echo "$ac_cv_c_inline" >&6; }
16099
16100 case $ac_cv_c_inline in
16101   inline | yes) ;;
16102   *)
16103     case $ac_cv_c_inline in
16104       no) ac_val=;;
16105       *) ac_val=$ac_cv_c_inline;;
16106     esac
16107     cat >>confdefs.h <<_ACEOF
16108 #ifndef __cplusplus
16109 #define inline $ac_val
16110 #endif
16111 _ACEOF
16112     ;;
16113 esac
16114
16115
16116
16117
16118   #
16119   compiler_id="unknown"
16120   compiler_num="0"
16121   #
16122   flags_dbg_all="unknown"
16123   flags_dbg_yes="unknown"
16124   flags_dbg_off="unknown"
16125   flags_opt_all="unknown"
16126   flags_opt_yes="unknown"
16127   flags_opt_off="unknown"
16128   #
16129   flags_prefer_cppflags="no"
16130   #
16131
16132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16133 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16134
16135     OLDCPPFLAGS=$CPPFLAGS
16136   # CPPPFLAG comes from CURL_CPP_P
16137   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16138       if test -z "$SED"; then
16139     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16140   fi
16141   if test -z "$GREP"; then
16142     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16143   fi
16144
16145   tmp_exp=""
16146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h.  */
16148
16149
16150 #ifdef __DECC
16151 CURL_DEF_TOKEN __DECC
16152 #endif
16153
16154
16155 _ACEOF
16156 if ac_fn_c_try_cpp "$LINENO"; then :
16157
16158     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16159       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16160       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16161       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16162     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16163       tmp_exp=""
16164     fi
16165
16166 fi
16167 rm -f conftest.err conftest.i conftest.$ac_ext
16168   if test -z "$tmp_exp"; then
16169     curl_cv_have_def___DECC=no
16170
16171   else
16172     curl_cv_have_def___DECC=yes
16173     curl_cv_def___DECC=$tmp_exp
16174
16175   fi
16176       CPPFLAGS=$OLDCPPFLAGS
16177
16178
16179     OLDCPPFLAGS=$CPPFLAGS
16180   # CPPPFLAG comes from CURL_CPP_P
16181   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16182       if test -z "$SED"; then
16183     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16184   fi
16185   if test -z "$GREP"; then
16186     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16187   fi
16188
16189   tmp_exp=""
16190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h.  */
16192
16193
16194 #ifdef __DECC_VER
16195 CURL_DEF_TOKEN __DECC_VER
16196 #endif
16197
16198
16199 _ACEOF
16200 if ac_fn_c_try_cpp "$LINENO"; then :
16201
16202     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16203       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16204       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16205       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16206     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16207       tmp_exp=""
16208     fi
16209
16210 fi
16211 rm -f conftest.err conftest.i conftest.$ac_ext
16212   if test -z "$tmp_exp"; then
16213     curl_cv_have_def___DECC_VER=no
16214
16215   else
16216     curl_cv_have_def___DECC_VER=yes
16217     curl_cv_def___DECC_VER=$tmp_exp
16218
16219   fi
16220       CPPFLAGS=$OLDCPPFLAGS
16221
16222   if test "$curl_cv_have_def___DECC" = "yes" &&
16223     test "$curl_cv_have_def___DECC_VER" = "yes"; then
16224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16225 $as_echo "yes" >&6; }
16226     compiler_id="DEC_C"
16227     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16228     flags_dbg_yes="-g2"
16229     flags_dbg_off=""
16230     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16231     flags_opt_yes="-O1"
16232     flags_opt_off="-O0"
16233   else
16234     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16235 $as_echo "no" >&6; }
16236   fi
16237
16238
16239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16240 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
16241
16242     OLDCPPFLAGS=$CPPFLAGS
16243   # CPPPFLAG comes from CURL_CPP_P
16244   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16245       if test -z "$SED"; then
16246     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16247   fi
16248   if test -z "$GREP"; then
16249     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16250   fi
16251
16252   tmp_exp=""
16253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h.  */
16255
16256
16257 #ifdef __HP_cc
16258 CURL_DEF_TOKEN __HP_cc
16259 #endif
16260
16261
16262 _ACEOF
16263 if ac_fn_c_try_cpp "$LINENO"; then :
16264
16265     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16266       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16267       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16268       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16269     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16270       tmp_exp=""
16271     fi
16272
16273 fi
16274 rm -f conftest.err conftest.i conftest.$ac_ext
16275   if test -z "$tmp_exp"; then
16276     curl_cv_have_def___HP_cc=no
16277
16278   else
16279     curl_cv_have_def___HP_cc=yes
16280     curl_cv_def___HP_cc=$tmp_exp
16281
16282   fi
16283       CPPFLAGS=$OLDCPPFLAGS
16284
16285   if test "$curl_cv_have_def___HP_cc" = "yes"; then
16286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16287 $as_echo "yes" >&6; }
16288     compiler_id="HP_UX_C"
16289     flags_dbg_all="-g -s"
16290     flags_dbg_yes="-g"
16291     flags_dbg_off="-s"
16292     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16293     flags_opt_yes="+O2"
16294     flags_opt_off="+O0"
16295   else
16296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16297 $as_echo "no" >&6; }
16298   fi
16299
16300
16301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16302 $as_echo_n "checking if compiler is IBM C... " >&6; }
16303
16304     OLDCPPFLAGS=$CPPFLAGS
16305   # CPPPFLAG comes from CURL_CPP_P
16306   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16307       if test -z "$SED"; then
16308     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16309   fi
16310   if test -z "$GREP"; then
16311     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16312   fi
16313
16314   tmp_exp=""
16315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16316 /* end confdefs.h.  */
16317
16318
16319 #ifdef __IBMC__
16320 CURL_DEF_TOKEN __IBMC__
16321 #endif
16322
16323
16324 _ACEOF
16325 if ac_fn_c_try_cpp "$LINENO"; then :
16326
16327     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16328       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16329       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16330       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16331     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16332       tmp_exp=""
16333     fi
16334
16335 fi
16336 rm -f conftest.err conftest.i conftest.$ac_ext
16337   if test -z "$tmp_exp"; then
16338     curl_cv_have_def___IBMC__=no
16339
16340   else
16341     curl_cv_have_def___IBMC__=yes
16342     curl_cv_def___IBMC__=$tmp_exp
16343
16344   fi
16345       CPPFLAGS=$OLDCPPFLAGS
16346
16347   if test "$curl_cv_have_def___IBMC__" = "yes"; then
16348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16349 $as_echo "yes" >&6; }
16350     compiler_id="IBM_C"
16351     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16352     flags_dbg_yes="-g"
16353     flags_dbg_off=""
16354     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16355     flags_opt_all="$flags_opt_all -qnooptimize"
16356     flags_opt_all="$flags_opt_all -qoptimize=0"
16357     flags_opt_all="$flags_opt_all -qoptimize=1"
16358     flags_opt_all="$flags_opt_all -qoptimize=2"
16359     flags_opt_all="$flags_opt_all -qoptimize=3"
16360     flags_opt_all="$flags_opt_all -qoptimize=4"
16361     flags_opt_all="$flags_opt_all -qoptimize=5"
16362     flags_opt_yes="-O2"
16363     flags_opt_off="-qnooptimize"
16364     flags_prefer_cppflags="yes"
16365   else
16366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16367 $as_echo "no" >&6; }
16368   fi
16369
16370
16371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16372 $as_echo_n "checking if compiler is Intel C... " >&6; }
16373
16374     OLDCPPFLAGS=$CPPFLAGS
16375   # CPPPFLAG comes from CURL_CPP_P
16376   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16377       if test -z "$SED"; then
16378     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16379   fi
16380   if test -z "$GREP"; then
16381     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16382   fi
16383
16384   tmp_exp=""
16385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h.  */
16387
16388
16389 #ifdef __INTEL_COMPILER
16390 CURL_DEF_TOKEN __INTEL_COMPILER
16391 #endif
16392
16393
16394 _ACEOF
16395 if ac_fn_c_try_cpp "$LINENO"; then :
16396
16397     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16398       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16399       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16400       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16401     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16402       tmp_exp=""
16403     fi
16404
16405 fi
16406 rm -f conftest.err conftest.i conftest.$ac_ext
16407   if test -z "$tmp_exp"; then
16408     curl_cv_have_def___INTEL_COMPILER=no
16409
16410   else
16411     curl_cv_have_def___INTEL_COMPILER=yes
16412     curl_cv_def___INTEL_COMPILER=$tmp_exp
16413
16414   fi
16415       CPPFLAGS=$OLDCPPFLAGS
16416
16417   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16419 $as_echo "yes" >&6; }
16420     compiler_num="$curl_cv_def___INTEL_COMPILER"
16421
16422     OLDCPPFLAGS=$CPPFLAGS
16423   # CPPPFLAG comes from CURL_CPP_P
16424   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16425       if test -z "$SED"; then
16426     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16427   fi
16428   if test -z "$GREP"; then
16429     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16430   fi
16431
16432   tmp_exp=""
16433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434 /* end confdefs.h.  */
16435
16436
16437 #ifdef __unix__
16438 CURL_DEF_TOKEN __unix__
16439 #endif
16440
16441
16442 _ACEOF
16443 if ac_fn_c_try_cpp "$LINENO"; then :
16444
16445     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16446       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16447       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16448       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16449     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16450       tmp_exp=""
16451     fi
16452
16453 fi
16454 rm -f conftest.err conftest.i conftest.$ac_ext
16455   if test -z "$tmp_exp"; then
16456     curl_cv_have_def___unix__=no
16457
16458   else
16459     curl_cv_have_def___unix__=yes
16460     curl_cv_def___unix__=$tmp_exp
16461
16462   fi
16463       CPPFLAGS=$OLDCPPFLAGS
16464
16465     if test "$curl_cv_have_def___unix__" = "yes"; then
16466       compiler_id="INTEL_UNIX_C"
16467       flags_dbg_all="-g -g0"
16468       flags_dbg_yes="-g"
16469       flags_dbg_off=""
16470       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16471       flags_opt_yes="-O2"
16472       flags_opt_off="-O0"
16473     else
16474       compiler_id="INTEL_WINDOWS_C"
16475       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16476       flags_dbg_all="$flags_dbg_all /debug"
16477       flags_dbg_all="$flags_dbg_all /debug:none"
16478       flags_dbg_all="$flags_dbg_all /debug:minimal"
16479       flags_dbg_all="$flags_dbg_all /debug:partial"
16480       flags_dbg_all="$flags_dbg_all /debug:full"
16481       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16482       flags_dbg_all="$flags_dbg_all /debug:extended"
16483       flags_dbg_yes="/Zi /Oy-"
16484       flags_dbg_off="/debug:none /Oy-"
16485       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16486       flags_opt_yes="/O2"
16487       flags_opt_off="/Od"
16488     fi
16489   else
16490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16491 $as_echo "no" >&6; }
16492   fi
16493
16494
16495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16496 $as_echo_n "checking if compiler is clang... " >&6; }
16497
16498     OLDCPPFLAGS=$CPPFLAGS
16499   # CPPPFLAG comes from CURL_CPP_P
16500   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16501       if test -z "$SED"; then
16502     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16503   fi
16504   if test -z "$GREP"; then
16505     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16506   fi
16507
16508   tmp_exp=""
16509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h.  */
16511
16512
16513 #ifdef __clang__
16514 CURL_DEF_TOKEN __clang__
16515 #endif
16516
16517
16518 _ACEOF
16519 if ac_fn_c_try_cpp "$LINENO"; then :
16520
16521     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16522       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16523       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16524       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16525     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16526       tmp_exp=""
16527     fi
16528
16529 fi
16530 rm -f conftest.err conftest.i conftest.$ac_ext
16531   if test -z "$tmp_exp"; then
16532     curl_cv_have_def___clang__=no
16533
16534   else
16535     curl_cv_have_def___clang__=yes
16536     curl_cv_def___clang__=$tmp_exp
16537
16538   fi
16539       CPPFLAGS=$OLDCPPFLAGS
16540
16541   if test "$curl_cv_have_def___clang__" = "yes"; then
16542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16543 $as_echo "yes" >&6; }
16544     compiler_id="CLANG"
16545     clangver=`$CC -dumpversion`
16546     clangvhi=`echo $clangver | cut -d . -f1`
16547     clangvlo=`echo $clangver | cut -d . -f2`
16548     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16549     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16550     flags_dbg_all="$flags_dbg_all -ggdb"
16551     flags_dbg_all="$flags_dbg_all -gstabs"
16552     flags_dbg_all="$flags_dbg_all -gstabs+"
16553     flags_dbg_all="$flags_dbg_all -gcoff"
16554     flags_dbg_all="$flags_dbg_all -gxcoff"
16555     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16556     flags_dbg_all="$flags_dbg_all -gvms"
16557     flags_dbg_yes="-g"
16558     flags_dbg_off=""
16559     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16560     flags_opt_yes="-Os"
16561     flags_opt_off="-O0"
16562   else
16563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16564 $as_echo "no" >&6; }
16565   fi
16566
16567
16568       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16569 $as_echo_n "checking if compiler is GNU C... " >&6; }
16570
16571     OLDCPPFLAGS=$CPPFLAGS
16572   # CPPPFLAG comes from CURL_CPP_P
16573   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16574       if test -z "$SED"; then
16575     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16576   fi
16577   if test -z "$GREP"; then
16578     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16579   fi
16580
16581   tmp_exp=""
16582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h.  */
16584
16585
16586 #ifdef __GNUC__
16587 CURL_DEF_TOKEN __GNUC__
16588 #endif
16589
16590
16591 _ACEOF
16592 if ac_fn_c_try_cpp "$LINENO"; then :
16593
16594     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16595       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16596       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16597       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16598     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16599       tmp_exp=""
16600     fi
16601
16602 fi
16603 rm -f conftest.err conftest.i conftest.$ac_ext
16604   if test -z "$tmp_exp"; then
16605     curl_cv_have_def___GNUC__=no
16606
16607   else
16608     curl_cv_have_def___GNUC__=yes
16609     curl_cv_def___GNUC__=$tmp_exp
16610
16611   fi
16612       CPPFLAGS=$OLDCPPFLAGS
16613
16614   if test "$curl_cv_have_def___GNUC__" = "yes" &&
16615     test "$compiler_id" = "unknown"; then
16616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16617 $as_echo "yes" >&6; }
16618     compiler_id="GNU_C"
16619     gccver=`$CC -dumpversion`
16620     gccvhi=`echo $gccver | cut -d . -f1`
16621     gccvlo=`echo $gccver | cut -d . -f2`
16622     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16623     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16624     flags_dbg_all="$flags_dbg_all -ggdb"
16625     flags_dbg_all="$flags_dbg_all -gstabs"
16626     flags_dbg_all="$flags_dbg_all -gstabs+"
16627     flags_dbg_all="$flags_dbg_all -gcoff"
16628     flags_dbg_all="$flags_dbg_all -gxcoff"
16629     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16630     flags_dbg_all="$flags_dbg_all -gvms"
16631     flags_dbg_yes="-g"
16632     flags_dbg_off=""
16633     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16634     flags_opt_yes="-O2"
16635     flags_opt_off="-O0"
16636
16637     OLDCPPFLAGS=$CPPFLAGS
16638   # CPPPFLAG comes from CURL_CPP_P
16639   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16640       if test -z "$SED"; then
16641     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16642   fi
16643   if test -z "$GREP"; then
16644     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16645   fi
16646
16647   tmp_exp=""
16648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649 /* end confdefs.h.  */
16650
16651
16652 #ifdef _WIN32
16653 CURL_DEF_TOKEN _WIN32
16654 #endif
16655
16656
16657 _ACEOF
16658 if ac_fn_c_try_cpp "$LINENO"; then :
16659
16660     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16661       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16662       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16663       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16664     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16665       tmp_exp=""
16666     fi
16667
16668 fi
16669 rm -f conftest.err conftest.i conftest.$ac_ext
16670   if test -z "$tmp_exp"; then
16671     curl_cv_have_def__WIN32=no
16672
16673   else
16674     curl_cv_have_def__WIN32=yes
16675     curl_cv_def__WIN32=$tmp_exp
16676
16677   fi
16678       CPPFLAGS=$OLDCPPFLAGS
16679
16680   else
16681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16682 $as_echo "no" >&6; }
16683   fi
16684
16685
16686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16687 $as_echo_n "checking if compiler is LCC... " >&6; }
16688
16689     OLDCPPFLAGS=$CPPFLAGS
16690   # CPPPFLAG comes from CURL_CPP_P
16691   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16692       if test -z "$SED"; then
16693     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16694   fi
16695   if test -z "$GREP"; then
16696     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16697   fi
16698
16699   tmp_exp=""
16700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h.  */
16702
16703
16704 #ifdef __LCC__
16705 CURL_DEF_TOKEN __LCC__
16706 #endif
16707
16708
16709 _ACEOF
16710 if ac_fn_c_try_cpp "$LINENO"; then :
16711
16712     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16713       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16714       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16715       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16716     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16717       tmp_exp=""
16718     fi
16719
16720 fi
16721 rm -f conftest.err conftest.i conftest.$ac_ext
16722   if test -z "$tmp_exp"; then
16723     curl_cv_have_def___LCC__=no
16724
16725   else
16726     curl_cv_have_def___LCC__=yes
16727     curl_cv_def___LCC__=$tmp_exp
16728
16729   fi
16730       CPPFLAGS=$OLDCPPFLAGS
16731
16732   if test "$curl_cv_have_def___LCC__" = "yes"; then
16733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16734 $as_echo "yes" >&6; }
16735     compiler_id="LCC"
16736     flags_dbg_all="-g"
16737     flags_dbg_yes="-g"
16738     flags_dbg_off=""
16739     flags_opt_all=""
16740     flags_opt_yes=""
16741     flags_opt_off=""
16742   else
16743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16744 $as_echo "no" >&6; }
16745   fi
16746
16747
16748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16749 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16750
16751     OLDCPPFLAGS=$CPPFLAGS
16752   # CPPPFLAG comes from CURL_CPP_P
16753   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16754       if test -z "$SED"; then
16755     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16756   fi
16757   if test -z "$GREP"; then
16758     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16759   fi
16760
16761   tmp_exp=""
16762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h.  */
16764
16765
16766 #ifdef __GNUC__
16767 CURL_DEF_TOKEN __GNUC__
16768 #endif
16769
16770
16771 _ACEOF
16772 if ac_fn_c_try_cpp "$LINENO"; then :
16773
16774     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16775       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16776       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16777       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16778     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16779       tmp_exp=""
16780     fi
16781
16782 fi
16783 rm -f conftest.err conftest.i conftest.$ac_ext
16784   if test -z "$tmp_exp"; then
16785     curl_cv_have_def___GNUC__=no
16786
16787   else
16788     curl_cv_have_def___GNUC__=yes
16789     curl_cv_def___GNUC__=$tmp_exp
16790
16791   fi
16792       CPPFLAGS=$OLDCPPFLAGS
16793
16794
16795     OLDCPPFLAGS=$CPPFLAGS
16796   # CPPPFLAG comes from CURL_CPP_P
16797   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16798       if test -z "$SED"; then
16799     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16800   fi
16801   if test -z "$GREP"; then
16802     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16803   fi
16804
16805   tmp_exp=""
16806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807 /* end confdefs.h.  */
16808
16809
16810 #ifdef _COMPILER_VERSION
16811 CURL_DEF_TOKEN _COMPILER_VERSION
16812 #endif
16813
16814
16815 _ACEOF
16816 if ac_fn_c_try_cpp "$LINENO"; then :
16817
16818     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16819       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16820       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16821       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16822     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16823       tmp_exp=""
16824     fi
16825
16826 fi
16827 rm -f conftest.err conftest.i conftest.$ac_ext
16828   if test -z "$tmp_exp"; then
16829     curl_cv_have_def__COMPILER_VERSION=no
16830
16831   else
16832     curl_cv_have_def__COMPILER_VERSION=yes
16833     curl_cv_def__COMPILER_VERSION=$tmp_exp
16834
16835   fi
16836       CPPFLAGS=$OLDCPPFLAGS
16837
16838
16839     OLDCPPFLAGS=$CPPFLAGS
16840   # CPPPFLAG comes from CURL_CPP_P
16841   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16842       if test -z "$SED"; then
16843     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16844   fi
16845   if test -z "$GREP"; then
16846     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16847   fi
16848
16849   tmp_exp=""
16850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16851 /* end confdefs.h.  */
16852
16853
16854 #ifdef _SGI_COMPILER_VERSION
16855 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16856 #endif
16857
16858
16859 _ACEOF
16860 if ac_fn_c_try_cpp "$LINENO"; then :
16861
16862     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16863       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16864       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16865       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16866     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16867       tmp_exp=""
16868     fi
16869
16870 fi
16871 rm -f conftest.err conftest.i conftest.$ac_ext
16872   if test -z "$tmp_exp"; then
16873     curl_cv_have_def__SGI_COMPILER_VERSION=no
16874
16875   else
16876     curl_cv_have_def__SGI_COMPILER_VERSION=yes
16877     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16878
16879   fi
16880       CPPFLAGS=$OLDCPPFLAGS
16881
16882   if test "$curl_cv_have_def___GNUC__" = "no" &&
16883     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16884      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16886 $as_echo "yes" >&6; }
16887     compiler_id="SGI_MIPSPRO_C"
16888     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16889     flags_dbg_yes="-g"
16890     flags_dbg_off=""
16891     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16892     flags_opt_yes="-O2"
16893     flags_opt_off="-O0"
16894   else
16895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896 $as_echo "no" >&6; }
16897   fi
16898
16899
16900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16901 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16902
16903     OLDCPPFLAGS=$CPPFLAGS
16904   # CPPPFLAG comes from CURL_CPP_P
16905   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16906       if test -z "$SED"; then
16907     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16908   fi
16909   if test -z "$GREP"; then
16910     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16911   fi
16912
16913   tmp_exp=""
16914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h.  */
16916
16917
16918 #ifdef __GNUC__
16919 CURL_DEF_TOKEN __GNUC__
16920 #endif
16921
16922
16923 _ACEOF
16924 if ac_fn_c_try_cpp "$LINENO"; then :
16925
16926     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16927       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16928       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16929       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16930     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16931       tmp_exp=""
16932     fi
16933
16934 fi
16935 rm -f conftest.err conftest.i conftest.$ac_ext
16936   if test -z "$tmp_exp"; then
16937     curl_cv_have_def___GNUC__=no
16938
16939   else
16940     curl_cv_have_def___GNUC__=yes
16941     curl_cv_def___GNUC__=$tmp_exp
16942
16943   fi
16944       CPPFLAGS=$OLDCPPFLAGS
16945
16946
16947     OLDCPPFLAGS=$CPPFLAGS
16948   # CPPPFLAG comes from CURL_CPP_P
16949   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16950       if test -z "$SED"; then
16951     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16952   fi
16953   if test -z "$GREP"; then
16954     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16955   fi
16956
16957   tmp_exp=""
16958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h.  */
16960
16961
16962 #ifdef __sgi
16963 CURL_DEF_TOKEN __sgi
16964 #endif
16965
16966
16967 _ACEOF
16968 if ac_fn_c_try_cpp "$LINENO"; then :
16969
16970     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16971       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16972       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16973       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16974     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16975       tmp_exp=""
16976     fi
16977
16978 fi
16979 rm -f conftest.err conftest.i conftest.$ac_ext
16980   if test -z "$tmp_exp"; then
16981     curl_cv_have_def___sgi=no
16982
16983   else
16984     curl_cv_have_def___sgi=yes
16985     curl_cv_def___sgi=$tmp_exp
16986
16987   fi
16988       CPPFLAGS=$OLDCPPFLAGS
16989
16990   if test "$curl_cv_have_def___GNUC__" = "no" &&
16991     test "$curl_cv_have_def___sgi" = "yes" &&
16992     test "$compiler_id" = "unknown"; then
16993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16994 $as_echo "yes" >&6; }
16995     compiler_id="SGI_MIPS_C"
16996     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16997     flags_dbg_yes="-g"
16998     flags_dbg_off=""
16999     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17000     flags_opt_yes="-O2"
17001     flags_opt_off="-O0"
17002   else
17003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17004 $as_echo "no" >&6; }
17005   fi
17006
17007
17008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
17009 $as_echo_n "checking if compiler is SunPro C... " >&6; }
17010
17011     OLDCPPFLAGS=$CPPFLAGS
17012   # CPPPFLAG comes from CURL_CPP_P
17013   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17014       if test -z "$SED"; then
17015     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17016   fi
17017   if test -z "$GREP"; then
17018     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17019   fi
17020
17021   tmp_exp=""
17022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17023 /* end confdefs.h.  */
17024
17025
17026 #ifdef __SUNPRO_C
17027 CURL_DEF_TOKEN __SUNPRO_C
17028 #endif
17029
17030
17031 _ACEOF
17032 if ac_fn_c_try_cpp "$LINENO"; then :
17033
17034     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17035       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17036       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17037       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17038     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
17039       tmp_exp=""
17040     fi
17041
17042 fi
17043 rm -f conftest.err conftest.i conftest.$ac_ext
17044   if test -z "$tmp_exp"; then
17045     curl_cv_have_def___SUNPRO_C=no
17046
17047   else
17048     curl_cv_have_def___SUNPRO_C=yes
17049     curl_cv_def___SUNPRO_C=$tmp_exp
17050
17051   fi
17052       CPPFLAGS=$OLDCPPFLAGS
17053
17054   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
17055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17056 $as_echo "yes" >&6; }
17057     compiler_id="SUNPRO_C"
17058     flags_dbg_all="-g -s"
17059     flags_dbg_yes="-g"
17060     flags_dbg_off="-s"
17061     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
17062     flags_opt_yes="-xO2"
17063     flags_opt_off=""
17064   else
17065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17066 $as_echo "no" >&6; }
17067   fi
17068
17069
17070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
17071 $as_echo_n "checking if compiler is Tiny C... " >&6; }
17072
17073     OLDCPPFLAGS=$CPPFLAGS
17074   # CPPPFLAG comes from CURL_CPP_P
17075   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17076       if test -z "$SED"; then
17077     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17078   fi
17079   if test -z "$GREP"; then
17080     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17081   fi
17082
17083   tmp_exp=""
17084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085 /* end confdefs.h.  */
17086
17087
17088 #ifdef __TINYC__
17089 CURL_DEF_TOKEN __TINYC__
17090 #endif
17091
17092
17093 _ACEOF
17094 if ac_fn_c_try_cpp "$LINENO"; then :
17095
17096     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17097       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17098       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17099       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17100     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17101       tmp_exp=""
17102     fi
17103
17104 fi
17105 rm -f conftest.err conftest.i conftest.$ac_ext
17106   if test -z "$tmp_exp"; then
17107     curl_cv_have_def___TINYC__=no
17108
17109   else
17110     curl_cv_have_def___TINYC__=yes
17111     curl_cv_def___TINYC__=$tmp_exp
17112
17113   fi
17114       CPPFLAGS=$OLDCPPFLAGS
17115
17116   if test "$curl_cv_have_def___TINYC__" = "yes"; then
17117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17118 $as_echo "yes" >&6; }
17119     compiler_id="TINY_C"
17120     flags_dbg_all="-g -b"
17121     flags_dbg_yes="-g"
17122     flags_dbg_off=""
17123     flags_opt_all=""
17124     flags_opt_yes=""
17125     flags_opt_off=""
17126   else
17127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128 $as_echo "no" >&6; }
17129   fi
17130
17131
17132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17133 $as_echo_n "checking if compiler is Watcom C... " >&6; }
17134
17135     OLDCPPFLAGS=$CPPFLAGS
17136   # CPPPFLAG comes from CURL_CPP_P
17137   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17138       if test -z "$SED"; then
17139     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17140   fi
17141   if test -z "$GREP"; then
17142     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17143   fi
17144
17145   tmp_exp=""
17146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h.  */
17148
17149
17150 #ifdef __WATCOMC__
17151 CURL_DEF_TOKEN __WATCOMC__
17152 #endif
17153
17154
17155 _ACEOF
17156 if ac_fn_c_try_cpp "$LINENO"; then :
17157
17158     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17159       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17160       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17161       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17162     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17163       tmp_exp=""
17164     fi
17165
17166 fi
17167 rm -f conftest.err conftest.i conftest.$ac_ext
17168   if test -z "$tmp_exp"; then
17169     curl_cv_have_def___WATCOMC__=no
17170
17171   else
17172     curl_cv_have_def___WATCOMC__=yes
17173     curl_cv_def___WATCOMC__=$tmp_exp
17174
17175   fi
17176       CPPFLAGS=$OLDCPPFLAGS
17177
17178   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17180 $as_echo "yes" >&6; }
17181
17182     OLDCPPFLAGS=$CPPFLAGS
17183   # CPPPFLAG comes from CURL_CPP_P
17184   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17185       if test -z "$SED"; then
17186     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17187   fi
17188   if test -z "$GREP"; then
17189     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17190   fi
17191
17192   tmp_exp=""
17193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h.  */
17195
17196
17197 #ifdef __UNIX__
17198 CURL_DEF_TOKEN __UNIX__
17199 #endif
17200
17201
17202 _ACEOF
17203 if ac_fn_c_try_cpp "$LINENO"; then :
17204
17205     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17206       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17207       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17208       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17209     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17210       tmp_exp=""
17211     fi
17212
17213 fi
17214 rm -f conftest.err conftest.i conftest.$ac_ext
17215   if test -z "$tmp_exp"; then
17216     curl_cv_have_def___UNIX__=no
17217
17218   else
17219     curl_cv_have_def___UNIX__=yes
17220     curl_cv_def___UNIX__=$tmp_exp
17221
17222   fi
17223       CPPFLAGS=$OLDCPPFLAGS
17224
17225     if test "$curl_cv_have_def___UNIX__" = "yes"; then
17226       compiler_id="WATCOM_UNIX_C"
17227       flags_dbg_all="-g1 -g1+ -g2 -g3"
17228       flags_dbg_yes="-g2"
17229       flags_dbg_off=""
17230       flags_opt_all="-O0 -O1 -O2 -O3"
17231       flags_opt_yes="-O2"
17232       flags_opt_off="-O0"
17233     else
17234       compiler_id="WATCOM_WINDOWS_C"
17235       flags_dbg_all=""
17236       flags_dbg_yes=""
17237       flags_dbg_off=""
17238       flags_opt_all=""
17239       flags_opt_yes=""
17240       flags_opt_off=""
17241     fi
17242   else
17243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244 $as_echo "no" >&6; }
17245   fi
17246
17247   #
17248   if test "$compiler_id" = "unknown"; then
17249   cat <<_EOF 1>&2
17250 ***
17251 *** Warning: This configure script does not have information about the
17252 *** compiler you are using, relative to the flags required to enable or
17253 *** disable generation of debug info, optimization options or warnings.
17254 ***
17255 *** Whatever settings are present in CFLAGS will be used for this run.
17256 ***
17257 *** If you wish to help the cURL project to better support your compiler
17258 *** you can report this and the required info on the libcurl development
17259 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17260 ***
17261 _EOF
17262   fi
17263
17264
17265 squeeze() {
17266   _sqz_result=""
17267   eval _sqz_input=\$$1
17268   for _sqz_token in $_sqz_input; do
17269     if test -z "$_sqz_result"; then
17270       _sqz_result="$_sqz_token"
17271     else
17272       _sqz_result="$_sqz_result $_sqz_token"
17273     fi
17274   done
17275   eval $1=\$_sqz_result
17276   return 0
17277 }
17278
17279
17280       #
17281   if test "$compiler_id" != "unknown"; then
17282     #
17283     if test "$compiler_id" = "GNU_C" ||
17284       test "$compiler_id" = "CLANG"; then
17285
17286       if test "$compiler_id" = "GNU_C" ||
17287     test "$compiler_id" = "CLANG"; then
17288     tmp_has_include="no"
17289     tmp_chg_FLAGS="$CFLAGS"
17290     for word1 in $tmp_chg_FLAGS; do
17291       case "$word1" in
17292         -I*)
17293           tmp_has_include="yes"
17294           ;;
17295       esac
17296     done
17297     if test "$tmp_has_include" = "yes"; then
17298       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17299       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17300       CFLAGS="$tmp_chg_FLAGS"
17301       squeeze CFLAGS
17302     fi
17303     tmp_has_include="no"
17304     tmp_chg_FLAGS="$CPPFLAGS"
17305     for word1 in $tmp_chg_FLAGS; do
17306       case "$word1" in
17307         -I*)
17308           tmp_has_include="yes"
17309           ;;
17310       esac
17311     done
17312     if test "$tmp_has_include" = "yes"; then
17313       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17314       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17315       CPPFLAGS="$tmp_chg_FLAGS"
17316       squeeze CPPFLAGS
17317     fi
17318   fi
17319
17320     fi
17321     #
17322     tmp_save_CPPFLAGS="$CPPFLAGS"
17323     tmp_save_CFLAGS="$CFLAGS"
17324     tmp_CPPFLAGS=""
17325     tmp_CFLAGS=""
17326     #
17327     case "$compiler_id" in
17328         #
17329       CLANG)
17330         #
17331                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17332         ;;
17333         #
17334       DEC_C)
17335         #
17336                 tmp_CFLAGS="$tmp_CFLAGS -std1"
17337                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17338                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17339                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17340         ;;
17341         #
17342       GNU_C)
17343         #
17344                 tmp_CFLAGS="$tmp_CFLAGS"
17345         ;;
17346         #
17347       HP_UX_C)
17348         #
17349                 tmp_CFLAGS="$tmp_CFLAGS -z"
17350                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17351         ;;
17352         #
17353       IBM_C)
17354         #
17355                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17356                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17357                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17358         ;;
17359         #
17360       INTEL_UNIX_C)
17361         #
17362                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17363                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17364                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17365         ;;
17366         #
17367       INTEL_WINDOWS_C)
17368         #
17369                 tmp_CFLAGS="$tmp_CFLAGS"
17370         ;;
17371         #
17372       LCC)
17373         #
17374                 tmp_CFLAGS="$tmp_CFLAGS -n"
17375         ;;
17376         #
17377       SGI_MIPS_C)
17378         #
17379                 tmp_CFLAGS="$tmp_CFLAGS"
17380         ;;
17381         #
17382       SGI_MIPSPRO_C)
17383         #
17384                 tmp_CFLAGS="$tmp_CFLAGS"
17385         ;;
17386         #
17387       SUNPRO_C)
17388         #
17389                 tmp_CFLAGS="$tmp_CFLAGS"
17390         ;;
17391         #
17392       TINY_C)
17393         #
17394                 tmp_CFLAGS="$tmp_CFLAGS"
17395         ;;
17396         #
17397       WATCOM_UNIX_C)
17398         #
17399                 tmp_CFLAGS="$tmp_CFLAGS"
17400         ;;
17401         #
17402       WATCOM_WINDOWS_C)
17403         #
17404                 tmp_CFLAGS="$tmp_CFLAGS"
17405         ;;
17406         #
17407     esac
17408     #
17409     squeeze tmp_CPPFLAGS
17410     squeeze tmp_CFLAGS
17411     #
17412     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17413       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17414 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17415       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17416       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
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     if test "$cross_compiling" = yes; then :
17485   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17487 as_fn_error $? "cannot run test program while cross compiling
17488 See \`config.log' for more details" "$LINENO" 5; }
17489 else
17490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491 /* end confdefs.h.  */
17492
17493
17494 #       ifdef __STDC__
17495 #         include <stdlib.h>
17496 #       endif
17497
17498 int main (void)
17499 {
17500
17501         int i = 0;
17502         exit(i);
17503
17504  ;
17505  return 0;
17506 }
17507
17508 _ACEOF
17509 if ac_fn_c_try_run "$LINENO"; then :
17510
17511       tmp_compiler_works="yes"
17512
17513 else
17514
17515       tmp_compiler_works="no"
17516       echo " " >&6
17517       echo "run-fail: test program exited with status $ac_status" >&6
17518       echo " " >&6
17519
17520 fi
17521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17522   conftest.$ac_objext conftest.beam conftest.$ac_ext
17523 fi
17524
17525   fi
17526     if test "$tmp_compiler_works" = "yes"; then
17527
17528         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17529 $as_echo "yes" >&6; }
17530         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17531 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17532
17533   else
17534
17535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17536 $as_echo "no" >&6; }
17537         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17538 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17539                 CPPFLAGS="$tmp_save_CPPFLAGS"
17540         CFLAGS="$tmp_save_CFLAGS"
17541
17542   fi
17543
17544     fi
17545     #
17546   fi
17547
17548
17549         #
17550   if test "$compiler_id" != "unknown"; then
17551     #
17552     tmp_save_CFLAGS="$CFLAGS"
17553     tmp_save_CPPFLAGS="$CPPFLAGS"
17554     #
17555     tmp_options=""
17556     tmp_CFLAGS="$CFLAGS"
17557     tmp_CPPFLAGS="$CPPFLAGS"
17558
17559     ac_var_stripped=""
17560   for word1 in $tmp_CFLAGS; do
17561     ac_var_strip_word="no"
17562     for word2 in $flags_dbg_all; do
17563       if test "$word1" = "$word2"; then
17564         ac_var_strip_word="yes"
17565       fi
17566     done
17567     if test "$ac_var_strip_word" = "no"; then
17568       ac_var_stripped="$ac_var_stripped $word1"
17569     fi
17570   done
17571     tmp_CFLAGS="$ac_var_stripped"
17572   squeeze tmp_CFLAGS
17573
17574
17575     ac_var_stripped=""
17576   for word1 in $tmp_CPPFLAGS; do
17577     ac_var_strip_word="no"
17578     for word2 in $flags_dbg_all; do
17579       if test "$word1" = "$word2"; then
17580         ac_var_strip_word="yes"
17581       fi
17582     done
17583     if test "$ac_var_strip_word" = "no"; then
17584       ac_var_stripped="$ac_var_stripped $word1"
17585     fi
17586   done
17587     tmp_CPPFLAGS="$ac_var_stripped"
17588   squeeze tmp_CPPFLAGS
17589
17590     #
17591     if test "$want_debug" = "yes"; then
17592       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17593 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17594       tmp_options="$flags_dbg_yes"
17595     fi
17596     if test "$want_debug" = "no"; then
17597       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17598 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17599       tmp_options="$flags_dbg_off"
17600     fi
17601     #
17602     if test "$flags_prefer_cppflags" = "yes"; then
17603       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17604       CFLAGS="$tmp_CFLAGS"
17605     else
17606       CPPFLAGS="$tmp_CPPFLAGS"
17607       CFLAGS="$tmp_CFLAGS $tmp_options"
17608     fi
17609     squeeze CPPFLAGS
17610     squeeze CFLAGS
17611
17612     tmp_compiler_works="unknown"
17613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17614 /* end confdefs.h.  */
17615
17616
17617
17618 int main (void)
17619 {
17620
17621       int i = 1;
17622       return i;
17623
17624  ;
17625  return 0;
17626 }
17627
17628 _ACEOF
17629 if ac_fn_c_try_compile "$LINENO"; then :
17630
17631     tmp_compiler_works="yes"
17632
17633 else
17634
17635     tmp_compiler_works="no"
17636     echo " " >&6
17637     sed 's/^/cc-fail: /' conftest.err >&6
17638     echo " " >&6
17639
17640 fi
17641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17642     if test "$tmp_compiler_works" = "yes"; then
17643     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17644 /* end confdefs.h.  */
17645
17646
17647
17648 int main (void)
17649 {
17650
17651         int i = 1;
17652         return i;
17653
17654  ;
17655  return 0;
17656 }
17657
17658 _ACEOF
17659 if ac_fn_c_try_link "$LINENO"; then :
17660
17661       tmp_compiler_works="yes"
17662
17663 else
17664
17665       tmp_compiler_works="no"
17666       echo " " >&6
17667       sed 's/^/link-fail: /' conftest.err >&6
17668       echo " " >&6
17669
17670 fi
17671 rm -f core conftest.err conftest.$ac_objext \
17672     conftest$ac_exeext conftest.$ac_ext
17673   fi
17674     if test "x$cross_compiling" != "xyes" &&
17675     test "$tmp_compiler_works" = "yes"; then
17676     if test "$cross_compiling" = yes; then :
17677   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17679 as_fn_error $? "cannot run test program while cross compiling
17680 See \`config.log' for more details" "$LINENO" 5; }
17681 else
17682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683 /* end confdefs.h.  */
17684
17685
17686 #       ifdef __STDC__
17687 #         include <stdlib.h>
17688 #       endif
17689
17690 int main (void)
17691 {
17692
17693         int i = 0;
17694         exit(i);
17695
17696  ;
17697  return 0;
17698 }
17699
17700 _ACEOF
17701 if ac_fn_c_try_run "$LINENO"; then :
17702
17703       tmp_compiler_works="yes"
17704
17705 else
17706
17707       tmp_compiler_works="no"
17708       echo " " >&6
17709       echo "run-fail: test program exited with status $ac_status" >&6
17710       echo " " >&6
17711
17712 fi
17713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17714   conftest.$ac_objext conftest.beam conftest.$ac_ext
17715 fi
17716
17717   fi
17718     if test "$tmp_compiler_works" = "yes"; then
17719
17720       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17721 $as_echo "yes" >&6; }
17722       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17723 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17724
17725   else
17726
17727       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17728 $as_echo "no" >&6; }
17729       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17730 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17731             CPPFLAGS="$tmp_save_CPPFLAGS"
17732       CFLAGS="$tmp_save_CFLAGS"
17733
17734   fi
17735
17736     #
17737   fi
17738
17739
17740         #
17741   if test "$compiler_id" != "unknown"; then
17742     #
17743     tmp_save_CFLAGS="$CFLAGS"
17744     tmp_save_CPPFLAGS="$CPPFLAGS"
17745     #
17746     tmp_options=""
17747     tmp_CFLAGS="$CFLAGS"
17748     tmp_CPPFLAGS="$CPPFLAGS"
17749     honor_optimize_option="yes"
17750     #
17751                         #
17752     if test "$want_optimize" = "assume_no" ||
17753        test "$want_optimize" = "assume_yes"; then
17754       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17755 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17756
17757
17758   ac_var_match_word="no"
17759   for word1 in $tmp_CFLAGS; do
17760     for word2 in $flags_opt_all; do
17761       if test "$word1" = "$word2"; then
17762         ac_var_match_word="yes"
17763       fi
17764     done
17765   done
17766
17767   if test "$ac_var_match_word" = "yes"; then
17768
17769         honor_optimize_option="no"
17770
17771
17772   fi
17773
17774
17775
17776   ac_var_match_word="no"
17777   for word1 in $tmp_CPPFLAGS; do
17778     for word2 in $flags_opt_all; do
17779       if test "$word1" = "$word2"; then
17780         ac_var_match_word="yes"
17781       fi
17782     done
17783   done
17784
17785   if test "$ac_var_match_word" = "yes"; then
17786
17787         honor_optimize_option="no"
17788
17789
17790   fi
17791
17792       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17793 $as_echo "$honor_optimize_option" >&6; }
17794       if test "$honor_optimize_option" = "yes"; then
17795         if test "$want_optimize" = "assume_yes"; then
17796           want_optimize="yes"
17797         fi
17798         if test "$want_optimize" = "assume_no"; then
17799           want_optimize="no"
17800         fi
17801       fi
17802     fi
17803     #
17804     if test "$honor_optimize_option" = "yes"; then
17805
17806     ac_var_stripped=""
17807   for word1 in $tmp_CFLAGS; do
17808     ac_var_strip_word="no"
17809     for word2 in $flags_opt_all; do
17810       if test "$word1" = "$word2"; then
17811         ac_var_strip_word="yes"
17812       fi
17813     done
17814     if test "$ac_var_strip_word" = "no"; then
17815       ac_var_stripped="$ac_var_stripped $word1"
17816     fi
17817   done
17818     tmp_CFLAGS="$ac_var_stripped"
17819   squeeze tmp_CFLAGS
17820
17821
17822     ac_var_stripped=""
17823   for word1 in $tmp_CPPFLAGS; do
17824     ac_var_strip_word="no"
17825     for word2 in $flags_opt_all; do
17826       if test "$word1" = "$word2"; then
17827         ac_var_strip_word="yes"
17828       fi
17829     done
17830     if test "$ac_var_strip_word" = "no"; then
17831       ac_var_stripped="$ac_var_stripped $word1"
17832     fi
17833   done
17834     tmp_CPPFLAGS="$ac_var_stripped"
17835   squeeze tmp_CPPFLAGS
17836
17837       if test "$want_optimize" = "yes"; then
17838         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17839 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17840         tmp_options="$flags_opt_yes"
17841       fi
17842       if test "$want_optimize" = "no"; then
17843         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17844 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17845         tmp_options="$flags_opt_off"
17846       fi
17847       if test "$flags_prefer_cppflags" = "yes"; then
17848         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17849         CFLAGS="$tmp_CFLAGS"
17850       else
17851         CPPFLAGS="$tmp_CPPFLAGS"
17852         CFLAGS="$tmp_CFLAGS $tmp_options"
17853       fi
17854       squeeze CPPFLAGS
17855       squeeze CFLAGS
17856
17857     tmp_compiler_works="unknown"
17858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859 /* end confdefs.h.  */
17860
17861
17862
17863 int main (void)
17864 {
17865
17866       int i = 1;
17867       return i;
17868
17869  ;
17870  return 0;
17871 }
17872
17873 _ACEOF
17874 if ac_fn_c_try_compile "$LINENO"; then :
17875
17876     tmp_compiler_works="yes"
17877
17878 else
17879
17880     tmp_compiler_works="no"
17881     echo " " >&6
17882     sed 's/^/cc-fail: /' conftest.err >&6
17883     echo " " >&6
17884
17885 fi
17886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17887     if test "$tmp_compiler_works" = "yes"; then
17888     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889 /* end confdefs.h.  */
17890
17891
17892
17893 int main (void)
17894 {
17895
17896         int i = 1;
17897         return i;
17898
17899  ;
17900  return 0;
17901 }
17902
17903 _ACEOF
17904 if ac_fn_c_try_link "$LINENO"; then :
17905
17906       tmp_compiler_works="yes"
17907
17908 else
17909
17910       tmp_compiler_works="no"
17911       echo " " >&6
17912       sed 's/^/link-fail: /' conftest.err >&6
17913       echo " " >&6
17914
17915 fi
17916 rm -f core conftest.err conftest.$ac_objext \
17917     conftest$ac_exeext conftest.$ac_ext
17918   fi
17919     if test "x$cross_compiling" != "xyes" &&
17920     test "$tmp_compiler_works" = "yes"; then
17921     if test "$cross_compiling" = yes; then :
17922   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17924 as_fn_error $? "cannot run test program while cross compiling
17925 See \`config.log' for more details" "$LINENO" 5; }
17926 else
17927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h.  */
17929
17930
17931 #       ifdef __STDC__
17932 #         include <stdlib.h>
17933 #       endif
17934
17935 int main (void)
17936 {
17937
17938         int i = 0;
17939         exit(i);
17940
17941  ;
17942  return 0;
17943 }
17944
17945 _ACEOF
17946 if ac_fn_c_try_run "$LINENO"; then :
17947
17948       tmp_compiler_works="yes"
17949
17950 else
17951
17952       tmp_compiler_works="no"
17953       echo " " >&6
17954       echo "run-fail: test program exited with status $ac_status" >&6
17955       echo " " >&6
17956
17957 fi
17958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17959   conftest.$ac_objext conftest.beam conftest.$ac_ext
17960 fi
17961
17962   fi
17963     if test "$tmp_compiler_works" = "yes"; then
17964
17965         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17966 $as_echo "yes" >&6; }
17967         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17968 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17969
17970   else
17971
17972         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17973 $as_echo "no" >&6; }
17974         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17975 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17976                 CPPFLAGS="$tmp_save_CPPFLAGS"
17977         CFLAGS="$tmp_save_CFLAGS"
17978
17979   fi
17980
17981     fi
17982     #
17983   fi
17984
17985
17986         #
17987   if test "$compiler_id" != "unknown"; then
17988     #
17989     tmp_save_CPPFLAGS="$CPPFLAGS"
17990     tmp_save_CFLAGS="$CFLAGS"
17991     tmp_CPPFLAGS=""
17992     tmp_CFLAGS=""
17993     #
17994     case "$compiler_id" in
17995         #
17996       CLANG)
17997         #
17998         if test "$want_warnings" = "yes"; then
17999           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18000           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18001           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
18002           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
18003           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18004           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18005           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18006           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18007           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18008           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18009           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18010           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18011           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18012           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18013           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18014           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18015           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
18016           #
18017                     if test "$compiler_num" -ge "101"; then
18018             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
18019           fi
18020         fi
18021         ;;
18022         #
18023       DEC_C)
18024         #
18025         if test "$want_warnings" = "yes"; then
18026                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
18027         fi
18028         ;;
18029         #
18030       GNU_C)
18031         #
18032         if test "$want_warnings" = "yes"; then
18033           #
18034                               if test "x$cross_compiling" != "xyes" ||
18035             test "$compiler_num" -ge "300"; then
18036             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18037           fi
18038           #
18039                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
18040           #
18041                     if test "$compiler_num" -ge "104"; then
18042             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
18043                         if test "x$cross_compiling" != "xyes" ||
18044               test "$compiler_num" -ge "300"; then
18045               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
18046             fi
18047           fi
18048           #
18049                     if test "$compiler_num" -ge "207"; then
18050             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18051                         if test "x$cross_compiling" != "xyes" ||
18052               test "$compiler_num" -ge "300"; then
18053               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18054               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18055             fi
18056           fi
18057           #
18058                     if test "$compiler_num" -ge "295"; then
18059             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18060           fi
18061           #
18062                     if test "$compiler_num" -ge "296"; then
18063             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18064             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18065                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18066           fi
18067           #
18068                     if test "$compiler_num" -ge "297"; then
18069             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18070           fi
18071           #
18072                     if test "$compiler_num" -ge "300"; then
18073                                                             tmp_CFLAGS="$tmp_CFLAGS"
18074           fi
18075           #
18076                     if test "$compiler_num" -ge "303"; then
18077             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18078           fi
18079           #
18080                     if test "$compiler_num" -ge "304"; then
18081             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18082           fi
18083           #
18084                     if test "$compiler_num" -ge "400"; then
18085             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18086           fi
18087           #
18088                     if test "$compiler_num" -ge "402"; then
18089             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18090           fi
18091           #
18092                     if test "$compiler_num" -ge "403"; then
18093             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18094             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18095             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18096             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18097           fi
18098           #
18099                     if test "$compiler_num" -ge "405"; then
18100                         if test "$curl_cv_have_def__WIN32" = "yes"; then
18101               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18102             fi
18103           fi
18104           #
18105         fi
18106         #
18107                 if test "$compiler_num" -ge "300"; then
18108           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18109         else
18110                               if test "x$cross_compiling" = "xyes"; then
18111             if test "$compiler_num" -ge "104"; then
18112                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18113             fi
18114             if test "$compiler_num" -ge "207"; then
18115                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18116               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18117             fi
18118           fi
18119         fi
18120         ;;
18121         #
18122       HP_UX_C)
18123         #
18124         if test "$want_warnings" = "yes"; then
18125                     tmp_CFLAGS="$tmp_CFLAGS +w1"
18126         fi
18127         ;;
18128         #
18129       IBM_C)
18130         #
18131                 tmp_CFLAGS="$tmp_CFLAGS"
18132         ;;
18133         #
18134       INTEL_UNIX_C)
18135         #
18136         if test "$want_warnings" = "yes"; then
18137           if test "$compiler_num" -gt "600"; then
18138                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18139                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18140                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18141                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18142                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18143                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18144                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18145                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18146                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18147                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18148                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18149           fi
18150         fi
18151                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18152                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18153                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18154                 if test "$compiler_num" -ge "1000"; then
18155                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18156         fi
18157         ;;
18158         #
18159       INTEL_WINDOWS_C)
18160         #
18161                 tmp_CFLAGS="$tmp_CFLAGS"
18162         ;;
18163         #
18164       LCC)
18165         #
18166         if test "$want_warnings" = "yes"; then
18167                                                   tmp_CFLAGS="$tmp_CFLAGS"
18168         fi
18169         ;;
18170         #
18171       SGI_MIPS_C)
18172         #
18173         if test "$want_warnings" = "yes"; then
18174                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18175         fi
18176         ;;
18177         #
18178       SGI_MIPSPRO_C)
18179         #
18180         if test "$want_warnings" = "yes"; then
18181                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18182                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18183         fi
18184         ;;
18185         #
18186       SUNPRO_C)
18187         #
18188         if test "$want_warnings" = "yes"; then
18189                     tmp_CFLAGS="$tmp_CFLAGS -v"
18190         fi
18191         ;;
18192         #
18193       TINY_C)
18194         #
18195         if test "$want_warnings" = "yes"; then
18196                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
18197                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18198                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18199         fi
18200         ;;
18201         #
18202       WATCOM_UNIX_C)
18203         #
18204         if test "$want_warnings" = "yes"; then
18205                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18206         fi
18207         ;;
18208         #
18209       WATCOM_WINDOWS_C)
18210         #
18211                 tmp_CFLAGS="$tmp_CFLAGS"
18212         ;;
18213         #
18214     esac
18215     #
18216     squeeze tmp_CPPFLAGS
18217     squeeze tmp_CFLAGS
18218     #
18219     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18220       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18221 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18222       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18223       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18224       squeeze CPPFLAGS
18225       squeeze CFLAGS
18226
18227     tmp_compiler_works="unknown"
18228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h.  */
18230
18231
18232
18233 int main (void)
18234 {
18235
18236       int i = 1;
18237       return i;
18238
18239  ;
18240  return 0;
18241 }
18242
18243 _ACEOF
18244 if ac_fn_c_try_compile "$LINENO"; then :
18245
18246     tmp_compiler_works="yes"
18247
18248 else
18249
18250     tmp_compiler_works="no"
18251     echo " " >&6
18252     sed 's/^/cc-fail: /' conftest.err >&6
18253     echo " " >&6
18254
18255 fi
18256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18257     if test "$tmp_compiler_works" = "yes"; then
18258     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h.  */
18260
18261
18262
18263 int main (void)
18264 {
18265
18266         int i = 1;
18267         return i;
18268
18269  ;
18270  return 0;
18271 }
18272
18273 _ACEOF
18274 if ac_fn_c_try_link "$LINENO"; then :
18275
18276       tmp_compiler_works="yes"
18277
18278 else
18279
18280       tmp_compiler_works="no"
18281       echo " " >&6
18282       sed 's/^/link-fail: /' conftest.err >&6
18283       echo " " >&6
18284
18285 fi
18286 rm -f core conftest.err conftest.$ac_objext \
18287     conftest$ac_exeext conftest.$ac_ext
18288   fi
18289     if test "x$cross_compiling" != "xyes" &&
18290     test "$tmp_compiler_works" = "yes"; then
18291     if test "$cross_compiling" = yes; then :
18292   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18294 as_fn_error $? "cannot run test program while cross compiling
18295 See \`config.log' for more details" "$LINENO" 5; }
18296 else
18297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18298 /* end confdefs.h.  */
18299
18300
18301 #       ifdef __STDC__
18302 #         include <stdlib.h>
18303 #       endif
18304
18305 int main (void)
18306 {
18307
18308         int i = 0;
18309         exit(i);
18310
18311  ;
18312  return 0;
18313 }
18314
18315 _ACEOF
18316 if ac_fn_c_try_run "$LINENO"; then :
18317
18318       tmp_compiler_works="yes"
18319
18320 else
18321
18322       tmp_compiler_works="no"
18323       echo " " >&6
18324       echo "run-fail: test program exited with status $ac_status" >&6
18325       echo " " >&6
18326
18327 fi
18328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18329   conftest.$ac_objext conftest.beam conftest.$ac_ext
18330 fi
18331
18332   fi
18333     if test "$tmp_compiler_works" = "yes"; then
18334
18335         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18336 $as_echo "yes" >&6; }
18337         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18338 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18339
18340   else
18341
18342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18343 $as_echo "no" >&6; }
18344         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18345 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18346                 CPPFLAGS="$tmp_save_CPPFLAGS"
18347         CFLAGS="$tmp_save_CFLAGS"
18348
18349   fi
18350
18351     fi
18352     #
18353   fi
18354
18355
18356 if test "$compiler_id" = "INTEL_UNIX_C"; then
18357   #
18358   if test "$compiler_num" -ge "1000"; then
18359         CFLAGS="$CFLAGS -shared-intel"
18360   elif test "$compiler_num" -ge "900"; then
18361         CFLAGS="$CFLAGS -i-dynamic"
18362   fi
18363   #
18364 fi
18365
18366
18367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18368 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18370 /* end confdefs.h.  */
18371
18372
18373
18374 int main (void)
18375 {
18376
18377       force compilation error
18378
18379  ;
18380  return 0;
18381 }
18382
18383 _ACEOF
18384 if ac_fn_c_try_compile "$LINENO"; then :
18385
18386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18387 $as_echo "no" >&6; }
18388     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18389
18390 else
18391
18392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18393 $as_echo "yes" >&6; }
18394
18395 fi
18396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18397
18398
18399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18400 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h.  */
18403
18404
18405       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18406
18407 int main (void)
18408 {
18409
18410       bad_t dummy;
18411
18412  ;
18413  return 0;
18414 }
18415
18416 _ACEOF
18417 if ac_fn_c_try_compile "$LINENO"; then :
18418
18419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18420 $as_echo "no" >&6; }
18421     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18422
18423 else
18424
18425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18426 $as_echo "yes" >&6; }
18427
18428 fi
18429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430
18431
18432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18433 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435 /* end confdefs.h.  */
18436
18437
18438 #     include <stdlib.h>
18439       int rand(int n);
18440       int rand(int n)
18441       {
18442         if(n)
18443           return ++n;
18444         else
18445           return n;
18446       }
18447
18448 int main (void)
18449 {
18450
18451       int i[2]={0,0};
18452       int j = rand(i[0]);
18453       if(j)
18454         return j;
18455
18456  ;
18457  return 0;
18458 }
18459
18460 _ACEOF
18461 if ac_fn_c_try_compile "$LINENO"; then :
18462
18463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18464 $as_echo "no" >&6; }
18465     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18466
18467 else
18468
18469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18470 $as_echo "yes" >&6; }
18471
18472 fi
18473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474
18475
18476       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18477 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18478   supports_symbol_hiding="no"
18479   symbol_hiding_CFLAGS=""
18480   symbol_hiding_EXTERN=""
18481   tmp_CFLAGS=""
18482   tmp_EXTERN=""
18483   case "$compiler_id" in
18484     CLANG)
18485             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18486       tmp_CFLAGS="-fvisibility=hidden"
18487       supports_symbol_hiding="yes"
18488       ;;
18489     GNU_C)
18490             if test "$compiler_num" -ge "304"; then
18491         if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18492           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18493           tmp_CFLAGS="-fvisibility=hidden"
18494           supports_symbol_hiding="yes"
18495         fi
18496       fi
18497       ;;
18498     INTEL_UNIX_C)
18499             if test "$compiler_num" -ge "900"; then
18500         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18501           tmp_save_CFLAGS="$CFLAGS"
18502           CFLAGS="$CFLAGS -fvisibility=hidden"
18503           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504 /* end confdefs.h.  */
18505
18506
18507 #             include <stdio.h>
18508
18509 int main (void)
18510 {
18511
18512               printf("icc fvisibility bug test");
18513
18514  ;
18515  return 0;
18516 }
18517
18518 _ACEOF
18519 if ac_fn_c_try_link "$LINENO"; then :
18520
18521             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18522             tmp_CFLAGS="-fvisibility=hidden"
18523             supports_symbol_hiding="yes"
18524
18525 fi
18526 rm -f core conftest.err conftest.$ac_objext \
18527     conftest$ac_exeext conftest.$ac_ext
18528           CFLAGS="$tmp_save_CFLAGS"
18529         fi
18530       fi
18531       ;;
18532     SUNPRO_C)
18533       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18534         tmp_EXTERN="__global"
18535         tmp_CFLAGS="-xldscope=hidden"
18536         supports_symbol_hiding="yes"
18537       fi
18538       ;;
18539   esac
18540   if test "$supports_symbol_hiding" = "yes"; then
18541     tmp_save_CFLAGS="$CFLAGS"
18542     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18543     squeeze CFLAGS
18544     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h.  */
18546
18547
18548         $tmp_EXTERN char *dummy(char *buff);
18549         char *dummy(char *buff)
18550         {
18551          if(buff)
18552            return ++buff;
18553          else
18554            return buff;
18555         }
18556
18557 int main (void)
18558 {
18559
18560         char b[16];
18561         char *r = dummy(&b[0]);
18562         if(r)
18563           return (int)*r;
18564
18565  ;
18566  return 0;
18567 }
18568
18569 _ACEOF
18570 if ac_fn_c_try_compile "$LINENO"; then :
18571
18572       supports_symbol_hiding="yes"
18573       if test -f conftest.err; then
18574         grep 'visibility' conftest.err >/dev/null
18575         if test "$?" -eq "0"; then
18576           supports_symbol_hiding="no"
18577         fi
18578       fi
18579
18580 else
18581
18582       supports_symbol_hiding="no"
18583       echo " " >&6
18584       sed 's/^/cc-src: /' conftest.$ac_ext >&6
18585       sed 's/^/cc-err: /' conftest.err >&6
18586       echo " " >&6
18587
18588 fi
18589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18590     CFLAGS="$tmp_save_CFLAGS"
18591   fi
18592   if test "$supports_symbol_hiding" = "yes"; then
18593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18594 $as_echo "yes" >&6; }
18595     symbol_hiding_CFLAGS="$tmp_CFLAGS"
18596     symbol_hiding_EXTERN="$tmp_EXTERN"
18597   else
18598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18599 $as_echo "no" >&6; }
18600   fi
18601
18602
18603
18604       supports_curldebug="unknown"
18605   if test "$want_curldebug" = "yes"; then
18606     if test "x$enable_shared" != "xno" &&
18607       test "x$enable_shared" != "xyes"; then
18608       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18609 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18610       supports_curldebug="no"
18611     fi
18612     if test "x$enable_static" != "xno" &&
18613       test "x$enable_static" != "xyes"; then
18614       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18615 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18616       supports_curldebug="no"
18617     fi
18618     if test "$supports_curldebug" != "no"; then
18619       if test "$enable_shared" = "yes" &&
18620         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18621         supports_curldebug="no"
18622         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18623 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18624       fi
18625     fi
18626   fi
18627   #
18628   if test "$want_curldebug" = "yes"; then
18629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18630 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18631     test "$supports_curldebug" = "no" || supports_curldebug="yes"
18632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18633 $as_echo "$supports_curldebug" >&6; }
18634     if test "$supports_curldebug" = "no"; then
18635       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18636 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18637       want_curldebug="no"
18638     fi
18639   fi
18640   #
18641   if test "$want_curldebug" = "yes"; then
18642     CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18643     squeeze CPPFLAGS
18644   fi
18645   if test "$want_debug" = "yes"; then
18646     CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18647     squeeze CPPFLAGS
18648   fi
18649
18650  if test x$want_curldebug = xyes; then
18651   CURLDEBUG_TRUE=
18652   CURLDEBUG_FALSE='#'
18653 else
18654   CURLDEBUG_TRUE='#'
18655   CURLDEBUG_FALSE=
18656 fi
18657
18658
18659 supports_unittests=yes
18660 # cross-compilation of unit tests static library/programs fails when
18661 # libcurl shared library is built. This might be due to a libtool or
18662 # automake issue. In this case we disable unit tests.
18663 if test "x$cross_compiling" != "xno" &&
18664    test "x$enable_shared" != "xno"; then
18665   supports_unittests=no
18666 fi
18667
18668 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18669 # a problem related with OpenSSL headers and library versions not matching.
18670 # Disable unit tests while time to further investigate this is found.
18671 case $host in
18672   mips-sgi-irix6.5)
18673     if test "$compiler_id" = "GNU_C"; then
18674       supports_unittests=no
18675     fi
18676     ;;
18677 esac
18678
18679 # All AIX autobuilds fails unit tests linking against unittests library
18680 # due to unittests library being built with no symbols or members. Libtool ?
18681 # Disable unit tests while time to further investigate this is found.
18682 case $host_os in
18683   aix*)
18684     supports_unittests=no
18685     ;;
18686 esac
18687
18688 if test "x$want_debug" = "xyes" &&
18689    test "x$supports_unittests" = "xyes"; then
18690   want_unittests=yes
18691 else
18692   want_unittests=no
18693 fi
18694  if test x$want_unittests = xyes; then
18695   BUILD_UNITTESTS_TRUE=
18696   BUILD_UNITTESTS_FALSE='#'
18697 else
18698   BUILD_UNITTESTS_TRUE='#'
18699   BUILD_UNITTESTS_FALSE=
18700 fi
18701
18702
18703
18704
18705
18706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18707 $as_echo_n "checking for windows.h... " >&6; }
18708 if ${curl_cv_header_windows_h+:} false; then :
18709   $as_echo_n "(cached) " >&6
18710 else
18711
18712     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h.  */
18714
18715
18716 #undef inline
18717 #ifndef WIN32_LEAN_AND_MEAN
18718 #define WIN32_LEAN_AND_MEAN
18719 #endif
18720 #include <windows.h>
18721
18722 int main (void)
18723 {
18724
18725 #if defined(__CYGWIN__) || defined(__CEGCC__)
18726         HAVE_WINDOWS_H shall not be defined.
18727 #else
18728         int dummy=2*WINVER;
18729 #endif
18730
18731  ;
18732  return 0;
18733 }
18734
18735 _ACEOF
18736 if ac_fn_c_try_compile "$LINENO"; then :
18737
18738       curl_cv_header_windows_h="yes"
18739
18740 else
18741
18742       curl_cv_header_windows_h="no"
18743
18744 fi
18745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18746
18747 fi
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18749 $as_echo "$curl_cv_header_windows_h" >&6; }
18750   case "$curl_cv_header_windows_h" in
18751     yes)
18752
18753 cat >>confdefs.h <<_ACEOF
18754 #define HAVE_WINDOWS_H 1
18755 _ACEOF
18756
18757
18758 cat >>confdefs.h <<_ACEOF
18759 #define WIN32_LEAN_AND_MEAN 1
18760 _ACEOF
18761
18762       ;;
18763   esac
18764
18765
18766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18767 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18768 if ${curl_cv_native_windows+:} false; then :
18769   $as_echo_n "(cached) " >&6
18770 else
18771
18772     if test "$curl_cv_header_windows_h" = "no"; then
18773       curl_cv_native_windows="no"
18774     else
18775       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h.  */
18777
18778
18779
18780 int main (void)
18781 {
18782
18783 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18784    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18785           int dummy=1;
18786 #else
18787           Not a native Windows build target.
18788 #endif
18789
18790  ;
18791  return 0;
18792 }
18793
18794 _ACEOF
18795 if ac_fn_c_try_compile "$LINENO"; then :
18796
18797         curl_cv_native_windows="yes"
18798
18799 else
18800
18801         curl_cv_native_windows="no"
18802
18803 fi
18804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18805     fi
18806
18807 fi
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18809 $as_echo "$curl_cv_native_windows" >&6; }
18810    if test "x$curl_cv_native_windows" = xyes; then
18811   DOING_NATIVE_WINDOWS_TRUE=
18812   DOING_NATIVE_WINDOWS_FALSE='#'
18813 else
18814   DOING_NATIVE_WINDOWS_TRUE='#'
18815   DOING_NATIVE_WINDOWS_FALSE=
18816 fi
18817
18818
18819 case X-"$curl_cv_native_windows" in
18820   X-yes)
18821
18822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18823 $as_echo_n "checking for winsock.h... " >&6; }
18824 if ${curl_cv_header_winsock_h+:} false; then :
18825   $as_echo_n "(cached) " >&6
18826 else
18827
18828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18829 /* end confdefs.h.  */
18830
18831
18832 #undef inline
18833 #ifndef WIN32_LEAN_AND_MEAN
18834 #define WIN32_LEAN_AND_MEAN
18835 #endif
18836 #include <windows.h>
18837 #include <winsock.h>
18838
18839 int main (void)
18840 {
18841
18842 #if defined(__CYGWIN__) || defined(__CEGCC__)
18843         HAVE_WINSOCK_H shall not be defined.
18844 #else
18845         int dummy=WSACleanup();
18846 #endif
18847
18848  ;
18849  return 0;
18850 }
18851
18852 _ACEOF
18853 if ac_fn_c_try_compile "$LINENO"; then :
18854
18855       curl_cv_header_winsock_h="yes"
18856
18857 else
18858
18859       curl_cv_header_winsock_h="no"
18860
18861 fi
18862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18863
18864 fi
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18866 $as_echo "$curl_cv_header_winsock_h" >&6; }
18867   case "$curl_cv_header_winsock_h" in
18868     yes)
18869
18870 cat >>confdefs.h <<_ACEOF
18871 #define HAVE_WINSOCK_H 1
18872 _ACEOF
18873
18874       ;;
18875   esac
18876
18877
18878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18879 $as_echo_n "checking for winsock2.h... " >&6; }
18880 if ${curl_cv_header_winsock2_h+:} false; then :
18881   $as_echo_n "(cached) " >&6
18882 else
18883
18884     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h.  */
18886
18887
18888 #undef inline
18889 #ifndef WIN32_LEAN_AND_MEAN
18890 #define WIN32_LEAN_AND_MEAN
18891 #endif
18892 #include <windows.h>
18893 #include <winsock2.h>
18894
18895 int main (void)
18896 {
18897
18898 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18899         HAVE_WINSOCK2_H shall not be defined.
18900 #else
18901         int dummy=2*IPPROTO_ESP;
18902 #endif
18903
18904  ;
18905  return 0;
18906 }
18907
18908 _ACEOF
18909 if ac_fn_c_try_compile "$LINENO"; then :
18910
18911       curl_cv_header_winsock2_h="yes"
18912
18913 else
18914
18915       curl_cv_header_winsock2_h="no"
18916
18917 fi
18918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18919
18920 fi
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18922 $as_echo "$curl_cv_header_winsock2_h" >&6; }
18923   case "$curl_cv_header_winsock2_h" in
18924     yes)
18925
18926 cat >>confdefs.h <<_ACEOF
18927 #define HAVE_WINSOCK2_H 1
18928 _ACEOF
18929
18930       ;;
18931   esac
18932
18933
18934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18935 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18936 if ${curl_cv_header_ws2tcpip_h+:} false; then :
18937   $as_echo_n "(cached) " >&6
18938 else
18939
18940     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h.  */
18942
18943
18944 #undef inline
18945 #ifndef WIN32_LEAN_AND_MEAN
18946 #define WIN32_LEAN_AND_MEAN
18947 #endif
18948 #include <windows.h>
18949 #include <winsock2.h>
18950 #include <ws2tcpip.h>
18951
18952 int main (void)
18953 {
18954
18955 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18956         HAVE_WS2TCPIP_H shall not be defined.
18957 #else
18958         int dummy=2*IP_PKTINFO;
18959 #endif
18960
18961  ;
18962  return 0;
18963 }
18964
18965 _ACEOF
18966 if ac_fn_c_try_compile "$LINENO"; then :
18967
18968       curl_cv_header_ws2tcpip_h="yes"
18969
18970 else
18971
18972       curl_cv_header_ws2tcpip_h="no"
18973
18974 fi
18975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18976
18977 fi
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18979 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18980   case "$curl_cv_header_ws2tcpip_h" in
18981     yes)
18982
18983 cat >>confdefs.h <<_ACEOF
18984 #define HAVE_WS2TCPIP_H 1
18985 _ACEOF
18986
18987       ;;
18988   esac
18989
18990
18991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18992 $as_echo_n "checking for winldap.h... " >&6; }
18993 if ${curl_cv_header_winldap_h+:} false; then :
18994   $as_echo_n "(cached) " >&6
18995 else
18996
18997     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h.  */
18999
19000
19001 #undef inline
19002 #ifdef HAVE_WINDOWS_H
19003 #ifndef WIN32_LEAN_AND_MEAN
19004 #define WIN32_LEAN_AND_MEAN
19005 #endif
19006 #include <windows.h>
19007 #endif
19008 #include <winldap.h>
19009
19010 int main (void)
19011 {
19012
19013 #if defined(__CYGWIN__) || defined(__CEGCC__)
19014         HAVE_WINLDAP_H shall not be defined.
19015 #else
19016         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
19017         ULONG res = ldap_unbind(ldp);
19018 #endif
19019
19020  ;
19021  return 0;
19022 }
19023
19024 _ACEOF
19025 if ac_fn_c_try_compile "$LINENO"; then :
19026
19027       curl_cv_header_winldap_h="yes"
19028
19029 else
19030
19031       curl_cv_header_winldap_h="no"
19032
19033 fi
19034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19035
19036 fi
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
19038 $as_echo "$curl_cv_header_winldap_h" >&6; }
19039   case "$curl_cv_header_winldap_h" in
19040     yes)
19041
19042 cat >>confdefs.h <<_ACEOF
19043 #define HAVE_WINLDAP_H 1
19044 _ACEOF
19045
19046       ;;
19047   esac
19048
19049
19050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
19051 $as_echo_n "checking for winber.h... " >&6; }
19052 if ${curl_cv_header_winber_h+:} false; then :
19053   $as_echo_n "(cached) " >&6
19054 else
19055
19056     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19057 /* end confdefs.h.  */
19058
19059
19060 #undef inline
19061 #ifdef HAVE_WINDOWS_H
19062 #ifndef WIN32_LEAN_AND_MEAN
19063 #define WIN32_LEAN_AND_MEAN
19064 #endif
19065 #include <windows.h>
19066 #endif
19067 #include <winldap.h>
19068 #include <winber.h>
19069
19070 int main (void)
19071 {
19072
19073 #if defined(__CYGWIN__) || defined(__CEGCC__)
19074         HAVE_WINBER_H shall not be defined.
19075 #else
19076         BERVAL *bvp = NULL;
19077         BerElement *bep = ber_init(bvp);
19078         ber_free(bep, 1);
19079 #endif
19080
19081  ;
19082  return 0;
19083 }
19084
19085 _ACEOF
19086 if ac_fn_c_try_compile "$LINENO"; then :
19087
19088       curl_cv_header_winber_h="yes"
19089
19090 else
19091
19092       curl_cv_header_winber_h="no"
19093
19094 fi
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19096
19097 fi
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19099 $as_echo "$curl_cv_header_winber_h" >&6; }
19100   case "$curl_cv_header_winber_h" in
19101     yes)
19102
19103 cat >>confdefs.h <<_ACEOF
19104 #define HAVE_WINBER_H 1
19105 _ACEOF
19106
19107       ;;
19108   esac
19109
19110     ;;
19111   *)
19112     curl_cv_header_winsock_h="no"
19113     curl_cv_header_winsock2_h="no"
19114     curl_cv_header_ws2tcpip_h="no"
19115     curl_cv_header_winldap_h="no"
19116     curl_cv_header_winber_h="no"
19117     ;;
19118 esac
19119
19120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19121 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19122   curl_win32_file_api="no"
19123   if test "$curl_cv_header_windows_h" = "yes"; then
19124     if test x"$enable_largefile" != "xno"; then
19125       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19126 /* end confdefs.h.  */
19127
19128
19129
19130 int main (void)
19131 {
19132
19133 #if !defined(_WIN32_WCE) && \
19134     (defined(__MINGW32__) || \
19135     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19136           int dummy=1;
19137 #else
19138           WIN32 large file API not supported.
19139 #endif
19140
19141  ;
19142  return 0;
19143 }
19144
19145 _ACEOF
19146 if ac_fn_c_try_compile "$LINENO"; then :
19147
19148         curl_win32_file_api="win32_large_files"
19149
19150 fi
19151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19152     fi
19153     if test "$curl_win32_file_api" = "no"; then
19154       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h.  */
19156
19157
19158
19159 int main (void)
19160 {
19161
19162 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19163           int dummy=1;
19164 #else
19165           WIN32 small file API not supported.
19166 #endif
19167
19168  ;
19169  return 0;
19170 }
19171
19172 _ACEOF
19173 if ac_fn_c_try_compile "$LINENO"; then :
19174
19175         curl_win32_file_api="win32_small_files"
19176
19177 fi
19178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19179     fi
19180   fi
19181   case "$curl_win32_file_api" in
19182     win32_large_files)
19183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19184 $as_echo "yes (large file enabled)" >&6; }
19185
19186 cat >>confdefs.h <<_ACEOF
19187 #define USE_WIN32_LARGE_FILES 1
19188 _ACEOF
19189
19190       ;;
19191     win32_small_files)
19192       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19193 $as_echo "yes (large file disabled)" >&6; }
19194
19195 cat >>confdefs.h <<_ACEOF
19196 #define USE_WIN32_SMALL_FILES 1
19197 _ACEOF
19198
19199       ;;
19200     *)
19201       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19202 $as_echo "no" >&6; }
19203       ;;
19204   esac
19205
19206
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19208 $as_echo_n "checking whether to support http... " >&6; }
19209 # Check whether --enable-http was given.
19210 if test "${enable_http+set}" = set; then :
19211   enableval=$enable_http;  case "$enableval" in
19212   no)
19213        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19214 $as_echo "no" >&6; }
19215
19216 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19217
19218        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19219 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19220        CURL_DISABLE_HTTP=1
19221
19222
19223 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19224
19225        CURL_DISABLE_RTSP=1
19226
19227        ;;
19228   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19229 $as_echo "yes" >&6; }
19230        ;;
19231   esac
19232 else
19233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19234 $as_echo "yes" >&6; }
19235
19236 fi
19237
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19239 $as_echo_n "checking whether to support ftp... " >&6; }
19240 # Check whether --enable-ftp was given.
19241 if test "${enable_ftp+set}" = set; then :
19242   enableval=$enable_ftp;  case "$enableval" in
19243   no)
19244        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 $as_echo "no" >&6; }
19246
19247 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19248
19249        CURL_DISABLE_FTP=1
19250
19251        ;;
19252   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19253 $as_echo "yes" >&6; }
19254        ;;
19255   esac
19256 else
19257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19258 $as_echo "yes" >&6; }
19259
19260 fi
19261
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19263 $as_echo_n "checking whether to support file... " >&6; }
19264 # Check whether --enable-file was given.
19265 if test "${enable_file+set}" = set; then :
19266   enableval=$enable_file;  case "$enableval" in
19267   no)
19268        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19269 $as_echo "no" >&6; }
19270
19271 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19272
19273        CURL_DISABLE_FILE=1
19274
19275        ;;
19276   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19277 $as_echo "yes" >&6; }
19278        ;;
19279   esac
19280 else
19281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19282 $as_echo "yes" >&6; }
19283
19284 fi
19285
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19287 $as_echo_n "checking whether to support ldap... " >&6; }
19288 # Check whether --enable-ldap was given.
19289 if test "${enable_ldap+set}" = set; then :
19290   enableval=$enable_ldap;  case "$enableval" in
19291   no)
19292        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19293 $as_echo "no" >&6; }
19294
19295 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19296
19297        CURL_DISABLE_LDAP=1
19298
19299        ;;
19300   *)
19301        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19302 $as_echo "yes" >&6; }
19303        ;;
19304   esac
19305 else
19306
19307        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308 $as_echo "yes" >&6; }
19309
19310 fi
19311
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19313 $as_echo_n "checking whether to support ldaps... " >&6; }
19314 # Check whether --enable-ldaps was given.
19315 if test "${enable_ldaps+set}" = set; then :
19316   enableval=$enable_ldaps;  case "$enableval" in
19317   no)
19318        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319 $as_echo "no" >&6; }
19320
19321 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19322
19323        CURL_DISABLE_LDAPS=1
19324
19325        ;;
19326   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19327          { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19328 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19329
19330 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19331
19332          CURL_DISABLE_LDAPS=1
19333
19334        else
19335          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19336 $as_echo "yes" >&6; }
19337
19338 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19339
19340          HAVE_LDAP_SSL=1
19341
19342        fi
19343        ;;
19344   esac
19345 else
19346
19347        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19348          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19349 $as_echo "no" >&6; }
19350
19351 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19352
19353          CURL_DISABLE_LDAPS=1
19354
19355        else
19356          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19357 $as_echo "yes" >&6; }
19358
19359 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19360
19361          HAVE_LDAP_SSL=1
19362
19363        fi
19364
19365 fi
19366
19367
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19369 $as_echo_n "checking whether to support rtsp... " >&6; }
19370 # Check whether --enable-rtsp was given.
19371 if test "${enable_rtsp+set}" = set; then :
19372   enableval=$enable_rtsp;  case "$enableval" in
19373   no)
19374        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19375 $as_echo "no" >&6; }
19376
19377 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19378
19379        CURL_DISABLE_RTSP=1
19380
19381        ;;
19382   *)   if test x$CURL_DISABLE_HTTP = x1 ; then
19383           as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19384        else
19385           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19386 $as_echo "yes" >&6; }
19387           curl_rtsp_msg="enabled"
19388        fi
19389        ;;
19390   esac
19391 else
19392   if test "x$CURL_DISABLE_HTTP" != "x1"; then
19393           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19394 $as_echo "yes" >&6; }
19395           curl_rtsp_msg="enabled"
19396        else
19397           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19398 $as_echo "no" >&6; }
19399        fi
19400
19401 fi
19402
19403
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19405 $as_echo_n "checking whether to support proxies... " >&6; }
19406 # Check whether --enable-proxy was given.
19407 if test "${enable_proxy+set}" = set; then :
19408   enableval=$enable_proxy;  case "$enableval" in
19409   no)
19410        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19411 $as_echo "no" >&6; }
19412
19413 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19414
19415        CURL_DISABLE_PROXY=1
19416
19417        ;;
19418   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19419 $as_echo "yes" >&6; }
19420        ;;
19421   esac
19422 else
19423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19424 $as_echo "yes" >&6; }
19425
19426 fi
19427
19428
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19430 $as_echo_n "checking whether to support dict... " >&6; }
19431 # Check whether --enable-dict was given.
19432 if test "${enable_dict+set}" = set; then :
19433   enableval=$enable_dict;  case "$enableval" in
19434   no)
19435        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19436 $as_echo "no" >&6; }
19437
19438 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19439
19440        CURL_DISABLE_DICT=1
19441
19442        ;;
19443   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19444 $as_echo "yes" >&6; }
19445        ;;
19446   esac
19447 else
19448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19449 $as_echo "yes" >&6; }
19450
19451 fi
19452
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19454 $as_echo_n "checking whether to support telnet... " >&6; }
19455 # Check whether --enable-telnet was given.
19456 if test "${enable_telnet+set}" = set; then :
19457   enableval=$enable_telnet;  case "$enableval" in
19458   no)
19459        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19460 $as_echo "no" >&6; }
19461
19462 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19463
19464        CURL_DISABLE_TELNET=1
19465
19466        ;;
19467   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19468 $as_echo "yes" >&6; }
19469        ;;
19470   esac
19471 else
19472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19473 $as_echo "yes" >&6; }
19474
19475 fi
19476
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19478 $as_echo_n "checking whether to support tftp... " >&6; }
19479 # Check whether --enable-tftp was given.
19480 if test "${enable_tftp+set}" = set; then :
19481   enableval=$enable_tftp;  case "$enableval" in
19482   no)
19483        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19484 $as_echo "no" >&6; }
19485
19486 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19487
19488        CURL_DISABLE_TFTP=1
19489
19490        ;;
19491   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19492 $as_echo "yes" >&6; }
19493        ;;
19494   esac
19495 else
19496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19497 $as_echo "yes" >&6; }
19498
19499 fi
19500
19501
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19503 $as_echo_n "checking whether to support pop3... " >&6; }
19504 # Check whether --enable-pop3 was given.
19505 if test "${enable_pop3+set}" = set; then :
19506   enableval=$enable_pop3;  case "$enableval" in
19507   no)
19508        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19509 $as_echo "no" >&6; }
19510
19511 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19512
19513        CURL_DISABLE_POP3=1
19514
19515        ;;
19516   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19517 $as_echo "yes" >&6; }
19518        ;;
19519   esac
19520 else
19521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19522 $as_echo "yes" >&6; }
19523
19524 fi
19525
19526
19527
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19529 $as_echo_n "checking whether to support imap... " >&6; }
19530 # Check whether --enable-imap was given.
19531 if test "${enable_imap+set}" = set; then :
19532   enableval=$enable_imap;  case "$enableval" in
19533   no)
19534        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19535 $as_echo "no" >&6; }
19536
19537 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19538
19539        CURL_DISABLE_IMAP=1
19540
19541        ;;
19542   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19543 $as_echo "yes" >&6; }
19544        ;;
19545   esac
19546 else
19547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19548 $as_echo "yes" >&6; }
19549
19550 fi
19551
19552
19553
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19555 $as_echo_n "checking whether to support smb... " >&6; }
19556 # Check whether --enable-smb was given.
19557 if test "${enable_smb+set}" = set; then :
19558   enableval=$enable_smb;  case "$enableval" in
19559   no)
19560        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19561 $as_echo "no" >&6; }
19562
19563 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19564
19565        CURL_DISABLE_SMB=1
19566
19567        ;;
19568   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19569 $as_echo "yes" >&6; }
19570        ;;
19571   esac
19572 else
19573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19574 $as_echo "yes" >&6; }
19575
19576 fi
19577
19578
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19580 $as_echo_n "checking whether to support smtp... " >&6; }
19581 # Check whether --enable-smtp was given.
19582 if test "${enable_smtp+set}" = set; then :
19583   enableval=$enable_smtp;  case "$enableval" in
19584   no)
19585        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19586 $as_echo "no" >&6; }
19587
19588 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19589
19590        CURL_DISABLE_SMTP=1
19591
19592        ;;
19593   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19594 $as_echo "yes" >&6; }
19595        ;;
19596   esac
19597 else
19598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19599 $as_echo "yes" >&6; }
19600
19601 fi
19602
19603
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19605 $as_echo_n "checking whether to support gopher... " >&6; }
19606 # Check whether --enable-gopher was given.
19607 if test "${enable_gopher+set}" = set; then :
19608   enableval=$enable_gopher;  case "$enableval" in
19609   no)
19610        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19611 $as_echo "no" >&6; }
19612
19613 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19614
19615        CURL_DISABLE_GOPHER=1
19616
19617        ;;
19618   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19619 $as_echo "yes" >&6; }
19620        ;;
19621   esac
19622 else
19623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19624 $as_echo "yes" >&6; }
19625
19626 fi
19627
19628
19629
19630
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19632 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19633 # Check whether --enable-manual was given.
19634 if test "${enable_manual+set}" = set; then :
19635   enableval=$enable_manual;  case "$enableval" in
19636   no)
19637        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19638 $as_echo "no" >&6; }
19639        ;;
19640   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19641 $as_echo "yes" >&6; }
19642        USE_MANUAL="1"
19643        ;;
19644   esac
19645 else
19646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19647 $as_echo "yes" >&6; }
19648        USE_MANUAL="1"
19649
19650 fi
19651
19652
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19654 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19655 # Check whether --enable-libcurl_option was given.
19656 if test "${enable_libcurl_option+set}" = set; then :
19657   enableval=$enable_libcurl_option;  case "$enableval" in
19658   no)
19659        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19660 $as_echo "no" >&6; }
19661
19662 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19663
19664        curl_libcurl_msg="no"
19665        ;;
19666   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19667 $as_echo "yes" >&6; }
19668        ;;
19669   esac
19670 else
19671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19672 $as_echo "yes" >&6; }
19673
19674 fi
19675
19676
19677
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19679 $as_echo_n "checking whether to use libgcc... " >&6; }
19680 # Check whether --enable-libgcc was given.
19681 if test "${enable_libgcc+set}" = set; then :
19682   enableval=$enable_libgcc;  case "$enableval" in
19683   yes)
19684        LIBS="-lgcc $LIBS"
19685        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19686 $as_echo "yes" >&6; }
19687        ;;
19688   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19689 $as_echo "no" >&6; }
19690        ;;
19691   esac
19692 else
19693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19694 $as_echo "no" >&6; }
19695
19696 fi
19697
19698
19699
19700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19701 $as_echo_n "checking if X/Open network library is required... " >&6; }
19702   tst_lib_xnet_required="no"
19703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19704 /* end confdefs.h.  */
19705
19706
19707 int main (void)
19708 {
19709 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19710   return 0;
19711 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19712   return 0;
19713 #else
19714   force compilation error
19715 #endif
19716 }
19717
19718
19719 _ACEOF
19720 if ac_fn_c_try_compile "$LINENO"; then :
19721
19722     tst_lib_xnet_required="yes"
19723     LIBS="-lxnet $LIBS"
19724
19725 fi
19726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19728 $as_echo "$tst_lib_xnet_required" >&6; }
19729
19730
19731 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19732 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19733   HAVE_GETHOSTBYNAME="1"
19734
19735 else
19736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19737 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19738 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19739   $as_echo_n "(cached) " >&6
19740 else
19741   ac_check_lib_save_LIBS=$LIBS
19742 LIBS="-lnsl  $LIBS"
19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744 /* end confdefs.h.  */
19745
19746
19747 #ifdef __cplusplus
19748 extern "C"
19749 #endif
19750 char gethostbyname ();
19751 int main (void)
19752 {
19753 return gethostbyname ();
19754  ;
19755  return 0;
19756 }
19757 _ACEOF
19758 if ac_fn_c_try_link "$LINENO"; then :
19759   ac_cv_lib_nsl_gethostbyname=yes
19760 else
19761   ac_cv_lib_nsl_gethostbyname=no
19762 fi
19763 rm -f core conftest.err conftest.$ac_objext \
19764     conftest$ac_exeext conftest.$ac_ext
19765 LIBS=$ac_check_lib_save_LIBS
19766 fi
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19768 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19769 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19770   HAVE_GETHOSTBYNAME="1"
19771                              LIBS="-lnsl $LIBS"
19772
19773 fi
19774
19775
19776 fi
19777
19778
19779 if test "$HAVE_GETHOSTBYNAME" != "1"
19780 then
19781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19782 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19783 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19784   $as_echo_n "(cached) " >&6
19785 else
19786   ac_check_lib_save_LIBS=$LIBS
19787 LIBS="-lsocket  $LIBS"
19788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19789 /* end confdefs.h.  */
19790
19791
19792 #ifdef __cplusplus
19793 extern "C"
19794 #endif
19795 char gethostbyname ();
19796 int main (void)
19797 {
19798 return gethostbyname ();
19799  ;
19800  return 0;
19801 }
19802 _ACEOF
19803 if ac_fn_c_try_link "$LINENO"; then :
19804   ac_cv_lib_socket_gethostbyname=yes
19805 else
19806   ac_cv_lib_socket_gethostbyname=no
19807 fi
19808 rm -f core conftest.err conftest.$ac_objext \
19809     conftest$ac_exeext conftest.$ac_ext
19810 LIBS=$ac_check_lib_save_LIBS
19811 fi
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19813 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19814 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19815   HAVE_GETHOSTBYNAME="1"
19816                LIBS="-lsocket $LIBS"
19817
19818 fi
19819
19820 fi
19821
19822 if test "$HAVE_GETHOSTBYNAME" != "1"
19823 then
19824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19825 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19826 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19827   $as_echo_n "(cached) " >&6
19828 else
19829   ac_check_lib_save_LIBS=$LIBS
19830 LIBS="-lwatt  $LIBS"
19831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832 /* end confdefs.h.  */
19833
19834
19835 #ifdef __cplusplus
19836 extern "C"
19837 #endif
19838 char gethostbyname ();
19839 int main (void)
19840 {
19841 return gethostbyname ();
19842  ;
19843  return 0;
19844 }
19845 _ACEOF
19846 if ac_fn_c_try_link "$LINENO"; then :
19847   ac_cv_lib_watt_gethostbyname=yes
19848 else
19849   ac_cv_lib_watt_gethostbyname=no
19850 fi
19851 rm -f core conftest.err conftest.$ac_objext \
19852     conftest$ac_exeext conftest.$ac_ext
19853 LIBS=$ac_check_lib_save_LIBS
19854 fi
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19856 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19857 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19858   HAVE_GETHOSTBYNAME="1"
19859                CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19860                LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19861                LIBS="-lwatt $LIBS"
19862
19863 fi
19864
19865 fi
19866
19867 if test "$HAVE_GETHOSTBYNAME" != "1"
19868 then
19869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19870 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19871   my_ac_save_LIBS=$LIBS
19872   LIBS="-lnsl -lsocket $LIBS"
19873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19874 /* end confdefs.h.  */
19875
19876
19877
19878 int main (void)
19879 {
19880
19881       gethostbyname();
19882
19883  ;
19884  return 0;
19885 }
19886
19887 _ACEOF
19888 if ac_fn_c_try_link "$LINENO"; then :
19889
19890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19891 $as_echo "yes" >&6; }
19892     HAVE_GETHOSTBYNAME="1"
19893
19894 else
19895
19896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19897 $as_echo "no" >&6; }
19898     LIBS=$my_ac_save_LIBS
19899
19900 fi
19901 rm -f core conftest.err conftest.$ac_objext \
19902     conftest$ac_exeext conftest.$ac_ext
19903 fi
19904
19905 if test "$HAVE_GETHOSTBYNAME" != "1"
19906 then
19907     if test "$curl_cv_header_windows_h" = "yes"; then
19908     if test "$curl_cv_header_winsock_h" = "yes"; then
19909       case $host in
19910         *-*-mingw32ce*)
19911           winsock_LIB="-lwinsock"
19912           ;;
19913         *)
19914           winsock_LIB="-lwsock32"
19915           ;;
19916       esac
19917     fi
19918     if test "$curl_cv_header_winsock2_h" = "yes"; then
19919       winsock_LIB="-lws2_32"
19920     fi
19921     if test ! -z "$winsock_LIB"; then
19922       my_ac_save_LIBS=$LIBS
19923       LIBS="$winsock_LIB $LIBS"
19924       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19925 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19926       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19927 /* end confdefs.h.  */
19928
19929
19930 #ifdef HAVE_WINDOWS_H
19931 #ifndef WIN32_LEAN_AND_MEAN
19932 #define WIN32_LEAN_AND_MEAN
19933 #endif
19934 #include <windows.h>
19935 #ifdef HAVE_WINSOCK2_H
19936 #include <winsock2.h>
19937 #else
19938 #ifdef HAVE_WINSOCK_H
19939 #include <winsock.h>
19940 #endif
19941 #endif
19942 #endif
19943
19944 int main (void)
19945 {
19946
19947           gethostbyname("www.dummysite.com");
19948
19949  ;
19950  return 0;
19951 }
19952
19953 _ACEOF
19954 if ac_fn_c_try_link "$LINENO"; then :
19955
19956         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19957 $as_echo "yes" >&6; }
19958         HAVE_GETHOSTBYNAME="1"
19959
19960 else
19961
19962         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19963 $as_echo "no" >&6; }
19964         winsock_LIB=""
19965         LIBS=$my_ac_save_LIBS
19966
19967 fi
19968 rm -f core conftest.err conftest.$ac_objext \
19969     conftest$ac_exeext conftest.$ac_ext
19970     fi
19971   fi
19972 fi
19973
19974 if test "$HAVE_GETHOSTBYNAME" != "1"
19975 then
19976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19977 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19979 /* end confdefs.h.  */
19980
19981
19982 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19983 #include <netdb.h>
19984
19985 int main (void)
19986 {
19987
19988       gethostbyname("www.dummysite.com");
19989
19990  ;
19991  return 0;
19992 }
19993
19994 _ACEOF
19995 if ac_fn_c_try_link "$LINENO"; then :
19996
19997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19998 $as_echo "yes" >&6; }
19999     HAVE_GETHOSTBYNAME="1"
20000
20001 else
20002
20003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20004 $as_echo "no" >&6; }
20005
20006 fi
20007 rm -f core conftest.err conftest.$ac_objext \
20008     conftest$ac_exeext conftest.$ac_ext
20009 fi
20010
20011 if test "$HAVE_GETHOSTBYNAME" != "1"
20012 then
20013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20014 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
20015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20016 /* end confdefs.h.  */
20017
20018
20019 #include <stdio.h>
20020 #include <netdb.h>
20021
20022 int main (void)
20023 {
20024
20025       gethostbyname("www.dummysite.com");
20026
20027  ;
20028  return 0;
20029 }
20030
20031 _ACEOF
20032 if ac_fn_c_try_link "$LINENO"; then :
20033
20034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20035 $as_echo "yes" >&6; }
20036     HAVE_GETHOSTBYNAME="1"
20037
20038 else
20039
20040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20041 $as_echo "no" >&6; }
20042
20043 fi
20044 rm -f core conftest.err conftest.$ac_objext \
20045     conftest$ac_exeext conftest.$ac_ext
20046 fi
20047
20048 if test "$HAVE_GETHOSTBYNAME" != "1"
20049 then
20050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20051 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20052 if ${ac_cv_lib_network_gethostbyname+:} false; then :
20053   $as_echo_n "(cached) " >&6
20054 else
20055   ac_check_lib_save_LIBS=$LIBS
20056 LIBS="-lnetwork  $LIBS"
20057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20058 /* end confdefs.h.  */
20059
20060
20061 #ifdef __cplusplus
20062 extern "C"
20063 #endif
20064 char gethostbyname ();
20065 int main (void)
20066 {
20067 return gethostbyname ();
20068  ;
20069  return 0;
20070 }
20071 _ACEOF
20072 if ac_fn_c_try_link "$LINENO"; then :
20073   ac_cv_lib_network_gethostbyname=yes
20074 else
20075   ac_cv_lib_network_gethostbyname=no
20076 fi
20077 rm -f core conftest.err conftest.$ac_objext \
20078     conftest$ac_exeext conftest.$ac_ext
20079 LIBS=$ac_check_lib_save_LIBS
20080 fi
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20082 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20083 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20084   HAVE_GETHOSTBYNAME="1"
20085                LIBS="-lnetwork $LIBS"
20086
20087 fi
20088
20089 fi
20090
20091 if test "$HAVE_GETHOSTBYNAME" != "1"
20092 then
20093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20094 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20095 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20096   $as_echo_n "(cached) " >&6
20097 else
20098   ac_check_lib_save_LIBS=$LIBS
20099 LIBS="-lnet  $LIBS"
20100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20101 /* end confdefs.h.  */
20102
20103
20104 #ifdef __cplusplus
20105 extern "C"
20106 #endif
20107 char gethostbyname ();
20108 int main (void)
20109 {
20110 return gethostbyname ();
20111  ;
20112  return 0;
20113 }
20114 _ACEOF
20115 if ac_fn_c_try_link "$LINENO"; then :
20116   ac_cv_lib_net_gethostbyname=yes
20117 else
20118   ac_cv_lib_net_gethostbyname=no
20119 fi
20120 rm -f core conftest.err conftest.$ac_objext \
20121     conftest$ac_exeext conftest.$ac_ext
20122 LIBS=$ac_check_lib_save_LIBS
20123 fi
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20125 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20126 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20127   HAVE_GETHOSTBYNAME="1"
20128                LIBS="-lnet $LIBS"
20129
20130 fi
20131
20132 fi
20133
20134
20135 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20136   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20137 fi
20138
20139
20140 curl_includes_winsock2="\
20141 /* includes start */
20142 #ifdef HAVE_WINDOWS_H
20143 #  ifndef WIN32_LEAN_AND_MEAN
20144 #    define WIN32_LEAN_AND_MEAN
20145 #  endif
20146 #  include <windows.h>
20147 #  ifdef HAVE_WINSOCK2_H
20148 #    include <winsock2.h>
20149 #  else
20150 #    ifdef HAVE_WINSOCK_H
20151 #      include <winsock.h>
20152 #    endif
20153 #  endif
20154 #endif
20155 /* includes end */"
20156
20157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20158 $as_echo_n "checking for windows.h... " >&6; }
20159 if ${curl_cv_header_windows_h+:} false; then :
20160   $as_echo_n "(cached) " >&6
20161 else
20162
20163     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h.  */
20165
20166
20167 #undef inline
20168 #ifndef WIN32_LEAN_AND_MEAN
20169 #define WIN32_LEAN_AND_MEAN
20170 #endif
20171 #include <windows.h>
20172
20173 int main (void)
20174 {
20175
20176 #if defined(__CYGWIN__) || defined(__CEGCC__)
20177         HAVE_WINDOWS_H shall not be defined.
20178 #else
20179         int dummy=2*WINVER;
20180 #endif
20181
20182  ;
20183  return 0;
20184 }
20185
20186 _ACEOF
20187 if ac_fn_c_try_compile "$LINENO"; then :
20188
20189       curl_cv_header_windows_h="yes"
20190
20191 else
20192
20193       curl_cv_header_windows_h="no"
20194
20195 fi
20196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20197
20198 fi
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20200 $as_echo "$curl_cv_header_windows_h" >&6; }
20201   case "$curl_cv_header_windows_h" in
20202     yes)
20203
20204 cat >>confdefs.h <<_ACEOF
20205 #define HAVE_WINDOWS_H 1
20206 _ACEOF
20207
20208
20209 cat >>confdefs.h <<_ACEOF
20210 #define WIN32_LEAN_AND_MEAN 1
20211 _ACEOF
20212
20213       ;;
20214   esac
20215
20216
20217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20218 $as_echo_n "checking for winsock.h... " >&6; }
20219 if ${curl_cv_header_winsock_h+:} false; then :
20220   $as_echo_n "(cached) " >&6
20221 else
20222
20223     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h.  */
20225
20226
20227 #undef inline
20228 #ifndef WIN32_LEAN_AND_MEAN
20229 #define WIN32_LEAN_AND_MEAN
20230 #endif
20231 #include <windows.h>
20232 #include <winsock.h>
20233
20234 int main (void)
20235 {
20236
20237 #if defined(__CYGWIN__) || defined(__CEGCC__)
20238         HAVE_WINSOCK_H shall not be defined.
20239 #else
20240         int dummy=WSACleanup();
20241 #endif
20242
20243  ;
20244  return 0;
20245 }
20246
20247 _ACEOF
20248 if ac_fn_c_try_compile "$LINENO"; then :
20249
20250       curl_cv_header_winsock_h="yes"
20251
20252 else
20253
20254       curl_cv_header_winsock_h="no"
20255
20256 fi
20257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20258
20259 fi
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20261 $as_echo "$curl_cv_header_winsock_h" >&6; }
20262   case "$curl_cv_header_winsock_h" in
20263     yes)
20264
20265 cat >>confdefs.h <<_ACEOF
20266 #define HAVE_WINSOCK_H 1
20267 _ACEOF
20268
20269       ;;
20270   esac
20271
20272
20273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20274 $as_echo_n "checking for winsock2.h... " >&6; }
20275 if ${curl_cv_header_winsock2_h+:} false; then :
20276   $as_echo_n "(cached) " >&6
20277 else
20278
20279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h.  */
20281
20282
20283 #undef inline
20284 #ifndef WIN32_LEAN_AND_MEAN
20285 #define WIN32_LEAN_AND_MEAN
20286 #endif
20287 #include <windows.h>
20288 #include <winsock2.h>
20289
20290 int main (void)
20291 {
20292
20293 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20294         HAVE_WINSOCK2_H shall not be defined.
20295 #else
20296         int dummy=2*IPPROTO_ESP;
20297 #endif
20298
20299  ;
20300  return 0;
20301 }
20302
20303 _ACEOF
20304 if ac_fn_c_try_compile "$LINENO"; then :
20305
20306       curl_cv_header_winsock2_h="yes"
20307
20308 else
20309
20310       curl_cv_header_winsock2_h="no"
20311
20312 fi
20313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20314
20315 fi
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20317 $as_echo "$curl_cv_header_winsock2_h" >&6; }
20318   case "$curl_cv_header_winsock2_h" in
20319     yes)
20320
20321 cat >>confdefs.h <<_ACEOF
20322 #define HAVE_WINSOCK2_H 1
20323 _ACEOF
20324
20325       ;;
20326   esac
20327
20328
20329
20330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20331 $as_echo_n "checking for connect in libraries... " >&6; }
20332   tst_connect_save_LIBS="$LIBS"
20333   tst_connect_need_LIBS="unknown"
20334   for tst_lib in '' '-lsocket' ; do
20335     if test "$tst_connect_need_LIBS" = "unknown"; then
20336       LIBS="$tst_lib $tst_connect_save_LIBS"
20337       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h.  */
20339
20340
20341           $curl_includes_winsock2
20342           #ifndef HAVE_WINDOWS_H
20343             int connect(int, void*, int);
20344           #endif
20345
20346 int main (void)
20347 {
20348
20349           if(0 != connect(0, 0, 0))
20350             return 1;
20351
20352  ;
20353  return 0;
20354 }
20355
20356 _ACEOF
20357 if ac_fn_c_try_link "$LINENO"; then :
20358
20359         tst_connect_need_LIBS="$tst_lib"
20360
20361 fi
20362 rm -f core conftest.err conftest.$ac_objext \
20363     conftest$ac_exeext conftest.$ac_ext
20364     fi
20365   done
20366   LIBS="$tst_connect_save_LIBS"
20367   #
20368   case X-"$tst_connect_need_LIBS" in
20369     X-unknown)
20370       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20371 $as_echo "cannot find connect" >&6; }
20372       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20373       ;;
20374     X-)
20375       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20376 $as_echo "yes" >&6; }
20377       ;;
20378     *)
20379       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20380 $as_echo "$tst_connect_need_LIBS" >&6; }
20381       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20382       ;;
20383   esac
20384
20385
20386 CURL_NETWORK_LIBS=$LIBS
20387
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20389 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20390 if ${ac_cv_header_time+:} false; then :
20391   $as_echo_n "(cached) " >&6
20392 else
20393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20394 /* end confdefs.h.  */
20395 #include <sys/types.h>
20396 #include <sys/time.h>
20397 #include <time.h>
20398
20399 int main (void)
20400 {
20401 if ((struct tm *) 0)
20402 return 0;
20403  ;
20404  return 0;
20405 }
20406 _ACEOF
20407 if ac_fn_c_try_compile "$LINENO"; then :
20408   ac_cv_header_time=yes
20409 else
20410   ac_cv_header_time=no
20411 fi
20412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20413 fi
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20415 $as_echo "$ac_cv_header_time" >&6; }
20416 if test $ac_cv_header_time = yes; then
20417
20418 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20419
20420 fi
20421
20422
20423     for ac_header in sys/types.h sys/time.h time.h
20424 do :
20425   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20426 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20427 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20428   cat >>confdefs.h <<_ACEOF
20429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20430 _ACEOF
20431
20432 fi
20433
20434 done
20435
20436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20437 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20438   #
20439   if test "x$dontwant_rt" == "xno" ; then
20440     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20441 /* end confdefs.h.  */
20442
20443
20444 #ifdef HAVE_SYS_TYPES_H
20445 #include <sys/types.h>
20446 #endif
20447 #ifdef HAVE_SYS_TIME_H
20448 #include <sys/time.h>
20449 #ifdef TIME_WITH_SYS_TIME
20450 #include <time.h>
20451 #endif
20452 #else
20453 #ifdef HAVE_TIME_H
20454 #include <time.h>
20455 #endif
20456 #endif
20457
20458 int main (void)
20459 {
20460
20461         struct timespec ts;
20462         (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20463
20464  ;
20465  return 0;
20466 }
20467
20468 _ACEOF
20469 if ac_fn_c_try_compile "$LINENO"; then :
20470
20471       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20472 $as_echo "yes" >&6; }
20473       curl_func_clock_gettime="yes"
20474
20475 else
20476
20477       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20478 $as_echo "no" >&6; }
20479       curl_func_clock_gettime="no"
20480
20481 fi
20482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20483   fi
20484
20485
20486     #
20487   if test "$curl_func_clock_gettime" = "yes"; then
20488     #
20489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20490 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20491     #
20492     curl_cv_save_LIBS="$LIBS"
20493     curl_cv_gclk_LIBS="unknown"
20494     #
20495     for x_xlibs in '' '-lrt' '-lposix4' ; do
20496       if test "$curl_cv_gclk_LIBS" = "unknown"; then
20497         if test -z "$x_xlibs"; then
20498           LIBS="$curl_cv_save_LIBS"
20499         else
20500           LIBS="$x_xlibs $curl_cv_save_LIBS"
20501         fi
20502         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20503 /* end confdefs.h.  */
20504
20505
20506 #ifdef HAVE_SYS_TYPES_H
20507 #include <sys/types.h>
20508 #endif
20509 #ifdef HAVE_SYS_TIME_H
20510 #include <sys/time.h>
20511 #ifdef TIME_WITH_SYS_TIME
20512 #include <time.h>
20513 #endif
20514 #else
20515 #ifdef HAVE_TIME_H
20516 #include <time.h>
20517 #endif
20518 #endif
20519
20520 int main (void)
20521 {
20522
20523             struct timespec ts;
20524             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20525
20526  ;
20527  return 0;
20528 }
20529
20530 _ACEOF
20531 if ac_fn_c_try_link "$LINENO"; then :
20532
20533           curl_cv_gclk_LIBS="$x_xlibs"
20534
20535 fi
20536 rm -f core conftest.err conftest.$ac_objext \
20537     conftest$ac_exeext conftest.$ac_ext
20538       fi
20539     done
20540     #
20541     LIBS="$curl_cv_save_LIBS"
20542     #
20543     case X-"$curl_cv_gclk_LIBS" in
20544       X-unknown)
20545         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20546 $as_echo "cannot find clock_gettime" >&6; }
20547         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20548 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20549         curl_func_clock_gettime="no"
20550         ;;
20551       X-)
20552         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20553 $as_echo "no additional lib required" >&6; }
20554         curl_func_clock_gettime="yes"
20555         ;;
20556       *)
20557         if test -z "$curl_cv_save_LIBS"; then
20558           LIBS="$curl_cv_gclk_LIBS"
20559         else
20560           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20561         fi
20562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20563 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20564         curl_func_clock_gettime="yes"
20565         ;;
20566     esac
20567     #
20568         if test "x$cross_compiling" != "xyes" &&
20569       test "$curl_func_clock_gettime" = "yes"; then
20570       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20571 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20572       if test "$cross_compiling" = yes; then :
20573   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20575 as_fn_error $? "cannot run test program while cross compiling
20576 See \`config.log' for more details" "$LINENO" 5; }
20577 else
20578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579 /* end confdefs.h.  */
20580
20581
20582 #ifdef HAVE_STDLIB_H
20583 #include <stdlib.h>
20584 #endif
20585 #ifdef HAVE_SYS_TYPES_H
20586 #include <sys/types.h>
20587 #endif
20588 #ifdef HAVE_SYS_TIME_H
20589 #include <sys/time.h>
20590 #ifdef TIME_WITH_SYS_TIME
20591 #include <time.h>
20592 #endif
20593 #else
20594 #ifdef HAVE_TIME_H
20595 #include <time.h>
20596 #endif
20597 #endif
20598
20599 int main (void)
20600 {
20601
20602           struct timespec ts;
20603           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20604             exit(0);
20605           else
20606             exit(1);
20607
20608  ;
20609  return 0;
20610 }
20611
20612 _ACEOF
20613 if ac_fn_c_try_run "$LINENO"; then :
20614
20615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20616 $as_echo "yes" >&6; }
20617
20618 else
20619
20620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20621 $as_echo "no" >&6; }
20622         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20623 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20624         curl_func_clock_gettime="no"
20625         LIBS="$curl_cv_save_LIBS"
20626
20627 fi
20628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20629   conftest.$ac_objext conftest.beam conftest.$ac_ext
20630 fi
20631
20632     fi
20633     #
20634     case "$curl_func_clock_gettime" in
20635       yes)
20636
20637 cat >>confdefs.h <<_ACEOF
20638 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20639 _ACEOF
20640
20641         ;;
20642     esac
20643     #
20644   fi
20645   #
20646
20647
20648 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20649
20650
20651
20652 clean_CPPFLAGS=$CPPFLAGS
20653 clean_LDFLAGS=$LDFLAGS
20654 clean_LIBS=$LIBS
20655 ZLIB_LIBS=""
20656
20657 # Check whether --with-zlib was given.
20658 if test "${with_zlib+set}" = set; then :
20659   withval=$with_zlib; OPT_ZLIB="$withval"
20660 fi
20661
20662
20663 if test "$OPT_ZLIB" = "no" ; then
20664     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20665 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20666 else
20667   if test "$OPT_ZLIB" = "yes" ; then
20668     OPT_ZLIB=""
20669   fi
20670
20671
20672     if test -n "$PKG_CONFIG"; then
20673       PKGCONFIG="$PKG_CONFIG"
20674     else
20675       if test -n "$ac_tool_prefix"; then
20676   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20677 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20679 $as_echo_n "checking for $ac_word... " >&6; }
20680 if ${ac_cv_path_PKGCONFIG+:} false; then :
20681   $as_echo_n "(cached) " >&6
20682 else
20683   case $PKGCONFIG in
20684   [\\/]* | ?:[\\/]*)
20685   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20686   ;;
20687   *)
20688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20689 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20690 for as_dir in $as_dummy
20691 do
20692   IFS=$as_save_IFS
20693   test -z "$as_dir" && as_dir=.
20694     for ac_exec_ext in '' $ac_executable_extensions; do
20695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20696     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20698     break 2
20699   fi
20700 done
20701   done
20702 IFS=$as_save_IFS
20703
20704   ;;
20705 esac
20706 fi
20707 PKGCONFIG=$ac_cv_path_PKGCONFIG
20708 if test -n "$PKGCONFIG"; then
20709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20710 $as_echo "$PKGCONFIG" >&6; }
20711 else
20712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20713 $as_echo "no" >&6; }
20714 fi
20715
20716
20717 fi
20718 if test -z "$ac_cv_path_PKGCONFIG"; then
20719   ac_pt_PKGCONFIG=$PKGCONFIG
20720   # Extract the first word of "pkg-config", so it can be a program name with args.
20721 set dummy pkg-config; ac_word=$2
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20723 $as_echo_n "checking for $ac_word... " >&6; }
20724 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20725   $as_echo_n "(cached) " >&6
20726 else
20727   case $ac_pt_PKGCONFIG in
20728   [\\/]* | ?:[\\/]*)
20729   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20730   ;;
20731   *)
20732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20733 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20734 for as_dir in $as_dummy
20735 do
20736   IFS=$as_save_IFS
20737   test -z "$as_dir" && as_dir=.
20738     for ac_exec_ext in '' $ac_executable_extensions; do
20739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20740     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20742     break 2
20743   fi
20744 done
20745   done
20746 IFS=$as_save_IFS
20747
20748   ;;
20749 esac
20750 fi
20751 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20752 if test -n "$ac_pt_PKGCONFIG"; then
20753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20754 $as_echo "$ac_pt_PKGCONFIG" >&6; }
20755 else
20756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20757 $as_echo "no" >&6; }
20758 fi
20759
20760   if test "x$ac_pt_PKGCONFIG" = x; then
20761     PKGCONFIG="no"
20762   else
20763     case $cross_compiling:$ac_tool_warned in
20764 yes:)
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20767 ac_tool_warned=yes ;;
20768 esac
20769     PKGCONFIG=$ac_pt_PKGCONFIG
20770   fi
20771 else
20772   PKGCONFIG="$ac_cv_path_PKGCONFIG"
20773 fi
20774
20775     fi
20776
20777     if test "x$PKGCONFIG" != "xno"; then
20778       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20779 $as_echo_n "checking for zlib options with pkg-config... " >&6; }
20780             itexists=`
20781     if test -n ""; then
20782       PKG_CONFIG_LIBDIR=""
20783       export PKG_CONFIG_LIBDIR
20784     fi
20785          $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20786
20787       if test -z "$itexists"; then
20788                         PKGCONFIG="no"
20789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20790 $as_echo "no" >&6; }
20791       else
20792         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20793 $as_echo "found" >&6; }
20794       fi
20795     fi
20796
20797
20798   if test "$PKGCONFIG" != "no" ; then
20799     LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20800     LDFLAGS="`$PKGCONFIG --libs-only-L zlib` $LDFLAGS"
20801     CPPFLAGS="`$PKGCONFIG --cflags-only-I zlib` $CPPFLAGS"
20802     OPT_ZLIB=""
20803     HAVE_LIBZ="1"
20804   fi
20805
20806   if test -z "$OPT_ZLIB" ; then
20807
20808     if test -z "$HAVE_LIBZ"; then
20809
20810
20811       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20812 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20813 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20814   $as_echo_n "(cached) " >&6
20815 else
20816   ac_check_lib_save_LIBS=$LIBS
20817 LIBS="-lz  $LIBS"
20818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20819 /* end confdefs.h.  */
20820
20821
20822 #ifdef __cplusplus
20823 extern "C"
20824 #endif
20825 char inflateEnd ();
20826 int main (void)
20827 {
20828 return inflateEnd ();
20829  ;
20830  return 0;
20831 }
20832 _ACEOF
20833 if ac_fn_c_try_link "$LINENO"; then :
20834   ac_cv_lib_z_inflateEnd=yes
20835 else
20836   ac_cv_lib_z_inflateEnd=no
20837 fi
20838 rm -f core conftest.err conftest.$ac_objext \
20839     conftest$ac_exeext conftest.$ac_ext
20840 LIBS=$ac_check_lib_save_LIBS
20841 fi
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20843 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20844 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20845                      HAVE_LIBZ="1"
20846                     LIBS="-lz $LIBS"
20847 else
20848                      OPT_ZLIB="/usr/local"
20849 fi
20850
20851     fi
20852   fi
20853
20854     if test -n "$OPT_ZLIB"; then
20855      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20856      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20857   fi
20858
20859   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20860 if test "x$ac_cv_header_zlib_h" = xyes; then :
20861
20862         HAVE_ZLIB_H="1"
20863         if test "$HAVE_LIBZ" != "1"; then
20864       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20865 $as_echo_n "checking for gzread in -lz... " >&6; }
20866 if ${ac_cv_lib_z_gzread+:} false; then :
20867   $as_echo_n "(cached) " >&6
20868 else
20869   ac_check_lib_save_LIBS=$LIBS
20870 LIBS="-lz  $LIBS"
20871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20872 /* end confdefs.h.  */
20873
20874
20875 #ifdef __cplusplus
20876 extern "C"
20877 #endif
20878 char gzread ();
20879 int main (void)
20880 {
20881 return gzread ();
20882  ;
20883  return 0;
20884 }
20885 _ACEOF
20886 if ac_fn_c_try_link "$LINENO"; then :
20887   ac_cv_lib_z_gzread=yes
20888 else
20889   ac_cv_lib_z_gzread=no
20890 fi
20891 rm -f core conftest.err conftest.$ac_objext \
20892     conftest$ac_exeext conftest.$ac_ext
20893 LIBS=$ac_check_lib_save_LIBS
20894 fi
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20896 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20897 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20898
20899                                       HAVE_LIBZ="1"
20900                    LIBS="-lz $LIBS"
20901
20902 else
20903    CPPFLAGS=$clean_CPPFLAGS
20904                    LDFLAGS=$clean_LDFLAGS
20905 fi
20906
20907     fi
20908
20909 else
20910
20911             CPPFLAGS=$clean_CPPFLAGS
20912       LDFLAGS=$clean_LDFLAGS
20913
20914 fi
20915
20916
20917
20918   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20919   then
20920     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20921 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20922     HAVE_LIBZ=""
20923     CPPFLAGS=$clean_CPPFLAGS
20924     LDFLAGS=$clean_LDFLAGS
20925     LIBS=$clean_LIBS
20926   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20927   then
20928     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20929 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20930     CPPFLAGS=$clean_CPPFLAGS
20931     LDFLAGS=$clean_LDFLAGS
20932     LIBS=$clean_LIBS
20933   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20934   then
20935
20936
20937 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20938
20939
20940 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20941
20942
20943     ZLIB_LIBS="-lz"
20944     LIBS="-lz $clean_LIBS"
20945
20946         AMFIXLIB="1"
20947     { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20948 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20949     curl_zlib_msg="enabled"
20950   fi
20951 fi
20952
20953  if test x"$AMFIXLIB" = x1; then
20954   HAVE_LIBZ_TRUE=
20955   HAVE_LIBZ_FALSE='#'
20956 else
20957   HAVE_LIBZ_TRUE='#'
20958   HAVE_LIBZ_FALSE=
20959 fi
20960
20961
20962
20963
20964 LDAPLIBNAME=""
20965
20966 # Check whether --with-ldap-lib was given.
20967 if test "${with_ldap_lib+set}" = set; then :
20968   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
20969 fi
20970
20971
20972 LBERLIBNAME=""
20973
20974 # Check whether --with-lber-lib was given.
20975 if test "${with_lber_lib+set}" = set; then :
20976   withval=$with_lber_lib; LBERLIBNAME="$withval"
20977 fi
20978
20979
20980 if test x$CURL_DISABLE_LDAP != x1 ; then
20981
20982
20983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
20984 $as_echo_n "checking for lber.h... " >&6; }
20985 if ${curl_cv_header_lber_h+:} false; then :
20986   $as_echo_n "(cached) " >&6
20987 else
20988
20989     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20990 /* end confdefs.h.  */
20991
20992
20993 #undef inline
20994 #ifdef HAVE_WINDOWS_H
20995 #ifndef WIN32_LEAN_AND_MEAN
20996 #define WIN32_LEAN_AND_MEAN
20997 #endif
20998 #include <windows.h>
20999 #else
21000 #ifdef HAVE_SYS_TYPES_H
21001 #include <sys/types.h>
21002 #endif
21003 #endif
21004 #ifndef NULL
21005 #define NULL (void *)0
21006 #endif
21007 #include <lber.h>
21008
21009 int main (void)
21010 {
21011
21012         BerValue *bvp = NULL;
21013         BerElement *bep = ber_init(bvp);
21014         ber_free(bep, 1);
21015
21016  ;
21017  return 0;
21018 }
21019
21020 _ACEOF
21021 if ac_fn_c_try_compile "$LINENO"; then :
21022
21023       curl_cv_header_lber_h="yes"
21024
21025 else
21026
21027       curl_cv_header_lber_h="no"
21028
21029 fi
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031
21032 fi
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21034 $as_echo "$curl_cv_header_lber_h" >&6; }
21035   if test "$curl_cv_header_lber_h" = "yes"; then
21036
21037 cat >>confdefs.h <<_ACEOF
21038 #define HAVE_LBER_H 1
21039 _ACEOF
21040
21041     #
21042     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21043 /* end confdefs.h.  */
21044
21045
21046 #undef inline
21047 #ifdef HAVE_WINDOWS_H
21048 #ifndef WIN32_LEAN_AND_MEAN
21049 #define WIN32_LEAN_AND_MEAN
21050 #endif
21051 #include <windows.h>
21052 #else
21053 #ifdef HAVE_SYS_TYPES_H
21054 #include <sys/types.h>
21055 #endif
21056 #endif
21057 #ifndef NULL
21058 #define NULL (void *)0
21059 #endif
21060 #ifndef LDAP_DEPRECATED
21061 #define LDAP_DEPRECATED 1
21062 #endif
21063 #include <ldap.h>
21064
21065 int main (void)
21066 {
21067
21068         BerValue *bvp = NULL;
21069         BerElement *bep = ber_init(bvp);
21070         ber_free(bep, 1);
21071
21072  ;
21073  return 0;
21074 }
21075
21076 _ACEOF
21077 if ac_fn_c_try_compile "$LINENO"; then :
21078
21079       curl_cv_need_header_lber_h="no"
21080
21081 else
21082
21083       curl_cv_need_header_lber_h="yes"
21084
21085 fi
21086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21087     #
21088     case "$curl_cv_need_header_lber_h" in
21089       yes)
21090
21091 cat >>confdefs.h <<_ACEOF
21092 #define NEED_LBER_H 1
21093 _ACEOF
21094
21095         ;;
21096     esac
21097   fi
21098
21099
21100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21101 $as_echo_n "checking for ldap.h... " >&6; }
21102 if ${curl_cv_header_ldap_h+:} false; then :
21103   $as_echo_n "(cached) " >&6
21104 else
21105
21106     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21107 /* end confdefs.h.  */
21108
21109
21110 #undef inline
21111 #ifdef HAVE_WINDOWS_H
21112 #ifndef WIN32_LEAN_AND_MEAN
21113 #define WIN32_LEAN_AND_MEAN
21114 #endif
21115 #include <windows.h>
21116 #else
21117 #ifdef HAVE_SYS_TYPES_H
21118 #include <sys/types.h>
21119 #endif
21120 #endif
21121 #ifndef LDAP_DEPRECATED
21122 #define LDAP_DEPRECATED 1
21123 #endif
21124 #ifdef NEED_LBER_H
21125 #include <lber.h>
21126 #endif
21127 #include <ldap.h>
21128
21129 int main (void)
21130 {
21131
21132         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21133         int res = ldap_unbind(ldp);
21134
21135  ;
21136  return 0;
21137 }
21138
21139 _ACEOF
21140 if ac_fn_c_try_compile "$LINENO"; then :
21141
21142       curl_cv_header_ldap_h="yes"
21143
21144 else
21145
21146       curl_cv_header_ldap_h="no"
21147
21148 fi
21149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21150
21151 fi
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21153 $as_echo "$curl_cv_header_ldap_h" >&6; }
21154   case "$curl_cv_header_ldap_h" in
21155     yes)
21156
21157 cat >>confdefs.h <<_ACEOF
21158 #define HAVE_LDAP_H 1
21159 _ACEOF
21160
21161       ;;
21162   esac
21163
21164
21165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21166 $as_echo_n "checking for ldapssl.h... " >&6; }
21167 if ${curl_cv_header_ldapssl_h+:} false; then :
21168   $as_echo_n "(cached) " >&6
21169 else
21170
21171     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21172 /* end confdefs.h.  */
21173
21174
21175 #undef inline
21176 #ifdef HAVE_WINDOWS_H
21177 #ifndef WIN32_LEAN_AND_MEAN
21178 #define WIN32_LEAN_AND_MEAN
21179 #endif
21180 #include <windows.h>
21181 #else
21182 #ifdef HAVE_SYS_TYPES_H
21183 #include <sys/types.h>
21184 #endif
21185 #endif
21186 #ifndef NULL
21187 #define NULL (void *)0
21188 #endif
21189 #ifndef LDAP_DEPRECATED
21190 #define LDAP_DEPRECATED 1
21191 #endif
21192 #ifdef NEED_LBER_H
21193 #include <lber.h>
21194 #endif
21195 #ifdef HAVE_LDAP_H
21196 #include <ldap.h>
21197 #endif
21198 #include <ldapssl.h>
21199
21200 int main (void)
21201 {
21202
21203         char *cert_label = NULL;
21204         LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21205
21206  ;
21207  return 0;
21208 }
21209
21210 _ACEOF
21211 if ac_fn_c_try_compile "$LINENO"; then :
21212
21213       curl_cv_header_ldapssl_h="yes"
21214
21215 else
21216
21217       curl_cv_header_ldapssl_h="no"
21218
21219 fi
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221
21222 fi
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21224 $as_echo "$curl_cv_header_ldapssl_h" >&6; }
21225   case "$curl_cv_header_ldapssl_h" in
21226     yes)
21227
21228 cat >>confdefs.h <<_ACEOF
21229 #define HAVE_LDAPSSL_H 1
21230 _ACEOF
21231
21232       ;;
21233   esac
21234
21235
21236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21237 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21238 if ${curl_cv_header_ldap_ssl_h+:} false; then :
21239   $as_echo_n "(cached) " >&6
21240 else
21241
21242     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21243 /* end confdefs.h.  */
21244
21245
21246 #undef inline
21247 #ifdef HAVE_WINDOWS_H
21248 #ifndef WIN32_LEAN_AND_MEAN
21249 #define WIN32_LEAN_AND_MEAN
21250 #endif
21251 #include <windows.h>
21252 #else
21253 #ifdef HAVE_SYS_TYPES_H
21254 #include <sys/types.h>
21255 #endif
21256 #endif
21257 #ifndef LDAP_DEPRECATED
21258 #define LDAP_DEPRECATED 1
21259 #endif
21260 #ifdef NEED_LBER_H
21261 #include <lber.h>
21262 #endif
21263 #ifdef HAVE_LDAP_H
21264 #include <ldap.h>
21265 #endif
21266 #include <ldap_ssl.h>
21267
21268 int main (void)
21269 {
21270
21271         LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21272
21273  ;
21274  return 0;
21275 }
21276
21277 _ACEOF
21278 if ac_fn_c_try_compile "$LINENO"; then :
21279
21280       curl_cv_header_ldap_ssl_h="yes"
21281
21282 else
21283
21284       curl_cv_header_ldap_ssl_h="no"
21285
21286 fi
21287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21288
21289 fi
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21291 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21292   case "$curl_cv_header_ldap_ssl_h" in
21293     yes)
21294
21295 cat >>confdefs.h <<_ACEOF
21296 #define HAVE_LDAP_SSL_H 1
21297 _ACEOF
21298
21299       ;;
21300   esac
21301
21302
21303   if test -z "$LDAPLIBNAME" ; then
21304     if test "$curl_cv_native_windows" = "yes"; then
21305             LDAPLIBNAME="wldap32"
21306       LBERLIBNAME="no"
21307     fi
21308   fi
21309
21310   if test "$LDAPLIBNAME" ; then
21311     as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21313 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21314 if eval \${$as_ac_Lib+:} false; then :
21315   $as_echo_n "(cached) " >&6
21316 else
21317   ac_check_lib_save_LIBS=$LIBS
21318 LIBS="-l"$LDAPLIBNAME"  $LIBS"
21319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21320 /* end confdefs.h.  */
21321
21322
21323 #ifdef __cplusplus
21324 extern "C"
21325 #endif
21326 char ldap_init ();
21327 int main (void)
21328 {
21329 return ldap_init ();
21330  ;
21331  return 0;
21332 }
21333 _ACEOF
21334 if ac_fn_c_try_link "$LINENO"; then :
21335   eval "$as_ac_Lib=yes"
21336 else
21337   eval "$as_ac_Lib=no"
21338 fi
21339 rm -f core conftest.err conftest.$ac_objext \
21340     conftest$ac_exeext conftest.$ac_ext
21341 LIBS=$ac_check_lib_save_LIBS
21342 fi
21343 eval ac_res=\$$as_ac_Lib
21344                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21345 $as_echo "$ac_res" >&6; }
21346 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21347   cat >>confdefs.h <<_ACEOF
21348 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21349 _ACEOF
21350
21351   LIBS="-l"$LDAPLIBNAME" $LIBS"
21352
21353 else
21354
21355       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21356 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21357
21358 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21359
21360       CURL_DISABLE_LDAP=1
21361
21362
21363 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21364
21365       CURL_DISABLE_LDAPS=1
21366
21367 fi
21368
21369   else
21370
21371     #
21372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21373 $as_echo_n "checking for LDAP libraries... " >&6; }
21374   #
21375   u_libs=""
21376   #
21377
21378   #
21379   curl_cv_save_LIBS="$LIBS"
21380   curl_cv_ldap_LIBS="unknown"
21381   #
21382   for x_nlibs in '' "$u_libs" \
21383     '-lldap' \
21384     '-llber -lldap' \
21385     '-lldap -llber' \
21386     '-lldapssl -lldapx -lldapsdk' \
21387     '-lldapsdk -lldapx -lldapssl' ; do
21388     if test "$curl_cv_ldap_LIBS" = "unknown"; then
21389       if test -z "$x_nlibs"; then
21390         LIBS="$curl_cv_save_LIBS"
21391       else
21392         LIBS="$x_nlibs $curl_cv_save_LIBS"
21393       fi
21394       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h.  */
21396
21397
21398 #undef inline
21399 #ifdef HAVE_WINDOWS_H
21400 #ifndef WIN32_LEAN_AND_MEAN
21401 #define WIN32_LEAN_AND_MEAN
21402 #endif
21403 #include <windows.h>
21404 #else
21405 #ifdef HAVE_SYS_TYPES_H
21406 #include <sys/types.h>
21407 #endif
21408 #endif
21409 #ifndef NULL
21410 #define NULL (void *)0
21411 #endif
21412 #ifndef LDAP_DEPRECATED
21413 #define LDAP_DEPRECATED 1
21414 #endif
21415 #ifdef NEED_LBER_H
21416 #include <lber.h>
21417 #endif
21418 #ifdef HAVE_LDAP_H
21419 #include <ldap.h>
21420 #endif
21421
21422 int main (void)
21423 {
21424
21425           BerValue *bvp = NULL;
21426           BerElement *bep = ber_init(bvp);
21427           LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21428           int res = ldap_unbind(ldp);
21429           ber_free(bep, 1);
21430
21431  ;
21432  return 0;
21433 }
21434
21435 _ACEOF
21436 if ac_fn_c_try_link "$LINENO"; then :
21437
21438         curl_cv_ldap_LIBS="$x_nlibs"
21439
21440 fi
21441 rm -f core conftest.err conftest.$ac_objext \
21442     conftest$ac_exeext conftest.$ac_ext
21443     fi
21444   done
21445   #
21446   LIBS="$curl_cv_save_LIBS"
21447   #
21448   case X-"$curl_cv_ldap_LIBS" in
21449     X-unknown)
21450       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21451 $as_echo "cannot find LDAP libraries" >&6; }
21452       ;;
21453     X-)
21454       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21455 $as_echo "no additional lib required" >&6; }
21456       ;;
21457     *)
21458       if test -z "$curl_cv_save_LIBS"; then
21459         LIBS="$curl_cv_ldap_LIBS"
21460       else
21461         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21462       fi
21463       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21464 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21465       ;;
21466   esac
21467   #
21468
21469     case X-"$curl_cv_ldap_LIBS" in
21470       X-unknown)
21471         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21472 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21473
21474 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21475
21476         CURL_DISABLE_LDAP=1
21477
21478
21479 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21480
21481         CURL_DISABLE_LDAPS=1
21482
21483         ;;
21484     esac
21485   fi
21486 fi
21487
21488 if test x$CURL_DISABLE_LDAP != x1 ; then
21489
21490   if test "$LBERLIBNAME" ; then
21491             if test "$LBERLIBNAME" != "no" ; then
21492       as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21494 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21495 if eval \${$as_ac_Lib+:} false; then :
21496   $as_echo_n "(cached) " >&6
21497 else
21498   ac_check_lib_save_LIBS=$LIBS
21499 LIBS="-l"$LBERLIBNAME"  $LIBS"
21500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21501 /* end confdefs.h.  */
21502
21503
21504 #ifdef __cplusplus
21505 extern "C"
21506 #endif
21507 char ber_free ();
21508 int main (void)
21509 {
21510 return ber_free ();
21511  ;
21512  return 0;
21513 }
21514 _ACEOF
21515 if ac_fn_c_try_link "$LINENO"; then :
21516   eval "$as_ac_Lib=yes"
21517 else
21518   eval "$as_ac_Lib=no"
21519 fi
21520 rm -f core conftest.err conftest.$ac_objext \
21521     conftest$ac_exeext conftest.$ac_ext
21522 LIBS=$ac_check_lib_save_LIBS
21523 fi
21524 eval ac_res=\$$as_ac_Lib
21525                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21526 $as_echo "$ac_res" >&6; }
21527 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21528   cat >>confdefs.h <<_ACEOF
21529 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21530 _ACEOF
21531
21532   LIBS="-l"$LBERLIBNAME" $LIBS"
21533
21534 else
21535
21536         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21537 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21538
21539 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21540
21541         CURL_DISABLE_LDAP=1
21542
21543
21544 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21545
21546         CURL_DISABLE_LDAPS=1
21547
21548 fi
21549
21550     fi
21551   fi
21552 fi
21553
21554 if test x$CURL_DISABLE_LDAP != x1 ; then
21555   for ac_func in ldap_url_parse ldap_init_fd
21556 do :
21557   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21558 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21559 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21560   cat >>confdefs.h <<_ACEOF
21561 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21562 _ACEOF
21563
21564 fi
21565 done
21566
21567
21568   if test "$LDAPLIBNAME" = "wldap32"; then
21569     curl_ldap_msg="enabled (winldap)"
21570
21571 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21572
21573   else
21574     curl_ldap_msg="enabled (OpenLDAP)"
21575     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21576
21577 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21578
21579       USE_OPENLDAP=1
21580
21581     fi
21582   fi
21583 fi
21584
21585 if test x$CURL_DISABLE_LDAPS != x1 ; then
21586     curl_ldaps_msg="enabled"
21587 fi
21588
21589
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21591 $as_echo_n "checking whether to enable IPv6... " >&6; }
21592 # Check whether --enable-ipv6 was given.
21593 if test "${enable_ipv6+set}" = set; then :
21594   enableval=$enable_ipv6;  case "$enableval" in
21595   no)
21596        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21597 $as_echo "no" >&6; }
21598        ipv6=no
21599        ;;
21600   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21601 $as_echo "yes" >&6; }
21602        ipv6=yes
21603        ;;
21604   esac
21605 else
21606   if test "$cross_compiling" = yes; then :
21607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21608 $as_echo "yes" >&6; }
21609   ipv6=yes
21610
21611 else
21612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21613 /* end confdefs.h.  */
21614  /* is AF_INET6 available? */
21615 #include <sys/types.h>
21616 #ifdef HAVE_WINSOCK2_H
21617 #include <winsock2.h>
21618 #else
21619 #include <sys/socket.h>
21620 #endif
21621 #include <stdlib.h> /* for exit() */
21622 main()
21623 {
21624  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21625    exit(1);
21626  else
21627    exit(0);
21628 }
21629
21630 _ACEOF
21631 if ac_fn_c_try_run "$LINENO"; then :
21632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21633 $as_echo "yes" >&6; }
21634   ipv6=yes
21635 else
21636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21637 $as_echo "no" >&6; }
21638   ipv6=no
21639 fi
21640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21641   conftest.$ac_objext conftest.beam conftest.$ac_ext
21642 fi
21643
21644 fi
21645
21646
21647 if test "$ipv6" = "yes"; then
21648   curl_ipv6_msg="enabled"
21649 fi
21650
21651 # Check if struct sockaddr_in6 have sin6_scope_id member
21652 if test "$ipv6" = yes; then
21653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21654 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21656 /* end confdefs.h.  */
21657
21658 #include <sys/types.h>
21659 #ifdef HAVE_WINSOCK2_H
21660 #include <winsock2.h>
21661 #include <ws2tcpip.h>
21662 #else
21663 #include <netinet/in.h>
21664 #endif
21665 int main (void)
21666 {
21667 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21668  ;
21669  return 0;
21670 }
21671 _ACEOF
21672 if ac_fn_c_try_compile "$LINENO"; then :
21673   have_sin6_scope_id=yes
21674 fi
21675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21676   if test "$have_sin6_scope_id" = yes; then
21677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21678 $as_echo "yes" >&6; }
21679
21680 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21681
21682   else
21683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21684 $as_echo "no" >&6; }
21685   fi
21686 fi
21687
21688
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21690 $as_echo_n "checking if argv can be written to... " >&6; }
21691 if test "$cross_compiling" = yes; then :
21692
21693   curl_cv_writable_argv=cross
21694
21695 else
21696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21697 /* end confdefs.h.  */
21698
21699
21700 int main(int argc, char ** argv) {
21701     argv[0][0] = ' ';
21702     return (argv[0][0] == ' ')?0:1;
21703 }
21704
21705
21706 _ACEOF
21707 if ac_fn_c_try_run "$LINENO"; then :
21708
21709   curl_cv_writable_argv=yes
21710
21711 else
21712
21713   curl_cv_writable_argv=no
21714
21715 fi
21716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21717   conftest.$ac_objext conftest.beam conftest.$ac_ext
21718 fi
21719
21720 case $curl_cv_writable_argv in
21721 yes)
21722
21723 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21724
21725         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21726 $as_echo "yes" >&6; }
21727         ;;
21728 no)
21729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21730 $as_echo "no" >&6; }
21731         ;;
21732 *)
21733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21734 $as_echo "no" >&6; }
21735         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21736 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21737         ;;
21738 esac
21739
21740
21741
21742 GSSAPI_ROOT="/usr"
21743
21744 # Check whether --with-gssapi-includes was given.
21745 if test "${with_gssapi_includes+set}" = set; then :
21746   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
21747     want_gss="yes"
21748
21749 fi
21750
21751
21752
21753 # Check whether --with-gssapi-libs was given.
21754 if test "${with_gssapi_libs+set}" = set; then :
21755   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
21756     want_gss="yes"
21757
21758 fi
21759
21760
21761
21762 # Check whether --with-gssapi was given.
21763 if test "${with_gssapi+set}" = set; then :
21764   withval=$with_gssapi;
21765   GSSAPI_ROOT="$withval"
21766   if test x"$GSSAPI_ROOT" != xno; then
21767     want_gss="yes"
21768     if test x"$GSSAPI_ROOT" = xyes; then
21769             GSSAPI_ROOT="/usr"
21770     fi
21771   fi
21772
21773 fi
21774
21775
21776 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21777
21778 save_CPPFLAGS="$CPPFLAGS"
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21780 $as_echo_n "checking if GSS-API support is requested... " >&6; }
21781 if test x"$want_gss" = xyes; then
21782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21783 $as_echo "yes" >&6; }
21784
21785   if test -z "$GSSAPI_INCS"; then
21786      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21787         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21788      elif test -f "$KRB5CONFIG"; then
21789         GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21790      elif test "$GSSAPI_ROOT" != "yes"; then
21791         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21792      fi
21793   fi
21794
21795   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21796
21797   ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21798 if test "x$ac_cv_header_gss_h" = xyes; then :
21799
21800
21801 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21802
21803       gnu_gss=yes
21804
21805 else
21806
21807             for ac_header in gssapi/gssapi.h
21808 do :
21809   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21810 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21811   cat >>confdefs.h <<_ACEOF
21812 #define HAVE_GSSAPI_GSSAPI_H 1
21813 _ACEOF
21814
21815 else
21816   not_mit=1
21817 fi
21818
21819 done
21820
21821       for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21822 do :
21823   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21824 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21825 $ac_includes_default
21826 #ifdef HAVE_GSSAPI_GSSAPI_H
21827 #include <gssapi/gssapi.h>
21828 #endif
21829
21830 "
21831 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21832   cat >>confdefs.h <<_ACEOF
21833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21834 _ACEOF
21835
21836 else
21837   not_mit=1
21838 fi
21839
21840 done
21841
21842       if test "x$not_mit" = "x1"; then
21843                 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21844 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21845
21846
21847 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21848
21849
21850 else
21851
21852                             want_gss=no
21853               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21854 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21855
21856
21857 fi
21858
21859
21860       else
21861
21862 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21863
21864                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21865 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21866         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21867 /* end confdefs.h.  */
21868
21869
21870 #include <gssapi/gssapi.h>
21871 #include <gssapi/gssapi_generic.h>
21872 #include <gssapi/gssapi_krb5.h>
21873
21874 int main (void)
21875 {
21876
21877             gss_import_name(
21878                             (OM_uint32 *)0,
21879                             (gss_buffer_t)0,
21880                             GSS_C_NT_HOSTBASED_SERVICE,
21881                             (gss_name_t *)0);
21882
21883  ;
21884  return 0;
21885 }
21886
21887 _ACEOF
21888 if ac_fn_c_try_compile "$LINENO"; then :
21889
21890           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21891 $as_echo "yes" >&6; }
21892
21893 else
21894
21895           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21896 $as_echo "no" >&6; }
21897
21898 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21899
21900
21901 fi
21902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21903       fi
21904
21905
21906 fi
21907
21908
21909 else
21910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21911 $as_echo "no" >&6; }
21912 fi
21913 if test x"$want_gss" = xyes; then
21914
21915 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21916
21917   HAVE_GSSAPI=1
21918   curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21919
21920   if test -n "$gnu_gss"; then
21921     curl_gss_msg="enabled (GNU GSS)"
21922     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21923     LIBS="-lgss $LIBS"
21924   elif test -z "$GSSAPI_LIB_DIR"; then
21925      case $host in
21926      *-*-darwin*)
21927         LIBS="-lgssapi_krb5 -lresolv $LIBS"
21928         ;;
21929      *)
21930         if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21931                                  gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21932            LIBS="$gss_libs $LIBS"
21933         elif test -f "$KRB5CONFIG"; then
21934                                  gss_libs=`$KRB5CONFIG --libs gssapi`
21935            LIBS="$gss_libs $LIBS"
21936         else
21937            case $host in
21938            *-hp-hpux*)
21939               gss_libname="gss"
21940               ;;
21941            *)
21942               gss_libname="gssapi"
21943               ;;
21944            esac
21945
21946            if test "$GSSAPI_ROOT" != "yes"; then
21947               LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21948               LIBS="-l$gss_libname $LIBS"
21949            else
21950               LIBS="-l$gss_libname $LIBS"
21951            fi
21952         fi
21953         ;;
21954      esac
21955   else
21956      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21957      case $host in
21958      *-hp-hpux*)
21959         LIBS="-lgss $LIBS"
21960         ;;
21961      *)
21962         LIBS="-lgssapi $LIBS"
21963         ;;
21964      esac
21965   fi
21966 else
21967   CPPFLAGS="$save_CPPFLAGS"
21968 fi
21969
21970
21971 OPT_WINSSL=no
21972
21973 # Check whether --with-winssl was given.
21974 if test "${with_winssl+set}" = set; then :
21975   withval=$with_winssl; OPT_WINSSL=$withval
21976 fi
21977
21978
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
21980 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
21981 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21982   if test "x$OPT_WINSSL" != "xno"  &&
21983      test "x$curl_cv_native_windows" = "xyes"; then
21984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21985 $as_echo "yes" >&6; }
21986
21987 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
21988
21989     USE_SCHANNEL=1
21990
21991     curl_ssl_msg="enabled (Windows-native)"
21992     WINSSL_ENABLED=1
21993     # --with-winssl implies --enable-sspi
21994
21995 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
21996
21997     USE_WINDOWS_SSPI=1
21998
21999     curl_sspi_msg="enabled"
22000     LIBS="-lcrypt32 $LIBS"
22001   else
22002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22003 $as_echo "no" >&6; }
22004   fi
22005 else
22006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22007 $as_echo "no" >&6; }
22008 fi
22009
22010 OPT_DARWINSSL=no
22011
22012 # Check whether --with-darwinssl was given.
22013 if test "${with_darwinssl+set}" = set; then :
22014   withval=$with_darwinssl; OPT_DARWINSSL=$withval
22015 fi
22016
22017
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable iOS/Mac OS X native SSL/TLS" >&5
22019 $as_echo_n "checking whether to enable iOS/Mac OS X native SSL/TLS... " >&6; }
22020 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22021   if test "x$OPT_DARWINSSL" != "xno" &&
22022      test -d "/System/Library/Frameworks/Security.framework"; then
22023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22024 $as_echo "yes" >&6; }
22025
22026 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22027
22028     USE_DARWINSSL=1
22029
22030     curl_ssl_msg="enabled (iOS/Mac OS X-native)"
22031     DARWINSSL_ENABLED=1
22032     LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22033   else
22034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22035 $as_echo "no" >&6; }
22036   fi
22037 else
22038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22039 $as_echo "no" >&6; }
22040 fi
22041
22042
22043 OPT_SSL=off
22044 ca="no"
22045
22046 # Check whether --with-ssl was given.
22047 if test "${with_ssl+set}" = set; then :
22048   withval=$with_ssl; OPT_SSL=$withval
22049 fi
22050
22051
22052 if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
22053     CLEANLDFLAGS="$LDFLAGS"
22054   CLEANCPPFLAGS="$CPPFLAGS"
22055   CLEANLIBS="$LIBS"
22056
22057     case $host in
22058     *-*-msys* | *-*-mingw*)
22059       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22060 $as_echo_n "checking for gdi32... " >&6; }
22061       my_ac_save_LIBS=$LIBS
22062       LIBS="-lgdi32 $LIBS"
22063       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22064 /* end confdefs.h.  */
22065 #include <windef.h>
22066                    #include <wingdi.h>
22067 int main (void)
22068 {
22069 GdiFlush();
22070  ;
22071  return 0;
22072 }
22073 _ACEOF
22074 if ac_fn_c_try_link "$LINENO"; then :
22075                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22076 $as_echo "yes" >&6; }
22077 else
22078                       LIBS=$my_ac_save_LIBS
22079                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22080 $as_echo "no" >&6; }
22081
22082 fi
22083 rm -f core conftest.err conftest.$ac_objext \
22084     conftest$ac_exeext conftest.$ac_ext
22085       ;;
22086   esac
22087
22088   case "$OPT_SSL" in
22089   yes)
22090         if test x$cross_compiling != xyes; then
22091             PKGTEST="yes"
22092     fi
22093     PREFIX_OPENSSL=/usr/local/ssl
22094     LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22095     ;;
22096   off)
22097         if test x$cross_compiling != xyes; then
22098             PKGTEST="yes"
22099     fi
22100     PREFIX_OPENSSL=
22101     ;;
22102   *)
22103         PKGTEST="no"
22104     PREFIX_OPENSSL=$OPT_SSL
22105
22106                 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22107     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22108 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22109     if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22110       PKGTEST="yes"
22111     fi
22112
22113             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22114     if test "$PREFIX_OPENSSL" != "/usr" ; then
22115       SSL_LDFLAGS="-L$LIB_OPENSSL"
22116       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22117     fi
22118     SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22119     ;;
22120   esac
22121
22122   if test "$PKGTEST" = "yes"; then
22123
22124
22125     if test -n "$PKG_CONFIG"; then
22126       PKGCONFIG="$PKG_CONFIG"
22127     else
22128       if test -n "$ac_tool_prefix"; then
22129   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22130 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22132 $as_echo_n "checking for $ac_word... " >&6; }
22133 if ${ac_cv_path_PKGCONFIG+:} false; then :
22134   $as_echo_n "(cached) " >&6
22135 else
22136   case $PKGCONFIG in
22137   [\\/]* | ?:[\\/]*)
22138   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22139   ;;
22140   *)
22141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22142 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22143 for as_dir in $as_dummy
22144 do
22145   IFS=$as_save_IFS
22146   test -z "$as_dir" && as_dir=.
22147     for ac_exec_ext in '' $ac_executable_extensions; do
22148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22149     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22151     break 2
22152   fi
22153 done
22154   done
22155 IFS=$as_save_IFS
22156
22157   ;;
22158 esac
22159 fi
22160 PKGCONFIG=$ac_cv_path_PKGCONFIG
22161 if test -n "$PKGCONFIG"; then
22162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22163 $as_echo "$PKGCONFIG" >&6; }
22164 else
22165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22166 $as_echo "no" >&6; }
22167 fi
22168
22169
22170 fi
22171 if test -z "$ac_cv_path_PKGCONFIG"; then
22172   ac_pt_PKGCONFIG=$PKGCONFIG
22173   # Extract the first word of "pkg-config", so it can be a program name with args.
22174 set dummy pkg-config; ac_word=$2
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22176 $as_echo_n "checking for $ac_word... " >&6; }
22177 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22178   $as_echo_n "(cached) " >&6
22179 else
22180   case $ac_pt_PKGCONFIG in
22181   [\\/]* | ?:[\\/]*)
22182   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22183   ;;
22184   *)
22185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22186 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22187 for as_dir in $as_dummy
22188 do
22189   IFS=$as_save_IFS
22190   test -z "$as_dir" && as_dir=.
22191     for ac_exec_ext in '' $ac_executable_extensions; do
22192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22193     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22195     break 2
22196   fi
22197 done
22198   done
22199 IFS=$as_save_IFS
22200
22201   ;;
22202 esac
22203 fi
22204 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22205 if test -n "$ac_pt_PKGCONFIG"; then
22206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22207 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22208 else
22209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22210 $as_echo "no" >&6; }
22211 fi
22212
22213   if test "x$ac_pt_PKGCONFIG" = x; then
22214     PKGCONFIG="no"
22215   else
22216     case $cross_compiling:$ac_tool_warned in
22217 yes:)
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22220 ac_tool_warned=yes ;;
22221 esac
22222     PKGCONFIG=$ac_pt_PKGCONFIG
22223   fi
22224 else
22225   PKGCONFIG="$ac_cv_path_PKGCONFIG"
22226 fi
22227
22228     fi
22229
22230     if test "x$PKGCONFIG" != "xno"; then
22231       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22232 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22233             itexists=`
22234     if test -n "$OPENSSL_PCDIR"; then
22235       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22236       export PKG_CONFIG_LIBDIR
22237     fi
22238          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22239
22240       if test -z "$itexists"; then
22241                         PKGCONFIG="no"
22242         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22243 $as_echo "no" >&6; }
22244       else
22245         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22246 $as_echo "found" >&6; }
22247       fi
22248     fi
22249
22250
22251     if test "$PKGCONFIG" != "no" ; then
22252       SSL_LIBS=`
22253     if test -n "$OPENSSL_PCDIR"; then
22254       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22255       export PKG_CONFIG_LIBDIR
22256     fi
22257          $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22258
22259       SSL_LDFLAGS=`
22260     if test -n "$OPENSSL_PCDIR"; then
22261       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22262       export PKG_CONFIG_LIBDIR
22263     fi
22264          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22265
22266       SSL_CPPFLAGS=`
22267     if test -n "$OPENSSL_PCDIR"; then
22268       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22269       export PKG_CONFIG_LIBDIR
22270     fi
22271          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22272
22273
22274       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22275 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22276       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22277 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22278       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22279 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22280
22281       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22282
22283                                           LIBS="$SSL_LIBS $LIBS"
22284     fi
22285   fi
22286
22287     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22288   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22289
22290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22291 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22292 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22293   $as_echo_n "(cached) " >&6
22294 else
22295   ac_check_lib_save_LIBS=$LIBS
22296 LIBS="-lcrypto  $LIBS"
22297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22298 /* end confdefs.h.  */
22299
22300
22301 #ifdef __cplusplus
22302 extern "C"
22303 #endif
22304 char HMAC_Update ();
22305 int main (void)
22306 {
22307 return HMAC_Update ();
22308  ;
22309  return 0;
22310 }
22311 _ACEOF
22312 if ac_fn_c_try_link "$LINENO"; then :
22313   ac_cv_lib_crypto_HMAC_Update=yes
22314 else
22315   ac_cv_lib_crypto_HMAC_Update=no
22316 fi
22317 rm -f core conftest.err conftest.$ac_objext \
22318     conftest$ac_exeext conftest.$ac_ext
22319 LIBS=$ac_check_lib_save_LIBS
22320 fi
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22322 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22323 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22324
22325      HAVECRYPTO="yes"
22326      LIBS="-lcrypto $LIBS"
22327
22328 else
22329
22330      LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22331      CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22332      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22333 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22334 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22335   $as_echo_n "(cached) " >&6
22336 else
22337   ac_check_lib_save_LIBS=$LIBS
22338 LIBS="-lcrypto  $LIBS"
22339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22340 /* end confdefs.h.  */
22341
22342
22343 #ifdef __cplusplus
22344 extern "C"
22345 #endif
22346 char HMAC_Init_ex ();
22347 int main (void)
22348 {
22349 return HMAC_Init_ex ();
22350  ;
22351  return 0;
22352 }
22353 _ACEOF
22354 if ac_fn_c_try_link "$LINENO"; then :
22355   ac_cv_lib_crypto_HMAC_Init_ex=yes
22356 else
22357   ac_cv_lib_crypto_HMAC_Init_ex=no
22358 fi
22359 rm -f core conftest.err conftest.$ac_objext \
22360     conftest$ac_exeext conftest.$ac_ext
22361 LIBS=$ac_check_lib_save_LIBS
22362 fi
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22364 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22365 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22366
22367        HAVECRYPTO="yes"
22368        LIBS="-lcrypto $LIBS"
22369 else
22370
22371        LDFLAGS="$CLEANLDFLAGS"
22372        CPPFLAGS="$CLEANCPPFLAGS"
22373        LIBS="$CLEANLIBS"
22374
22375 fi
22376
22377
22378 fi
22379
22380
22381
22382   if test X"$HAVECRYPTO" = X"yes"; then
22383      { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking without -ldl" >&5
22384 $as_echo_n "checking OpenSSL linking without -ldl... " >&6; }
22385      saved_libs=$LIBS
22386      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h.  */
22388
22389           #include <openssl/evp.h>
22390
22391 int main (void)
22392 {
22393
22394           SSLeay_add_all_algorithms();
22395
22396  ;
22397  return 0;
22398 }
22399 _ACEOF
22400 if ac_fn_c_try_link "$LINENO"; then :
22401
22402           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22403 $as_echo "yes" >&6; }
22404           LIBS="$saved_libs"
22405
22406 else
22407
22408           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22409 $as_echo "no" >&6; }
22410           { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22411 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22412           LIBS="-ldl $LIBS"
22413           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22414 /* end confdefs.h.  */
22415
22416             #include <openssl/evp.h>
22417
22418 int main (void)
22419 {
22420
22421             SSLeay_add_all_algorithms();
22422
22423  ;
22424  return 0;
22425 }
22426 _ACEOF
22427 if ac_fn_c_try_link "$LINENO"; then :
22428
22429             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22430 $as_echo "yes" >&6; }
22431             LIBS="$saved_libs -ldl"
22432
22433 else
22434
22435             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22436 $as_echo "no" >&6; }
22437             LIBS="$saved_libs"
22438
22439
22440 fi
22441 rm -f core conftest.err conftest.$ac_objext \
22442     conftest$ac_exeext conftest.$ac_ext
22443
22444
22445
22446 fi
22447 rm -f core conftest.err conftest.$ac_objext \
22448     conftest$ac_exeext conftest.$ac_ext
22449
22450   fi
22451
22452   if test X"$HAVECRYPTO" = X"yes"; then
22453
22454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22455 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22456 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22457   $as_echo_n "(cached) " >&6
22458 else
22459   ac_check_lib_save_LIBS=$LIBS
22460 LIBS="-lssl  $LIBS"
22461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22462 /* end confdefs.h.  */
22463
22464
22465 #ifdef __cplusplus
22466 extern "C"
22467 #endif
22468 char SSL_connect ();
22469 int main (void)
22470 {
22471 return SSL_connect ();
22472  ;
22473  return 0;
22474 }
22475 _ACEOF
22476 if ac_fn_c_try_link "$LINENO"; then :
22477   ac_cv_lib_ssl_SSL_connect=yes
22478 else
22479   ac_cv_lib_ssl_SSL_connect=no
22480 fi
22481 rm -f core conftest.err conftest.$ac_objext \
22482     conftest$ac_exeext conftest.$ac_ext
22483 LIBS=$ac_check_lib_save_LIBS
22484 fi
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22486 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22487 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22488   cat >>confdefs.h <<_ACEOF
22489 #define HAVE_LIBSSL 1
22490 _ACEOF
22491
22492   LIBS="-lssl $LIBS"
22493
22494 fi
22495
22496
22497     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22498                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22499 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22500         OLIBS=$LIBS
22501         LIBS="-lRSAglue -lrsaref $LIBS"
22502         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22503 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22504 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22505   $as_echo_n "(cached) " >&6
22506 else
22507   ac_check_lib_save_LIBS=$LIBS
22508 LIBS="-lssl  $LIBS"
22509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22510 /* end confdefs.h.  */
22511
22512
22513 #ifdef __cplusplus
22514 extern "C"
22515 #endif
22516 char SSL_connect ();
22517 int main (void)
22518 {
22519 return SSL_connect ();
22520  ;
22521  return 0;
22522 }
22523 _ACEOF
22524 if ac_fn_c_try_link "$LINENO"; then :
22525   ac_cv_lib_ssl_SSL_connect=yes
22526 else
22527   ac_cv_lib_ssl_SSL_connect=no
22528 fi
22529 rm -f core conftest.err conftest.$ac_objext \
22530     conftest$ac_exeext conftest.$ac_ext
22531 LIBS=$ac_check_lib_save_LIBS
22532 fi
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22534 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22535 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22536   cat >>confdefs.h <<_ACEOF
22537 #define HAVE_LIBSSL 1
22538 _ACEOF
22539
22540   LIBS="-lssl $LIBS"
22541
22542 fi
22543
22544         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22545                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22546 $as_echo "no" >&6; }
22547             LIBS=$OLIBS
22548         else
22549             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22550 $as_echo "yes" >&6; }
22551         fi
22552
22553     else
22554
22555             for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22556                        openssl/pem.h openssl/ssl.h openssl/err.h
22557 do :
22558   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22559 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22560 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22561   cat >>confdefs.h <<_ACEOF
22562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22563 _ACEOF
22564  curl_ssl_msg="enabled (OpenSSL)"
22565         OPENSSL_ENABLED=1
22566
22567 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22568
22569 fi
22570
22571 done
22572
22573
22574       if test $ac_cv_header_openssl_x509_h = no; then
22575                                 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22576 do :
22577   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22578 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22579 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22580   cat >>confdefs.h <<_ACEOF
22581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22582 _ACEOF
22583
22584 fi
22585
22586 done
22587
22588
22589         if test $ac_cv_header_x509_h = yes &&
22590            test $ac_cv_header_crypto_h = yes &&
22591            test $ac_cv_header_ssl_h = yes; then
22592                     curl_ssl_msg="enabled (OpenSSL)"
22593           OPENSSL_ENABLED=1
22594         fi
22595       fi
22596     fi
22597
22598     if test X"$OPENSSL_ENABLED" = X"1"; then
22599               for ac_header in openssl/pkcs12.h
22600 do :
22601   ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
22602 if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
22603   cat >>confdefs.h <<_ACEOF
22604 #define HAVE_OPENSSL_PKCS12_H 1
22605 _ACEOF
22606
22607 fi
22608
22609 done
22610
22611     else
22612        LIBS="$CLEANLIBS"
22613     fi
22614
22615     if test X"$OPT_SSL" != Xoff &&
22616        test "$OPENSSL_ENABLED" != "1"; then
22617       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22618     fi
22619   fi
22620
22621   if test X"$OPENSSL_ENABLED" = X"1"; then
22622             ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22623 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22624
22625                 for ac_header in openssl/engine.h
22626 do :
22627   ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22628 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22629   cat >>confdefs.h <<_ACEOF
22630 #define HAVE_OPENSSL_ENGINE_H 1
22631 _ACEOF
22632
22633 fi
22634
22635 done
22636
22637                 for ac_func in ENGINE_load_builtin_engines
22638 do :
22639   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22640 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22641 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22642   cat >>confdefs.h <<_ACEOF
22643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22644 _ACEOF
22645
22646 fi
22647 done
22648
22649
22650 fi
22651
22652
22653
22654     for ac_func in RAND_status \
22655                     RAND_screen \
22656                     RAND_egd \
22657                     ENGINE_cleanup \
22658                     CRYPTO_cleanup_all_ex_data \
22659                     SSL_get_shutdown \
22660                     SSLv2_client_method
22661 do :
22662   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22663 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22664 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22665   cat >>confdefs.h <<_ACEOF
22666 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22667 _ACEOF
22668
22669 fi
22670 done
22671
22672
22673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22674 $as_echo_n "checking for BoringSSL... " >&6; }
22675     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22676 /* end confdefs.h.  */
22677
22678
22679                 #include <openssl/base.h>
22680
22681 int main (void)
22682 {
22683
22684                 #ifndef OPENSSL_IS_BORINGSSL
22685                 #error not boringssl
22686                 #endif
22687
22688  ;
22689  return 0;
22690 }
22691
22692 _ACEOF
22693 if ac_fn_c_try_compile "$LINENO"; then :
22694
22695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22696 $as_echo "yes" >&6; }
22697
22698 cat >>confdefs.h <<_ACEOF
22699 #define HAVE_BORINGSSL 1
22700 _ACEOF
22701
22702         curl_ssl_msg="enabled (BoringSSL)"
22703
22704 else
22705
22706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22707 $as_echo "no" >&6; }
22708
22709 fi
22710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22711
22712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22713 $as_echo_n "checking for libressl... " >&6; }
22714     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22715 /* end confdefs.h.  */
22716
22717
22718 #include <openssl/opensslv.h>
22719
22720 int main (void)
22721 {
22722
22723         int dummy = LIBRESSL_VERSION_NUMBER;
22724
22725  ;
22726  return 0;
22727 }
22728
22729 _ACEOF
22730 if ac_fn_c_try_compile "$LINENO"; then :
22731
22732       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22733 $as_echo "yes" >&6; }
22734
22735 cat >>confdefs.h <<_ACEOF
22736 #define HAVE_LIBRESSL 1
22737 _ACEOF
22738
22739       curl_ssl_msg="enabled (libressl)"
22740
22741 else
22742
22743       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22744 $as_echo "no" >&6; }
22745
22746 fi
22747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22748   fi
22749
22750   if test "$OPENSSL_ENABLED" = "1"; then
22751     if test -n "$LIB_OPENSSL"; then
22752                             if test "x$cross_compiling" != "xyes"; then
22753          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
22754          export LD_LIBRARY_PATH
22755          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
22756 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
22757        fi
22758     fi
22759
22760   #
22761
22762   #
22763   tst_api="unknown"
22764   #
22765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22766 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22767
22768     OLDCPPFLAGS=$CPPFLAGS
22769   # CPPPFLAG comes from CURL_CPP_P
22770   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22771       if test -z "$SED"; then
22772     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22773   fi
22774   if test -z "$GREP"; then
22775     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22776   fi
22777
22778   tmp_exp=""
22779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22780 /* end confdefs.h.  */
22781
22782
22783 #   ifdef USE_OPENSSL
22784 #     include <openssl/crypto.h>
22785 #   else
22786 #     include <crypto.h>
22787 #   endif
22788
22789 #ifdef OPENSSL_VERSION_NUMBER
22790 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22791 #endif
22792
22793
22794 _ACEOF
22795 if ac_fn_c_try_cpp "$LINENO"; then :
22796
22797     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22798       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22799       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22800       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22801     if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22802       tmp_exp=""
22803     fi
22804
22805 fi
22806 rm -f conftest.err conftest.i conftest.$ac_ext
22807   if test -z "$tmp_exp"; then
22808     curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22809
22810   else
22811     curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22812     curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22813
22814   fi
22815       CPPFLAGS=$OLDCPPFLAGS
22816
22817   if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22818     tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22819     case "x$tst_verlen" in
22820       x6)
22821         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22822         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22823         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22824         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22825         ;;
22826       x11|x10)
22827         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22828         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22829         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22830         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22831         ;;
22832       *)
22833         tst_api="unknown"
22834         ;;
22835     esac
22836     case $tst_api in
22837       0x110) tst_show="1.1.0" ;;
22838       0x102) tst_show="1.0.2" ;;
22839       0x101) tst_show="1.0.1" ;;
22840       0x100) tst_show="1.0.0" ;;
22841       0x099) tst_show="0.9.9" ;;
22842       0x098) tst_show="0.9.8" ;;
22843       0x097) tst_show="0.9.7" ;;
22844       0x096) tst_show="0.9.6" ;;
22845       0x095) tst_show="0.9.5" ;;
22846       0x094) tst_show="0.9.4" ;;
22847       0x093) tst_show="0.9.3" ;;
22848       0x092) tst_show="0.9.2" ;;
22849       0x091) tst_show="0.9.1" ;;
22850       *)     tst_show="unknown" ;;
22851     esac
22852     tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22853   else
22854     tst_show="unknown"
22855   fi
22856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22857 $as_echo "$tst_show" >&6; }
22858   #
22859   curl_openssl_api_headers=$tst_api
22860
22861
22862   #
22863   tst_api="unknown"
22864   #
22865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22866 $as_echo_n "checking for OpenSSL library version... " >&6; }
22867   if test "$tst_api" = "unknown"; then
22868     case $host in
22869       *-*-vms*)
22870         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22871 /* end confdefs.h.  */
22872
22873
22874 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22875 #ifdef __STDC__
22876 # include <limits.h>
22877 #else
22878 # include <assert.h>
22879 #endif
22880 #undef SSL_CTX_set_not_resumbl_sess_cb
22881 #ifdef __cplusplus
22882 extern "C"
22883 #endif
22884 char SSL_CTX_set_not_resumbl_sess_cb ();
22885 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22886 choke me
22887 #endif
22888
22889 int main (void)
22890 {
22891 return SSL_CTX_set_not_resumbl_sess_cb ();
22892  ;
22893  return 0;
22894 }
22895
22896 _ACEOF
22897 if ac_fn_c_try_link "$LINENO"; then :
22898
22899           tst_api="0x110"
22900
22901 fi
22902 rm -f core conftest.err conftest.$ac_objext \
22903     conftest$ac_exeext conftest.$ac_ext
22904         ;;
22905       *)
22906         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22907 /* end confdefs.h.  */
22908
22909
22910 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22911 #ifdef __STDC__
22912 # include <limits.h>
22913 #else
22914 # include <assert.h>
22915 #endif
22916 #undef SSL_CTX_set_not_resumable_session_callback
22917 #ifdef __cplusplus
22918 extern "C"
22919 #endif
22920 char SSL_CTX_set_not_resumable_session_callback ();
22921 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22922 choke me
22923 #endif
22924
22925 int main (void)
22926 {
22927 return SSL_CTX_set_not_resumable_session_callback ();
22928  ;
22929  return 0;
22930 }
22931
22932 _ACEOF
22933 if ac_fn_c_try_link "$LINENO"; then :
22934
22935           tst_api="0x110"
22936
22937 fi
22938 rm -f core conftest.err conftest.$ac_objext \
22939     conftest$ac_exeext conftest.$ac_ext
22940         ;;
22941     esac
22942   fi
22943   if test "$tst_api" = "unknown"; then
22944     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22945 /* end confdefs.h.  */
22946
22947
22948 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
22949 #ifdef __STDC__
22950 # include <limits.h>
22951 #else
22952 # include <assert.h>
22953 #endif
22954 #undef SSL_CONF_CTX_new
22955 #ifdef __cplusplus
22956 extern "C"
22957 #endif
22958 char SSL_CONF_CTX_new ();
22959 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
22960 choke me
22961 #endif
22962
22963 int main (void)
22964 {
22965 return SSL_CONF_CTX_new ();
22966  ;
22967  return 0;
22968 }
22969
22970 _ACEOF
22971 if ac_fn_c_try_link "$LINENO"; then :
22972
22973       tst_api="0x102"
22974
22975 fi
22976 rm -f core conftest.err conftest.$ac_objext \
22977     conftest$ac_exeext conftest.$ac_ext
22978   fi
22979   if test "$tst_api" = "unknown"; then
22980     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22981 /* end confdefs.h.  */
22982
22983
22984 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
22985 #ifdef __STDC__
22986 # include <limits.h>
22987 #else
22988 # include <assert.h>
22989 #endif
22990 #undef SSL_renegotiate_abbreviated
22991 #ifdef __cplusplus
22992 extern "C"
22993 #endif
22994 char SSL_renegotiate_abbreviated ();
22995 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
22996 choke me
22997 #endif
22998
22999 int main (void)
23000 {
23001 return SSL_renegotiate_abbreviated ();
23002  ;
23003  return 0;
23004 }
23005
23006 _ACEOF
23007 if ac_fn_c_try_link "$LINENO"; then :
23008
23009       tst_api="0x101"
23010
23011 fi
23012 rm -f core conftest.err conftest.$ac_objext \
23013     conftest$ac_exeext conftest.$ac_ext
23014   fi
23015   if test "$tst_api" = "unknown"; then
23016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23017 /* end confdefs.h.  */
23018
23019
23020 #define OBJ_add_sigid innocuous_OBJ_add_sigid
23021 #ifdef __STDC__
23022 # include <limits.h>
23023 #else
23024 # include <assert.h>
23025 #endif
23026 #undef OBJ_add_sigid
23027 #ifdef __cplusplus
23028 extern "C"
23029 #endif
23030 char OBJ_add_sigid ();
23031 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23032 choke me
23033 #endif
23034
23035 int main (void)
23036 {
23037 return OBJ_add_sigid ();
23038  ;
23039  return 0;
23040 }
23041
23042 _ACEOF
23043 if ac_fn_c_try_link "$LINENO"; then :
23044
23045       tst_api="0x100"
23046
23047 fi
23048 rm -f core conftest.err conftest.$ac_objext \
23049     conftest$ac_exeext conftest.$ac_ext
23050   fi
23051   if test "$tst_api" = "unknown"; then
23052     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23053 /* end confdefs.h.  */
23054
23055
23056 #define ERR_set_mark innocuous_ERR_set_mark
23057 #ifdef __STDC__
23058 # include <limits.h>
23059 #else
23060 # include <assert.h>
23061 #endif
23062 #undef ERR_set_mark
23063 #ifdef __cplusplus
23064 extern "C"
23065 #endif
23066 char ERR_set_mark ();
23067 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23068 choke me
23069 #endif
23070
23071 int main (void)
23072 {
23073 return ERR_set_mark ();
23074  ;
23075  return 0;
23076 }
23077
23078 _ACEOF
23079 if ac_fn_c_try_link "$LINENO"; then :
23080
23081       tst_api="0x098"
23082
23083 fi
23084 rm -f core conftest.err conftest.$ac_objext \
23085     conftest$ac_exeext conftest.$ac_ext
23086   fi
23087   if test "$tst_api" = "unknown"; then
23088     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23089 /* end confdefs.h.  */
23090
23091
23092 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23093 #ifdef __STDC__
23094 # include <limits.h>
23095 #else
23096 # include <assert.h>
23097 #endif
23098 #undef ERR_peek_last_error
23099 #ifdef __cplusplus
23100 extern "C"
23101 #endif
23102 char ERR_peek_last_error ();
23103 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23104 choke me
23105 #endif
23106
23107 int main (void)
23108 {
23109 return ERR_peek_last_error ();
23110  ;
23111  return 0;
23112 }
23113
23114 _ACEOF
23115 if ac_fn_c_try_link "$LINENO"; then :
23116
23117       tst_api="0x097"
23118
23119 fi
23120 rm -f core conftest.err conftest.$ac_objext \
23121     conftest$ac_exeext conftest.$ac_ext
23122   fi
23123   if test "$tst_api" = "unknown"; then
23124     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23125 /* end confdefs.h.  */
23126
23127
23128 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23129 #ifdef __STDC__
23130 # include <limits.h>
23131 #else
23132 # include <assert.h>
23133 #endif
23134 #undef c2i_ASN1_OBJECT
23135 #ifdef __cplusplus
23136 extern "C"
23137 #endif
23138 char c2i_ASN1_OBJECT ();
23139 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23140 choke me
23141 #endif
23142
23143 int main (void)
23144 {
23145 return c2i_ASN1_OBJECT ();
23146  ;
23147  return 0;
23148 }
23149
23150 _ACEOF
23151 if ac_fn_c_try_link "$LINENO"; then :
23152
23153       tst_api="0x096"
23154
23155 fi
23156 rm -f core conftest.err conftest.$ac_objext \
23157     conftest$ac_exeext conftest.$ac_ext
23158   fi
23159   if test "$tst_api" = "unknown"; then
23160     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161 /* end confdefs.h.  */
23162
23163
23164 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23165 #ifdef __STDC__
23166 # include <limits.h>
23167 #else
23168 # include <assert.h>
23169 #endif
23170 #undef SSL_CTX_set_purpose
23171 #ifdef __cplusplus
23172 extern "C"
23173 #endif
23174 char SSL_CTX_set_purpose ();
23175 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23176 choke me
23177 #endif
23178
23179 int main (void)
23180 {
23181 return SSL_CTX_set_purpose ();
23182  ;
23183  return 0;
23184 }
23185
23186 _ACEOF
23187 if ac_fn_c_try_link "$LINENO"; then :
23188
23189       tst_api="0x095"
23190
23191 fi
23192 rm -f core conftest.err conftest.$ac_objext \
23193     conftest$ac_exeext conftest.$ac_ext
23194   fi
23195   if test "$tst_api" = "unknown"; then
23196     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23197 /* end confdefs.h.  */
23198
23199
23200 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23201 #ifdef __STDC__
23202 # include <limits.h>
23203 #else
23204 # include <assert.h>
23205 #endif
23206 #undef OBJ_obj2txt
23207 #ifdef __cplusplus
23208 extern "C"
23209 #endif
23210 char OBJ_obj2txt ();
23211 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23212 choke me
23213 #endif
23214
23215 int main (void)
23216 {
23217 return OBJ_obj2txt ();
23218  ;
23219  return 0;
23220 }
23221
23222 _ACEOF
23223 if ac_fn_c_try_link "$LINENO"; then :
23224
23225       tst_api="0x094"
23226
23227 fi
23228 rm -f core conftest.err conftest.$ac_objext \
23229     conftest$ac_exeext conftest.$ac_ext
23230   fi
23231   if test "$tst_api" = "unknown"; then
23232     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23233 /* end confdefs.h.  */
23234
23235
23236 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23237 #ifdef __STDC__
23238 # include <limits.h>
23239 #else
23240 # include <assert.h>
23241 #endif
23242 #undef SSL_get_verify_depth
23243 #ifdef __cplusplus
23244 extern "C"
23245 #endif
23246 char SSL_get_verify_depth ();
23247 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23248 choke me
23249 #endif
23250
23251 int main (void)
23252 {
23253 return SSL_get_verify_depth ();
23254  ;
23255  return 0;
23256 }
23257
23258 _ACEOF
23259 if ac_fn_c_try_link "$LINENO"; then :
23260
23261       tst_api="0x093"
23262
23263 fi
23264 rm -f core conftest.err conftest.$ac_objext \
23265     conftest$ac_exeext conftest.$ac_ext
23266   fi
23267   if test "$tst_api" = "unknown"; then
23268     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23269 /* end confdefs.h.  */
23270
23271
23272 #define SSL_library_init innocuous_SSL_library_init
23273 #ifdef __STDC__
23274 # include <limits.h>
23275 #else
23276 # include <assert.h>
23277 #endif
23278 #undef SSL_library_init
23279 #ifdef __cplusplus
23280 extern "C"
23281 #endif
23282 char SSL_library_init ();
23283 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23284 choke me
23285 #endif
23286
23287 int main (void)
23288 {
23289 return SSL_library_init ();
23290  ;
23291  return 0;
23292 }
23293
23294 _ACEOF
23295 if ac_fn_c_try_link "$LINENO"; then :
23296
23297       tst_api="0x092"
23298
23299 fi
23300 rm -f core conftest.err conftest.$ac_objext \
23301     conftest$ac_exeext conftest.$ac_ext
23302   fi
23303   if test "$tst_api" = "unknown"; then
23304     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23305 /* end confdefs.h.  */
23306
23307
23308 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23309 #ifdef __STDC__
23310 # include <limits.h>
23311 #else
23312 # include <assert.h>
23313 #endif
23314 #undef SSL_CTX_set_cipher_list
23315 #ifdef __cplusplus
23316 extern "C"
23317 #endif
23318 char SSL_CTX_set_cipher_list ();
23319 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23320 choke me
23321 #endif
23322
23323 int main (void)
23324 {
23325 return SSL_CTX_set_cipher_list ();
23326  ;
23327  return 0;
23328 }
23329
23330 _ACEOF
23331 if ac_fn_c_try_link "$LINENO"; then :
23332
23333       tst_api="0x091"
23334
23335 fi
23336 rm -f core conftest.err conftest.$ac_objext \
23337     conftest$ac_exeext conftest.$ac_ext
23338   fi
23339   case $tst_api in
23340     0x110) tst_show="1.1.0" ;;
23341     0x102) tst_show="1.0.2" ;;
23342     0x101) tst_show="1.0.1" ;;
23343     0x100) tst_show="1.0.0" ;;
23344     0x099) tst_show="0.9.9" ;;
23345     0x098) tst_show="0.9.8" ;;
23346     0x097) tst_show="0.9.7" ;;
23347     0x096) tst_show="0.9.6" ;;
23348     0x095) tst_show="0.9.5" ;;
23349     0x094) tst_show="0.9.4" ;;
23350     0x093) tst_show="0.9.3" ;;
23351     0x092) tst_show="0.9.2" ;;
23352     0x091) tst_show="0.9.1" ;;
23353     *)     tst_show="unknown" ;;
23354   esac
23355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23356 $as_echo "$tst_show" >&6; }
23357   #
23358   curl_openssl_api_library=$tst_api
23359
23360   #
23361   tst_match="yes"
23362   #
23363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23364 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23365   if test "$curl_openssl_api_headers" = "unknown" ||
23366     test "$curl_openssl_api_library" = "unknown"; then
23367     tst_match="fail"
23368     tst_warns="Can not compare OpenSSL headers and library versions."
23369   elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23370     tst_match="no"
23371     tst_warns="OpenSSL headers and library versions do not match."
23372   fi
23373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23374 $as_echo "$tst_match" >&6; }
23375   if test "$tst_match" != "yes"; then
23376     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23377 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23378   fi
23379
23380   fi
23381
23382 fi
23383
23384
23385 if test X"$OPENSSL_ENABLED" = X"1"; then
23386
23387 # Check whether --with-egd-socket was given.
23388 if test "${with_egd_socket+set}" = set; then :
23389   withval=$with_egd_socket;  EGD_SOCKET="$withval"
23390
23391 fi
23392
23393   if test -n "$EGD_SOCKET" ; then
23394
23395 cat >>confdefs.h <<_ACEOF
23396 #define EGD_SOCKET "$EGD_SOCKET"
23397 _ACEOF
23398
23399   fi
23400
23401
23402 # Check whether --with-random was given.
23403 if test "${with_random+set}" = set; then :
23404   withval=$with_random;  RANDOM_FILE="$withval"
23405 else
23406
23407           if test x$cross_compiling != xyes; then
23408                         as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23410 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23411 if eval \${$as_ac_File+:} false; then :
23412   $as_echo_n "(cached) " >&6
23413 else
23414   test "$cross_compiling" = yes &&
23415   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23416 if test -r ""/dev/urandom""; then
23417   eval "$as_ac_File=yes"
23418 else
23419   eval "$as_ac_File=no"
23420 fi
23421 fi
23422 eval ac_res=\$$as_ac_File
23423                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23424 $as_echo "$ac_res" >&6; }
23425 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23426    RANDOM_FILE="/dev/urandom"
23427 fi
23428
23429           else
23430             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23431 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23432           fi
23433
23434
23435 fi
23436
23437   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23438
23439
23440 cat >>confdefs.h <<_ACEOF
23441 #define RANDOM_FILE "$RANDOM_FILE"
23442 _ACEOF
23443
23444   fi
23445 fi
23446
23447 if test "$OPENSSL_ENABLED" = "1"; then
23448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23449 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23450 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23451   $as_echo_n "(cached) " >&6
23452 else
23453   ac_check_lib_save_LIBS=$LIBS
23454 LIBS="-lcrypto  $LIBS"
23455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456 /* end confdefs.h.  */
23457
23458
23459 #ifdef __cplusplus
23460 extern "C"
23461 #endif
23462 char SRP_Calc_client_key ();
23463 int main (void)
23464 {
23465 return SRP_Calc_client_key ();
23466  ;
23467  return 0;
23468 }
23469 _ACEOF
23470 if ac_fn_c_try_link "$LINENO"; then :
23471   ac_cv_lib_crypto_SRP_Calc_client_key=yes
23472 else
23473   ac_cv_lib_crypto_SRP_Calc_client_key=no
23474 fi
23475 rm -f core conftest.err conftest.$ac_objext \
23476     conftest$ac_exeext conftest.$ac_ext
23477 LIBS=$ac_check_lib_save_LIBS
23478 fi
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23480 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23481 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23482
23483
23484 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23485
23486      HAVE_OPENSSL_SRP=1
23487
23488
23489 fi
23490
23491 fi
23492
23493
23494 OPT_GNUTLS=no
23495
23496
23497 # Check whether --with-gnutls was given.
23498 if test "${with_gnutls+set}" = set; then :
23499   withval=$with_gnutls; OPT_GNUTLS=$withval
23500 fi
23501
23502
23503 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23504
23505   if test X"$OPT_GNUTLS" != Xno; then
23506
23507     addld=""
23508     addlib=""
23509     gtlslib=""
23510     version=""
23511     addcflags=""
23512
23513     if test "x$OPT_GNUTLS" = "xyes"; then
23514
23515     if test -n "$PKG_CONFIG"; then
23516       PKGCONFIG="$PKG_CONFIG"
23517     else
23518       if test -n "$ac_tool_prefix"; then
23519   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23520 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23522 $as_echo_n "checking for $ac_word... " >&6; }
23523 if ${ac_cv_path_PKGCONFIG+:} false; then :
23524   $as_echo_n "(cached) " >&6
23525 else
23526   case $PKGCONFIG in
23527   [\\/]* | ?:[\\/]*)
23528   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23529   ;;
23530   *)
23531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23532 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23533 for as_dir in $as_dummy
23534 do
23535   IFS=$as_save_IFS
23536   test -z "$as_dir" && as_dir=.
23537     for ac_exec_ext in '' $ac_executable_extensions; do
23538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23539     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23541     break 2
23542   fi
23543 done
23544   done
23545 IFS=$as_save_IFS
23546
23547   ;;
23548 esac
23549 fi
23550 PKGCONFIG=$ac_cv_path_PKGCONFIG
23551 if test -n "$PKGCONFIG"; then
23552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23553 $as_echo "$PKGCONFIG" >&6; }
23554 else
23555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23556 $as_echo "no" >&6; }
23557 fi
23558
23559
23560 fi
23561 if test -z "$ac_cv_path_PKGCONFIG"; then
23562   ac_pt_PKGCONFIG=$PKGCONFIG
23563   # Extract the first word of "pkg-config", so it can be a program name with args.
23564 set dummy pkg-config; ac_word=$2
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23566 $as_echo_n "checking for $ac_word... " >&6; }
23567 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23568   $as_echo_n "(cached) " >&6
23569 else
23570   case $ac_pt_PKGCONFIG in
23571   [\\/]* | ?:[\\/]*)
23572   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23573   ;;
23574   *)
23575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23576 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23577 for as_dir in $as_dummy
23578 do
23579   IFS=$as_save_IFS
23580   test -z "$as_dir" && as_dir=.
23581     for ac_exec_ext in '' $ac_executable_extensions; do
23582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23583     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23585     break 2
23586   fi
23587 done
23588   done
23589 IFS=$as_save_IFS
23590
23591   ;;
23592 esac
23593 fi
23594 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23595 if test -n "$ac_pt_PKGCONFIG"; then
23596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23597 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23598 else
23599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23600 $as_echo "no" >&6; }
23601 fi
23602
23603   if test "x$ac_pt_PKGCONFIG" = x; then
23604     PKGCONFIG="no"
23605   else
23606     case $cross_compiling:$ac_tool_warned in
23607 yes:)
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23610 ac_tool_warned=yes ;;
23611 esac
23612     PKGCONFIG=$ac_pt_PKGCONFIG
23613   fi
23614 else
23615   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23616 fi
23617
23618     fi
23619
23620     if test "x$PKGCONFIG" != "xno"; then
23621       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23622 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23623             itexists=`
23624     if test -n ""; then
23625       PKG_CONFIG_LIBDIR=""
23626       export PKG_CONFIG_LIBDIR
23627     fi
23628          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23629
23630       if test -z "$itexists"; then
23631                         PKGCONFIG="no"
23632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23633 $as_echo "no" >&6; }
23634       else
23635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23636 $as_echo "found" >&6; }
23637       fi
23638     fi
23639
23640
23641       if test "$PKGCONFIG" != "no" ; then
23642         addlib=`$PKGCONFIG --libs-only-l gnutls`
23643         addld=`$PKGCONFIG --libs-only-L gnutls`
23644         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23645         version=`$PKGCONFIG --modversion gnutls`
23646         gtlslib=`echo $addld | $SED -e 's/-L//'`
23647       else
23648                         check=`libgnutls-config --version 2>/dev/null`
23649         if test -n "$check"; then
23650           addlib=`libgnutls-config --libs`
23651           addcflags=`libgnutls-config --cflags`
23652           version=`libgnutls-config --version`
23653           gtlslib=`libgnutls-config --prefix`/lib$libsuff
23654         fi
23655       fi
23656     else
23657                   cfg=$OPT_GNUTLS/bin/libgnutls-config
23658       check=`$cfg --version 2>/dev/null`
23659       if test -n "$check"; then
23660         addlib=`$cfg --libs`
23661         addcflags=`$cfg --cflags`
23662         version=`$cfg --version`
23663         gtlslib=`$cfg --prefix`/lib$libsuff
23664       else
23665                 addlib=-lgnutls
23666         addld=-L$OPT_GNUTLS/lib$libsuff
23667         addcflags=-I$OPT_GNUTLS/include
23668         version="" # we just don't know
23669         gtlslib=$OPT_GNUTLS/lib$libsuff
23670       fi
23671     fi
23672
23673     if test -z "$version"; then
23674             version="unknown"
23675     fi
23676
23677     if test -n "$addlib"; then
23678
23679       CLEANLIBS="$LIBS"
23680       CLEANCPPFLAGS="$CPPFLAGS"
23681       CLEANLDFLAGS="$LDFLAGS"
23682
23683       LIBS="$addlib $LIBS"
23684       LDFLAGS="$LDFLAGS $addld"
23685       if test "$addcflags" != "-I/usr/include"; then
23686          CPPFLAGS="$CPPFLAGS $addcflags"
23687       fi
23688
23689       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23690 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23691 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23692   $as_echo_n "(cached) " >&6
23693 else
23694   ac_check_lib_save_LIBS=$LIBS
23695 LIBS="-lgnutls  $LIBS"
23696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23697 /* end confdefs.h.  */
23698
23699
23700 #ifdef __cplusplus
23701 extern "C"
23702 #endif
23703 char gnutls_check_version ();
23704 int main (void)
23705 {
23706 return gnutls_check_version ();
23707  ;
23708  return 0;
23709 }
23710 _ACEOF
23711 if ac_fn_c_try_link "$LINENO"; then :
23712   ac_cv_lib_gnutls_gnutls_check_version=yes
23713 else
23714   ac_cv_lib_gnutls_gnutls_check_version=no
23715 fi
23716 rm -f core conftest.err conftest.$ac_objext \
23717     conftest$ac_exeext conftest.$ac_ext
23718 LIBS=$ac_check_lib_save_LIBS
23719 fi
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23721 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23722 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23723
23724
23725 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
23726
23727        USE_GNUTLS=1
23728
23729        GNUTLS_ENABLED=1
23730        USE_GNUTLS="yes"
23731        curl_ssl_msg="enabled (GnuTLS)"
23732
23733 else
23734
23735          LIBS="$CLEANLIBS"
23736          CPPFLAGS="$CLEANCPPFLAGS"
23737
23738 fi
23739
23740
23741       if test "x$USE_GNUTLS" = "xyes"; then
23742         { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23743 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
23744
23745         if test -n "$gtlslib"; then
23746                                                   if test "x$cross_compiling" != "xyes"; then
23747             LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
23748             export LD_LIBRARY_PATH
23749             { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
23750 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
23751           fi
23752         fi
23753         for ac_func in gnutls_certificate_set_x509_key_file2
23754 do :
23755   ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_x509_key_file2" "ac_cv_func_gnutls_certificate_set_x509_key_file2"
23756 if test "x$ac_cv_func_gnutls_certificate_set_x509_key_file2" = xyes; then :
23757   cat >>confdefs.h <<_ACEOF
23758 #define HAVE_GNUTLS_CERTIFICATE_SET_X509_KEY_FILE2 1
23759 _ACEOF
23760
23761 fi
23762 done
23763
23764       fi
23765
23766     fi
23767
23768   fi
23769 fi
23770
23771
23772 if test "$GNUTLS_ENABLED" = "1"; then
23773   USE_GNUTLS_NETTLE=
23774   # First check if we can detect either crypto library via transitive linking
23775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23776 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23777 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23778   $as_echo_n "(cached) " >&6
23779 else
23780   ac_check_lib_save_LIBS=$LIBS
23781 LIBS="-lgnutls  $LIBS"
23782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23783 /* end confdefs.h.  */
23784
23785
23786 #ifdef __cplusplus
23787 extern "C"
23788 #endif
23789 char nettle_MD5Init ();
23790 int main (void)
23791 {
23792 return nettle_MD5Init ();
23793  ;
23794  return 0;
23795 }
23796 _ACEOF
23797 if ac_fn_c_try_link "$LINENO"; then :
23798   ac_cv_lib_gnutls_nettle_MD5Init=yes
23799 else
23800   ac_cv_lib_gnutls_nettle_MD5Init=no
23801 fi
23802 rm -f core conftest.err conftest.$ac_objext \
23803     conftest$ac_exeext conftest.$ac_ext
23804 LIBS=$ac_check_lib_save_LIBS
23805 fi
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
23807 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
23808 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
23809    USE_GNUTLS_NETTLE=1
23810 fi
23811
23812   if test "$USE_GNUTLS_NETTLE" = ""; then
23813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23814 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23815 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23816   $as_echo_n "(cached) " >&6
23817 else
23818   ac_check_lib_save_LIBS=$LIBS
23819 LIBS="-lgnutls  $LIBS"
23820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23821 /* end confdefs.h.  */
23822
23823
23824 #ifdef __cplusplus
23825 extern "C"
23826 #endif
23827 char gcry_control ();
23828 int main (void)
23829 {
23830 return gcry_control ();
23831  ;
23832  return 0;
23833 }
23834 _ACEOF
23835 if ac_fn_c_try_link "$LINENO"; then :
23836   ac_cv_lib_gnutls_gcry_control=yes
23837 else
23838   ac_cv_lib_gnutls_gcry_control=no
23839 fi
23840 rm -f core conftest.err conftest.$ac_objext \
23841     conftest$ac_exeext conftest.$ac_ext
23842 LIBS=$ac_check_lib_save_LIBS
23843 fi
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23845 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23846 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23847    USE_GNUTLS_NETTLE=0
23848 fi
23849
23850   fi
23851   # If not, try linking directly to both of them to see if they are available
23852   if test "$USE_GNUTLS_NETTLE" = ""; then
23853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23854 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23855 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23856   $as_echo_n "(cached) " >&6
23857 else
23858   ac_check_lib_save_LIBS=$LIBS
23859 LIBS="-lnettle  $LIBS"
23860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23861 /* end confdefs.h.  */
23862
23863
23864 #ifdef __cplusplus
23865 extern "C"
23866 #endif
23867 char nettle_MD5Init ();
23868 int main (void)
23869 {
23870 return nettle_MD5Init ();
23871  ;
23872  return 0;
23873 }
23874 _ACEOF
23875 if ac_fn_c_try_link "$LINENO"; then :
23876   ac_cv_lib_nettle_nettle_MD5Init=yes
23877 else
23878   ac_cv_lib_nettle_nettle_MD5Init=no
23879 fi
23880 rm -f core conftest.err conftest.$ac_objext \
23881     conftest$ac_exeext conftest.$ac_ext
23882 LIBS=$ac_check_lib_save_LIBS
23883 fi
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23885 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23886 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23887    USE_GNUTLS_NETTLE=1
23888 fi
23889
23890   fi
23891   if test "$USE_GNUTLS_NETTLE" = ""; then
23892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23893 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23894 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23895   $as_echo_n "(cached) " >&6
23896 else
23897   ac_check_lib_save_LIBS=$LIBS
23898 LIBS="-lgcrypt  $LIBS"
23899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23900 /* end confdefs.h.  */
23901
23902
23903 #ifdef __cplusplus
23904 extern "C"
23905 #endif
23906 char gcry_control ();
23907 int main (void)
23908 {
23909 return gcry_control ();
23910  ;
23911  return 0;
23912 }
23913 _ACEOF
23914 if ac_fn_c_try_link "$LINENO"; then :
23915   ac_cv_lib_gcrypt_gcry_control=yes
23916 else
23917   ac_cv_lib_gcrypt_gcry_control=no
23918 fi
23919 rm -f core conftest.err conftest.$ac_objext \
23920     conftest$ac_exeext conftest.$ac_ext
23921 LIBS=$ac_check_lib_save_LIBS
23922 fi
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23924 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23925 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23926    USE_GNUTLS_NETTLE=0
23927 fi
23928
23929   fi
23930   if test "$USE_GNUTLS_NETTLE" = ""; then
23931     as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23932   fi
23933   if test "$USE_GNUTLS_NETTLE" = "1"; then
23934
23935 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23936
23937     USE_GNUTLS_NETTLE=1
23938
23939     LIBS="-lnettle $LIBS"
23940   else
23941     LIBS="-lgcrypt $LIBS"
23942   fi
23943 fi
23944
23945 if test "$GNUTLS_ENABLED" = "1"; then
23946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
23947 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
23948 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
23949   $as_echo_n "(cached) " >&6
23950 else
23951   ac_check_lib_save_LIBS=$LIBS
23952 LIBS="-lgnutls  $LIBS"
23953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23954 /* end confdefs.h.  */
23955
23956
23957 #ifdef __cplusplus
23958 extern "C"
23959 #endif
23960 char gnutls_srp_verifier ();
23961 int main (void)
23962 {
23963 return gnutls_srp_verifier ();
23964  ;
23965  return 0;
23966 }
23967 _ACEOF
23968 if ac_fn_c_try_link "$LINENO"; then :
23969   ac_cv_lib_gnutls_gnutls_srp_verifier=yes
23970 else
23971   ac_cv_lib_gnutls_gnutls_srp_verifier=no
23972 fi
23973 rm -f core conftest.err conftest.$ac_objext \
23974     conftest$ac_exeext conftest.$ac_ext
23975 LIBS=$ac_check_lib_save_LIBS
23976 fi
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
23978 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
23979 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
23980
23981
23982 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
23983
23984      HAVE_GNUTLS_SRP=1
23985
23986
23987 fi
23988
23989 fi
23990
23991
23992 OPT_POLARSSL=no
23993
23994 _cppflags=$CPPFLAGS
23995 _ldflags=$LDFLAGS
23996
23997 # Check whether --with-polarssl was given.
23998 if test "${with_polarssl+set}" = set; then :
23999   withval=$with_polarssl; OPT_POLARSSL=$withval
24000 fi
24001
24002
24003 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24004
24005   if test X"$OPT_POLARSSL" != Xno; then
24006
24007     if test "$OPT_POLARSSL" = "yes"; then
24008       OPT_POLARSSL=""
24009     fi
24010
24011     if test -z "$OPT_POLARSSL" ; then
24012
24013       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24014 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24015 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24016   $as_echo_n "(cached) " >&6
24017 else
24018   ac_check_lib_save_LIBS=$LIBS
24019 LIBS="-lpolarssl  $LIBS"
24020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24021 /* end confdefs.h.  */
24022
24023
24024 #ifdef __cplusplus
24025 extern "C"
24026 #endif
24027 char havege_init ();
24028 int main (void)
24029 {
24030 return havege_init ();
24031  ;
24032  return 0;
24033 }
24034 _ACEOF
24035 if ac_fn_c_try_link "$LINENO"; then :
24036   ac_cv_lib_polarssl_havege_init=yes
24037 else
24038   ac_cv_lib_polarssl_havege_init=no
24039 fi
24040 rm -f core conftest.err conftest.$ac_objext \
24041     conftest$ac_exeext conftest.$ac_ext
24042 LIBS=$ac_check_lib_save_LIBS
24043 fi
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24045 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24046 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24047
24048
24049 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24050
24051          USE_POLARSSL=1
24052
24053          POLARSSL_ENABLED=1
24054          USE_POLARSSL="yes"
24055          curl_ssl_msg="enabled (PolarSSL)"
24056
24057 fi
24058
24059     fi
24060
24061     addld=""
24062     addlib=""
24063     addcflags=""
24064     polarssllib=""
24065
24066     if test "x$USE_POLARSSL" != "xyes"; then
24067             addld=-L$OPT_POLARSSL/lib$libsuff
24068       addcflags=-I$OPT_POLARSSL/include
24069       polarssllib=$OPT_POLARSSL/lib$libsuff
24070
24071       LDFLAGS="$LDFLAGS $addld"
24072       if test "$addcflags" != "-I/usr/include"; then
24073          CPPFLAGS="$CPPFLAGS $addcflags"
24074       fi
24075
24076       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24077 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24078 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24079   $as_echo_n "(cached) " >&6
24080 else
24081   ac_check_lib_save_LIBS=$LIBS
24082 LIBS="-lpolarssl  $LIBS"
24083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24084 /* end confdefs.h.  */
24085
24086
24087 #ifdef __cplusplus
24088 extern "C"
24089 #endif
24090 char ssl_init ();
24091 int main (void)
24092 {
24093 return ssl_init ();
24094  ;
24095  return 0;
24096 }
24097 _ACEOF
24098 if ac_fn_c_try_link "$LINENO"; then :
24099   ac_cv_lib_polarssl_ssl_init=yes
24100 else
24101   ac_cv_lib_polarssl_ssl_init=no
24102 fi
24103 rm -f core conftest.err conftest.$ac_objext \
24104     conftest$ac_exeext conftest.$ac_ext
24105 LIBS=$ac_check_lib_save_LIBS
24106 fi
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24108 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24109 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24110
24111
24112 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24113
24114        USE_POLARSSL=1
24115
24116        POLARSSL_ENABLED=1
24117        USE_POLARSSL="yes"
24118        curl_ssl_msg="enabled (PolarSSL)"
24119
24120 else
24121
24122          CPPFLAGS=$_cppflags
24123          LDFLAGS=$_ldflags
24124
24125 fi
24126
24127     fi
24128
24129     if test "x$USE_POLARSSL" = "xyes"; then
24130       { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24131 $as_echo "$as_me: detected PolarSSL" >&6;}
24132
24133       LIBS="-lpolarssl $LIBS"
24134
24135       if test -n "$polarssllib"; then
24136                                         if test "x$cross_compiling" != "xyes"; then
24137           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24138           export LD_LIBRARY_PATH
24139           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24140 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24141         fi
24142       fi
24143     fi
24144
24145   fi
24146 fi
24147
24148
24149 OPT_MBEDTLS=no
24150
24151 _cppflags=$CPPFLAGS
24152 _ldflags=$LDFLAGS
24153
24154 # Check whether --with-mbedtls was given.
24155 if test "${with_mbedtls+set}" = set; then :
24156   withval=$with_mbedtls; OPT_MBEDTLS=$withval
24157 fi
24158
24159
24160 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24161
24162   if test X"$OPT_MBEDTLS" != Xno; then
24163
24164     if test "$OPT_MBEDTLS" = "yes"; then
24165       OPT_MBEDTLS=""
24166     fi
24167
24168     if test -z "$OPT_MBEDTLS" ; then
24169
24170       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24171 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24172 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24173   $as_echo_n "(cached) " >&6
24174 else
24175   ac_check_lib_save_LIBS=$LIBS
24176 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24178 /* end confdefs.h.  */
24179
24180
24181 #ifdef __cplusplus
24182 extern "C"
24183 #endif
24184 char mbedtls_havege_init ();
24185 int main (void)
24186 {
24187 return mbedtls_havege_init ();
24188  ;
24189  return 0;
24190 }
24191 _ACEOF
24192 if ac_fn_c_try_link "$LINENO"; then :
24193   ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24194 else
24195   ac_cv_lib_mbedtls_mbedtls_havege_init=no
24196 fi
24197 rm -f core conftest.err conftest.$ac_objext \
24198     conftest$ac_exeext conftest.$ac_ext
24199 LIBS=$ac_check_lib_save_LIBS
24200 fi
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24202 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24203 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24204
24205
24206 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24207
24208          USE_MBEDTLS=1
24209
24210          MBEDTLS_ENABLED=1
24211          USE_MBEDTLS="yes"
24212          curl_ssl_msg="enabled (mbedTLS)"
24213
24214 fi
24215
24216     fi
24217
24218     addld=""
24219     addlib=""
24220     addcflags=""
24221     mbedtlslib=""
24222
24223     if test "x$USE_MBEDTLS" != "xyes"; then
24224             addld=-L$OPT_MBEDTLS/lib$libsuff
24225       addcflags=-I$OPT_MBEDTLS/include
24226       mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24227
24228       LDFLAGS="$LDFLAGS $addld"
24229       if test "$addcflags" != "-I/usr/include"; then
24230          CPPFLAGS="$CPPFLAGS $addcflags"
24231       fi
24232
24233       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24234 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24235 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24236   $as_echo_n "(cached) " >&6
24237 else
24238   ac_check_lib_save_LIBS=$LIBS
24239 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h.  */
24242
24243
24244 #ifdef __cplusplus
24245 extern "C"
24246 #endif
24247 char mbedtls_ssl_init ();
24248 int main (void)
24249 {
24250 return mbedtls_ssl_init ();
24251  ;
24252  return 0;
24253 }
24254 _ACEOF
24255 if ac_fn_c_try_link "$LINENO"; then :
24256   ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24257 else
24258   ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24259 fi
24260 rm -f core conftest.err conftest.$ac_objext \
24261     conftest$ac_exeext conftest.$ac_ext
24262 LIBS=$ac_check_lib_save_LIBS
24263 fi
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24265 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24266 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24267
24268
24269 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24270
24271        USE_MBEDTLS=1
24272
24273        MBEDTLS_ENABLED=1
24274        USE_MBEDTLS="yes"
24275        curl_ssl_msg="enabled (mbedTLS)"
24276
24277 else
24278
24279          CPPFLAGS=$_cppflags
24280          LDFLAGS=$_ldflags
24281
24282 fi
24283
24284     fi
24285
24286     if test "x$USE_MBEDTLS" = "xyes"; then
24287       { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24288 $as_echo "$as_me: detected mbedTLS" >&6;}
24289
24290       LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24291
24292       if test -n "$mbedtlslib"; then
24293                                         if test "x$cross_compiling" != "xyes"; then
24294           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24295           export LD_LIBRARY_PATH
24296           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24297 $as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24298         fi
24299       fi
24300     fi
24301
24302   fi
24303 fi
24304
24305
24306 OPT_CYASSL=no
24307
24308 _cppflags=$CPPFLAGS
24309 _ldflags=$LDFLAGS
24310
24311 # Check whether --with-cyassl was given.
24312 if test "${with_cyassl+set}" = set; then :
24313   withval=$with_cyassl; OPT_CYASSL=$withval
24314 fi
24315
24316
24317 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24318
24319   if test X"$OPT_CYASSL" != Xno; then
24320
24321     if test "$OPT_CYASSL" = "yes"; then
24322       OPT_CYASSL=""
24323     fi
24324
24325
24326     cyassllibname=cyassl
24327
24328     if test -z "$OPT_CYASSL" ; then
24329
24330       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24331 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24332 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24333   $as_echo_n "(cached) " >&6
24334 else
24335   ac_check_lib_save_LIBS=$LIBS
24336 LIBS="-lcyassl  $LIBS"
24337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24338 /* end confdefs.h.  */
24339
24340
24341 #ifdef __cplusplus
24342 extern "C"
24343 #endif
24344 char CyaSSL_Init ();
24345 int main (void)
24346 {
24347 return CyaSSL_Init ();
24348  ;
24349  return 0;
24350 }
24351 _ACEOF
24352 if ac_fn_c_try_link "$LINENO"; then :
24353   ac_cv_lib_cyassl_CyaSSL_Init=yes
24354 else
24355   ac_cv_lib_cyassl_CyaSSL_Init=no
24356 fi
24357 rm -f core conftest.err conftest.$ac_objext \
24358     conftest$ac_exeext conftest.$ac_ext
24359 LIBS=$ac_check_lib_save_LIBS
24360 fi
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24362 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24363 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24364
24365
24366 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24367
24368          USE_CYASSL=1
24369
24370          CYASSL_ENABLED=1
24371          USE_CYASSL="yes"
24372          curl_ssl_msg="enabled (CyaSSL)"
24373
24374 fi
24375
24376     fi
24377
24378     addld=""
24379     addlib=""
24380     addcflags=""
24381     cyassllib=""
24382
24383     if test "x$USE_CYASSL" != "xyes"; then
24384             addld=-L$OPT_CYASSL/lib$libsuff
24385       addcflags=-I$OPT_CYASSL/include
24386       cyassllib=$OPT_CYASSL/lib$libsuff
24387
24388       LDFLAGS="$LDFLAGS $addld"
24389       if test "$addcflags" != "-I/usr/include"; then
24390          CPPFLAGS="$CPPFLAGS $addcflags"
24391       fi
24392
24393       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24394 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24395 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24396   $as_echo_n "(cached) " >&6
24397 else
24398   ac_check_lib_save_LIBS=$LIBS
24399 LIBS="-lcyassl  $LIBS"
24400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24401 /* end confdefs.h.  */
24402
24403
24404 #ifdef __cplusplus
24405 extern "C"
24406 #endif
24407 char CyaSSL_Init ();
24408 int main (void)
24409 {
24410 return CyaSSL_Init ();
24411  ;
24412  return 0;
24413 }
24414 _ACEOF
24415 if ac_fn_c_try_link "$LINENO"; then :
24416   ac_cv_lib_cyassl_CyaSSL_Init=yes
24417 else
24418   ac_cv_lib_cyassl_CyaSSL_Init=no
24419 fi
24420 rm -f core conftest.err conftest.$ac_objext \
24421     conftest$ac_exeext conftest.$ac_ext
24422 LIBS=$ac_check_lib_save_LIBS
24423 fi
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24425 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24426 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24427
24428
24429 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24430
24431        USE_CYASSL=1
24432
24433        CYASSL_ENABLED=1
24434        USE_CYASSL="yes"
24435        curl_ssl_msg="enabled (CyaSSL)"
24436
24437 else
24438
24439          CPPFLAGS=$_cppflags
24440          LDFLAGS=$_ldflags
24441          cyassllib=""
24442
24443 fi
24444
24445     fi
24446
24447     addld=""
24448     addlib=""
24449     addcflags=""
24450
24451     if test "x$USE_CYASSL" != "xyes"; then
24452             addld=-L$OPT_CYASSL/lib$libsuff
24453       addcflags=-I$OPT_CYASSL/include
24454       cyassllib=$OPT_CYASSL/lib$libsuff
24455
24456       LDFLAGS="$LDFLAGS $addld"
24457       if test "$addcflags" != "-I/usr/include"; then
24458          CPPFLAGS="$CPPFLAGS $addcflags"
24459       fi
24460
24461       cyassllibname=wolfssl
24462       my_ac_save_LIBS="$LIBS"
24463       LIBS="-l$cyassllibname -lm $LIBS"
24464
24465       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24466 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24467       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24468 /* end confdefs.h.  */
24469
24470
24471 /* These aren't needed for detection and confuse WolfSSL.
24472    They are set up properly later if it is detected.  */
24473 #undef SIZEOF_LONG
24474 #undef SIZEOF_LONG_LONG
24475 #include <cyassl/ssl.h>
24476
24477 int main (void)
24478 {
24479
24480           return CyaSSL_Init();
24481
24482  ;
24483  return 0;
24484 }
24485
24486 _ACEOF
24487 if ac_fn_c_try_link "$LINENO"; then :
24488
24489          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24490 $as_echo "yes" >&6; }
24491
24492 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24493
24494          USE_CYASSL=1
24495
24496          CYASSL_ENABLED=1
24497          USE_CYASSL="yes"
24498          curl_ssl_msg="enabled (WolfSSL)"
24499
24500 else
24501
24502          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24503 $as_echo "no" >&6; }
24504          CPPFLAGS=$_cppflags
24505          LDFLAGS=$_ldflags
24506          cyassllib=""
24507
24508 fi
24509 rm -f core conftest.err conftest.$ac_objext \
24510     conftest$ac_exeext conftest.$ac_ext
24511       LIBS="$my_ac_save_LIBS"
24512     fi
24513
24514     if test "x$USE_CYASSL" = "xyes"; then
24515       { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24516 $as_echo "$as_me: detected $cyassllibname" >&6;}
24517
24518             # The cast to long int works around a bug in the HP C Compiler
24519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24521 # This bug is HP SR number 8606223364.
24522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24523 $as_echo_n "checking size of long long... " >&6; }
24524 if ${ac_cv_sizeof_long_long+:} false; then :
24525   $as_echo_n "(cached) " >&6
24526 else
24527   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
24528
24529 else
24530   if test "$ac_cv_type_long_long" = yes; then
24531      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24533 as_fn_error 77 "cannot compute sizeof (long long)
24534 See \`config.log' for more details" "$LINENO" 5; }
24535    else
24536      ac_cv_sizeof_long_long=0
24537    fi
24538 fi
24539
24540 fi
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24542 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24543
24544
24545
24546 cat >>confdefs.h <<_ACEOF
24547 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24548 _ACEOF
24549
24550
24551
24552             for ac_header in cyassl/options.h
24553 do :
24554   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24555 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24556   cat >>confdefs.h <<_ACEOF
24557 #define HAVE_CYASSL_OPTIONS_H 1
24558 _ACEOF
24559
24560 fi
24561
24562 done
24563
24564
24565             for ac_header in cyassl/error-ssl.h
24566 do :
24567   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24568 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24569   cat >>confdefs.h <<_ACEOF
24570 #define HAVE_CYASSL_ERROR_SSL_H 1
24571 _ACEOF
24572
24573 fi
24574
24575 done
24576
24577
24578       LIBS="-l$cyassllibname -lm $LIBS"
24579
24580       if test "x$cyassllibname" = "xwolfssl"; then
24581                         for ac_func in wolfSSLv3_client_method \
24582                        wolfSSL_CTX_UseSupportedCurve \
24583                        wolfSSL_get_peer_certificate \
24584                        wolfSSL_UseALPN
24585 do :
24586   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24588 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24589   cat >>confdefs.h <<_ACEOF
24590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24591 _ACEOF
24592
24593 fi
24594 done
24595
24596       else
24597                 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24598                        CyaSSL_get_peer_certificate
24599 do :
24600   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24602 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24603   cat >>confdefs.h <<_ACEOF
24604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24605 _ACEOF
24606
24607 fi
24608 done
24609
24610       fi
24611
24612       if test -n "$cyassllib"; then
24613                                         if test "x$cross_compiling" != "xyes"; then
24614           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
24615           export LD_LIBRARY_PATH
24616           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
24617 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
24618         fi
24619       fi
24620
24621     fi
24622
24623   fi
24624 fi
24625
24626
24627 OPT_NSS=no
24628
24629
24630 # Check whether --with-nss was given.
24631 if test "${with_nss+set}" = set; then :
24632   withval=$with_nss; OPT_NSS=$withval
24633 fi
24634
24635
24636 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
24637
24638   if test X"$OPT_NSS" != Xno; then
24639
24640     addld=""
24641     addlib=""
24642     addcflags=""
24643     nssprefix=""
24644     version=""
24645
24646     if test "x$OPT_NSS" = "xyes"; then
24647
24648
24649     if test -n "$PKG_CONFIG"; then
24650       PKGCONFIG="$PKG_CONFIG"
24651     else
24652       if test -n "$ac_tool_prefix"; then
24653   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24654 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24656 $as_echo_n "checking for $ac_word... " >&6; }
24657 if ${ac_cv_path_PKGCONFIG+:} false; then :
24658   $as_echo_n "(cached) " >&6
24659 else
24660   case $PKGCONFIG in
24661   [\\/]* | ?:[\\/]*)
24662   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24663   ;;
24664   *)
24665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24666 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24667 for as_dir in $as_dummy
24668 do
24669   IFS=$as_save_IFS
24670   test -z "$as_dir" && as_dir=.
24671     for ac_exec_ext in '' $ac_executable_extensions; do
24672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24673     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24675     break 2
24676   fi
24677 done
24678   done
24679 IFS=$as_save_IFS
24680
24681   ;;
24682 esac
24683 fi
24684 PKGCONFIG=$ac_cv_path_PKGCONFIG
24685 if test -n "$PKGCONFIG"; then
24686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24687 $as_echo "$PKGCONFIG" >&6; }
24688 else
24689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24690 $as_echo "no" >&6; }
24691 fi
24692
24693
24694 fi
24695 if test -z "$ac_cv_path_PKGCONFIG"; then
24696   ac_pt_PKGCONFIG=$PKGCONFIG
24697   # Extract the first word of "pkg-config", so it can be a program name with args.
24698 set dummy pkg-config; ac_word=$2
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24700 $as_echo_n "checking for $ac_word... " >&6; }
24701 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24702   $as_echo_n "(cached) " >&6
24703 else
24704   case $ac_pt_PKGCONFIG in
24705   [\\/]* | ?:[\\/]*)
24706   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24707   ;;
24708   *)
24709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24710 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24711 for as_dir in $as_dummy
24712 do
24713   IFS=$as_save_IFS
24714   test -z "$as_dir" && as_dir=.
24715     for ac_exec_ext in '' $ac_executable_extensions; do
24716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24717     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24719     break 2
24720   fi
24721 done
24722   done
24723 IFS=$as_save_IFS
24724
24725   ;;
24726 esac
24727 fi
24728 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24729 if test -n "$ac_pt_PKGCONFIG"; then
24730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24731 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24732 else
24733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24734 $as_echo "no" >&6; }
24735 fi
24736
24737   if test "x$ac_pt_PKGCONFIG" = x; then
24738     PKGCONFIG="no"
24739   else
24740     case $cross_compiling:$ac_tool_warned in
24741 yes:)
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24744 ac_tool_warned=yes ;;
24745 esac
24746     PKGCONFIG=$ac_pt_PKGCONFIG
24747   fi
24748 else
24749   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24750 fi
24751
24752     fi
24753
24754     if test "x$PKGCONFIG" != "xno"; then
24755       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24756 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24757             itexists=`
24758     if test -n ""; then
24759       PKG_CONFIG_LIBDIR=""
24760       export PKG_CONFIG_LIBDIR
24761     fi
24762          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24763
24764       if test -z "$itexists"; then
24765                         PKGCONFIG="no"
24766         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24767 $as_echo "no" >&6; }
24768       else
24769         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24770 $as_echo "found" >&6; }
24771       fi
24772     fi
24773
24774
24775       if test "$PKGCONFIG" != "no" ; then
24776         addlib=`$PKGCONFIG --libs nss`
24777         addcflags=`$PKGCONFIG --cflags nss`
24778         version=`$PKGCONFIG --modversion nss`
24779         nssprefix=`$PKGCONFIG --variable=prefix nss`
24780       else
24781
24782         check=`nss-config --version 2>/dev/null`
24783         if test -n "$check"; then
24784           addlib=`nss-config --libs`
24785           addcflags=`nss-config --cflags`
24786           version=`nss-config --version`
24787           nssprefix=`nss-config --prefix`
24788         else
24789           addlib="-lnss3"
24790           addcflags=""
24791           version="unknown"
24792         fi
24793       fi
24794     else
24795       NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
24796       if test -f "$NSS_PCDIR/nss.pc"; then
24797
24798     if test -n "$PKG_CONFIG"; then
24799       PKGCONFIG="$PKG_CONFIG"
24800     else
24801       if test -n "$ac_tool_prefix"; then
24802   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24803 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24805 $as_echo_n "checking for $ac_word... " >&6; }
24806 if ${ac_cv_path_PKGCONFIG+:} false; then :
24807   $as_echo_n "(cached) " >&6
24808 else
24809   case $PKGCONFIG in
24810   [\\/]* | ?:[\\/]*)
24811   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24812   ;;
24813   *)
24814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24815 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24816 for as_dir in $as_dummy
24817 do
24818   IFS=$as_save_IFS
24819   test -z "$as_dir" && as_dir=.
24820     for ac_exec_ext in '' $ac_executable_extensions; do
24821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24822     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24824     break 2
24825   fi
24826 done
24827   done
24828 IFS=$as_save_IFS
24829
24830   ;;
24831 esac
24832 fi
24833 PKGCONFIG=$ac_cv_path_PKGCONFIG
24834 if test -n "$PKGCONFIG"; then
24835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24836 $as_echo "$PKGCONFIG" >&6; }
24837 else
24838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24839 $as_echo "no" >&6; }
24840 fi
24841
24842
24843 fi
24844 if test -z "$ac_cv_path_PKGCONFIG"; then
24845   ac_pt_PKGCONFIG=$PKGCONFIG
24846   # Extract the first word of "pkg-config", so it can be a program name with args.
24847 set dummy pkg-config; ac_word=$2
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24849 $as_echo_n "checking for $ac_word... " >&6; }
24850 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24851   $as_echo_n "(cached) " >&6
24852 else
24853   case $ac_pt_PKGCONFIG in
24854   [\\/]* | ?:[\\/]*)
24855   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24856   ;;
24857   *)
24858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24859 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24860 for as_dir in $as_dummy
24861 do
24862   IFS=$as_save_IFS
24863   test -z "$as_dir" && as_dir=.
24864     for ac_exec_ext in '' $ac_executable_extensions; do
24865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24866     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24868     break 2
24869   fi
24870 done
24871   done
24872 IFS=$as_save_IFS
24873
24874   ;;
24875 esac
24876 fi
24877 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24878 if test -n "$ac_pt_PKGCONFIG"; then
24879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24880 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24881 else
24882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24883 $as_echo "no" >&6; }
24884 fi
24885
24886   if test "x$ac_pt_PKGCONFIG" = x; then
24887     PKGCONFIG="no"
24888   else
24889     case $cross_compiling:$ac_tool_warned in
24890 yes:)
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24893 ac_tool_warned=yes ;;
24894 esac
24895     PKGCONFIG=$ac_pt_PKGCONFIG
24896   fi
24897 else
24898   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24899 fi
24900
24901     fi
24902
24903     if test "x$PKGCONFIG" != "xno"; then
24904       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24905 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24906             itexists=`
24907     if test -n "$NSS_PCDIR"; then
24908       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24909       export PKG_CONFIG_LIBDIR
24910     fi
24911          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24912
24913       if test -z "$itexists"; then
24914                         PKGCONFIG="no"
24915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24916 $as_echo "no" >&6; }
24917       else
24918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24919 $as_echo "found" >&6; }
24920       fi
24921     fi
24922
24923         if test "$PKGCONFIG" != "no" ; then
24924           addld=`
24925     if test -n "$NSS_PCDIR"; then
24926       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24927       export PKG_CONFIG_LIBDIR
24928     fi
24929  $PKGCONFIG --libs-only-L nss`
24930           addlib=`
24931     if test -n "$NSS_PCDIR"; then
24932       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24933       export PKG_CONFIG_LIBDIR
24934     fi
24935  $PKGCONFIG --libs-only-l nss`
24936           addcflags=`
24937     if test -n "$NSS_PCDIR"; then
24938       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24939       export PKG_CONFIG_LIBDIR
24940     fi
24941  $PKGCONFIG --cflags nss`
24942           version=`
24943     if test -n "$NSS_PCDIR"; then
24944       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24945       export PKG_CONFIG_LIBDIR
24946     fi
24947  $PKGCONFIG --modversion nss`
24948           nssprefix=`
24949     if test -n "$NSS_PCDIR"; then
24950       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24951       export PKG_CONFIG_LIBDIR
24952     fi
24953  $PKGCONFIG --variable=prefix nss`
24954         fi
24955       fi
24956     fi
24957
24958     if test -z "$addlib"; then
24959       # Without pkg-config, we'll kludge in some defaults
24960       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
24961 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
24962       addld="-L$OPT_NSS/lib"
24963       addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
24964       addcflags="-I$OPT_NSS/include"
24965       version="unknown"
24966       nssprefix=$OPT_NSS
24967     fi
24968
24969     CLEANLDFLAGS="$LDFLAGS"
24970     CLEANLIBS="$LIBS"
24971     CLEANCPPFLAGS="$CPPFLAGS"
24972
24973     LDFLAGS="$addld $LDFLAGS"
24974     LIBS="$addlib $LIBS"
24975     if test "$addcflags" != "-I/usr/include"; then
24976        CPPFLAGS="$CPPFLAGS $addcflags"
24977     fi
24978
24979         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
24980 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
24981 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
24982   $as_echo_n "(cached) " >&6
24983 else
24984   ac_check_lib_save_LIBS=$LIBS
24985 LIBS="-lnss3  $LIBS"
24986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24987 /* end confdefs.h.  */
24988
24989
24990 #ifdef __cplusplus
24991 extern "C"
24992 #endif
24993 char SSL_VersionRangeSet ();
24994 int main (void)
24995 {
24996 return SSL_VersionRangeSet ();
24997  ;
24998  return 0;
24999 }
25000 _ACEOF
25001 if ac_fn_c_try_link "$LINENO"; then :
25002   ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25003 else
25004   ac_cv_lib_nss3_SSL_VersionRangeSet=no
25005 fi
25006 rm -f core conftest.err conftest.$ac_objext \
25007     conftest$ac_exeext conftest.$ac_ext
25008 LIBS=$ac_check_lib_save_LIBS
25009 fi
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25011 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25012 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25013
25014
25015 $as_echo "#define USE_NSS 1" >>confdefs.h
25016
25017      USE_NSS=1
25018
25019      USE_NSS="yes"
25020      NSS_ENABLED=1
25021      curl_ssl_msg="enabled (NSS)"
25022
25023 else
25024
25025        LDFLAGS="$CLEANLDFLAGS"
25026        LIBS="$CLEANLIBS"
25027        CPPFLAGS="$CLEANCPPFLAGS"
25028
25029 fi
25030
25031
25032     if test "x$USE_NSS" = "xyes"; then
25033       { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25034 $as_echo "$as_me: detected NSS version $version" >&6;}
25035
25036             NSS_LIBS=$addlib
25037
25038
25039                               if test "x$cross_compiling" != "xyes"; then
25040         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
25041         export LD_LIBRARY_PATH
25042         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
25043 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
25044       fi
25045
25046     fi
25047   fi
25048 fi
25049 OPT_AXTLS=off
25050
25051
25052 # Check whether --with-axtls was given.
25053 if test "${with_axtls+set}" = set; then :
25054   withval=$with_axtls; OPT_AXTLS=$withval
25055 fi
25056
25057
25058 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
25059   if test X"$OPT_AXTLS" != Xno; then
25060         CLEANLDFLAGS="$LDFLAGS"
25061     CLEANCPPFLAGS="$CPPFLAGS"
25062     CLEANLIBS="$LIBS"
25063
25064     case "$OPT_AXTLS" in
25065     yes)
25066             PREFIX_AXTLS=/usr/local
25067       LIB_AXTLS="$PREFIX_AXTLS/lib"
25068       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25069       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25070       ;;
25071     off)
25072             PREFIX_AXTLS=
25073       ;;
25074     *)
25075             PREFIX_AXTLS=$OPT_AXTLS
25076       LIB_AXTLS="$PREFIX_AXTLS/lib"
25077       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25078       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25079       ;;
25080     esac
25081
25082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25083 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25084 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25085   $as_echo_n "(cached) " >&6
25086 else
25087   ac_check_lib_save_LIBS=$LIBS
25088 LIBS="-laxtls  $LIBS"
25089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25090 /* end confdefs.h.  */
25091
25092
25093 #ifdef __cplusplus
25094 extern "C"
25095 #endif
25096 char ssl_version ();
25097 int main (void)
25098 {
25099 return ssl_version ();
25100  ;
25101  return 0;
25102 }
25103 _ACEOF
25104 if ac_fn_c_try_link "$LINENO"; then :
25105   ac_cv_lib_axtls_ssl_version=yes
25106 else
25107   ac_cv_lib_axtls_ssl_version=no
25108 fi
25109 rm -f core conftest.err conftest.$ac_objext \
25110     conftest$ac_exeext conftest.$ac_ext
25111 LIBS=$ac_check_lib_save_LIBS
25112 fi
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25114 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25115 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25116
25117       LIBS="-laxtls $LIBS"
25118
25119 $as_echo "#define USE_AXTLS 1" >>confdefs.h
25120
25121       USE_AXTLS=1
25122
25123       AXTLS_ENABLED=1
25124       USE_AXTLS="yes"
25125       curl_ssl_msg="enabled (axTLS)"
25126
25127       if test "x$cross_compiling" != "xyes"; then
25128         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25129         export LD_LIBRARY_PATH
25130         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25131 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25132       fi
25133
25134 else
25135
25136       LDFLAGS="$CLEANLDFLAGS"
25137       CPPFLAGS="$CLEANCPPFLAGS"
25138       LIBS="$CLEANLIBS"
25139
25140 fi
25141
25142   fi
25143 fi
25144
25145 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
25146   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25147 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25148   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&5
25149 $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&2;}
25150 else
25151   # SSL is enabled, genericly
25152
25153   SSL_ENABLED="1"
25154 fi
25155
25156
25157
25158
25159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25160 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25161
25162
25163 # Check whether --with-ca-bundle was given.
25164 if test "${with_ca_bundle+set}" = set; then :
25165   withval=$with_ca_bundle;
25166     want_ca="$withval"
25167     if test "x$want_ca" = "xyes"; then
25168       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25169     fi
25170
25171 else
25172    want_ca="unset"
25173 fi
25174
25175
25176 # Check whether --with-ca-path was given.
25177 if test "${with_ca_path+set}" = set; then :
25178   withval=$with_ca_path;
25179     want_capath="$withval"
25180     if test "x$want_capath" = "xyes"; then
25181       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25182     fi
25183
25184 else
25185    want_capath="unset"
25186 fi
25187
25188
25189   ca_warning="   (warning: certs not found)"
25190   capath_warning="   (warning: certs not found)"
25191   check_capath=""
25192
25193   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25194           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25195         ca="$want_ca"
25196     capath="$want_capath"
25197   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25198         ca="$want_ca"
25199     capath="no"
25200   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25201         if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25202       as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25203     fi
25204     capath="$want_capath"
25205     ca="no"
25206   else
25207             ca="no"
25208     capath="no"
25209     if test "x$cross_compiling" != "xyes"; then
25210                   if test "x$want_ca" = "xunset"; then
25211                                 if test "x$prefix" != xNONE; then
25212           cac="${prefix}/share/curl/curl-ca-bundle.crt"
25213         else
25214           cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25215         fi
25216
25217         for a in /etc/ssl/certs/ca-certificates.crt \
25218                  /etc/pki/tls/certs/ca-bundle.crt \
25219                  /usr/share/ssl/certs/ca-bundle.crt \
25220                  /usr/local/share/certs/ca-root-nss.crt \
25221                  /etc/ssl/cert.pem \
25222                  "$cac"; do
25223           if test -f "$a"; then
25224             ca="$a"
25225             break
25226           fi
25227         done
25228       fi
25229       if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25230               "x$OPENSSL_ENABLED" = "x1"; then
25231         check_capath="/etc/ssl/certs/"
25232       fi
25233     else
25234             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25235 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25236     fi
25237   fi
25238
25239   if test "x$ca" = "xno" || test -f "$ca"; then
25240     ca_warning=""
25241   fi
25242
25243   if test "x$capath" != "xno"; then
25244     check_capath="$capath"
25245   fi
25246
25247   if test ! -z "$check_capath"; then
25248     for a in "$check_capath"; do
25249       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
25250         if test "x$capath" = "xno"; then
25251           capath="$a"
25252         fi
25253         capath_warning=""
25254         break
25255       fi
25256     done
25257   fi
25258
25259   if test "x$capath" = "xno"; then
25260     capath_warning=""
25261   fi
25262
25263   if test "x$ca" != "xno"; then
25264     CURL_CA_BUNDLE='"'$ca'"'
25265
25266 cat >>confdefs.h <<_ACEOF
25267 #define CURL_CA_BUNDLE "$ca"
25268 _ACEOF
25269
25270
25271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25272 $as_echo "$ca" >&6; }
25273   fi
25274   if test "x$capath" != "xno"; then
25275     CURL_CA_PATH="\"$capath\""
25276
25277 cat >>confdefs.h <<_ACEOF
25278 #define CURL_CA_PATH "$capath"
25279 _ACEOF
25280
25281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25282 $as_echo "$capath (capath)" >&6; }
25283   fi
25284   if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25286 $as_echo "no" >&6; }
25287   fi
25288
25289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25290 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25291
25292 # Check whether --with-ca-fallback was given.
25293 if test "${with_ca_fallback+set}" = set; then :
25294   withval=$with_ca_fallback;
25295     if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25296       as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25297     fi
25298
25299 else
25300    with_ca_fallback="no"
25301 fi
25302
25303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25304 $as_echo "$with_ca_fallback" >&6; }
25305   if test "x$with_ca_fallback" = "xyes"; then
25306     if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25307       as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25308     fi
25309
25310 cat >>confdefs.h <<_ACEOF
25311 #define CURL_CA_FALLBACK 1
25312 _ACEOF
25313
25314   fi
25315
25316
25317
25318
25319 # Check whether --with-libpsl was given.
25320 if test "${with_libpsl+set}" = set; then :
25321   withval=$with_libpsl; with_libpsl=$withval
25322 else
25323   with_libpsl=yes
25324 fi
25325
25326 if test $with_libpsl != "no"; then
25327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25328 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25329 if ${ac_cv_search_psl_builtin+:} false; then :
25330   $as_echo_n "(cached) " >&6
25331 else
25332   ac_func_search_save_LIBS=$LIBS
25333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25334 /* end confdefs.h.  */
25335
25336
25337 #ifdef __cplusplus
25338 extern "C"
25339 #endif
25340 char psl_builtin ();
25341 int main (void)
25342 {
25343 return psl_builtin ();
25344  ;
25345  return 0;
25346 }
25347 _ACEOF
25348 for ac_lib in '' psl; do
25349   if test -z "$ac_lib"; then
25350     ac_res="none required"
25351   else
25352     ac_res=-l$ac_lib
25353     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25354   fi
25355   if ac_fn_c_try_link "$LINENO"; then :
25356   ac_cv_search_psl_builtin=$ac_res
25357 fi
25358 rm -f core conftest.err conftest.$ac_objext \
25359     conftest$ac_exeext
25360   if ${ac_cv_search_psl_builtin+:} false; then :
25361   break
25362 fi
25363 done
25364 if ${ac_cv_search_psl_builtin+:} false; then :
25365
25366 else
25367   ac_cv_search_psl_builtin=no
25368 fi
25369 rm conftest.$ac_ext
25370 LIBS=$ac_func_search_save_LIBS
25371 fi
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25373 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25374 ac_res=$ac_cv_search_psl_builtin
25375 if test "$ac_res" != no; then :
25376   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25377   curl_psl_msg="yes";
25378
25379 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25380
25381
25382 else
25383   curl_psl_msg="no      (libpsl not found)";
25384      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25385 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25386
25387
25388 fi
25389
25390 fi
25391  if test "$curl_psl_msg" = "yes"; then
25392   USE_LIBPSL_TRUE=
25393   USE_LIBPSL_FALSE='#'
25394 else
25395   USE_LIBPSL_TRUE='#'
25396   USE_LIBPSL_FALSE=
25397 fi
25398
25399
25400
25401 OPT_LIBMETALINK=no
25402
25403
25404 # Check whether --with-libmetalink was given.
25405 if test "${with_libmetalink+set}" = set; then :
25406   withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25407 fi
25408
25409
25410 if test X"$OPT_LIBMETALINK" != Xno; then
25411
25412   addld=""
25413   addlib=""
25414   addcflags=""
25415   version=""
25416   libmetalinklib=""
25417
25418   PKGTEST="no"
25419   if test "x$OPT_LIBMETALINK" = "xyes"; then
25420         PKGTEST="yes"
25421
25422     if test -n "$PKG_CONFIG"; then
25423       PKGCONFIG="$PKG_CONFIG"
25424     else
25425       if test -n "$ac_tool_prefix"; then
25426   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25427 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25429 $as_echo_n "checking for $ac_word... " >&6; }
25430 if ${ac_cv_path_PKGCONFIG+:} false; then :
25431   $as_echo_n "(cached) " >&6
25432 else
25433   case $PKGCONFIG in
25434   [\\/]* | ?:[\\/]*)
25435   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25436   ;;
25437   *)
25438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25439 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25440 for as_dir in $as_dummy
25441 do
25442   IFS=$as_save_IFS
25443   test -z "$as_dir" && as_dir=.
25444     for ac_exec_ext in '' $ac_executable_extensions; do
25445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25446     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25448     break 2
25449   fi
25450 done
25451   done
25452 IFS=$as_save_IFS
25453
25454   ;;
25455 esac
25456 fi
25457 PKGCONFIG=$ac_cv_path_PKGCONFIG
25458 if test -n "$PKGCONFIG"; then
25459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25460 $as_echo "$PKGCONFIG" >&6; }
25461 else
25462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25463 $as_echo "no" >&6; }
25464 fi
25465
25466
25467 fi
25468 if test -z "$ac_cv_path_PKGCONFIG"; then
25469   ac_pt_PKGCONFIG=$PKGCONFIG
25470   # Extract the first word of "pkg-config", so it can be a program name with args.
25471 set dummy pkg-config; ac_word=$2
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25473 $as_echo_n "checking for $ac_word... " >&6; }
25474 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25475   $as_echo_n "(cached) " >&6
25476 else
25477   case $ac_pt_PKGCONFIG in
25478   [\\/]* | ?:[\\/]*)
25479   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25480   ;;
25481   *)
25482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25483 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25484 for as_dir in $as_dummy
25485 do
25486   IFS=$as_save_IFS
25487   test -z "$as_dir" && as_dir=.
25488     for ac_exec_ext in '' $ac_executable_extensions; do
25489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25490     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25492     break 2
25493   fi
25494 done
25495   done
25496 IFS=$as_save_IFS
25497
25498   ;;
25499 esac
25500 fi
25501 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25502 if test -n "$ac_pt_PKGCONFIG"; then
25503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25504 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25505 else
25506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25507 $as_echo "no" >&6; }
25508 fi
25509
25510   if test "x$ac_pt_PKGCONFIG" = x; then
25511     PKGCONFIG="no"
25512   else
25513     case $cross_compiling:$ac_tool_warned in
25514 yes:)
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25517 ac_tool_warned=yes ;;
25518 esac
25519     PKGCONFIG=$ac_pt_PKGCONFIG
25520   fi
25521 else
25522   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25523 fi
25524
25525     fi
25526
25527     if test "x$PKGCONFIG" != "xno"; then
25528       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25529 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25530             itexists=`
25531     if test -n ""; then
25532       PKG_CONFIG_LIBDIR=""
25533       export PKG_CONFIG_LIBDIR
25534     fi
25535          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25536
25537       if test -z "$itexists"; then
25538                         PKGCONFIG="no"
25539         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25540 $as_echo "no" >&6; }
25541       else
25542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25543 $as_echo "found" >&6; }
25544       fi
25545     fi
25546
25547   else
25548         LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25549     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25550 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25551     if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25552       PKGTEST="yes"
25553     fi
25554     if test "$PKGTEST" = "yes"; then
25555
25556     if test -n "$PKG_CONFIG"; then
25557       PKGCONFIG="$PKG_CONFIG"
25558     else
25559       if test -n "$ac_tool_prefix"; then
25560   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25561 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25563 $as_echo_n "checking for $ac_word... " >&6; }
25564 if ${ac_cv_path_PKGCONFIG+:} false; then :
25565   $as_echo_n "(cached) " >&6
25566 else
25567   case $PKGCONFIG in
25568   [\\/]* | ?:[\\/]*)
25569   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25570   ;;
25571   *)
25572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25573 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25574 for as_dir in $as_dummy
25575 do
25576   IFS=$as_save_IFS
25577   test -z "$as_dir" && as_dir=.
25578     for ac_exec_ext in '' $ac_executable_extensions; do
25579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25580     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25582     break 2
25583   fi
25584 done
25585   done
25586 IFS=$as_save_IFS
25587
25588   ;;
25589 esac
25590 fi
25591 PKGCONFIG=$ac_cv_path_PKGCONFIG
25592 if test -n "$PKGCONFIG"; then
25593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25594 $as_echo "$PKGCONFIG" >&6; }
25595 else
25596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25597 $as_echo "no" >&6; }
25598 fi
25599
25600
25601 fi
25602 if test -z "$ac_cv_path_PKGCONFIG"; then
25603   ac_pt_PKGCONFIG=$PKGCONFIG
25604   # Extract the first word of "pkg-config", so it can be a program name with args.
25605 set dummy pkg-config; ac_word=$2
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25607 $as_echo_n "checking for $ac_word... " >&6; }
25608 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25609   $as_echo_n "(cached) " >&6
25610 else
25611   case $ac_pt_PKGCONFIG in
25612   [\\/]* | ?:[\\/]*)
25613   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25614   ;;
25615   *)
25616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25617 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25618 for as_dir in $as_dummy
25619 do
25620   IFS=$as_save_IFS
25621   test -z "$as_dir" && as_dir=.
25622     for ac_exec_ext in '' $ac_executable_extensions; do
25623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25624     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25626     break 2
25627   fi
25628 done
25629   done
25630 IFS=$as_save_IFS
25631
25632   ;;
25633 esac
25634 fi
25635 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25636 if test -n "$ac_pt_PKGCONFIG"; then
25637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25638 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25639 else
25640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25641 $as_echo "no" >&6; }
25642 fi
25643
25644   if test "x$ac_pt_PKGCONFIG" = x; then
25645     PKGCONFIG="no"
25646   else
25647     case $cross_compiling:$ac_tool_warned in
25648 yes:)
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25651 ac_tool_warned=yes ;;
25652 esac
25653     PKGCONFIG=$ac_pt_PKGCONFIG
25654   fi
25655 else
25656   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25657 fi
25658
25659     fi
25660
25661     if test "x$PKGCONFIG" != "xno"; then
25662       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25663 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25664             itexists=`
25665     if test -n "$LIBMETALINK_PCDIR"; then
25666       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25667       export PKG_CONFIG_LIBDIR
25668     fi
25669          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25670
25671       if test -z "$itexists"; then
25672                         PKGCONFIG="no"
25673         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25674 $as_echo "no" >&6; }
25675       else
25676         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25677 $as_echo "found" >&6; }
25678       fi
25679     fi
25680
25681     fi
25682   fi
25683   if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
25684     addlib=`
25685     if test -n "$LIBMETALINK_PCDIR"; then
25686       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25687       export PKG_CONFIG_LIBDIR
25688     fi
25689        $PKGCONFIG --libs-only-l libmetalink`
25690     addld=`
25691     if test -n "$LIBMETALINK_PCDIR"; then
25692       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25693       export PKG_CONFIG_LIBDIR
25694     fi
25695        $PKGCONFIG --libs-only-L libmetalink`
25696     addcflags=`
25697     if test -n "$LIBMETALINK_PCDIR"; then
25698       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25699       export PKG_CONFIG_LIBDIR
25700     fi
25701        $PKGCONFIG --cflags-only-I libmetalink`
25702     version=`
25703     if test -n "$LIBMETALINK_PCDIR"; then
25704       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25705       export PKG_CONFIG_LIBDIR
25706     fi
25707        $PKGCONFIG --modversion libmetalink`
25708     libmetalinklib=`echo $addld | $SED -e 's/-L//'`
25709   fi
25710   if test -n "$addlib"; then
25711
25712     clean_CPPFLAGS="$CPPFLAGS"
25713     clean_LDFLAGS="$LDFLAGS"
25714     clean_LIBS="$LIBS"
25715     CPPFLAGS="$addcflags $clean_CPPFLAGS"
25716     LDFLAGS="$addld $clean_LDFLAGS"
25717     LIBS="$addlib $clean_LIBS"
25718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
25719 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
25720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 /* end confdefs.h.  */
25722
25723
25724 #       include <metalink/metalink.h>
25725
25726 int main (void)
25727 {
25728
25729         if(0 != metalink_strerror(0)) /* added in 0.1.0 */
25730           return 1;
25731
25732  ;
25733  return 0;
25734 }
25735
25736 _ACEOF
25737 if ac_fn_c_try_link "$LINENO"; then :
25738
25739       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
25740 $as_echo "yes ($version)" >&6; }
25741       want_metalink="yes"
25742
25743 else
25744
25745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
25746 $as_echo "no ($version)" >&6; }
25747       { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
25748 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
25749       want_metalink="no"
25750
25751 fi
25752 rm -f core conftest.err conftest.$ac_objext \
25753     conftest$ac_exeext conftest.$ac_ext
25754     CPPFLAGS="$clean_CPPFLAGS"
25755     LDFLAGS="$clean_LDFLAGS"
25756     LIBS="$clean_LIBS"
25757     if test "$want_metalink" = "yes"; then
25758
25759 $as_echo "#define USE_METALINK 1" >>confdefs.h
25760
25761       LIBMETALINK_LIBS=$addlib
25762       LIBMETALINK_LDFLAGS=$addld
25763       LIBMETALINK_CPPFLAGS=$addcflags
25764
25765
25766
25767       curl_mtlnk_msg="enabled"
25768     fi
25769
25770   fi
25771 fi
25772
25773
25774 OPT_LIBSSH2=off
25775
25776 # Check whether --with-libssh2 was given.
25777 if test "${with_libssh2+set}" = set; then :
25778   withval=$with_libssh2; OPT_LIBSSH2=$withval
25779 fi
25780
25781
25782 if test X"$OPT_LIBSSH2" != Xno; then
25783     CLEANLDFLAGS="$LDFLAGS"
25784   CLEANCPPFLAGS="$CPPFLAGS"
25785   CLEANLIBS="$LIBS"
25786
25787   case "$OPT_LIBSSH2" in
25788   yes)
25789
25790     if test -n "$PKG_CONFIG"; then
25791       PKGCONFIG="$PKG_CONFIG"
25792     else
25793       if test -n "$ac_tool_prefix"; then
25794   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25795 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25797 $as_echo_n "checking for $ac_word... " >&6; }
25798 if ${ac_cv_path_PKGCONFIG+:} false; then :
25799   $as_echo_n "(cached) " >&6
25800 else
25801   case $PKGCONFIG in
25802   [\\/]* | ?:[\\/]*)
25803   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25804   ;;
25805   *)
25806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25807 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25808 for as_dir in $as_dummy
25809 do
25810   IFS=$as_save_IFS
25811   test -z "$as_dir" && as_dir=.
25812     for ac_exec_ext in '' $ac_executable_extensions; do
25813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25814     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25816     break 2
25817   fi
25818 done
25819   done
25820 IFS=$as_save_IFS
25821
25822   ;;
25823 esac
25824 fi
25825 PKGCONFIG=$ac_cv_path_PKGCONFIG
25826 if test -n "$PKGCONFIG"; then
25827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25828 $as_echo "$PKGCONFIG" >&6; }
25829 else
25830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25831 $as_echo "no" >&6; }
25832 fi
25833
25834
25835 fi
25836 if test -z "$ac_cv_path_PKGCONFIG"; then
25837   ac_pt_PKGCONFIG=$PKGCONFIG
25838   # Extract the first word of "pkg-config", so it can be a program name with args.
25839 set dummy pkg-config; ac_word=$2
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25841 $as_echo_n "checking for $ac_word... " >&6; }
25842 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25843   $as_echo_n "(cached) " >&6
25844 else
25845   case $ac_pt_PKGCONFIG in
25846   [\\/]* | ?:[\\/]*)
25847   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25848   ;;
25849   *)
25850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25851 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25852 for as_dir in $as_dummy
25853 do
25854   IFS=$as_save_IFS
25855   test -z "$as_dir" && as_dir=.
25856     for ac_exec_ext in '' $ac_executable_extensions; do
25857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25858     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25860     break 2
25861   fi
25862 done
25863   done
25864 IFS=$as_save_IFS
25865
25866   ;;
25867 esac
25868 fi
25869 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25870 if test -n "$ac_pt_PKGCONFIG"; then
25871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25872 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25873 else
25874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25875 $as_echo "no" >&6; }
25876 fi
25877
25878   if test "x$ac_pt_PKGCONFIG" = x; then
25879     PKGCONFIG="no"
25880   else
25881     case $cross_compiling:$ac_tool_warned in
25882 yes:)
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25885 ac_tool_warned=yes ;;
25886 esac
25887     PKGCONFIG=$ac_pt_PKGCONFIG
25888   fi
25889 else
25890   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25891 fi
25892
25893     fi
25894
25895     if test "x$PKGCONFIG" != "xno"; then
25896       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
25897 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
25898             itexists=`
25899     if test -n ""; then
25900       PKG_CONFIG_LIBDIR=""
25901       export PKG_CONFIG_LIBDIR
25902     fi
25903          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
25904
25905       if test -z "$itexists"; then
25906                         PKGCONFIG="no"
25907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25908 $as_echo "no" >&6; }
25909       else
25910         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25911 $as_echo "found" >&6; }
25912       fi
25913     fi
25914
25915
25916     if test "$PKGCONFIG" != "no" ; then
25917       LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
25918       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
25919       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
25920       version=`$PKGCONFIG --modversion libssh2`
25921       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
25922     fi
25923
25924     ;;
25925   off)
25926         ;;
25927   *)
25928         PREFIX_SSH2=$OPT_LIBSSH2
25929     ;;
25930   esac
25931
25932     if test -n "$PREFIX_SSH2"; then
25933     LIB_SSH2="-lssh2"
25934     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
25935     CPP_SSH2=-I${PREFIX_SSH2}/include
25936     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
25937   fi
25938
25939   LDFLAGS="$LDFLAGS $LD_SSH2"
25940   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
25941   LIBS="$LIB_SSH2 $LIBS"
25942
25943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
25944 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
25945 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
25946   $as_echo_n "(cached) " >&6
25947 else
25948   ac_check_lib_save_LIBS=$LIBS
25949 LIBS="-lssh2  $LIBS"
25950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25951 /* end confdefs.h.  */
25952
25953
25954 #ifdef __cplusplus
25955 extern "C"
25956 #endif
25957 char libssh2_channel_open_ex ();
25958 int main (void)
25959 {
25960 return libssh2_channel_open_ex ();
25961  ;
25962  return 0;
25963 }
25964 _ACEOF
25965 if ac_fn_c_try_link "$LINENO"; then :
25966   ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
25967 else
25968   ac_cv_lib_ssh2_libssh2_channel_open_ex=no
25969 fi
25970 rm -f core conftest.err conftest.$ac_objext \
25971     conftest$ac_exeext conftest.$ac_ext
25972 LIBS=$ac_check_lib_save_LIBS
25973 fi
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
25975 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
25976 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
25977   cat >>confdefs.h <<_ACEOF
25978 #define HAVE_LIBSSH2 1
25979 _ACEOF
25980
25981   LIBS="-lssh2 $LIBS"
25982
25983 fi
25984
25985
25986   for ac_header in libssh2.h
25987 do :
25988   ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
25989 if test "x$ac_cv_header_libssh2_h" = xyes; then :
25990   cat >>confdefs.h <<_ACEOF
25991 #define HAVE_LIBSSH2_H 1
25992 _ACEOF
25993  curl_ssh_msg="enabled (libSSH2)"
25994     LIBSSH2_ENABLED=1
25995
25996 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
25997
25998     USE_LIBSSH2=1
25999
26000
26001 fi
26002
26003 done
26004
26005
26006   if test X"$OPT_LIBSSH2" != Xoff &&
26007      test "$LIBSSH2_ENABLED" != "1"; then
26008     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26009   fi
26010
26011   if test "$LIBSSH2_ENABLED" = "1"; then
26012     if test -n "$DIR_SSH2"; then
26013
26014        if test "x$cross_compiling" != "xyes"; then
26015          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
26016          export LD_LIBRARY_PATH
26017          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
26018 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
26019        fi
26020     fi
26021   else
26022         LDFLAGS=$CLEANLDFLAGS
26023     CPPFLAGS=$CLEANCPPFLAGS
26024     LIBS=$CLEANLIBS
26025   fi
26026 fi
26027
26028
26029 OPT_LIBRTMP=off
26030
26031 # Check whether --with-librtmp was given.
26032 if test "${with_librtmp+set}" = set; then :
26033   withval=$with_librtmp; OPT_LIBRTMP=$withval
26034 fi
26035
26036
26037 if test X"$OPT_LIBRTMP" != Xno; then
26038     CLEANLDFLAGS="$LDFLAGS"
26039   CLEANCPPFLAGS="$CPPFLAGS"
26040   CLEANLIBS="$LIBS"
26041
26042   case "$OPT_LIBRTMP" in
26043   yes)
26044
26045     if test -n "$PKG_CONFIG"; then
26046       PKGCONFIG="$PKG_CONFIG"
26047     else
26048       if test -n "$ac_tool_prefix"; then
26049   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26050 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26052 $as_echo_n "checking for $ac_word... " >&6; }
26053 if ${ac_cv_path_PKGCONFIG+:} false; then :
26054   $as_echo_n "(cached) " >&6
26055 else
26056   case $PKGCONFIG in
26057   [\\/]* | ?:[\\/]*)
26058   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26059   ;;
26060   *)
26061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26062 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26063 for as_dir in $as_dummy
26064 do
26065   IFS=$as_save_IFS
26066   test -z "$as_dir" && as_dir=.
26067     for ac_exec_ext in '' $ac_executable_extensions; do
26068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26069     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26071     break 2
26072   fi
26073 done
26074   done
26075 IFS=$as_save_IFS
26076
26077   ;;
26078 esac
26079 fi
26080 PKGCONFIG=$ac_cv_path_PKGCONFIG
26081 if test -n "$PKGCONFIG"; then
26082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26083 $as_echo "$PKGCONFIG" >&6; }
26084 else
26085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26086 $as_echo "no" >&6; }
26087 fi
26088
26089
26090 fi
26091 if test -z "$ac_cv_path_PKGCONFIG"; then
26092   ac_pt_PKGCONFIG=$PKGCONFIG
26093   # Extract the first word of "pkg-config", so it can be a program name with args.
26094 set dummy pkg-config; ac_word=$2
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26096 $as_echo_n "checking for $ac_word... " >&6; }
26097 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26098   $as_echo_n "(cached) " >&6
26099 else
26100   case $ac_pt_PKGCONFIG in
26101   [\\/]* | ?:[\\/]*)
26102   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26103   ;;
26104   *)
26105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26106 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26107 for as_dir in $as_dummy
26108 do
26109   IFS=$as_save_IFS
26110   test -z "$as_dir" && as_dir=.
26111     for ac_exec_ext in '' $ac_executable_extensions; do
26112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26113     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26115     break 2
26116   fi
26117 done
26118   done
26119 IFS=$as_save_IFS
26120
26121   ;;
26122 esac
26123 fi
26124 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26125 if test -n "$ac_pt_PKGCONFIG"; then
26126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26127 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26128 else
26129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26130 $as_echo "no" >&6; }
26131 fi
26132
26133   if test "x$ac_pt_PKGCONFIG" = x; then
26134     PKGCONFIG="no"
26135   else
26136     case $cross_compiling:$ac_tool_warned in
26137 yes:)
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26140 ac_tool_warned=yes ;;
26141 esac
26142     PKGCONFIG=$ac_pt_PKGCONFIG
26143   fi
26144 else
26145   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26146 fi
26147
26148     fi
26149
26150     if test "x$PKGCONFIG" != "xno"; then
26151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26152 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26153             itexists=`
26154     if test -n ""; then
26155       PKG_CONFIG_LIBDIR=""
26156       export PKG_CONFIG_LIBDIR
26157     fi
26158          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26159
26160       if test -z "$itexists"; then
26161                         PKGCONFIG="no"
26162         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26163 $as_echo "no" >&6; }
26164       else
26165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26166 $as_echo "found" >&6; }
26167       fi
26168     fi
26169
26170
26171     if test "$PKGCONFIG" != "no" ; then
26172       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26173       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26174       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26175       version=`$PKGCONFIG --modversion librtmp`
26176       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26177     else
26178                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26179     fi
26180
26181     ;;
26182   off)
26183         LIB_RTMP="-lrtmp"
26184     ;;
26185   *)
26186         PREFIX_RTMP=$OPT_LIBRTMP
26187     ;;
26188   esac
26189
26190     if test -n "$PREFIX_RTMP"; then
26191     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26192     CPP_RTMP=-I${PREFIX_RTMP}/include
26193     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26194   fi
26195
26196   LDFLAGS="$LDFLAGS $LD_RTMP"
26197   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26198   LIBS="$LIB_RTMP $LIBS"
26199
26200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26201 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26202 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26203   $as_echo_n "(cached) " >&6
26204 else
26205   ac_check_lib_save_LIBS=$LIBS
26206 LIBS="-lrtmp  $LIBS"
26207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26208 /* end confdefs.h.  */
26209
26210
26211 #ifdef __cplusplus
26212 extern "C"
26213 #endif
26214 char RTMP_Init ();
26215 int main (void)
26216 {
26217 return RTMP_Init ();
26218  ;
26219  return 0;
26220 }
26221 _ACEOF
26222 if ac_fn_c_try_link "$LINENO"; then :
26223   ac_cv_lib_rtmp_RTMP_Init=yes
26224 else
26225   ac_cv_lib_rtmp_RTMP_Init=no
26226 fi
26227 rm -f core conftest.err conftest.$ac_objext \
26228     conftest$ac_exeext conftest.$ac_ext
26229 LIBS=$ac_check_lib_save_LIBS
26230 fi
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26232 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26233 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26234
26235      for ac_header in librtmp/rtmp.h
26236 do :
26237   ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26238 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26239   cat >>confdefs.h <<_ACEOF
26240 #define HAVE_LIBRTMP_RTMP_H 1
26241 _ACEOF
26242  curl_rtmp_msg="enabled (librtmp)"
26243         LIBRTMP_ENABLED=1
26244
26245 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26246
26247         USE_LIBRTMP=1
26248
26249
26250 fi
26251
26252 done
26253
26254
26255 else
26256         LDFLAGS=$CLEANLDFLAGS
26257       CPPFLAGS=$CLEANCPPFLAGS
26258       LIBS=$CLEANLIBS
26259
26260 fi
26261
26262
26263   if test X"$OPT_LIBRTMP" != Xoff &&
26264      test "$LIBRTMP_ENABLED" != "1"; then
26265     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26266   fi
26267
26268 fi
26269
26270
26271 versioned_symbols_flavour=
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26273 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26274 # Check whether --enable-versioned-symbols was given.
26275 if test "${enable_versioned_symbols+set}" = set; then :
26276   enableval=$enable_versioned_symbols;  case "$enableval" in
26277   yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26278 $as_echo "yes" >&6; }
26279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26280 $as_echo_n "checking if libraries can be versioned... " >&6; }
26281     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26282     if test -z "$GLD"; then
26283         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26284 $as_echo "no" >&6; }
26285         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26286 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26287     else
26288         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26289 $as_echo "yes" >&6; }
26290         if test "x$OPENSSL_ENABLED" = "x1"; then
26291           versioned_symbols_flavour="OPENSSL_"
26292         elif test "x$GNUTLS_ENABLED" = "x1"; then
26293           versioned_symbols_flavour="GNUTLS_"
26294         elif test "x$NSS_ENABLED" = "x1"; then
26295           versioned_symbols_flavour="NSS_"
26296         elif test "x$POLARSSL_ENABLED" = "x1"; then
26297           versioned_symbols_flavour="POLARSSL_"
26298         elif test "x$CYASSL_ENABLED" = "x1"; then
26299           versioned_symbols_flavour="CYASSL_"
26300         elif test "x$AXTLS_ENABLED" = "x1"; then
26301           versioned_symbols_flavour="AXTLS_"
26302         elif test "x$WINSSL_ENABLED" = "x1"; then
26303           versioned_symbols_flavour="WINSSL_"
26304         elif test "x$DARWINSSL_ENABLED" = "x1"; then
26305           versioned_symbols_flavour="DARWINSSL_"
26306         else
26307           versioned_symbols_flavour=""
26308         fi
26309         versioned_symbols="yes"
26310     fi
26311     ;;
26312
26313   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26314 $as_echo "no" >&6; }
26315     ;;
26316   esac
26317
26318 else
26319
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26321 $as_echo "no" >&6; }
26322
26323
26324 fi
26325
26326
26327 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26328
26329  if test "x$versioned_symbols" = 'xyes'; then
26330   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26331   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26332 else
26333   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26334   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26335 fi
26336
26337
26338
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26340 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26341 OPT_WINIDN="default"
26342
26343 # Check whether --with-winidn was given.
26344 if test "${with_winidn+set}" = set; then :
26345   withval=$with_winidn; OPT_WINIDN=$withval
26346 fi
26347
26348 case "$OPT_WINIDN" in
26349   no|default)
26350         want_winidn="no"
26351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26352 $as_echo "no" >&6; }
26353     ;;
26354   yes)
26355         want_winidn="yes"
26356     want_winidn_path="default"
26357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26358 $as_echo "yes" >&6; }
26359     ;;
26360   *)
26361         want_winidn="yes"
26362     want_winidn_path="$withval"
26363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26364 $as_echo "yes ($withval)" >&6; }
26365     ;;
26366 esac
26367
26368 if test "$want_winidn" = "yes"; then
26369     clean_CPPFLAGS="$CPPFLAGS"
26370   clean_LDFLAGS="$LDFLAGS"
26371   clean_LIBS="$LIBS"
26372   WINIDN_LIBS="-lnormaliz"
26373   #
26374   if test "$want_winidn_path" != "default"; then
26375             WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26376     WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26377     WINIDN_DIR="$want_winidn_path/lib$libsuff"
26378   fi
26379   #
26380   CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
26381   LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
26382   LIBS="$WINIDN_LIBS $LIBS"
26383   #
26384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26385 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26387 /* end confdefs.h.  */
26388
26389
26390 #define IdnToUnicode innocuous_IdnToUnicode
26391 #ifdef __STDC__
26392 # include <limits.h>
26393 #else
26394 # include <assert.h>
26395 #endif
26396 #undef IdnToUnicode
26397 #ifdef __cplusplus
26398 extern "C"
26399 #endif
26400 char IdnToUnicode ();
26401 #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
26402 choke me
26403 #endif
26404
26405 int main (void)
26406 {
26407 return IdnToUnicode ();
26408  ;
26409  return 0;
26410 }
26411
26412 _ACEOF
26413 if ac_fn_c_try_link "$LINENO"; then :
26414
26415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26416 $as_echo "yes" >&6; }
26417     tst_links_winidn="yes"
26418
26419 else
26420
26421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26422 $as_echo "no" >&6; }
26423     tst_links_winidn="no"
26424
26425 fi
26426 rm -f core conftest.err conftest.$ac_objext \
26427     conftest$ac_exeext conftest.$ac_ext
26428   #
26429   if test "$tst_links_winidn" = "yes"; then
26430
26431 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26432
26433
26434 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26435
26436     IDN_ENABLED=1
26437
26438     curl_idn_msg="enabled (Windows-native)"
26439   else
26440     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26441 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26442     CPPFLAGS="$clean_CPPFLAGS"
26443     LDFLAGS="$clean_LDFLAGS"
26444     LIBS="$clean_LIBS"
26445   fi
26446 fi
26447
26448
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
26450 $as_echo_n "checking whether to build with libidn... " >&6; }
26451 OPT_IDN="default"
26452
26453 # Check whether --with-libidn was given.
26454 if test "${with_libidn+set}" = set; then :
26455   withval=$with_libidn; OPT_IDN=$withval
26456 fi
26457
26458 case "$OPT_IDN" in
26459   no)
26460         want_idn="no"
26461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26462 $as_echo "no" >&6; }
26463     ;;
26464   default)
26465         want_idn="yes"
26466     want_idn_path="default"
26467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
26468 $as_echo "(assumed) yes" >&6; }
26469     ;;
26470   yes)
26471         want_idn="yes"
26472     want_idn_path="default"
26473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26474 $as_echo "yes" >&6; }
26475     ;;
26476   *)
26477         want_idn="yes"
26478     want_idn_path="$withval"
26479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26480 $as_echo "yes ($withval)" >&6; }
26481     ;;
26482 esac
26483
26484 if test "$want_idn" = "yes"; then
26485     clean_CPPFLAGS="$CPPFLAGS"
26486   clean_LDFLAGS="$LDFLAGS"
26487   clean_LIBS="$LIBS"
26488   PKGCONFIG="no"
26489   #
26490   if test "$want_idn_path" != "default"; then
26491         IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
26492
26493     if test -n "$PKG_CONFIG"; then
26494       PKGCONFIG="$PKG_CONFIG"
26495     else
26496       if test -n "$ac_tool_prefix"; then
26497   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26498 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26500 $as_echo_n "checking for $ac_word... " >&6; }
26501 if ${ac_cv_path_PKGCONFIG+:} false; then :
26502   $as_echo_n "(cached) " >&6
26503 else
26504   case $PKGCONFIG in
26505   [\\/]* | ?:[\\/]*)
26506   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26507   ;;
26508   *)
26509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26510 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26511 for as_dir in $as_dummy
26512 do
26513   IFS=$as_save_IFS
26514   test -z "$as_dir" && as_dir=.
26515     for ac_exec_ext in '' $ac_executable_extensions; do
26516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26517     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26519     break 2
26520   fi
26521 done
26522   done
26523 IFS=$as_save_IFS
26524
26525   ;;
26526 esac
26527 fi
26528 PKGCONFIG=$ac_cv_path_PKGCONFIG
26529 if test -n "$PKGCONFIG"; then
26530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26531 $as_echo "$PKGCONFIG" >&6; }
26532 else
26533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26534 $as_echo "no" >&6; }
26535 fi
26536
26537
26538 fi
26539 if test -z "$ac_cv_path_PKGCONFIG"; then
26540   ac_pt_PKGCONFIG=$PKGCONFIG
26541   # Extract the first word of "pkg-config", so it can be a program name with args.
26542 set dummy pkg-config; ac_word=$2
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26544 $as_echo_n "checking for $ac_word... " >&6; }
26545 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26546   $as_echo_n "(cached) " >&6
26547 else
26548   case $ac_pt_PKGCONFIG in
26549   [\\/]* | ?:[\\/]*)
26550   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26551   ;;
26552   *)
26553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26554 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26555 for as_dir in $as_dummy
26556 do
26557   IFS=$as_save_IFS
26558   test -z "$as_dir" && as_dir=.
26559     for ac_exec_ext in '' $ac_executable_extensions; do
26560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26561     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26563     break 2
26564   fi
26565 done
26566   done
26567 IFS=$as_save_IFS
26568
26569   ;;
26570 esac
26571 fi
26572 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26573 if test -n "$ac_pt_PKGCONFIG"; then
26574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26575 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26576 else
26577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26578 $as_echo "no" >&6; }
26579 fi
26580
26581   if test "x$ac_pt_PKGCONFIG" = x; then
26582     PKGCONFIG="no"
26583   else
26584     case $cross_compiling:$ac_tool_warned in
26585 yes:)
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26588 ac_tool_warned=yes ;;
26589 esac
26590     PKGCONFIG=$ac_pt_PKGCONFIG
26591   fi
26592 else
26593   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26594 fi
26595
26596     fi
26597
26598     if test "x$PKGCONFIG" != "xno"; then
26599       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
26600 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
26601             itexists=`
26602     if test -n "$IDN_PCDIR"; then
26603       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26604       export PKG_CONFIG_LIBDIR
26605     fi
26606          $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
26607
26608       if test -z "$itexists"; then
26609                         PKGCONFIG="no"
26610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26611 $as_echo "no" >&6; }
26612       else
26613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26614 $as_echo "found" >&6; }
26615       fi
26616     fi
26617
26618     if test "$PKGCONFIG" != "no"; then
26619       IDN_LIBS=`
26620     if test -n "$IDN_PCDIR"; then
26621       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26622       export PKG_CONFIG_LIBDIR
26623     fi
26624          $PKGCONFIG --libs-only-l libidn 2>/dev/null`
26625       IDN_LDFLAGS=`
26626     if test -n "$IDN_PCDIR"; then
26627       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26628       export PKG_CONFIG_LIBDIR
26629     fi
26630          $PKGCONFIG --libs-only-L libidn 2>/dev/null`
26631       IDN_CPPFLAGS=`
26632     if test -n "$IDN_PCDIR"; then
26633       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26634       export PKG_CONFIG_LIBDIR
26635     fi
26636          $PKGCONFIG --cflags-only-I libidn 2>/dev/null`
26637       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26638     else
26639             IDN_LIBS="-lidn"
26640       IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
26641       IDN_CPPFLAGS="-I$want_idn_path/include"
26642       IDN_DIR="$want_idn_path/lib$libsuff"
26643     fi
26644   else
26645
26646     if test -n "$PKG_CONFIG"; then
26647       PKGCONFIG="$PKG_CONFIG"
26648     else
26649       if test -n "$ac_tool_prefix"; then
26650   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26651 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26653 $as_echo_n "checking for $ac_word... " >&6; }
26654 if ${ac_cv_path_PKGCONFIG+:} false; then :
26655   $as_echo_n "(cached) " >&6
26656 else
26657   case $PKGCONFIG in
26658   [\\/]* | ?:[\\/]*)
26659   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26660   ;;
26661   *)
26662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26663 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26664 for as_dir in $as_dummy
26665 do
26666   IFS=$as_save_IFS
26667   test -z "$as_dir" && as_dir=.
26668     for ac_exec_ext in '' $ac_executable_extensions; do
26669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26670     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26672     break 2
26673   fi
26674 done
26675   done
26676 IFS=$as_save_IFS
26677
26678   ;;
26679 esac
26680 fi
26681 PKGCONFIG=$ac_cv_path_PKGCONFIG
26682 if test -n "$PKGCONFIG"; then
26683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26684 $as_echo "$PKGCONFIG" >&6; }
26685 else
26686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26687 $as_echo "no" >&6; }
26688 fi
26689
26690
26691 fi
26692 if test -z "$ac_cv_path_PKGCONFIG"; then
26693   ac_pt_PKGCONFIG=$PKGCONFIG
26694   # Extract the first word of "pkg-config", so it can be a program name with args.
26695 set dummy pkg-config; ac_word=$2
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26697 $as_echo_n "checking for $ac_word... " >&6; }
26698 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26699   $as_echo_n "(cached) " >&6
26700 else
26701   case $ac_pt_PKGCONFIG in
26702   [\\/]* | ?:[\\/]*)
26703   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26704   ;;
26705   *)
26706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26707 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26708 for as_dir in $as_dummy
26709 do
26710   IFS=$as_save_IFS
26711   test -z "$as_dir" && as_dir=.
26712     for ac_exec_ext in '' $ac_executable_extensions; do
26713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26714     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26716     break 2
26717   fi
26718 done
26719   done
26720 IFS=$as_save_IFS
26721
26722   ;;
26723 esac
26724 fi
26725 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26726 if test -n "$ac_pt_PKGCONFIG"; then
26727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26728 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26729 else
26730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26731 $as_echo "no" >&6; }
26732 fi
26733
26734   if test "x$ac_pt_PKGCONFIG" = x; then
26735     PKGCONFIG="no"
26736   else
26737     case $cross_compiling:$ac_tool_warned in
26738 yes:)
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26741 ac_tool_warned=yes ;;
26742 esac
26743     PKGCONFIG=$ac_pt_PKGCONFIG
26744   fi
26745 else
26746   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26747 fi
26748
26749     fi
26750
26751     if test "x$PKGCONFIG" != "xno"; then
26752       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
26753 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
26754             itexists=`
26755     if test -n ""; then
26756       PKG_CONFIG_LIBDIR=""
26757       export PKG_CONFIG_LIBDIR
26758     fi
26759          $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
26760
26761       if test -z "$itexists"; then
26762                         PKGCONFIG="no"
26763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26764 $as_echo "no" >&6; }
26765       else
26766         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26767 $as_echo "found" >&6; }
26768       fi
26769     fi
26770
26771     if test "$PKGCONFIG" != "no"; then
26772       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn 2>/dev/null`
26773       IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn 2>/dev/null`
26774       IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn 2>/dev/null`
26775       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26776     else
26777             IDN_LIBS="-lidn"
26778     fi
26779   fi
26780   #
26781   if test "$PKGCONFIG" != "no"; then
26782     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
26783 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26784     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26785 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26786     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26787 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26788     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
26789 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
26790   else
26791     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
26792 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26793     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26794 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26795     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26796 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26797     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
26798 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
26799   fi
26800   #
26801   CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
26802   LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
26803   LIBS="$IDN_LIBS $LIBS"
26804   #
26805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_4i can be linked" >&5
26806 $as_echo_n "checking if idna_to_ascii_4i can be linked... " >&6; }
26807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26808 /* end confdefs.h.  */
26809
26810
26811 #define idna_to_ascii_4i innocuous_idna_to_ascii_4i
26812 #ifdef __STDC__
26813 # include <limits.h>
26814 #else
26815 # include <assert.h>
26816 #endif
26817 #undef idna_to_ascii_4i
26818 #ifdef __cplusplus
26819 extern "C"
26820 #endif
26821 char idna_to_ascii_4i ();
26822 #if defined __stub_idna_to_ascii_4i || defined __stub___idna_to_ascii_4i
26823 choke me
26824 #endif
26825
26826 int main (void)
26827 {
26828 return idna_to_ascii_4i ();
26829  ;
26830  return 0;
26831 }
26832
26833 _ACEOF
26834 if ac_fn_c_try_link "$LINENO"; then :
26835
26836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26837 $as_echo "yes" >&6; }
26838     tst_links_libidn="yes"
26839
26840 else
26841
26842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26843 $as_echo "no" >&6; }
26844     tst_links_libidn="no"
26845
26846 fi
26847 rm -f core conftest.err conftest.$ac_objext \
26848     conftest$ac_exeext conftest.$ac_ext
26849   if test "$tst_links_libidn" = "no"; then
26850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_lz can be linked" >&5
26851 $as_echo_n "checking if idna_to_ascii_lz can be linked... " >&6; }
26852     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26853 /* end confdefs.h.  */
26854
26855
26856 #define idna_to_ascii_lz innocuous_idna_to_ascii_lz
26857 #ifdef __STDC__
26858 # include <limits.h>
26859 #else
26860 # include <assert.h>
26861 #endif
26862 #undef idna_to_ascii_lz
26863 #ifdef __cplusplus
26864 extern "C"
26865 #endif
26866 char idna_to_ascii_lz ();
26867 #if defined __stub_idna_to_ascii_lz || defined __stub___idna_to_ascii_lz
26868 choke me
26869 #endif
26870
26871 int main (void)
26872 {
26873 return idna_to_ascii_lz ();
26874  ;
26875  return 0;
26876 }
26877
26878 _ACEOF
26879 if ac_fn_c_try_link "$LINENO"; then :
26880
26881       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26882 $as_echo "yes" >&6; }
26883       tst_links_libidn="yes"
26884
26885 else
26886
26887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26888 $as_echo "no" >&6; }
26889       tst_links_libidn="no"
26890
26891 fi
26892 rm -f core conftest.err conftest.$ac_objext \
26893     conftest$ac_exeext conftest.$ac_ext
26894   fi
26895   #
26896   if test "$tst_links_libidn" = "yes"; then
26897
26898 $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
26899
26900         for ac_func in idn_free idna_strerror tld_strerror
26901 do :
26902   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26903 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26904 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26905   cat >>confdefs.h <<_ACEOF
26906 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26907 _ACEOF
26908
26909 fi
26910 done
26911
26912     for ac_header in idn-free.h tld.h
26913 do :
26914   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26915 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26916 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26917   cat >>confdefs.h <<_ACEOF
26918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26919 _ACEOF
26920
26921 fi
26922
26923 done
26924
26925     if test "x$ac_cv_header_tld_h" = "xyes"; then
26926       IDN_ENABLED=1
26927
26928       curl_idn_msg="enabled"
26929       if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
26930         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
26931         export LD_LIBRARY_PATH
26932         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
26933 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
26934       fi
26935     else
26936       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries for IDN support too old: IDN disabled" >&5
26937 $as_echo "$as_me: WARNING: Libraries for IDN support too old: IDN disabled" >&2;}
26938       CPPFLAGS="$clean_CPPFLAGS"
26939       LDFLAGS="$clean_LDFLAGS"
26940       LIBS="$clean_LIBS"
26941     fi
26942   else
26943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26944 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26945     CPPFLAGS="$clean_CPPFLAGS"
26946     LDFLAGS="$clean_LDFLAGS"
26947     LIBS="$clean_LIBS"
26948   fi
26949 fi
26950
26951
26952
26953
26954
26955 OPT_H2="yes"
26956
26957 # Check whether --with-nghttp2 was given.
26958 if test "${with_nghttp2+set}" = set; then :
26959   withval=$with_nghttp2; OPT_H2=$withval
26960 fi
26961
26962 case "$OPT_H2" in
26963   no)
26964         want_h2="no"
26965     ;;
26966   yes)
26967         want_h2="default"
26968     want_h2_path=""
26969     ;;
26970   *)
26971         want_h2="yes"
26972     want_h2_path="$withval/lib/pkgconfig"
26973     ;;
26974 esac
26975
26976 curl_h2_msg="disabled (--with-nghttp2)"
26977 if test X"$want_h2" != Xno; then
26978     CLEANLDFLAGS="$LDFLAGS"
26979   CLEANCPPFLAGS="$CPPFLAGS"
26980   CLEANLIBS="$LIBS"
26981
26982
26983     if test -n "$PKG_CONFIG"; then
26984       PKGCONFIG="$PKG_CONFIG"
26985     else
26986       if test -n "$ac_tool_prefix"; then
26987   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26988 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26990 $as_echo_n "checking for $ac_word... " >&6; }
26991 if ${ac_cv_path_PKGCONFIG+:} false; then :
26992   $as_echo_n "(cached) " >&6
26993 else
26994   case $PKGCONFIG in
26995   [\\/]* | ?:[\\/]*)
26996   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26997   ;;
26998   *)
26999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27000 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27001 for as_dir in $as_dummy
27002 do
27003   IFS=$as_save_IFS
27004   test -z "$as_dir" && as_dir=.
27005     for ac_exec_ext in '' $ac_executable_extensions; do
27006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27007     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27009     break 2
27010   fi
27011 done
27012   done
27013 IFS=$as_save_IFS
27014
27015   ;;
27016 esac
27017 fi
27018 PKGCONFIG=$ac_cv_path_PKGCONFIG
27019 if test -n "$PKGCONFIG"; then
27020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27021 $as_echo "$PKGCONFIG" >&6; }
27022 else
27023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27024 $as_echo "no" >&6; }
27025 fi
27026
27027
27028 fi
27029 if test -z "$ac_cv_path_PKGCONFIG"; then
27030   ac_pt_PKGCONFIG=$PKGCONFIG
27031   # Extract the first word of "pkg-config", so it can be a program name with args.
27032 set dummy pkg-config; ac_word=$2
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27034 $as_echo_n "checking for $ac_word... " >&6; }
27035 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27036   $as_echo_n "(cached) " >&6
27037 else
27038   case $ac_pt_PKGCONFIG in
27039   [\\/]* | ?:[\\/]*)
27040   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27041   ;;
27042   *)
27043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27044 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27045 for as_dir in $as_dummy
27046 do
27047   IFS=$as_save_IFS
27048   test -z "$as_dir" && as_dir=.
27049     for ac_exec_ext in '' $ac_executable_extensions; do
27050   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27051     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27053     break 2
27054   fi
27055 done
27056   done
27057 IFS=$as_save_IFS
27058
27059   ;;
27060 esac
27061 fi
27062 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27063 if test -n "$ac_pt_PKGCONFIG"; then
27064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27065 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27066 else
27067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27068 $as_echo "no" >&6; }
27069 fi
27070
27071   if test "x$ac_pt_PKGCONFIG" = x; then
27072     PKGCONFIG="no"
27073   else
27074     case $cross_compiling:$ac_tool_warned in
27075 yes:)
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27078 ac_tool_warned=yes ;;
27079 esac
27080     PKGCONFIG=$ac_pt_PKGCONFIG
27081   fi
27082 else
27083   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27084 fi
27085
27086     fi
27087
27088     if test "x$PKGCONFIG" != "xno"; then
27089       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27090 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27091             itexists=`
27092     if test -n "$want_h2_path"; then
27093       PKG_CONFIG_LIBDIR="$want_h2_path"
27094       export PKG_CONFIG_LIBDIR
27095     fi
27096          $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27097
27098       if test -z "$itexists"; then
27099                         PKGCONFIG="no"
27100         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27101 $as_echo "no" >&6; }
27102       else
27103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27104 $as_echo "found" >&6; }
27105       fi
27106     fi
27107
27108
27109   if test "$PKGCONFIG" != "no" ; then
27110     LIB_H2=`
27111     if test -n "$want_h2_path"; then
27112       PKG_CONFIG_LIBDIR="$want_h2_path"
27113       export PKG_CONFIG_LIBDIR
27114     fi
27115
27116       $PKGCONFIG --libs-only-l libnghttp2`
27117     { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27118 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27119
27120     CPP_H2=`
27121     if test -n "$want_h2_path"; then
27122       PKG_CONFIG_LIBDIR="$want_h2_path"
27123       export PKG_CONFIG_LIBDIR
27124     fi
27125        $PKGCONFIG --cflags-only-I libnghttp2`
27126     { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27127 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27128
27129     LD_H2=`
27130     if test -n "$want_h2_path"; then
27131       PKG_CONFIG_LIBDIR="$want_h2_path"
27132       export PKG_CONFIG_LIBDIR
27133     fi
27134
27135       $PKGCONFIG --libs-only-L libnghttp2`
27136     { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27137 $as_echo "$as_me: -L is $LD_H2" >&6;}
27138
27139     LDFLAGS="$LDFLAGS $LD_H2"
27140     CPPFLAGS="$CPPFLAGS $CPP_H2"
27141     LIBS="$LIB_H2 $LIBS"
27142
27143     # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27144     # >= 1.0.0
27145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27146 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27147 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27148   $as_echo_n "(cached) " >&6
27149 else
27150   ac_check_lib_save_LIBS=$LIBS
27151 LIBS="-lnghttp2  $LIBS"
27152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27153 /* end confdefs.h.  */
27154
27155
27156 #ifdef __cplusplus
27157 extern "C"
27158 #endif
27159 char nghttp2_option_set_no_recv_client_magic ();
27160 int main (void)
27161 {
27162 return nghttp2_option_set_no_recv_client_magic ();
27163  ;
27164  return 0;
27165 }
27166 _ACEOF
27167 if ac_fn_c_try_link "$LINENO"; then :
27168   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27169 else
27170   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27171 fi
27172 rm -f core conftest.err conftest.$ac_objext \
27173     conftest$ac_exeext conftest.$ac_ext
27174 LIBS=$ac_check_lib_save_LIBS
27175 fi
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27177 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27178 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27179
27180        for ac_header in nghttp2/nghttp2.h
27181 do :
27182   ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27183 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27184   cat >>confdefs.h <<_ACEOF
27185 #define HAVE_NGHTTP2_NGHTTP2_H 1
27186 _ACEOF
27187  curl_h2_msg="enabled (nghttp2)"
27188           NGHTTP2_ENABLED=1
27189
27190 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27191
27192           USE_NGHTTP2=1
27193
27194
27195 fi
27196
27197 done
27198
27199
27200 else
27201           LDFLAGS=$CLEANLDFLAGS
27202         CPPFLAGS=$CLEANCPPFLAGS
27203         LIBS=$CLEANLIBS
27204
27205 fi
27206
27207
27208   else
27209         if test X"$want_h2" != Xdefault; then
27210                   as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27211     fi
27212   fi
27213
27214 fi
27215
27216
27217 OPT_ZSH_FPATH=default
27218
27219 # Check whether --with-zsh-functions-dir was given.
27220 if test "${with_zsh_functions_dir+set}" = set; then :
27221   withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27222 fi
27223
27224 case "$OPT_ZSH_FPATH" in
27225   no)
27226         ;;
27227   default|yes)
27228         ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27229
27230     ;;
27231   *)
27232         ZSH_FUNCTIONS_DIR="$withval"
27233
27234     ;;
27235 esac
27236
27237
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27239 $as_echo_n "checking for ANSI C header files... " >&6; }
27240 if ${ac_cv_header_stdc+:} false; then :
27241   $as_echo_n "(cached) " >&6
27242 else
27243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27244 /* end confdefs.h.  */
27245 #include <stdlib.h>
27246 #include <stdarg.h>
27247 #include <string.h>
27248 #include <float.h>
27249
27250 int main (void)
27251 {
27252
27253  ;
27254  return 0;
27255 }
27256 _ACEOF
27257 if ac_fn_c_try_compile "$LINENO"; then :
27258   ac_cv_header_stdc=yes
27259 else
27260   ac_cv_header_stdc=no
27261 fi
27262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27263
27264 if test $ac_cv_header_stdc = yes; then
27265   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27267 /* end confdefs.h.  */
27268 #include <string.h>
27269
27270 _ACEOF
27271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27272   $EGREP "memchr" >/dev/null 2>&1; then :
27273
27274 else
27275   ac_cv_header_stdc=no
27276 fi
27277 rm -f conftest*
27278
27279 fi
27280
27281 if test $ac_cv_header_stdc = yes; then
27282   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27284 /* end confdefs.h.  */
27285 #include <stdlib.h>
27286
27287 _ACEOF
27288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27289   $EGREP "free" >/dev/null 2>&1; then :
27290
27291 else
27292   ac_cv_header_stdc=no
27293 fi
27294 rm -f conftest*
27295
27296 fi
27297
27298 if test $ac_cv_header_stdc = yes; then
27299   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27300   if test "$cross_compiling" = yes; then :
27301   :
27302 else
27303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27304 /* end confdefs.h.  */
27305 #include <ctype.h>
27306 #include <stdlib.h>
27307 #if ((' ' & 0x0FF) == 0x020)
27308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27310 #else
27311 # define ISLOWER(c) \
27312                    (('a' <= (c) && (c) <= 'i') \
27313                      || ('j' <= (c) && (c) <= 'r') \
27314                      || ('s' <= (c) && (c) <= 'z'))
27315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27316 #endif
27317
27318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27319 int
27320 main ()
27321 {
27322   int i;
27323   for (i = 0; i < 256; i++)
27324     if (XOR (islower (i), ISLOWER (i))
27325         || toupper (i) != TOUPPER (i))
27326       return 2;
27327   return 0;
27328 }
27329 _ACEOF
27330 if ac_fn_c_try_run "$LINENO"; then :
27331
27332 else
27333   ac_cv_header_stdc=no
27334 fi
27335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27336   conftest.$ac_objext conftest.beam conftest.$ac_ext
27337 fi
27338
27339 fi
27340 fi
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27342 $as_echo "$ac_cv_header_stdc" >&6; }
27343 if test $ac_cv_header_stdc = yes; then
27344
27345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
27346
27347 fi
27348
27349
27350
27351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27352 $as_echo_n "checking for malloc.h... " >&6; }
27353 if ${curl_cv_header_malloc_h+:} false; then :
27354   $as_echo_n "(cached) " >&6
27355 else
27356
27357     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27358 /* end confdefs.h.  */
27359
27360
27361 #include <malloc.h>
27362
27363 int main (void)
27364 {
27365
27366         void *p = malloc(10);
27367         void *q = calloc(10,10);
27368         free(p);
27369         free(q);
27370
27371  ;
27372  return 0;
27373 }
27374
27375 _ACEOF
27376 if ac_fn_c_try_compile "$LINENO"; then :
27377
27378       curl_cv_header_malloc_h="yes"
27379
27380 else
27381
27382       curl_cv_header_malloc_h="no"
27383
27384 fi
27385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27386
27387 fi
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
27389 $as_echo "$curl_cv_header_malloc_h" >&6; }
27390   if test "$curl_cv_header_malloc_h" = "yes"; then
27391
27392 cat >>confdefs.h <<_ACEOF
27393 #define HAVE_MALLOC_H 1
27394 _ACEOF
27395
27396     #
27397     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27398 /* end confdefs.h.  */
27399
27400
27401 #include <stdlib.h>
27402
27403 int main (void)
27404 {
27405
27406         void *p = malloc(10);
27407         void *q = calloc(10,10);
27408         free(p);
27409         free(q);
27410
27411  ;
27412  return 0;
27413 }
27414
27415 _ACEOF
27416 if ac_fn_c_try_compile "$LINENO"; then :
27417
27418       curl_cv_need_header_malloc_h="no"
27419
27420 else
27421
27422       curl_cv_need_header_malloc_h="yes"
27423
27424 fi
27425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27426     #
27427     case "$curl_cv_need_header_malloc_h" in
27428       yes)
27429
27430 cat >>confdefs.h <<_ACEOF
27431 #define NEED_MALLOC_H 1
27432 _ACEOF
27433
27434         ;;
27435     esac
27436   fi
27437
27438
27439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
27440 $as_echo_n "checking for memory.h... " >&6; }
27441 if ${curl_cv_header_memory_h+:} false; then :
27442   $as_echo_n "(cached) " >&6
27443 else
27444
27445     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27446 /* end confdefs.h.  */
27447
27448
27449 #include <memory.h>
27450
27451 int main (void)
27452 {
27453
27454         void *p = malloc(10);
27455         void *q = calloc(10,10);
27456         free(p);
27457         free(q);
27458
27459  ;
27460  return 0;
27461 }
27462
27463 _ACEOF
27464 if ac_fn_c_try_compile "$LINENO"; then :
27465
27466       curl_cv_header_memory_h="yes"
27467
27468 else
27469
27470       curl_cv_header_memory_h="no"
27471
27472 fi
27473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27474
27475 fi
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
27477 $as_echo "$curl_cv_header_memory_h" >&6; }
27478   if test "$curl_cv_header_memory_h" = "yes"; then
27479
27480 cat >>confdefs.h <<_ACEOF
27481 #define HAVE_MEMORY_H 1
27482 _ACEOF
27483
27484     #
27485     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27486 /* end confdefs.h.  */
27487
27488
27489 #include <stdlib.h>
27490
27491 int main (void)
27492 {
27493
27494         void *p = malloc(10);
27495         void *q = calloc(10,10);
27496         free(p);
27497         free(q);
27498
27499  ;
27500  return 0;
27501 }
27502
27503 _ACEOF
27504 if ac_fn_c_try_compile "$LINENO"; then :
27505
27506       curl_cv_need_header_memory_h="no"
27507
27508 else
27509
27510       curl_cv_need_header_memory_h="yes"
27511
27512 fi
27513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27514     #
27515     case "$curl_cv_need_header_memory_h" in
27516       yes)
27517
27518 cat >>confdefs.h <<_ACEOF
27519 #define NEED_MEMORY_H 1
27520 _ACEOF
27521
27522         ;;
27523     esac
27524   fi
27525
27526
27527 for ac_header in sys/types.h \
27528         sys/time.h \
27529         sys/select.h \
27530         sys/socket.h \
27531         sys/ioctl.h \
27532         sys/uio.h \
27533         assert.h \
27534         unistd.h \
27535         stdlib.h \
27536         limits.h \
27537         arpa/inet.h \
27538         net/if.h \
27539         netinet/in.h \
27540         sys/un.h \
27541         netinet/tcp.h \
27542         netdb.h \
27543         sys/sockio.h \
27544         sys/stat.h \
27545         sys/param.h \
27546         termios.h \
27547         termio.h \
27548         sgtty.h \
27549         fcntl.h \
27550         alloca.h \
27551         time.h \
27552         io.h \
27553         pwd.h \
27554         utime.h \
27555         sys/utime.h \
27556         sys/poll.h \
27557         poll.h \
27558         socket.h \
27559         sys/resource.h \
27560         libgen.h \
27561         locale.h \
27562         errno.h \
27563         stdbool.h \
27564         arpa/tftp.h \
27565         sys/filio.h \
27566         sys/wait.h \
27567         setjmp.h
27568 do :
27569   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27570 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
27571 #ifdef HAVE_SYS_TYPES_H
27572 #include <sys/types.h>
27573 #endif
27574 #ifdef HAVE_SYS_TIME_H
27575 #include <sys/time.h>
27576 #endif
27577 #ifdef HAVE_SYS_SELECT_H
27578 #include <sys/select.h>
27579 #endif
27580 #ifdef HAVE_SYS_SOCKET_H
27581 #include <sys/socket.h>
27582 #endif
27583 #ifdef HAVE_NETINET_IN_H
27584 #include <netinet/in.h>
27585 #endif
27586 #ifdef HAVE_SYS_UN_H
27587 #include <sys/un.h>
27588 #endif
27589
27590
27591 "
27592 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27593   cat >>confdefs.h <<_ACEOF
27594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27595 _ACEOF
27596
27597 fi
27598
27599 done
27600
27601
27602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27603 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27604 if ${ac_cv_c_const+:} false; then :
27605   $as_echo_n "(cached) " >&6
27606 else
27607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27608 /* end confdefs.h.  */
27609
27610 int main (void)
27611 {
27612
27613 #ifndef __cplusplus
27614   /* Ultrix mips cc rejects this sort of thing.  */
27615   typedef int charset[2];
27616   const charset cs = { 0, 0 };
27617   /* SunOS 4.1.1 cc rejects this.  */
27618   char const *const *pcpcc;
27619   char **ppc;
27620   /* NEC SVR4.0.2 mips cc rejects this.  */
27621   struct point {int x, y;};
27622   static struct point const zero = {0,0};
27623   /* AIX XL C 1.02.0.0 rejects this.
27624      It does not let you subtract one const X* pointer from another in
27625      an arm of an if-expression whose if-part is not a constant
27626      expression */
27627   const char *g = "string";
27628   pcpcc = &g + (g ? g-g : 0);
27629   /* HPUX 7.0 cc rejects these. */
27630   ++pcpcc;
27631   ppc = (char**) pcpcc;
27632   pcpcc = (char const *const *) ppc;
27633   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27634     char tx;
27635     char *t = &tx;
27636     char const *s = 0 ? (char *) 0 : (char const *) 0;
27637
27638     *t++ = 0;
27639     if (s) return 0;
27640   }
27641   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27642     int x[] = {25, 17};
27643     const int *foo = &x[0];
27644     ++foo;
27645   }
27646   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27647     typedef const int *iptr;
27648     iptr p = 0;
27649     ++p;
27650   }
27651   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27652        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27653     struct s { int j; const int *ap[3]; } bx;
27654     struct s *b = &bx; b->j = 5;
27655   }
27656   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27657     const int foo = 10;
27658     if (!foo) return 0;
27659   }
27660   return !cs[0] && !zero.x;
27661 #endif
27662
27663  ;
27664  return 0;
27665 }
27666 _ACEOF
27667 if ac_fn_c_try_compile "$LINENO"; then :
27668   ac_cv_c_const=yes
27669 else
27670   ac_cv_c_const=no
27671 fi
27672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27673 fi
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27675 $as_echo "$ac_cv_c_const" >&6; }
27676 if test $ac_cv_c_const = no; then
27677
27678 $as_echo "#define const /**/" >>confdefs.h
27679
27680 fi
27681
27682
27683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
27684 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
27685 if ${curl_cv_variadic_macros_c99+:} false; then :
27686   $as_echo_n "(cached) " >&6
27687 else
27688
27689     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27690 /* end confdefs.h.  */
27691
27692
27693 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
27694 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
27695         int fun3(int arg1, int arg2, int arg3);
27696         int fun2(int arg1, int arg2);
27697         int fun3(int arg1, int arg2, int arg3)
27698         { return arg1 + arg2 + arg3; }
27699         int fun2(int arg1, int arg2)
27700         { return arg1 + arg2; }
27701
27702 int main (void)
27703 {
27704
27705         int res3 = c99_vmacro3(1, 2, 3);
27706         int res2 = c99_vmacro2(1, 2);
27707
27708  ;
27709  return 0;
27710 }
27711
27712 _ACEOF
27713 if ac_fn_c_try_compile "$LINENO"; then :
27714
27715       curl_cv_variadic_macros_c99="yes"
27716
27717 else
27718
27719       curl_cv_variadic_macros_c99="no"
27720
27721 fi
27722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27723
27724 fi
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
27726 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
27727   case "$curl_cv_variadic_macros_c99" in
27728     yes)
27729
27730 cat >>confdefs.h <<_ACEOF
27731 #define HAVE_VARIADIC_MACROS_C99 1
27732 _ACEOF
27733
27734       ;;
27735   esac
27736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
27737 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
27738 if ${curl_cv_variadic_macros_gcc+:} false; then :
27739   $as_echo_n "(cached) " >&6
27740 else
27741
27742     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27743 /* end confdefs.h.  */
27744
27745
27746 #define gcc_vmacro3(first, args...) fun3(first, args)
27747 #define gcc_vmacro2(first, args...) fun2(first, args)
27748         int fun3(int arg1, int arg2, int arg3);
27749         int fun2(int arg1, int arg2);
27750         int fun3(int arg1, int arg2, int arg3)
27751         { return arg1 + arg2 + arg3; }
27752         int fun2(int arg1, int arg2)
27753         { return arg1 + arg2; }
27754
27755 int main (void)
27756 {
27757
27758         int res3 = gcc_vmacro3(1, 2, 3);
27759         int res2 = gcc_vmacro2(1, 2);
27760
27761  ;
27762  return 0;
27763 }
27764
27765 _ACEOF
27766 if ac_fn_c_try_compile "$LINENO"; then :
27767
27768       curl_cv_variadic_macros_gcc="yes"
27769
27770 else
27771
27772       curl_cv_variadic_macros_gcc="no"
27773
27774 fi
27775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27776
27777 fi
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
27779 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
27780   case "$curl_cv_variadic_macros_gcc" in
27781     yes)
27782
27783 cat >>confdefs.h <<_ACEOF
27784 #define HAVE_VARIADIC_MACROS_GCC 1
27785 _ACEOF
27786
27787       ;;
27788   esac
27789
27790 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27791 if test "x$ac_cv_type_size_t" = xyes; then :
27792
27793 else
27794
27795 cat >>confdefs.h <<_ACEOF
27796 #define size_t unsigned int
27797 _ACEOF
27798
27799 fi
27800
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
27802 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
27803 if ${ac_cv_header_time+:} false; then :
27804   $as_echo_n "(cached) " >&6
27805 else
27806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27807 /* end confdefs.h.  */
27808 #include <sys/types.h>
27809 #include <sys/time.h>
27810 #include <time.h>
27811
27812 int main (void)
27813 {
27814 if ((struct tm *) 0)
27815 return 0;
27816  ;
27817  return 0;
27818 }
27819 _ACEOF
27820 if ac_fn_c_try_compile "$LINENO"; then :
27821   ac_cv_header_time=yes
27822 else
27823   ac_cv_header_time=no
27824 fi
27825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27826 fi
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
27828 $as_echo "$ac_cv_header_time" >&6; }
27829 if test $ac_cv_header_time = yes; then
27830
27831 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
27832
27833 fi
27834
27835
27836         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
27837 do :
27838   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27841   cat >>confdefs.h <<_ACEOF
27842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27843 _ACEOF
27844
27845 fi
27846
27847 done
27848
27849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
27850 $as_echo_n "checking for struct timeval... " >&6; }
27851 if ${curl_cv_struct_timeval+:} false; then :
27852   $as_echo_n "(cached) " >&6
27853 else
27854
27855     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27856 /* end confdefs.h.  */
27857
27858
27859 #undef inline
27860 #ifdef HAVE_WINDOWS_H
27861 #ifndef WIN32_LEAN_AND_MEAN
27862 #define WIN32_LEAN_AND_MEAN
27863 #endif
27864 #include <windows.h>
27865 #ifdef HAVE_WINSOCK2_H
27866 #include <winsock2.h>
27867 #else
27868 #ifdef HAVE_WINSOCK_H
27869 #include <winsock.h>
27870 #endif
27871 #endif
27872 #endif
27873 #ifdef HAVE_SYS_TYPES_H
27874 #include <sys/types.h>
27875 #endif
27876 #ifdef HAVE_SYS_TIME_H
27877 #include <sys/time.h>
27878 #ifdef TIME_WITH_SYS_TIME
27879 #include <time.h>
27880 #endif
27881 #else
27882 #ifdef HAVE_TIME_H
27883 #include <time.h>
27884 #endif
27885 #endif
27886 #ifdef HAVE_SYS_SOCKET_H
27887 #include <sys/socket.h>
27888 #endif
27889
27890 int main (void)
27891 {
27892
27893         struct timeval ts;
27894         ts.tv_sec  = 0;
27895         ts.tv_usec = 0;
27896
27897  ;
27898  return 0;
27899 }
27900
27901 _ACEOF
27902 if ac_fn_c_try_compile "$LINENO"; then :
27903
27904       curl_cv_struct_timeval="yes"
27905
27906 else
27907
27908       curl_cv_struct_timeval="no"
27909
27910 fi
27911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27912
27913 fi
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
27915 $as_echo "$curl_cv_struct_timeval" >&6; }
27916   case "$curl_cv_struct_timeval" in
27917     yes)
27918
27919 cat >>confdefs.h <<_ACEOF
27920 #define HAVE_STRUCT_TIMEVAL 1
27921 _ACEOF
27922
27923       ;;
27924   esac
27925
27926
27927
27928     if test "x$cross_compiling" != xyes; then
27929
27930             { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
27931 $as_echo_n "checking run-time libs availability... " >&6; }
27932     if test "$cross_compiling" = yes; then :
27933   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27935 as_fn_error $? "cannot run test program while cross compiling
27936 See \`config.log' for more details" "$LINENO" 5; }
27937 else
27938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27939 /* end confdefs.h.  */
27940
27941 main()
27942 {
27943   return 0;
27944 }
27945
27946 _ACEOF
27947 if ac_fn_c_try_run "$LINENO"; then :
27948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
27949 $as_echo "fine" >&6; }
27950 else
27951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
27952 $as_echo "failed" >&6; }
27953     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
27954
27955 fi
27956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27957   conftest.$ac_objext conftest.beam conftest.$ac_ext
27958 fi
27959
27960
27961       fi
27962
27963
27964 # The cast to long int works around a bug in the HP C Compiler
27965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27967 # This bug is HP SR number 8606223364.
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
27969 $as_echo_n "checking size of size_t... " >&6; }
27970 if ${ac_cv_sizeof_size_t+:} false; then :
27971   $as_echo_n "(cached) " >&6
27972 else
27973   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
27974
27975 else
27976   if test "$ac_cv_type_size_t" = yes; then
27977      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27979 as_fn_error 77 "cannot compute sizeof (size_t)
27980 See \`config.log' for more details" "$LINENO" 5; }
27981    else
27982      ac_cv_sizeof_size_t=0
27983    fi
27984 fi
27985
27986 fi
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
27988 $as_echo "$ac_cv_sizeof_size_t" >&6; }
27989
27990
27991
27992 cat >>confdefs.h <<_ACEOF
27993 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27994 _ACEOF
27995
27996
27997 # The cast to long int works around a bug in the HP C Compiler
27998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28000 # This bug is HP SR number 8606223364.
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28002 $as_echo_n "checking size of long... " >&6; }
28003 if ${ac_cv_sizeof_long+:} false; then :
28004   $as_echo_n "(cached) " >&6
28005 else
28006   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
28007
28008 else
28009   if test "$ac_cv_type_long" = yes; then
28010      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28012 as_fn_error 77 "cannot compute sizeof (long)
28013 See \`config.log' for more details" "$LINENO" 5; }
28014    else
28015      ac_cv_sizeof_long=0
28016    fi
28017 fi
28018
28019 fi
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28021 $as_echo "$ac_cv_sizeof_long" >&6; }
28022
28023
28024
28025 cat >>confdefs.h <<_ACEOF
28026 #define SIZEOF_LONG $ac_cv_sizeof_long
28027 _ACEOF
28028
28029
28030 # The cast to long int works around a bug in the HP C Compiler
28031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28033 # This bug is HP SR number 8606223364.
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28035 $as_echo_n "checking size of int... " >&6; }
28036 if ${ac_cv_sizeof_int+:} false; then :
28037   $as_echo_n "(cached) " >&6
28038 else
28039   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
28040
28041 else
28042   if test "$ac_cv_type_int" = yes; then
28043      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28045 as_fn_error 77 "cannot compute sizeof (int)
28046 See \`config.log' for more details" "$LINENO" 5; }
28047    else
28048      ac_cv_sizeof_int=0
28049    fi
28050 fi
28051
28052 fi
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28054 $as_echo "$ac_cv_sizeof_int" >&6; }
28055
28056
28057
28058 cat >>confdefs.h <<_ACEOF
28059 #define SIZEOF_INT $ac_cv_sizeof_int
28060 _ACEOF
28061
28062
28063 # The cast to long int works around a bug in the HP C Compiler
28064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28066 # This bug is HP SR number 8606223364.
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28068 $as_echo_n "checking size of short... " >&6; }
28069 if ${ac_cv_sizeof_short+:} false; then :
28070   $as_echo_n "(cached) " >&6
28071 else
28072   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
28073
28074 else
28075   if test "$ac_cv_type_short" = yes; then
28076      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28078 as_fn_error 77 "cannot compute sizeof (short)
28079 See \`config.log' for more details" "$LINENO" 5; }
28080    else
28081      ac_cv_sizeof_short=0
28082    fi
28083 fi
28084
28085 fi
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28087 $as_echo "$ac_cv_sizeof_short" >&6; }
28088
28089
28090
28091 cat >>confdefs.h <<_ACEOF
28092 #define SIZEOF_SHORT $ac_cv_sizeof_short
28093 _ACEOF
28094
28095
28096
28097   if test -z "$ac_cv_sizeof_long" ||
28098     test "$ac_cv_sizeof_long" -eq "0"; then
28099     as_fn_error $? "cannot find out size of long." "$LINENO" 5
28100   fi
28101
28102 cat >>confdefs.h <<_EOF
28103 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
28104 _EOF
28105
28106
28107 # The cast to long int works around a bug in the HP C Compiler
28108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28110 # This bug is HP SR number 8606223364.
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28112 $as_echo_n "checking size of time_t... " >&6; }
28113 if ${ac_cv_sizeof_time_t+:} false; then :
28114   $as_echo_n "(cached) " >&6
28115 else
28116   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
28117
28118 else
28119   if test "$ac_cv_type_time_t" = yes; then
28120      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28122 as_fn_error 77 "cannot compute sizeof (time_t)
28123 See \`config.log' for more details" "$LINENO" 5; }
28124    else
28125      ac_cv_sizeof_time_t=0
28126    fi
28127 fi
28128
28129 fi
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28131 $as_echo "$ac_cv_sizeof_time_t" >&6; }
28132
28133
28134
28135 cat >>confdefs.h <<_ACEOF
28136 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28137 _ACEOF
28138
28139
28140 # The cast to long int works around a bug in the HP C Compiler
28141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28143 # This bug is HP SR number 8606223364.
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28145 $as_echo_n "checking size of off_t... " >&6; }
28146 if ${ac_cv_sizeof_off_t+:} false; then :
28147   $as_echo_n "(cached) " >&6
28148 else
28149   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
28150
28151 else
28152   if test "$ac_cv_type_off_t" = yes; then
28153      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28155 as_fn_error 77 "cannot compute sizeof (off_t)
28156 See \`config.log' for more details" "$LINENO" 5; }
28157    else
28158      ac_cv_sizeof_off_t=0
28159    fi
28160 fi
28161
28162 fi
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28164 $as_echo "$ac_cv_sizeof_off_t" >&6; }
28165
28166
28167
28168 cat >>confdefs.h <<_ACEOF
28169 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28170 _ACEOF
28171
28172
28173
28174 soname_bump=no
28175 if test x"$curl_cv_native_windows" != "xyes" &&
28176    test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
28177   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
28178 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
28179   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
28180 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
28181   soname_bump=yes
28182 fi
28183
28184
28185 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28186 if test "x$ac_cv_type_long_long" = xyes; then :
28187
28188 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28189
28190    longlong="yes"
28191
28192 fi
28193
28194
28195 if test "xyes" = "x$longlong"; then
28196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28197 $as_echo_n "checking if numberLL works... " >&6; }
28198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28199 /* end confdefs.h.  */
28200
28201
28202
28203 int main (void)
28204 {
28205
28206       long long val = 1000LL;
28207
28208  ;
28209  return 0;
28210 }
28211
28212 _ACEOF
28213 if ac_fn_c_try_compile "$LINENO"; then :
28214
28215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28216 $as_echo "yes" >&6; }
28217
28218 $as_echo "#define HAVE_LL 1" >>confdefs.h
28219
28220
28221 else
28222
28223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28224 $as_echo "no" >&6; }
28225
28226 fi
28227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28228 fi
28229
28230
28231 # check for ssize_t
28232 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28233 if test "x$ac_cv_type_ssize_t" = xyes; then :
28234
28235 else
28236
28237 $as_echo "#define ssize_t int" >>confdefs.h
28238
28239 fi
28240
28241
28242 # check for bool type
28243 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28244 #ifdef HAVE_SYS_TYPES_H
28245 #include <sys/types.h>
28246 #endif
28247 #ifdef HAVE_STDBOOL_H
28248 #include <stdbool.h>
28249 #endif
28250
28251 "
28252 if test "x$ac_cv_type_bool" = xyes; then :
28253
28254
28255 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28256
28257
28258 fi
28259
28260
28261
28262 curl_includes_ws2tcpip="\
28263 /* includes start */
28264 #ifdef HAVE_WINDOWS_H
28265 #  ifndef WIN32_LEAN_AND_MEAN
28266 #    define WIN32_LEAN_AND_MEAN
28267 #  endif
28268 #  include <windows.h>
28269 #  ifdef HAVE_WINSOCK2_H
28270 #    include <winsock2.h>
28271 #    ifdef HAVE_WS2TCPIP_H
28272 #       include <ws2tcpip.h>
28273 #    endif
28274 #  endif
28275 #endif
28276 /* includes end */"
28277
28278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28279 $as_echo_n "checking for windows.h... " >&6; }
28280 if ${curl_cv_header_windows_h+:} false; then :
28281   $as_echo_n "(cached) " >&6
28282 else
28283
28284     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28285 /* end confdefs.h.  */
28286
28287
28288 #undef inline
28289 #ifndef WIN32_LEAN_AND_MEAN
28290 #define WIN32_LEAN_AND_MEAN
28291 #endif
28292 #include <windows.h>
28293
28294 int main (void)
28295 {
28296
28297 #if defined(__CYGWIN__) || defined(__CEGCC__)
28298         HAVE_WINDOWS_H shall not be defined.
28299 #else
28300         int dummy=2*WINVER;
28301 #endif
28302
28303  ;
28304  return 0;
28305 }
28306
28307 _ACEOF
28308 if ac_fn_c_try_compile "$LINENO"; then :
28309
28310       curl_cv_header_windows_h="yes"
28311
28312 else
28313
28314       curl_cv_header_windows_h="no"
28315
28316 fi
28317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28318
28319 fi
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28321 $as_echo "$curl_cv_header_windows_h" >&6; }
28322   case "$curl_cv_header_windows_h" in
28323     yes)
28324
28325 cat >>confdefs.h <<_ACEOF
28326 #define HAVE_WINDOWS_H 1
28327 _ACEOF
28328
28329
28330 cat >>confdefs.h <<_ACEOF
28331 #define WIN32_LEAN_AND_MEAN 1
28332 _ACEOF
28333
28334       ;;
28335   esac
28336
28337
28338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
28339 $as_echo_n "checking for winsock2.h... " >&6; }
28340 if ${curl_cv_header_winsock2_h+:} false; then :
28341   $as_echo_n "(cached) " >&6
28342 else
28343
28344     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28345 /* end confdefs.h.  */
28346
28347
28348 #undef inline
28349 #ifndef WIN32_LEAN_AND_MEAN
28350 #define WIN32_LEAN_AND_MEAN
28351 #endif
28352 #include <windows.h>
28353 #include <winsock2.h>
28354
28355 int main (void)
28356 {
28357
28358 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28359         HAVE_WINSOCK2_H shall not be defined.
28360 #else
28361         int dummy=2*IPPROTO_ESP;
28362 #endif
28363
28364  ;
28365  return 0;
28366 }
28367
28368 _ACEOF
28369 if ac_fn_c_try_compile "$LINENO"; then :
28370
28371       curl_cv_header_winsock2_h="yes"
28372
28373 else
28374
28375       curl_cv_header_winsock2_h="no"
28376
28377 fi
28378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28379
28380 fi
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
28382 $as_echo "$curl_cv_header_winsock2_h" >&6; }
28383   case "$curl_cv_header_winsock2_h" in
28384     yes)
28385
28386 cat >>confdefs.h <<_ACEOF
28387 #define HAVE_WINSOCK2_H 1
28388 _ACEOF
28389
28390       ;;
28391   esac
28392
28393
28394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
28395 $as_echo_n "checking for ws2tcpip.h... " >&6; }
28396 if ${curl_cv_header_ws2tcpip_h+:} false; then :
28397   $as_echo_n "(cached) " >&6
28398 else
28399
28400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28401 /* end confdefs.h.  */
28402
28403
28404 #undef inline
28405 #ifndef WIN32_LEAN_AND_MEAN
28406 #define WIN32_LEAN_AND_MEAN
28407 #endif
28408 #include <windows.h>
28409 #include <winsock2.h>
28410 #include <ws2tcpip.h>
28411
28412 int main (void)
28413 {
28414
28415 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28416         HAVE_WS2TCPIP_H shall not be defined.
28417 #else
28418         int dummy=2*IP_PKTINFO;
28419 #endif
28420
28421  ;
28422  return 0;
28423 }
28424
28425 _ACEOF
28426 if ac_fn_c_try_compile "$LINENO"; then :
28427
28428       curl_cv_header_ws2tcpip_h="yes"
28429
28430 else
28431
28432       curl_cv_header_ws2tcpip_h="no"
28433
28434 fi
28435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28436
28437 fi
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
28439 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
28440   case "$curl_cv_header_ws2tcpip_h" in
28441     yes)
28442
28443 cat >>confdefs.h <<_ACEOF
28444 #define HAVE_WS2TCPIP_H 1
28445 _ACEOF
28446
28447       ;;
28448   esac
28449
28450
28451
28452 curl_includes_sys_socket="\
28453 /* includes start */
28454 #ifdef HAVE_SYS_TYPES_H
28455 #  include <sys/types.h>
28456 #endif
28457 #ifdef HAVE_SYS_SOCKET_H
28458 #  include <sys/socket.h>
28459 #endif
28460 /* includes end */"
28461   for ac_header in sys/types.h sys/socket.h
28462 do :
28463   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28464 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
28465 "
28466 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28467   cat >>confdefs.h <<_ACEOF
28468 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28469 _ACEOF
28470
28471 fi
28472
28473 done
28474
28475
28476
28477 curl_preprocess_callconv="\
28478 /* preprocess start */
28479 #ifdef HAVE_WINDOWS_H
28480 #  define FUNCALLCONV __stdcall
28481 #else
28482 #  define FUNCALLCONV
28483 #endif
28484 /* preprocess end */"
28485
28486
28487         #
28488     #
28489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
28490 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
28491   curl_typeof_curl_socklen_t="unknown"
28492   for arg1 in int SOCKET; do
28493     for arg2 in 'struct sockaddr' void; do
28494       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
28495         if test "$curl_typeof_curl_socklen_t" = "unknown"; then
28496           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28497 /* end confdefs.h.  */
28498
28499
28500               $curl_includes_ws2tcpip
28501               $curl_includes_sys_socket
28502               $curl_preprocess_callconv
28503               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
28504
28505 int main (void)
28506 {
28507
28508               $t *lenptr = 0;
28509               if(0 != getpeername(0, 0, lenptr))
28510                 return 1;
28511
28512  ;
28513  return 0;
28514 }
28515
28516 _ACEOF
28517 if ac_fn_c_try_compile "$LINENO"; then :
28518
28519             curl_typeof_curl_socklen_t="$t"
28520
28521 fi
28522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28523         fi
28524       done
28525     done
28526   done
28527   for t in socklen_t int; do
28528     if test "$curl_typeof_curl_socklen_t" = "void"; then
28529       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28530 /* end confdefs.h.  */
28531
28532
28533           $curl_includes_sys_socket
28534           typedef $t curl_socklen_t;
28535
28536 int main (void)
28537 {
28538
28539           curl_socklen_t dummy;
28540
28541  ;
28542  return 0;
28543 }
28544
28545 _ACEOF
28546 if ac_fn_c_try_compile "$LINENO"; then :
28547
28548         curl_typeof_curl_socklen_t="$t"
28549
28550 fi
28551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28552     fi
28553   done
28554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
28555 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
28556   if test "$curl_typeof_curl_socklen_t" = "void" ||
28557     test "$curl_typeof_curl_socklen_t" = "unknown"; then
28558     as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
28559   fi
28560   #
28561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
28562 $as_echo_n "checking size of curl_socklen_t... " >&6; }
28563   curl_sizeof_curl_socklen_t="unknown"
28564   curl_pull_headers_socklen_t="unknown"
28565   if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
28566     tst_pull_header_checks='none ws2tcpip'
28567     tst_size_checks='4'
28568   else
28569     tst_pull_header_checks='none systypes syssocket'
28570     tst_size_checks='4 8 2'
28571   fi
28572   for tst_size in $tst_size_checks; do
28573     for tst_pull_headers in $tst_pull_header_checks; do
28574       if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28575         case $tst_pull_headers in
28576           ws2tcpip)
28577             tmp_includes="$curl_includes_ws2tcpip"
28578             ;;
28579           systypes)
28580             tmp_includes="$curl_includes_sys_types"
28581             ;;
28582           syssocket)
28583             tmp_includes="$curl_includes_sys_socket"
28584             ;;
28585           *)
28586             tmp_includes=""
28587             ;;
28588         esac
28589         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28590 /* end confdefs.h.  */
28591
28592
28593             $tmp_includes
28594             typedef $curl_typeof_curl_socklen_t curl_socklen_t;
28595             typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
28596
28597 int main (void)
28598 {
28599
28600             curl_socklen_t dummy;
28601
28602  ;
28603  return 0;
28604 }
28605
28606 _ACEOF
28607 if ac_fn_c_try_compile "$LINENO"; then :
28608
28609           curl_sizeof_curl_socklen_t="$tst_size"
28610           curl_pull_headers_socklen_t="$tst_pull_headers"
28611
28612 fi
28613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28614       fi
28615     done
28616   done
28617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
28618 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
28619   if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28620     as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
28621   fi
28622   #
28623   case $curl_pull_headers_socklen_t in
28624     ws2tcpip)
28625
28626 cat >>confdefs.h <<_EOF
28627 #define CURL_PULL_WS2TCPIP_H 1
28628 _EOF
28629
28630       ;;
28631     systypes)
28632
28633 cat >>confdefs.h <<_EOF
28634 #define CURL_PULL_SYS_TYPES_H 1
28635 _EOF
28636
28637       ;;
28638     syssocket)
28639
28640 cat >>confdefs.h <<_EOF
28641 #define CURL_PULL_SYS_TYPES_H 1
28642 _EOF
28643
28644
28645 cat >>confdefs.h <<_EOF
28646 #define CURL_PULL_SYS_SOCKET_H 1
28647 _EOF
28648
28649       ;;
28650   esac
28651
28652 cat >>confdefs.h <<_EOF
28653 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
28654 _EOF
28655
28656
28657 cat >>confdefs.h <<_EOF
28658 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
28659 _EOF
28660
28661
28662
28663
28664 curl_includes_poll="\
28665 /* includes start */
28666 #ifdef HAVE_SYS_TYPES_H
28667 #  include <sys/types.h>
28668 #endif
28669 #ifdef HAVE_POLL_H
28670 #  include <poll.h>
28671 #endif
28672 #ifdef HAVE_SYS_POLL_H
28673 #  include <sys/poll.h>
28674 #endif
28675 /* includes end */"
28676   for ac_header in sys/types.h poll.h sys/poll.h
28677 do :
28678   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28679 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
28680 "
28681 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28682   cat >>confdefs.h <<_ACEOF
28683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28684 _ACEOF
28685
28686 fi
28687
28688 done
28689
28690
28691
28692     #
28693   tst_poll_events_macro_defined="unknown"
28694   #
28695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28696 /* end confdefs.h.  */
28697
28698
28699       $curl_includes_poll
28700
28701 int main (void)
28702 {
28703
28704 #if defined(events) || defined(revents)
28705       return 0;
28706 #else
28707       force compilation error
28708 #endif
28709
28710  ;
28711  return 0;
28712 }
28713
28714 _ACEOF
28715 if ac_fn_c_try_compile "$LINENO"; then :
28716
28717     tst_poll_events_macro_defined="yes"
28718
28719 else
28720
28721     tst_poll_events_macro_defined="no"
28722
28723 fi
28724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28725   #
28726   if test "$tst_poll_events_macro_defined" = "yes"; then
28727     if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
28728
28729 cat >>confdefs.h <<_EOF
28730 #define CURL_PULL_SYS_POLL_H 1
28731 _EOF
28732
28733     fi
28734   fi
28735   #
28736
28737
28738
28739   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
28740 #undef inline
28741 #ifdef HAVE_WINDOWS_H
28742 #ifndef WIN32_LEAN_AND_MEAN
28743 #define WIN32_LEAN_AND_MEAN
28744 #endif
28745 #include <windows.h>
28746 #ifdef HAVE_WINSOCK2_H
28747 #include <winsock2.h>
28748 #else
28749 #ifdef HAVE_WINSOCK_H
28750 #include <winsock.h>
28751 #endif
28752 #endif
28753 #else
28754 #ifdef HAVE_SYS_TYPES_H
28755 #include <sys/types.h>
28756 #endif
28757 #ifdef HAVE_SYS_SOCKET_H
28758 #include <sys/socket.h>
28759 #endif
28760 #ifdef HAVE_NETINET_IN_H
28761 #include <netinet/in.h>
28762 #endif
28763 #ifdef HAVE_ARPA_INET_H
28764 #include <arpa/inet.h>
28765 #endif
28766 #endif
28767
28768 "
28769 if test "x$ac_cv_type_in_addr_t" = xyes; then :
28770
28771 else
28772
28773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
28774 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
28775 if ${curl_cv_in_addr_t_equiv+:} false; then :
28776   $as_echo_n "(cached) " >&6
28777 else
28778
28779       curl_cv_in_addr_t_equiv="unknown"
28780       for t in "unsigned long" int size_t unsigned long; do
28781         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
28782           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28783 /* end confdefs.h.  */
28784
28785
28786 #undef inline
28787 #ifdef HAVE_WINDOWS_H
28788 #ifndef WIN32_LEAN_AND_MEAN
28789 #define WIN32_LEAN_AND_MEAN
28790 #endif
28791 #include <windows.h>
28792 #ifdef HAVE_WINSOCK2_H
28793 #include <winsock2.h>
28794 #else
28795 #ifdef HAVE_WINSOCK_H
28796 #include <winsock.h>
28797 #endif
28798 #endif
28799 #else
28800 #ifdef HAVE_SYS_TYPES_H
28801 #include <sys/types.h>
28802 #endif
28803 #ifdef HAVE_SYS_SOCKET_H
28804 #include <sys/socket.h>
28805 #endif
28806 #ifdef HAVE_NETINET_IN_H
28807 #include <netinet/in.h>
28808 #endif
28809 #ifdef HAVE_ARPA_INET_H
28810 #include <arpa/inet.h>
28811 #endif
28812 #endif
28813
28814 int main (void)
28815 {
28816
28817               $t data = inet_addr ("1.2.3.4");
28818
28819  ;
28820  return 0;
28821 }
28822
28823 _ACEOF
28824 if ac_fn_c_try_link "$LINENO"; then :
28825
28826             curl_cv_in_addr_t_equiv="$t"
28827
28828 fi
28829 rm -f core conftest.err conftest.$ac_objext \
28830     conftest$ac_exeext conftest.$ac_ext
28831         fi
28832       done
28833
28834 fi
28835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
28836 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
28837     case "$curl_cv_in_addr_t_equiv" in
28838       unknown)
28839         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
28840         ;;
28841       *)
28842
28843 cat >>confdefs.h <<_ACEOF
28844 #define in_addr_t $curl_cv_in_addr_t_equiv
28845 _ACEOF
28846
28847         ;;
28848     esac
28849
28850 fi
28851
28852
28853
28854
28855    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
28856 #undef inline
28857 #ifdef HAVE_WINDOWS_H
28858 #ifndef WIN32_LEAN_AND_MEAN
28859 #define WIN32_LEAN_AND_MEAN
28860 #endif
28861 #include <windows.h>
28862 #ifdef HAVE_WINSOCK2_H
28863 #include <winsock2.h>
28864 #endif
28865 #else
28866 #ifdef HAVE_SYS_TYPES_H
28867 #include <sys/types.h>
28868 #endif
28869 #ifdef HAVE_SYS_SOCKET_H
28870 #include <sys/socket.h>
28871 #endif
28872 #ifdef HAVE_NETINET_IN_H
28873 #include <netinet/in.h>
28874 #endif
28875 #ifdef HAVE_ARPA_INET_H
28876 #include <arpa/inet.h>
28877 #endif
28878 #endif
28879
28880 "
28881 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
28882
28883 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
28884
28885 fi
28886
28887
28888
28889
28890   for ac_header in signal.h
28891 do :
28892   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
28893 if test "x$ac_cv_header_signal_h" = xyes; then :
28894   cat >>confdefs.h <<_ACEOF
28895 #define HAVE_SIGNAL_H 1
28896 _ACEOF
28897
28898 fi
28899
28900 done
28901
28902   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
28903 #ifdef HAVE_SIGNAL_H
28904 #include <signal.h>
28905 #endif
28906
28907 "
28908 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
28909
28910
28911 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
28912
28913
28914 fi
28915
28916   case "$ac_cv_type_sig_atomic_t" in
28917     yes)
28918       #
28919       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
28920 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
28921       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28922 /* end confdefs.h.  */
28923
28924
28925 #ifdef HAVE_SIGNAL_H
28926 #include <signal.h>
28927 #endif
28928
28929 int main (void)
28930 {
28931
28932           static volatile sig_atomic_t dummy = 0;
28933
28934  ;
28935  return 0;
28936 }
28937
28938 _ACEOF
28939 if ac_fn_c_try_link "$LINENO"; then :
28940
28941         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28942 $as_echo "no" >&6; }
28943         curl_cv_sig_atomic_t_volatile="no"
28944
28945 else
28946
28947         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28948 $as_echo "yes" >&6; }
28949         curl_cv_sig_atomic_t_volatile="yes"
28950
28951 fi
28952 rm -f core conftest.err conftest.$ac_objext \
28953     conftest$ac_exeext conftest.$ac_ext
28954       #
28955       if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
28956
28957 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
28958
28959       fi
28960       ;;
28961   esac
28962
28963
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
28965 $as_echo_n "checking return type of signal handlers... " >&6; }
28966 if ${ac_cv_type_signal+:} false; then :
28967   $as_echo_n "(cached) " >&6
28968 else
28969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28970 /* end confdefs.h.  */
28971 #include <sys/types.h>
28972 #include <signal.h>
28973
28974 int main (void)
28975 {
28976 return *(signal (0, 0)) (0) == 1;
28977  ;
28978  return 0;
28979 }
28980 _ACEOF
28981 if ac_fn_c_try_compile "$LINENO"; then :
28982   ac_cv_type_signal=int
28983 else
28984   ac_cv_type_signal=void
28985 fi
28986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28987 fi
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
28989 $as_echo "$ac_cv_type_signal" >&6; }
28990
28991 cat >>confdefs.h <<_ACEOF
28992 #define RETSIGTYPE $ac_cv_type_signal
28993 _ACEOF
28994
28995
28996
28997
28998     for ac_header in sys/select.h sys/socket.h
28999 do :
29000   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29001 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29002 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29003   cat >>confdefs.h <<_ACEOF
29004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29005 _ACEOF
29006
29007 fi
29008
29009 done
29010
29011   #
29012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29013 $as_echo_n "checking for select... " >&6; }
29014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29015 /* end confdefs.h.  */
29016
29017
29018 #undef inline
29019 #ifdef HAVE_WINDOWS_H
29020 #ifndef WIN32_LEAN_AND_MEAN
29021 #define WIN32_LEAN_AND_MEAN
29022 #endif
29023 #include <windows.h>
29024 #ifdef HAVE_WINSOCK2_H
29025 #include <winsock2.h>
29026 #else
29027 #ifdef HAVE_WINSOCK_H
29028 #include <winsock.h>
29029 #endif
29030 #endif
29031 #endif
29032 #ifdef HAVE_SYS_TYPES_H
29033 #include <sys/types.h>
29034 #endif
29035 #ifdef HAVE_SYS_TIME_H
29036 #include <sys/time.h>
29037 #ifdef TIME_WITH_SYS_TIME
29038 #include <time.h>
29039 #endif
29040 #else
29041 #ifdef HAVE_TIME_H
29042 #include <time.h>
29043 #endif
29044 #endif
29045 #ifndef HAVE_WINDOWS_H
29046 #ifdef HAVE_SYS_SELECT_H
29047 #include <sys/select.h>
29048 #endif
29049 #ifdef HAVE_SYS_SOCKET_H
29050 #include <sys/socket.h>
29051 #endif
29052 #endif
29053
29054 int main (void)
29055 {
29056
29057       select(0, 0, 0, 0, 0);
29058
29059  ;
29060  return 0;
29061 }
29062
29063 _ACEOF
29064 if ac_fn_c_try_link "$LINENO"; then :
29065
29066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29067 $as_echo "yes" >&6; }
29068     curl_cv_select="yes"
29069
29070 else
29071
29072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29073 $as_echo "no" >&6; }
29074     curl_cv_select="no"
29075
29076 fi
29077 rm -f core conftest.err conftest.$ac_objext \
29078     conftest$ac_exeext conftest.$ac_ext
29079   #
29080   if test "$curl_cv_select" = "yes"; then
29081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29082 $as_echo_n "checking types of args and return type for select... " >&6; }
29083 if ${curl_cv_func_select_args+:} false; then :
29084   $as_echo_n "(cached) " >&6
29085 else
29086
29087       curl_cv_func_select_args="unknown"
29088       for sel_retv in 'int' 'ssize_t'; do
29089         for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29090           for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29091             for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29092               if test "$curl_cv_func_select_args" = "unknown"; then
29093                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29094 /* end confdefs.h.  */
29095
29096
29097 #undef inline
29098 #ifdef HAVE_WINDOWS_H
29099 #ifndef WIN32_LEAN_AND_MEAN
29100 #define WIN32_LEAN_AND_MEAN
29101 #endif
29102 #include <windows.h>
29103 #ifdef HAVE_WINSOCK2_H
29104 #include <winsock2.h>
29105 #else
29106 #ifdef HAVE_WINSOCK_H
29107 #include <winsock.h>
29108 #endif
29109 #endif
29110 #define SELECTCALLCONV PASCAL
29111 #endif
29112 #ifdef HAVE_SYS_TYPES_H
29113 #include <sys/types.h>
29114 #endif
29115 #ifdef HAVE_SYS_TIME_H
29116 #include <sys/time.h>
29117 #ifdef TIME_WITH_SYS_TIME
29118 #include <time.h>
29119 #endif
29120 #else
29121 #ifdef HAVE_TIME_H
29122 #include <time.h>
29123 #endif
29124 #endif
29125 #ifndef HAVE_WINDOWS_H
29126 #ifdef HAVE_SYS_SELECT_H
29127 #include <sys/select.h>
29128 #endif
29129 #ifdef HAVE_SYS_SOCKET_H
29130 #include <sys/socket.h>
29131 #endif
29132 #define SELECTCALLCONV
29133 #endif
29134 #ifndef HAVE_STRUCT_TIMEVAL
29135                     struct timeval {
29136                       long tv_sec;
29137                       long tv_usec;
29138                     };
29139 #endif
29140                     extern $sel_retv SELECTCALLCONV select($sel_arg1,
29141                                                            $sel_arg234,
29142                                                            $sel_arg234,
29143                                                            $sel_arg234,
29144                                                            $sel_arg5);
29145
29146 int main (void)
29147 {
29148
29149                     $sel_arg1   nfds=0;
29150                     $sel_arg234 rfds=0;
29151                     $sel_arg234 wfds=0;
29152                     $sel_arg234 efds=0;
29153                     $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29154
29155  ;
29156  return 0;
29157 }
29158
29159 _ACEOF
29160 if ac_fn_c_try_compile "$LINENO"; then :
29161
29162                   curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29163
29164 fi
29165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29166               fi
29167             done
29168           done
29169         done
29170       done
29171
29172 fi
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29174 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29175     if test "$curl_cv_func_select_args" = "unknown"; then
29176       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29177 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29178       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29179 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29180     else
29181       select_prev_IFS=$IFS; IFS=','
29182       set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29183       IFS=$select_prev_IFS
29184       shift
29185       #
29186       sel_qual_type_arg5=$3
29187       #
29188
29189 cat >>confdefs.h <<_ACEOF
29190 #define SELECT_TYPE_ARG1 $1
29191 _ACEOF
29192
29193
29194 cat >>confdefs.h <<_ACEOF
29195 #define SELECT_TYPE_ARG234 $2
29196 _ACEOF
29197
29198
29199 cat >>confdefs.h <<_ACEOF
29200 #define SELECT_TYPE_RETV $4
29201 _ACEOF
29202
29203       #
29204       prev_sh_opts=$-
29205       #
29206       case $prev_sh_opts in
29207         *f*)
29208           ;;
29209         *)
29210           set -f
29211           ;;
29212       esac
29213       #
29214       case "$sel_qual_type_arg5" in
29215         const*)
29216           sel_qual_arg5=const
29217           sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29218         ;;
29219         *)
29220           sel_qual_arg5=
29221           sel_type_arg5=$sel_qual_type_arg5
29222         ;;
29223       esac
29224       #
29225
29226 cat >>confdefs.h <<_ACEOF
29227 #define SELECT_QUAL_ARG5 $sel_qual_arg5
29228 _ACEOF
29229
29230
29231 cat >>confdefs.h <<_ACEOF
29232 #define SELECT_TYPE_ARG5 $sel_type_arg5
29233 _ACEOF
29234
29235       #
29236       case $prev_sh_opts in
29237         *f*)
29238           ;;
29239         *)
29240           set +f
29241           ;;
29242       esac
29243       #
29244
29245 cat >>confdefs.h <<_ACEOF
29246 #define HAVE_SELECT 1
29247 _ACEOF
29248
29249       curl_cv_func_select="yes"
29250     fi
29251   fi
29252
29253
29254
29255       for ac_header in sys/types.h sys/socket.h
29256 do :
29257   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29258 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29259 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29260   cat >>confdefs.h <<_ACEOF
29261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29262 _ACEOF
29263
29264 fi
29265
29266 done
29267
29268   #
29269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29270 $as_echo_n "checking for recv... " >&6; }
29271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29272 /* end confdefs.h.  */
29273
29274
29275 #undef inline
29276 #ifdef HAVE_WINDOWS_H
29277 #ifndef WIN32_LEAN_AND_MEAN
29278 #define WIN32_LEAN_AND_MEAN
29279 #endif
29280 #include <windows.h>
29281 #ifdef HAVE_WINSOCK2_H
29282 #include <winsock2.h>
29283 #else
29284 #ifdef HAVE_WINSOCK_H
29285 #include <winsock.h>
29286 #endif
29287 #endif
29288 #else
29289 #ifdef HAVE_SYS_TYPES_H
29290 #include <sys/types.h>
29291 #endif
29292 #ifdef HAVE_SYS_SOCKET_H
29293 #include <sys/socket.h>
29294 #endif
29295 #endif
29296
29297 int main (void)
29298 {
29299
29300       recv(0, 0, 0, 0);
29301
29302  ;
29303  return 0;
29304 }
29305
29306 _ACEOF
29307 if ac_fn_c_try_link "$LINENO"; then :
29308
29309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29310 $as_echo "yes" >&6; }
29311     curl_cv_recv="yes"
29312
29313 else
29314
29315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29316 $as_echo "no" >&6; }
29317     curl_cv_recv="no"
29318
29319 fi
29320 rm -f core conftest.err conftest.$ac_objext \
29321     conftest$ac_exeext conftest.$ac_ext
29322   #
29323   if test "$curl_cv_recv" = "yes"; then
29324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29325 $as_echo_n "checking types of args and return type for recv... " >&6; }
29326 if ${curl_cv_func_recv_args+:} false; then :
29327   $as_echo_n "(cached) " >&6
29328 else
29329
29330       curl_cv_func_recv_args="unknown"
29331       for recv_retv in 'int' 'ssize_t'; do
29332         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29333           for recv_arg2 in 'char *' 'void *'; do
29334             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29335               for recv_arg4 in 'int' 'unsigned int'; do
29336                 if test "$curl_cv_func_recv_args" = "unknown"; then
29337                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29338 /* end confdefs.h.  */
29339
29340
29341 #undef inline
29342 #ifdef HAVE_WINDOWS_H
29343 #ifndef WIN32_LEAN_AND_MEAN
29344 #define WIN32_LEAN_AND_MEAN
29345 #endif
29346 #include <windows.h>
29347 #ifdef HAVE_WINSOCK2_H
29348 #include <winsock2.h>
29349 #else
29350 #ifdef HAVE_WINSOCK_H
29351 #include <winsock.h>
29352 #endif
29353 #endif
29354 #define RECVCALLCONV PASCAL
29355 #else
29356 #ifdef HAVE_SYS_TYPES_H
29357 #include <sys/types.h>
29358 #endif
29359 #ifdef HAVE_SYS_SOCKET_H
29360 #include <sys/socket.h>
29361 #endif
29362 #define RECVCALLCONV
29363 #endif
29364                       extern $recv_retv RECVCALLCONV
29365                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29366
29367 int main (void)
29368 {
29369
29370                       $recv_arg1 s=0;
29371                       $recv_arg2 buf=0;
29372                       $recv_arg3 len=0;
29373                       $recv_arg4 flags=0;
29374                       $recv_retv res = recv(s, buf, len, flags);
29375
29376  ;
29377  return 0;
29378 }
29379
29380 _ACEOF
29381 if ac_fn_c_try_compile "$LINENO"; then :
29382
29383                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29384
29385 fi
29386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29387                 fi
29388               done
29389             done
29390           done
29391         done
29392       done
29393
29394 fi
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29396 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29397     if test "$curl_cv_func_recv_args" = "unknown"; then
29398       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29399     else
29400       recv_prev_IFS=$IFS; IFS=','
29401       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29402       IFS=$recv_prev_IFS
29403       shift
29404       #
29405
29406 cat >>confdefs.h <<_ACEOF
29407 #define RECV_TYPE_ARG1 $1
29408 _ACEOF
29409
29410
29411 cat >>confdefs.h <<_ACEOF
29412 #define RECV_TYPE_ARG2 $2
29413 _ACEOF
29414
29415
29416 cat >>confdefs.h <<_ACEOF
29417 #define RECV_TYPE_ARG3 $3
29418 _ACEOF
29419
29420
29421 cat >>confdefs.h <<_ACEOF
29422 #define RECV_TYPE_ARG4 $4
29423 _ACEOF
29424
29425
29426 cat >>confdefs.h <<_ACEOF
29427 #define RECV_TYPE_RETV $5
29428 _ACEOF
29429
29430       #
29431
29432 cat >>confdefs.h <<_ACEOF
29433 #define HAVE_RECV 1
29434 _ACEOF
29435
29436       curl_cv_func_recv="yes"
29437     fi
29438   else
29439     as_fn_error $? "Unable to link function recv" "$LINENO" 5
29440   fi
29441
29442
29443       for ac_header in sys/types.h sys/socket.h
29444 do :
29445   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29446 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29447 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29448   cat >>confdefs.h <<_ACEOF
29449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29450 _ACEOF
29451
29452 fi
29453
29454 done
29455
29456   #
29457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29458 $as_echo_n "checking for send... " >&6; }
29459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29460 /* end confdefs.h.  */
29461
29462
29463 #undef inline
29464 #ifdef HAVE_WINDOWS_H
29465 #ifndef WIN32_LEAN_AND_MEAN
29466 #define WIN32_LEAN_AND_MEAN
29467 #endif
29468 #include <windows.h>
29469 #ifdef HAVE_WINSOCK2_H
29470 #include <winsock2.h>
29471 #else
29472 #ifdef HAVE_WINSOCK_H
29473 #include <winsock.h>
29474 #endif
29475 #endif
29476 #else
29477 #ifdef HAVE_SYS_TYPES_H
29478 #include <sys/types.h>
29479 #endif
29480 #ifdef HAVE_SYS_SOCKET_H
29481 #include <sys/socket.h>
29482 #endif
29483 #endif
29484
29485 int main (void)
29486 {
29487
29488       send(0, 0, 0, 0);
29489
29490  ;
29491  return 0;
29492 }
29493
29494 _ACEOF
29495 if ac_fn_c_try_link "$LINENO"; then :
29496
29497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29498 $as_echo "yes" >&6; }
29499     curl_cv_send="yes"
29500
29501 else
29502
29503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29504 $as_echo "no" >&6; }
29505     curl_cv_send="no"
29506
29507 fi
29508 rm -f core conftest.err conftest.$ac_objext \
29509     conftest$ac_exeext conftest.$ac_ext
29510   #
29511   if test "$curl_cv_send" = "yes"; then
29512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29513 $as_echo_n "checking types of args and return type for send... " >&6; }
29514 if ${curl_cv_func_send_args+:} false; then :
29515   $as_echo_n "(cached) " >&6
29516 else
29517
29518       curl_cv_func_send_args="unknown"
29519       for send_retv in 'int' 'ssize_t'; do
29520         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29521           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29522             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29523               for send_arg4 in 'int' 'unsigned int'; do
29524                 if test "$curl_cv_func_send_args" = "unknown"; then
29525                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29526 /* end confdefs.h.  */
29527
29528
29529 #undef inline
29530 #ifdef HAVE_WINDOWS_H
29531 #ifndef WIN32_LEAN_AND_MEAN
29532 #define WIN32_LEAN_AND_MEAN
29533 #endif
29534 #include <windows.h>
29535 #ifdef HAVE_WINSOCK2_H
29536 #include <winsock2.h>
29537 #else
29538 #ifdef HAVE_WINSOCK_H
29539 #include <winsock.h>
29540 #endif
29541 #endif
29542 #define SENDCALLCONV PASCAL
29543 #else
29544 #ifdef HAVE_SYS_TYPES_H
29545 #include <sys/types.h>
29546 #endif
29547 #ifdef HAVE_SYS_SOCKET_H
29548 #include <sys/socket.h>
29549 #endif
29550 #define SENDCALLCONV
29551 #endif
29552                       extern $send_retv SENDCALLCONV
29553                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
29554
29555 int main (void)
29556 {
29557
29558                       $send_arg1 s=0;
29559                       $send_arg3 len=0;
29560                       $send_arg4 flags=0;
29561                       $send_retv res = send(s, 0, len, flags);
29562
29563  ;
29564  return 0;
29565 }
29566
29567 _ACEOF
29568 if ac_fn_c_try_compile "$LINENO"; then :
29569
29570                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
29571
29572 fi
29573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29574                 fi
29575               done
29576             done
29577           done
29578         done
29579       done
29580
29581 fi
29582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
29583 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
29584     if test "$curl_cv_func_send_args" = "unknown"; then
29585       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
29586     else
29587       send_prev_IFS=$IFS; IFS=','
29588       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
29589       IFS=$send_prev_IFS
29590       shift
29591       #
29592       send_qual_type_arg2=$2
29593       #
29594
29595 cat >>confdefs.h <<_ACEOF
29596 #define SEND_TYPE_ARG1 $1
29597 _ACEOF
29598
29599
29600 cat >>confdefs.h <<_ACEOF
29601 #define SEND_TYPE_ARG3 $3
29602 _ACEOF
29603
29604
29605 cat >>confdefs.h <<_ACEOF
29606 #define SEND_TYPE_ARG4 $4
29607 _ACEOF
29608
29609
29610 cat >>confdefs.h <<_ACEOF
29611 #define SEND_TYPE_RETV $5
29612 _ACEOF
29613
29614       #
29615       prev_sh_opts=$-
29616       #
29617       case $prev_sh_opts in
29618         *f*)
29619           ;;
29620         *)
29621           set -f
29622           ;;
29623       esac
29624       #
29625       case "$send_qual_type_arg2" in
29626         const*)
29627           send_qual_arg2=const
29628           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
29629         ;;
29630         *)
29631           send_qual_arg2=
29632           send_type_arg2=$send_qual_type_arg2
29633         ;;
29634       esac
29635       #
29636
29637 cat >>confdefs.h <<_ACEOF
29638 #define SEND_QUAL_ARG2 $send_qual_arg2
29639 _ACEOF
29640
29641
29642 cat >>confdefs.h <<_ACEOF
29643 #define SEND_TYPE_ARG2 $send_type_arg2
29644 _ACEOF
29645
29646       #
29647       case $prev_sh_opts in
29648         *f*)
29649           ;;
29650         *)
29651           set +f
29652           ;;
29653       esac
29654       #
29655
29656 cat >>confdefs.h <<_ACEOF
29657 #define HAVE_SEND 1
29658 _ACEOF
29659
29660       curl_cv_func_send="yes"
29661     fi
29662   else
29663     as_fn_error $? "Unable to link function send" "$LINENO" 5
29664   fi
29665
29666
29667   for ac_header in sys/types.h sys/socket.h
29668 do :
29669   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29670 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29671 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29672   cat >>confdefs.h <<_ACEOF
29673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29674 _ACEOF
29675
29676 fi
29677
29678 done
29679
29680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
29681 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
29682 if ${curl_cv_msg_nosignal+:} false; then :
29683   $as_echo_n "(cached) " >&6
29684 else
29685
29686     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29687 /* end confdefs.h.  */
29688
29689
29690 #undef inline
29691 #ifdef HAVE_WINDOWS_H
29692 #ifndef WIN32_LEAN_AND_MEAN
29693 #define WIN32_LEAN_AND_MEAN
29694 #endif
29695 #include <windows.h>
29696 #ifdef HAVE_WINSOCK2_H
29697 #include <winsock2.h>
29698 #else
29699 #ifdef HAVE_WINSOCK_H
29700 #include <winsock.h>
29701 #endif
29702 #endif
29703 #else
29704 #ifdef HAVE_SYS_TYPES_H
29705 #include <sys/types.h>
29706 #endif
29707 #ifdef HAVE_SYS_SOCKET_H
29708 #include <sys/socket.h>
29709 #endif
29710 #endif
29711
29712 int main (void)
29713 {
29714
29715         int flag=MSG_NOSIGNAL;
29716
29717  ;
29718  return 0;
29719 }
29720
29721 _ACEOF
29722 if ac_fn_c_try_compile "$LINENO"; then :
29723
29724       curl_cv_msg_nosignal="yes"
29725
29726 else
29727
29728       curl_cv_msg_nosignal="no"
29729
29730 fi
29731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29732
29733 fi
29734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
29735 $as_echo "$curl_cv_msg_nosignal" >&6; }
29736   case "$curl_cv_msg_nosignal" in
29737     yes)
29738
29739 cat >>confdefs.h <<_ACEOF
29740 #define HAVE_MSG_NOSIGNAL 1
29741 _ACEOF
29742
29743       ;;
29744   esac
29745
29746
29747
29748 curl_includes_unistd="\
29749 /* includes start */
29750 #ifdef HAVE_SYS_TYPES_H
29751 #  include <sys/types.h>
29752 #endif
29753 #ifdef HAVE_UNISTD_H
29754 #  include <unistd.h>
29755 #endif
29756 /* includes end */"
29757   for ac_header in sys/types.h unistd.h
29758 do :
29759   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29760 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
29761 "
29762 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29763   cat >>confdefs.h <<_ACEOF
29764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29765 _ACEOF
29766
29767 fi
29768
29769 done
29770
29771
29772
29773     #
29774   tst_links_alarm="unknown"
29775   tst_proto_alarm="unknown"
29776   tst_compi_alarm="unknown"
29777   tst_allow_alarm="unknown"
29778   #
29779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
29780 $as_echo_n "checking if alarm can be linked... " >&6; }
29781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29782 /* end confdefs.h.  */
29783
29784
29785 #define alarm innocuous_alarm
29786 #ifdef __STDC__
29787 # include <limits.h>
29788 #else
29789 # include <assert.h>
29790 #endif
29791 #undef alarm
29792 #ifdef __cplusplus
29793 extern "C"
29794 #endif
29795 char alarm ();
29796 #if defined __stub_alarm || defined __stub___alarm
29797 choke me
29798 #endif
29799
29800 int main (void)
29801 {
29802 return alarm ();
29803  ;
29804  return 0;
29805 }
29806
29807 _ACEOF
29808 if ac_fn_c_try_link "$LINENO"; then :
29809
29810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29811 $as_echo "yes" >&6; }
29812     tst_links_alarm="yes"
29813
29814 else
29815
29816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29817 $as_echo "no" >&6; }
29818     tst_links_alarm="no"
29819
29820 fi
29821 rm -f core conftest.err conftest.$ac_objext \
29822     conftest$ac_exeext conftest.$ac_ext
29823   #
29824   if test "$tst_links_alarm" = "yes"; then
29825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
29826 $as_echo_n "checking if alarm is prototyped... " >&6; }
29827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29828 /* end confdefs.h.  */
29829
29830       $curl_includes_unistd
29831
29832 _ACEOF
29833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29834   $EGREP "alarm" >/dev/null 2>&1; then :
29835
29836       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29837 $as_echo "yes" >&6; }
29838       tst_proto_alarm="yes"
29839
29840 else
29841
29842       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29843 $as_echo "no" >&6; }
29844       tst_proto_alarm="no"
29845
29846 fi
29847 rm -f conftest*
29848
29849   fi
29850   #
29851   if test "$tst_proto_alarm" = "yes"; then
29852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
29853 $as_echo_n "checking if alarm is compilable... " >&6; }
29854     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29855 /* end confdefs.h.  */
29856
29857
29858         $curl_includes_unistd
29859
29860 int main (void)
29861 {
29862
29863         if(0 != alarm(0))
29864           return 1;
29865
29866  ;
29867  return 0;
29868 }
29869
29870 _ACEOF
29871 if ac_fn_c_try_compile "$LINENO"; then :
29872
29873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29874 $as_echo "yes" >&6; }
29875       tst_compi_alarm="yes"
29876
29877 else
29878
29879       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29880 $as_echo "no" >&6; }
29881       tst_compi_alarm="no"
29882
29883 fi
29884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29885   fi
29886   #
29887   if test "$tst_compi_alarm" = "yes"; then
29888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
29889 $as_echo_n "checking if alarm usage allowed... " >&6; }
29890     if test "x$curl_disallow_alarm" != "xyes"; then
29891       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29892 $as_echo "yes" >&6; }
29893       tst_allow_alarm="yes"
29894     else
29895       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29896 $as_echo "no" >&6; }
29897       tst_allow_alarm="no"
29898     fi
29899   fi
29900   #
29901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
29902 $as_echo_n "checking if alarm might be used... " >&6; }
29903   if test "$tst_links_alarm" = "yes" &&
29904      test "$tst_proto_alarm" = "yes" &&
29905      test "$tst_compi_alarm" = "yes" &&
29906      test "$tst_allow_alarm" = "yes"; then
29907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29908 $as_echo "yes" >&6; }
29909
29910 cat >>confdefs.h <<_ACEOF
29911 #define HAVE_ALARM 1
29912 _ACEOF
29913
29914     curl_cv_func_alarm="yes"
29915   else
29916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29917 $as_echo "no" >&6; }
29918     curl_cv_func_alarm="no"
29919   fi
29920
29921
29922 curl_includes_string="\
29923 /* includes start */
29924 #ifdef HAVE_SYS_TYPES_H
29925 #  include <sys/types.h>
29926 #endif
29927 #ifdef HAVE_STRING_H
29928 #  include <string.h>
29929 #endif
29930 #ifdef HAVE_STRINGS_H
29931 #  include <strings.h>
29932 #endif
29933 /* includes end */"
29934   for ac_header in sys/types.h string.h strings.h
29935 do :
29936   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29937 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
29938 "
29939 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29940   cat >>confdefs.h <<_ACEOF
29941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29942 _ACEOF
29943
29944 fi
29945
29946 done
29947
29948
29949
29950 curl_includes_libgen="\
29951 /* includes start */
29952 #ifdef HAVE_SYS_TYPES_H
29953 #  include <sys/types.h>
29954 #endif
29955 #ifdef HAVE_LIBGEN_H
29956 #  include <libgen.h>
29957 #endif
29958 /* includes end */"
29959   for ac_header in sys/types.h libgen.h
29960 do :
29961   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
29963 "
29964 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29965   cat >>confdefs.h <<_ACEOF
29966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29967 _ACEOF
29968
29969 fi
29970
29971 done
29972
29973
29974
29975         #
29976   tst_links_basename="unknown"
29977   tst_proto_basename="unknown"
29978   tst_compi_basename="unknown"
29979   tst_allow_basename="unknown"
29980   #
29981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
29982 $as_echo_n "checking if basename can be linked... " >&6; }
29983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29984 /* end confdefs.h.  */
29985
29986
29987 #define basename innocuous_basename
29988 #ifdef __STDC__
29989 # include <limits.h>
29990 #else
29991 # include <assert.h>
29992 #endif
29993 #undef basename
29994 #ifdef __cplusplus
29995 extern "C"
29996 #endif
29997 char basename ();
29998 #if defined __stub_basename || defined __stub___basename
29999 choke me
30000 #endif
30001
30002 int main (void)
30003 {
30004 return basename ();
30005  ;
30006  return 0;
30007 }
30008
30009 _ACEOF
30010 if ac_fn_c_try_link "$LINENO"; then :
30011
30012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30013 $as_echo "yes" >&6; }
30014     tst_links_basename="yes"
30015
30016 else
30017
30018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30019 $as_echo "no" >&6; }
30020     tst_links_basename="no"
30021
30022 fi
30023 rm -f core conftest.err conftest.$ac_objext \
30024     conftest$ac_exeext conftest.$ac_ext
30025   #
30026   if test "$tst_links_basename" = "yes"; then
30027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30028 $as_echo_n "checking if basename is prototyped... " >&6; }
30029     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30030 /* end confdefs.h.  */
30031
30032       $curl_includes_string
30033       $curl_includes_libgen
30034       $curl_includes_unistd
30035
30036 _ACEOF
30037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30038   $EGREP "basename" >/dev/null 2>&1; then :
30039
30040       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30041 $as_echo "yes" >&6; }
30042       tst_proto_basename="yes"
30043
30044 else
30045
30046       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30047 $as_echo "no" >&6; }
30048       tst_proto_basename="no"
30049
30050 fi
30051 rm -f conftest*
30052
30053   fi
30054   #
30055   if test "$tst_proto_basename" = "yes"; then
30056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30057 $as_echo_n "checking if basename is compilable... " >&6; }
30058     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30059 /* end confdefs.h.  */
30060
30061
30062         $curl_includes_string
30063         $curl_includes_libgen
30064         $curl_includes_unistd
30065
30066 int main (void)
30067 {
30068
30069         if(0 != basename(0))
30070           return 1;
30071
30072  ;
30073  return 0;
30074 }
30075
30076 _ACEOF
30077 if ac_fn_c_try_compile "$LINENO"; then :
30078
30079       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30080 $as_echo "yes" >&6; }
30081       tst_compi_basename="yes"
30082
30083 else
30084
30085       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30086 $as_echo "no" >&6; }
30087       tst_compi_basename="no"
30088
30089 fi
30090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30091   fi
30092   #
30093   if test "$tst_compi_basename" = "yes"; then
30094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30095 $as_echo_n "checking if basename usage allowed... " >&6; }
30096     if test "x$curl_disallow_basename" != "xyes"; then
30097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30098 $as_echo "yes" >&6; }
30099       tst_allow_basename="yes"
30100     else
30101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30102 $as_echo "no" >&6; }
30103       tst_allow_basename="no"
30104     fi
30105   fi
30106   #
30107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30108 $as_echo_n "checking if basename might be used... " >&6; }
30109   if test "$tst_links_basename" = "yes" &&
30110      test "$tst_proto_basename" = "yes" &&
30111      test "$tst_compi_basename" = "yes" &&
30112      test "$tst_allow_basename" = "yes"; then
30113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30114 $as_echo "yes" >&6; }
30115
30116 cat >>confdefs.h <<_ACEOF
30117 #define HAVE_BASENAME 1
30118 _ACEOF
30119
30120     curl_cv_func_basename="yes"
30121   else
30122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30123 $as_echo "no" >&6; }
30124     curl_cv_func_basename="no"
30125   fi
30126
30127
30128 curl_includes_socket="\
30129 /* includes start */
30130 #ifdef HAVE_SYS_TYPES_H
30131 #  include <sys/types.h>
30132 #endif
30133 #ifdef HAVE_SOCKET_H
30134 #  include <socket.h>
30135 #endif
30136 /* includes end */"
30137   for ac_header in sys/types.h socket.h
30138 do :
30139   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30140 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30141 "
30142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30143   cat >>confdefs.h <<_ACEOF
30144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30145 _ACEOF
30146
30147 fi
30148
30149 done
30150
30151
30152
30153       #
30154   tst_links_closesocket="unknown"
30155   tst_proto_closesocket="unknown"
30156   tst_compi_closesocket="unknown"
30157   tst_allow_closesocket="unknown"
30158   #
30159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30160 $as_echo_n "checking if closesocket can be linked... " >&6; }
30161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30162 /* end confdefs.h.  */
30163
30164
30165       $curl_includes_winsock2
30166       $curl_includes_socket
30167
30168 int main (void)
30169 {
30170
30171       if(0 != closesocket(0))
30172         return 1;
30173
30174  ;
30175  return 0;
30176 }
30177
30178 _ACEOF
30179 if ac_fn_c_try_link "$LINENO"; then :
30180
30181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30182 $as_echo "yes" >&6; }
30183     tst_links_closesocket="yes"
30184
30185 else
30186
30187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30188 $as_echo "no" >&6; }
30189     tst_links_closesocket="no"
30190
30191 fi
30192 rm -f core conftest.err conftest.$ac_objext \
30193     conftest$ac_exeext conftest.$ac_ext
30194   #
30195   if test "$tst_links_closesocket" = "yes"; then
30196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30197 $as_echo_n "checking if closesocket is prototyped... " >&6; }
30198     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30199 /* end confdefs.h.  */
30200
30201       $curl_includes_winsock2
30202       $curl_includes_socket
30203
30204 _ACEOF
30205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30206   $EGREP "closesocket" >/dev/null 2>&1; then :
30207
30208       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30209 $as_echo "yes" >&6; }
30210       tst_proto_closesocket="yes"
30211
30212 else
30213
30214       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30215 $as_echo "no" >&6; }
30216       tst_proto_closesocket="no"
30217
30218 fi
30219 rm -f conftest*
30220
30221   fi
30222   #
30223   if test "$tst_proto_closesocket" = "yes"; then
30224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30225 $as_echo_n "checking if closesocket is compilable... " >&6; }
30226     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30227 /* end confdefs.h.  */
30228
30229
30230         $curl_includes_winsock2
30231         $curl_includes_socket
30232
30233 int main (void)
30234 {
30235
30236         if(0 != closesocket(0))
30237           return 1;
30238
30239  ;
30240  return 0;
30241 }
30242
30243 _ACEOF
30244 if ac_fn_c_try_compile "$LINENO"; then :
30245
30246       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30247 $as_echo "yes" >&6; }
30248       tst_compi_closesocket="yes"
30249
30250 else
30251
30252       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30253 $as_echo "no" >&6; }
30254       tst_compi_closesocket="no"
30255
30256 fi
30257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30258   fi
30259   #
30260   if test "$tst_compi_closesocket" = "yes"; then
30261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30262 $as_echo_n "checking if closesocket usage allowed... " >&6; }
30263     if test "x$curl_disallow_closesocket" != "xyes"; then
30264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30265 $as_echo "yes" >&6; }
30266       tst_allow_closesocket="yes"
30267     else
30268       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30269 $as_echo "no" >&6; }
30270       tst_allow_closesocket="no"
30271     fi
30272   fi
30273   #
30274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30275 $as_echo_n "checking if closesocket might be used... " >&6; }
30276   if test "$tst_links_closesocket" = "yes" &&
30277      test "$tst_proto_closesocket" = "yes" &&
30278      test "$tst_compi_closesocket" = "yes" &&
30279      test "$tst_allow_closesocket" = "yes"; then
30280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30281 $as_echo "yes" >&6; }
30282
30283 cat >>confdefs.h <<_ACEOF
30284 #define HAVE_CLOSESOCKET 1
30285 _ACEOF
30286
30287     curl_cv_func_closesocket="yes"
30288   else
30289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30290 $as_echo "no" >&6; }
30291     curl_cv_func_closesocket="no"
30292   fi
30293
30294
30295     #
30296   tst_links_closesocket_camel="unknown"
30297   tst_proto_closesocket_camel="unknown"
30298   tst_compi_closesocket_camel="unknown"
30299   tst_allow_closesocket_camel="unknown"
30300   #
30301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30302 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
30303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30304 /* end confdefs.h.  */
30305
30306
30307       $curl_includes_sys_socket
30308
30309 int main (void)
30310 {
30311
30312       if(0 != CloseSocket(0))
30313         return 1;
30314
30315  ;
30316  return 0;
30317 }
30318
30319 _ACEOF
30320 if ac_fn_c_try_link "$LINENO"; then :
30321
30322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30323 $as_echo "yes" >&6; }
30324     tst_links_closesocket_camel="yes"
30325
30326 else
30327
30328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30329 $as_echo "no" >&6; }
30330     tst_links_closesocket_camel="no"
30331
30332 fi
30333 rm -f core conftest.err conftest.$ac_objext \
30334     conftest$ac_exeext conftest.$ac_ext
30335   #
30336   if test "$tst_links_closesocket_camel" = "yes"; then
30337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30338 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30340 /* end confdefs.h.  */
30341
30342       $curl_includes_sys_socket
30343
30344 _ACEOF
30345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30346   $EGREP "CloseSocket" >/dev/null 2>&1; then :
30347
30348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30349 $as_echo "yes" >&6; }
30350       tst_proto_closesocket_camel="yes"
30351
30352 else
30353
30354       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30355 $as_echo "no" >&6; }
30356       tst_proto_closesocket_camel="no"
30357
30358 fi
30359 rm -f conftest*
30360
30361   fi
30362   #
30363   if test "$tst_proto_closesocket_camel" = "yes"; then
30364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30365 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
30366     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30367 /* end confdefs.h.  */
30368
30369
30370         $curl_includes_sys_socket
30371
30372 int main (void)
30373 {
30374
30375         if(0 != CloseSocket(0))
30376           return 1;
30377
30378  ;
30379  return 0;
30380 }
30381
30382 _ACEOF
30383 if ac_fn_c_try_compile "$LINENO"; then :
30384
30385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30386 $as_echo "yes" >&6; }
30387       tst_compi_closesocket_camel="yes"
30388
30389 else
30390
30391       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30392 $as_echo "no" >&6; }
30393       tst_compi_closesocket_camel="no"
30394
30395 fi
30396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30397   fi
30398   #
30399   if test "$tst_compi_closesocket_camel" = "yes"; then
30400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30401 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30402     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30403       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30404 $as_echo "yes" >&6; }
30405       tst_allow_closesocket_camel="yes"
30406     else
30407       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30408 $as_echo "no" >&6; }
30409       tst_allow_closesocket_camel="no"
30410     fi
30411   fi
30412   #
30413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30414 $as_echo_n "checking if CloseSocket might be used... " >&6; }
30415   if test "$tst_links_closesocket_camel" = "yes" &&
30416      test "$tst_proto_closesocket_camel" = "yes" &&
30417      test "$tst_compi_closesocket_camel" = "yes" &&
30418      test "$tst_allow_closesocket_camel" = "yes"; then
30419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30420 $as_echo "yes" >&6; }
30421
30422 cat >>confdefs.h <<_ACEOF
30423 #define HAVE_CLOSESOCKET_CAMEL 1
30424 _ACEOF
30425
30426     curl_cv_func_closesocket_camel="yes"
30427   else
30428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30429 $as_echo "no" >&6; }
30430     curl_cv_func_closesocket_camel="no"
30431   fi
30432
30433
30434         #
30435   tst_links_connect="unknown"
30436   tst_proto_connect="unknown"
30437   tst_compi_connect="unknown"
30438   tst_allow_connect="unknown"
30439   #
30440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30441 $as_echo_n "checking if connect can be linked... " >&6; }
30442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30443 /* end confdefs.h.  */
30444
30445
30446       $curl_includes_winsock2
30447       $curl_includes_sys_socket
30448       $curl_includes_socket
30449
30450 int main (void)
30451 {
30452
30453       if(0 != connect(0, 0, 0))
30454         return 1;
30455
30456  ;
30457  return 0;
30458 }
30459
30460 _ACEOF
30461 if ac_fn_c_try_link "$LINENO"; then :
30462
30463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30464 $as_echo "yes" >&6; }
30465     tst_links_connect="yes"
30466
30467 else
30468
30469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30470 $as_echo "no" >&6; }
30471     tst_links_connect="no"
30472
30473 fi
30474 rm -f core conftest.err conftest.$ac_objext \
30475     conftest$ac_exeext conftest.$ac_ext
30476   #
30477   if test "$tst_links_connect" = "yes"; then
30478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30479 $as_echo_n "checking if connect is prototyped... " >&6; }
30480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30481 /* end confdefs.h.  */
30482
30483       $curl_includes_winsock2
30484       $curl_includes_sys_socket
30485       $curl_includes_socket
30486
30487 _ACEOF
30488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30489   $EGREP "connect" >/dev/null 2>&1; then :
30490
30491       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30492 $as_echo "yes" >&6; }
30493       tst_proto_connect="yes"
30494
30495 else
30496
30497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30498 $as_echo "no" >&6; }
30499       tst_proto_connect="no"
30500
30501 fi
30502 rm -f conftest*
30503
30504   fi
30505   #
30506   if test "$tst_proto_connect" = "yes"; then
30507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30508 $as_echo_n "checking if connect is compilable... " >&6; }
30509     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30510 /* end confdefs.h.  */
30511
30512
30513         $curl_includes_winsock2
30514         $curl_includes_sys_socket
30515         $curl_includes_socket
30516
30517 int main (void)
30518 {
30519
30520         if(0 != connect(0, 0, 0))
30521           return 1;
30522
30523  ;
30524  return 0;
30525 }
30526
30527 _ACEOF
30528 if ac_fn_c_try_compile "$LINENO"; then :
30529
30530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30531 $as_echo "yes" >&6; }
30532       tst_compi_connect="yes"
30533
30534 else
30535
30536       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30537 $as_echo "no" >&6; }
30538       tst_compi_connect="no"
30539
30540 fi
30541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30542   fi
30543   #
30544   if test "$tst_compi_connect" = "yes"; then
30545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
30546 $as_echo_n "checking if connect usage allowed... " >&6; }
30547     if test "x$curl_disallow_connect" != "xyes"; then
30548       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30549 $as_echo "yes" >&6; }
30550       tst_allow_connect="yes"
30551     else
30552       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30553 $as_echo "no" >&6; }
30554       tst_allow_connect="no"
30555     fi
30556   fi
30557   #
30558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
30559 $as_echo_n "checking if connect might be used... " >&6; }
30560   if test "$tst_links_connect" = "yes" &&
30561      test "$tst_proto_connect" = "yes" &&
30562      test "$tst_compi_connect" = "yes" &&
30563      test "$tst_allow_connect" = "yes"; then
30564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30565 $as_echo "yes" >&6; }
30566
30567 cat >>confdefs.h <<_ACEOF
30568 #define HAVE_CONNECT 1
30569 _ACEOF
30570
30571     curl_cv_func_connect="yes"
30572   else
30573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30574 $as_echo "no" >&6; }
30575     curl_cv_func_connect="no"
30576   fi
30577
30578
30579 curl_includes_fcntl="\
30580 /* includes start */
30581 #ifdef HAVE_SYS_TYPES_H
30582 #  include <sys/types.h>
30583 #endif
30584 #ifdef HAVE_UNISTD_H
30585 #  include <unistd.h>
30586 #endif
30587 #ifdef HAVE_FCNTL_H
30588 #  include <fcntl.h>
30589 #endif
30590 /* includes end */"
30591   for ac_header in sys/types.h unistd.h fcntl.h
30592 do :
30593   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30594 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
30595 "
30596 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30597   cat >>confdefs.h <<_ACEOF
30598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30599 _ACEOF
30600
30601 fi
30602
30603 done
30604
30605
30606
30607     #
30608   tst_links_fcntl="unknown"
30609   tst_proto_fcntl="unknown"
30610   tst_compi_fcntl="unknown"
30611   tst_allow_fcntl="unknown"
30612   #
30613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
30614 $as_echo_n "checking if fcntl can be linked... " >&6; }
30615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30616 /* end confdefs.h.  */
30617
30618
30619 #define fcntl innocuous_fcntl
30620 #ifdef __STDC__
30621 # include <limits.h>
30622 #else
30623 # include <assert.h>
30624 #endif
30625 #undef fcntl
30626 #ifdef __cplusplus
30627 extern "C"
30628 #endif
30629 char fcntl ();
30630 #if defined __stub_fcntl || defined __stub___fcntl
30631 choke me
30632 #endif
30633
30634 int main (void)
30635 {
30636 return fcntl ();
30637  ;
30638  return 0;
30639 }
30640
30641 _ACEOF
30642 if ac_fn_c_try_link "$LINENO"; then :
30643
30644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30645 $as_echo "yes" >&6; }
30646     tst_links_fcntl="yes"
30647
30648 else
30649
30650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30651 $as_echo "no" >&6; }
30652     tst_links_fcntl="no"
30653
30654 fi
30655 rm -f core conftest.err conftest.$ac_objext \
30656     conftest$ac_exeext conftest.$ac_ext
30657   #
30658   if test "$tst_links_fcntl" = "yes"; then
30659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
30660 $as_echo_n "checking if fcntl is prototyped... " >&6; }
30661     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30662 /* end confdefs.h.  */
30663
30664       $curl_includes_fcntl
30665
30666 _ACEOF
30667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30668   $EGREP "fcntl" >/dev/null 2>&1; then :
30669
30670       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30671 $as_echo "yes" >&6; }
30672       tst_proto_fcntl="yes"
30673
30674 else
30675
30676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30677 $as_echo "no" >&6; }
30678       tst_proto_fcntl="no"
30679
30680 fi
30681 rm -f conftest*
30682
30683   fi
30684   #
30685   if test "$tst_proto_fcntl" = "yes"; then
30686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
30687 $as_echo_n "checking if fcntl is compilable... " >&6; }
30688     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30689 /* end confdefs.h.  */
30690
30691
30692         $curl_includes_fcntl
30693
30694 int main (void)
30695 {
30696
30697         if(0 != fcntl(0, 0, 0))
30698           return 1;
30699
30700  ;
30701  return 0;
30702 }
30703
30704 _ACEOF
30705 if ac_fn_c_try_compile "$LINENO"; then :
30706
30707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30708 $as_echo "yes" >&6; }
30709       tst_compi_fcntl="yes"
30710
30711 else
30712
30713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30714 $as_echo "no" >&6; }
30715       tst_compi_fcntl="no"
30716
30717 fi
30718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30719   fi
30720   #
30721   if test "$tst_compi_fcntl" = "yes"; then
30722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
30723 $as_echo_n "checking if fcntl usage allowed... " >&6; }
30724     if test "x$curl_disallow_fcntl" != "xyes"; then
30725       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30726 $as_echo "yes" >&6; }
30727       tst_allow_fcntl="yes"
30728     else
30729       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30730 $as_echo "no" >&6; }
30731       tst_allow_fcntl="no"
30732     fi
30733   fi
30734   #
30735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
30736 $as_echo_n "checking if fcntl might be used... " >&6; }
30737   if test "$tst_links_fcntl" = "yes" &&
30738      test "$tst_proto_fcntl" = "yes" &&
30739      test "$tst_compi_fcntl" = "yes" &&
30740      test "$tst_allow_fcntl" = "yes"; then
30741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30742 $as_echo "yes" >&6; }
30743
30744 cat >>confdefs.h <<_ACEOF
30745 #define HAVE_FCNTL 1
30746 _ACEOF
30747
30748     curl_cv_func_fcntl="yes"
30749
30750   #
30751   tst_compi_fcntl_o_nonblock="unknown"
30752   tst_allow_fcntl_o_nonblock="unknown"
30753   #
30754   case $host_os in
30755     sunos4* | aix3* | beos*)
30756             curl_disallow_fcntl_o_nonblock="yes"
30757       ;;
30758   esac
30759   #
30760   if test "$curl_cv_func_fcntl" = "yes"; then
30761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
30762 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
30763     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30764 /* end confdefs.h.  */
30765
30766
30767         $curl_includes_fcntl
30768
30769 int main (void)
30770 {
30771
30772         int flags = 0;
30773         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
30774           return 1;
30775
30776  ;
30777  return 0;
30778 }
30779
30780 _ACEOF
30781 if ac_fn_c_try_compile "$LINENO"; then :
30782
30783       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30784 $as_echo "yes" >&6; }
30785       tst_compi_fcntl_o_nonblock="yes"
30786
30787 else
30788
30789       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30790 $as_echo "no" >&6; }
30791       tst_compi_fcntl_o_nonblock="no"
30792
30793 fi
30794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30795   fi
30796   #
30797   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
30798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
30799 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
30800     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
30801       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30802 $as_echo "yes" >&6; }
30803       tst_allow_fcntl_o_nonblock="yes"
30804     else
30805       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30806 $as_echo "no" >&6; }
30807       tst_allow_fcntl_o_nonblock="no"
30808     fi
30809   fi
30810   #
30811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
30812 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
30813   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
30814      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
30815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30816 $as_echo "yes" >&6; }
30817
30818 cat >>confdefs.h <<_ACEOF
30819 #define HAVE_FCNTL_O_NONBLOCK 1
30820 _ACEOF
30821
30822     curl_cv_func_fcntl_o_nonblock="yes"
30823   else
30824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30825 $as_echo "no" >&6; }
30826     curl_cv_func_fcntl_o_nonblock="no"
30827   fi
30828
30829   else
30830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30831 $as_echo "no" >&6; }
30832     curl_cv_func_fcntl="no"
30833   fi
30834
30835
30836 curl_includes_stdio="\
30837 /* includes start */
30838 #ifdef HAVE_SYS_TYPES_H
30839 #  include <sys/types.h>
30840 #endif
30841 #ifdef HAVE_STDIO_H
30842 #  include <stdio.h>
30843 #endif
30844 /* includes end */"
30845   for ac_header in sys/types.h stdio.h
30846 do :
30847   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30848 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
30849 "
30850 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30851   cat >>confdefs.h <<_ACEOF
30852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30853 _ACEOF
30854
30855 fi
30856
30857 done
30858
30859
30860
30861     #
30862   tst_links_fdopen="unknown"
30863   tst_proto_fdopen="unknown"
30864   tst_compi_fdopen="unknown"
30865   tst_allow_fdopen="unknown"
30866   #
30867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
30868 $as_echo_n "checking if fdopen can be linked... " >&6; }
30869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30870 /* end confdefs.h.  */
30871
30872
30873 #define fdopen innocuous_fdopen
30874 #ifdef __STDC__
30875 # include <limits.h>
30876 #else
30877 # include <assert.h>
30878 #endif
30879 #undef fdopen
30880 #ifdef __cplusplus
30881 extern "C"
30882 #endif
30883 char fdopen ();
30884 #if defined __stub_fdopen || defined __stub___fdopen
30885 choke me
30886 #endif
30887
30888 int main (void)
30889 {
30890 return fdopen ();
30891  ;
30892  return 0;
30893 }
30894
30895 _ACEOF
30896 if ac_fn_c_try_link "$LINENO"; then :
30897
30898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30899 $as_echo "yes" >&6; }
30900     tst_links_fdopen="yes"
30901
30902 else
30903
30904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30905 $as_echo "no" >&6; }
30906     tst_links_fdopen="no"
30907
30908 fi
30909 rm -f core conftest.err conftest.$ac_objext \
30910     conftest$ac_exeext conftest.$ac_ext
30911   #
30912   if test "$tst_links_fdopen" = "yes"; then
30913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
30914 $as_echo_n "checking if fdopen is prototyped... " >&6; }
30915     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30916 /* end confdefs.h.  */
30917
30918       $curl_includes_stdio
30919
30920 _ACEOF
30921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30922   $EGREP "fdopen" >/dev/null 2>&1; then :
30923
30924       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30925 $as_echo "yes" >&6; }
30926       tst_proto_fdopen="yes"
30927
30928 else
30929
30930       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30931 $as_echo "no" >&6; }
30932       tst_proto_fdopen="no"
30933
30934 fi
30935 rm -f conftest*
30936
30937   fi
30938   #
30939   if test "$tst_proto_fdopen" = "yes"; then
30940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
30941 $as_echo_n "checking if fdopen is compilable... " >&6; }
30942     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30943 /* end confdefs.h.  */
30944
30945
30946         $curl_includes_stdio
30947
30948 int main (void)
30949 {
30950
30951         if(0 != fdopen(0, 0))
30952           return 1;
30953
30954  ;
30955  return 0;
30956 }
30957
30958 _ACEOF
30959 if ac_fn_c_try_compile "$LINENO"; then :
30960
30961       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30962 $as_echo "yes" >&6; }
30963       tst_compi_fdopen="yes"
30964
30965 else
30966
30967       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30968 $as_echo "no" >&6; }
30969       tst_compi_fdopen="no"
30970
30971 fi
30972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30973   fi
30974   #
30975   if test "$tst_compi_fdopen" = "yes"; then
30976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
30977 $as_echo_n "checking if fdopen usage allowed... " >&6; }
30978     if test "x$curl_disallow_fdopen" != "xyes"; then
30979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30980 $as_echo "yes" >&6; }
30981       tst_allow_fdopen="yes"
30982     else
30983       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30984 $as_echo "no" >&6; }
30985       tst_allow_fdopen="no"
30986     fi
30987   fi
30988   #
30989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
30990 $as_echo_n "checking if fdopen might be used... " >&6; }
30991   if test "$tst_links_fdopen" = "yes" &&
30992      test "$tst_proto_fdopen" = "yes" &&
30993      test "$tst_compi_fdopen" = "yes" &&
30994      test "$tst_allow_fdopen" = "yes"; then
30995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30996 $as_echo "yes" >&6; }
30997
30998 cat >>confdefs.h <<_ACEOF
30999 #define HAVE_FDOPEN 1
31000 _ACEOF
31001
31002     curl_cv_func_fdopen="yes"
31003   else
31004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31005 $as_echo "no" >&6; }
31006     curl_cv_func_fdopen="no"
31007   fi
31008
31009
31010 curl_includes_netdb="\
31011 /* includes start */
31012 #ifdef HAVE_SYS_TYPES_H
31013 #  include <sys/types.h>
31014 #endif
31015 #ifdef HAVE_NETDB_H
31016 #  include <netdb.h>
31017 #endif
31018 /* includes end */"
31019   for ac_header in sys/types.h netdb.h
31020 do :
31021   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31022 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31023 "
31024 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31025   cat >>confdefs.h <<_ACEOF
31026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31027 _ACEOF
31028
31029 fi
31030
31031 done
31032
31033
31034
31035         #
31036   tst_links_freeaddrinfo="unknown"
31037   tst_proto_freeaddrinfo="unknown"
31038   tst_compi_freeaddrinfo="unknown"
31039   tst_allow_freeaddrinfo="unknown"
31040   #
31041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31042 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31044 /* end confdefs.h.  */
31045
31046
31047       $curl_includes_ws2tcpip
31048       $curl_includes_sys_socket
31049       $curl_includes_netdb
31050
31051 int main (void)
31052 {
31053
31054       freeaddrinfo(0);
31055
31056  ;
31057  return 0;
31058 }
31059
31060 _ACEOF
31061 if ac_fn_c_try_link "$LINENO"; then :
31062
31063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31064 $as_echo "yes" >&6; }
31065     tst_links_freeaddrinfo="yes"
31066
31067 else
31068
31069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31070 $as_echo "no" >&6; }
31071     tst_links_freeaddrinfo="no"
31072
31073 fi
31074 rm -f core conftest.err conftest.$ac_objext \
31075     conftest$ac_exeext conftest.$ac_ext
31076   #
31077   if test "$tst_links_freeaddrinfo" = "yes"; then
31078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31079 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31080     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31081 /* end confdefs.h.  */
31082
31083       $curl_includes_ws2tcpip
31084       $curl_includes_sys_socket
31085       $curl_includes_netdb
31086
31087 _ACEOF
31088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31089   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31090
31091       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31092 $as_echo "yes" >&6; }
31093       tst_proto_freeaddrinfo="yes"
31094
31095 else
31096
31097       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31098 $as_echo "no" >&6; }
31099       tst_proto_freeaddrinfo="no"
31100
31101 fi
31102 rm -f conftest*
31103
31104   fi
31105   #
31106   if test "$tst_proto_freeaddrinfo" = "yes"; then
31107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31108 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31109     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31110 /* end confdefs.h.  */
31111
31112
31113         $curl_includes_ws2tcpip
31114         $curl_includes_sys_socket
31115         $curl_includes_netdb
31116
31117 int main (void)
31118 {
31119
31120         freeaddrinfo(0);
31121
31122  ;
31123  return 0;
31124 }
31125
31126 _ACEOF
31127 if ac_fn_c_try_compile "$LINENO"; then :
31128
31129       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31130 $as_echo "yes" >&6; }
31131       tst_compi_freeaddrinfo="yes"
31132
31133 else
31134
31135       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31136 $as_echo "no" >&6; }
31137       tst_compi_freeaddrinfo="no"
31138
31139 fi
31140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31141   fi
31142   #
31143   if test "$tst_compi_freeaddrinfo" = "yes"; then
31144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31145 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31146     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31147       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31148 $as_echo "yes" >&6; }
31149       tst_allow_freeaddrinfo="yes"
31150     else
31151       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31152 $as_echo "no" >&6; }
31153       tst_allow_freeaddrinfo="no"
31154     fi
31155   fi
31156   #
31157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31158 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31159   if test "$tst_links_freeaddrinfo" = "yes" &&
31160      test "$tst_proto_freeaddrinfo" = "yes" &&
31161      test "$tst_compi_freeaddrinfo" = "yes" &&
31162      test "$tst_allow_freeaddrinfo" = "yes"; then
31163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31164 $as_echo "yes" >&6; }
31165
31166 cat >>confdefs.h <<_ACEOF
31167 #define HAVE_FREEADDRINFO 1
31168 _ACEOF
31169
31170     curl_cv_func_freeaddrinfo="yes"
31171   else
31172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31173 $as_echo "no" >&6; }
31174     curl_cv_func_freeaddrinfo="no"
31175   fi
31176
31177
31178 curl_includes_ifaddrs="\
31179 /* includes start */
31180 #ifdef HAVE_SYS_TYPES_H
31181 #  include <sys/types.h>
31182 #endif
31183 #ifdef HAVE_SYS_SOCKET_H
31184 #  include <sys/socket.h>
31185 #endif
31186 #ifdef HAVE_NETINET_IN_H
31187 #  include <netinet/in.h>
31188 #endif
31189 #ifdef HAVE_IFADDRS_H
31190 #  include <ifaddrs.h>
31191 #endif
31192 /* includes end */"
31193   for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31194 do :
31195   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31196 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31197 "
31198 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31199   cat >>confdefs.h <<_ACEOF
31200 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31201 _ACEOF
31202
31203 fi
31204
31205 done
31206
31207
31208
31209     #
31210   tst_links_freeifaddrs="unknown"
31211   tst_proto_freeifaddrs="unknown"
31212   tst_compi_freeifaddrs="unknown"
31213   tst_allow_freeifaddrs="unknown"
31214   #
31215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31216 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31218 /* end confdefs.h.  */
31219
31220
31221 #define freeifaddrs innocuous_freeifaddrs
31222 #ifdef __STDC__
31223 # include <limits.h>
31224 #else
31225 # include <assert.h>
31226 #endif
31227 #undef freeifaddrs
31228 #ifdef __cplusplus
31229 extern "C"
31230 #endif
31231 char freeifaddrs ();
31232 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31233 choke me
31234 #endif
31235
31236 int main (void)
31237 {
31238 return freeifaddrs ();
31239  ;
31240  return 0;
31241 }
31242
31243 _ACEOF
31244 if ac_fn_c_try_link "$LINENO"; then :
31245
31246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31247 $as_echo "yes" >&6; }
31248     tst_links_freeifaddrs="yes"
31249
31250 else
31251
31252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31253 $as_echo "no" >&6; }
31254     tst_links_freeifaddrs="no"
31255
31256 fi
31257 rm -f core conftest.err conftest.$ac_objext \
31258     conftest$ac_exeext conftest.$ac_ext
31259   #
31260   if test "$tst_links_freeifaddrs" = "yes"; then
31261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31262 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31263     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31264 /* end confdefs.h.  */
31265
31266       $curl_includes_ifaddrs
31267
31268 _ACEOF
31269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31270   $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31271
31272       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31273 $as_echo "yes" >&6; }
31274       tst_proto_freeifaddrs="yes"
31275
31276 else
31277
31278       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31279 $as_echo "no" >&6; }
31280       tst_proto_freeifaddrs="no"
31281
31282 fi
31283 rm -f conftest*
31284
31285   fi
31286   #
31287   if test "$tst_proto_freeifaddrs" = "yes"; then
31288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31289 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31290     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31291 /* end confdefs.h.  */
31292
31293
31294         $curl_includes_ifaddrs
31295
31296 int main (void)
31297 {
31298
31299         freeifaddrs(0);
31300
31301  ;
31302  return 0;
31303 }
31304
31305 _ACEOF
31306 if ac_fn_c_try_compile "$LINENO"; then :
31307
31308       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31309 $as_echo "yes" >&6; }
31310       tst_compi_freeifaddrs="yes"
31311
31312 else
31313
31314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31315 $as_echo "no" >&6; }
31316       tst_compi_freeifaddrs="no"
31317
31318 fi
31319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31320   fi
31321   #
31322   if test "$tst_compi_freeifaddrs" = "yes"; then
31323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31324 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31325     if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31327 $as_echo "yes" >&6; }
31328       tst_allow_freeifaddrs="yes"
31329     else
31330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31331 $as_echo "no" >&6; }
31332       tst_allow_freeifaddrs="no"
31333     fi
31334   fi
31335   #
31336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31337 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
31338   if test "$tst_links_freeifaddrs" = "yes" &&
31339      test "$tst_proto_freeifaddrs" = "yes" &&
31340      test "$tst_compi_freeifaddrs" = "yes" &&
31341      test "$tst_allow_freeifaddrs" = "yes"; then
31342     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31343 $as_echo "yes" >&6; }
31344
31345 cat >>confdefs.h <<_ACEOF
31346 #define HAVE_FREEIFADDRS 1
31347 _ACEOF
31348
31349     curl_cv_func_freeifaddrs="yes"
31350   else
31351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31352 $as_echo "no" >&6; }
31353     curl_cv_func_freeifaddrs="no"
31354   fi
31355
31356
31357 curl_includes_sys_xattr="\
31358 /* includes start */
31359 #ifdef HAVE_SYS_TYPES_H
31360 #  include <sys/types.h>
31361 #endif
31362 #ifdef HAVE_SYS_XATTR_H
31363 #  include <sys/xattr.h>
31364 #endif
31365 /* includes end */"
31366   for ac_header in sys/types.h sys/xattr.h
31367 do :
31368   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31370 "
31371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31372   cat >>confdefs.h <<_ACEOF
31373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31374 _ACEOF
31375
31376 fi
31377
31378 done
31379
31380
31381
31382     #
31383   tst_links_fsetxattr="unknown"
31384   tst_proto_fsetxattr="unknown"
31385   tst_compi_fsetxattr="unknown"
31386   tst_allow_fsetxattr="unknown"
31387   tst_nargs_fsetxattr="unknown"
31388   #
31389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31390 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
31391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31392 /* end confdefs.h.  */
31393
31394
31395 #define fsetxattr innocuous_fsetxattr
31396 #ifdef __STDC__
31397 # include <limits.h>
31398 #else
31399 # include <assert.h>
31400 #endif
31401 #undef fsetxattr
31402 #ifdef __cplusplus
31403 extern "C"
31404 #endif
31405 char fsetxattr ();
31406 #if defined __stub_fsetxattr || defined __stub___fsetxattr
31407 choke me
31408 #endif
31409
31410 int main (void)
31411 {
31412 return fsetxattr ();
31413  ;
31414  return 0;
31415 }
31416
31417 _ACEOF
31418 if ac_fn_c_try_link "$LINENO"; then :
31419
31420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31421 $as_echo "yes" >&6; }
31422     tst_links_fsetxattr="yes"
31423
31424 else
31425
31426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31427 $as_echo "no" >&6; }
31428     tst_links_fsetxattr="no"
31429
31430 fi
31431 rm -f core conftest.err conftest.$ac_objext \
31432     conftest$ac_exeext conftest.$ac_ext
31433   #
31434   if test "$tst_links_fsetxattr" = "yes"; then
31435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
31436 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
31437     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31438 /* end confdefs.h.  */
31439
31440       $curl_includes_sys_xattr
31441
31442 _ACEOF
31443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31444   $EGREP "fsetxattr" >/dev/null 2>&1; then :
31445
31446       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31447 $as_echo "yes" >&6; }
31448       tst_proto_fsetxattr="yes"
31449
31450 else
31451
31452       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31453 $as_echo "no" >&6; }
31454       tst_proto_fsetxattr="no"
31455
31456 fi
31457 rm -f conftest*
31458
31459   fi
31460   #
31461   if test "$tst_proto_fsetxattr" = "yes"; then
31462     if test "$tst_nargs_fsetxattr" = "unknown"; then
31463       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
31464 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
31465       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31466 /* end confdefs.h.  */
31467
31468
31469           $curl_includes_sys_xattr
31470
31471 int main (void)
31472 {
31473
31474           if(0 != fsetxattr(0, 0, 0, 0, 0))
31475             return 1;
31476
31477  ;
31478  return 0;
31479 }
31480
31481 _ACEOF
31482 if ac_fn_c_try_compile "$LINENO"; then :
31483
31484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31485 $as_echo "yes" >&6; }
31486         tst_compi_fsetxattr="yes"
31487         tst_nargs_fsetxattr="5"
31488
31489 else
31490
31491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31492 $as_echo "no" >&6; }
31493         tst_compi_fsetxattr="no"
31494
31495 fi
31496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31497     fi
31498     if test "$tst_nargs_fsetxattr" = "unknown"; then
31499       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
31500 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
31501       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31502 /* end confdefs.h.  */
31503
31504
31505           $curl_includes_sys_xattr
31506
31507 int main (void)
31508 {
31509
31510           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
31511             return 1;
31512
31513  ;
31514  return 0;
31515 }
31516
31517 _ACEOF
31518 if ac_fn_c_try_compile "$LINENO"; then :
31519
31520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31521 $as_echo "yes" >&6; }
31522         tst_compi_fsetxattr="yes"
31523         tst_nargs_fsetxattr="6"
31524
31525 else
31526
31527         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31528 $as_echo "no" >&6; }
31529         tst_compi_fsetxattr="no"
31530
31531 fi
31532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31533     fi
31534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
31535 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
31536     if test "$tst_compi_fsetxattr" = "yes"; then
31537       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31538 $as_echo "yes" >&6; }
31539     else
31540       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31541 $as_echo "no" >&6; }
31542     fi
31543   fi
31544   #
31545   if test "$tst_compi_fsetxattr" = "yes"; then
31546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
31547 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
31548     if test "x$curl_disallow_fsetxattr" != "xyes"; then
31549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31550 $as_echo "yes" >&6; }
31551       tst_allow_fsetxattr="yes"
31552     else
31553       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31554 $as_echo "no" >&6; }
31555       tst_allow_fsetxattr="no"
31556     fi
31557   fi
31558   #
31559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
31560 $as_echo_n "checking if fsetxattr might be used... " >&6; }
31561   if test "$tst_links_fsetxattr" = "yes" &&
31562      test "$tst_proto_fsetxattr" = "yes" &&
31563      test "$tst_compi_fsetxattr" = "yes" &&
31564      test "$tst_allow_fsetxattr" = "yes"; then
31565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31566 $as_echo "yes" >&6; }
31567
31568 cat >>confdefs.h <<_ACEOF
31569 #define HAVE_FSETXATTR 1
31570 _ACEOF
31571
31572             #
31573     if test "$tst_nargs_fsetxattr" -eq "5"; then
31574
31575 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
31576
31577     elif test "$tst_nargs_fsetxattr" -eq "6"; then
31578
31579 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
31580
31581     fi
31582     #
31583     curl_cv_func_fsetxattr="yes"
31584   else
31585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31586 $as_echo "no" >&6; }
31587     curl_cv_func_fsetxattr="no"
31588   fi
31589
31590
31591     #
31592   tst_links_ftruncate="unknown"
31593   tst_proto_ftruncate="unknown"
31594   tst_compi_ftruncate="unknown"
31595   tst_allow_ftruncate="unknown"
31596   #
31597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
31598 $as_echo_n "checking if ftruncate can be linked... " >&6; }
31599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31600 /* end confdefs.h.  */
31601
31602
31603 #define ftruncate innocuous_ftruncate
31604 #ifdef __STDC__
31605 # include <limits.h>
31606 #else
31607 # include <assert.h>
31608 #endif
31609 #undef ftruncate
31610 #ifdef __cplusplus
31611 extern "C"
31612 #endif
31613 char ftruncate ();
31614 #if defined __stub_ftruncate || defined __stub___ftruncate
31615 choke me
31616 #endif
31617
31618 int main (void)
31619 {
31620 return ftruncate ();
31621  ;
31622  return 0;
31623 }
31624
31625 _ACEOF
31626 if ac_fn_c_try_link "$LINENO"; then :
31627
31628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31629 $as_echo "yes" >&6; }
31630     tst_links_ftruncate="yes"
31631
31632 else
31633
31634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31635 $as_echo "no" >&6; }
31636     tst_links_ftruncate="no"
31637
31638 fi
31639 rm -f core conftest.err conftest.$ac_objext \
31640     conftest$ac_exeext conftest.$ac_ext
31641   #
31642   if test "$tst_links_ftruncate" = "yes"; then
31643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
31644 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
31645     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31646 /* end confdefs.h.  */
31647
31648       $curl_includes_unistd
31649
31650 _ACEOF
31651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31652   $EGREP "ftruncate" >/dev/null 2>&1; then :
31653
31654       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31655 $as_echo "yes" >&6; }
31656       tst_proto_ftruncate="yes"
31657
31658 else
31659
31660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31661 $as_echo "no" >&6; }
31662       tst_proto_ftruncate="no"
31663
31664 fi
31665 rm -f conftest*
31666
31667   fi
31668   #
31669   if test "$tst_proto_ftruncate" = "yes"; then
31670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
31671 $as_echo_n "checking if ftruncate is compilable... " >&6; }
31672     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31673 /* end confdefs.h.  */
31674
31675
31676         $curl_includes_unistd
31677
31678 int main (void)
31679 {
31680
31681         if(0 != ftruncate(0, 0))
31682           return 1;
31683
31684  ;
31685  return 0;
31686 }
31687
31688 _ACEOF
31689 if ac_fn_c_try_compile "$LINENO"; then :
31690
31691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31692 $as_echo "yes" >&6; }
31693       tst_compi_ftruncate="yes"
31694
31695 else
31696
31697       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31698 $as_echo "no" >&6; }
31699       tst_compi_ftruncate="no"
31700
31701 fi
31702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31703   fi
31704   #
31705   if test "$tst_compi_ftruncate" = "yes"; then
31706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
31707 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
31708     if test "x$curl_disallow_ftruncate" != "xyes"; then
31709       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31710 $as_echo "yes" >&6; }
31711       tst_allow_ftruncate="yes"
31712     else
31713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31714 $as_echo "no" >&6; }
31715       tst_allow_ftruncate="no"
31716     fi
31717   fi
31718   #
31719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
31720 $as_echo_n "checking if ftruncate might be used... " >&6; }
31721   if test "$tst_links_ftruncate" = "yes" &&
31722      test "$tst_proto_ftruncate" = "yes" &&
31723      test "$tst_compi_ftruncate" = "yes" &&
31724      test "$tst_allow_ftruncate" = "yes"; then
31725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31726 $as_echo "yes" >&6; }
31727
31728 cat >>confdefs.h <<_ACEOF
31729 #define HAVE_FTRUNCATE 1
31730 _ACEOF
31731
31732     curl_cv_func_ftruncate="yes"
31733   else
31734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31735 $as_echo "no" >&6; }
31736     curl_cv_func_ftruncate="no"
31737   fi
31738
31739
31740 curl_includes_stdlib="\
31741 /* includes start */
31742 #ifdef HAVE_SYS_TYPES_H
31743 #  include <sys/types.h>
31744 #endif
31745 #ifdef HAVE_STDLIB_H
31746 #  include <stdlib.h>
31747 #endif
31748 /* includes end */"
31749   for ac_header in sys/types.h stdlib.h
31750 do :
31751   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31752 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
31753 "
31754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31755   cat >>confdefs.h <<_ACEOF
31756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31757 _ACEOF
31758
31759 fi
31760
31761 done
31762
31763
31764
31765               #
31766   tst_links_getaddrinfo="unknown"
31767   tst_proto_getaddrinfo="unknown"
31768   tst_compi_getaddrinfo="unknown"
31769   tst_works_getaddrinfo="unknown"
31770   tst_allow_getaddrinfo="unknown"
31771   tst_tsafe_getaddrinfo="unknown"
31772   #
31773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
31774 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
31775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31776 /* end confdefs.h.  */
31777
31778
31779       $curl_includes_ws2tcpip
31780       $curl_includes_sys_socket
31781       $curl_includes_netdb
31782
31783 int main (void)
31784 {
31785
31786       if(0 != getaddrinfo(0, 0, 0, 0))
31787         return 1;
31788
31789  ;
31790  return 0;
31791 }
31792
31793 _ACEOF
31794 if ac_fn_c_try_link "$LINENO"; then :
31795
31796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31797 $as_echo "yes" >&6; }
31798     tst_links_getaddrinfo="yes"
31799
31800 else
31801
31802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31803 $as_echo "no" >&6; }
31804     tst_links_getaddrinfo="no"
31805
31806 fi
31807 rm -f core conftest.err conftest.$ac_objext \
31808     conftest$ac_exeext conftest.$ac_ext
31809   #
31810   if test "$tst_links_getaddrinfo" = "yes"; then
31811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
31812 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
31813     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31814 /* end confdefs.h.  */
31815
31816       $curl_includes_ws2tcpip
31817       $curl_includes_sys_socket
31818       $curl_includes_netdb
31819
31820 _ACEOF
31821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31822   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
31823
31824       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31825 $as_echo "yes" >&6; }
31826       tst_proto_getaddrinfo="yes"
31827
31828 else
31829
31830       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31831 $as_echo "no" >&6; }
31832       tst_proto_getaddrinfo="no"
31833
31834 fi
31835 rm -f conftest*
31836
31837   fi
31838   #
31839   if test "$tst_proto_getaddrinfo" = "yes"; then
31840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
31841 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
31842     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31843 /* end confdefs.h.  */
31844
31845
31846         $curl_includes_ws2tcpip
31847         $curl_includes_sys_socket
31848         $curl_includes_netdb
31849
31850 int main (void)
31851 {
31852
31853         if(0 != getaddrinfo(0, 0, 0, 0))
31854           return 1;
31855
31856  ;
31857  return 0;
31858 }
31859
31860 _ACEOF
31861 if ac_fn_c_try_compile "$LINENO"; then :
31862
31863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31864 $as_echo "yes" >&6; }
31865       tst_compi_getaddrinfo="yes"
31866
31867 else
31868
31869       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31870 $as_echo "no" >&6; }
31871       tst_compi_getaddrinfo="no"
31872
31873 fi
31874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31875   fi
31876   #
31877     if test "x$cross_compiling" != "xyes" &&
31878     test "$tst_compi_getaddrinfo" = "yes"; then
31879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
31880 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
31881     if test "$cross_compiling" = yes; then :
31882   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31884 as_fn_error $? "cannot run test program while cross compiling
31885 See \`config.log' for more details" "$LINENO" 5; }
31886 else
31887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31888 /* end confdefs.h.  */
31889
31890
31891         $curl_includes_ws2tcpip
31892         $curl_includes_stdlib
31893         $curl_includes_string
31894         $curl_includes_sys_socket
31895         $curl_includes_netdb
31896
31897 int main (void)
31898 {
31899
31900         struct addrinfo hints;
31901         struct addrinfo *ai = 0;
31902         int error;
31903
31904         #ifdef HAVE_WINSOCK2_H
31905         WSADATA wsa;
31906         if (WSAStartup(MAKEWORD(2,2), &wsa))
31907                 exit(2);
31908         #endif
31909
31910         memset(&hints, 0, sizeof(hints));
31911         hints.ai_flags = AI_NUMERICHOST;
31912         hints.ai_family = AF_UNSPEC;
31913         hints.ai_socktype = SOCK_STREAM;
31914         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
31915         if(error || !ai)
31916           exit(1); /* fail */
31917         else
31918           exit(0);
31919
31920  ;
31921  return 0;
31922 }
31923
31924 _ACEOF
31925 if ac_fn_c_try_run "$LINENO"; then :
31926
31927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31928 $as_echo "yes" >&6; }
31929       tst_works_getaddrinfo="yes"
31930
31931 else
31932
31933       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31934 $as_echo "no" >&6; }
31935       tst_works_getaddrinfo="no"
31936
31937 fi
31938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31939   conftest.$ac_objext conftest.beam conftest.$ac_ext
31940 fi
31941
31942   fi
31943   #
31944   if test "$tst_compi_getaddrinfo" = "yes" &&
31945     test "$tst_works_getaddrinfo" != "no"; then
31946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
31947 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
31948     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
31949       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31950 $as_echo "yes" >&6; }
31951       tst_allow_getaddrinfo="yes"
31952     else
31953       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31954 $as_echo "no" >&6; }
31955       tst_allow_getaddrinfo="no"
31956     fi
31957   fi
31958   #
31959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
31960 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
31961   if test "$tst_links_getaddrinfo" = "yes" &&
31962      test "$tst_proto_getaddrinfo" = "yes" &&
31963      test "$tst_compi_getaddrinfo" = "yes" &&
31964      test "$tst_allow_getaddrinfo" = "yes" &&
31965      test "$tst_works_getaddrinfo" != "no"; then
31966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31967 $as_echo "yes" >&6; }
31968
31969 cat >>confdefs.h <<_ACEOF
31970 #define HAVE_GETADDRINFO 1
31971 _ACEOF
31972
31973     curl_cv_func_getaddrinfo="yes"
31974   else
31975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31976 $as_echo "no" >&6; }
31977     curl_cv_func_getaddrinfo="no"
31978     curl_cv_func_getaddrinfo_threadsafe="no"
31979   fi
31980   #
31981   if test "$curl_cv_func_getaddrinfo" = "yes"; then
31982     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
31983 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
31984     case $host_os in
31985       aix[1234].* | aix5.[01].*)
31986                 tst_tsafe_getaddrinfo="no"
31987         ;;
31988       aix*)
31989                 tst_tsafe_getaddrinfo="yes"
31990         ;;
31991       darwin[12345].*)
31992                 tst_tsafe_getaddrinfo="no"
31993         ;;
31994       darwin*)
31995                 tst_tsafe_getaddrinfo="yes"
31996         ;;
31997       freebsd[1234].* | freebsd5.[1234]*)
31998                 tst_tsafe_getaddrinfo="no"
31999         ;;
32000       freebsd*)
32001                 tst_tsafe_getaddrinfo="yes"
32002         ;;
32003       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32004                 tst_tsafe_getaddrinfo="no"
32005         ;;
32006       hpux*)
32007                 tst_tsafe_getaddrinfo="yes"
32008         ;;
32009       netbsd[123].*)
32010                 tst_tsafe_getaddrinfo="no"
32011         ;;
32012       netbsd*)
32013                 tst_tsafe_getaddrinfo="yes"
32014         ;;
32015       *bsd*)
32016                 tst_tsafe_getaddrinfo="no"
32017         ;;
32018       solaris2*)
32019                 tst_tsafe_getaddrinfo="yes"
32020         ;;
32021     esac
32022     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32023        test "$curl_cv_native_windows" = "yes"; then
32024       tst_tsafe_getaddrinfo="yes"
32025     fi
32026     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32027
32028
32029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32030 /* end confdefs.h.  */
32031
32032
32033         $curl_includes_sys_socket
32034         $curl_includes_netdb
32035
32036 int main (void)
32037 {
32038 #ifdef h_errno
32039   return 0;
32040 #else
32041   force compilation error
32042 #endif
32043 }
32044
32045
32046 _ACEOF
32047 if ac_fn_c_try_compile "$LINENO"; then :
32048
32049     tst_symbol_defined="yes"
32050
32051 else
32052
32053     tst_symbol_defined="no"
32054
32055 fi
32056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32057   if test "$tst_symbol_defined" = "yes"; then
32058     curl_cv_have_def_h_errno=yes
32059
32060   else
32061     curl_cv_have_def_h_errno=no
32062
32063   fi
32064
32065       if test "$curl_cv_have_def_h_errno" = "yes"; then
32066         tst_h_errno_macro="yes"
32067       else
32068         tst_h_errno_macro="no"
32069       fi
32070       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32071 /* end confdefs.h.  */
32072
32073
32074           $curl_includes_sys_socket
32075           $curl_includes_netdb
32076
32077 int main (void)
32078 {
32079
32080           h_errno = 2;
32081           if(0 != h_errno)
32082             return 1;
32083
32084  ;
32085  return 0;
32086 }
32087
32088 _ACEOF
32089 if ac_fn_c_try_compile "$LINENO"; then :
32090
32091         tst_h_errno_modifiable_lvalue="yes"
32092
32093 else
32094
32095         tst_h_errno_modifiable_lvalue="no"
32096
32097 fi
32098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32099       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32100 /* end confdefs.h.  */
32101
32102
32103
32104 int main (void)
32105 {
32106
32107 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32108           return 0;
32109 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32110           return 0;
32111 #else
32112           force compilation error
32113 #endif
32114
32115  ;
32116  return 0;
32117 }
32118
32119 _ACEOF
32120 if ac_fn_c_try_compile "$LINENO"; then :
32121
32122         tst_h_errno_sbs_issue_7="yes"
32123
32124 else
32125
32126         tst_h_errno_sbs_issue_7="no"
32127
32128 fi
32129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32130       if test "$tst_h_errno_macro" = "no" &&
32131          test "$tst_h_errno_modifiable_lvalue" = "no" &&
32132          test "$tst_h_errno_sbs_issue_7" = "no"; then
32133         tst_tsafe_getaddrinfo="no"
32134       else
32135         tst_tsafe_getaddrinfo="yes"
32136       fi
32137     fi
32138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32139 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
32140     if test "$tst_tsafe_getaddrinfo" = "yes"; then
32141
32142 cat >>confdefs.h <<_ACEOF
32143 #define HAVE_GETADDRINFO_THREADSAFE 1
32144 _ACEOF
32145
32146       curl_cv_func_getaddrinfo_threadsafe="yes"
32147     else
32148       curl_cv_func_getaddrinfo_threadsafe="no"
32149     fi
32150   fi
32151
32152
32153       #
32154   tst_links_gai_strerror="unknown"
32155   tst_proto_gai_strerror="unknown"
32156   tst_compi_gai_strerror="unknown"
32157   tst_allow_gai_strerror="unknown"
32158   #
32159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32160 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
32161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32162 /* end confdefs.h.  */
32163
32164
32165       $curl_includes_winsock2
32166       $curl_includes_netdb
32167
32168 int main (void)
32169 {
32170
32171       if(0 != gai_strerror(0))
32172         return 1;
32173
32174  ;
32175  return 0;
32176 }
32177
32178 _ACEOF
32179 if ac_fn_c_try_link "$LINENO"; then :
32180
32181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32182 $as_echo "yes" >&6; }
32183     tst_links_gai_strerror="yes"
32184
32185 else
32186
32187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32188 $as_echo "no" >&6; }
32189     tst_links_gai_strerror="no"
32190
32191 fi
32192 rm -f core conftest.err conftest.$ac_objext \
32193     conftest$ac_exeext conftest.$ac_ext
32194   #
32195   if test "$tst_links_gai_strerror" = "yes"; then
32196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32197 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32198     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32199 /* end confdefs.h.  */
32200
32201       $curl_includes_winsock2
32202       $curl_includes_netdb
32203
32204 _ACEOF
32205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32206   $EGREP "gai_strerror" >/dev/null 2>&1; then :
32207
32208       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32209 $as_echo "yes" >&6; }
32210       tst_proto_gai_strerror="yes"
32211
32212 else
32213
32214       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32215 $as_echo "no" >&6; }
32216       tst_proto_gai_strerror="no"
32217
32218 fi
32219 rm -f conftest*
32220
32221   fi
32222   #
32223   if test "$tst_proto_gai_strerror" = "yes"; then
32224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32225 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
32226     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32227 /* end confdefs.h.  */
32228
32229
32230         $curl_includes_winsock2
32231         $curl_includes_netdb
32232
32233 int main (void)
32234 {
32235
32236         if(0 != gai_strerror(0))
32237           return 1;
32238
32239  ;
32240  return 0;
32241 }
32242
32243 _ACEOF
32244 if ac_fn_c_try_compile "$LINENO"; then :
32245
32246       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32247 $as_echo "yes" >&6; }
32248       tst_compi_gai_strerror="yes"
32249
32250 else
32251
32252       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32253 $as_echo "no" >&6; }
32254       tst_compi_gai_strerror="no"
32255
32256 fi
32257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32258   fi
32259   #
32260   if test "$tst_compi_gai_strerror" = "yes"; then
32261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32262 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32263     if test "x$curl_disallow_gai_strerror" != "xyes"; then
32264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32265 $as_echo "yes" >&6; }
32266       tst_allow_gai_strerror="yes"
32267     else
32268       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32269 $as_echo "no" >&6; }
32270       tst_allow_gai_strerror="no"
32271     fi
32272   fi
32273   #
32274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32275 $as_echo_n "checking if gai_strerror might be used... " >&6; }
32276   if test "$tst_links_gai_strerror" = "yes" &&
32277      test "$tst_proto_gai_strerror" = "yes" &&
32278      test "$tst_compi_gai_strerror" = "yes" &&
32279      test "$tst_allow_gai_strerror" = "yes"; then
32280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32281 $as_echo "yes" >&6; }
32282
32283 cat >>confdefs.h <<_ACEOF
32284 #define HAVE_GAI_STRERROR 1
32285 _ACEOF
32286
32287     curl_cv_func_gai_strerror="yes"
32288   else
32289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32290 $as_echo "no" >&6; }
32291     curl_cv_func_gai_strerror="no"
32292   fi
32293
32294
32295       #
32296   tst_links_gethostbyaddr="unknown"
32297   tst_proto_gethostbyaddr="unknown"
32298   tst_compi_gethostbyaddr="unknown"
32299   tst_allow_gethostbyaddr="unknown"
32300   #
32301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32302 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32304 /* end confdefs.h.  */
32305
32306
32307       $curl_includes_winsock2
32308       $curl_includes_netdb
32309
32310 int main (void)
32311 {
32312
32313       if(0 != gethostbyaddr(0, 0, 0))
32314         return 1;
32315
32316  ;
32317  return 0;
32318 }
32319
32320 _ACEOF
32321 if ac_fn_c_try_link "$LINENO"; then :
32322
32323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32324 $as_echo "yes" >&6; }
32325     tst_links_gethostbyaddr="yes"
32326
32327 else
32328
32329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32330 $as_echo "no" >&6; }
32331     tst_links_gethostbyaddr="no"
32332
32333 fi
32334 rm -f core conftest.err conftest.$ac_objext \
32335     conftest$ac_exeext conftest.$ac_ext
32336   #
32337   if test "$tst_links_gethostbyaddr" = "yes"; then
32338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32339 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32340     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32341 /* end confdefs.h.  */
32342
32343       $curl_includes_winsock2
32344       $curl_includes_netdb
32345
32346 _ACEOF
32347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32348   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32349
32350       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32351 $as_echo "yes" >&6; }
32352       tst_proto_gethostbyaddr="yes"
32353
32354 else
32355
32356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32357 $as_echo "no" >&6; }
32358       tst_proto_gethostbyaddr="no"
32359
32360 fi
32361 rm -f conftest*
32362
32363   fi
32364   #
32365   if test "$tst_proto_gethostbyaddr" = "yes"; then
32366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32367 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32368     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32369 /* end confdefs.h.  */
32370
32371
32372         $curl_includes_winsock2
32373         $curl_includes_netdb
32374
32375 int main (void)
32376 {
32377
32378         if(0 != gethostbyaddr(0, 0, 0))
32379           return 1;
32380
32381  ;
32382  return 0;
32383 }
32384
32385 _ACEOF
32386 if ac_fn_c_try_compile "$LINENO"; then :
32387
32388       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32389 $as_echo "yes" >&6; }
32390       tst_compi_gethostbyaddr="yes"
32391
32392 else
32393
32394       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32395 $as_echo "no" >&6; }
32396       tst_compi_gethostbyaddr="no"
32397
32398 fi
32399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32400   fi
32401   #
32402   if test "$tst_compi_gethostbyaddr" = "yes"; then
32403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32404 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32405     if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32406       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32407 $as_echo "yes" >&6; }
32408       tst_allow_gethostbyaddr="yes"
32409     else
32410       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32411 $as_echo "no" >&6; }
32412       tst_allow_gethostbyaddr="no"
32413     fi
32414   fi
32415   #
32416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
32417 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
32418   if test "$tst_links_gethostbyaddr" = "yes" &&
32419      test "$tst_proto_gethostbyaddr" = "yes" &&
32420      test "$tst_compi_gethostbyaddr" = "yes" &&
32421      test "$tst_allow_gethostbyaddr" = "yes"; then
32422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32423 $as_echo "yes" >&6; }
32424
32425 cat >>confdefs.h <<_ACEOF
32426 #define HAVE_GETHOSTBYADDR 1
32427 _ACEOF
32428
32429     curl_cv_func_gethostbyaddr="yes"
32430   else
32431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32432 $as_echo "no" >&6; }
32433     curl_cv_func_gethostbyaddr="no"
32434   fi
32435
32436
32437     #
32438   tst_links_gethostbyaddr_r="unknown"
32439   tst_proto_gethostbyaddr_r="unknown"
32440   tst_compi_gethostbyaddr_r="unknown"
32441   tst_allow_gethostbyaddr_r="unknown"
32442   tst_nargs_gethostbyaddr_r="unknown"
32443   #
32444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
32445 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
32446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32447 /* end confdefs.h.  */
32448
32449
32450 #define gethostbyaddr_r innocuous_gethostbyaddr_r
32451 #ifdef __STDC__
32452 # include <limits.h>
32453 #else
32454 # include <assert.h>
32455 #endif
32456 #undef gethostbyaddr_r
32457 #ifdef __cplusplus
32458 extern "C"
32459 #endif
32460 char gethostbyaddr_r ();
32461 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
32462 choke me
32463 #endif
32464
32465 int main (void)
32466 {
32467 return gethostbyaddr_r ();
32468  ;
32469  return 0;
32470 }
32471
32472 _ACEOF
32473 if ac_fn_c_try_link "$LINENO"; then :
32474
32475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32476 $as_echo "yes" >&6; }
32477     tst_links_gethostbyaddr_r="yes"
32478
32479 else
32480
32481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32482 $as_echo "no" >&6; }
32483     tst_links_gethostbyaddr_r="no"
32484
32485 fi
32486 rm -f core conftest.err conftest.$ac_objext \
32487     conftest$ac_exeext conftest.$ac_ext
32488   #
32489   if test "$tst_links_gethostbyaddr_r" = "yes"; then
32490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
32491 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
32492     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32493 /* end confdefs.h.  */
32494
32495       $curl_includes_netdb
32496
32497 _ACEOF
32498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32499   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
32500
32501       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32502 $as_echo "yes" >&6; }
32503       tst_proto_gethostbyaddr_r="yes"
32504
32505 else
32506
32507       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32508 $as_echo "no" >&6; }
32509       tst_proto_gethostbyaddr_r="no"
32510
32511 fi
32512 rm -f conftest*
32513
32514   fi
32515   #
32516   if test "$tst_proto_gethostbyaddr_r" = "yes"; then
32517     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32518       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
32519 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
32520       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32521 /* end confdefs.h.  */
32522
32523
32524           $curl_includes_netdb
32525
32526 int main (void)
32527 {
32528
32529           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
32530             return 1;
32531
32532  ;
32533  return 0;
32534 }
32535
32536 _ACEOF
32537 if ac_fn_c_try_compile "$LINENO"; then :
32538
32539         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32540 $as_echo "yes" >&6; }
32541         tst_compi_gethostbyaddr_r="yes"
32542         tst_nargs_gethostbyaddr_r="5"
32543
32544 else
32545
32546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32547 $as_echo "no" >&6; }
32548         tst_compi_gethostbyaddr_r="no"
32549
32550 fi
32551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32552     fi
32553     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32554       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
32555 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
32556       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32557 /* end confdefs.h.  */
32558
32559
32560           $curl_includes_netdb
32561
32562 int main (void)
32563 {
32564
32565           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
32566             return 1;
32567
32568  ;
32569  return 0;
32570 }
32571
32572 _ACEOF
32573 if ac_fn_c_try_compile "$LINENO"; then :
32574
32575         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32576 $as_echo "yes" >&6; }
32577         tst_compi_gethostbyaddr_r="yes"
32578         tst_nargs_gethostbyaddr_r="7"
32579
32580 else
32581
32582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32583 $as_echo "no" >&6; }
32584         tst_compi_gethostbyaddr_r="no"
32585
32586 fi
32587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32588     fi
32589     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32590       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
32591 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
32592       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32593 /* end confdefs.h.  */
32594
32595
32596           $curl_includes_netdb
32597
32598 int main (void)
32599 {
32600
32601           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
32602             return 1;
32603
32604  ;
32605  return 0;
32606 }
32607
32608 _ACEOF
32609 if ac_fn_c_try_compile "$LINENO"; then :
32610
32611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32612 $as_echo "yes" >&6; }
32613         tst_compi_gethostbyaddr_r="yes"
32614         tst_nargs_gethostbyaddr_r="8"
32615
32616 else
32617
32618         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32619 $as_echo "no" >&6; }
32620         tst_compi_gethostbyaddr_r="no"
32621
32622 fi
32623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32624     fi
32625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
32626 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
32627     if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32628       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32629 $as_echo "yes" >&6; }
32630     else
32631       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32632 $as_echo "no" >&6; }
32633     fi
32634   fi
32635   #
32636   if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
32638 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
32639     if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
32640       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32641 $as_echo "yes" >&6; }
32642       tst_allow_gethostbyaddr_r="yes"
32643     else
32644       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32645 $as_echo "no" >&6; }
32646       tst_allow_gethostbyaddr_r="no"
32647     fi
32648   fi
32649   #
32650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
32651 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
32652   if test "$tst_links_gethostbyaddr_r" = "yes" &&
32653      test "$tst_proto_gethostbyaddr_r" = "yes" &&
32654      test "$tst_compi_gethostbyaddr_r" = "yes" &&
32655      test "$tst_allow_gethostbyaddr_r" = "yes"; then
32656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32657 $as_echo "yes" >&6; }
32658
32659 cat >>confdefs.h <<_ACEOF
32660 #define HAVE_GETHOSTBYADDR_R 1
32661 _ACEOF
32662
32663             #
32664     if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
32665
32666 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
32667
32668     elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
32669
32670 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
32671
32672     elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
32673
32674 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
32675
32676     fi
32677     #
32678     curl_cv_func_gethostbyaddr_r="yes"
32679   else
32680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32681 $as_echo "no" >&6; }
32682     curl_cv_func_gethostbyaddr_r="no"
32683   fi
32684
32685
32686       #
32687   tst_links_gethostbyname="unknown"
32688   tst_proto_gethostbyname="unknown"
32689   tst_compi_gethostbyname="unknown"
32690   tst_allow_gethostbyname="unknown"
32691   #
32692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
32693 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
32694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32695 /* end confdefs.h.  */
32696
32697
32698       $curl_includes_winsock2
32699       $curl_includes_netdb
32700
32701 int main (void)
32702 {
32703
32704       if(0 != gethostbyname(0))
32705         return 1;
32706
32707  ;
32708  return 0;
32709 }
32710
32711 _ACEOF
32712 if ac_fn_c_try_link "$LINENO"; then :
32713
32714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32715 $as_echo "yes" >&6; }
32716     tst_links_gethostbyname="yes"
32717
32718 else
32719
32720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32721 $as_echo "no" >&6; }
32722     tst_links_gethostbyname="no"
32723
32724 fi
32725 rm -f core conftest.err conftest.$ac_objext \
32726     conftest$ac_exeext conftest.$ac_ext
32727   #
32728   if test "$tst_links_gethostbyname" = "yes"; then
32729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
32730 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
32731     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32732 /* end confdefs.h.  */
32733
32734       $curl_includes_winsock2
32735       $curl_includes_netdb
32736
32737 _ACEOF
32738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32739   $EGREP "gethostbyname" >/dev/null 2>&1; then :
32740
32741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32742 $as_echo "yes" >&6; }
32743       tst_proto_gethostbyname="yes"
32744
32745 else
32746
32747       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32748 $as_echo "no" >&6; }
32749       tst_proto_gethostbyname="no"
32750
32751 fi
32752 rm -f conftest*
32753
32754   fi
32755   #
32756   if test "$tst_proto_gethostbyname" = "yes"; then
32757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
32758 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
32759     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32760 /* end confdefs.h.  */
32761
32762
32763         $curl_includes_winsock2
32764         $curl_includes_netdb
32765
32766 int main (void)
32767 {
32768
32769         if(0 != gethostbyname(0))
32770           return 1;
32771
32772  ;
32773  return 0;
32774 }
32775
32776 _ACEOF
32777 if ac_fn_c_try_compile "$LINENO"; then :
32778
32779       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32780 $as_echo "yes" >&6; }
32781       tst_compi_gethostbyname="yes"
32782
32783 else
32784
32785       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32786 $as_echo "no" >&6; }
32787       tst_compi_gethostbyname="no"
32788
32789 fi
32790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32791   fi
32792   #
32793   if test "$tst_compi_gethostbyname" = "yes"; then
32794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
32795 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
32796     if test "x$curl_disallow_gethostbyname" != "xyes"; then
32797       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32798 $as_echo "yes" >&6; }
32799       tst_allow_gethostbyname="yes"
32800     else
32801       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32802 $as_echo "no" >&6; }
32803       tst_allow_gethostbyname="no"
32804     fi
32805   fi
32806   #
32807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
32808 $as_echo_n "checking if gethostbyname might be used... " >&6; }
32809   if test "$tst_links_gethostbyname" = "yes" &&
32810      test "$tst_proto_gethostbyname" = "yes" &&
32811      test "$tst_compi_gethostbyname" = "yes" &&
32812      test "$tst_allow_gethostbyname" = "yes"; then
32813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32814 $as_echo "yes" >&6; }
32815
32816 cat >>confdefs.h <<_ACEOF
32817 #define HAVE_GETHOSTBYNAME 1
32818 _ACEOF
32819
32820     curl_cv_func_gethostbyname="yes"
32821   else
32822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32823 $as_echo "no" >&6; }
32824     curl_cv_func_gethostbyname="no"
32825   fi
32826
32827
32828     #
32829   tst_links_gethostbyname_r="unknown"
32830   tst_proto_gethostbyname_r="unknown"
32831   tst_compi_gethostbyname_r="unknown"
32832   tst_allow_gethostbyname_r="unknown"
32833   tst_nargs_gethostbyname_r="unknown"
32834   #
32835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
32836 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
32837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32838 /* end confdefs.h.  */
32839
32840
32841 #define gethostbyname_r innocuous_gethostbyname_r
32842 #ifdef __STDC__
32843 # include <limits.h>
32844 #else
32845 # include <assert.h>
32846 #endif
32847 #undef gethostbyname_r
32848 #ifdef __cplusplus
32849 extern "C"
32850 #endif
32851 char gethostbyname_r ();
32852 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
32853 choke me
32854 #endif
32855
32856 int main (void)
32857 {
32858 return gethostbyname_r ();
32859  ;
32860  return 0;
32861 }
32862
32863 _ACEOF
32864 if ac_fn_c_try_link "$LINENO"; then :
32865
32866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32867 $as_echo "yes" >&6; }
32868     tst_links_gethostbyname_r="yes"
32869
32870 else
32871
32872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32873 $as_echo "no" >&6; }
32874     tst_links_gethostbyname_r="no"
32875
32876 fi
32877 rm -f core conftest.err conftest.$ac_objext \
32878     conftest$ac_exeext conftest.$ac_ext
32879   #
32880   if test "$tst_links_gethostbyname_r" = "yes"; then
32881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
32882 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
32883     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32884 /* end confdefs.h.  */
32885
32886       $curl_includes_netdb
32887
32888 _ACEOF
32889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32890   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
32891
32892       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32893 $as_echo "yes" >&6; }
32894       tst_proto_gethostbyname_r="yes"
32895
32896 else
32897
32898       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32899 $as_echo "no" >&6; }
32900       tst_proto_gethostbyname_r="no"
32901
32902 fi
32903 rm -f conftest*
32904
32905   fi
32906   #
32907   if test "$tst_proto_gethostbyname_r" = "yes"; then
32908     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32909       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
32910 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
32911       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32912 /* end confdefs.h.  */
32913
32914
32915           $curl_includes_netdb
32916
32917 int main (void)
32918 {
32919
32920           if(0 != gethostbyname_r(0, 0, 0))
32921             return 1;
32922
32923  ;
32924  return 0;
32925 }
32926
32927 _ACEOF
32928 if ac_fn_c_try_compile "$LINENO"; then :
32929
32930         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32931 $as_echo "yes" >&6; }
32932         tst_compi_gethostbyname_r="yes"
32933         tst_nargs_gethostbyname_r="3"
32934
32935 else
32936
32937         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32938 $as_echo "no" >&6; }
32939         tst_compi_gethostbyname_r="no"
32940
32941 fi
32942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32943     fi
32944     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32945       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
32946 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
32947       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32948 /* end confdefs.h.  */
32949
32950
32951           $curl_includes_netdb
32952
32953 int main (void)
32954 {
32955
32956           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
32957             return 1;
32958
32959  ;
32960  return 0;
32961 }
32962
32963 _ACEOF
32964 if ac_fn_c_try_compile "$LINENO"; then :
32965
32966         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32967 $as_echo "yes" >&6; }
32968         tst_compi_gethostbyname_r="yes"
32969         tst_nargs_gethostbyname_r="5"
32970
32971 else
32972
32973         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32974 $as_echo "no" >&6; }
32975         tst_compi_gethostbyname_r="no"
32976
32977 fi
32978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32979     fi
32980     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32981       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
32982 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
32983       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32984 /* end confdefs.h.  */
32985
32986
32987           $curl_includes_netdb
32988
32989 int main (void)
32990 {
32991
32992           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
32993             return 1;
32994
32995  ;
32996  return 0;
32997 }
32998
32999 _ACEOF
33000 if ac_fn_c_try_compile "$LINENO"; then :
33001
33002         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33003 $as_echo "yes" >&6; }
33004         tst_compi_gethostbyname_r="yes"
33005         tst_nargs_gethostbyname_r="6"
33006
33007 else
33008
33009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33010 $as_echo "no" >&6; }
33011         tst_compi_gethostbyname_r="no"
33012
33013 fi
33014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33015     fi
33016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33017 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33018     if test "$tst_compi_gethostbyname_r" = "yes"; then
33019       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33020 $as_echo "yes" >&6; }
33021     else
33022       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33023 $as_echo "no" >&6; }
33024     fi
33025   fi
33026   #
33027   if test "$tst_compi_gethostbyname_r" = "yes"; then
33028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33029 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33030     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33031       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33032 $as_echo "yes" >&6; }
33033       tst_allow_gethostbyname_r="yes"
33034     else
33035       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33036 $as_echo "no" >&6; }
33037       tst_allow_gethostbyname_r="no"
33038     fi
33039   fi
33040   #
33041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33042 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33043   if test "$tst_links_gethostbyname_r" = "yes" &&
33044      test "$tst_proto_gethostbyname_r" = "yes" &&
33045      test "$tst_compi_gethostbyname_r" = "yes" &&
33046      test "$tst_allow_gethostbyname_r" = "yes"; then
33047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33048 $as_echo "yes" >&6; }
33049
33050 cat >>confdefs.h <<_ACEOF
33051 #define HAVE_GETHOSTBYNAME_R 1
33052 _ACEOF
33053
33054             #
33055     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33056
33057 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33058
33059     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33060
33061 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33062
33063     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33064
33065 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33066
33067     fi
33068     #
33069     curl_cv_func_gethostbyname_r="yes"
33070   else
33071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33072 $as_echo "no" >&6; }
33073     curl_cv_func_gethostbyname_r="no"
33074   fi
33075
33076
33077         #
33078   tst_links_gethostname="unknown"
33079   tst_proto_gethostname="unknown"
33080   tst_compi_gethostname="unknown"
33081   tst_allow_gethostname="unknown"
33082   #
33083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33084 $as_echo_n "checking if gethostname can be linked... " >&6; }
33085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33086 /* end confdefs.h.  */
33087
33088
33089       $curl_includes_winsock2
33090       $curl_includes_unistd
33091
33092 int main (void)
33093 {
33094
33095       if(0 != gethostname(0, 0))
33096         return 1;
33097
33098  ;
33099  return 0;
33100 }
33101
33102 _ACEOF
33103 if ac_fn_c_try_link "$LINENO"; then :
33104
33105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33106 $as_echo "yes" >&6; }
33107     tst_links_gethostname="yes"
33108
33109 else
33110
33111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33112 $as_echo "no" >&6; }
33113     tst_links_gethostname="no"
33114
33115 fi
33116 rm -f core conftest.err conftest.$ac_objext \
33117     conftest$ac_exeext conftest.$ac_ext
33118   #
33119   if test "$tst_links_gethostname" = "yes"; then
33120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33121 $as_echo_n "checking if gethostname is prototyped... " >&6; }
33122     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33123 /* end confdefs.h.  */
33124
33125       $curl_includes_winsock2
33126       $curl_includes_unistd
33127
33128 _ACEOF
33129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33130   $EGREP "gethostname" >/dev/null 2>&1; then :
33131
33132       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33133 $as_echo "yes" >&6; }
33134       tst_proto_gethostname="yes"
33135
33136 else
33137
33138       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33139 $as_echo "no" >&6; }
33140       tst_proto_gethostname="no"
33141
33142 fi
33143 rm -f conftest*
33144
33145   fi
33146   #
33147   if test "$tst_proto_gethostname" = "yes"; then
33148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33149 $as_echo_n "checking if gethostname is compilable... " >&6; }
33150     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33151 /* end confdefs.h.  */
33152
33153
33154         $curl_includes_winsock2
33155         $curl_includes_unistd
33156
33157 int main (void)
33158 {
33159
33160         if(0 != gethostname(0, 0))
33161           return 1;
33162
33163  ;
33164  return 0;
33165 }
33166
33167 _ACEOF
33168 if ac_fn_c_try_compile "$LINENO"; then :
33169
33170       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33171 $as_echo "yes" >&6; }
33172       tst_compi_gethostname="yes"
33173
33174 else
33175
33176       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33177 $as_echo "no" >&6; }
33178       tst_compi_gethostname="no"
33179
33180 fi
33181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33182   fi
33183   #
33184   if test "$tst_compi_gethostname" = "yes"; then
33185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33186 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33187     tst_gethostname_type_arg2="unknown"
33188     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33189       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33190         if test "$tst_gethostname_type_arg2" = "unknown"; then
33191           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33192 /* end confdefs.h.  */
33193
33194
33195               $curl_includes_winsock2
33196               $curl_includes_unistd
33197               $curl_preprocess_callconv
33198               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33199
33200 int main (void)
33201 {
33202
33203               if(0 != gethostname(0, 0))
33204                 return 1;
33205
33206  ;
33207  return 0;
33208 }
33209
33210 _ACEOF
33211 if ac_fn_c_try_compile "$LINENO"; then :
33212
33213             tst_gethostname_type_arg2="$tst_arg2"
33214
33215 fi
33216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33217         fi
33218       done
33219     done
33220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33221 $as_echo "$tst_gethostname_type_arg2" >&6; }
33222     if test "$tst_gethostname_type_arg2" != "unknown"; then
33223
33224 cat >>confdefs.h <<_ACEOF
33225 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33226 _ACEOF
33227
33228     fi
33229   fi
33230   #
33231   if test "$tst_compi_gethostname" = "yes"; then
33232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33233 $as_echo_n "checking if gethostname usage allowed... " >&6; }
33234     if test "x$curl_disallow_gethostname" != "xyes"; then
33235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33236 $as_echo "yes" >&6; }
33237       tst_allow_gethostname="yes"
33238     else
33239       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33240 $as_echo "no" >&6; }
33241       tst_allow_gethostname="no"
33242     fi
33243   fi
33244   #
33245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33246 $as_echo_n "checking if gethostname might be used... " >&6; }
33247   if test "$tst_links_gethostname" = "yes" &&
33248      test "$tst_proto_gethostname" = "yes" &&
33249      test "$tst_compi_gethostname" = "yes" &&
33250      test "$tst_allow_gethostname" = "yes"; then
33251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33252 $as_echo "yes" >&6; }
33253
33254 cat >>confdefs.h <<_ACEOF
33255 #define HAVE_GETHOSTNAME 1
33256 _ACEOF
33257
33258     curl_cv_func_gethostname="yes"
33259   else
33260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33261 $as_echo "no" >&6; }
33262     curl_cv_func_gethostname="no"
33263   fi
33264
33265
33266       #
33267   tst_links_getifaddrs="unknown"
33268   tst_proto_getifaddrs="unknown"
33269   tst_compi_getifaddrs="unknown"
33270   tst_works_getifaddrs="unknown"
33271   tst_allow_getifaddrs="unknown"
33272   #
33273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33274 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
33275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33276 /* end confdefs.h.  */
33277
33278
33279 #define getifaddrs innocuous_getifaddrs
33280 #ifdef __STDC__
33281 # include <limits.h>
33282 #else
33283 # include <assert.h>
33284 #endif
33285 #undef getifaddrs
33286 #ifdef __cplusplus
33287 extern "C"
33288 #endif
33289 char getifaddrs ();
33290 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33291 choke me
33292 #endif
33293
33294 int main (void)
33295 {
33296 return getifaddrs ();
33297  ;
33298  return 0;
33299 }
33300
33301 _ACEOF
33302 if ac_fn_c_try_link "$LINENO"; then :
33303
33304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33305 $as_echo "yes" >&6; }
33306     tst_links_getifaddrs="yes"
33307
33308 else
33309
33310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33311 $as_echo "no" >&6; }
33312     tst_links_getifaddrs="no"
33313
33314 fi
33315 rm -f core conftest.err conftest.$ac_objext \
33316     conftest$ac_exeext conftest.$ac_ext
33317   #
33318   if test "$tst_links_getifaddrs" = "yes"; then
33319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33320 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33321     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33322 /* end confdefs.h.  */
33323
33324       $curl_includes_ifaddrs
33325
33326 _ACEOF
33327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33328   $EGREP "getifaddrs" >/dev/null 2>&1; then :
33329
33330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33331 $as_echo "yes" >&6; }
33332       tst_proto_getifaddrs="yes"
33333
33334 else
33335
33336       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33337 $as_echo "no" >&6; }
33338       tst_proto_getifaddrs="no"
33339
33340 fi
33341 rm -f conftest*
33342
33343   fi
33344   #
33345   if test "$tst_proto_getifaddrs" = "yes"; then
33346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33347 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
33348     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33349 /* end confdefs.h.  */
33350
33351
33352         $curl_includes_ifaddrs
33353
33354 int main (void)
33355 {
33356
33357         if(0 != getifaddrs(0))
33358           return 1;
33359
33360  ;
33361  return 0;
33362 }
33363
33364 _ACEOF
33365 if ac_fn_c_try_compile "$LINENO"; then :
33366
33367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33368 $as_echo "yes" >&6; }
33369       tst_compi_getifaddrs="yes"
33370
33371 else
33372
33373       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33374 $as_echo "no" >&6; }
33375       tst_compi_getifaddrs="no"
33376
33377 fi
33378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33379   fi
33380   #
33381     if test "x$cross_compiling" != "xyes" &&
33382     test "$tst_compi_getifaddrs" = "yes"; then
33383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33384 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
33385     if test "$cross_compiling" = yes; then :
33386   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33388 as_fn_error $? "cannot run test program while cross compiling
33389 See \`config.log' for more details" "$LINENO" 5; }
33390 else
33391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33392 /* end confdefs.h.  */
33393
33394
33395         $curl_includes_stdlib
33396         $curl_includes_ifaddrs
33397
33398 int main (void)
33399 {
33400
33401         struct ifaddrs *ifa = 0;
33402         int error;
33403
33404         error = getifaddrs(&ifa);
33405         if(error || !ifa)
33406           exit(1); /* fail */
33407         else
33408           exit(0);
33409
33410  ;
33411  return 0;
33412 }
33413
33414 _ACEOF
33415 if ac_fn_c_try_run "$LINENO"; then :
33416
33417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33418 $as_echo "yes" >&6; }
33419       tst_works_getifaddrs="yes"
33420
33421 else
33422
33423       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33424 $as_echo "no" >&6; }
33425       tst_works_getifaddrs="no"
33426
33427 fi
33428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33429   conftest.$ac_objext conftest.beam conftest.$ac_ext
33430 fi
33431
33432   fi
33433   #
33434   if test "$tst_compi_getifaddrs" = "yes" &&
33435     test "$tst_works_getifaddrs" != "no"; then
33436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
33437 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
33438     if test "x$curl_disallow_getifaddrs" != "xyes"; then
33439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33440 $as_echo "yes" >&6; }
33441       tst_allow_getifaddrs="yes"
33442     else
33443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33444 $as_echo "no" >&6; }
33445       tst_allow_getifaddrs="no"
33446     fi
33447   fi
33448   #
33449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
33450 $as_echo_n "checking if getifaddrs might be used... " >&6; }
33451   if test "$tst_links_getifaddrs" = "yes" &&
33452      test "$tst_proto_getifaddrs" = "yes" &&
33453      test "$tst_compi_getifaddrs" = "yes" &&
33454      test "$tst_allow_getifaddrs" = "yes" &&
33455      test "$tst_works_getifaddrs" != "no"; then
33456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33457 $as_echo "yes" >&6; }
33458
33459 cat >>confdefs.h <<_ACEOF
33460 #define HAVE_GETIFADDRS 1
33461 _ACEOF
33462
33463     curl_cv_func_getifaddrs="yes"
33464   else
33465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33466 $as_echo "no" >&6; }
33467     curl_cv_func_getifaddrs="no"
33468   fi
33469
33470
33471     #
33472   tst_links_getservbyport_r="unknown"
33473   tst_proto_getservbyport_r="unknown"
33474   tst_compi_getservbyport_r="unknown"
33475   tst_allow_getservbyport_r="unknown"
33476   tst_nargs_getservbyport_r="unknown"
33477   #
33478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
33479 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
33480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33481 /* end confdefs.h.  */
33482
33483
33484 #define getservbyport_r innocuous_getservbyport_r
33485 #ifdef __STDC__
33486 # include <limits.h>
33487 #else
33488 # include <assert.h>
33489 #endif
33490 #undef getservbyport_r
33491 #ifdef __cplusplus
33492 extern "C"
33493 #endif
33494 char getservbyport_r ();
33495 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
33496 choke me
33497 #endif
33498
33499 int main (void)
33500 {
33501 return getservbyport_r ();
33502  ;
33503  return 0;
33504 }
33505
33506 _ACEOF
33507 if ac_fn_c_try_link "$LINENO"; then :
33508
33509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33510 $as_echo "yes" >&6; }
33511     tst_links_getservbyport_r="yes"
33512
33513 else
33514
33515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33516 $as_echo "no" >&6; }
33517     tst_links_getservbyport_r="no"
33518
33519 fi
33520 rm -f core conftest.err conftest.$ac_objext \
33521     conftest$ac_exeext conftest.$ac_ext
33522   #
33523   if test "$tst_links_getservbyport_r" = "yes"; then
33524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
33525 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
33526     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33527 /* end confdefs.h.  */
33528
33529       $curl_includes_netdb
33530
33531 _ACEOF
33532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33533   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
33534
33535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33536 $as_echo "yes" >&6; }
33537       tst_proto_getservbyport_r="yes"
33538
33539 else
33540
33541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33542 $as_echo "no" >&6; }
33543       tst_proto_getservbyport_r="no"
33544
33545 fi
33546 rm -f conftest*
33547
33548   fi
33549   #
33550   if test "$tst_proto_getservbyport_r" = "yes"; then
33551     if test "$tst_nargs_getservbyport_r" = "unknown"; then
33552       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
33553 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
33554       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33555 /* end confdefs.h.  */
33556
33557
33558           $curl_includes_netdb
33559
33560 int main (void)
33561 {
33562
33563           if(0 != getservbyport_r(0, 0, 0, 0))
33564             return 1;
33565
33566  ;
33567  return 0;
33568 }
33569
33570 _ACEOF
33571 if ac_fn_c_try_compile "$LINENO"; then :
33572
33573         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33574 $as_echo "yes" >&6; }
33575         tst_compi_getservbyport_r="yes"
33576         tst_nargs_getservbyport_r="4"
33577
33578 else
33579
33580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33581 $as_echo "no" >&6; }
33582         tst_compi_getservbyport_r="no"
33583
33584 fi
33585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33586     fi
33587     if test "$tst_nargs_getservbyport_r" = "unknown"; then
33588       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
33589 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
33590       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33591 /* end confdefs.h.  */
33592
33593
33594           $curl_includes_netdb
33595
33596 int main (void)
33597 {
33598
33599           if(0 != getservbyport_r(0, 0, 0, 0, 0))
33600             return 1;
33601
33602  ;
33603  return 0;
33604 }
33605
33606 _ACEOF
33607 if ac_fn_c_try_compile "$LINENO"; then :
33608
33609         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33610 $as_echo "yes" >&6; }
33611         tst_compi_getservbyport_r="yes"
33612         tst_nargs_getservbyport_r="5"
33613
33614 else
33615
33616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33617 $as_echo "no" >&6; }
33618         tst_compi_getservbyport_r="no"
33619
33620 fi
33621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33622     fi
33623     if test "$tst_nargs_getservbyport_r" = "unknown"; then
33624       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
33625 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
33626       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33627 /* end confdefs.h.  */
33628
33629
33630           $curl_includes_netdb
33631
33632 int main (void)
33633 {
33634
33635           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
33636             return 1;
33637
33638  ;
33639  return 0;
33640 }
33641
33642 _ACEOF
33643 if ac_fn_c_try_compile "$LINENO"; then :
33644
33645         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33646 $as_echo "yes" >&6; }
33647         tst_compi_getservbyport_r="yes"
33648         tst_nargs_getservbyport_r="6"
33649
33650 else
33651
33652         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33653 $as_echo "no" >&6; }
33654         tst_compi_getservbyport_r="no"
33655
33656 fi
33657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33658     fi
33659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
33660 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
33661     if test "$tst_compi_getservbyport_r" = "yes"; then
33662       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33663 $as_echo "yes" >&6; }
33664     else
33665       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33666 $as_echo "no" >&6; }
33667     fi
33668   fi
33669   #
33670   if test "$tst_compi_getservbyport_r" = "yes"; then
33671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
33672 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
33673     if test "x$curl_disallow_getservbyport_r" != "xyes"; then
33674       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33675 $as_echo "yes" >&6; }
33676       tst_allow_getservbyport_r="yes"
33677     else
33678       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33679 $as_echo "no" >&6; }
33680       tst_allow_getservbyport_r="no"
33681     fi
33682   fi
33683   #
33684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
33685 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
33686   if test "$tst_links_getservbyport_r" = "yes" &&
33687      test "$tst_proto_getservbyport_r" = "yes" &&
33688      test "$tst_compi_getservbyport_r" = "yes" &&
33689      test "$tst_allow_getservbyport_r" = "yes"; then
33690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33691 $as_echo "yes" >&6; }
33692
33693 cat >>confdefs.h <<_ACEOF
33694 #define HAVE_GETSERVBYPORT_R 1
33695 _ACEOF
33696
33697
33698 cat >>confdefs.h <<_ACEOF
33699 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
33700 _ACEOF
33701
33702     if test "$tst_nargs_getservbyport_r" -eq "4"; then
33703
33704 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
33705
33706     else
33707
33708 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
33709
33710     fi
33711     curl_cv_func_getservbyport_r="yes"
33712   else
33713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33714 $as_echo "no" >&6; }
33715     curl_cv_func_getservbyport_r="no"
33716   fi
33717
33718
33719 curl_includes_time="\
33720 /* includes start */
33721 #ifdef HAVE_SYS_TYPES_H
33722 #  include <sys/types.h>
33723 #endif
33724 #ifdef HAVE_SYS_TIME_H
33725 #  include <sys/time.h>
33726 #  ifdef TIME_WITH_SYS_TIME
33727 #    include <time.h>
33728 #  endif
33729 #else
33730 #  ifdef HAVE_TIME_H
33731 #    include <time.h>
33732 #  endif
33733 #endif
33734 /* includes end */"
33735   for ac_header in sys/types.h sys/time.h time.h
33736 do :
33737   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33738 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
33739 "
33740 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33741   cat >>confdefs.h <<_ACEOF
33742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33743 _ACEOF
33744
33745 fi
33746
33747 done
33748
33749
33750
33751       #
33752   tst_links_gmtime_r="unknown"
33753   tst_proto_gmtime_r="unknown"
33754   tst_compi_gmtime_r="unknown"
33755   tst_works_gmtime_r="unknown"
33756   tst_allow_gmtime_r="unknown"
33757   #
33758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
33759 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
33760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33761 /* end confdefs.h.  */
33762
33763
33764 #define gmtime_r innocuous_gmtime_r
33765 #ifdef __STDC__
33766 # include <limits.h>
33767 #else
33768 # include <assert.h>
33769 #endif
33770 #undef gmtime_r
33771 #ifdef __cplusplus
33772 extern "C"
33773 #endif
33774 char gmtime_r ();
33775 #if defined __stub_gmtime_r || defined __stub___gmtime_r
33776 choke me
33777 #endif
33778
33779 int main (void)
33780 {
33781 return gmtime_r ();
33782  ;
33783  return 0;
33784 }
33785
33786 _ACEOF
33787 if ac_fn_c_try_link "$LINENO"; then :
33788
33789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33790 $as_echo "yes" >&6; }
33791     tst_links_gmtime_r="yes"
33792
33793 else
33794
33795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33796 $as_echo "no" >&6; }
33797     tst_links_gmtime_r="no"
33798
33799 fi
33800 rm -f core conftest.err conftest.$ac_objext \
33801     conftest$ac_exeext conftest.$ac_ext
33802   #
33803   if test "$tst_links_gmtime_r" = "yes"; then
33804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
33805 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
33806     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33807 /* end confdefs.h.  */
33808
33809       $curl_includes_time
33810
33811 _ACEOF
33812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33813   $EGREP "gmtime_r" >/dev/null 2>&1; then :
33814
33815       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33816 $as_echo "yes" >&6; }
33817       tst_proto_gmtime_r="yes"
33818
33819 else
33820
33821       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33822 $as_echo "no" >&6; }
33823       tst_proto_gmtime_r="no"
33824
33825 fi
33826 rm -f conftest*
33827
33828   fi
33829   #
33830   if test "$tst_proto_gmtime_r" = "yes"; then
33831     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
33832 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
33833     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33834 /* end confdefs.h.  */
33835
33836
33837         $curl_includes_time
33838
33839 int main (void)
33840 {
33841
33842         if(0 != gmtime_r(0, 0))
33843           return 1;
33844
33845  ;
33846  return 0;
33847 }
33848
33849 _ACEOF
33850 if ac_fn_c_try_compile "$LINENO"; then :
33851
33852       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33853 $as_echo "yes" >&6; }
33854       tst_compi_gmtime_r="yes"
33855
33856 else
33857
33858       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33859 $as_echo "no" >&6; }
33860       tst_compi_gmtime_r="no"
33861
33862 fi
33863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33864   fi
33865   #
33866     if test "x$cross_compiling" != "xyes" &&
33867     test "$tst_compi_gmtime_r" = "yes"; then
33868     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
33869 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
33870     if test "$cross_compiling" = yes; then :
33871   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33873 as_fn_error $? "cannot run test program while cross compiling
33874 See \`config.log' for more details" "$LINENO" 5; }
33875 else
33876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33877 /* end confdefs.h.  */
33878
33879
33880         $curl_includes_stdlib
33881         $curl_includes_time
33882
33883 int main (void)
33884 {
33885
33886         time_t local = 1170352587;
33887         struct tm *gmt = 0;
33888         struct tm result;
33889         gmt = gmtime_r(&local, &result);
33890         if(gmt)
33891           exit(0);
33892         else
33893           exit(1);
33894
33895  ;
33896  return 0;
33897 }
33898
33899 _ACEOF
33900 if ac_fn_c_try_run "$LINENO"; then :
33901
33902       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33903 $as_echo "yes" >&6; }
33904       tst_works_gmtime_r="yes"
33905
33906 else
33907
33908       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33909 $as_echo "no" >&6; }
33910       tst_works_gmtime_r="no"
33911
33912 fi
33913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33914   conftest.$ac_objext conftest.beam conftest.$ac_ext
33915 fi
33916
33917   fi
33918   #
33919   if test "$tst_compi_gmtime_r" = "yes" &&
33920     test "$tst_works_gmtime_r" != "no"; then
33921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
33922 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
33923     if test "x$curl_disallow_gmtime_r" != "xyes"; then
33924       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33925 $as_echo "yes" >&6; }
33926       tst_allow_gmtime_r="yes"
33927     else
33928       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33929 $as_echo "no" >&6; }
33930       tst_allow_gmtime_r="no"
33931     fi
33932   fi
33933   #
33934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
33935 $as_echo_n "checking if gmtime_r might be used... " >&6; }
33936   if test "$tst_links_gmtime_r" = "yes" &&
33937      test "$tst_proto_gmtime_r" = "yes" &&
33938      test "$tst_compi_gmtime_r" = "yes" &&
33939      test "$tst_allow_gmtime_r" = "yes" &&
33940      test "$tst_works_gmtime_r" != "no"; then
33941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33942 $as_echo "yes" >&6; }
33943
33944 cat >>confdefs.h <<_ACEOF
33945 #define HAVE_GMTIME_R 1
33946 _ACEOF
33947
33948     curl_cv_func_gmtime_r="yes"
33949   else
33950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33951 $as_echo "no" >&6; }
33952     curl_cv_func_gmtime_r="no"
33953   fi
33954
33955
33956 curl_includes_arpa_inet="\
33957 /* includes start */
33958 #ifdef HAVE_SYS_TYPES_H
33959 #  include <sys/types.h>
33960 #endif
33961 #ifdef HAVE_SYS_SOCKET_H
33962 #  include <sys/socket.h>
33963 #endif
33964 #ifdef HAVE_NETINET_IN_H
33965 #  include <netinet/in.h>
33966 #endif
33967 #ifdef HAVE_ARPA_INET_H
33968 #  include <arpa/inet.h>
33969 #endif
33970 #ifdef HAVE_WINSOCK2_H
33971 #include <winsock2.h>
33972 #include <ws2tcpip.h>
33973 #endif
33974 /* includes end */"
33975   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
33976 do :
33977   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33978 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
33979 "
33980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33981   cat >>confdefs.h <<_ACEOF
33982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33983 _ACEOF
33984
33985 fi
33986
33987 done
33988
33989
33990
33991     #
33992   tst_links_inet_ntoa_r="unknown"
33993   tst_proto_inet_ntoa_r="unknown"
33994   tst_compi_inet_ntoa_r="unknown"
33995   tst_allow_inet_ntoa_r="unknown"
33996   tst_nargs_inet_ntoa_r="unknown"
33997   #
33998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
33999 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34001 /* end confdefs.h.  */
34002
34003
34004 #define inet_ntoa_r innocuous_inet_ntoa_r
34005 #ifdef __STDC__
34006 # include <limits.h>
34007 #else
34008 # include <assert.h>
34009 #endif
34010 #undef inet_ntoa_r
34011 #ifdef __cplusplus
34012 extern "C"
34013 #endif
34014 char inet_ntoa_r ();
34015 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34016 choke me
34017 #endif
34018
34019 int main (void)
34020 {
34021 return inet_ntoa_r ();
34022  ;
34023  return 0;
34024 }
34025
34026 _ACEOF
34027 if ac_fn_c_try_link "$LINENO"; then :
34028
34029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34030 $as_echo "yes" >&6; }
34031     tst_links_inet_ntoa_r="yes"
34032
34033 else
34034
34035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34036 $as_echo "no" >&6; }
34037     tst_links_inet_ntoa_r="no"
34038
34039 fi
34040 rm -f core conftest.err conftest.$ac_objext \
34041     conftest$ac_exeext conftest.$ac_ext
34042   #
34043   if test "$tst_links_inet_ntoa_r" = "yes"; then
34044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34045 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34046     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34047 /* end confdefs.h.  */
34048
34049       $curl_includes_arpa_inet
34050
34051 _ACEOF
34052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34053   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34054
34055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34056 $as_echo "yes" >&6; }
34057       tst_proto_inet_ntoa_r="yes"
34058
34059 else
34060
34061       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34062 $as_echo "no" >&6; }
34063       tst_proto_inet_ntoa_r="no"
34064
34065 fi
34066 rm -f conftest*
34067
34068   fi
34069   #
34070   if test "$tst_proto_inet_ntoa_r" = "yes"; then
34071     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34072       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34073 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34074       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34075 /* end confdefs.h.  */
34076
34077
34078           $curl_includes_arpa_inet
34079
34080 int main (void)
34081 {
34082
34083           struct in_addr addr;
34084           if(0 != inet_ntoa_r(addr, 0))
34085             return 1;
34086
34087  ;
34088  return 0;
34089 }
34090
34091 _ACEOF
34092 if ac_fn_c_try_compile "$LINENO"; then :
34093
34094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34095 $as_echo "yes" >&6; }
34096         tst_compi_inet_ntoa_r="yes"
34097         tst_nargs_inet_ntoa_r="2"
34098
34099 else
34100
34101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34102 $as_echo "no" >&6; }
34103         tst_compi_inet_ntoa_r="no"
34104
34105 fi
34106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34107     fi
34108     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34109       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34110 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34111       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34112 /* end confdefs.h.  */
34113
34114
34115           $curl_includes_arpa_inet
34116
34117 int main (void)
34118 {
34119
34120           struct in_addr addr;
34121           if(0 != inet_ntoa_r(addr, 0, 0))
34122             return 1;
34123
34124  ;
34125  return 0;
34126 }
34127
34128 _ACEOF
34129 if ac_fn_c_try_compile "$LINENO"; then :
34130
34131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34132 $as_echo "yes" >&6; }
34133         tst_compi_inet_ntoa_r="yes"
34134         tst_nargs_inet_ntoa_r="3"
34135
34136 else
34137
34138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34139 $as_echo "no" >&6; }
34140         tst_compi_inet_ntoa_r="no"
34141
34142 fi
34143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34144     fi
34145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34146 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34147     if test "$tst_compi_inet_ntoa_r" = "yes"; then
34148       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34149 $as_echo "yes" >&6; }
34150     else
34151       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34152 $as_echo "no" >&6; }
34153     fi
34154   fi
34155   #
34156   if test "$tst_compi_inet_ntoa_r" = "yes"; then
34157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34158 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34159     if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34160       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34161 $as_echo "yes" >&6; }
34162       tst_allow_inet_ntoa_r="yes"
34163     else
34164       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34165 $as_echo "no" >&6; }
34166       tst_allow_inet_ntoa_r="no"
34167     fi
34168   fi
34169   #
34170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34171 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34172   if test "$tst_links_inet_ntoa_r" = "yes" &&
34173      test "$tst_proto_inet_ntoa_r" = "yes" &&
34174      test "$tst_compi_inet_ntoa_r" = "yes" &&
34175      test "$tst_allow_inet_ntoa_r" = "yes"; then
34176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34177 $as_echo "yes" >&6; }
34178
34179 cat >>confdefs.h <<_ACEOF
34180 #define HAVE_INET_NTOA_R 1
34181 _ACEOF
34182
34183             #
34184     if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34185
34186 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34187
34188     elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34189
34190 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34191
34192     fi
34193     #
34194     curl_cv_func_inet_ntoa_r="yes"
34195   else
34196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34197 $as_echo "no" >&6; }
34198     curl_cv_func_inet_ntoa_r="no"
34199   fi
34200
34201
34202         #
34203   tst_links_inet_ntop="unknown"
34204   tst_proto_inet_ntop="unknown"
34205   tst_compi_inet_ntop="unknown"
34206   tst_works_inet_ntop="unknown"
34207   tst_allow_inet_ntop="unknown"
34208   #
34209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34210 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
34211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34212 /* end confdefs.h.  */
34213
34214
34215 #define inet_ntop innocuous_inet_ntop
34216 #ifdef __STDC__
34217 # include <limits.h>
34218 #else
34219 # include <assert.h>
34220 #endif
34221 #undef inet_ntop
34222 #ifdef __cplusplus
34223 extern "C"
34224 #endif
34225 char inet_ntop ();
34226 #if defined __stub_inet_ntop || defined __stub___inet_ntop
34227 choke me
34228 #endif
34229
34230 int main (void)
34231 {
34232 return inet_ntop ();
34233  ;
34234  return 0;
34235 }
34236
34237 _ACEOF
34238 if ac_fn_c_try_link "$LINENO"; then :
34239
34240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34241 $as_echo "yes" >&6; }
34242     tst_links_inet_ntop="yes"
34243
34244 else
34245
34246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34247 $as_echo "no" >&6; }
34248     tst_links_inet_ntop="no"
34249
34250 fi
34251 rm -f core conftest.err conftest.$ac_objext \
34252     conftest$ac_exeext conftest.$ac_ext
34253   #
34254   if test "$tst_links_inet_ntop" = "yes"; then
34255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34256 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34257     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34258 /* end confdefs.h.  */
34259
34260       $curl_includes_arpa_inet
34261
34262 _ACEOF
34263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34264   $EGREP "inet_ntop" >/dev/null 2>&1; then :
34265
34266       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34267 $as_echo "yes" >&6; }
34268       tst_proto_inet_ntop="yes"
34269
34270 else
34271
34272       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34273 $as_echo "no" >&6; }
34274       tst_proto_inet_ntop="no"
34275
34276 fi
34277 rm -f conftest*
34278
34279   fi
34280   #
34281   if test "$tst_proto_inet_ntop" = "yes"; then
34282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34283 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
34284     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34285 /* end confdefs.h.  */
34286
34287
34288         $curl_includes_arpa_inet
34289
34290 int main (void)
34291 {
34292
34293         if(0 != inet_ntop(0, 0, 0, 0))
34294           return 1;
34295
34296  ;
34297  return 0;
34298 }
34299
34300 _ACEOF
34301 if ac_fn_c_try_compile "$LINENO"; then :
34302
34303       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34304 $as_echo "yes" >&6; }
34305       tst_compi_inet_ntop="yes"
34306
34307 else
34308
34309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34310 $as_echo "no" >&6; }
34311       tst_compi_inet_ntop="no"
34312
34313 fi
34314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34315   fi
34316   #
34317     if test "x$cross_compiling" != "xyes" &&
34318     test "$tst_compi_inet_ntop" = "yes"; then
34319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34320 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
34321     if test "$cross_compiling" = yes; then :
34322   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34324 as_fn_error $? "cannot run test program while cross compiling
34325 See \`config.log' for more details" "$LINENO" 5; }
34326 else
34327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34328 /* end confdefs.h.  */
34329
34330
34331         $curl_includes_stdlib
34332         $curl_includes_arpa_inet
34333         $curl_includes_string
34334
34335 int main (void)
34336 {
34337
34338         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34339         char ipv4res[sizeof "255.255.255.255"];
34340         unsigned char ipv6a[26];
34341         unsigned char ipv4a[5];
34342         char *ipv6ptr = 0;
34343         char *ipv4ptr = 0;
34344         /* - */
34345         ipv4res[0] = '\0';
34346         ipv4a[0] = 0xc0;
34347         ipv4a[1] = 0xa8;
34348         ipv4a[2] = 0x64;
34349         ipv4a[3] = 0x01;
34350         ipv4a[4] = 0x01;
34351         /* - */
34352         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34353         if(!ipv4ptr)
34354           exit(1); /* fail */
34355         if(ipv4ptr != ipv4res)
34356           exit(1); /* fail */
34357         if(!ipv4ptr[0])
34358           exit(1); /* fail */
34359         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34360           exit(1); /* fail */
34361         /* - */
34362         ipv6res[0] = '\0';
34363         memset(ipv6a, 0, sizeof(ipv6a));
34364         ipv6a[0] = 0xfe;
34365         ipv6a[1] = 0x80;
34366         ipv6a[8] = 0x02;
34367         ipv6a[9] = 0x14;
34368         ipv6a[10] = 0x4f;
34369         ipv6a[11] = 0xff;
34370         ipv6a[12] = 0xfe;
34371         ipv6a[13] = 0x0b;
34372         ipv6a[14] = 0x76;
34373         ipv6a[15] = 0xc8;
34374         ipv6a[25] = 0x01;
34375         /* - */
34376         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34377         if(!ipv6ptr)
34378           exit(1); /* fail */
34379         if(ipv6ptr != ipv6res)
34380           exit(1); /* fail */
34381         if(!ipv6ptr[0])
34382           exit(1); /* fail */
34383         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34384           exit(1); /* fail */
34385         /* - */
34386         exit(0);
34387
34388  ;
34389  return 0;
34390 }
34391
34392 _ACEOF
34393 if ac_fn_c_try_run "$LINENO"; then :
34394
34395       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34396 $as_echo "yes" >&6; }
34397       tst_works_inet_ntop="yes"
34398
34399 else
34400
34401       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34402 $as_echo "no" >&6; }
34403       tst_works_inet_ntop="no"
34404
34405 fi
34406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34407   conftest.$ac_objext conftest.beam conftest.$ac_ext
34408 fi
34409
34410   fi
34411   #
34412   if test "$tst_compi_inet_ntop" = "yes" &&
34413     test "$tst_works_inet_ntop" != "no"; then
34414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
34415 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
34416     if test "x$curl_disallow_inet_ntop" != "xyes"; then
34417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34418 $as_echo "yes" >&6; }
34419       tst_allow_inet_ntop="yes"
34420     else
34421       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34422 $as_echo "no" >&6; }
34423       tst_allow_inet_ntop="no"
34424     fi
34425   fi
34426   #
34427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
34428 $as_echo_n "checking if inet_ntop might be used... " >&6; }
34429   if test "$tst_links_inet_ntop" = "yes" &&
34430      test "$tst_proto_inet_ntop" = "yes" &&
34431      test "$tst_compi_inet_ntop" = "yes" &&
34432      test "$tst_allow_inet_ntop" = "yes" &&
34433      test "$tst_works_inet_ntop" != "no"; then
34434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34435 $as_echo "yes" >&6; }
34436
34437 cat >>confdefs.h <<_ACEOF
34438 #define HAVE_INET_NTOP 1
34439 _ACEOF
34440
34441     curl_cv_func_inet_ntop="yes"
34442   else
34443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34444 $as_echo "no" >&6; }
34445     curl_cv_func_inet_ntop="no"
34446   fi
34447
34448
34449         #
34450   tst_links_inet_pton="unknown"
34451   tst_proto_inet_pton="unknown"
34452   tst_compi_inet_pton="unknown"
34453   tst_works_inet_pton="unknown"
34454   tst_allow_inet_pton="unknown"
34455   #
34456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
34457 $as_echo_n "checking if inet_pton can be linked... " >&6; }
34458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34459 /* end confdefs.h.  */
34460
34461
34462 #define inet_pton innocuous_inet_pton
34463 #ifdef __STDC__
34464 # include <limits.h>
34465 #else
34466 # include <assert.h>
34467 #endif
34468 #undef inet_pton
34469 #ifdef __cplusplus
34470 extern "C"
34471 #endif
34472 char inet_pton ();
34473 #if defined __stub_inet_pton || defined __stub___inet_pton
34474 choke me
34475 #endif
34476
34477 int main (void)
34478 {
34479 return inet_pton ();
34480  ;
34481  return 0;
34482 }
34483
34484 _ACEOF
34485 if ac_fn_c_try_link "$LINENO"; then :
34486
34487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34488 $as_echo "yes" >&6; }
34489     tst_links_inet_pton="yes"
34490
34491 else
34492
34493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34494 $as_echo "no" >&6; }
34495     tst_links_inet_pton="no"
34496
34497 fi
34498 rm -f core conftest.err conftest.$ac_objext \
34499     conftest$ac_exeext conftest.$ac_ext
34500   #
34501   if test "$tst_links_inet_pton" = "yes"; then
34502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
34503 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
34504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34505 /* end confdefs.h.  */
34506
34507       $curl_includes_arpa_inet
34508
34509 _ACEOF
34510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34511   $EGREP "inet_pton" >/dev/null 2>&1; then :
34512
34513       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34514 $as_echo "yes" >&6; }
34515       tst_proto_inet_pton="yes"
34516
34517 else
34518
34519       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34520 $as_echo "no" >&6; }
34521       tst_proto_inet_pton="no"
34522
34523 fi
34524 rm -f conftest*
34525
34526   fi
34527   #
34528   if test "$tst_proto_inet_pton" = "yes"; then
34529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
34530 $as_echo_n "checking if inet_pton is compilable... " >&6; }
34531     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34532 /* end confdefs.h.  */
34533
34534
34535         $curl_includes_arpa_inet
34536
34537 int main (void)
34538 {
34539
34540         if(0 != inet_pton(0, 0, 0))
34541           return 1;
34542
34543  ;
34544  return 0;
34545 }
34546
34547 _ACEOF
34548 if ac_fn_c_try_compile "$LINENO"; then :
34549
34550       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34551 $as_echo "yes" >&6; }
34552       tst_compi_inet_pton="yes"
34553
34554 else
34555
34556       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34557 $as_echo "no" >&6; }
34558       tst_compi_inet_pton="no"
34559
34560 fi
34561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34562   fi
34563   #
34564     if test "x$cross_compiling" != "xyes" &&
34565     test "$tst_compi_inet_pton" = "yes"; then
34566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
34567 $as_echo_n "checking if inet_pton seems to work... " >&6; }
34568     if test "$cross_compiling" = yes; then :
34569   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34571 as_fn_error $? "cannot run test program while cross compiling
34572 See \`config.log' for more details" "$LINENO" 5; }
34573 else
34574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34575 /* end confdefs.h.  */
34576
34577
34578         $curl_includes_stdlib
34579         $curl_includes_arpa_inet
34580         $curl_includes_string
34581
34582 int main (void)
34583 {
34584
34585         unsigned char ipv6a[16+1];
34586         unsigned char ipv4a[4+1];
34587         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
34588         const char *ipv4src = "192.168.100.1";
34589         /* - */
34590         memset(ipv4a, 1, sizeof(ipv4a));
34591         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
34592           exit(1); /* fail */
34593         /* - */
34594         if( (ipv4a[0] != 0xc0) ||
34595             (ipv4a[1] != 0xa8) ||
34596             (ipv4a[2] != 0x64) ||
34597             (ipv4a[3] != 0x01) ||
34598             (ipv4a[4] != 0x01) )
34599           exit(1); /* fail */
34600         /* - */
34601         memset(ipv6a, 1, sizeof(ipv6a));
34602         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
34603           exit(1); /* fail */
34604         /* - */
34605         if( (ipv6a[0]  != 0xfe) ||
34606             (ipv6a[1]  != 0x80) ||
34607             (ipv6a[8]  != 0x02) ||
34608             (ipv6a[9]  != 0x14) ||
34609             (ipv6a[10] != 0x4f) ||
34610             (ipv6a[11] != 0xff) ||
34611             (ipv6a[12] != 0xfe) ||
34612             (ipv6a[13] != 0x0b) ||
34613             (ipv6a[14] != 0x76) ||
34614             (ipv6a[15] != 0xc8) ||
34615             (ipv6a[16] != 0x01) )
34616           exit(1); /* fail */
34617         /* - */
34618         if( (ipv6a[2]  != 0x0) ||
34619             (ipv6a[3]  != 0x0) ||
34620             (ipv6a[4]  != 0x0) ||
34621             (ipv6a[5]  != 0x0) ||
34622             (ipv6a[6]  != 0x0) ||
34623             (ipv6a[7]  != 0x0) )
34624           exit(1); /* fail */
34625         /* - */
34626         exit(0);
34627
34628  ;
34629  return 0;
34630 }
34631
34632 _ACEOF
34633 if ac_fn_c_try_run "$LINENO"; then :
34634
34635       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34636 $as_echo "yes" >&6; }
34637       tst_works_inet_pton="yes"
34638
34639 else
34640
34641       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34642 $as_echo "no" >&6; }
34643       tst_works_inet_pton="no"
34644
34645 fi
34646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34647   conftest.$ac_objext conftest.beam conftest.$ac_ext
34648 fi
34649
34650   fi
34651   #
34652   if test "$tst_compi_inet_pton" = "yes" &&
34653     test "$tst_works_inet_pton" != "no"; then
34654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
34655 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
34656     if test "x$curl_disallow_inet_pton" != "xyes"; then
34657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34658 $as_echo "yes" >&6; }
34659       tst_allow_inet_pton="yes"
34660     else
34661       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34662 $as_echo "no" >&6; }
34663       tst_allow_inet_pton="no"
34664     fi
34665   fi
34666   #
34667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
34668 $as_echo_n "checking if inet_pton might be used... " >&6; }
34669   if test "$tst_links_inet_pton" = "yes" &&
34670      test "$tst_proto_inet_pton" = "yes" &&
34671      test "$tst_compi_inet_pton" = "yes" &&
34672      test "$tst_allow_inet_pton" = "yes" &&
34673      test "$tst_works_inet_pton" != "no"; then
34674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34675 $as_echo "yes" >&6; }
34676
34677 cat >>confdefs.h <<_ACEOF
34678 #define HAVE_INET_PTON 1
34679 _ACEOF
34680
34681     curl_cv_func_inet_pton="yes"
34682   else
34683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34684 $as_echo "no" >&6; }
34685     curl_cv_func_inet_pton="no"
34686   fi
34687
34688
34689 curl_includes_stropts="\
34690 /* includes start */
34691 #ifdef HAVE_SYS_TYPES_H
34692 #  include <sys/types.h>
34693 #endif
34694 #ifdef HAVE_UNISTD_H
34695 #  include <unistd.h>
34696 #endif
34697 #ifdef HAVE_SYS_SOCKET_H
34698 #  include <sys/socket.h>
34699 #endif
34700 #ifdef HAVE_SYS_IOCTL_H
34701 #  include <sys/ioctl.h>
34702 #endif
34703 #ifdef HAVE_STROPTS_H
34704 #  include <stropts.h>
34705 #endif
34706 /* includes end */"
34707   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
34708 do :
34709   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34710 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
34711 "
34712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34713   cat >>confdefs.h <<_ACEOF
34714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34715 _ACEOF
34716
34717 fi
34718
34719 done
34720
34721
34722
34723     #
34724   tst_links_ioctl="unknown"
34725   tst_proto_ioctl="unknown"
34726   tst_compi_ioctl="unknown"
34727   tst_allow_ioctl="unknown"
34728   #
34729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
34730 $as_echo_n "checking if ioctl can be linked... " >&6; }
34731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34732 /* end confdefs.h.  */
34733
34734
34735 #define ioctl innocuous_ioctl
34736 #ifdef __STDC__
34737 # include <limits.h>
34738 #else
34739 # include <assert.h>
34740 #endif
34741 #undef ioctl
34742 #ifdef __cplusplus
34743 extern "C"
34744 #endif
34745 char ioctl ();
34746 #if defined __stub_ioctl || defined __stub___ioctl
34747 choke me
34748 #endif
34749
34750 int main (void)
34751 {
34752 return ioctl ();
34753  ;
34754  return 0;
34755 }
34756
34757 _ACEOF
34758 if ac_fn_c_try_link "$LINENO"; then :
34759
34760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34761 $as_echo "yes" >&6; }
34762     tst_links_ioctl="yes"
34763
34764 else
34765
34766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34767 $as_echo "no" >&6; }
34768     tst_links_ioctl="no"
34769
34770 fi
34771 rm -f core conftest.err conftest.$ac_objext \
34772     conftest$ac_exeext conftest.$ac_ext
34773   #
34774   if test "$tst_links_ioctl" = "yes"; then
34775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
34776 $as_echo_n "checking if ioctl is prototyped... " >&6; }
34777     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34778 /* end confdefs.h.  */
34779
34780       $curl_includes_stropts
34781
34782 _ACEOF
34783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34784   $EGREP "ioctl" >/dev/null 2>&1; then :
34785
34786       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34787 $as_echo "yes" >&6; }
34788       tst_proto_ioctl="yes"
34789
34790 else
34791
34792       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34793 $as_echo "no" >&6; }
34794       tst_proto_ioctl="no"
34795
34796 fi
34797 rm -f conftest*
34798
34799   fi
34800   #
34801   if test "$tst_proto_ioctl" = "yes"; then
34802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
34803 $as_echo_n "checking if ioctl is compilable... " >&6; }
34804     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34805 /* end confdefs.h.  */
34806
34807
34808         $curl_includes_stropts
34809
34810 int main (void)
34811 {
34812
34813         if(0 != ioctl(0, 0, 0))
34814           return 1;
34815
34816  ;
34817  return 0;
34818 }
34819
34820 _ACEOF
34821 if ac_fn_c_try_compile "$LINENO"; then :
34822
34823       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34824 $as_echo "yes" >&6; }
34825       tst_compi_ioctl="yes"
34826
34827 else
34828
34829       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34830 $as_echo "no" >&6; }
34831       tst_compi_ioctl="no"
34832
34833 fi
34834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34835   fi
34836   #
34837   if test "$tst_compi_ioctl" = "yes"; then
34838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
34839 $as_echo_n "checking if ioctl usage allowed... " >&6; }
34840     if test "x$curl_disallow_ioctl" != "xyes"; then
34841       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34842 $as_echo "yes" >&6; }
34843       tst_allow_ioctl="yes"
34844     else
34845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34846 $as_echo "no" >&6; }
34847       tst_allow_ioctl="no"
34848     fi
34849   fi
34850   #
34851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
34852 $as_echo_n "checking if ioctl might be used... " >&6; }
34853   if test "$tst_links_ioctl" = "yes" &&
34854      test "$tst_proto_ioctl" = "yes" &&
34855      test "$tst_compi_ioctl" = "yes" &&
34856      test "$tst_allow_ioctl" = "yes"; then
34857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34858 $as_echo "yes" >&6; }
34859
34860 cat >>confdefs.h <<_ACEOF
34861 #define HAVE_IOCTL 1
34862 _ACEOF
34863
34864     curl_cv_func_ioctl="yes"
34865
34866   #
34867   tst_compi_ioctl_fionbio="unknown"
34868   tst_allow_ioctl_fionbio="unknown"
34869   #
34870   if test "$curl_cv_func_ioctl" = "yes"; then
34871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
34872 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
34873     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34874 /* end confdefs.h.  */
34875
34876
34877         $curl_includes_stropts
34878
34879 int main (void)
34880 {
34881
34882         int flags = 0;
34883         if(0 != ioctl(0, FIONBIO, &flags))
34884           return 1;
34885
34886  ;
34887  return 0;
34888 }
34889
34890 _ACEOF
34891 if ac_fn_c_try_compile "$LINENO"; then :
34892
34893       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34894 $as_echo "yes" >&6; }
34895       tst_compi_ioctl_fionbio="yes"
34896
34897 else
34898
34899       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34900 $as_echo "no" >&6; }
34901       tst_compi_ioctl_fionbio="no"
34902
34903 fi
34904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34905   fi
34906   #
34907   if test "$tst_compi_ioctl_fionbio" = "yes"; then
34908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
34909 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
34910     if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
34911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34912 $as_echo "yes" >&6; }
34913       tst_allow_ioctl_fionbio="yes"
34914     else
34915       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34916 $as_echo "no" >&6; }
34917       tst_allow_ioctl_fionbio="no"
34918     fi
34919   fi
34920   #
34921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
34922 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
34923   if test "$tst_compi_ioctl_fionbio" = "yes" &&
34924      test "$tst_allow_ioctl_fionbio" = "yes"; then
34925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34926 $as_echo "yes" >&6; }
34927
34928 cat >>confdefs.h <<_ACEOF
34929 #define HAVE_IOCTL_FIONBIO 1
34930 _ACEOF
34931
34932     curl_cv_func_ioctl_fionbio="yes"
34933   else
34934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34935 $as_echo "no" >&6; }
34936     curl_cv_func_ioctl_fionbio="no"
34937   fi
34938
34939
34940   #
34941   tst_compi_ioctl_siocgifaddr="unknown"
34942   tst_allow_ioctl_siocgifaddr="unknown"
34943   #
34944   if test "$curl_cv_func_ioctl" = "yes"; then
34945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
34946 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
34947     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34948 /* end confdefs.h.  */
34949
34950
34951         $curl_includes_stropts
34952         #include <net/if.h>
34953
34954 int main (void)
34955 {
34956
34957         struct ifreq ifr;
34958         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
34959           return 1;
34960
34961  ;
34962  return 0;
34963 }
34964
34965 _ACEOF
34966 if ac_fn_c_try_compile "$LINENO"; then :
34967
34968       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34969 $as_echo "yes" >&6; }
34970       tst_compi_ioctl_siocgifaddr="yes"
34971
34972 else
34973
34974       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34975 $as_echo "no" >&6; }
34976       tst_compi_ioctl_siocgifaddr="no"
34977
34978 fi
34979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34980   fi
34981   #
34982   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
34983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
34984 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
34985     if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
34986       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34987 $as_echo "yes" >&6; }
34988       tst_allow_ioctl_siocgifaddr="yes"
34989     else
34990       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34991 $as_echo "no" >&6; }
34992       tst_allow_ioctl_siocgifaddr="no"
34993     fi
34994   fi
34995   #
34996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
34997 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
34998   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
34999      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35001 $as_echo "yes" >&6; }
35002
35003 cat >>confdefs.h <<_ACEOF
35004 #define HAVE_IOCTL_SIOCGIFADDR 1
35005 _ACEOF
35006
35007     curl_cv_func_ioctl_siocgifaddr="yes"
35008   else
35009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35010 $as_echo "no" >&6; }
35011     curl_cv_func_ioctl_siocgifaddr="no"
35012   fi
35013
35014   else
35015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35016 $as_echo "no" >&6; }
35017     curl_cv_func_ioctl="no"
35018   fi
35019
35020
35021     #
35022   tst_links_ioctlsocket="unknown"
35023   tst_proto_ioctlsocket="unknown"
35024   tst_compi_ioctlsocket="unknown"
35025   tst_allow_ioctlsocket="unknown"
35026   #
35027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35028 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35030 /* end confdefs.h.  */
35031
35032
35033       $curl_includes_winsock2
35034
35035 int main (void)
35036 {
35037
35038       if(0 != ioctlsocket(0, 0, 0))
35039         return 1;
35040
35041  ;
35042  return 0;
35043 }
35044
35045 _ACEOF
35046 if ac_fn_c_try_link "$LINENO"; then :
35047
35048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35049 $as_echo "yes" >&6; }
35050     tst_links_ioctlsocket="yes"
35051
35052 else
35053
35054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35055 $as_echo "no" >&6; }
35056     tst_links_ioctlsocket="no"
35057
35058 fi
35059 rm -f core conftest.err conftest.$ac_objext \
35060     conftest$ac_exeext conftest.$ac_ext
35061   #
35062   if test "$tst_links_ioctlsocket" = "yes"; then
35063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35064 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35066 /* end confdefs.h.  */
35067
35068       $curl_includes_winsock2
35069
35070 _ACEOF
35071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35072   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35073
35074       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35075 $as_echo "yes" >&6; }
35076       tst_proto_ioctlsocket="yes"
35077
35078 else
35079
35080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35081 $as_echo "no" >&6; }
35082       tst_proto_ioctlsocket="no"
35083
35084 fi
35085 rm -f conftest*
35086
35087   fi
35088   #
35089   if test "$tst_proto_ioctlsocket" = "yes"; then
35090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35091 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35092     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35093 /* end confdefs.h.  */
35094
35095
35096         $curl_includes_winsock2
35097
35098 int main (void)
35099 {
35100
35101         if(0 != ioctlsocket(0, 0, 0))
35102           return 1;
35103
35104  ;
35105  return 0;
35106 }
35107
35108 _ACEOF
35109 if ac_fn_c_try_compile "$LINENO"; then :
35110
35111       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35112 $as_echo "yes" >&6; }
35113       tst_compi_ioctlsocket="yes"
35114
35115 else
35116
35117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35118 $as_echo "no" >&6; }
35119       tst_compi_ioctlsocket="no"
35120
35121 fi
35122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35123   fi
35124   #
35125   if test "$tst_compi_ioctlsocket" = "yes"; then
35126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35127 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35128     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35129       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35130 $as_echo "yes" >&6; }
35131       tst_allow_ioctlsocket="yes"
35132     else
35133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35134 $as_echo "no" >&6; }
35135       tst_allow_ioctlsocket="no"
35136     fi
35137   fi
35138   #
35139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35140 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
35141   if test "$tst_links_ioctlsocket" = "yes" &&
35142      test "$tst_proto_ioctlsocket" = "yes" &&
35143      test "$tst_compi_ioctlsocket" = "yes" &&
35144      test "$tst_allow_ioctlsocket" = "yes"; then
35145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35146 $as_echo "yes" >&6; }
35147
35148 cat >>confdefs.h <<_ACEOF
35149 #define HAVE_IOCTLSOCKET 1
35150 _ACEOF
35151
35152     curl_cv_func_ioctlsocket="yes"
35153
35154   #
35155   tst_compi_ioctlsocket_fionbio="unknown"
35156   tst_allow_ioctlsocket_fionbio="unknown"
35157   #
35158   if test "$curl_cv_func_ioctlsocket" = "yes"; then
35159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35160 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35161     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35162 /* end confdefs.h.  */
35163
35164
35165         $curl_includes_winsock2
35166
35167 int main (void)
35168 {
35169
35170         int flags = 0;
35171         if(0 != ioctlsocket(0, FIONBIO, &flags))
35172           return 1;
35173
35174  ;
35175  return 0;
35176 }
35177
35178 _ACEOF
35179 if ac_fn_c_try_compile "$LINENO"; then :
35180
35181       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35182 $as_echo "yes" >&6; }
35183       tst_compi_ioctlsocket_fionbio="yes"
35184
35185 else
35186
35187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35188 $as_echo "no" >&6; }
35189       tst_compi_ioctlsocket_fionbio="no"
35190
35191 fi
35192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35193   fi
35194   #
35195   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35197 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35198     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35199       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35200 $as_echo "yes" >&6; }
35201       tst_allow_ioctlsocket_fionbio="yes"
35202     else
35203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35204 $as_echo "no" >&6; }
35205       tst_allow_ioctlsocket_fionbio="no"
35206     fi
35207   fi
35208   #
35209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35210 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35211   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35212      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35214 $as_echo "yes" >&6; }
35215
35216 cat >>confdefs.h <<_ACEOF
35217 #define HAVE_IOCTLSOCKET_FIONBIO 1
35218 _ACEOF
35219
35220     curl_cv_func_ioctlsocket_fionbio="yes"
35221   else
35222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35223 $as_echo "no" >&6; }
35224     curl_cv_func_ioctlsocket_fionbio="no"
35225   fi
35226
35227   else
35228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35229 $as_echo "no" >&6; }
35230     curl_cv_func_ioctlsocket="no"
35231   fi
35232
35233
35234     #
35235   tst_links_ioctlsocket_camel="unknown"
35236   tst_proto_ioctlsocket_camel="unknown"
35237   tst_compi_ioctlsocket_camel="unknown"
35238   tst_allow_ioctlsocket_camel="unknown"
35239   #
35240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35241 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35243 /* end confdefs.h.  */
35244
35245
35246 #define IoctlSocket innocuous_IoctlSocket
35247 #ifdef __STDC__
35248 # include <limits.h>
35249 #else
35250 # include <assert.h>
35251 #endif
35252 #undef IoctlSocket
35253 #ifdef __cplusplus
35254 extern "C"
35255 #endif
35256 char IoctlSocket ();
35257 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35258 choke me
35259 #endif
35260
35261 int main (void)
35262 {
35263 return IoctlSocket ();
35264  ;
35265  return 0;
35266 }
35267
35268 _ACEOF
35269 if ac_fn_c_try_link "$LINENO"; then :
35270
35271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35272 $as_echo "yes" >&6; }
35273     tst_links_ioctlsocket_camel="yes"
35274
35275 else
35276
35277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35278 $as_echo "no" >&6; }
35279     tst_links_ioctlsocket_camel="no"
35280
35281 fi
35282 rm -f core conftest.err conftest.$ac_objext \
35283     conftest$ac_exeext conftest.$ac_ext
35284   #
35285   if test "$tst_links_ioctlsocket_camel" = "yes"; then
35286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35287 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35288     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35289 /* end confdefs.h.  */
35290
35291       $curl_includes_stropts
35292
35293 _ACEOF
35294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35295   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35296
35297       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35298 $as_echo "yes" >&6; }
35299       tst_proto_ioctlsocket_camel="yes"
35300
35301 else
35302
35303       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35304 $as_echo "no" >&6; }
35305       tst_proto_ioctlsocket_camel="no"
35306
35307 fi
35308 rm -f conftest*
35309
35310   fi
35311   #
35312   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35314 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35315     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35316 /* end confdefs.h.  */
35317
35318
35319         $curl_includes_stropts
35320
35321 int main (void)
35322 {
35323
35324         if(0 != IoctlSocket(0, 0, 0))
35325           return 1;
35326
35327  ;
35328  return 0;
35329 }
35330
35331 _ACEOF
35332 if ac_fn_c_try_compile "$LINENO"; then :
35333
35334       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35335 $as_echo "yes" >&6; }
35336       tst_compi_ioctlsocket_camel="yes"
35337
35338 else
35339
35340       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35341 $as_echo "no" >&6; }
35342       tst_compi_ioctlsocket_camel="no"
35343
35344 fi
35345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35346   fi
35347   #
35348   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35350 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35351     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35352       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35353 $as_echo "yes" >&6; }
35354       tst_allow_ioctlsocket_camel="yes"
35355     else
35356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35357 $as_echo "no" >&6; }
35358       tst_allow_ioctlsocket_camel="no"
35359     fi
35360   fi
35361   #
35362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35363 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
35364   if test "$tst_links_ioctlsocket_camel" = "yes" &&
35365      test "$tst_proto_ioctlsocket_camel" = "yes" &&
35366      test "$tst_compi_ioctlsocket_camel" = "yes" &&
35367      test "$tst_allow_ioctlsocket_camel" = "yes"; then
35368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35369 $as_echo "yes" >&6; }
35370
35371 cat >>confdefs.h <<_ACEOF
35372 #define HAVE_IOCTLSOCKET_CAMEL 1
35373 _ACEOF
35374
35375     curl_cv_func_ioctlsocket_camel="yes"
35376
35377   #
35378   tst_compi_ioctlsocket_camel_fionbio="unknown"
35379   tst_allow_ioctlsocket_camel_fionbio="unknown"
35380   #
35381   if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
35382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35383 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35384     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35385 /* end confdefs.h.  */
35386
35387
35388         $curl_includes_stropts
35389
35390 int main (void)
35391 {
35392
35393         long flags = 0;
35394         if(0 != ioctlsocket(0, FIONBIO, &flags))
35395           return 1;
35396
35397  ;
35398  return 0;
35399 }
35400
35401 _ACEOF
35402 if ac_fn_c_try_compile "$LINENO"; then :
35403
35404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35405 $as_echo "yes" >&6; }
35406       tst_compi_ioctlsocket_camel_fionbio="yes"
35407
35408 else
35409
35410       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35411 $as_echo "no" >&6; }
35412       tst_compi_ioctlsocket_camel_fionbio="no"
35413
35414 fi
35415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35416   fi
35417   #
35418   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
35419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
35420 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
35421     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
35422       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35423 $as_echo "yes" >&6; }
35424       tst_allow_ioctlsocket_camel_fionbio="yes"
35425     else
35426       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35427 $as_echo "no" >&6; }
35428       tst_allow_ioctlsocket_camel_fionbio="no"
35429     fi
35430   fi
35431   #
35432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
35433 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
35434   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
35435      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
35436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35437 $as_echo "yes" >&6; }
35438
35439 cat >>confdefs.h <<_ACEOF
35440 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
35441 _ACEOF
35442
35443     curl_cv_func_ioctlsocket_camel_fionbio="yes"
35444   else
35445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35446 $as_echo "no" >&6; }
35447     curl_cv_func_ioctlsocket_camel_fionbio="no"
35448   fi
35449
35450   else
35451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35452 $as_echo "no" >&6; }
35453     curl_cv_func_ioctlsocket_camel="no"
35454   fi
35455
35456
35457       #
35458   tst_links_localtime_r="unknown"
35459   tst_proto_localtime_r="unknown"
35460   tst_compi_localtime_r="unknown"
35461   tst_works_localtime_r="unknown"
35462   tst_allow_localtime_r="unknown"
35463   #
35464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
35465 $as_echo_n "checking if localtime_r can be linked... " >&6; }
35466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35467 /* end confdefs.h.  */
35468
35469
35470 #define localtime_r innocuous_localtime_r
35471 #ifdef __STDC__
35472 # include <limits.h>
35473 #else
35474 # include <assert.h>
35475 #endif
35476 #undef localtime_r
35477 #ifdef __cplusplus
35478 extern "C"
35479 #endif
35480 char localtime_r ();
35481 #if defined __stub_localtime_r || defined __stub___localtime_r
35482 choke me
35483 #endif
35484
35485 int main (void)
35486 {
35487 return localtime_r ();
35488  ;
35489  return 0;
35490 }
35491
35492 _ACEOF
35493 if ac_fn_c_try_link "$LINENO"; then :
35494
35495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35496 $as_echo "yes" >&6; }
35497     tst_links_localtime_r="yes"
35498
35499 else
35500
35501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35502 $as_echo "no" >&6; }
35503     tst_links_localtime_r="no"
35504
35505 fi
35506 rm -f core conftest.err conftest.$ac_objext \
35507     conftest$ac_exeext conftest.$ac_ext
35508   #
35509   if test "$tst_links_localtime_r" = "yes"; then
35510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
35511 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
35512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35513 /* end confdefs.h.  */
35514
35515       $curl_includes_time
35516
35517 _ACEOF
35518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35519   $EGREP "localtime_r" >/dev/null 2>&1; then :
35520
35521       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35522 $as_echo "yes" >&6; }
35523       tst_proto_localtime_r="yes"
35524
35525 else
35526
35527       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35528 $as_echo "no" >&6; }
35529       tst_proto_localtime_r="no"
35530
35531 fi
35532 rm -f conftest*
35533
35534   fi
35535   #
35536   if test "$tst_proto_localtime_r" = "yes"; then
35537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
35538 $as_echo_n "checking if localtime_r is compilable... " >&6; }
35539     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35540 /* end confdefs.h.  */
35541
35542
35543         $curl_includes_time
35544
35545 int main (void)
35546 {
35547
35548         if(0 != localtime_r(0, 0))
35549           return 1;
35550
35551  ;
35552  return 0;
35553 }
35554
35555 _ACEOF
35556 if ac_fn_c_try_compile "$LINENO"; then :
35557
35558       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35559 $as_echo "yes" >&6; }
35560       tst_compi_localtime_r="yes"
35561
35562 else
35563
35564       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35565 $as_echo "no" >&6; }
35566       tst_compi_localtime_r="no"
35567
35568 fi
35569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35570   fi
35571   #
35572     if test "x$cross_compiling" != "xyes" &&
35573     test "$tst_compi_localtime_r" = "yes"; then
35574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
35575 $as_echo_n "checking if localtime_r seems to work... " >&6; }
35576     if test "$cross_compiling" = yes; then :
35577   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35579 as_fn_error $? "cannot run test program while cross compiling
35580 See \`config.log' for more details" "$LINENO" 5; }
35581 else
35582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35583 /* end confdefs.h.  */
35584
35585
35586         $curl_includes_stdlib
35587         $curl_includes_time
35588
35589 int main (void)
35590 {
35591
35592         time_t clock = 1170352587;
35593         struct tm *tmp = 0;
35594         struct tm result;
35595         tmp = localtime_r(&clock, &result);
35596         if(tmp)
35597           exit(0);
35598         else
35599           exit(1);
35600
35601  ;
35602  return 0;
35603 }
35604
35605 _ACEOF
35606 if ac_fn_c_try_run "$LINENO"; then :
35607
35608       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35609 $as_echo "yes" >&6; }
35610       tst_works_localtime_r="yes"
35611
35612 else
35613
35614       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35615 $as_echo "no" >&6; }
35616       tst_works_localtime_r="no"
35617
35618 fi
35619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35620   conftest.$ac_objext conftest.beam conftest.$ac_ext
35621 fi
35622
35623   fi
35624   #
35625   if test "$tst_compi_localtime_r" = "yes" &&
35626     test "$tst_works_localtime_r" != "no"; then
35627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
35628 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
35629     if test "x$curl_disallow_localtime_r" != "xyes"; then
35630       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35631 $as_echo "yes" >&6; }
35632       tst_allow_localtime_r="yes"
35633     else
35634       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35635 $as_echo "no" >&6; }
35636       tst_allow_localtime_r="no"
35637     fi
35638   fi
35639   #
35640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
35641 $as_echo_n "checking if localtime_r might be used... " >&6; }
35642   if test "$tst_links_localtime_r" = "yes" &&
35643      test "$tst_proto_localtime_r" = "yes" &&
35644      test "$tst_compi_localtime_r" = "yes" &&
35645      test "$tst_allow_localtime_r" = "yes" &&
35646      test "$tst_works_localtime_r" != "no"; then
35647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35648 $as_echo "yes" >&6; }
35649
35650 cat >>confdefs.h <<_ACEOF
35651 #define HAVE_LOCALTIME_R 1
35652 _ACEOF
35653
35654     curl_cv_func_localtime_r="yes"
35655   else
35656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35657 $as_echo "no" >&6; }
35658     curl_cv_func_localtime_r="no"
35659   fi
35660
35661
35662     #
35663   tst_links_memrchr="unknown"
35664   tst_macro_memrchr="unknown"
35665   tst_proto_memrchr="unknown"
35666   tst_compi_memrchr="unknown"
35667   tst_allow_memrchr="unknown"
35668   #
35669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
35670 $as_echo_n "checking if memrchr can be linked... " >&6; }
35671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35672 /* end confdefs.h.  */
35673
35674
35675 #define memrchr innocuous_memrchr
35676 #ifdef __STDC__
35677 # include <limits.h>
35678 #else
35679 # include <assert.h>
35680 #endif
35681 #undef memrchr
35682 #ifdef __cplusplus
35683 extern "C"
35684 #endif
35685 char memrchr ();
35686 #if defined __stub_memrchr || defined __stub___memrchr
35687 choke me
35688 #endif
35689
35690 int main (void)
35691 {
35692 return memrchr ();
35693  ;
35694  return 0;
35695 }
35696
35697 _ACEOF
35698 if ac_fn_c_try_link "$LINENO"; then :
35699
35700     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35701 $as_echo "yes" >&6; }
35702     tst_links_memrchr="yes"
35703
35704 else
35705
35706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35707 $as_echo "no" >&6; }
35708     tst_links_memrchr="no"
35709
35710 fi
35711 rm -f core conftest.err conftest.$ac_objext \
35712     conftest$ac_exeext conftest.$ac_ext
35713   #
35714   if test "$tst_links_memrchr" = "no"; then
35715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
35716 $as_echo_n "checking if memrchr seems a macro... " >&6; }
35717     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35718 /* end confdefs.h.  */
35719
35720
35721         $curl_includes_string
35722
35723 int main (void)
35724 {
35725
35726         if(0 != memrchr(0, 0, 0))
35727           return 1;
35728
35729  ;
35730  return 0;
35731 }
35732
35733 _ACEOF
35734 if ac_fn_c_try_link "$LINENO"; then :
35735
35736       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35737 $as_echo "yes" >&6; }
35738       tst_macro_memrchr="yes"
35739
35740 else
35741
35742       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35743 $as_echo "no" >&6; }
35744       tst_macro_memrchr="no"
35745
35746 fi
35747 rm -f core conftest.err conftest.$ac_objext \
35748     conftest$ac_exeext conftest.$ac_ext
35749   fi
35750   #
35751   if test "$tst_links_memrchr" = "yes"; then
35752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
35753 $as_echo_n "checking if memrchr is prototyped... " >&6; }
35754     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35755 /* end confdefs.h.  */
35756
35757       $curl_includes_string
35758
35759 _ACEOF
35760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35761   $EGREP "memrchr" >/dev/null 2>&1; then :
35762
35763       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35764 $as_echo "yes" >&6; }
35765       tst_proto_memrchr="yes"
35766
35767 else
35768
35769       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35770 $as_echo "no" >&6; }
35771       tst_proto_memrchr="no"
35772
35773 fi
35774 rm -f conftest*
35775
35776   fi
35777   #
35778   if test "$tst_proto_memrchr" = "yes" ||
35779      test "$tst_macro_memrchr" = "yes"; then
35780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
35781 $as_echo_n "checking if memrchr is compilable... " >&6; }
35782     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35783 /* end confdefs.h.  */
35784
35785
35786         $curl_includes_string
35787
35788 int main (void)
35789 {
35790
35791         if(0 != memrchr(0, 0, 0))
35792           return 1;
35793
35794  ;
35795  return 0;
35796 }
35797
35798 _ACEOF
35799 if ac_fn_c_try_compile "$LINENO"; then :
35800
35801       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35802 $as_echo "yes" >&6; }
35803       tst_compi_memrchr="yes"
35804
35805 else
35806
35807       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35808 $as_echo "no" >&6; }
35809       tst_compi_memrchr="no"
35810
35811 fi
35812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35813   fi
35814   #
35815   if test "$tst_compi_memrchr" = "yes"; then
35816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
35817 $as_echo_n "checking if memrchr usage allowed... " >&6; }
35818     if test "x$curl_disallow_memrchr" != "xyes"; then
35819       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35820 $as_echo "yes" >&6; }
35821       tst_allow_memrchr="yes"
35822     else
35823       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35824 $as_echo "no" >&6; }
35825       tst_allow_memrchr="no"
35826     fi
35827   fi
35828   #
35829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
35830 $as_echo_n "checking if memrchr might be used... " >&6; }
35831   if (test "$tst_proto_memrchr" = "yes" ||
35832       test "$tst_macro_memrchr" = "yes") &&
35833      test "$tst_compi_memrchr" = "yes" &&
35834      test "$tst_allow_memrchr" = "yes"; then
35835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35836 $as_echo "yes" >&6; }
35837
35838 cat >>confdefs.h <<_ACEOF
35839 #define HAVE_MEMRCHR 1
35840 _ACEOF
35841
35842     curl_cv_func_memrchr="yes"
35843   else
35844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35845 $as_echo "no" >&6; }
35846     curl_cv_func_memrchr="no"
35847   fi
35848
35849
35850       #
35851   tst_links_poll="unknown"
35852   tst_proto_poll="unknown"
35853   tst_compi_poll="unknown"
35854   tst_works_poll="unknown"
35855   tst_allow_poll="unknown"
35856   #
35857   case $host_os in
35858     darwin[123456789].*|darwin10.*|darwin11.*|darwin12.*|interix*)
35859                               curl_disallow_poll="yes"
35860       ;;
35861   esac
35862   #
35863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
35864 $as_echo_n "checking if poll can be linked... " >&6; }
35865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35866 /* end confdefs.h.  */
35867
35868
35869       $curl_includes_poll
35870
35871 int main (void)
35872 {
35873
35874       if(0 != poll(0, 0, 0))
35875         return 1;
35876
35877  ;
35878  return 0;
35879 }
35880
35881 _ACEOF
35882 if ac_fn_c_try_link "$LINENO"; then :
35883
35884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35885 $as_echo "yes" >&6; }
35886     tst_links_poll="yes"
35887
35888 else
35889
35890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35891 $as_echo "no" >&6; }
35892     tst_links_poll="no"
35893
35894 fi
35895 rm -f core conftest.err conftest.$ac_objext \
35896     conftest$ac_exeext conftest.$ac_ext
35897   #
35898   if test "$tst_links_poll" = "yes"; then
35899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
35900 $as_echo_n "checking if poll is prototyped... " >&6; }
35901     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35902 /* end confdefs.h.  */
35903
35904       $curl_includes_poll
35905
35906 _ACEOF
35907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35908   $EGREP "poll" >/dev/null 2>&1; then :
35909
35910       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35911 $as_echo "yes" >&6; }
35912       tst_proto_poll="yes"
35913
35914 else
35915
35916       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35917 $as_echo "no" >&6; }
35918       tst_proto_poll="no"
35919
35920 fi
35921 rm -f conftest*
35922
35923   fi
35924   #
35925   if test "$tst_proto_poll" = "yes"; then
35926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
35927 $as_echo_n "checking if poll is compilable... " >&6; }
35928     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35929 /* end confdefs.h.  */
35930
35931
35932         $curl_includes_poll
35933
35934 int main (void)
35935 {
35936
35937         if(0 != poll(0, 0, 0))
35938           return 1;
35939
35940  ;
35941  return 0;
35942 }
35943
35944 _ACEOF
35945 if ac_fn_c_try_compile "$LINENO"; then :
35946
35947       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35948 $as_echo "yes" >&6; }
35949       tst_compi_poll="yes"
35950
35951 else
35952
35953       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35954 $as_echo "no" >&6; }
35955       tst_compi_poll="no"
35956
35957 fi
35958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35959   fi
35960   #
35961     if test "x$cross_compiling" != "xyes" &&
35962     test "$tst_compi_poll" = "yes"; then
35963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
35964 $as_echo_n "checking if poll seems to work... " >&6; }
35965     if test "$cross_compiling" = yes; then :
35966   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35968 as_fn_error $? "cannot run test program while cross compiling
35969 See \`config.log' for more details" "$LINENO" 5; }
35970 else
35971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35972 /* end confdefs.h.  */
35973
35974
35975         $curl_includes_stdlib
35976         $curl_includes_poll
35977
35978 int main (void)
35979 {
35980
35981         if(0 != poll(0, 0, 10))
35982           exit(1); /* fail */
35983         else
35984           exit(0);
35985
35986  ;
35987  return 0;
35988 }
35989
35990 _ACEOF
35991 if ac_fn_c_try_run "$LINENO"; then :
35992
35993       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35994 $as_echo "yes" >&6; }
35995       tst_works_poll="yes"
35996
35997 else
35998
35999       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36000 $as_echo "no" >&6; }
36001       tst_works_poll="no"
36002
36003 fi
36004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36005   conftest.$ac_objext conftest.beam conftest.$ac_ext
36006 fi
36007
36008   fi
36009   #
36010   if test "$tst_compi_poll" = "yes" &&
36011     test "$tst_works_poll" != "no"; then
36012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36013 $as_echo_n "checking if poll usage allowed... " >&6; }
36014     if test "x$curl_disallow_poll" != "xyes"; then
36015       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36016 $as_echo "yes" >&6; }
36017       tst_allow_poll="yes"
36018     else
36019       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36020 $as_echo "no" >&6; }
36021       tst_allow_poll="no"
36022     fi
36023   fi
36024   #
36025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36026 $as_echo_n "checking if poll might be used... " >&6; }
36027   if test "$tst_links_poll" = "yes" &&
36028      test "$tst_proto_poll" = "yes" &&
36029      test "$tst_compi_poll" = "yes" &&
36030      test "$tst_allow_poll" = "yes" &&
36031      test "$tst_works_poll" != "no"; then
36032     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36033 $as_echo "yes" >&6; }
36034
36035 cat >>confdefs.h <<_ACEOF
36036 #define HAVE_POLL 1
36037 _ACEOF
36038
36039
36040 cat >>confdefs.h <<_ACEOF
36041 #define HAVE_POLL_FINE 1
36042 _ACEOF
36043
36044     curl_cv_func_poll="yes"
36045   else
36046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36047 $as_echo "no" >&6; }
36048     curl_cv_func_poll="no"
36049   fi
36050
36051
36052       #
36053   tst_links_setsockopt="unknown"
36054   tst_proto_setsockopt="unknown"
36055   tst_compi_setsockopt="unknown"
36056   tst_allow_setsockopt="unknown"
36057   #
36058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36059 $as_echo_n "checking if setsockopt can be linked... " >&6; }
36060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36061 /* end confdefs.h.  */
36062
36063
36064       $curl_includes_winsock2
36065       $curl_includes_sys_socket
36066
36067 int main (void)
36068 {
36069
36070       if(0 != setsockopt(0, 0, 0, 0, 0))
36071         return 1;
36072
36073  ;
36074  return 0;
36075 }
36076
36077 _ACEOF
36078 if ac_fn_c_try_link "$LINENO"; then :
36079
36080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36081 $as_echo "yes" >&6; }
36082     tst_links_setsockopt="yes"
36083
36084 else
36085
36086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36087 $as_echo "no" >&6; }
36088     tst_links_setsockopt="no"
36089
36090 fi
36091 rm -f core conftest.err conftest.$ac_objext \
36092     conftest$ac_exeext conftest.$ac_ext
36093   #
36094   if test "$tst_links_setsockopt" = "yes"; then
36095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36096 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
36097     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36098 /* end confdefs.h.  */
36099
36100       $curl_includes_winsock2
36101       $curl_includes_sys_socket
36102
36103 _ACEOF
36104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36105   $EGREP "setsockopt" >/dev/null 2>&1; then :
36106
36107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36108 $as_echo "yes" >&6; }
36109       tst_proto_setsockopt="yes"
36110
36111 else
36112
36113       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36114 $as_echo "no" >&6; }
36115       tst_proto_setsockopt="no"
36116
36117 fi
36118 rm -f conftest*
36119
36120   fi
36121   #
36122   if test "$tst_proto_setsockopt" = "yes"; then
36123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36124 $as_echo_n "checking if setsockopt is compilable... " >&6; }
36125     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36126 /* end confdefs.h.  */
36127
36128
36129         $curl_includes_winsock2
36130         $curl_includes_sys_socket
36131
36132 int main (void)
36133 {
36134
36135         if(0 != setsockopt(0, 0, 0, 0, 0))
36136           return 1;
36137
36138  ;
36139  return 0;
36140 }
36141
36142 _ACEOF
36143 if ac_fn_c_try_compile "$LINENO"; then :
36144
36145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36146 $as_echo "yes" >&6; }
36147       tst_compi_setsockopt="yes"
36148
36149 else
36150
36151       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36152 $as_echo "no" >&6; }
36153       tst_compi_setsockopt="no"
36154
36155 fi
36156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36157   fi
36158   #
36159   if test "$tst_compi_setsockopt" = "yes"; then
36160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36161 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
36162     if test "x$curl_disallow_setsockopt" != "xyes"; then
36163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36164 $as_echo "yes" >&6; }
36165       tst_allow_setsockopt="yes"
36166     else
36167       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36168 $as_echo "no" >&6; }
36169       tst_allow_setsockopt="no"
36170     fi
36171   fi
36172   #
36173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36174 $as_echo_n "checking if setsockopt might be used... " >&6; }
36175   if test "$tst_links_setsockopt" = "yes" &&
36176      test "$tst_proto_setsockopt" = "yes" &&
36177      test "$tst_compi_setsockopt" = "yes" &&
36178      test "$tst_allow_setsockopt" = "yes"; then
36179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36180 $as_echo "yes" >&6; }
36181
36182 cat >>confdefs.h <<_ACEOF
36183 #define HAVE_SETSOCKOPT 1
36184 _ACEOF
36185
36186     curl_cv_func_setsockopt="yes"
36187
36188   #
36189   tst_compi_setsockopt_so_nonblock="unknown"
36190   tst_allow_setsockopt_so_nonblock="unknown"
36191   #
36192   if test "$curl_cv_func_setsockopt" = "yes"; then
36193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36194 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36195     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36196 /* end confdefs.h.  */
36197
36198
36199         $curl_includes_winsock2
36200         $curl_includes_sys_socket
36201
36202 int main (void)
36203 {
36204
36205         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36206           return 1;
36207
36208  ;
36209  return 0;
36210 }
36211
36212 _ACEOF
36213 if ac_fn_c_try_compile "$LINENO"; then :
36214
36215       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36216 $as_echo "yes" >&6; }
36217       tst_compi_setsockopt_so_nonblock="yes"
36218
36219 else
36220
36221       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36222 $as_echo "no" >&6; }
36223       tst_compi_setsockopt_so_nonblock="no"
36224
36225 fi
36226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36227   fi
36228   #
36229   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36231 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36232     if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36234 $as_echo "yes" >&6; }
36235       tst_allow_setsockopt_so_nonblock="yes"
36236     else
36237       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36238 $as_echo "no" >&6; }
36239       tst_allow_setsockopt_so_nonblock="no"
36240     fi
36241   fi
36242   #
36243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36244 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36245   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36246      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36248 $as_echo "yes" >&6; }
36249
36250 cat >>confdefs.h <<_ACEOF
36251 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36252 _ACEOF
36253
36254     curl_cv_func_setsockopt_so_nonblock="yes"
36255   else
36256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36257 $as_echo "no" >&6; }
36258     curl_cv_func_setsockopt_so_nonblock="no"
36259   fi
36260
36261   else
36262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36263 $as_echo "no" >&6; }
36264     curl_cv_func_setsockopt="no"
36265   fi
36266
36267
36268 curl_includes_signal="\
36269 /* includes start */
36270 #ifdef HAVE_SYS_TYPES_H
36271 #  include <sys/types.h>
36272 #endif
36273 #ifdef HAVE_SIGNAL_H
36274 #  include <signal.h>
36275 #endif
36276 /* includes end */"
36277   for ac_header in sys/types.h signal.h
36278 do :
36279   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36280 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36281 "
36282 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36283   cat >>confdefs.h <<_ACEOF
36284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36285 _ACEOF
36286
36287 fi
36288
36289 done
36290
36291
36292
36293     #
36294   tst_links_sigaction="unknown"
36295   tst_proto_sigaction="unknown"
36296   tst_compi_sigaction="unknown"
36297   tst_allow_sigaction="unknown"
36298   #
36299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36300 $as_echo_n "checking if sigaction can be linked... " >&6; }
36301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36302 /* end confdefs.h.  */
36303
36304
36305 #define sigaction innocuous_sigaction
36306 #ifdef __STDC__
36307 # include <limits.h>
36308 #else
36309 # include <assert.h>
36310 #endif
36311 #undef sigaction
36312 #ifdef __cplusplus
36313 extern "C"
36314 #endif
36315 char sigaction ();
36316 #if defined __stub_sigaction || defined __stub___sigaction
36317 choke me
36318 #endif
36319
36320 int main (void)
36321 {
36322 return sigaction ();
36323  ;
36324  return 0;
36325 }
36326
36327 _ACEOF
36328 if ac_fn_c_try_link "$LINENO"; then :
36329
36330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36331 $as_echo "yes" >&6; }
36332     tst_links_sigaction="yes"
36333
36334 else
36335
36336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36337 $as_echo "no" >&6; }
36338     tst_links_sigaction="no"
36339
36340 fi
36341 rm -f core conftest.err conftest.$ac_objext \
36342     conftest$ac_exeext conftest.$ac_ext
36343   #
36344   if test "$tst_links_sigaction" = "yes"; then
36345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36346 $as_echo_n "checking if sigaction is prototyped... " >&6; }
36347     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36348 /* end confdefs.h.  */
36349
36350       $curl_includes_signal
36351
36352 _ACEOF
36353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36354   $EGREP "sigaction" >/dev/null 2>&1; then :
36355
36356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36357 $as_echo "yes" >&6; }
36358       tst_proto_sigaction="yes"
36359
36360 else
36361
36362       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36363 $as_echo "no" >&6; }
36364       tst_proto_sigaction="no"
36365
36366 fi
36367 rm -f conftest*
36368
36369   fi
36370   #
36371   if test "$tst_proto_sigaction" = "yes"; then
36372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
36373 $as_echo_n "checking if sigaction is compilable... " >&6; }
36374     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36375 /* end confdefs.h.  */
36376
36377
36378         $curl_includes_signal
36379
36380 int main (void)
36381 {
36382
36383         if(0 != sigaction(0, 0, 0))
36384           return 1;
36385
36386  ;
36387  return 0;
36388 }
36389
36390 _ACEOF
36391 if ac_fn_c_try_compile "$LINENO"; then :
36392
36393       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36394 $as_echo "yes" >&6; }
36395       tst_compi_sigaction="yes"
36396
36397 else
36398
36399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36400 $as_echo "no" >&6; }
36401       tst_compi_sigaction="no"
36402
36403 fi
36404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36405   fi
36406   #
36407   if test "$tst_compi_sigaction" = "yes"; then
36408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
36409 $as_echo_n "checking if sigaction usage allowed... " >&6; }
36410     if test "x$curl_disallow_sigaction" != "xyes"; then
36411       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36412 $as_echo "yes" >&6; }
36413       tst_allow_sigaction="yes"
36414     else
36415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36416 $as_echo "no" >&6; }
36417       tst_allow_sigaction="no"
36418     fi
36419   fi
36420   #
36421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
36422 $as_echo_n "checking if sigaction might be used... " >&6; }
36423   if test "$tst_links_sigaction" = "yes" &&
36424      test "$tst_proto_sigaction" = "yes" &&
36425      test "$tst_compi_sigaction" = "yes" &&
36426      test "$tst_allow_sigaction" = "yes"; then
36427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36428 $as_echo "yes" >&6; }
36429
36430 cat >>confdefs.h <<_ACEOF
36431 #define HAVE_SIGACTION 1
36432 _ACEOF
36433
36434     curl_cv_func_sigaction="yes"
36435   else
36436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36437 $as_echo "no" >&6; }
36438     curl_cv_func_sigaction="no"
36439   fi
36440
36441
36442     #
36443   tst_links_siginterrupt="unknown"
36444   tst_proto_siginterrupt="unknown"
36445   tst_compi_siginterrupt="unknown"
36446   tst_allow_siginterrupt="unknown"
36447   #
36448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
36449 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
36450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36451 /* end confdefs.h.  */
36452
36453
36454 #define siginterrupt innocuous_siginterrupt
36455 #ifdef __STDC__
36456 # include <limits.h>
36457 #else
36458 # include <assert.h>
36459 #endif
36460 #undef siginterrupt
36461 #ifdef __cplusplus
36462 extern "C"
36463 #endif
36464 char siginterrupt ();
36465 #if defined __stub_siginterrupt || defined __stub___siginterrupt
36466 choke me
36467 #endif
36468
36469 int main (void)
36470 {
36471 return siginterrupt ();
36472  ;
36473  return 0;
36474 }
36475
36476 _ACEOF
36477 if ac_fn_c_try_link "$LINENO"; then :
36478
36479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36480 $as_echo "yes" >&6; }
36481     tst_links_siginterrupt="yes"
36482
36483 else
36484
36485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36486 $as_echo "no" >&6; }
36487     tst_links_siginterrupt="no"
36488
36489 fi
36490 rm -f core conftest.err conftest.$ac_objext \
36491     conftest$ac_exeext conftest.$ac_ext
36492   #
36493   if test "$tst_links_siginterrupt" = "yes"; then
36494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
36495 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
36496     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36497 /* end confdefs.h.  */
36498
36499       $curl_includes_signal
36500
36501 _ACEOF
36502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36503   $EGREP "siginterrupt" >/dev/null 2>&1; then :
36504
36505       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36506 $as_echo "yes" >&6; }
36507       tst_proto_siginterrupt="yes"
36508
36509 else
36510
36511       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36512 $as_echo "no" >&6; }
36513       tst_proto_siginterrupt="no"
36514
36515 fi
36516 rm -f conftest*
36517
36518   fi
36519   #
36520   if test "$tst_proto_siginterrupt" = "yes"; then
36521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
36522 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
36523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36524 /* end confdefs.h.  */
36525
36526
36527         $curl_includes_signal
36528
36529 int main (void)
36530 {
36531
36532         if(0 != siginterrupt(0, 0))
36533           return 1;
36534
36535  ;
36536  return 0;
36537 }
36538
36539 _ACEOF
36540 if ac_fn_c_try_compile "$LINENO"; then :
36541
36542       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36543 $as_echo "yes" >&6; }
36544       tst_compi_siginterrupt="yes"
36545
36546 else
36547
36548       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36549 $as_echo "no" >&6; }
36550       tst_compi_siginterrupt="no"
36551
36552 fi
36553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36554   fi
36555   #
36556   if test "$tst_compi_siginterrupt" = "yes"; then
36557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
36558 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
36559     if test "x$curl_disallow_siginterrupt" != "xyes"; then
36560       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36561 $as_echo "yes" >&6; }
36562       tst_allow_siginterrupt="yes"
36563     else
36564       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36565 $as_echo "no" >&6; }
36566       tst_allow_siginterrupt="no"
36567     fi
36568   fi
36569   #
36570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
36571 $as_echo_n "checking if siginterrupt might be used... " >&6; }
36572   if test "$tst_links_siginterrupt" = "yes" &&
36573      test "$tst_proto_siginterrupt" = "yes" &&
36574      test "$tst_compi_siginterrupt" = "yes" &&
36575      test "$tst_allow_siginterrupt" = "yes"; then
36576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36577 $as_echo "yes" >&6; }
36578
36579 cat >>confdefs.h <<_ACEOF
36580 #define HAVE_SIGINTERRUPT 1
36581 _ACEOF
36582
36583     curl_cv_func_siginterrupt="yes"
36584   else
36585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36586 $as_echo "no" >&6; }
36587     curl_cv_func_siginterrupt="no"
36588   fi
36589
36590
36591     #
36592   tst_links_signal="unknown"
36593   tst_proto_signal="unknown"
36594   tst_compi_signal="unknown"
36595   tst_allow_signal="unknown"
36596   #
36597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
36598 $as_echo_n "checking if signal can be linked... " >&6; }
36599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36600 /* end confdefs.h.  */
36601
36602
36603 #define signal innocuous_signal
36604 #ifdef __STDC__
36605 # include <limits.h>
36606 #else
36607 # include <assert.h>
36608 #endif
36609 #undef signal
36610 #ifdef __cplusplus
36611 extern "C"
36612 #endif
36613 char signal ();
36614 #if defined __stub_signal || defined __stub___signal
36615 choke me
36616 #endif
36617
36618 int main (void)
36619 {
36620 return signal ();
36621  ;
36622  return 0;
36623 }
36624
36625 _ACEOF
36626 if ac_fn_c_try_link "$LINENO"; then :
36627
36628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36629 $as_echo "yes" >&6; }
36630     tst_links_signal="yes"
36631
36632 else
36633
36634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36635 $as_echo "no" >&6; }
36636     tst_links_signal="no"
36637
36638 fi
36639 rm -f core conftest.err conftest.$ac_objext \
36640     conftest$ac_exeext conftest.$ac_ext
36641   #
36642   if test "$tst_links_signal" = "yes"; then
36643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
36644 $as_echo_n "checking if signal is prototyped... " >&6; }
36645     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36646 /* end confdefs.h.  */
36647
36648       $curl_includes_signal
36649
36650 _ACEOF
36651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36652   $EGREP "signal" >/dev/null 2>&1; then :
36653
36654       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36655 $as_echo "yes" >&6; }
36656       tst_proto_signal="yes"
36657
36658 else
36659
36660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36661 $as_echo "no" >&6; }
36662       tst_proto_signal="no"
36663
36664 fi
36665 rm -f conftest*
36666
36667   fi
36668   #
36669   if test "$tst_proto_signal" = "yes"; then
36670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
36671 $as_echo_n "checking if signal is compilable... " >&6; }
36672     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36673 /* end confdefs.h.  */
36674
36675
36676         $curl_includes_signal
36677
36678 int main (void)
36679 {
36680
36681         if(0 != signal(0, 0))
36682           return 1;
36683
36684  ;
36685  return 0;
36686 }
36687
36688 _ACEOF
36689 if ac_fn_c_try_compile "$LINENO"; then :
36690
36691       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36692 $as_echo "yes" >&6; }
36693       tst_compi_signal="yes"
36694
36695 else
36696
36697       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36698 $as_echo "no" >&6; }
36699       tst_compi_signal="no"
36700
36701 fi
36702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36703   fi
36704   #
36705   if test "$tst_compi_signal" = "yes"; then
36706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
36707 $as_echo_n "checking if signal usage allowed... " >&6; }
36708     if test "x$curl_disallow_signal" != "xyes"; then
36709       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36710 $as_echo "yes" >&6; }
36711       tst_allow_signal="yes"
36712     else
36713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36714 $as_echo "no" >&6; }
36715       tst_allow_signal="no"
36716     fi
36717   fi
36718   #
36719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
36720 $as_echo_n "checking if signal might be used... " >&6; }
36721   if test "$tst_links_signal" = "yes" &&
36722      test "$tst_proto_signal" = "yes" &&
36723      test "$tst_compi_signal" = "yes" &&
36724      test "$tst_allow_signal" = "yes"; then
36725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36726 $as_echo "yes" >&6; }
36727
36728 cat >>confdefs.h <<_ACEOF
36729 #define HAVE_SIGNAL 1
36730 _ACEOF
36731
36732     curl_cv_func_signal="yes"
36733   else
36734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36735 $as_echo "no" >&6; }
36736     curl_cv_func_signal="no"
36737   fi
36738
36739
36740 curl_includes_setjmp="\
36741 /* includes start */
36742 #ifdef HAVE_SYS_TYPES_H
36743 #  include <sys/types.h>
36744 #endif
36745 #ifdef HAVE_SETJMP_H
36746 #  include <setjmp.h>
36747 #endif
36748 /* includes end */"
36749   for ac_header in sys/types.h setjmp.h
36750 do :
36751   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36752 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
36753 "
36754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36755   cat >>confdefs.h <<_ACEOF
36756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36757 _ACEOF
36758
36759 fi
36760
36761 done
36762
36763
36764
36765     #
36766   tst_links_sigsetjmp="unknown"
36767   tst_macro_sigsetjmp="unknown"
36768   tst_proto_sigsetjmp="unknown"
36769   tst_compi_sigsetjmp="unknown"
36770   tst_allow_sigsetjmp="unknown"
36771   #
36772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
36773 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
36774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36775 /* end confdefs.h.  */
36776
36777
36778 #define sigsetjmp innocuous_sigsetjmp
36779 #ifdef __STDC__
36780 # include <limits.h>
36781 #else
36782 # include <assert.h>
36783 #endif
36784 #undef sigsetjmp
36785 #ifdef __cplusplus
36786 extern "C"
36787 #endif
36788 char sigsetjmp ();
36789 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
36790 choke me
36791 #endif
36792
36793 int main (void)
36794 {
36795 return sigsetjmp ();
36796  ;
36797  return 0;
36798 }
36799
36800 _ACEOF
36801 if ac_fn_c_try_link "$LINENO"; then :
36802
36803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36804 $as_echo "yes" >&6; }
36805     tst_links_sigsetjmp="yes"
36806
36807 else
36808
36809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36810 $as_echo "no" >&6; }
36811     tst_links_sigsetjmp="no"
36812
36813 fi
36814 rm -f core conftest.err conftest.$ac_objext \
36815     conftest$ac_exeext conftest.$ac_ext
36816   #
36817   if test "$tst_links_sigsetjmp" = "no"; then
36818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
36819 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
36820     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36821 /* end confdefs.h.  */
36822
36823
36824         $curl_includes_setjmp
36825
36826 int main (void)
36827 {
36828
36829         sigjmp_buf env;
36830         if(0 != sigsetjmp(env, 0))
36831           return 1;
36832
36833  ;
36834  return 0;
36835 }
36836
36837 _ACEOF
36838 if ac_fn_c_try_link "$LINENO"; then :
36839
36840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36841 $as_echo "yes" >&6; }
36842       tst_macro_sigsetjmp="yes"
36843
36844 else
36845
36846       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36847 $as_echo "no" >&6; }
36848       tst_macro_sigsetjmp="no"
36849
36850 fi
36851 rm -f core conftest.err conftest.$ac_objext \
36852     conftest$ac_exeext conftest.$ac_ext
36853   fi
36854   #
36855   if test "$tst_links_sigsetjmp" = "yes"; then
36856     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
36857 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
36858     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36859 /* end confdefs.h.  */
36860
36861       $curl_includes_setjmp
36862
36863 _ACEOF
36864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36865   $EGREP "sigsetjmp" >/dev/null 2>&1; then :
36866
36867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36868 $as_echo "yes" >&6; }
36869       tst_proto_sigsetjmp="yes"
36870
36871 else
36872
36873       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36874 $as_echo "no" >&6; }
36875       tst_proto_sigsetjmp="no"
36876
36877 fi
36878 rm -f conftest*
36879
36880   fi
36881   #
36882   if test "$tst_proto_sigsetjmp" = "yes" ||
36883      test "$tst_macro_sigsetjmp" = "yes"; then
36884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
36885 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
36886     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36887 /* end confdefs.h.  */
36888
36889
36890         $curl_includes_setjmp
36891
36892 int main (void)
36893 {
36894
36895         sigjmp_buf env;
36896         if(0 != sigsetjmp(env, 0))
36897           return 1;
36898
36899  ;
36900  return 0;
36901 }
36902
36903 _ACEOF
36904 if ac_fn_c_try_compile "$LINENO"; then :
36905
36906       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36907 $as_echo "yes" >&6; }
36908       tst_compi_sigsetjmp="yes"
36909
36910 else
36911
36912       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36913 $as_echo "no" >&6; }
36914       tst_compi_sigsetjmp="no"
36915
36916 fi
36917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36918   fi
36919   #
36920   if test "$tst_compi_sigsetjmp" = "yes"; then
36921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
36922 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
36923     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
36924       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36925 $as_echo "yes" >&6; }
36926       tst_allow_sigsetjmp="yes"
36927     else
36928       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36929 $as_echo "no" >&6; }
36930       tst_allow_sigsetjmp="no"
36931     fi
36932   fi
36933   #
36934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
36935 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
36936   if (test "$tst_proto_sigsetjmp" = "yes" ||
36937       test "$tst_macro_sigsetjmp" = "yes") &&
36938      test "$tst_compi_sigsetjmp" = "yes" &&
36939      test "$tst_allow_sigsetjmp" = "yes"; then
36940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36941 $as_echo "yes" >&6; }
36942
36943 cat >>confdefs.h <<_ACEOF
36944 #define HAVE_SIGSETJMP 1
36945 _ACEOF
36946
36947     curl_cv_func_sigsetjmp="yes"
36948   else
36949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36950 $as_echo "no" >&6; }
36951     curl_cv_func_sigsetjmp="no"
36952   fi
36953
36954
36955         #
36956   tst_links_socket="unknown"
36957   tst_proto_socket="unknown"
36958   tst_compi_socket="unknown"
36959   tst_allow_socket="unknown"
36960   #
36961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
36962 $as_echo_n "checking if socket can be linked... " >&6; }
36963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36964 /* end confdefs.h.  */
36965
36966
36967       $curl_includes_winsock2
36968       $curl_includes_sys_socket
36969       $curl_includes_socket
36970
36971 int main (void)
36972 {
36973
36974       if(0 != socket(0, 0, 0))
36975         return 1;
36976
36977  ;
36978  return 0;
36979 }
36980
36981 _ACEOF
36982 if ac_fn_c_try_link "$LINENO"; then :
36983
36984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36985 $as_echo "yes" >&6; }
36986     tst_links_socket="yes"
36987
36988 else
36989
36990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36991 $as_echo "no" >&6; }
36992     tst_links_socket="no"
36993
36994 fi
36995 rm -f core conftest.err conftest.$ac_objext \
36996     conftest$ac_exeext conftest.$ac_ext
36997   #
36998   if test "$tst_links_socket" = "yes"; then
36999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37000 $as_echo_n "checking if socket is prototyped... " >&6; }
37001     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37002 /* end confdefs.h.  */
37003
37004       $curl_includes_winsock2
37005       $curl_includes_sys_socket
37006       $curl_includes_socket
37007
37008 _ACEOF
37009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37010   $EGREP "socket" >/dev/null 2>&1; then :
37011
37012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37013 $as_echo "yes" >&6; }
37014       tst_proto_socket="yes"
37015
37016 else
37017
37018       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37019 $as_echo "no" >&6; }
37020       tst_proto_socket="no"
37021
37022 fi
37023 rm -f conftest*
37024
37025   fi
37026   #
37027   if test "$tst_proto_socket" = "yes"; then
37028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37029 $as_echo_n "checking if socket is compilable... " >&6; }
37030     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37031 /* end confdefs.h.  */
37032
37033
37034         $curl_includes_winsock2
37035         $curl_includes_sys_socket
37036         $curl_includes_socket
37037
37038 int main (void)
37039 {
37040
37041         if(0 != socket(0, 0, 0))
37042           return 1;
37043
37044  ;
37045  return 0;
37046 }
37047
37048 _ACEOF
37049 if ac_fn_c_try_compile "$LINENO"; then :
37050
37051       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37052 $as_echo "yes" >&6; }
37053       tst_compi_socket="yes"
37054
37055 else
37056
37057       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37058 $as_echo "no" >&6; }
37059       tst_compi_socket="no"
37060
37061 fi
37062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37063   fi
37064   #
37065   if test "$tst_compi_socket" = "yes"; then
37066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37067 $as_echo_n "checking if socket usage allowed... " >&6; }
37068     if test "x$curl_disallow_socket" != "xyes"; then
37069       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37070 $as_echo "yes" >&6; }
37071       tst_allow_socket="yes"
37072     else
37073       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37074 $as_echo "no" >&6; }
37075       tst_allow_socket="no"
37076     fi
37077   fi
37078   #
37079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37080 $as_echo_n "checking if socket might be used... " >&6; }
37081   if test "$tst_links_socket" = "yes" &&
37082      test "$tst_proto_socket" = "yes" &&
37083      test "$tst_compi_socket" = "yes" &&
37084      test "$tst_allow_socket" = "yes"; then
37085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37086 $as_echo "yes" >&6; }
37087
37088 cat >>confdefs.h <<_ACEOF
37089 #define HAVE_SOCKET 1
37090 _ACEOF
37091
37092     curl_cv_func_socket="yes"
37093   else
37094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37095 $as_echo "no" >&6; }
37096     curl_cv_func_socket="no"
37097   fi
37098
37099
37100       #
37101   tst_links_socketpair="unknown"
37102   tst_proto_socketpair="unknown"
37103   tst_compi_socketpair="unknown"
37104   tst_allow_socketpair="unknown"
37105   #
37106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37107 $as_echo_n "checking if socketpair can be linked... " >&6; }
37108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37109 /* end confdefs.h.  */
37110
37111
37112 #define socketpair innocuous_socketpair
37113 #ifdef __STDC__
37114 # include <limits.h>
37115 #else
37116 # include <assert.h>
37117 #endif
37118 #undef socketpair
37119 #ifdef __cplusplus
37120 extern "C"
37121 #endif
37122 char socketpair ();
37123 #if defined __stub_socketpair || defined __stub___socketpair
37124 choke me
37125 #endif
37126
37127 int main (void)
37128 {
37129 return socketpair ();
37130  ;
37131  return 0;
37132 }
37133
37134 _ACEOF
37135 if ac_fn_c_try_link "$LINENO"; then :
37136
37137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37138 $as_echo "yes" >&6; }
37139     tst_links_socketpair="yes"
37140
37141 else
37142
37143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37144 $as_echo "no" >&6; }
37145     tst_links_socketpair="no"
37146
37147 fi
37148 rm -f core conftest.err conftest.$ac_objext \
37149     conftest$ac_exeext conftest.$ac_ext
37150   #
37151   if test "$tst_links_socketpair" = "yes"; then
37152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37153 $as_echo_n "checking if socketpair is prototyped... " >&6; }
37154     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37155 /* end confdefs.h.  */
37156
37157       $curl_includes_sys_socket
37158       $curl_includes_socket
37159
37160 _ACEOF
37161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37162   $EGREP "socketpair" >/dev/null 2>&1; then :
37163
37164       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37165 $as_echo "yes" >&6; }
37166       tst_proto_socketpair="yes"
37167
37168 else
37169
37170       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37171 $as_echo "no" >&6; }
37172       tst_proto_socketpair="no"
37173
37174 fi
37175 rm -f conftest*
37176
37177   fi
37178   #
37179   if test "$tst_proto_socketpair" = "yes"; then
37180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37181 $as_echo_n "checking if socketpair is compilable... " >&6; }
37182     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37183 /* end confdefs.h.  */
37184
37185
37186         $curl_includes_sys_socket
37187         $curl_includes_socket
37188
37189 int main (void)
37190 {
37191
37192         int sv[2];
37193         if(0 != socketpair(0, 0, 0, sv))
37194           return 1;
37195
37196  ;
37197  return 0;
37198 }
37199
37200 _ACEOF
37201 if ac_fn_c_try_compile "$LINENO"; then :
37202
37203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37204 $as_echo "yes" >&6; }
37205       tst_compi_socketpair="yes"
37206
37207 else
37208
37209       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37210 $as_echo "no" >&6; }
37211       tst_compi_socketpair="no"
37212
37213 fi
37214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37215   fi
37216   #
37217   if test "$tst_compi_socketpair" = "yes"; then
37218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37219 $as_echo_n "checking if socketpair usage allowed... " >&6; }
37220     if test "x$curl_disallow_socketpair" != "xyes"; then
37221       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37222 $as_echo "yes" >&6; }
37223       tst_allow_socketpair="yes"
37224     else
37225       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37226 $as_echo "no" >&6; }
37227       tst_allow_socketpair="no"
37228     fi
37229   fi
37230   #
37231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37232 $as_echo_n "checking if socketpair might be used... " >&6; }
37233   if test "$tst_links_socketpair" = "yes" &&
37234      test "$tst_proto_socketpair" = "yes" &&
37235      test "$tst_compi_socketpair" = "yes" &&
37236      test "$tst_allow_socketpair" = "yes"; then
37237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37238 $as_echo "yes" >&6; }
37239
37240 cat >>confdefs.h <<_ACEOF
37241 #define HAVE_SOCKETPAIR 1
37242 _ACEOF
37243
37244     curl_cv_func_socketpair="yes"
37245   else
37246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37247 $as_echo "no" >&6; }
37248     curl_cv_func_socketpair="no"
37249   fi
37250
37251
37252     #
37253   tst_links_strcasecmp="unknown"
37254   tst_proto_strcasecmp="unknown"
37255   tst_compi_strcasecmp="unknown"
37256   tst_allow_strcasecmp="unknown"
37257   #
37258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37259 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
37260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37261 /* end confdefs.h.  */
37262
37263
37264 #define strcasecmp innocuous_strcasecmp
37265 #ifdef __STDC__
37266 # include <limits.h>
37267 #else
37268 # include <assert.h>
37269 #endif
37270 #undef strcasecmp
37271 #ifdef __cplusplus
37272 extern "C"
37273 #endif
37274 char strcasecmp ();
37275 #if defined __stub_strcasecmp || defined __stub___strcasecmp
37276 choke me
37277 #endif
37278
37279 int main (void)
37280 {
37281 return strcasecmp ();
37282  ;
37283  return 0;
37284 }
37285
37286 _ACEOF
37287 if ac_fn_c_try_link "$LINENO"; then :
37288
37289     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37290 $as_echo "yes" >&6; }
37291     tst_links_strcasecmp="yes"
37292
37293 else
37294
37295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37296 $as_echo "no" >&6; }
37297     tst_links_strcasecmp="no"
37298
37299 fi
37300 rm -f core conftest.err conftest.$ac_objext \
37301     conftest$ac_exeext conftest.$ac_ext
37302   #
37303   if test "$tst_links_strcasecmp" = "yes"; then
37304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37305 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37306     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37307 /* end confdefs.h.  */
37308
37309       $curl_includes_string
37310
37311 _ACEOF
37312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37313   $EGREP "strcasecmp" >/dev/null 2>&1; then :
37314
37315       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37316 $as_echo "yes" >&6; }
37317       tst_proto_strcasecmp="yes"
37318
37319 else
37320
37321       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37322 $as_echo "no" >&6; }
37323       tst_proto_strcasecmp="no"
37324
37325 fi
37326 rm -f conftest*
37327
37328   fi
37329   #
37330   if test "$tst_proto_strcasecmp" = "yes"; then
37331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37332 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
37333     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37334 /* end confdefs.h.  */
37335
37336
37337         $curl_includes_string
37338
37339 int main (void)
37340 {
37341
37342         if(0 != strcasecmp(0, 0))
37343           return 1;
37344
37345  ;
37346  return 0;
37347 }
37348
37349 _ACEOF
37350 if ac_fn_c_try_compile "$LINENO"; then :
37351
37352       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37353 $as_echo "yes" >&6; }
37354       tst_compi_strcasecmp="yes"
37355
37356 else
37357
37358       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37359 $as_echo "no" >&6; }
37360       tst_compi_strcasecmp="no"
37361
37362 fi
37363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37364   fi
37365   #
37366   if test "$tst_compi_strcasecmp" = "yes"; then
37367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
37368 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
37369     if test "x$curl_disallow_strcasecmp" != "xyes"; then
37370       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37371 $as_echo "yes" >&6; }
37372       tst_allow_strcasecmp="yes"
37373     else
37374       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37375 $as_echo "no" >&6; }
37376       tst_allow_strcasecmp="no"
37377     fi
37378   fi
37379   #
37380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
37381 $as_echo_n "checking if strcasecmp might be used... " >&6; }
37382   if test "$tst_links_strcasecmp" = "yes" &&
37383      test "$tst_proto_strcasecmp" = "yes" &&
37384      test "$tst_compi_strcasecmp" = "yes" &&
37385      test "$tst_allow_strcasecmp" = "yes"; then
37386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37387 $as_echo "yes" >&6; }
37388
37389 cat >>confdefs.h <<_ACEOF
37390 #define HAVE_STRCASECMP 1
37391 _ACEOF
37392
37393     curl_cv_func_strcasecmp="yes"
37394   else
37395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37396 $as_echo "no" >&6; }
37397     curl_cv_func_strcasecmp="no"
37398   fi
37399
37400
37401     #
37402   tst_links_strcmpi="unknown"
37403   tst_proto_strcmpi="unknown"
37404   tst_compi_strcmpi="unknown"
37405   tst_allow_strcmpi="unknown"
37406   #
37407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
37408 $as_echo_n "checking if strcmpi can be linked... " >&6; }
37409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37410 /* end confdefs.h.  */
37411
37412
37413 #define strcmpi innocuous_strcmpi
37414 #ifdef __STDC__
37415 # include <limits.h>
37416 #else
37417 # include <assert.h>
37418 #endif
37419 #undef strcmpi
37420 #ifdef __cplusplus
37421 extern "C"
37422 #endif
37423 char strcmpi ();
37424 #if defined __stub_strcmpi || defined __stub___strcmpi
37425 choke me
37426 #endif
37427
37428 int main (void)
37429 {
37430 return strcmpi ();
37431  ;
37432  return 0;
37433 }
37434
37435 _ACEOF
37436 if ac_fn_c_try_link "$LINENO"; then :
37437
37438     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37439 $as_echo "yes" >&6; }
37440     tst_links_strcmpi="yes"
37441
37442 else
37443
37444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37445 $as_echo "no" >&6; }
37446     tst_links_strcmpi="no"
37447
37448 fi
37449 rm -f core conftest.err conftest.$ac_objext \
37450     conftest$ac_exeext conftest.$ac_ext
37451   #
37452   if test "$tst_links_strcmpi" = "yes"; then
37453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
37454 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
37455     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37456 /* end confdefs.h.  */
37457
37458       $curl_includes_string
37459
37460 _ACEOF
37461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37462   $EGREP "strcmpi" >/dev/null 2>&1; then :
37463
37464       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37465 $as_echo "yes" >&6; }
37466       tst_proto_strcmpi="yes"
37467
37468 else
37469
37470       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37471 $as_echo "no" >&6; }
37472       tst_proto_strcmpi="no"
37473
37474 fi
37475 rm -f conftest*
37476
37477   fi
37478   #
37479   if test "$tst_proto_strcmpi" = "yes"; then
37480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
37481 $as_echo_n "checking if strcmpi is compilable... " >&6; }
37482     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37483 /* end confdefs.h.  */
37484
37485
37486         $curl_includes_string
37487
37488 int main (void)
37489 {
37490
37491         if(0 != strcmpi(0, 0))
37492           return 1;
37493
37494  ;
37495  return 0;
37496 }
37497
37498 _ACEOF
37499 if ac_fn_c_try_compile "$LINENO"; then :
37500
37501       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37502 $as_echo "yes" >&6; }
37503       tst_compi_strcmpi="yes"
37504
37505 else
37506
37507       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37508 $as_echo "no" >&6; }
37509       tst_compi_strcmpi="no"
37510
37511 fi
37512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37513   fi
37514   #
37515   if test "$tst_compi_strcmpi" = "yes"; then
37516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
37517 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
37518     if test "x$curl_disallow_strcmpi" != "xyes"; then
37519       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37520 $as_echo "yes" >&6; }
37521       tst_allow_strcmpi="yes"
37522     else
37523       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37524 $as_echo "no" >&6; }
37525       tst_allow_strcmpi="no"
37526     fi
37527   fi
37528   #
37529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
37530 $as_echo_n "checking if strcmpi might be used... " >&6; }
37531   if test "$tst_links_strcmpi" = "yes" &&
37532      test "$tst_proto_strcmpi" = "yes" &&
37533      test "$tst_compi_strcmpi" = "yes" &&
37534      test "$tst_allow_strcmpi" = "yes"; then
37535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37536 $as_echo "yes" >&6; }
37537
37538 cat >>confdefs.h <<_ACEOF
37539 #define HAVE_STRCMPI 1
37540 _ACEOF
37541
37542     curl_cv_func_strcmpi="yes"
37543   else
37544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37545 $as_echo "no" >&6; }
37546     curl_cv_func_strcmpi="no"
37547   fi
37548
37549
37550     #
37551   tst_links_strdup="unknown"
37552   tst_proto_strdup="unknown"
37553   tst_compi_strdup="unknown"
37554   tst_allow_strdup="unknown"
37555   #
37556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
37557 $as_echo_n "checking if strdup can be linked... " >&6; }
37558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37559 /* end confdefs.h.  */
37560
37561
37562 #define strdup innocuous_strdup
37563 #ifdef __STDC__
37564 # include <limits.h>
37565 #else
37566 # include <assert.h>
37567 #endif
37568 #undef strdup
37569 #ifdef __cplusplus
37570 extern "C"
37571 #endif
37572 char strdup ();
37573 #if defined __stub_strdup || defined __stub___strdup
37574 choke me
37575 #endif
37576
37577 int main (void)
37578 {
37579 return strdup ();
37580  ;
37581  return 0;
37582 }
37583
37584 _ACEOF
37585 if ac_fn_c_try_link "$LINENO"; then :
37586
37587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37588 $as_echo "yes" >&6; }
37589     tst_links_strdup="yes"
37590
37591 else
37592
37593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37594 $as_echo "no" >&6; }
37595     tst_links_strdup="no"
37596
37597 fi
37598 rm -f core conftest.err conftest.$ac_objext \
37599     conftest$ac_exeext conftest.$ac_ext
37600   #
37601   if test "$tst_links_strdup" = "yes"; then
37602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
37603 $as_echo_n "checking if strdup is prototyped... " >&6; }
37604     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37605 /* end confdefs.h.  */
37606
37607       $curl_includes_string
37608
37609 _ACEOF
37610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37611   $EGREP "strdup" >/dev/null 2>&1; then :
37612
37613       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37614 $as_echo "yes" >&6; }
37615       tst_proto_strdup="yes"
37616
37617 else
37618
37619       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37620 $as_echo "no" >&6; }
37621       tst_proto_strdup="no"
37622
37623 fi
37624 rm -f conftest*
37625
37626   fi
37627   #
37628   if test "$tst_proto_strdup" = "yes"; then
37629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
37630 $as_echo_n "checking if strdup is compilable... " >&6; }
37631     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37632 /* end confdefs.h.  */
37633
37634
37635         $curl_includes_string
37636
37637 int main (void)
37638 {
37639
37640         if(0 != strdup(0))
37641           return 1;
37642
37643  ;
37644  return 0;
37645 }
37646
37647 _ACEOF
37648 if ac_fn_c_try_compile "$LINENO"; then :
37649
37650       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37651 $as_echo "yes" >&6; }
37652       tst_compi_strdup="yes"
37653
37654 else
37655
37656       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37657 $as_echo "no" >&6; }
37658       tst_compi_strdup="no"
37659
37660 fi
37661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37662   fi
37663   #
37664   if test "$tst_compi_strdup" = "yes"; then
37665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
37666 $as_echo_n "checking if strdup usage allowed... " >&6; }
37667     if test "x$curl_disallow_strdup" != "xyes"; then
37668       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37669 $as_echo "yes" >&6; }
37670       tst_allow_strdup="yes"
37671     else
37672       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37673 $as_echo "no" >&6; }
37674       tst_allow_strdup="no"
37675     fi
37676   fi
37677   #
37678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
37679 $as_echo_n "checking if strdup might be used... " >&6; }
37680   if test "$tst_links_strdup" = "yes" &&
37681      test "$tst_proto_strdup" = "yes" &&
37682      test "$tst_compi_strdup" = "yes" &&
37683      test "$tst_allow_strdup" = "yes"; then
37684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37685 $as_echo "yes" >&6; }
37686
37687 cat >>confdefs.h <<_ACEOF
37688 #define HAVE_STRDUP 1
37689 _ACEOF
37690
37691     curl_cv_func_strdup="yes"
37692   else
37693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37694 $as_echo "no" >&6; }
37695     curl_cv_func_strdup="no"
37696   fi
37697
37698
37699       #
37700   tst_links_strerror_r="unknown"
37701   tst_proto_strerror_r="unknown"
37702   tst_compi_strerror_r="unknown"
37703   tst_glibc_strerror_r="unknown"
37704   tst_posix_strerror_r="unknown"
37705   tst_allow_strerror_r="unknown"
37706   tst_works_glibc_strerror_r="unknown"
37707   tst_works_posix_strerror_r="unknown"
37708   tst_glibc_strerror_r_type_arg3="unknown"
37709   tst_posix_strerror_r_type_arg3="unknown"
37710   #
37711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
37712 $as_echo_n "checking if strerror_r can be linked... " >&6; }
37713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37714 /* end confdefs.h.  */
37715
37716
37717 #define strerror_r innocuous_strerror_r
37718 #ifdef __STDC__
37719 # include <limits.h>
37720 #else
37721 # include <assert.h>
37722 #endif
37723 #undef strerror_r
37724 #ifdef __cplusplus
37725 extern "C"
37726 #endif
37727 char strerror_r ();
37728 #if defined __stub_strerror_r || defined __stub___strerror_r
37729 choke me
37730 #endif
37731
37732 int main (void)
37733 {
37734 return strerror_r ();
37735  ;
37736  return 0;
37737 }
37738
37739 _ACEOF
37740 if ac_fn_c_try_link "$LINENO"; then :
37741
37742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37743 $as_echo "yes" >&6; }
37744     tst_links_strerror_r="yes"
37745
37746 else
37747
37748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37749 $as_echo "no" >&6; }
37750     tst_links_strerror_r="no"
37751
37752 fi
37753 rm -f core conftest.err conftest.$ac_objext \
37754     conftest$ac_exeext conftest.$ac_ext
37755   #
37756   if test "$tst_links_strerror_r" = "yes"; then
37757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
37758 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
37759     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37760 /* end confdefs.h.  */
37761
37762       $curl_includes_string
37763
37764 _ACEOF
37765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37766   $EGREP "strerror_r" >/dev/null 2>&1; then :
37767
37768       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37769 $as_echo "yes" >&6; }
37770       tst_proto_strerror_r="yes"
37771
37772 else
37773
37774       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37775 $as_echo "no" >&6; }
37776       tst_proto_strerror_r="no"
37777
37778 fi
37779 rm -f conftest*
37780
37781   fi
37782   #
37783   if test "$tst_proto_strerror_r" = "yes"; then
37784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
37785 $as_echo_n "checking if strerror_r is compilable... " >&6; }
37786     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37787 /* end confdefs.h.  */
37788
37789
37790         $curl_includes_string
37791
37792 int main (void)
37793 {
37794
37795         if(0 != strerror_r(0, 0, 0))
37796           return 1;
37797
37798  ;
37799  return 0;
37800 }
37801
37802 _ACEOF
37803 if ac_fn_c_try_compile "$LINENO"; then :
37804
37805       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37806 $as_echo "yes" >&6; }
37807       tst_compi_strerror_r="yes"
37808
37809 else
37810
37811       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37812 $as_echo "no" >&6; }
37813       tst_compi_strerror_r="no"
37814
37815 fi
37816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37817   fi
37818   #
37819   if test "$tst_compi_strerror_r" = "yes"; then
37820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
37821 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
37822     tst_glibc_strerror_r_type_arg3="unknown"
37823     for arg3 in 'size_t' 'int' 'unsigned int'; do
37824       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
37825         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37826 /* end confdefs.h.  */
37827
37828
37829             $curl_includes_string
37830             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
37831
37832 int main (void)
37833 {
37834
37835             if(0 != strerror_r(0, 0, 0))
37836               return 1;
37837
37838  ;
37839  return 0;
37840 }
37841
37842 _ACEOF
37843 if ac_fn_c_try_compile "$LINENO"; then :
37844
37845           tst_glibc_strerror_r_type_arg3="$arg3"
37846
37847 fi
37848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37849       fi
37850     done
37851     case "$tst_glibc_strerror_r_type_arg3" in
37852       unknown)
37853         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37854 $as_echo "no" >&6; }
37855         tst_glibc_strerror_r="no"
37856         ;;
37857       *)
37858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37859 $as_echo "yes" >&6; }
37860         tst_glibc_strerror_r="yes"
37861         ;;
37862     esac
37863   fi
37864   #
37865     if test "x$cross_compiling" != "xyes" &&
37866     test "$tst_glibc_strerror_r" = "yes"; then
37867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37868 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37869     if test "$cross_compiling" = yes; then :
37870   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37872 as_fn_error $? "cannot run test program while cross compiling
37873 See \`config.log' for more details" "$LINENO" 5; }
37874 else
37875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37876 /* end confdefs.h.  */
37877
37878
37879         $curl_includes_stdlib
37880         $curl_includes_string
37881 #       include <errno.h>
37882
37883 int main (void)
37884 {
37885
37886         char buffer[1024];
37887         char *string = 0;
37888         buffer[0] = '\0';
37889         string = strerror_r(EACCES, buffer, sizeof(buffer));
37890         if(!string)
37891           exit(1); /* fail */
37892         if(!string[0])
37893           exit(1); /* fail */
37894         else
37895           exit(0);
37896
37897  ;
37898  return 0;
37899 }
37900
37901 _ACEOF
37902 if ac_fn_c_try_run "$LINENO"; then :
37903
37904       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37905 $as_echo "yes" >&6; }
37906       tst_works_glibc_strerror_r="yes"
37907
37908 else
37909
37910       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37911 $as_echo "no" >&6; }
37912       tst_works_glibc_strerror_r="no"
37913
37914 fi
37915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37916   conftest.$ac_objext conftest.beam conftest.$ac_ext
37917 fi
37918
37919   fi
37920   #
37921   if test "$tst_compi_strerror_r" = "yes" &&
37922     test "$tst_works_glibc_strerror_r" != "yes"; then
37923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
37924 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
37925     tst_posix_strerror_r_type_arg3="unknown"
37926     for arg3 in 'size_t' 'int' 'unsigned int'; do
37927       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
37928         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37929 /* end confdefs.h.  */
37930
37931
37932             $curl_includes_string
37933             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
37934
37935 int main (void)
37936 {
37937
37938             if(0 != strerror_r(0, 0, 0))
37939               return 1;
37940
37941  ;
37942  return 0;
37943 }
37944
37945 _ACEOF
37946 if ac_fn_c_try_compile "$LINENO"; then :
37947
37948           tst_posix_strerror_r_type_arg3="$arg3"
37949
37950 fi
37951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37952       fi
37953     done
37954     case "$tst_posix_strerror_r_type_arg3" in
37955       unknown)
37956         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37957 $as_echo "no" >&6; }
37958         tst_posix_strerror_r="no"
37959         ;;
37960       *)
37961         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37962 $as_echo "yes" >&6; }
37963         tst_posix_strerror_r="yes"
37964         ;;
37965     esac
37966   fi
37967   #
37968     if test "x$cross_compiling" != "xyes" &&
37969     test "$tst_posix_strerror_r" = "yes"; then
37970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37971 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37972     if test "$cross_compiling" = yes; then :
37973   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37975 as_fn_error $? "cannot run test program while cross compiling
37976 See \`config.log' for more details" "$LINENO" 5; }
37977 else
37978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37979 /* end confdefs.h.  */
37980
37981
37982         $curl_includes_stdlib
37983         $curl_includes_string
37984 #       include <errno.h>
37985
37986 int main (void)
37987 {
37988
37989         char buffer[1024];
37990         int error = 1;
37991         buffer[0] = '\0';
37992         error = strerror_r(EACCES, buffer, sizeof(buffer));
37993         if(error)
37994           exit(1); /* fail */
37995         if(buffer[0] == '\0')
37996           exit(1); /* fail */
37997         else
37998           exit(0);
37999
38000  ;
38001  return 0;
38002 }
38003
38004 _ACEOF
38005 if ac_fn_c_try_run "$LINENO"; then :
38006
38007       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38008 $as_echo "yes" >&6; }
38009       tst_works_posix_strerror_r="yes"
38010
38011 else
38012
38013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38014 $as_echo "no" >&6; }
38015       tst_works_posix_strerror_r="no"
38016
38017 fi
38018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38019   conftest.$ac_objext conftest.beam conftest.$ac_ext
38020 fi
38021
38022   fi
38023   #
38024   if test "$tst_works_glibc_strerror_r" = "yes"; then
38025     tst_posix_strerror_r="no"
38026   fi
38027   if test "$tst_works_posix_strerror_r" = "yes"; then
38028     tst_glibc_strerror_r="no"
38029   fi
38030   if test "$tst_glibc_strerror_r" = "yes" &&
38031     test "$tst_works_glibc_strerror_r" != "no" &&
38032     test "$tst_posix_strerror_r" != "yes"; then
38033     tst_allow_strerror_r="check"
38034   fi
38035   if test "$tst_posix_strerror_r" = "yes" &&
38036     test "$tst_works_posix_strerror_r" != "no" &&
38037     test "$tst_glibc_strerror_r" != "yes"; then
38038     tst_allow_strerror_r="check"
38039   fi
38040   if test "$tst_allow_strerror_r" = "check"; then
38041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38042 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
38043     if test "x$curl_disallow_strerror_r" != "xyes"; then
38044       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38045 $as_echo "yes" >&6; }
38046       tst_allow_strerror_r="yes"
38047     else
38048       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38049 $as_echo "no" >&6; }
38050       tst_allow_strerror_r="no"
38051     fi
38052   fi
38053   #
38054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38055 $as_echo_n "checking if strerror_r might be used... " >&6; }
38056   if test "$tst_links_strerror_r" = "yes" &&
38057      test "$tst_proto_strerror_r" = "yes" &&
38058      test "$tst_compi_strerror_r" = "yes" &&
38059      test "$tst_allow_strerror_r" = "yes"; then
38060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38061 $as_echo "yes" >&6; }
38062     if test "$tst_glibc_strerror_r" = "yes"; then
38063
38064 cat >>confdefs.h <<_ACEOF
38065 #define HAVE_STRERROR_R 1
38066 _ACEOF
38067
38068
38069 cat >>confdefs.h <<_ACEOF
38070 #define HAVE_GLIBC_STRERROR_R 1
38071 _ACEOF
38072
38073
38074 cat >>confdefs.h <<_ACEOF
38075 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38076 _ACEOF
38077
38078     fi
38079     if test "$tst_posix_strerror_r" = "yes"; then
38080
38081 cat >>confdefs.h <<_ACEOF
38082 #define HAVE_STRERROR_R 1
38083 _ACEOF
38084
38085
38086 cat >>confdefs.h <<_ACEOF
38087 #define HAVE_POSIX_STRERROR_R 1
38088 _ACEOF
38089
38090
38091 cat >>confdefs.h <<_ACEOF
38092 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38093 _ACEOF
38094
38095     fi
38096     curl_cv_func_strerror_r="yes"
38097   else
38098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38099 $as_echo "no" >&6; }
38100     curl_cv_func_strerror_r="no"
38101   fi
38102   #
38103   if test "$tst_compi_strerror_r" = "yes" &&
38104      test "$tst_allow_strerror_r" = "unknown"; then
38105     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38106 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38107   fi
38108   #
38109
38110
38111     #
38112   tst_links_stricmp="unknown"
38113   tst_proto_stricmp="unknown"
38114   tst_compi_stricmp="unknown"
38115   tst_allow_stricmp="unknown"
38116   #
38117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38118 $as_echo_n "checking if stricmp can be linked... " >&6; }
38119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38120 /* end confdefs.h.  */
38121
38122
38123 #define stricmp innocuous_stricmp
38124 #ifdef __STDC__
38125 # include <limits.h>
38126 #else
38127 # include <assert.h>
38128 #endif
38129 #undef stricmp
38130 #ifdef __cplusplus
38131 extern "C"
38132 #endif
38133 char stricmp ();
38134 #if defined __stub_stricmp || defined __stub___stricmp
38135 choke me
38136 #endif
38137
38138 int main (void)
38139 {
38140 return stricmp ();
38141  ;
38142  return 0;
38143 }
38144
38145 _ACEOF
38146 if ac_fn_c_try_link "$LINENO"; then :
38147
38148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38149 $as_echo "yes" >&6; }
38150     tst_links_stricmp="yes"
38151
38152 else
38153
38154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38155 $as_echo "no" >&6; }
38156     tst_links_stricmp="no"
38157
38158 fi
38159 rm -f core conftest.err conftest.$ac_objext \
38160     conftest$ac_exeext conftest.$ac_ext
38161   #
38162   if test "$tst_links_stricmp" = "yes"; then
38163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38164 $as_echo_n "checking if stricmp is prototyped... " >&6; }
38165     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38166 /* end confdefs.h.  */
38167
38168       $curl_includes_string
38169
38170 _ACEOF
38171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38172   $EGREP "stricmp" >/dev/null 2>&1; then :
38173
38174       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38175 $as_echo "yes" >&6; }
38176       tst_proto_stricmp="yes"
38177
38178 else
38179
38180       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38181 $as_echo "no" >&6; }
38182       tst_proto_stricmp="no"
38183
38184 fi
38185 rm -f conftest*
38186
38187   fi
38188   #
38189   if test "$tst_proto_stricmp" = "yes"; then
38190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38191 $as_echo_n "checking if stricmp is compilable... " >&6; }
38192     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38193 /* end confdefs.h.  */
38194
38195
38196         $curl_includes_string
38197
38198 int main (void)
38199 {
38200
38201         if(0 != stricmp(0, 0))
38202           return 1;
38203
38204  ;
38205  return 0;
38206 }
38207
38208 _ACEOF
38209 if ac_fn_c_try_compile "$LINENO"; then :
38210
38211       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38212 $as_echo "yes" >&6; }
38213       tst_compi_stricmp="yes"
38214
38215 else
38216
38217       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38218 $as_echo "no" >&6; }
38219       tst_compi_stricmp="no"
38220
38221 fi
38222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38223   fi
38224   #
38225   if test "$tst_compi_stricmp" = "yes"; then
38226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38227 $as_echo_n "checking if stricmp usage allowed... " >&6; }
38228     if test "x$curl_disallow_stricmp" != "xyes"; then
38229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38230 $as_echo "yes" >&6; }
38231       tst_allow_stricmp="yes"
38232     else
38233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38234 $as_echo "no" >&6; }
38235       tst_allow_stricmp="no"
38236     fi
38237   fi
38238   #
38239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38240 $as_echo_n "checking if stricmp might be used... " >&6; }
38241   if test "$tst_links_stricmp" = "yes" &&
38242      test "$tst_proto_stricmp" = "yes" &&
38243      test "$tst_compi_stricmp" = "yes" &&
38244      test "$tst_allow_stricmp" = "yes"; then
38245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38246 $as_echo "yes" >&6; }
38247
38248 cat >>confdefs.h <<_ACEOF
38249 #define HAVE_STRICMP 1
38250 _ACEOF
38251
38252     curl_cv_func_stricmp="yes"
38253   else
38254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38255 $as_echo "no" >&6; }
38256     curl_cv_func_stricmp="no"
38257   fi
38258
38259
38260     #
38261   tst_links_strncasecmp="unknown"
38262   tst_proto_strncasecmp="unknown"
38263   tst_compi_strncasecmp="unknown"
38264   tst_allow_strncasecmp="unknown"
38265   #
38266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38267 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
38268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38269 /* end confdefs.h.  */
38270
38271
38272 #define strncasecmp innocuous_strncasecmp
38273 #ifdef __STDC__
38274 # include <limits.h>
38275 #else
38276 # include <assert.h>
38277 #endif
38278 #undef strncasecmp
38279 #ifdef __cplusplus
38280 extern "C"
38281 #endif
38282 char strncasecmp ();
38283 #if defined __stub_strncasecmp || defined __stub___strncasecmp
38284 choke me
38285 #endif
38286
38287 int main (void)
38288 {
38289 return strncasecmp ();
38290  ;
38291  return 0;
38292 }
38293
38294 _ACEOF
38295 if ac_fn_c_try_link "$LINENO"; then :
38296
38297     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38298 $as_echo "yes" >&6; }
38299     tst_links_strncasecmp="yes"
38300
38301 else
38302
38303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38304 $as_echo "no" >&6; }
38305     tst_links_strncasecmp="no"
38306
38307 fi
38308 rm -f core conftest.err conftest.$ac_objext \
38309     conftest$ac_exeext conftest.$ac_ext
38310   #
38311   if test "$tst_links_strncasecmp" = "yes"; then
38312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38313 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38314     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38315 /* end confdefs.h.  */
38316
38317       $curl_includes_string
38318
38319 _ACEOF
38320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38321   $EGREP "strncasecmp" >/dev/null 2>&1; then :
38322
38323       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38324 $as_echo "yes" >&6; }
38325       tst_proto_strncasecmp="yes"
38326
38327 else
38328
38329       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38330 $as_echo "no" >&6; }
38331       tst_proto_strncasecmp="no"
38332
38333 fi
38334 rm -f conftest*
38335
38336   fi
38337   #
38338   if test "$tst_proto_strncasecmp" = "yes"; then
38339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38340 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
38341     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38342 /* end confdefs.h.  */
38343
38344
38345         $curl_includes_string
38346
38347 int main (void)
38348 {
38349
38350         if(0 != strncasecmp(0, 0, 0))
38351           return 1;
38352
38353  ;
38354  return 0;
38355 }
38356
38357 _ACEOF
38358 if ac_fn_c_try_compile "$LINENO"; then :
38359
38360       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38361 $as_echo "yes" >&6; }
38362       tst_compi_strncasecmp="yes"
38363
38364 else
38365
38366       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38367 $as_echo "no" >&6; }
38368       tst_compi_strncasecmp="no"
38369
38370 fi
38371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38372   fi
38373   #
38374   if test "$tst_compi_strncasecmp" = "yes"; then
38375     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
38376 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
38377     if test "x$curl_disallow_strncasecmp" != "xyes"; then
38378       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38379 $as_echo "yes" >&6; }
38380       tst_allow_strncasecmp="yes"
38381     else
38382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38383 $as_echo "no" >&6; }
38384       tst_allow_strncasecmp="no"
38385     fi
38386   fi
38387   #
38388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
38389 $as_echo_n "checking if strncasecmp might be used... " >&6; }
38390   if test "$tst_links_strncasecmp" = "yes" &&
38391      test "$tst_proto_strncasecmp" = "yes" &&
38392      test "$tst_compi_strncasecmp" = "yes" &&
38393      test "$tst_allow_strncasecmp" = "yes"; then
38394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38395 $as_echo "yes" >&6; }
38396
38397 cat >>confdefs.h <<_ACEOF
38398 #define HAVE_STRNCASECMP 1
38399 _ACEOF
38400
38401     curl_cv_func_strncasecmp="yes"
38402   else
38403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38404 $as_echo "no" >&6; }
38405     curl_cv_func_strncasecmp="no"
38406   fi
38407
38408
38409     #
38410   tst_links_strncmpi="unknown"
38411   tst_proto_strncmpi="unknown"
38412   tst_compi_strncmpi="unknown"
38413   tst_allow_strncmpi="unknown"
38414   #
38415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
38416 $as_echo_n "checking if strncmpi can be linked... " >&6; }
38417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38418 /* end confdefs.h.  */
38419
38420
38421 #define strncmpi innocuous_strncmpi
38422 #ifdef __STDC__
38423 # include <limits.h>
38424 #else
38425 # include <assert.h>
38426 #endif
38427 #undef strncmpi
38428 #ifdef __cplusplus
38429 extern "C"
38430 #endif
38431 char strncmpi ();
38432 #if defined __stub_strncmpi || defined __stub___strncmpi
38433 choke me
38434 #endif
38435
38436 int main (void)
38437 {
38438 return strncmpi ();
38439  ;
38440  return 0;
38441 }
38442
38443 _ACEOF
38444 if ac_fn_c_try_link "$LINENO"; then :
38445
38446     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38447 $as_echo "yes" >&6; }
38448     tst_links_strncmpi="yes"
38449
38450 else
38451
38452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38453 $as_echo "no" >&6; }
38454     tst_links_strncmpi="no"
38455
38456 fi
38457 rm -f core conftest.err conftest.$ac_objext \
38458     conftest$ac_exeext conftest.$ac_ext
38459   #
38460   if test "$tst_links_strncmpi" = "yes"; then
38461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
38462 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
38463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38464 /* end confdefs.h.  */
38465
38466       $curl_includes_string
38467
38468 _ACEOF
38469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38470   $EGREP "strncmpi" >/dev/null 2>&1; then :
38471
38472       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38473 $as_echo "yes" >&6; }
38474       tst_proto_strncmpi="yes"
38475
38476 else
38477
38478       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38479 $as_echo "no" >&6; }
38480       tst_proto_strncmpi="no"
38481
38482 fi
38483 rm -f conftest*
38484
38485   fi
38486   #
38487   if test "$tst_proto_strncmpi" = "yes"; then
38488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
38489 $as_echo_n "checking if strncmpi is compilable... " >&6; }
38490     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38491 /* end confdefs.h.  */
38492
38493
38494         $curl_includes_string
38495
38496 int main (void)
38497 {
38498
38499         if(0 != strncmpi(0, 0))
38500           return 1;
38501
38502  ;
38503  return 0;
38504 }
38505
38506 _ACEOF
38507 if ac_fn_c_try_compile "$LINENO"; then :
38508
38509       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38510 $as_echo "yes" >&6; }
38511       tst_compi_strncmpi="yes"
38512
38513 else
38514
38515       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38516 $as_echo "no" >&6; }
38517       tst_compi_strncmpi="no"
38518
38519 fi
38520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38521   fi
38522   #
38523   if test "$tst_compi_strncmpi" = "yes"; then
38524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
38525 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
38526     if test "x$curl_disallow_strncmpi" != "xyes"; then
38527       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38528 $as_echo "yes" >&6; }
38529       tst_allow_strncmpi="yes"
38530     else
38531       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38532 $as_echo "no" >&6; }
38533       tst_allow_strncmpi="no"
38534     fi
38535   fi
38536   #
38537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
38538 $as_echo_n "checking if strncmpi might be used... " >&6; }
38539   if test "$tst_links_strncmpi" = "yes" &&
38540      test "$tst_proto_strncmpi" = "yes" &&
38541      test "$tst_compi_strncmpi" = "yes" &&
38542      test "$tst_allow_strncmpi" = "yes"; then
38543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38544 $as_echo "yes" >&6; }
38545
38546 cat >>confdefs.h <<_ACEOF
38547 #define HAVE_STRNCMPI 1
38548 _ACEOF
38549
38550     curl_cv_func_strncmpi="yes"
38551   else
38552     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38553 $as_echo "no" >&6; }
38554     curl_cv_func_strncmpi="no"
38555   fi
38556
38557
38558     #
38559   tst_links_strnicmp="unknown"
38560   tst_proto_strnicmp="unknown"
38561   tst_compi_strnicmp="unknown"
38562   tst_allow_strnicmp="unknown"
38563   #
38564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
38565 $as_echo_n "checking if strnicmp can be linked... " >&6; }
38566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38567 /* end confdefs.h.  */
38568
38569
38570 #define strnicmp innocuous_strnicmp
38571 #ifdef __STDC__
38572 # include <limits.h>
38573 #else
38574 # include <assert.h>
38575 #endif
38576 #undef strnicmp
38577 #ifdef __cplusplus
38578 extern "C"
38579 #endif
38580 char strnicmp ();
38581 #if defined __stub_strnicmp || defined __stub___strnicmp
38582 choke me
38583 #endif
38584
38585 int main (void)
38586 {
38587 return strnicmp ();
38588  ;
38589  return 0;
38590 }
38591
38592 _ACEOF
38593 if ac_fn_c_try_link "$LINENO"; then :
38594
38595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38596 $as_echo "yes" >&6; }
38597     tst_links_strnicmp="yes"
38598
38599 else
38600
38601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38602 $as_echo "no" >&6; }
38603     tst_links_strnicmp="no"
38604
38605 fi
38606 rm -f core conftest.err conftest.$ac_objext \
38607     conftest$ac_exeext conftest.$ac_ext
38608   #
38609   if test "$tst_links_strnicmp" = "yes"; then
38610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
38611 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
38612     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38613 /* end confdefs.h.  */
38614
38615       $curl_includes_string
38616
38617 _ACEOF
38618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38619   $EGREP "strnicmp" >/dev/null 2>&1; then :
38620
38621       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38622 $as_echo "yes" >&6; }
38623       tst_proto_strnicmp="yes"
38624
38625 else
38626
38627       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38628 $as_echo "no" >&6; }
38629       tst_proto_strnicmp="no"
38630
38631 fi
38632 rm -f conftest*
38633
38634   fi
38635   #
38636   if test "$tst_proto_strnicmp" = "yes"; then
38637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
38638 $as_echo_n "checking if strnicmp is compilable... " >&6; }
38639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38640 /* end confdefs.h.  */
38641
38642
38643         $curl_includes_string
38644
38645 int main (void)
38646 {
38647
38648         if(0 != strnicmp(0, 0))
38649           return 1;
38650
38651  ;
38652  return 0;
38653 }
38654
38655 _ACEOF
38656 if ac_fn_c_try_compile "$LINENO"; then :
38657
38658       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38659 $as_echo "yes" >&6; }
38660       tst_compi_strnicmp="yes"
38661
38662 else
38663
38664       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38665 $as_echo "no" >&6; }
38666       tst_compi_strnicmp="no"
38667
38668 fi
38669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38670   fi
38671   #
38672   if test "$tst_compi_strnicmp" = "yes"; then
38673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
38674 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
38675     if test "x$curl_disallow_strnicmp" != "xyes"; then
38676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38677 $as_echo "yes" >&6; }
38678       tst_allow_strnicmp="yes"
38679     else
38680       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38681 $as_echo "no" >&6; }
38682       tst_allow_strnicmp="no"
38683     fi
38684   fi
38685   #
38686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
38687 $as_echo_n "checking if strnicmp might be used... " >&6; }
38688   if test "$tst_links_strnicmp" = "yes" &&
38689      test "$tst_proto_strnicmp" = "yes" &&
38690      test "$tst_compi_strnicmp" = "yes" &&
38691      test "$tst_allow_strnicmp" = "yes"; then
38692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38693 $as_echo "yes" >&6; }
38694
38695 cat >>confdefs.h <<_ACEOF
38696 #define HAVE_STRNICMP 1
38697 _ACEOF
38698
38699     curl_cv_func_strnicmp="yes"
38700   else
38701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38702 $as_echo "no" >&6; }
38703     curl_cv_func_strnicmp="no"
38704   fi
38705
38706
38707     #
38708   tst_links_strstr="unknown"
38709   tst_proto_strstr="unknown"
38710   tst_compi_strstr="unknown"
38711   tst_allow_strstr="unknown"
38712   #
38713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
38714 $as_echo_n "checking if strstr can be linked... " >&6; }
38715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38716 /* end confdefs.h.  */
38717
38718
38719 #define strstr innocuous_strstr
38720 #ifdef __STDC__
38721 # include <limits.h>
38722 #else
38723 # include <assert.h>
38724 #endif
38725 #undef strstr
38726 #ifdef __cplusplus
38727 extern "C"
38728 #endif
38729 char strstr ();
38730 #if defined __stub_strstr || defined __stub___strstr
38731 choke me
38732 #endif
38733
38734 int main (void)
38735 {
38736 return strstr ();
38737  ;
38738  return 0;
38739 }
38740
38741 _ACEOF
38742 if ac_fn_c_try_link "$LINENO"; then :
38743
38744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38745 $as_echo "yes" >&6; }
38746     tst_links_strstr="yes"
38747
38748 else
38749
38750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38751 $as_echo "no" >&6; }
38752     tst_links_strstr="no"
38753
38754 fi
38755 rm -f core conftest.err conftest.$ac_objext \
38756     conftest$ac_exeext conftest.$ac_ext
38757   #
38758   if test "$tst_links_strstr" = "yes"; then
38759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
38760 $as_echo_n "checking if strstr is prototyped... " >&6; }
38761     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38762 /* end confdefs.h.  */
38763
38764       $curl_includes_string
38765
38766 _ACEOF
38767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38768   $EGREP "strstr" >/dev/null 2>&1; then :
38769
38770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38771 $as_echo "yes" >&6; }
38772       tst_proto_strstr="yes"
38773
38774 else
38775
38776       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38777 $as_echo "no" >&6; }
38778       tst_proto_strstr="no"
38779
38780 fi
38781 rm -f conftest*
38782
38783   fi
38784   #
38785   if test "$tst_proto_strstr" = "yes"; then
38786     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
38787 $as_echo_n "checking if strstr is compilable... " >&6; }
38788     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38789 /* end confdefs.h.  */
38790
38791
38792         $curl_includes_string
38793
38794 int main (void)
38795 {
38796
38797         if(0 != strstr(0, 0))
38798           return 1;
38799
38800  ;
38801  return 0;
38802 }
38803
38804 _ACEOF
38805 if ac_fn_c_try_compile "$LINENO"; then :
38806
38807       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38808 $as_echo "yes" >&6; }
38809       tst_compi_strstr="yes"
38810
38811 else
38812
38813       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38814 $as_echo "no" >&6; }
38815       tst_compi_strstr="no"
38816
38817 fi
38818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38819   fi
38820   #
38821   if test "$tst_compi_strstr" = "yes"; then
38822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
38823 $as_echo_n "checking if strstr usage allowed... " >&6; }
38824     if test "x$curl_disallow_strstr" != "xyes"; then
38825       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38826 $as_echo "yes" >&6; }
38827       tst_allow_strstr="yes"
38828     else
38829       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38830 $as_echo "no" >&6; }
38831       tst_allow_strstr="no"
38832     fi
38833   fi
38834   #
38835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
38836 $as_echo_n "checking if strstr might be used... " >&6; }
38837   if test "$tst_links_strstr" = "yes" &&
38838      test "$tst_proto_strstr" = "yes" &&
38839      test "$tst_compi_strstr" = "yes" &&
38840      test "$tst_allow_strstr" = "yes"; then
38841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38842 $as_echo "yes" >&6; }
38843
38844 cat >>confdefs.h <<_ACEOF
38845 #define HAVE_STRSTR 1
38846 _ACEOF
38847
38848     curl_cv_func_strstr="yes"
38849   else
38850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38851 $as_echo "no" >&6; }
38852     curl_cv_func_strstr="no"
38853   fi
38854
38855
38856     #
38857   tst_links_strtok_r="unknown"
38858   tst_proto_strtok_r="unknown"
38859   tst_compi_strtok_r="unknown"
38860   tst_allow_strtok_r="unknown"
38861   #
38862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
38863 $as_echo_n "checking if strtok_r can be linked... " >&6; }
38864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38865 /* end confdefs.h.  */
38866
38867
38868 #define strtok_r innocuous_strtok_r
38869 #ifdef __STDC__
38870 # include <limits.h>
38871 #else
38872 # include <assert.h>
38873 #endif
38874 #undef strtok_r
38875 #ifdef __cplusplus
38876 extern "C"
38877 #endif
38878 char strtok_r ();
38879 #if defined __stub_strtok_r || defined __stub___strtok_r
38880 choke me
38881 #endif
38882
38883 int main (void)
38884 {
38885 return strtok_r ();
38886  ;
38887  return 0;
38888 }
38889
38890 _ACEOF
38891 if ac_fn_c_try_link "$LINENO"; then :
38892
38893     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38894 $as_echo "yes" >&6; }
38895     tst_links_strtok_r="yes"
38896
38897 else
38898
38899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38900 $as_echo "no" >&6; }
38901     tst_links_strtok_r="no"
38902
38903 fi
38904 rm -f core conftest.err conftest.$ac_objext \
38905     conftest$ac_exeext conftest.$ac_ext
38906   #
38907   if test "$tst_links_strtok_r" = "yes"; then
38908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
38909 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
38910     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38911 /* end confdefs.h.  */
38912
38913       $curl_includes_string
38914
38915 _ACEOF
38916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38917   $EGREP "strtok_r" >/dev/null 2>&1; then :
38918
38919       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38920 $as_echo "yes" >&6; }
38921       tst_proto_strtok_r="yes"
38922
38923 else
38924
38925       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38926 $as_echo "no" >&6; }
38927       tst_proto_strtok_r="no"
38928
38929 fi
38930 rm -f conftest*
38931
38932   fi
38933   #
38934   if test "$tst_proto_strtok_r" = "yes"; then
38935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
38936 $as_echo_n "checking if strtok_r is compilable... " >&6; }
38937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38938 /* end confdefs.h.  */
38939
38940
38941         $curl_includes_string
38942
38943 int main (void)
38944 {
38945
38946         if(0 != strtok_r(0, 0, 0))
38947           return 1;
38948
38949  ;
38950  return 0;
38951 }
38952
38953 _ACEOF
38954 if ac_fn_c_try_compile "$LINENO"; then :
38955
38956       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38957 $as_echo "yes" >&6; }
38958       tst_compi_strtok_r="yes"
38959
38960 else
38961
38962       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38963 $as_echo "no" >&6; }
38964       tst_compi_strtok_r="no"
38965
38966 fi
38967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38968   fi
38969   #
38970   if test "$tst_compi_strtok_r" = "yes"; then
38971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
38972 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
38973     if test "x$curl_disallow_strtok_r" != "xyes"; then
38974       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38975 $as_echo "yes" >&6; }
38976       tst_allow_strtok_r="yes"
38977     else
38978       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38979 $as_echo "no" >&6; }
38980       tst_allow_strtok_r="no"
38981     fi
38982   fi
38983   #
38984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
38985 $as_echo_n "checking if strtok_r might be used... " >&6; }
38986   if test "$tst_links_strtok_r" = "yes" &&
38987      test "$tst_proto_strtok_r" = "yes" &&
38988      test "$tst_compi_strtok_r" = "yes" &&
38989      test "$tst_allow_strtok_r" = "yes"; then
38990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38991 $as_echo "yes" >&6; }
38992
38993 cat >>confdefs.h <<_ACEOF
38994 #define HAVE_STRTOK_R 1
38995 _ACEOF
38996
38997     curl_cv_func_strtok_r="yes"
38998   else
38999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39000 $as_echo "no" >&6; }
39001     curl_cv_func_strtok_r="no"
39002   fi
39003
39004
39005     #
39006   tst_links_strtoll="unknown"
39007   tst_proto_strtoll="unknown"
39008   tst_compi_strtoll="unknown"
39009   tst_allow_strtoll="unknown"
39010   #
39011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39012 $as_echo_n "checking if strtoll can be linked... " >&6; }
39013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39014 /* end confdefs.h.  */
39015
39016
39017 #define strtoll innocuous_strtoll
39018 #ifdef __STDC__
39019 # include <limits.h>
39020 #else
39021 # include <assert.h>
39022 #endif
39023 #undef strtoll
39024 #ifdef __cplusplus
39025 extern "C"
39026 #endif
39027 char strtoll ();
39028 #if defined __stub_strtoll || defined __stub___strtoll
39029 choke me
39030 #endif
39031
39032 int main (void)
39033 {
39034 return strtoll ();
39035  ;
39036  return 0;
39037 }
39038
39039 _ACEOF
39040 if ac_fn_c_try_link "$LINENO"; then :
39041
39042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39043 $as_echo "yes" >&6; }
39044     tst_links_strtoll="yes"
39045
39046 else
39047
39048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39049 $as_echo "no" >&6; }
39050     tst_links_strtoll="no"
39051
39052 fi
39053 rm -f core conftest.err conftest.$ac_objext \
39054     conftest$ac_exeext conftest.$ac_ext
39055   #
39056   if test "$tst_links_strtoll" = "yes"; then
39057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39058 $as_echo_n "checking if strtoll is prototyped... " >&6; }
39059     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39060 /* end confdefs.h.  */
39061
39062       $curl_includes_stdlib
39063
39064 _ACEOF
39065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39066   $EGREP "strtoll" >/dev/null 2>&1; then :
39067
39068       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39069 $as_echo "yes" >&6; }
39070       tst_proto_strtoll="yes"
39071
39072 else
39073
39074       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39075 $as_echo "no" >&6; }
39076       tst_proto_strtoll="no"
39077
39078 fi
39079 rm -f conftest*
39080
39081   fi
39082   #
39083   if test "$tst_proto_strtoll" = "yes"; then
39084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39085 $as_echo_n "checking if strtoll is compilable... " >&6; }
39086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39087 /* end confdefs.h.  */
39088
39089
39090         $curl_includes_stdlib
39091
39092 int main (void)
39093 {
39094
39095         if(0 != strtoll(0, 0, 0))
39096           return 1;
39097
39098  ;
39099  return 0;
39100 }
39101
39102 _ACEOF
39103 if ac_fn_c_try_compile "$LINENO"; then :
39104
39105       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39106 $as_echo "yes" >&6; }
39107       tst_compi_strtoll="yes"
39108
39109 else
39110
39111       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39112 $as_echo "no" >&6; }
39113       tst_compi_strtoll="no"
39114
39115 fi
39116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39117   fi
39118   #
39119   if test "$tst_compi_strtoll" = "yes"; then
39120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39121 $as_echo_n "checking if strtoll usage allowed... " >&6; }
39122     if test "x$curl_disallow_strtoll" != "xyes"; then
39123       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39124 $as_echo "yes" >&6; }
39125       tst_allow_strtoll="yes"
39126     else
39127       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39128 $as_echo "no" >&6; }
39129       tst_allow_strtoll="no"
39130     fi
39131   fi
39132   #
39133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39134 $as_echo_n "checking if strtoll might be used... " >&6; }
39135   if test "$tst_links_strtoll" = "yes" &&
39136      test "$tst_proto_strtoll" = "yes" &&
39137      test "$tst_compi_strtoll" = "yes" &&
39138      test "$tst_allow_strtoll" = "yes"; then
39139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39140 $as_echo "yes" >&6; }
39141
39142 cat >>confdefs.h <<_ACEOF
39143 #define HAVE_STRTOLL 1
39144 _ACEOF
39145
39146     curl_cv_func_strtoll="yes"
39147   else
39148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39149 $as_echo "no" >&6; }
39150     curl_cv_func_strtoll="no"
39151   fi
39152
39153
39154 curl_includes_sys_uio="\
39155 /* includes start */
39156 #ifdef HAVE_SYS_TYPES_H
39157 #  include <sys/types.h>
39158 #endif
39159 #ifdef HAVE_SYS_UIO_H
39160 #  include <sys/uio.h>
39161 #endif
39162 /* includes end */"
39163   for ac_header in sys/types.h sys/uio.h
39164 do :
39165   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39166 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39167 "
39168 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39169   cat >>confdefs.h <<_ACEOF
39170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39171 _ACEOF
39172
39173 fi
39174
39175 done
39176
39177
39178
39179     #
39180   tst_links_writev="unknown"
39181   tst_proto_writev="unknown"
39182   tst_compi_writev="unknown"
39183   tst_allow_writev="unknown"
39184   #
39185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39186 $as_echo_n "checking if writev can be linked... " >&6; }
39187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39188 /* end confdefs.h.  */
39189
39190
39191 #define writev innocuous_writev
39192 #ifdef __STDC__
39193 # include <limits.h>
39194 #else
39195 # include <assert.h>
39196 #endif
39197 #undef writev
39198 #ifdef __cplusplus
39199 extern "C"
39200 #endif
39201 char writev ();
39202 #if defined __stub_writev || defined __stub___writev
39203 choke me
39204 #endif
39205
39206 int main (void)
39207 {
39208 return writev ();
39209  ;
39210  return 0;
39211 }
39212
39213 _ACEOF
39214 if ac_fn_c_try_link "$LINENO"; then :
39215
39216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39217 $as_echo "yes" >&6; }
39218     tst_links_writev="yes"
39219
39220 else
39221
39222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39223 $as_echo "no" >&6; }
39224     tst_links_writev="no"
39225
39226 fi
39227 rm -f core conftest.err conftest.$ac_objext \
39228     conftest$ac_exeext conftest.$ac_ext
39229   #
39230   if test "$tst_links_writev" = "yes"; then
39231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39232 $as_echo_n "checking if writev is prototyped... " >&6; }
39233     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39234 /* end confdefs.h.  */
39235
39236       $curl_includes_sys_uio
39237
39238 _ACEOF
39239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39240   $EGREP "writev" >/dev/null 2>&1; then :
39241
39242       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39243 $as_echo "yes" >&6; }
39244       tst_proto_writev="yes"
39245
39246 else
39247
39248       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39249 $as_echo "no" >&6; }
39250       tst_proto_writev="no"
39251
39252 fi
39253 rm -f conftest*
39254
39255   fi
39256   #
39257   if test "$tst_proto_writev" = "yes"; then
39258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39259 $as_echo_n "checking if writev is compilable... " >&6; }
39260     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39261 /* end confdefs.h.  */
39262
39263
39264         $curl_includes_sys_uio
39265
39266 int main (void)
39267 {
39268
39269         if(0 != writev(0, 0, 0))
39270           return 1;
39271
39272  ;
39273  return 0;
39274 }
39275
39276 _ACEOF
39277 if ac_fn_c_try_compile "$LINENO"; then :
39278
39279       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39280 $as_echo "yes" >&6; }
39281       tst_compi_writev="yes"
39282
39283 else
39284
39285       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39286 $as_echo "no" >&6; }
39287       tst_compi_writev="no"
39288
39289 fi
39290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39291   fi
39292   #
39293   if test "$tst_compi_writev" = "yes"; then
39294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39295 $as_echo_n "checking if writev usage allowed... " >&6; }
39296     if test "x$curl_disallow_writev" != "xyes"; then
39297       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39298 $as_echo "yes" >&6; }
39299       tst_allow_writev="yes"
39300     else
39301       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39302 $as_echo "no" >&6; }
39303       tst_allow_writev="no"
39304     fi
39305   fi
39306   #
39307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39308 $as_echo_n "checking if writev might be used... " >&6; }
39309   if test "$tst_links_writev" = "yes" &&
39310      test "$tst_proto_writev" = "yes" &&
39311      test "$tst_compi_writev" = "yes" &&
39312      test "$tst_allow_writev" = "yes"; then
39313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39314 $as_echo "yes" >&6; }
39315
39316 cat >>confdefs.h <<_ACEOF
39317 #define HAVE_WRITEV 1
39318 _ACEOF
39319
39320     curl_cv_func_writev="yes"
39321   else
39322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39323 $as_echo "no" >&6; }
39324     curl_cv_func_writev="no"
39325   fi
39326
39327
39328 case $host in
39329   *msdosdjgpp)
39330      ac_cv_func_pipe=no
39331      skipcheck_pipe=yes
39332      { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39333 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39334     ;;
39335 esac
39336
39337 for ac_func in fork \
39338   geteuid \
39339   getpass_r \
39340   getppid \
39341   getprotobyname \
39342   getpwuid \
39343   getpwuid_r \
39344   getrlimit \
39345   gettimeofday \
39346   if_nametoindex \
39347   inet_addr \
39348   perror \
39349   pipe \
39350   setlocale \
39351   setmode \
39352   setrlimit \
39353   uname \
39354   utime
39355
39356 do :
39357   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39358 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39359 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39360   cat >>confdefs.h <<_ACEOF
39361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39362 _ACEOF
39363
39364
39365 else
39366
39367   func="$ac_func"
39368   eval skipcheck=\$skipcheck_$func
39369   if test "x$skipcheck" != "xyes"; then
39370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
39371 $as_echo_n "checking deeper for $func... " >&6; }
39372     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39373 /* end confdefs.h.  */
39374
39375
39376
39377 int main (void)
39378 {
39379
39380         $func ();
39381
39382  ;
39383  return 0;
39384 }
39385
39386 _ACEOF
39387 if ac_fn_c_try_link "$LINENO"; then :
39388
39389       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39390 $as_echo "yes" >&6; }
39391       eval "ac_cv_func_$func=yes"
39392
39393 cat >>confdefs.h <<_ACEOF
39394 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
39395 _ACEOF
39396
39397
39398 else
39399
39400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39401 $as_echo "but still no" >&6; }
39402
39403 fi
39404 rm -f core conftest.err conftest.$ac_objext \
39405     conftest$ac_exeext conftest.$ac_ext
39406   fi
39407
39408 fi
39409 done
39410
39411
39412
39413     for ac_header in sys/types.h sys/socket.h netdb.h
39414 do :
39415   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39416 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39417 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39418   cat >>confdefs.h <<_ACEOF
39419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39420 _ACEOF
39421
39422 fi
39423
39424 done
39425
39426   #
39427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
39428 $as_echo_n "checking for getnameinfo... " >&6; }
39429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39430 /* end confdefs.h.  */
39431
39432
39433 #define getnameinfo innocuous_getnameinfo
39434 #ifdef __STDC__
39435 # include <limits.h>
39436 #else
39437 # include <assert.h>
39438 #endif
39439 #undef getnameinfo
39440 #ifdef __cplusplus
39441 extern "C"
39442 #endif
39443 char getnameinfo ();
39444 #if defined __stub_getnameinfo || defined __stub___getnameinfo
39445 choke me
39446 #endif
39447
39448 int main (void)
39449 {
39450 return getnameinfo ();
39451  ;
39452  return 0;
39453 }
39454
39455 _ACEOF
39456 if ac_fn_c_try_link "$LINENO"; then :
39457
39458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39459 $as_echo "yes" >&6; }
39460     curl_cv_getnameinfo="yes"
39461
39462 else
39463
39464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39465 $as_echo "no" >&6; }
39466     curl_cv_getnameinfo="no"
39467
39468 fi
39469 rm -f core conftest.err conftest.$ac_objext \
39470     conftest$ac_exeext conftest.$ac_ext
39471   #
39472   if test "$curl_cv_getnameinfo" != "yes"; then
39473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
39474 $as_echo_n "checking deeper for getnameinfo... " >&6; }
39475     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39476 /* end confdefs.h.  */
39477
39478
39479
39480 int main (void)
39481 {
39482
39483         getnameinfo();
39484
39485  ;
39486  return 0;
39487 }
39488
39489 _ACEOF
39490 if ac_fn_c_try_link "$LINENO"; then :
39491
39492       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39493 $as_echo "yes" >&6; }
39494       curl_cv_getnameinfo="yes"
39495
39496 else
39497
39498       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39499 $as_echo "but still no" >&6; }
39500       curl_cv_getnameinfo="no"
39501
39502 fi
39503 rm -f core conftest.err conftest.$ac_objext \
39504     conftest$ac_exeext conftest.$ac_ext
39505   fi
39506   #
39507   if test "$curl_cv_getnameinfo" != "yes"; then
39508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
39509 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
39510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39511 /* end confdefs.h.  */
39512
39513
39514 #undef inline
39515 #ifdef HAVE_WINDOWS_H
39516 #ifndef WIN32_LEAN_AND_MEAN
39517 #define WIN32_LEAN_AND_MEAN
39518 #endif
39519 #include <windows.h>
39520 #ifdef HAVE_WINSOCK2_H
39521 #include <winsock2.h>
39522 #ifdef HAVE_WS2TCPIP_H
39523 #include <ws2tcpip.h>
39524 #endif
39525 #endif
39526 #else
39527 #ifdef HAVE_SYS_TYPES_H
39528 #include <sys/types.h>
39529 #endif
39530 #ifdef HAVE_SYS_SOCKET_H
39531 #include <sys/socket.h>
39532 #endif
39533 #ifdef HAVE_NETDB_H
39534 #include <netdb.h>
39535 #endif
39536 #endif
39537
39538 int main (void)
39539 {
39540
39541         getnameinfo(0, 0, 0, 0, 0, 0, 0);
39542
39543  ;
39544  return 0;
39545 }
39546
39547 _ACEOF
39548 if ac_fn_c_try_link "$LINENO"; then :
39549
39550       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39551 $as_echo "yes" >&6; }
39552       curl_cv_getnameinfo="yes"
39553
39554 else
39555
39556       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39557 $as_echo "but still no" >&6; }
39558       curl_cv_getnameinfo="no"
39559
39560 fi
39561 rm -f core conftest.err conftest.$ac_objext \
39562     conftest$ac_exeext conftest.$ac_ext
39563   fi
39564   #
39565   if test "$curl_cv_getnameinfo" = "yes"; then
39566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
39567 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
39568 if ${curl_cv_func_getnameinfo_args+:} false; then :
39569   $as_echo_n "(cached) " >&6
39570 else
39571
39572       curl_cv_func_getnameinfo_args="unknown"
39573       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
39574         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
39575           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
39576             for gni_arg7 in 'int' 'unsigned int'; do
39577               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39578                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39579 /* end confdefs.h.  */
39580
39581
39582 #undef inline
39583 #ifdef HAVE_WINDOWS_H
39584 #ifndef WIN32_LEAN_AND_MEAN
39585 #define WIN32_LEAN_AND_MEAN
39586 #endif
39587 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
39588 #undef _WIN32_WINNT
39589 #define _WIN32_WINNT 0x0501
39590 #endif
39591 #include <windows.h>
39592 #ifdef HAVE_WINSOCK2_H
39593 #include <winsock2.h>
39594 #ifdef HAVE_WS2TCPIP_H
39595 #include <ws2tcpip.h>
39596 #endif
39597 #endif
39598 #define GNICALLCONV WSAAPI
39599 #else
39600 #ifdef HAVE_SYS_TYPES_H
39601 #include <sys/types.h>
39602 #endif
39603 #ifdef HAVE_SYS_SOCKET_H
39604 #include <sys/socket.h>
39605 #endif
39606 #ifdef HAVE_NETDB_H
39607 #include <netdb.h>
39608 #endif
39609 #define GNICALLCONV
39610 #endif
39611                     extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
39612                                            char *, $gni_arg46,
39613                                            char *, $gni_arg46,
39614                                            $gni_arg7);
39615
39616 int main (void)
39617 {
39618
39619                     $gni_arg2 salen=0;
39620                     $gni_arg46 hostlen=0;
39621                     $gni_arg46 servlen=0;
39622                     $gni_arg7 flags=0;
39623                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
39624
39625  ;
39626  return 0;
39627 }
39628
39629 _ACEOF
39630 if ac_fn_c_try_compile "$LINENO"; then :
39631
39632                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
39633
39634 fi
39635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39636               fi
39637             done
39638           done
39639         done
39640       done
39641
39642 fi
39643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
39644 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
39645     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39646       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
39647 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
39648       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
39649 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
39650     else
39651       gni_prev_IFS=$IFS; IFS=','
39652       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
39653       IFS=$gni_prev_IFS
39654       shift
39655       #
39656       gni_qual_type_arg1=$1
39657       #
39658
39659 cat >>confdefs.h <<_ACEOF
39660 #define GETNAMEINFO_TYPE_ARG2 $2
39661 _ACEOF
39662
39663
39664 cat >>confdefs.h <<_ACEOF
39665 #define GETNAMEINFO_TYPE_ARG46 $3
39666 _ACEOF
39667
39668
39669 cat >>confdefs.h <<_ACEOF
39670 #define GETNAMEINFO_TYPE_ARG7 $4
39671 _ACEOF
39672
39673       #
39674       prev_sh_opts=$-
39675       #
39676       case $prev_sh_opts in
39677         *f*)
39678           ;;
39679         *)
39680           set -f
39681           ;;
39682       esac
39683       #
39684       case "$gni_qual_type_arg1" in
39685         const*)
39686           gni_qual_arg1=const
39687           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
39688         ;;
39689         *)
39690           gni_qual_arg1=
39691           gni_type_arg1=$gni_qual_type_arg1
39692         ;;
39693       esac
39694       #
39695
39696 cat >>confdefs.h <<_ACEOF
39697 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
39698 _ACEOF
39699
39700
39701 cat >>confdefs.h <<_ACEOF
39702 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
39703 _ACEOF
39704
39705       #
39706       case $prev_sh_opts in
39707         *f*)
39708           ;;
39709         *)
39710           set +f
39711           ;;
39712       esac
39713       #
39714
39715 cat >>confdefs.h <<_ACEOF
39716 #define HAVE_GETNAMEINFO 1
39717 _ACEOF
39718
39719       curl_cv_func_getnameinfo="yes"
39720     fi
39721   fi
39722
39723
39724 if test "$ipv6" = "yes"; then
39725   if test "$curl_cv_func_getaddrinfo" = "yes"; then
39726
39727 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
39728
39729     IPV6_ENABLED=1
39730
39731   fi
39732
39733       for ac_header in stdio.h sys/types.h sys/socket.h \
39734                    netdb.h netinet/in.h arpa/inet.h
39735 do :
39736   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39737 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39738 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39739   cat >>confdefs.h <<_ACEOF
39740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39741 _ACEOF
39742
39743 fi
39744
39745 done
39746
39747   #
39748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
39749 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
39750 if ${curl_cv_working_ni_withscopeid+:} false; then :
39751   $as_echo_n "(cached) " >&6
39752 else
39753
39754     if test "$cross_compiling" = yes; then :
39755
39756       # Program is not run when cross-compiling. So we assume
39757       # NI_WITHSCOPEID will work if we are able to compile it.
39758       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39759 /* end confdefs.h.  */
39760
39761
39762 #include <sys/types.h>
39763 #include <sys/socket.h>
39764 #include <netdb.h>
39765
39766 int main (void)
39767 {
39768
39769           unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39770
39771  ;
39772  return 0;
39773 }
39774
39775 _ACEOF
39776 if ac_fn_c_try_compile "$LINENO"; then :
39777
39778         curl_cv_working_ni_withscopeid="yes"
39779
39780 else
39781
39782         curl_cv_working_ni_withscopeid="no"
39783
39784 fi
39785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
39786
39787 else
39788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39789 /* end confdefs.h.  */
39790
39791
39792 #ifdef HAVE_STDLIB_H
39793 #include <stdlib.h>
39794 #endif
39795 #ifdef HAVE_STDIO_H
39796 #include <stdio.h>
39797 #endif
39798 #ifdef HAVE_SYS_TYPES_H
39799 #include <sys/types.h>
39800 #endif
39801 #ifdef HAVE_SYS_SOCKET_H
39802 #include <sys/socket.h>
39803 #endif
39804 #ifdef HAVE_NETDB_H
39805 #include <netdb.h>
39806 #endif
39807 #ifdef HAVE_NETINET_IN_H
39808 #include <netinet/in.h>
39809 #endif
39810 #ifdef HAVE_ARPA_INET_H
39811 #include <arpa/inet.h>
39812 #endif
39813
39814 int main (void)
39815 {
39816
39817 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
39818 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
39819         struct sockaddr_storage sa;
39820 #else
39821         unsigned char sa[256];
39822 #endif
39823         char hostbuf[NI_MAXHOST];
39824         int rc;
39825         GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
39826         GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
39827         GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39828         int fd = socket(AF_INET6, SOCK_STREAM, 0);
39829         if(fd < 0) {
39830           perror("socket()");
39831           return 1; /* Error creating socket */
39832         }
39833         rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
39834         if(rc) {
39835           perror("getsockname()");
39836           return 2; /* Error retrieving socket name */
39837         }
39838         rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
39839         if(rc) {
39840           printf("rc = %s\n", gai_strerror(rc));
39841           return 3; /* Error translating socket address */
39842         }
39843         return 0; /* Ok, NI_WITHSCOPEID works */
39844 #else
39845         return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
39846 #endif
39847
39848  ;
39849  return 0;
39850 } # AC-LANG-PROGRAM
39851
39852 _ACEOF
39853 if ac_fn_c_try_run "$LINENO"; then :
39854
39855       # Exit code == 0. Program worked.
39856       curl_cv_working_ni_withscopeid="yes"
39857
39858 else
39859
39860       # Exit code != 0. Program failed.
39861       curl_cv_working_ni_withscopeid="no"
39862
39863 fi
39864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39865   conftest.$ac_objext conftest.beam conftest.$ac_ext
39866 fi
39867  # AC-RUN-IFELSE
39868
39869 fi
39870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5
39871 $as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
39872   case "$curl_cv_working_ni_withscopeid" in
39873     yes)
39874
39875 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
39876
39877       ;;
39878   esac
39879
39880 fi
39881
39882
39883             #
39884   tst_method="unknown"
39885
39886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
39887 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
39888   if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
39889     tst_method="fcntl O_NONBLOCK"
39890   elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
39891     tst_method="ioctl FIONBIO"
39892   elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
39893     tst_method="ioctlsocket FIONBIO"
39894   elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
39895     tst_method="IoctlSocket FIONBIO"
39896   elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
39897     tst_method="setsockopt SO_NONBLOCK"
39898   fi
39899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
39900 $as_echo "$tst_method" >&6; }
39901   if test "$tst_method" = "unknown"; then
39902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
39903 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
39904   fi
39905
39906
39907
39908 # Extract the first word of "perl", so it can be a program name with args.
39909 set dummy perl; ac_word=$2
39910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39911 $as_echo_n "checking for $ac_word... " >&6; }
39912 if ${ac_cv_path_PERL+:} false; then :
39913   $as_echo_n "(cached) " >&6
39914 else
39915   case $PERL in
39916   [\\/]* | ?:[\\/]*)
39917   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
39918   ;;
39919   *)
39920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39921 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
39922 for as_dir in $as_dummy
39923 do
39924   IFS=$as_save_IFS
39925   test -z "$as_dir" && as_dir=.
39926     for ac_exec_ext in '' $ac_executable_extensions; do
39927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39928     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
39929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39930     break 2
39931   fi
39932 done
39933   done
39934 IFS=$as_save_IFS
39935
39936   ;;
39937 esac
39938 fi
39939 PERL=$ac_cv_path_PERL
39940 if test -n "$PERL"; then
39941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
39942 $as_echo "$PERL" >&6; }
39943 else
39944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39945 $as_echo "no" >&6; }
39946 fi
39947
39948
39949
39950
39951 for ac_prog in gnroff nroff
39952 do
39953   # Extract the first word of "$ac_prog", so it can be a program name with args.
39954 set dummy $ac_prog; ac_word=$2
39955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39956 $as_echo_n "checking for $ac_word... " >&6; }
39957 if ${ac_cv_path_NROFF+:} false; then :
39958   $as_echo_n "(cached) " >&6
39959 else
39960   case $NROFF in
39961   [\\/]* | ?:[\\/]*)
39962   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
39963   ;;
39964   *)
39965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39966 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
39967 for as_dir in $as_dummy
39968 do
39969   IFS=$as_save_IFS
39970   test -z "$as_dir" && as_dir=.
39971     for ac_exec_ext in '' $ac_executable_extensions; do
39972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39973     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
39974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39975     break 2
39976   fi
39977 done
39978   done
39979 IFS=$as_save_IFS
39980
39981   ;;
39982 esac
39983 fi
39984 NROFF=$ac_cv_path_NROFF
39985 if test -n "$NROFF"; then
39986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
39987 $as_echo "$NROFF" >&6; }
39988 else
39989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39990 $as_echo "no" >&6; }
39991 fi
39992
39993
39994   test -n "$NROFF" && break
39995 done
39996
39997
39998
39999 if test -n "$NROFF"; then
40000
40001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40002 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40003   MANOPT="-man"
40004   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40005   if test -z "$mancheck"; then
40006     MANOPT="-mandoc"
40007    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40008     if test -z "$mancheck"; then
40009       MANOPT=""
40010       { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40011 $as_echo "failed" >&6; }
40012       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40013 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40014     else
40015       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40016 $as_echo "$MANOPT" >&6; }
40017     fi
40018   else
40019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40020 $as_echo "$MANOPT" >&6; }
40021   fi
40022
40023 fi
40024
40025 if test -z "$MANOPT"
40026 then
40027       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40028 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40029   USE_MANUAL="no";
40030 fi
40031
40032
40033 if test "$USE_MANUAL" = "1"; then
40034
40035 $as_echo "#define USE_MANUAL 1" >>confdefs.h
40036
40037   curl_manual_msg="enabled"
40038 fi
40039
40040  if test x"$USE_MANUAL" = x1; then
40041   USE_MANUAL_TRUE=
40042   USE_MANUAL_FALSE='#'
40043 else
40044   USE_MANUAL_TRUE='#'
40045   USE_MANUAL_FALSE=
40046 fi
40047
40048
40049
40050
40051
40052   #
40053   if test "$want_ares" = "yes"; then
40054         clean_CPPFLAGS="$CPPFLAGS"
40055     clean_LDFLAGS="$LDFLAGS"
40056     clean_LIBS="$LIBS"
40057     embedded_ares="unknown"
40058     configure_runpath=`pwd`
40059     embedded_ares_builddir="$configure_runpath/ares"
40060     if test -n "$want_ares_path"; then
40061             ares_CPPFLAGS="-I$want_ares_path/include"
40062       ares_LDFLAGS="-L$want_ares_path/lib"
40063       ares_LIBS="-lcares"
40064     else
40065             if test -d "$srcdir/ares"; then
40066                 embedded_ares="yes"
40067         subdirs="$subdirs ares"
40068
40069                         ares_CPPFLAGS=""
40070         ares_LDFLAGS="-L$embedded_ares_builddir"
40071         ares_LIBS="-lcares"
40072       else
40073                 ares_CPPFLAGS=""
40074         ares_LDFLAGS=""
40075         ares_LIBS="-lcares"
40076       fi
40077     fi
40078     #
40079     CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
40080     LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
40081     LIBS="$ares_LIBS $clean_LIBS"
40082     #
40083     if test "$embedded_ares" != "yes"; then
40084                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40085 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40086       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40087 /* end confdefs.h.  */
40088
40089
40090 #include <ares.h>
40091           /* set of dummy functions in case c-ares was built with debug */
40092           void curl_dofree() { }
40093           void curl_sclose() { }
40094           void curl_domalloc() { }
40095           void curl_docalloc() { }
40096           void curl_socket() { }
40097
40098 int main (void)
40099 {
40100
40101           ares_channel channel;
40102           ares_cancel(channel); /* added in 1.2.0 */
40103           ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40104           ares_dup(&channel, channel); /* added in 1.6.0 */
40105
40106  ;
40107  return 0;
40108 }
40109
40110 _ACEOF
40111 if ac_fn_c_try_link "$LINENO"; then :
40112
40113         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40114 $as_echo "yes" >&6; }
40115
40116 else
40117
40118         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40119 $as_echo "no" >&6; }
40120         as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40121                 CPPFLAGS="$clean_CPPFLAGS"
40122         LDFLAGS="$clean_LDFLAGS"
40123         LIBS="$clean_LIBS"
40124         # prevent usage
40125         want_ares="no"
40126
40127 fi
40128 rm -f core conftest.err conftest.$ac_objext \
40129     conftest$ac_exeext conftest.$ac_ext
40130     fi
40131     if test "$want_ares" = "yes"; then
40132
40133 $as_echo "#define USE_ARES 1" >>confdefs.h
40134
40135       USE_ARES=1
40136
40137       curl_res_msg="c-ares"
40138     fi
40139   fi
40140
40141  if test x$embedded_ares = xyes; then
40142   USE_EMBEDDED_ARES_TRUE=
40143   USE_EMBEDDED_ARES_FALSE='#'
40144 else
40145   USE_EMBEDDED_ARES_TRUE='#'
40146   USE_EMBEDDED_ARES_FALSE=
40147 fi
40148
40149
40150 if test "x$curl_cv_native_windows" != "xyes" &&
40151    test "x$enable_shared" = "xyes"; then
40152   build_libhostname=yes
40153 else
40154   build_libhostname=no
40155 fi
40156  if test x$build_libhostname = xyes; then
40157   BUILD_LIBHOSTNAME_TRUE=
40158   BUILD_LIBHOSTNAME_FALSE='#'
40159 else
40160   BUILD_LIBHOSTNAME_TRUE='#'
40161   BUILD_LIBHOSTNAME_FALSE=
40162 fi
40163
40164
40165
40166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40167 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40168   OPT_THRES="default"
40169   # Check whether --enable-threaded_resolver was given.
40170 if test "${enable_threaded_resolver+set}" = set; then :
40171   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40172 fi
40173
40174   case "$OPT_THRES" in
40175     yes)
40176             want_thres="yes"
40177       ;;
40178     *)
40179             want_thres="no"
40180       ;;
40181   esac
40182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40183 $as_echo "$want_thres" >&6; }
40184
40185
40186 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
40187   as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
40188 fi
40189
40190 if test "$want_thres" = "yes" && test "$dontwant_rt" = "no"; then
40191   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40192 if test "x$ac_cv_header_pthread_h" = xyes; then :
40193
40194 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40195
40196       save_CFLAGS="$CFLAGS"
40197
40198             ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40199 if test "x$ac_cv_func_pthread_create" = xyes; then :
40200   USE_THREADS_POSIX=1
40201 fi
40202
40203
40204             if test "$USE_THREADS_POSIX" != "1"
40205       then
40206         CFLAGS="$CFLAGS -pthread"
40207         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40208 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40209 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40210   $as_echo_n "(cached) " >&6
40211 else
40212   ac_check_lib_save_LIBS=$LIBS
40213 LIBS="-lpthread  $LIBS"
40214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40215 /* end confdefs.h.  */
40216
40217
40218 #ifdef __cplusplus
40219 extern "C"
40220 #endif
40221 char pthread_create ();
40222 int main (void)
40223 {
40224 return pthread_create ();
40225  ;
40226  return 0;
40227 }
40228 _ACEOF
40229 if ac_fn_c_try_link "$LINENO"; then :
40230   ac_cv_lib_pthread_pthread_create=yes
40231 else
40232   ac_cv_lib_pthread_pthread_create=no
40233 fi
40234 rm -f core conftest.err conftest.$ac_objext \
40235     conftest$ac_exeext conftest.$ac_ext
40236 LIBS=$ac_check_lib_save_LIBS
40237 fi
40238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40239 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40240 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40241   USE_THREADS_POSIX=1
40242 else
40243    CFLAGS="$save_CFLAGS"
40244 fi
40245
40246       fi
40247
40248       if test "x$USE_THREADS_POSIX" = "x1"
40249       then
40250
40251 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40252
40253         curl_res_msg="POSIX threaded"
40254       fi
40255
40256
40257
40258 fi
40259
40260
40261 fi
40262
40263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40264 $as_echo_n "checking whether to enable verbose strings... " >&6; }
40265 # Check whether --enable-verbose was given.
40266 if test "${enable_verbose+set}" = set; then :
40267   enableval=$enable_verbose;  case "$enableval" in
40268   no)
40269        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40270 $as_echo "no" >&6; }
40271
40272 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40273
40274        curl_verbose_msg="no"
40275        ;;
40276   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40277 $as_echo "yes" >&6; }
40278        ;;
40279   esac
40280 else
40281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40282 $as_echo "yes" >&6; }
40283
40284 fi
40285
40286
40287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40288 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40289 # Check whether --enable-sspi was given.
40290 if test "${enable_sspi+set}" = set; then :
40291   enableval=$enable_sspi;  case "$enableval" in
40292   yes)
40293        if test "$curl_cv_native_windows" = "yes"; then
40294          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40295 $as_echo "yes" >&6; }
40296
40297 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40298
40299          USE_WINDOWS_SSPI=1
40300
40301          curl_sspi_msg="enabled"
40302        else
40303          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40304 $as_echo "no" >&6; }
40305          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40306 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40307        fi
40308        ;;
40309   *)
40310        if test "x$WINSSL_ENABLED" = "x1"; then
40311          # --with-winssl implies --enable-sspi
40312          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40313 $as_echo "yes" >&6; }
40314        else
40315          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40316 $as_echo "no" >&6; }
40317        fi
40318        ;;
40319   esac
40320 else
40321   if test "x$WINSSL_ENABLED" = "x1"; then
40322          # --with-winssl implies --enable-sspi
40323          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40324 $as_echo "yes" >&6; }
40325        else
40326          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40327 $as_echo "no" >&6; }
40328        fi
40329
40330 fi
40331
40332
40333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40334 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40335 # Check whether --enable-crypto-auth was given.
40336 if test "${enable_crypto_auth+set}" = set; then :
40337   enableval=$enable_crypto_auth;  case "$enableval" in
40338   no)
40339        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40340 $as_echo "no" >&6; }
40341
40342 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40343
40344        CURL_DISABLE_CRYPTO_AUTH=1
40345        ;;
40346   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40347 $as_echo "yes" >&6; }
40348        ;;
40349   esac
40350 else
40351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40352 $as_echo "yes" >&6; }
40353
40354 fi
40355
40356
40357
40358     OPT_NTLM_WB="default"
40359   # Check whether --enable-ntlm-wb was given.
40360 if test "${enable_ntlm_wb+set}" = set; then :
40361   enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40362 fi
40363
40364   want_ntlm_wb_file="/usr/bin/ntlm_auth"
40365   case "$OPT_NTLM_WB" in
40366     no)
40367             want_ntlm_wb="no"
40368       ;;
40369     default)
40370             want_ntlm_wb="yes"
40371       ;;
40372     *)
40373             want_ntlm_wb="yes"
40374       if test -n "$enableval" && test "$enableval" != "yes"; then
40375         want_ntlm_wb_file="$enableval"
40376       fi
40377       ;;
40378   esac
40379
40380
40381
40382       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40383 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40384   if test "$curl_cv_native_windows" = "yes" ||
40385     test "x$SSL_ENABLED" = "x"; then
40386     want_ntlm_wb_file=""
40387     want_ntlm_wb="no"
40388   fi
40389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40390 $as_echo "$want_ntlm_wb" >&6; }
40391   if test "$want_ntlm_wb" = "yes"; then
40392
40393 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40394
40395
40396 cat >>confdefs.h <<_ACEOF
40397 #define NTLM_WB_FILE "$want_ntlm_wb_file"
40398 _ACEOF
40399
40400     NTLM_WB_ENABLED=1
40401   fi
40402
40403
40404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40405 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40406 # Check whether --enable-tls-srp was given.
40407 if test "${enable_tls_srp+set}" = set; then :
40408   enableval=$enable_tls_srp;  case "$enableval" in
40409   no)
40410        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40411 $as_echo "no" >&6; }
40412
40413 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40414
40415        want_tls_srp=no
40416        ;;
40417   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40418 $as_echo "yes" >&6; }
40419        want_tls_srp=yes
40420        ;;
40421   esac
40422 else
40423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40424 $as_echo "yes" >&6; }
40425        want_tls_srp=yes
40426
40427 fi
40428
40429
40430 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40431
40432 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
40433
40434    USE_TLS_SRP=1
40435    curl_tls_srp_msg="enabled"
40436 fi
40437
40438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
40439 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
40440 # Check whether --enable-unix-sockets was given.
40441 if test "${enable_unix_sockets+set}" = set; then :
40442   enableval=$enable_unix_sockets;  case "$enableval" in
40443   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40444 $as_echo "no" >&6; }
40445        want_unix_sockets=no
40446        ;;
40447   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40448 $as_echo "yes" >&6; }
40449        want_unix_sockets=yes
40450        ;;
40451   esac
40452 else
40453
40454        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40455 $as_echo "auto" >&6; }
40456        want_unix_sockets=auto
40457
40458
40459 fi
40460
40461 if test "x$want_unix_sockets" != "xno"; then
40462   ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
40463     #include <sys/un.h>
40464
40465 "
40466 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
40467
40468
40469 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
40470
40471     USE_UNIX_SOCKETS=1
40472
40473     curl_unix_sockets_msg="enabled"
40474
40475 else
40476
40477     if test "x$want_unix_sockets" = "xyes"; then
40478       as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
40479     fi
40480
40481 fi
40482
40483 fi
40484
40485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
40486 $as_echo_n "checking whether to enable support for cookies... " >&6; }
40487 # Check whether --enable-cookies was given.
40488 if test "${enable_cookies+set}" = set; then :
40489   enableval=$enable_cookies;  case "$enableval" in
40490   no)
40491        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40492 $as_echo "no" >&6; }
40493
40494 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
40495
40496        ;;
40497   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40498 $as_echo "yes" >&6; }
40499        ;;
40500   esac
40501 else
40502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40503 $as_echo "yes" >&6; }
40504
40505 fi
40506
40507
40508
40509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
40510 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
40511   CFLAG_CURL_SYMBOL_HIDING=""
40512   doing_symbol_hiding="no"
40513   if test x"$curl_cv_native_windows" != "xyes" &&
40514     test "$want_symbol_hiding" = "yes" &&
40515     test "$supports_symbol_hiding" = "yes"; then
40516     doing_symbol_hiding="yes"
40517     CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
40518
40519 cat >>confdefs.h <<_ACEOF
40520 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
40521 _ACEOF
40522
40523     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40524 $as_echo "yes" >&6; }
40525   else
40526     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40527 $as_echo "no" >&6; }
40528   fi
40529    if test x$doing_symbol_hiding = xyes; then
40530   DOING_CURL_SYMBOL_HIDING_TRUE=
40531   DOING_CURL_SYMBOL_HIDING_FALSE='#'
40532 else
40533   DOING_CURL_SYMBOL_HIDING_TRUE='#'
40534   DOING_CURL_SYMBOL_HIDING_FALSE=
40535 fi
40536
40537
40538
40539
40540
40541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
40542 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
40543 # Check whether --enable-soname-bump was given.
40544 if test "${enable_soname_bump+set}" = set; then :
40545   enableval=$enable_soname_bump;  case "$enableval" in
40546   yes)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40547 $as_echo "yes" >&6; }
40548          soname_bump=yes
40549          ;;
40550   *)
40551          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40552 $as_echo "no" >&6; }
40553          ;;
40554   esac
40555 else
40556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
40557 $as_echo "$soname_bump" >&6; }
40558
40559 fi
40560
40561  if test x$soname_bump = xyes; then
40562   SONAME_BUMP_TRUE=
40563   SONAME_BUMP_FALSE='#'
40564 else
40565   SONAME_BUMP_TRUE='#'
40566   SONAME_BUMP_FALSE=
40567 fi
40568
40569
40570 LIBCURL_LIBS=$LIBS
40571
40572
40573
40574
40575
40576 BLANK_AT_MAKETIME=
40577
40578
40579  if test x$cross_compiling = xyes; then
40580   CROSSCOMPILING_TRUE=
40581   CROSSCOMPILING_FALSE='#'
40582 else
40583   CROSSCOMPILING_TRUE='#'
40584   CROSSCOMPILING_FALSE=
40585 fi
40586
40587
40588 ENABLE_SHARED="$enable_shared"
40589
40590
40591 ENABLE_STATIC="$enable_static"
40592
40593
40594
40595
40596 if test "x$OPENSSL_ENABLED" = "x1"; then
40597   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40598 elif test -n "$SSL_ENABLED"; then
40599   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40600 fi
40601 if test "x$IPV6_ENABLED" = "x1"; then
40602   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
40603 fi
40604 if test "x$USE_UNIX_SOCKETS" = "x1"; then
40605   SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
40606 fi
40607 if test "x$HAVE_LIBZ" = "x1"; then
40608   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
40609 fi
40610 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
40611   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
40612 fi
40613 if test "x$IDN_ENABLED" = "x1"; then
40614   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
40615 fi
40616 if test "x$USE_WINDOWS_SSPI" = "x1"; then
40617   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
40618 fi
40619
40620 if test "x$HAVE_GSSAPI" = "x1"; then
40621   SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
40622 fi
40623
40624 if test "x$curl_psl_msg" = "xyes"; then
40625   SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
40626 fi
40627
40628 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40629     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40630   SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
40631 fi
40632
40633 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40634     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40635   SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
40636 fi
40637
40638 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
40639   if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40640       -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
40641       -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
40642     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
40643
40644     if test "x$CURL_DISABLE_HTTP" != "x1" -a \
40645         "x$NTLM_WB_ENABLED" = "x1"; then
40646       SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
40647     fi
40648   fi
40649 fi
40650
40651 if test "x$USE_TLS_SRP" = "x1"; then
40652   SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
40653 fi
40654
40655 if test "x$USE_NGHTTP2" = "x1"; then
40656   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
40657 fi
40658
40659
40660
40661 if test "x$CURL_DISABLE_HTTP" != "x1"; then
40662   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
40663   if test "x$SSL_ENABLED" = "x1"; then
40664     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
40665   fi
40666 fi
40667 if test "x$CURL_DISABLE_FTP" != "x1"; then
40668   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
40669   if test "x$SSL_ENABLED" = "x1"; then
40670     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
40671   fi
40672 fi
40673 if test "x$CURL_DISABLE_FILE" != "x1"; then
40674   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
40675 fi
40676 if test "x$CURL_DISABLE_TELNET" != "x1"; then
40677   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
40678 fi
40679 if test "x$CURL_DISABLE_LDAP" != "x1"; then
40680   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
40681   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
40682     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
40683       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
40684       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
40685     fi
40686   fi
40687 fi
40688 if test "x$CURL_DISABLE_DICT" != "x1"; then
40689   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
40690 fi
40691 if test "x$CURL_DISABLE_TFTP" != "x1"; then
40692   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
40693 fi
40694 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
40695   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
40696 fi
40697 if test "x$CURL_DISABLE_POP3" != "x1"; then
40698   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
40699   if test "x$SSL_ENABLED" = "x1"; then
40700     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
40701   fi
40702 fi
40703 if test "x$CURL_DISABLE_IMAP" != "x1"; then
40704   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
40705   if test "x$SSL_ENABLED" = "x1"; then
40706     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
40707   fi
40708 fi
40709 if test "x$CURL_DISABLE_SMB" != "x1" \
40710     -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
40711     -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40712       -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
40713       -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
40714   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
40715   if test "x$SSL_ENABLED" = "x1"; then
40716     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
40717   fi
40718 fi
40719 if test "x$CURL_DISABLE_SMTP" != "x1"; then
40720   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
40721   if test "x$SSL_ENABLED" = "x1"; then
40722     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
40723   fi
40724 fi
40725 if test "x$USE_LIBSSH2" = "x1"; then
40726   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
40727   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
40728 fi
40729 if test "x$CURL_DISABLE_RTSP" != "x1"; then
40730   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
40731 fi
40732 if test "x$USE_LIBRTMP" = "x1"; then
40733   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
40734 fi
40735
40736 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
40737
40738
40739
40740
40741 squeeze CFLAGS
40742 squeeze CPPFLAGS
40743 squeeze DEFS
40744 squeeze LDFLAGS
40745 squeeze LIBS
40746
40747 squeeze LIBCURL_LIBS
40748 squeeze CURL_NETWORK_LIBS
40749 squeeze CURL_NETWORK_AND_TIME_LIBS
40750
40751 squeeze SUPPORT_FEATURES
40752 squeeze SUPPORT_PROTOCOLS
40753
40754
40755
40756   xc_bad_var_libs=no
40757   for xc_word in $LIBS; do
40758     case "$xc_word" in
40759       -l* | --library=*)
40760         :
40761         ;;
40762       *)
40763         xc_bad_var_libs=yes
40764         ;;
40765     esac
40766   done
40767   if test $xc_bad_var_libs = yes; then
40768     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
40769 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
40770     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
40771 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
40772   fi
40773
40774
40775   xc_bad_var_ldflags=no
40776   for xc_word in $LDFLAGS; do
40777     case "$xc_word" in
40778       -D*)
40779         xc_bad_var_ldflags=yes
40780         ;;
40781       -U*)
40782         xc_bad_var_ldflags=yes
40783         ;;
40784       -I*)
40785         xc_bad_var_ldflags=yes
40786         ;;
40787       -l* | --library=*)
40788         xc_bad_var_ldflags=yes
40789         ;;
40790     esac
40791   done
40792   if test $xc_bad_var_ldflags = yes; then
40793     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
40794 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
40795     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
40796     for xc_word in $LDFLAGS; do
40797       case "$xc_word" in
40798         -D*)
40799           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40800 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40801           ;;
40802         -U*)
40803           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40804 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40805           ;;
40806         -I*)
40807           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40808 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40809           ;;
40810         -l* | --library=*)
40811           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40812 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40813           ;;
40814       esac
40815     done
40816   fi
40817
40818
40819   xc_bad_var_cppflags=no
40820   for xc_word in $CPPFLAGS; do
40821     case "$xc_word" in
40822       -rpath*)
40823         xc_bad_var_cppflags=yes
40824         ;;
40825       -L* | --library-path=*)
40826         xc_bad_var_cppflags=yes
40827         ;;
40828       -l* | --library=*)
40829         xc_bad_var_cppflags=yes
40830         ;;
40831     esac
40832   done
40833   if test $xc_bad_var_cppflags = yes; then
40834     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
40835 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
40836     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
40837     for xc_word in $CPPFLAGS; do
40838       case "$xc_word" in
40839         -rpath*)
40840           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40841 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40842           ;;
40843         -L* | --library-path=*)
40844           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40845 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40846           ;;
40847         -l* | --library=*)
40848           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40849 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40850           ;;
40851       esac
40852     done
40853   fi
40854
40855
40856   xc_bad_var_cflags=no
40857   for xc_word in $CFLAGS; do
40858     case "$xc_word" in
40859       -D*)
40860         xc_bad_var_cflags=yes
40861         ;;
40862       -U*)
40863         xc_bad_var_cflags=yes
40864         ;;
40865       -I*)
40866         xc_bad_var_cflags=yes
40867         ;;
40868       -rpath*)
40869         xc_bad_var_cflags=yes
40870         ;;
40871       -L* | --library-path=*)
40872         xc_bad_var_cflags=yes
40873         ;;
40874       -l* | --library=*)
40875         xc_bad_var_cflags=yes
40876         ;;
40877     esac
40878   done
40879   if test $xc_bad_var_cflags = yes; then
40880     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
40881 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
40882     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
40883     for xc_word in $CFLAGS; do
40884       case "$xc_word" in
40885         -D*)
40886           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40887 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40888           ;;
40889         -U*)
40890           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40891 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40892           ;;
40893         -I*)
40894           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40895 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40896           ;;
40897         -rpath*)
40898           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40899 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40900           ;;
40901         -L* | --library-path=*)
40902           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40903 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40904           ;;
40905         -l* | --library=*)
40906           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40907 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40908           ;;
40909       esac
40910     done
40911   fi
40912
40913   if test $xc_bad_var_libs = yes ||
40914      test $xc_bad_var_cflags = yes ||
40915      test $xc_bad_var_ldflags = yes ||
40916      test $xc_bad_var_cppflags = yes; then
40917      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
40918 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
40919   fi
40920
40921
40922 if test "x$want_curldebug_assumed" = "xyes" &&
40923   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
40924   ac_configure_args="$ac_configure_args --enable-curldebug"
40925 fi
40926
40927 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/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/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
40928
40929 cat >confcache <<\_ACEOF
40930 # This file is a shell script that caches the results of configure
40931 # tests run on this system so they can be shared between configure
40932 # scripts and configure runs, see configure's option --config-cache.
40933 # It is not useful on other systems.  If it contains results you don't
40934 # want to keep, you may remove or edit it.
40935 #
40936 # config.status only pays attention to the cache file if you give it
40937 # the --recheck option to rerun configure.
40938 #
40939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40941 # following values.
40942
40943 _ACEOF
40944
40945 # The following way of writing the cache mishandles newlines in values,
40946 # but we know of no workaround that is simple, portable, and efficient.
40947 # So, we kill variables containing newlines.
40948 # Ultrix sh set writes to stderr and can't be redirected directly,
40949 # and sets the high bit in the cache file unless we assign to the vars.
40950 (
40951   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40952     eval ac_val=\$$ac_var
40953     case $ac_val in #(
40954     *${as_nl}*)
40955       case $ac_var in #(
40956       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
40957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
40958       esac
40959       case $ac_var in #(
40960       _ | IFS | as_nl) ;; #(
40961       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
40962       *) { eval $ac_var=; unset $ac_var;} ;;
40963       esac ;;
40964     esac
40965   done
40966
40967   (set) 2>&1 |
40968     case $as_nl`(ac_space=' '; set) 2>&1` in #(
40969     *${as_nl}ac_space=\ *)
40970       # `set' does not quote correctly, so add quotes: double-quote
40971       # substitution turns \\\\ into \\, and sed turns \\ into \.
40972       sed -n \
40973         "s/'/'\\\\''/g;
40974           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40975       ;; #(
40976     *)
40977       # `set' quotes correctly as required by POSIX, so do not add quotes.
40978       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40979       ;;
40980     esac |
40981     sort
40982 ) |
40983   sed '
40984      /^ac_cv_env_/b end
40985      t clear
40986      :clear
40987      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40988      t end
40989      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40990      :end' >>confcache
40991 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
40992   if test -w "$cache_file"; then
40993     if test "x$cache_file" != "x/dev/null"; then
40994       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
40995 $as_echo "$as_me: updating cache $cache_file" >&6;}
40996       if test ! -f "$cache_file" || test -h "$cache_file"; then
40997         cat confcache >"$cache_file"
40998       else
40999         case $cache_file in #(
41000         */* | ?:*)
41001           mv -f confcache "$cache_file"$$ &&
41002           mv -f "$cache_file"$$ "$cache_file" ;; #(
41003         *)
41004           mv -f confcache "$cache_file" ;;
41005         esac
41006       fi
41007     fi
41008   else
41009     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41010 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41011   fi
41012 fi
41013 rm -f confcache
41014
41015 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41016 # Let make expand exec_prefix.
41017 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41018
41019 DEFS=-DHAVE_CONFIG_H
41020
41021 ac_libobjs=
41022 ac_ltlibobjs=
41023 U=
41024 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41025   # 1. Remove the extension, and $U if already installed.
41026   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41027   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41028   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41029   #    will be set to the directory where LIBOBJS objects are built.
41030   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41031   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41032 done
41033 LIBOBJS=$ac_libobjs
41034
41035 LTLIBOBJS=$ac_ltlibobjs
41036
41037
41038 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41039   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41041 fi
41042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41043 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41044    if test -n "$am_sleep_pid"; then
41045      # Hide warnings about reused PIDs.
41046      wait $am_sleep_pid 2>/dev/null
41047    fi
41048    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41049 $as_echo "done" >&6; }
41050 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41051   as_fn_error $? "conditional \"AMDEP\" was never defined.
41052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41053 fi
41054 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41055   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41057 fi
41058  if test -n "$EXEEXT"; then
41059   am__EXEEXT_TRUE=
41060   am__EXEEXT_FALSE='#'
41061 else
41062   am__EXEEXT_TRUE='#'
41063   am__EXEEXT_FALSE=
41064 fi
41065
41066 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41067   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41069 fi
41070 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41071   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41073 fi
41074 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41075   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41077 fi
41078 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41079   as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41081 fi
41082 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41083   as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41085 fi
41086 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41087   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41089 fi
41090 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41091   as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41093 fi
41094 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41095   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41097 fi
41098 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41099   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41101 fi
41102 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41103   as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41105 fi
41106 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41107   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41109 fi
41110 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41111   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41113 fi
41114 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41115   as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41117 fi
41118 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41119   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41121 fi
41122 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41123   as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41125 fi
41126 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
41127   as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
41128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41129 fi
41130 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41131   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41133 fi
41134
41135 : "${CONFIG_STATUS=./config.status}"
41136 ac_write_fail=0
41137 ac_clean_files_save=$ac_clean_files
41138 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41140 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41141 as_write_fail=0
41142 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41143 #! $SHELL
41144 # Generated by $as_me.
41145 # Run this file to recreate the current configuration.
41146 # Compiler output produced by configure, useful for debugging
41147 # configure, is in config.log if it exists.
41148
41149 debug=false
41150 ac_cs_recheck=false
41151 ac_cs_silent=false
41152
41153 SHELL=\${CONFIG_SHELL-$SHELL}
41154 export SHELL
41155 _ASEOF
41156 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41157 ## -------------------- ##
41158 ## M4sh Initialization. ##
41159 ## -------------------- ##
41160
41161 # Be more Bourne compatible
41162 DUALCASE=1; export DUALCASE # for MKS sh
41163 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41164   emulate sh
41165   NULLCMD=:
41166   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41167   # is contrary to our usage.  Disable this feature.
41168   alias -g '${1+"$@"}'='"$@"'
41169   setopt NO_GLOB_SUBST
41170 else
41171   case `(set -o) 2>/dev/null` in #(
41172   *posix*) :
41173     set -o posix ;; #(
41174   *) :
41175      ;;
41176 esac
41177 fi
41178
41179
41180 as_nl='
41181 '
41182 export as_nl
41183 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41184 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41185 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41186 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41187 # Prefer a ksh shell builtin over an external printf program on Solaris,
41188 # but without wasting forks for bash or zsh.
41189 if test -z "$BASH_VERSION$ZSH_VERSION" \
41190     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41191   as_echo='print -r --'
41192   as_echo_n='print -rn --'
41193 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41194   as_echo='printf %s\n'
41195   as_echo_n='printf %s'
41196 else
41197   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41198     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41199     as_echo_n='/usr/ucb/echo -n'
41200   else
41201     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41202     as_echo_n_body='eval
41203       arg=$1;
41204       case $arg in #(
41205       *"$as_nl"*)
41206         expr "X$arg" : "X\\(.*\\)$as_nl";
41207         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41208       esac;
41209       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41210     '
41211     export as_echo_n_body
41212     as_echo_n='sh -c $as_echo_n_body as_echo'
41213   fi
41214   export as_echo_body
41215   as_echo='sh -c $as_echo_body as_echo'
41216 fi
41217
41218
41219
41220 # IFS
41221 # We need space, tab and new line, in precisely that order.  Quoting is
41222 # there to prevent editors from complaining about space-tab.
41223 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41224 # splitting by setting IFS to empty value.)
41225 IFS=" ""        $as_nl"
41226
41227 # Find who we are.  Look in the path if we contain no directory separator.
41228 as_myself=
41229 case $0 in #((
41230   *[\\/]* ) as_myself=$0 ;;
41231   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41232 for as_dir in $PATH
41233 do
41234   IFS=$as_save_IFS
41235   test -z "$as_dir" && as_dir=.
41236     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41237   done
41238 IFS=$as_save_IFS
41239
41240      ;;
41241 esac
41242 # We did not find ourselves, most probably we were run as `sh COMMAND'
41243 # in which case we are not to be found in the path.
41244 if test "x$as_myself" = x; then
41245   as_myself=$0
41246 fi
41247 if test ! -f "$as_myself"; then
41248   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41249   exit 1
41250 fi
41251
41252 # Unset variables that we do not need and which cause bugs (e.g. in
41253 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
41254 # suppresses any "Segmentation fault" message there.  '((' could
41255 # trigger a bug in pdksh 5.2.14.
41256 for as_var in BASH_ENV ENV MAIL MAILPATH
41257 do eval test x\${$as_var+set} = xset \
41258   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41259 done
41260 PS1='$ '
41261 PS2='> '
41262 PS4='+ '
41263
41264 # NLS nuisances.
41265 LC_ALL=C
41266 export LC_ALL
41267 LANGUAGE=C
41268 export LANGUAGE
41269
41270 # CDPATH.
41271 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41272
41273
41274 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41275 # ----------------------------------------
41276 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41277 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41278 # script with STATUS, using 1 if that was 0.
41279 as_fn_error ()
41280 {
41281   as_status=$1; test $as_status -eq 0 && as_status=1
41282   if test "$4"; then
41283     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41284     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41285   fi
41286   $as_echo "$as_me: error: $2" >&2
41287   as_fn_exit $as_status
41288 } # as_fn_error
41289
41290
41291 # as_fn_set_status STATUS
41292 # -----------------------
41293 # Set $? to STATUS, without forking.
41294 as_fn_set_status ()
41295 {
41296   return $1
41297 } # as_fn_set_status
41298
41299 # as_fn_exit STATUS
41300 # -----------------
41301 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41302 as_fn_exit ()
41303 {
41304   set +e
41305   as_fn_set_status $1
41306   exit $1
41307 } # as_fn_exit
41308
41309 # as_fn_unset VAR
41310 # ---------------
41311 # Portably unset VAR.
41312 as_fn_unset ()
41313 {
41314   { eval $1=; unset $1;}
41315 }
41316 as_unset=as_fn_unset
41317 # as_fn_append VAR VALUE
41318 # ----------------------
41319 # Append the text in VALUE to the end of the definition contained in VAR. Take
41320 # advantage of any shell optimizations that allow amortized linear growth over
41321 # repeated appends, instead of the typical quadratic growth present in naive
41322 # implementations.
41323 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41324   eval 'as_fn_append ()
41325   {
41326     eval $1+=\$2
41327   }'
41328 else
41329   as_fn_append ()
41330   {
41331     eval $1=\$$1\$2
41332   }
41333 fi # as_fn_append
41334
41335 # as_fn_arith ARG...
41336 # ------------------
41337 # Perform arithmetic evaluation on the ARGs, and store the result in the
41338 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41339 # must be portable across $(()) and expr.
41340 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41341   eval 'as_fn_arith ()
41342   {
41343     as_val=$(( $* ))
41344   }'
41345 else
41346   as_fn_arith ()
41347   {
41348     as_val=`expr "$@" || test $? -eq 1`
41349   }
41350 fi # as_fn_arith
41351
41352
41353 if expr a : '\(a\)' >/dev/null 2>&1 &&
41354    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41355   as_expr=expr
41356 else
41357   as_expr=false
41358 fi
41359
41360 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41361   as_basename=basename
41362 else
41363   as_basename=false
41364 fi
41365
41366 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41367   as_dirname=dirname
41368 else
41369   as_dirname=false
41370 fi
41371
41372 as_me=`$as_basename -- "$0" ||
41373 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41374          X"$0" : 'X\(//\)$' \| \
41375          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41376 $as_echo X/"$0" |
41377     sed '/^.*\/\([^/][^/]*\)\/*$/{
41378             s//\1/
41379             q
41380           }
41381           /^X\/\(\/\/\)$/{
41382             s//\1/
41383             q
41384           }
41385           /^X\/\(\/\).*/{
41386             s//\1/
41387             q
41388           }
41389           s/.*/./; q'`
41390
41391 # Avoid depending upon Character Ranges.
41392 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41393 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41394 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41395 as_cr_digits='0123456789'
41396 as_cr_alnum=$as_cr_Letters$as_cr_digits
41397
41398 ECHO_C= ECHO_N= ECHO_T=
41399 case `echo -n x` in #(((((
41400 -n*)
41401   case `echo 'xy\c'` in
41402   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
41403   xy)  ECHO_C='\c';;
41404   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
41405        ECHO_T=' ';;
41406   esac;;
41407 *)
41408   ECHO_N='-n';;
41409 esac
41410
41411 rm -f conf$$ conf$$.exe conf$$.file
41412 if test -d conf$$.dir; then
41413   rm -f conf$$.dir/conf$$.file
41414 else
41415   rm -f conf$$.dir
41416   mkdir conf$$.dir 2>/dev/null
41417 fi
41418 if (echo >conf$$.file) 2>/dev/null; then
41419   if ln -s conf$$.file conf$$ 2>/dev/null; then
41420     as_ln_s='ln -s'
41421     # ... but there are two gotchas:
41422     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41423     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41424     # In both cases, we have to default to `cp -pR'.
41425     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41426       as_ln_s='cp -pR'
41427   elif ln conf$$.file conf$$ 2>/dev/null; then
41428     as_ln_s=ln
41429   else
41430     as_ln_s='cp -pR'
41431   fi
41432 else
41433   as_ln_s='cp -pR'
41434 fi
41435 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41436 rmdir conf$$.dir 2>/dev/null
41437
41438
41439 # as_fn_mkdir_p
41440 # -------------
41441 # Create "$as_dir" as a directory, including parents if necessary.
41442 as_fn_mkdir_p ()
41443 {
41444
41445   case $as_dir in #(
41446   -*) as_dir=./$as_dir;;
41447   esac
41448   test -d "$as_dir" || eval $as_mkdir_p || {
41449     as_dirs=
41450     while :; do
41451       case $as_dir in #(
41452       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41453       *) as_qdir=$as_dir;;
41454       esac
41455       as_dirs="'$as_qdir' $as_dirs"
41456       as_dir=`$as_dirname -- "$as_dir" ||
41457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41458          X"$as_dir" : 'X\(//\)[^/]' \| \
41459          X"$as_dir" : 'X\(//\)$' \| \
41460          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41461 $as_echo X"$as_dir" |
41462     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41463             s//\1/
41464             q
41465           }
41466           /^X\(\/\/\)[^/].*/{
41467             s//\1/
41468             q
41469           }
41470           /^X\(\/\/\)$/{
41471             s//\1/
41472             q
41473           }
41474           /^X\(\/\).*/{
41475             s//\1/
41476             q
41477           }
41478           s/.*/./; q'`
41479       test -d "$as_dir" && break
41480     done
41481     test -z "$as_dirs" || eval "mkdir $as_dirs"
41482   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41483
41484
41485 } # as_fn_mkdir_p
41486 if mkdir -p . 2>/dev/null; then
41487   as_mkdir_p='mkdir -p "$as_dir"'
41488 else
41489   test -d ./-p && rmdir ./-p
41490   as_mkdir_p=false
41491 fi
41492
41493
41494 # as_fn_executable_p FILE
41495 # -----------------------
41496 # Test if FILE is an executable regular file.
41497 as_fn_executable_p ()
41498 {
41499   test -f "$1" && test -x "$1"
41500 } # as_fn_executable_p
41501 as_test_x='test -x'
41502 as_executable_p=as_fn_executable_p
41503
41504 # Sed expression to map a string onto a valid CPP name.
41505 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41506
41507 # Sed expression to map a string onto a valid variable name.
41508 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41509
41510
41511 exec 6>&1
41512 ## ----------------------------------- ##
41513 ## Main body of $CONFIG_STATUS script. ##
41514 ## ----------------------------------- ##
41515 _ASEOF
41516 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41517
41518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41519 # Save the log message, to keep $0 and so on meaningful, and to
41520 # report actual input values of CONFIG_FILES etc. instead of their
41521 # values after options handling.
41522 ac_log="
41523 This file was extended by curl $as_me -, which was
41524 generated by GNU Autoconf 2.69.  Invocation command line was
41525
41526   CONFIG_FILES    = $CONFIG_FILES
41527   CONFIG_HEADERS  = $CONFIG_HEADERS
41528   CONFIG_LINKS    = $CONFIG_LINKS
41529   CONFIG_COMMANDS = $CONFIG_COMMANDS
41530   $ $0 $@
41531
41532 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41533 "
41534
41535 _ACEOF
41536
41537 case $ac_config_files in *"
41538 "*) set x $ac_config_files; shift; ac_config_files=$*;;
41539 esac
41540
41541 case $ac_config_headers in *"
41542 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41543 esac
41544
41545
41546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41547 # Files that config.status was made for.
41548 config_files="$ac_config_files"
41549 config_headers="$ac_config_headers"
41550 config_commands="$ac_config_commands"
41551
41552 _ACEOF
41553
41554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41555 ac_cs_usage="\
41556 \`$as_me' instantiates files and other configuration actions
41557 from templates according to the current configuration.  Unless the files
41558 and actions are specified as TAGs, all are instantiated by default.
41559
41560 Usage: $0 [OPTION]... [TAG]...
41561
41562   -h, --help       print this help, then exit
41563   -V, --version    print version number and configuration settings, then exit
41564       --config     print configuration, then exit
41565   -q, --quiet, --silent
41566                    do not print progress messages
41567   -d, --debug      don't remove temporary files
41568       --recheck    update $as_me by reconfiguring in the same conditions
41569       --file=FILE[:TEMPLATE]
41570                    instantiate the configuration file FILE
41571       --header=FILE[:TEMPLATE]
41572                    instantiate the configuration header FILE
41573
41574 Configuration files:
41575 $config_files
41576
41577 Configuration headers:
41578 $config_headers
41579
41580 Configuration commands:
41581 $config_commands
41582
41583 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
41584
41585 _ACEOF
41586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41587 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41588 ac_cs_version="\\
41589 curl config.status -
41590 configured by $0, generated by GNU Autoconf 2.69,
41591   with options \\"\$ac_cs_config\\"
41592
41593 Copyright (C) 2012 Free Software Foundation, Inc.
41594 This config.status script is free software; the Free Software Foundation
41595 gives unlimited permission to copy, distribute and modify it."
41596
41597 ac_pwd='$ac_pwd'
41598 srcdir='$srcdir'
41599 INSTALL='$INSTALL'
41600 MKDIR_P='$MKDIR_P'
41601 AWK='$AWK'
41602 test -n "\$AWK" || AWK=awk
41603 _ACEOF
41604
41605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41606 # The default lists apply if the user does not specify any file.
41607 ac_need_defaults=:
41608 while test $# != 0
41609 do
41610   case $1 in
41611   --*=?*)
41612     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41613     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41614     ac_shift=:
41615     ;;
41616   --*=)
41617     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41618     ac_optarg=
41619     ac_shift=:
41620     ;;
41621   *)
41622     ac_option=$1
41623     ac_optarg=$2
41624     ac_shift=shift
41625     ;;
41626   esac
41627
41628   case $ac_option in
41629   # Handling of the options.
41630   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41631     ac_cs_recheck=: ;;
41632   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41633     $as_echo "$ac_cs_version"; exit ;;
41634   --config | --confi | --conf | --con | --co | --c )
41635     $as_echo "$ac_cs_config"; exit ;;
41636   --debug | --debu | --deb | --de | --d | -d )
41637     debug=: ;;
41638   --file | --fil | --fi | --f )
41639     $ac_shift
41640     case $ac_optarg in
41641     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41642     '') as_fn_error $? "missing file argument" ;;
41643     esac
41644     as_fn_append CONFIG_FILES " '$ac_optarg'"
41645     ac_need_defaults=false;;
41646   --header | --heade | --head | --hea )
41647     $ac_shift
41648     case $ac_optarg in
41649     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41650     esac
41651     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41652     ac_need_defaults=false;;
41653   --he | --h)
41654     # Conflict between --help and --header
41655     as_fn_error $? "ambiguous option: \`$1'
41656 Try \`$0 --help' for more information.";;
41657   --help | --hel | -h )
41658     $as_echo "$ac_cs_usage"; exit ;;
41659   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41660   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41661     ac_cs_silent=: ;;
41662
41663   # This is an error.
41664   -*) as_fn_error $? "unrecognized option: \`$1'
41665 Try \`$0 --help' for more information." ;;
41666
41667   *) as_fn_append ac_config_targets " $1"
41668      ac_need_defaults=false ;;
41669
41670   esac
41671   shift
41672 done
41673
41674 ac_configure_extra_args=
41675
41676 if $ac_cs_silent; then
41677   exec 6>/dev/null
41678   ac_configure_extra_args="$ac_configure_extra_args --silent"
41679 fi
41680
41681 _ACEOF
41682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41683 if \$ac_cs_recheck; then
41684   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41685   shift
41686   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41687   CONFIG_SHELL='$SHELL'
41688   export CONFIG_SHELL
41689   exec "\$@"
41690 fi
41691
41692 _ACEOF
41693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41694 exec 5>>config.log
41695 {
41696   echo
41697   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41698 ## Running $as_me. ##
41699 _ASBOX
41700   $as_echo "$ac_log"
41701 } >&5
41702
41703 _ACEOF
41704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41705 #
41706 # INIT-COMMANDS
41707 #
41708 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41709
41710
41711 # The HP-UX ksh and POSIX shell print the target directory to stdout
41712 # if CDPATH is set.
41713 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41714
41715 sed_quote_subst='$sed_quote_subst'
41716 double_quote_subst='$double_quote_subst'
41717 delay_variable_subst='$delay_variable_subst'
41718 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41719 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41720 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
41721 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41722 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41723 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41724 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41725 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41726 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41727 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41728 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41729 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41730 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41731 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41732 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41733 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41734 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41735 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41736 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41737 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41738 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41739 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41740 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41741 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41742 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41743 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41744 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41745 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41746 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41747 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41748 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41749 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41750 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41751 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41752 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41753 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41754 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41755 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41756 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41757 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41758 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41759 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41760 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41761 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41762 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41763 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41764 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41765 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41766 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41767 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41768 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41769 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41770 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41771 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41772 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41773 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41774 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41775 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41776 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41777 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"`'
41778 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41779 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41780 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41781 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41782 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41783 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41784 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41785 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41786 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41787 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41788 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41789 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41790 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41791 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41792 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41793 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41794 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41795 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41796 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41797 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41798 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41799 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41800 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41801 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41802 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41803 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41804 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41805 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41806 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41807 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41808 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41809 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41810 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41811 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41812 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41813 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41814 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41815 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41816 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41817 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41818 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41819 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41820 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41821 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41822 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41823 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41824 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41825 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41826 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41827 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41828 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41829 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41830 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41831 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41832 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41833 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41834 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41835 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41836 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41837 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41838 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41839 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41840 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41841 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41842 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41843 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41844 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41845 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41846 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41847 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41848 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41849 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41850 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41851 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41852 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41853 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41854
41855 LTCC='$LTCC'
41856 LTCFLAGS='$LTCFLAGS'
41857 compiler='$compiler_DEFAULT'
41858
41859 # A function that is used when there is no print builtin or printf.
41860 func_fallback_echo ()
41861 {
41862   eval 'cat <<_LTECHO_EOF
41863 \$1
41864 _LTECHO_EOF'
41865 }
41866
41867 # Quote evaled strings.
41868 for var in AS \
41869 DLLTOOL \
41870 OBJDUMP \
41871 SHELL \
41872 ECHO \
41873 PATH_SEPARATOR \
41874 SED \
41875 GREP \
41876 EGREP \
41877 FGREP \
41878 LD \
41879 NM \
41880 LN_S \
41881 lt_SP2NL \
41882 lt_NL2SP \
41883 reload_flag \
41884 deplibs_check_method \
41885 file_magic_cmd \
41886 file_magic_glob \
41887 want_nocaseglob \
41888 sharedlib_from_linklib_cmd \
41889 AR \
41890 AR_FLAGS \
41891 archiver_list_spec \
41892 STRIP \
41893 RANLIB \
41894 CC \
41895 CFLAGS \
41896 compiler \
41897 lt_cv_sys_global_symbol_pipe \
41898 lt_cv_sys_global_symbol_to_cdecl \
41899 lt_cv_sys_global_symbol_to_import \
41900 lt_cv_sys_global_symbol_to_c_name_address \
41901 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41902 lt_cv_nm_interface \
41903 nm_file_list_spec \
41904 lt_cv_truncate_bin \
41905 lt_prog_compiler_no_builtin_flag \
41906 lt_prog_compiler_pic \
41907 lt_prog_compiler_wl \
41908 lt_prog_compiler_static \
41909 lt_cv_prog_compiler_c_o \
41910 need_locks \
41911 MANIFEST_TOOL \
41912 DSYMUTIL \
41913 NMEDIT \
41914 LIPO \
41915 OTOOL \
41916 OTOOL64 \
41917 shrext_cmds \
41918 export_dynamic_flag_spec \
41919 whole_archive_flag_spec \
41920 compiler_needs_object \
41921 with_gnu_ld \
41922 allow_undefined_flag \
41923 no_undefined_flag \
41924 hardcode_libdir_flag_spec \
41925 hardcode_libdir_separator \
41926 exclude_expsyms \
41927 include_expsyms \
41928 file_list_spec \
41929 variables_saved_for_relink \
41930 libname_spec \
41931 library_names_spec \
41932 soname_spec \
41933 install_override_mode \
41934 finish_eval \
41935 old_striplib \
41936 striplib; do
41937     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41938     *[\\\\\\\`\\"\\\$]*)
41939       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41940       ;;
41941     *)
41942       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41943       ;;
41944     esac
41945 done
41946
41947 # Double-quote double-evaled strings.
41948 for var in reload_cmds \
41949 old_postinstall_cmds \
41950 old_postuninstall_cmds \
41951 old_archive_cmds \
41952 extract_expsyms_cmds \
41953 old_archive_from_new_cmds \
41954 old_archive_from_expsyms_cmds \
41955 archive_cmds \
41956 archive_expsym_cmds \
41957 module_cmds \
41958 module_expsym_cmds \
41959 export_symbols_cmds \
41960 prelink_cmds \
41961 postlink_cmds \
41962 postinstall_cmds \
41963 postuninstall_cmds \
41964 finish_cmds \
41965 sys_lib_search_path_spec \
41966 configure_time_dlsearch_path \
41967 configure_time_lt_sys_library_path; do
41968     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41969     *[\\\\\\\`\\"\\\$]*)
41970       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41971       ;;
41972     *)
41973       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41974       ;;
41975     esac
41976 done
41977
41978 ac_aux_dir='$ac_aux_dir'
41979
41980 # See if we are running on zsh, and set the options that allow our
41981 # commands through without removal of \ escapes INIT.
41982 if test -n "\${ZSH_VERSION+set}"; then
41983    setopt NO_GLOB_SUBST
41984 fi
41985
41986
41987     PACKAGE='$PACKAGE'
41988     VERSION='$VERSION'
41989     RM='$RM'
41990     ofile='$ofile'
41991
41992
41993
41994
41995 _ACEOF
41996
41997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41998
41999 # Handling of arguments.
42000 for ac_config_target in $ac_config_targets
42001 do
42002   case $ac_config_target in
42003     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42004     "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
42005     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42006     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42007     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42008     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42009     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42010     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42011     "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42012     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42013     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42014     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42015     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42016     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42017     "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42018     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42019     "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42020     "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42021     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42022     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42023     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42024     "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
42025     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42026     "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42027     "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42028     "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42029     "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42030     "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42031     "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42032     "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42033     "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42034     "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42035     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42036     "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42037     "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42038     "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42039     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42040     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42041
42042   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42043   esac
42044 done
42045
42046
42047 # If the user did not use the arguments to specify the items to instantiate,
42048 # then the envvar interface is used.  Set only those that are not.
42049 # We use the long form for the default assignment because of an extremely
42050 # bizarre bug on SunOS 4.1.3.
42051 if $ac_need_defaults; then
42052   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42053   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42054   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42055 fi
42056
42057 # Have a temporary directory for convenience.  Make it in the build tree
42058 # simply because there is no reason against having it here, and in addition,
42059 # creating and moving files from /tmp can sometimes cause problems.
42060 # Hook for its removal unless debugging.
42061 # Note that there is a small window in which the directory will not be cleaned:
42062 # after its creation but before its name has been assigned to `$tmp'.
42063 $debug ||
42064 {
42065   tmp= ac_tmp=
42066   trap 'exit_status=$?
42067   : "${ac_tmp:=$tmp}"
42068   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42069 ' 0
42070   trap 'as_fn_exit 1' 1 2 13 15
42071 }
42072 # Create a (secure) tmp directory for tmp files.
42073
42074 {
42075   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42076   test -d "$tmp"
42077 }  ||
42078 {
42079   tmp=./conf$$-$RANDOM
42080   (umask 077 && mkdir "$tmp")
42081 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42082 ac_tmp=$tmp
42083
42084 # Set up the scripts for CONFIG_FILES section.
42085 # No need to generate them if there are no CONFIG_FILES.
42086 # This happens for instance with `./config.status config.h'.
42087 if test -n "$CONFIG_FILES"; then
42088
42089
42090 ac_cr=`echo X | tr X '\015'`
42091 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42092 # But we know of no other shell where ac_cr would be empty at this
42093 # point, so we can use a bashism as a fallback.
42094 if test "x$ac_cr" = x; then
42095   eval ac_cr=\$\'\\r\'
42096 fi
42097 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42098 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42099   ac_cs_awk_cr='\\r'
42100 else
42101   ac_cs_awk_cr=$ac_cr
42102 fi
42103
42104 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42105 _ACEOF
42106
42107
42108 {
42109   echo "cat >conf$$subs.awk <<_ACEOF" &&
42110   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42111   echo "_ACEOF"
42112 } >conf$$subs.sh ||
42113   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42114 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42115 ac_delim='%!_!# '
42116 for ac_last_try in false false false false false :; do
42117   . ./conf$$subs.sh ||
42118     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42119
42120   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42121   if test $ac_delim_n = $ac_delim_num; then
42122     break
42123   elif $ac_last_try; then
42124     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42125   else
42126     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42127   fi
42128 done
42129 rm -f conf$$subs.sh
42130
42131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42132 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42133 _ACEOF
42134 sed -n '
42135 h
42136 s/^/S["/; s/!.*/"]=/
42137 p
42138 g
42139 s/^[^!]*!//
42140 :repl
42141 t repl
42142 s/'"$ac_delim"'$//
42143 t delim
42144 :nl
42145 h
42146 s/\(.\{148\}\)..*/\1/
42147 t more1
42148 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42149 p
42150 n
42151 b repl
42152 :more1
42153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42154 p
42155 g
42156 s/.\{148\}//
42157 t nl
42158 :delim
42159 h
42160 s/\(.\{148\}\)..*/\1/
42161 t more2
42162 s/["\\]/\\&/g; s/^/"/; s/$/"/
42163 p
42164 b
42165 :more2
42166 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42167 p
42168 g
42169 s/.\{148\}//
42170 t delim
42171 ' <conf$$subs.awk | sed '
42172 /^[^""]/{
42173   N
42174   s/\n//
42175 }
42176 ' >>$CONFIG_STATUS || ac_write_fail=1
42177 rm -f conf$$subs.awk
42178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42179 _ACAWK
42180 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42181   for (key in S) S_is_set[key] = 1
42182   FS = "\a"
42183
42184 }
42185 {
42186   line = $ 0
42187   nfields = split(line, field, "@")
42188   substed = 0
42189   len = length(field[1])
42190   for (i = 2; i < nfields; i++) {
42191     key = field[i]
42192     keylen = length(key)
42193     if (S_is_set[key]) {
42194       value = S[key]
42195       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42196       len += length(value) + length(field[++i])
42197       substed = 1
42198     } else
42199       len += 1 + keylen
42200   }
42201
42202   print line
42203 }
42204
42205 _ACAWK
42206 _ACEOF
42207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42208 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42209   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42210 else
42211   cat
42212 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42213   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42214 _ACEOF
42215
42216 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42217 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42218 # trailing colons and then remove the whole line if VPATH becomes empty
42219 # (actually we leave an empty line to preserve line numbers).
42220 if test "x$srcdir" = x.; then
42221   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
42222 h
42223 s///
42224 s/^/:/
42225 s/[      ]*$/:/
42226 s/:\$(srcdir):/:/g
42227 s/:\${srcdir}:/:/g
42228 s/:@srcdir@:/:/g
42229 s/^:*//
42230 s/:*$//
42231 x
42232 s/\(=[   ]*\).*/\1/
42233 G
42234 s/\n//
42235 s/^[^=]*=[       ]*$//
42236 }'
42237 fi
42238
42239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42240 fi # test -n "$CONFIG_FILES"
42241
42242 # Set up the scripts for CONFIG_HEADERS section.
42243 # No need to generate them if there are no CONFIG_HEADERS.
42244 # This happens for instance with `./config.status Makefile'.
42245 if test -n "$CONFIG_HEADERS"; then
42246 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42247 BEGIN {
42248 _ACEOF
42249
42250 # Transform confdefs.h into an awk script `defines.awk', embedded as
42251 # here-document in config.status, that substitutes the proper values into
42252 # config.h.in to produce config.h.
42253
42254 # Create a delimiter string that does not exist in confdefs.h, to ease
42255 # handling of long lines.
42256 ac_delim='%!_!# '
42257 for ac_last_try in false false :; do
42258   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42259   if test -z "$ac_tt"; then
42260     break
42261   elif $ac_last_try; then
42262     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42263   else
42264     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42265   fi
42266 done
42267
42268 # For the awk script, D is an array of macro values keyed by name,
42269 # likewise P contains macro parameters if any.  Preserve backslash
42270 # newline sequences.
42271
42272 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42273 sed -n '
42274 s/.\{148\}/&'"$ac_delim"'/g
42275 t rset
42276 :rset
42277 s/^[     ]*#[    ]*define[       ][      ]*/ /
42278 t def
42279 d
42280 :def
42281 s/\\$//
42282 t bsnl
42283 s/["\\]/\\&/g
42284 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
42285 D["\1"]=" \3"/p
42286 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
42287 d
42288 :bsnl
42289 s/["\\]/\\&/g
42290 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
42291 D["\1"]=" \3\\\\\\n"\\/p
42292 t cont
42293 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42294 t cont
42295 d
42296 :cont
42297 n
42298 s/.\{148\}/&'"$ac_delim"'/g
42299 t clear
42300 :clear
42301 s/\\$//
42302 t bsnlc
42303 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42304 d
42305 :bsnlc
42306 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42307 b cont
42308 ' <confdefs.h | sed '
42309 s/'"$ac_delim"'/"\\\
42310 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42311
42312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42313   for (key in D) D_is_set[key] = 1
42314   FS = "\a"
42315 }
42316 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42317   line = \$ 0
42318   split(line, arg, " ")
42319   if (arg[1] == "#") {
42320     defundef = arg[2]
42321     mac1 = arg[3]
42322   } else {
42323     defundef = substr(arg[1], 2)
42324     mac1 = arg[2]
42325   }
42326   split(mac1, mac2, "(") #)
42327   macro = mac2[1]
42328   prefix = substr(line, 1, index(line, defundef) - 1)
42329   if (D_is_set[macro]) {
42330     # Preserve the white space surrounding the "#".
42331     print prefix "define", macro P[macro] D[macro]
42332     next
42333   } else {
42334     # Replace #undef with comments.  This is necessary, for example,
42335     # in the case of _POSIX_SOURCE, which is predefined and required
42336     # on some systems where configure will not decide to define it.
42337     if (defundef == "undef") {
42338       print "/*", prefix defundef, macro, "*/"
42339       next
42340     }
42341   }
42342 }
42343 { print }
42344 _ACAWK
42345 _ACEOF
42346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42347   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42348 fi # test -n "$CONFIG_HEADERS"
42349
42350
42351 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
42352 shift
42353 for ac_tag
42354 do
42355   case $ac_tag in
42356   :[FHLC]) ac_mode=$ac_tag; continue;;
42357   esac
42358   case $ac_mode$ac_tag in
42359   :[FHL]*:*);;
42360   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42361   :[FH]-) ac_tag=-:-;;
42362   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42363   esac
42364   ac_save_IFS=$IFS
42365   IFS=:
42366   set x $ac_tag
42367   IFS=$ac_save_IFS
42368   shift
42369   ac_file=$1
42370   shift
42371
42372   case $ac_mode in
42373   :L) ac_source=$1;;
42374   :[FH])
42375     ac_file_inputs=
42376     for ac_f
42377     do
42378       case $ac_f in
42379       -) ac_f="$ac_tmp/stdin";;
42380       *) # Look for the file first in the build tree, then in the source tree
42381          # (if the path is not absolute).  The absolute path cannot be DOS-style,
42382          # because $ac_f cannot contain `:'.
42383          test -f "$ac_f" ||
42384            case $ac_f in
42385            [\\/$]*) false;;
42386            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42387            esac ||
42388            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42389       esac
42390       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42391       as_fn_append ac_file_inputs " '$ac_f'"
42392     done
42393
42394     # Let's still pretend it is `configure' which instantiates (i.e., don't
42395     # use $as_me), people would be surprised to read:
42396     #    /* config.h.  Generated by config.status.  */
42397     configure_input='Generated from '`
42398           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42399         `' by configure.'
42400     if test x"$ac_file" != x-; then
42401       configure_input="$ac_file.  $configure_input"
42402       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42403 $as_echo "$as_me: creating $ac_file" >&6;}
42404     fi
42405     # Neutralize special characters interpreted by sed in replacement strings.
42406     case $configure_input in #(
42407     *\&* | *\|* | *\\* )
42408        ac_sed_conf_input=`$as_echo "$configure_input" |
42409        sed 's/[\\\\&|]/\\\\&/g'`;; #(
42410     *) ac_sed_conf_input=$configure_input;;
42411     esac
42412
42413     case $ac_tag in
42414     *:-:* | *:-) cat >"$ac_tmp/stdin" \
42415       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42416     esac
42417     ;;
42418   esac
42419
42420   ac_dir=`$as_dirname -- "$ac_file" ||
42421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42422          X"$ac_file" : 'X\(//\)[^/]' \| \
42423          X"$ac_file" : 'X\(//\)$' \| \
42424          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42425 $as_echo X"$ac_file" |
42426     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42427             s//\1/
42428             q
42429           }
42430           /^X\(\/\/\)[^/].*/{
42431             s//\1/
42432             q
42433           }
42434           /^X\(\/\/\)$/{
42435             s//\1/
42436             q
42437           }
42438           /^X\(\/\).*/{
42439             s//\1/
42440             q
42441           }
42442           s/.*/./; q'`
42443   as_dir="$ac_dir"; as_fn_mkdir_p
42444   ac_builddir=.
42445
42446 case "$ac_dir" in
42447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42448 *)
42449   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42450   # A ".." for each directory in $ac_dir_suffix.
42451   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42452   case $ac_top_builddir_sub in
42453   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42454   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42455   esac ;;
42456 esac
42457 ac_abs_top_builddir=$ac_pwd
42458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42459 # for backward compatibility:
42460 ac_top_builddir=$ac_top_build_prefix
42461
42462 case $srcdir in
42463   .)  # We are building in place.
42464     ac_srcdir=.
42465     ac_top_srcdir=$ac_top_builddir_sub
42466     ac_abs_top_srcdir=$ac_pwd ;;
42467   [\\/]* | ?:[\\/]* )  # Absolute name.
42468     ac_srcdir=$srcdir$ac_dir_suffix;
42469     ac_top_srcdir=$srcdir
42470     ac_abs_top_srcdir=$srcdir ;;
42471   *) # Relative name.
42472     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42473     ac_top_srcdir=$ac_top_build_prefix$srcdir
42474     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42475 esac
42476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42477
42478
42479   case $ac_mode in
42480   :F)
42481   #
42482   # CONFIG_FILE
42483   #
42484
42485   case $INSTALL in
42486   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42487   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42488   esac
42489   ac_MKDIR_P=$MKDIR_P
42490   case $MKDIR_P in
42491   [\\/$]* | ?:[\\/]* ) ;;
42492   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42493   esac
42494 _ACEOF
42495
42496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42497 # If the template does not know about datarootdir, expand it.
42498 # FIXME: This hack should be removed a few years after 2.60.
42499 ac_datarootdir_hack=; ac_datarootdir_seen=
42500 ac_sed_dataroot='
42501 /datarootdir/ {
42502   p
42503   q
42504 }
42505 /@datadir@/p
42506 /@docdir@/p
42507 /@infodir@/p
42508 /@localedir@/p
42509 /@mandir@/p'
42510 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42511 *datarootdir*) ac_datarootdir_seen=yes;;
42512 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42513   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42514 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42515 _ACEOF
42516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42517   ac_datarootdir_hack='
42518   s&@datadir@&$datadir&g
42519   s&@docdir@&$docdir&g
42520   s&@infodir@&$infodir&g
42521   s&@localedir@&$localedir&g
42522   s&@mandir@&$mandir&g
42523   s&\\\${datarootdir}&$datarootdir&g' ;;
42524 esac
42525 _ACEOF
42526
42527 # Neutralize VPATH when `$srcdir' = `.'.
42528 # Shell code in configure.ac might set extrasub.
42529 # FIXME: do we really want to maintain this feature?
42530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42531 ac_sed_extra="$ac_vpsub
42532 $extrasub
42533 _ACEOF
42534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42535 :t
42536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42537 s|@configure_input@|$ac_sed_conf_input|;t t
42538 s&@top_builddir@&$ac_top_builddir_sub&;t t
42539 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42540 s&@srcdir@&$ac_srcdir&;t t
42541 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42542 s&@top_srcdir@&$ac_top_srcdir&;t t
42543 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42544 s&@builddir@&$ac_builddir&;t t
42545 s&@abs_builddir@&$ac_abs_builddir&;t t
42546 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42547 s&@INSTALL@&$ac_INSTALL&;t t
42548 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42549 $ac_datarootdir_hack
42550 "
42551 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42552   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42553
42554 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42555   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42556   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
42557       "$ac_tmp/out"`; test -z "$ac_out"; } &&
42558   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42559 which seems to be undefined.  Please make sure it is defined" >&5
42560 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42561 which seems to be undefined.  Please make sure it is defined" >&2;}
42562
42563   rm -f "$ac_tmp/stdin"
42564   case $ac_file in
42565   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42566   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42567   esac \
42568   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42569  ;;
42570   :H)
42571   #
42572   # CONFIG_HEADER
42573   #
42574   if test x"$ac_file" != x-; then
42575     {
42576       $as_echo "/* $configure_input  */" \
42577       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42578     } >"$ac_tmp/config.h" \
42579       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42580     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42581       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42582 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42583     else
42584       rm -f "$ac_file"
42585       mv "$ac_tmp/config.h" "$ac_file" \
42586         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42587     fi
42588   else
42589     $as_echo "/* $configure_input  */" \
42590       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42591       || as_fn_error $? "could not create -" "$LINENO" 5
42592   fi
42593 # Compute "$ac_file"'s index in $config_headers.
42594 _am_arg="$ac_file"
42595 _am_stamp_count=1
42596 for _am_header in $config_headers :; do
42597   case $_am_header in
42598     $_am_arg | $_am_arg:* )
42599       break ;;
42600     * )
42601       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42602   esac
42603 done
42604 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42605 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42606          X"$_am_arg" : 'X\(//\)[^/]' \| \
42607          X"$_am_arg" : 'X\(//\)$' \| \
42608          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42609 $as_echo X"$_am_arg" |
42610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42611             s//\1/
42612             q
42613           }
42614           /^X\(\/\/\)[^/].*/{
42615             s//\1/
42616             q
42617           }
42618           /^X\(\/\/\)$/{
42619             s//\1/
42620             q
42621           }
42622           /^X\(\/\).*/{
42623             s//\1/
42624             q
42625           }
42626           s/.*/./; q'`/stamp-h$_am_stamp_count
42627  ;;
42628
42629   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42630 $as_echo "$as_me: executing $ac_file commands" >&6;}
42631  ;;
42632   esac
42633
42634
42635   case $ac_file$ac_mode in
42636     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
42637   # Older Autoconf quotes --file arguments for eval, but not when files
42638   # are listed without --file.  Let's play safe and only enable the eval
42639   # if we detect the quoting.
42640   case $CONFIG_FILES in
42641   *\'*) eval set x "$CONFIG_FILES" ;;
42642   *)   set x $CONFIG_FILES ;;
42643   esac
42644   shift
42645   for mf
42646   do
42647     # Strip MF so we end up with the name of the file.
42648     mf=`echo "$mf" | sed -e 's/:.*$//'`
42649     # Check whether this is an Automake generated Makefile or not.
42650     # We used to match only the files named 'Makefile.in', but
42651     # some people rename them; so instead we look at the file content.
42652     # Grep'ing the first line is not enough: some people post-process
42653     # each Makefile.in and add a new line on top of each file to say so.
42654     # Grep'ing the whole file is not good either: AIX grep has a line
42655     # limit of 2048, but all sed's we know have understand at least 4000.
42656     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
42657       dirpart=`$as_dirname -- "$mf" ||
42658 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42659          X"$mf" : 'X\(//\)[^/]' \| \
42660          X"$mf" : 'X\(//\)$' \| \
42661          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42662 $as_echo X"$mf" |
42663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42664             s//\1/
42665             q
42666           }
42667           /^X\(\/\/\)[^/].*/{
42668             s//\1/
42669             q
42670           }
42671           /^X\(\/\/\)$/{
42672             s//\1/
42673             q
42674           }
42675           /^X\(\/\).*/{
42676             s//\1/
42677             q
42678           }
42679           s/.*/./; q'`
42680     else
42681       continue
42682     fi
42683     # Extract the definition of DEPDIR, am__include, and am__quote
42684     # from the Makefile without running 'make'.
42685     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42686     test -z "$DEPDIR" && continue
42687     am__include=`sed -n 's/^am__include = //p' < "$mf"`
42688     test -z "$am__include" && continue
42689     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42690     # Find all dependency output files, they are included files with
42691     # $(DEPDIR) in their names.  We invoke sed twice because it is the
42692     # simplest approach to changing $(DEPDIR) to its actual value in the
42693     # expansion.
42694     for file in `sed -n "
42695       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42696          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42697       # Make sure the directory exists.
42698       test -f "$dirpart/$file" && continue
42699       fdir=`$as_dirname -- "$file" ||
42700 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42701          X"$file" : 'X\(//\)[^/]' \| \
42702          X"$file" : 'X\(//\)$' \| \
42703          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42704 $as_echo X"$file" |
42705     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42706             s//\1/
42707             q
42708           }
42709           /^X\(\/\/\)[^/].*/{
42710             s//\1/
42711             q
42712           }
42713           /^X\(\/\/\)$/{
42714             s//\1/
42715             q
42716           }
42717           /^X\(\/\).*/{
42718             s//\1/
42719             q
42720           }
42721           s/.*/./; q'`
42722       as_dir=$dirpart/$fdir; as_fn_mkdir_p
42723       # echo "creating $dirpart/$file"
42724       echo '# dummy' > "$dirpart/$file"
42725     done
42726   done
42727 }
42728  ;;
42729     "libtool":C)
42730
42731     # See if we are running on zsh, and set the options that allow our
42732     # commands through without removal of \ escapes.
42733     if test -n "${ZSH_VERSION+set}"; then
42734       setopt NO_GLOB_SUBST
42735     fi
42736
42737     cfgfile=${ofile}T
42738     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42739     $RM "$cfgfile"
42740
42741     cat <<_LT_EOF >> "$cfgfile"
42742 #! $SHELL
42743 # Generated automatically by $as_me ($PACKAGE) $VERSION
42744 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42745
42746 # Provide generalized library-building support services.
42747 # Written by Gordon Matzigkeit, 1996
42748
42749 # Copyright (C) 2014 Free Software Foundation, Inc.
42750 # This is free software; see the source for copying conditions.  There is NO
42751 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42752
42753 # GNU Libtool is free software; you can redistribute it and/or modify
42754 # it under the terms of the GNU General Public License as published by
42755 # the Free Software Foundation; either version 2 of of the License, or
42756 # (at your option) any later version.
42757 #
42758 # As a special exception to the GNU General Public License, if you
42759 # distribute this file as part of a program or library that is built
42760 # using GNU Libtool, you may include this file under the  same
42761 # distribution terms that you use for the rest of that program.
42762 #
42763 # GNU Libtool is distributed in the hope that it will be useful, but
42764 # WITHOUT ANY WARRANTY; without even the implied warranty of
42765 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
42766 # GNU General Public License for more details.
42767 #
42768 # You should have received a copy of the GNU General Public License
42769 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
42770
42771
42772 # The names of the tagged configurations supported by this script.
42773 available_tags=''
42774
42775 # Configured defaults for sys_lib_dlsearch_path munging.
42776 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42777
42778 # ### BEGIN LIBTOOL CONFIG
42779
42780 # Which release of libtool.m4 was used?
42781 macro_version=$macro_version
42782 macro_revision=$macro_revision
42783
42784 # Assembler program.
42785 AS=$lt_AS
42786
42787 # DLL creation program.
42788 DLLTOOL=$lt_DLLTOOL
42789
42790 # Object dumper program.
42791 OBJDUMP=$lt_OBJDUMP
42792
42793 # Whether or not to build shared libraries.
42794 build_libtool_libs=$enable_shared
42795
42796 # Whether or not to build static libraries.
42797 build_old_libs=$enable_static
42798
42799 # What type of objects to build.
42800 pic_mode=$pic_mode
42801
42802 # Whether or not to optimize for fast installation.
42803 fast_install=$enable_fast_install
42804
42805 # Shared archive member basename,for filename based shared library versioning on AIX.
42806 shared_archive_member_spec=$shared_archive_member_spec
42807
42808 # Shell to use when invoking shell scripts.
42809 SHELL=$lt_SHELL
42810
42811 # An echo program that protects backslashes.
42812 ECHO=$lt_ECHO
42813
42814 # The PATH separator for the build system.
42815 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42816
42817 # The host system.
42818 host_alias=$host_alias
42819 host=$host
42820 host_os=$host_os
42821
42822 # The build system.
42823 build_alias=$build_alias
42824 build=$build
42825 build_os=$build_os
42826
42827 # A sed program that does not truncate output.
42828 SED=$lt_SED
42829
42830 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42831 Xsed="\$SED -e 1s/^X//"
42832
42833 # A grep program that handles long lines.
42834 GREP=$lt_GREP
42835
42836 # An ERE matcher.
42837 EGREP=$lt_EGREP
42838
42839 # A literal string matcher.
42840 FGREP=$lt_FGREP
42841
42842 # A BSD- or MS-compatible name lister.
42843 NM=$lt_NM
42844
42845 # Whether we need soft or hard links.
42846 LN_S=$lt_LN_S
42847
42848 # What is the maximum length of a command?
42849 max_cmd_len=$max_cmd_len
42850
42851 # Object file suffix (normally "o").
42852 objext=$ac_objext
42853
42854 # Executable file suffix (normally "").
42855 exeext=$exeext
42856
42857 # whether the shell understands "unset".
42858 lt_unset=$lt_unset
42859
42860 # turn spaces into newlines.
42861 SP2NL=$lt_lt_SP2NL
42862
42863 # turn newlines into spaces.
42864 NL2SP=$lt_lt_NL2SP
42865
42866 # convert \$build file names to \$host format.
42867 to_host_file_cmd=$lt_cv_to_host_file_cmd
42868
42869 # convert \$build files to toolchain format.
42870 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42871
42872 # Method to check whether dependent libraries are shared objects.
42873 deplibs_check_method=$lt_deplibs_check_method
42874
42875 # Command to use when deplibs_check_method = "file_magic".
42876 file_magic_cmd=$lt_file_magic_cmd
42877
42878 # How to find potential files when deplibs_check_method = "file_magic".
42879 file_magic_glob=$lt_file_magic_glob
42880
42881 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42882 want_nocaseglob=$lt_want_nocaseglob
42883
42884 # Command to associate shared and link libraries.
42885 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42886
42887 # The archiver.
42888 AR=$lt_AR
42889
42890 # Flags to create an archive.
42891 AR_FLAGS=$lt_AR_FLAGS
42892
42893 # How to feed a file listing to the archiver.
42894 archiver_list_spec=$lt_archiver_list_spec
42895
42896 # A symbol stripping program.
42897 STRIP=$lt_STRIP
42898
42899 # Commands used to install an old-style archive.
42900 RANLIB=$lt_RANLIB
42901 old_postinstall_cmds=$lt_old_postinstall_cmds
42902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42903
42904 # Whether to use a lock for old archive extraction.
42905 lock_old_archive_extraction=$lock_old_archive_extraction
42906
42907 # A C compiler.
42908 LTCC=$lt_CC
42909
42910 # LTCC compiler flags.
42911 LTCFLAGS=$lt_CFLAGS
42912
42913 # Take the output of nm and produce a listing of raw symbols and C names.
42914 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42915
42916 # Transform the output of nm in a proper C declaration.
42917 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42918
42919 # Transform the output of nm into a list of symbols to manually relocate.
42920 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
42921
42922 # Transform the output of nm in a C name address pair.
42923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42924
42925 # Transform the output of nm in a C name address pair when lib prefix is needed.
42926 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42927
42928 # The name lister interface.
42929 nm_interface=$lt_lt_cv_nm_interface
42930
42931 # Specify filename containing input files for \$NM.
42932 nm_file_list_spec=$lt_nm_file_list_spec
42933
42934 # The root where to search for dependent libraries,and where our libraries should be installed.
42935 lt_sysroot=$lt_sysroot
42936
42937 # Command to truncate a binary pipe.
42938 lt_truncate_bin=$lt_lt_cv_truncate_bin
42939
42940 # The name of the directory that contains temporary libtool files.
42941 objdir=$objdir
42942
42943 # Used to examine libraries when file_magic_cmd begins with "file".
42944 MAGIC_CMD=$MAGIC_CMD
42945
42946 # Must we lock files when doing compilation?
42947 need_locks=$lt_need_locks
42948
42949 # Manifest tool.
42950 MANIFEST_TOOL=$lt_MANIFEST_TOOL
42951
42952 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
42953 DSYMUTIL=$lt_DSYMUTIL
42954
42955 # Tool to change global to local symbols on Mac OS X.
42956 NMEDIT=$lt_NMEDIT
42957
42958 # Tool to manipulate fat objects and archives on Mac OS X.
42959 LIPO=$lt_LIPO
42960
42961 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
42962 OTOOL=$lt_OTOOL
42963
42964 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
42965 OTOOL64=$lt_OTOOL64
42966
42967 # Old archive suffix (normally "a").
42968 libext=$libext
42969
42970 # Shared library suffix (normally ".so").
42971 shrext_cmds=$lt_shrext_cmds
42972
42973 # The commands to extract the exported symbol list from a shared archive.
42974 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42975
42976 # Variables whose values should be saved in libtool wrapper scripts and
42977 # restored at link time.
42978 variables_saved_for_relink=$lt_variables_saved_for_relink
42979
42980 # Do we need the "lib" prefix for modules?
42981 need_lib_prefix=$need_lib_prefix
42982
42983 # Do we need a version for libraries?
42984 need_version=$need_version
42985
42986 # Library versioning type.
42987 version_type=$version_type
42988
42989 # Shared library runtime path variable.
42990 runpath_var=$runpath_var
42991
42992 # Shared library path variable.
42993 shlibpath_var=$shlibpath_var
42994
42995 # Is shlibpath searched before the hard-coded library search path?
42996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42997
42998 # Format of library name prefix.
42999 libname_spec=$lt_libname_spec
43000
43001 # List of archive names.  First name is the real one, the rest are links.
43002 # The last name is the one that the linker finds with -lNAME
43003 library_names_spec=$lt_library_names_spec
43004
43005 # The coded name of the library, if different from the real name.
43006 soname_spec=$lt_soname_spec
43007
43008 # Permission mode override for installation of shared libraries.
43009 install_override_mode=$lt_install_override_mode
43010
43011 # Command to use after installation of a shared archive.
43012 postinstall_cmds=$lt_postinstall_cmds
43013
43014 # Command to use after uninstallation of a shared archive.
43015 postuninstall_cmds=$lt_postuninstall_cmds
43016
43017 # Commands used to finish a libtool library installation in a directory.
43018 finish_cmds=$lt_finish_cmds
43019
43020 # As "finish_cmds", except a single script fragment to be evaled but
43021 # not shown.
43022 finish_eval=$lt_finish_eval
43023
43024 # Whether we should hardcode library paths into libraries.
43025 hardcode_into_libs=$hardcode_into_libs
43026
43027 # Compile-time system search path for libraries.
43028 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43029
43030 # Detected run-time system search path for libraries.
43031 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43032
43033 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43034 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43035
43036 # Whether dlopen is supported.
43037 dlopen_support=$enable_dlopen
43038
43039 # Whether dlopen of programs is supported.
43040 dlopen_self=$enable_dlopen_self
43041
43042 # Whether dlopen of statically linked programs is supported.
43043 dlopen_self_static=$enable_dlopen_self_static
43044
43045 # Commands to strip libraries.
43046 old_striplib=$lt_old_striplib
43047 striplib=$lt_striplib
43048
43049
43050 # The linker used to build libraries.
43051 LD=$lt_LD
43052
43053 # How to create reloadable object files.
43054 reload_flag=$lt_reload_flag
43055 reload_cmds=$lt_reload_cmds
43056
43057 # Commands used to build an old-style archive.
43058 old_archive_cmds=$lt_old_archive_cmds
43059
43060 # A language specific compiler.
43061 CC=$lt_compiler
43062
43063 # Is the compiler the GNU compiler?
43064 with_gcc=$GCC
43065
43066 # Compiler flag to turn off builtin functions.
43067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43068
43069 # Additional compiler flags for building library objects.
43070 pic_flag=$lt_lt_prog_compiler_pic
43071
43072 # How to pass a linker flag through the compiler.
43073 wl=$lt_lt_prog_compiler_wl
43074
43075 # Compiler flag to prevent dynamic linking.
43076 link_static_flag=$lt_lt_prog_compiler_static
43077
43078 # Does compiler simultaneously support -c and -o options?
43079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43080
43081 # Whether or not to add -lc for building shared libraries.
43082 build_libtool_need_lc=$archive_cmds_need_lc
43083
43084 # Whether or not to disallow shared libs when runtime libs are static.
43085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43086
43087 # Compiler flag to allow reflexive dlopens.
43088 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43089
43090 # Compiler flag to generate shared objects directly from archives.
43091 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43092
43093 # Whether the compiler copes with passing no objects directly.
43094 compiler_needs_object=$lt_compiler_needs_object
43095
43096 # Create an old-style archive from a shared archive.
43097 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43098
43099 # Create a temporary old-style archive to link instead of a shared archive.
43100 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43101
43102 # Commands used to build a shared archive.
43103 archive_cmds=$lt_archive_cmds
43104 archive_expsym_cmds=$lt_archive_expsym_cmds
43105
43106 # Commands used to build a loadable module if different from building
43107 # a shared archive.
43108 module_cmds=$lt_module_cmds
43109 module_expsym_cmds=$lt_module_expsym_cmds
43110
43111 # Whether we are building with GNU ld or not.
43112 with_gnu_ld=$lt_with_gnu_ld
43113
43114 # Flag that allows shared libraries with undefined symbols to be built.
43115 allow_undefined_flag=$lt_allow_undefined_flag
43116
43117 # Flag that enforces no undefined symbols.
43118 no_undefined_flag=$lt_no_undefined_flag
43119
43120 # Flag to hardcode \$libdir into a binary during linking.
43121 # This must work even if \$libdir does not exist
43122 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43123
43124 # Whether we need a single "-rpath" flag with a separated argument.
43125 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43126
43127 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43128 # DIR into the resulting binary.
43129 hardcode_direct=$hardcode_direct
43130
43131 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43132 # DIR into the resulting binary and the resulting library dependency is
43133 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43134 # library is relocated.
43135 hardcode_direct_absolute=$hardcode_direct_absolute
43136
43137 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43138 # into the resulting binary.
43139 hardcode_minus_L=$hardcode_minus_L
43140
43141 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43142 # into the resulting binary.
43143 hardcode_shlibpath_var=$hardcode_shlibpath_var
43144
43145 # Set to "yes" if building a shared library automatically hardcodes DIR
43146 # into the library and all subsequent libraries and executables linked
43147 # against it.
43148 hardcode_automatic=$hardcode_automatic
43149
43150 # Set to yes if linker adds runtime paths of dependent libraries
43151 # to runtime path list.
43152 inherit_rpath=$inherit_rpath
43153
43154 # Whether libtool must link a program against all its dependency libraries.
43155 link_all_deplibs=$link_all_deplibs
43156
43157 # Set to "yes" if exported symbols are required.
43158 always_export_symbols=$always_export_symbols
43159
43160 # The commands to list exported symbols.
43161 export_symbols_cmds=$lt_export_symbols_cmds
43162
43163 # Symbols that should not be listed in the preloaded symbols.
43164 exclude_expsyms=$lt_exclude_expsyms
43165
43166 # Symbols that must always be exported.
43167 include_expsyms=$lt_include_expsyms
43168
43169 # Commands necessary for linking programs (against libraries) with templates.
43170 prelink_cmds=$lt_prelink_cmds
43171
43172 # Commands necessary for finishing linking programs.
43173 postlink_cmds=$lt_postlink_cmds
43174
43175 # Specify filename containing input files.
43176 file_list_spec=$lt_file_list_spec
43177
43178 # How to hardcode a shared library path into an executable.
43179 hardcode_action=$hardcode_action
43180
43181 # ### END LIBTOOL CONFIG
43182
43183 _LT_EOF
43184
43185     cat <<'_LT_EOF' >> "$cfgfile"
43186
43187 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43188
43189 # func_munge_path_list VARIABLE PATH
43190 # -----------------------------------
43191 # VARIABLE is name of variable containing _space_ separated list of
43192 # directories to be munged by the contents of PATH, which is string
43193 # having a format:
43194 # "DIR[:DIR]:"
43195 #       string "DIR[ DIR]" will be prepended to VARIABLE
43196 # ":DIR[:DIR]"
43197 #       string "DIR[ DIR]" will be appended to VARIABLE
43198 # "DIRP[:DIRP]::[DIRA:]DIRA"
43199 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43200 #       "DIRA[ DIRA]" will be appended to VARIABLE
43201 # "DIR[:DIR]"
43202 #       VARIABLE will be replaced by "DIR[ DIR]"
43203 func_munge_path_list ()
43204 {
43205     case x$2 in
43206     x)
43207         ;;
43208     *:)
43209         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43210         ;;
43211     x:*)
43212         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43213         ;;
43214     *::*)
43215         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43216         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43217         ;;
43218     *)
43219         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43220         ;;
43221     esac
43222 }
43223
43224
43225 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
43226 func_cc_basename ()
43227 {
43228     for cc_temp in $*""; do
43229       case $cc_temp in
43230         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43231         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43232         \-*) ;;
43233         *) break;;
43234       esac
43235     done
43236     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43237 }
43238
43239
43240 # ### END FUNCTIONS SHARED WITH CONFIGURE
43241
43242 _LT_EOF
43243
43244   case $host_os in
43245   aix3*)
43246     cat <<\_LT_EOF >> "$cfgfile"
43247 # AIX sometimes has problems with the GCC collect2 program.  For some
43248 # reason, if we set the COLLECT_NAMES environment variable, the problems
43249 # vanish in a puff of smoke.
43250 if test set != "${COLLECT_NAMES+set}"; then
43251   COLLECT_NAMES=
43252   export COLLECT_NAMES
43253 fi
43254 _LT_EOF
43255     ;;
43256   esac
43257
43258
43259 ltmain=$ac_aux_dir/ltmain.sh
43260
43261
43262   # We use sed instead of cat because bash on DJGPP gets confused if
43263   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43264   # text mode, it properly converts lines to CR/LF.  This bash problem
43265   # is reportedly fixed, but why not run on old versions too?
43266   sed '$q' "$ltmain" >> "$cfgfile" \
43267      || (rm -f "$cfgfile"; exit 1)
43268
43269    mv -f "$cfgfile" "$ofile" ||
43270     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43271   chmod +x "$ofile"
43272
43273  ;;
43274
43275   esac
43276 done # for ac_tag
43277
43278
43279 as_fn_exit 0
43280 _ACEOF
43281 ac_clean_files=$ac_clean_files_save
43282
43283 test $ac_write_fail = 0 ||
43284   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43285
43286
43287 # configure is writing to config.log, and then calls config.status.
43288 # config.status does its own redirection, appending to config.log.
43289 # Unfortunately, on DOS this fails, as config.log is still kept open
43290 # by configure, so config.status won't be able to write to it; its
43291 # output is simply discarded.  So we exec the FD to /dev/null,
43292 # effectively closing config.log, so it can be properly (re)opened and
43293 # appended to by config.status.  When coming back to configure, we
43294 # need to make the FD available again.
43295 if test "$no_create" != yes; then
43296   ac_cs_success=:
43297   ac_config_status_args=
43298   test "$silent" = yes &&
43299     ac_config_status_args="$ac_config_status_args --quiet"
43300   exec 5>/dev/null
43301   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43302   exec 5>>config.log
43303   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43304   # would make configure fail if this is the last instruction.
43305   $ac_cs_success || as_fn_exit 1
43306 fi
43307
43308 #
43309 # CONFIG_SUBDIRS section.
43310 #
43311 if test "$no_recursion" != yes; then
43312
43313   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43314   # so they do not pile up.
43315   ac_sub_configure_args=
43316   ac_prev=
43317   eval "set x $ac_configure_args"
43318   shift
43319   for ac_arg
43320   do
43321     if test -n "$ac_prev"; then
43322       ac_prev=
43323       continue
43324     fi
43325     case $ac_arg in
43326     -cache-file | --cache-file | --cache-fil | --cache-fi \
43327     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43328       ac_prev=cache_file ;;
43329     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43330     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43331     | --c=*)
43332       ;;
43333     --config-cache | -C)
43334       ;;
43335     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43336       ac_prev=srcdir ;;
43337     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43338       ;;
43339     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43340       ac_prev=prefix ;;
43341     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43342       ;;
43343     --disable-option-checking)
43344       ;;
43345     *)
43346       case $ac_arg in
43347       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43348       esac
43349       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43350     esac
43351   done
43352
43353   # Always prepend --prefix to ensure using the same prefix
43354   # in subdir configurations.
43355   ac_arg="--prefix=$prefix"
43356   case $ac_arg in
43357   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43358   esac
43359   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43360
43361   # Pass --silent
43362   if test "$silent" = yes; then
43363     ac_sub_configure_args="--silent $ac_sub_configure_args"
43364   fi
43365
43366   # Always prepend --disable-option-checking to silence warnings, since
43367   # different subdirs can have different --enable and --with options.
43368   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43369
43370   ac_popdir=`pwd`
43371   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43372
43373     # Do not complain, so a configure script can configure whichever
43374     # parts of a large source tree are present.
43375     test -d "$srcdir/$ac_dir" || continue
43376
43377     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43378     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43379     $as_echo "$ac_msg" >&6
43380     as_dir="$ac_dir"; as_fn_mkdir_p
43381     ac_builddir=.
43382
43383 case "$ac_dir" in
43384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43385 *)
43386   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43387   # A ".." for each directory in $ac_dir_suffix.
43388   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43389   case $ac_top_builddir_sub in
43390   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43391   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43392   esac ;;
43393 esac
43394 ac_abs_top_builddir=$ac_pwd
43395 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43396 # for backward compatibility:
43397 ac_top_builddir=$ac_top_build_prefix
43398
43399 case $srcdir in
43400   .)  # We are building in place.
43401     ac_srcdir=.
43402     ac_top_srcdir=$ac_top_builddir_sub
43403     ac_abs_top_srcdir=$ac_pwd ;;
43404   [\\/]* | ?:[\\/]* )  # Absolute name.
43405     ac_srcdir=$srcdir$ac_dir_suffix;
43406     ac_top_srcdir=$srcdir
43407     ac_abs_top_srcdir=$srcdir ;;
43408   *) # Relative name.
43409     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43410     ac_top_srcdir=$ac_top_build_prefix$srcdir
43411     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43412 esac
43413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43414
43415
43416     cd "$ac_dir"
43417
43418     # Check for guested configure; otherwise get Cygnus style configure.
43419     if test -f "$ac_srcdir/configure.gnu"; then
43420       ac_sub_configure=$ac_srcdir/configure.gnu
43421     elif test -f "$ac_srcdir/configure"; then
43422       ac_sub_configure=$ac_srcdir/configure
43423     elif test -f "$ac_srcdir/configure.in"; then
43424       # This should be Cygnus configure.
43425       ac_sub_configure=$ac_aux_dir/configure
43426     else
43427       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43428 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43429       ac_sub_configure=
43430     fi
43431
43432     # The recursion is here.
43433     if test -n "$ac_sub_configure"; then
43434       # Make the cache file name correct relative to the subdirectory.
43435       case $cache_file in
43436       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43437       *) # Relative name.
43438         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43439       esac
43440
43441       { $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
43442 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43443       # The eval makes quoting arguments work.
43444       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43445            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43446         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43447     fi
43448
43449     cd "$ac_popdir"
43450   done
43451 fi
43452 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43453   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43454 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43455 fi
43456
43457
43458
43459     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
43460   if test -z "$tmp_cpp"; then
43461     tmp_cpp='cpp'
43462   fi
43463   cat >./tests/configurehelp.pm <<_EOF
43464 # This is a generated file.  Do not edit.
43465
43466 package configurehelp;
43467
43468 use strict;
43469 use warnings;
43470 use Exporter;
43471
43472 use vars qw(
43473     @ISA
43474     @EXPORT_OK
43475     \$Cpreprocessor
43476     );
43477
43478 @ISA = qw(Exporter);
43479
43480 @EXPORT_OK = qw(
43481     \$Cpreprocessor
43482     );
43483
43484 \$Cpreprocessor = '$tmp_cpp';
43485
43486 1;
43487 _EOF
43488
43489
43490
43491 ## ---------------------------------- ##
43492 ##  Start of distclean amending code  ##
43493 ## ---------------------------------- ##
43494
43495 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
43496 do
43497
43498 if test ! -f "$xc_subdir/Makefile"; then
43499   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
43500   exit 1
43501 fi
43502
43503 # Fetch dependency tracking file list from Makefile include lines.
43504
43505 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
43506 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
43507
43508 # --disable-dependency-tracking might have been used, consequently
43509 # there is nothing to amend without a dependency tracking file list.
43510
43511 if test $xc_cnt_words -gt 0; then
43512
43513 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
43514 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
43515
43516 # Build Makefile specific patch hunk.
43517
43518 xc_p="$xc_subdir/xc_patch.tmp"
43519
43520 xc_rm_depfiles=`echo "$xc_inc_lines" \
43521   | $SED 's%include%    -rm -f%' 2>/dev/null`
43522
43523 xc_dep_subdirs=`echo "$xc_inc_lines" \
43524   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
43525   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
43526   | sort | uniq`
43527
43528 echo "$xc_rm_depfiles" >$xc_p
43529
43530 for xc_dep_dir in $xc_dep_subdirs; do
43531   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
43532   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
43533   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
43534   echo "${xc_tab}fi"                                                                >>$xc_p
43535 done
43536
43537 # Build Makefile patching sed scripts.
43538
43539 xc_s1="$xc_subdir/xc_script_1.tmp"
43540 xc_s2="$xc_subdir/xc_script_2.tmp"
43541 xc_s3="$xc_subdir/xc_script_3.tmp"
43542
43543 cat >$xc_s1 <<\_EOT
43544 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
43545   s/^.*(DEPDIR)/___xc_depdir_line___/
43546 }
43547 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
43548   s/^.*(DEPDIR)/___xc_depdir_line___/
43549 }
43550 _EOT
43551
43552 cat >$xc_s2 <<\_EOT
43553 /___xc_depdir_line___$/{
43554   N
43555   /___xc_depdir_line___$/D
43556 }
43557 _EOT
43558
43559 cat >$xc_s3 <<_EOT
43560 /^___xc_depdir_line___/{
43561   r $xc_p
43562   d
43563 }
43564 _EOT
43565
43566 # Apply patch to Makefile and cleanup.
43567
43568 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
43569 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
43570 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
43571
43572 if test -f "$xc_subdir/Makefile.tmp3"; then
43573   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
43574 fi
43575
43576 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
43577 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
43578 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
43579
43580 test -f "$xc_p"  && rm -f "$xc_p"
43581 test -f "$xc_s1" && rm -f "$xc_s1"
43582 test -f "$xc_s2" && rm -f "$xc_s2"
43583 test -f "$xc_s3" && rm -f "$xc_s3"
43584
43585 fi
43586
43587 done
43588
43589 ## -------------------------------- ##
43590 ##  End of distclean amending code  ##
43591 ## -------------------------------- ##
43592
43593
43594
43595 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
43596
43597   curl version:     ${CURLVERSION}
43598   Host setup:       ${host}
43599   Install prefix:   ${prefix}
43600   Compiler:         ${CC}
43601   SSL support:      ${curl_ssl_msg}
43602   SSH support:      ${curl_ssh_msg}
43603   zlib support:     ${curl_zlib_msg}
43604   GSS-API support:  ${curl_gss_msg}
43605   TLS-SRP support:  ${curl_tls_srp_msg}
43606   resolver:         ${curl_res_msg}
43607   IPv6 support:     ${curl_ipv6_msg}
43608   Unix sockets support: ${curl_unix_sockets_msg}
43609   IDN support:      ${curl_idn_msg}
43610   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
43611   Built-in manual:  ${curl_manual_msg}
43612   --libcurl option: ${curl_libcurl_msg}
43613   Verbose errors:   ${curl_verbose_msg}
43614   SSPI support:     ${curl_sspi_msg}
43615   ca cert bundle:   ${ca}${ca_warning}
43616   ca cert path:     ${capath}${capath_warning}
43617   ca fallback:      ${with_ca_fallback}
43618   LDAP support:     ${curl_ldap_msg}
43619   LDAPS support:    ${curl_ldaps_msg}
43620   RTSP support:     ${curl_rtsp_msg}
43621   RTMP support:     ${curl_rtmp_msg}
43622   metalink support: ${curl_mtlnk_msg}
43623   PSL support:      ${curl_psl_msg}
43624   HTTP2 support:    ${curl_h2_msg}
43625   Protocols:        ${SUPPORT_PROTOCOLS}
43626 " >&5
43627 $as_echo "$as_me: Configured to build curl/libcurl:
43628
43629   curl version:     ${CURLVERSION}
43630   Host setup:       ${host}
43631   Install prefix:   ${prefix}
43632   Compiler:         ${CC}
43633   SSL support:      ${curl_ssl_msg}
43634   SSH support:      ${curl_ssh_msg}
43635   zlib support:     ${curl_zlib_msg}
43636   GSS-API support:  ${curl_gss_msg}
43637   TLS-SRP support:  ${curl_tls_srp_msg}
43638   resolver:         ${curl_res_msg}
43639   IPv6 support:     ${curl_ipv6_msg}
43640   Unix sockets support: ${curl_unix_sockets_msg}
43641   IDN support:      ${curl_idn_msg}
43642   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
43643   Built-in manual:  ${curl_manual_msg}
43644   --libcurl option: ${curl_libcurl_msg}
43645   Verbose errors:   ${curl_verbose_msg}
43646   SSPI support:     ${curl_sspi_msg}
43647   ca cert bundle:   ${ca}${ca_warning}
43648   ca cert path:     ${capath}${capath_warning}
43649   ca fallback:      ${with_ca_fallback}
43650   LDAP support:     ${curl_ldap_msg}
43651   LDAPS support:    ${curl_ldaps_msg}
43652   RTSP support:     ${curl_rtsp_msg}
43653   RTMP support:     ${curl_rtmp_msg}
43654   metalink support: ${curl_mtlnk_msg}
43655   PSL support:      ${curl_psl_msg}
43656   HTTP2 support:    ${curl_h2_msg}
43657   Protocols:        ${SUPPORT_PROTOCOLS}
43658 " >&6;}
43659
43660 if test "x$soname_bump" = "xyes"; then
43661
43662 cat <<EOM
43663   SONAME bump:     yes - WARNING: this library will be built with the SONAME
43664                    number bumped due to (a detected) ABI breakage.
43665                    See lib/README.curl_off_t for details on this.
43666 EOM
43667
43668 fi
43669