chiark / gitweb /
Change build-depends to list libssl-dev first. Outcome in sid/buster is to switch...
[curl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for curl -.
4 #
5 # Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
15 # This configure script may be copied, distributed and modified under the
16 # terms of the curl license; see COPYING for more details
17
18 ## -------------------------------- ##
19 ##  XC_CONFIGURE_PREAMBLE ver: 1.0  ##
20 ## -------------------------------- ##
21
22 xc_configure_preamble_ver_major='1'
23 xc_configure_preamble_ver_minor='0'
24
25 #
26 # Set IFS to space, tab and newline.
27 #
28
29 xc_space=' '
30 xc_tab='        '
31 xc_newline='
32 '
33 IFS="$xc_space$xc_tab$xc_newline"
34
35 #
36 # Set internationalization behavior variables.
37 #
38
39 LANG='C'
40 LC_ALL='C'
41 LANGUAGE='C'
42 export LANG
43 export LC_ALL
44 export LANGUAGE
45
46 #
47 # Some useful variables.
48 #
49
50 xc_msg_warn='configure: WARNING:'
51 xc_msg_abrt='Can not continue.'
52 xc_msg_err='configure: error:'
53
54 #
55 # Verify that 'echo' command is available, otherwise abort.
56 #
57
58 xc_tst_str='unknown'
59 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60 case "x$xc_tst_str" in # ((
61   xsuccess)
62     :
63     ;;
64   *)
65     # Try built-in echo, and fail.
66     echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
67     exit 1
68     ;;
69 esac
70
71 #
72 # Verify that 'test' command is available, otherwise abort.
73 #
74
75 xc_tst_str='unknown'
76 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77 case "x$xc_tst_str" in # ((
78   xsuccess)
79     :
80     ;;
81   *)
82     echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
83     exit 1
84     ;;
85 esac
86
87 #
88 # Verify that 'PATH' variable is set, otherwise abort.
89 #
90
91 xc_tst_str='unknown'
92 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93 case "x$xc_tst_str" in # ((
94   xsuccess)
95     :
96     ;;
97   *)
98     echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
99     exit 1
100     ;;
101 esac
102
103 #
104 # Verify that 'expr' command is available, otherwise abort.
105 #
106
107 xc_tst_str='unknown'
108 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109 case "x$xc_tst_str" in # ((
110   x7)
111     :
112     ;;
113   *)
114     echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
115     exit 1
116     ;;
117 esac
118
119 #
120 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
121 #
122
123 xc_tst_str='unknown'
124 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125   | sed -e 's:unknown:success:' 2>/dev/null`
126 case "x$xc_tst_str" in # ((
127   xsuccess)
128     :
129     ;;
130   *)
131     echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
132     exit 1
133     ;;
134 esac
135
136 #
137 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
138 #
139
140 xc_tst_str='unknown'
141 (`echo "$xc_tst_str" 2>/dev/null \
142   | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143 case "x$xc_tst_str" in # ((
144   xsuccess)
145     :
146     ;;
147   *)
148     echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
149     exit 1
150     ;;
151 esac
152
153 #
154 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
155 #
156
157 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159   | tr -d "0123456789$xc_tab" 2>/dev/null`
160 case "x$xc_tst_str" in # ((
161   xsuccess)
162     :
163     ;;
164   *)
165     echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
166     exit 1
167     ;;
168 esac
169
170 #
171 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
172 #
173
174 xc_tst_str='unknown unknown unknown unknown'
175 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176   | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177 case "x$xc_tst_str" in # ((
178   x4)
179     :
180     ;;
181   *)
182     echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
183     exit 1
184     ;;
185 esac
186
187 #
188 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
189 #
190
191 xc_tst_str='unknown'
192 xc_tst_str=`cat <<_EOT 2>/dev/null \
193   | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194 unknown
195 unknown
196 unknown
197 _EOT`
198 case "x$xc_tst_str" in # ((
199   x3)
200     :
201     ;;
202   *)
203     echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
204     exit 1
205     ;;
206 esac
207
208 #
209 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
210 #
211
212 # Directory count in 'PATH' when using a colon separator.
213 xc_tst_dirs_col='x'
214 xc_tst_prev_IFS=$IFS; IFS=':'
215 for xc_tst_dir in $PATH; do
216   IFS=$xc_tst_prev_IFS
217   xc_tst_dirs_col="x$xc_tst_dirs_col"
218 done
219 IFS=$xc_tst_prev_IFS
220 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
221
222 # Directory count in 'PATH' when using a semicolon separator.
223 xc_tst_dirs_sem='x'
224 xc_tst_prev_IFS=$IFS; IFS=';'
225 for xc_tst_dir in $PATH; do
226   IFS=$xc_tst_prev_IFS
227   xc_tst_dirs_sem="x$xc_tst_dirs_sem"
228 done
229 IFS=$xc_tst_prev_IFS
230 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
231
232 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233   # When both counting methods give the same result we do not want to
234   # chose one over the other, and consider auto-detection not possible.
235   if test -z "$PATH_SEPARATOR"; then
236     # 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 CFLAG_CURL_SYMBOL_HIDING
889 DOING_CURL_SYMBOL_HIDING_FALSE
890 DOING_CURL_SYMBOL_HIDING_TRUE
891 USE_UNIX_SOCKETS
892 BUILD_LIBHOSTNAME_FALSE
893 BUILD_LIBHOSTNAME_TRUE
894 USE_EMBEDDED_ARES_FALSE
895 USE_EMBEDDED_ARES_TRUE
896 USE_ARES
897 subdirs
898 USE_MANUAL_FALSE
899 USE_MANUAL_TRUE
900 MANOPT
901 NROFF
902 PERL
903 IPV6_ENABLED
904 ZSH_FUNCTIONS_DIR
905 USE_NGHTTP2
906 IDN_ENABLED
907 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
908 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
909 CURL_LT_SHLIB_VERSIONED_FLAVOUR
910 USE_LIBRTMP
911 USE_LIBSSH2
912 LIBMETALINK_CPPFLAGS
913 LIBMETALINK_LDFLAGS
914 LIBMETALINK_LIBS
915 USE_LIBPSL_FALSE
916 USE_LIBPSL_TRUE
917 CURL_CA_BUNDLE
918 CURL_WITH_MULTI_SSL
919 SSL_ENABLED
920 USE_AXTLS
921 NSS_LIBS
922 USE_NSS
923 USE_CYASSL
924 USE_MBEDTLS
925 USE_POLARSSL
926 HAVE_GNUTLS_SRP
927 USE_GNUTLS_NETTLE
928 USE_GNUTLS
929 HAVE_OPENSSL_SRP
930 RANDOM_FILE
931 SSL_LIBS
932 USE_DARWINSSL
933 USE_WINDOWS_SSPI
934 USE_SCHANNEL
935 DEFAULT_SSL_BACKEND
936 BUILD_STUB_GSS_FALSE
937 BUILD_STUB_GSS_TRUE
938 USE_OPENLDAP
939 ZLIB_LIBS
940 HAVE_LIBZ_FALSE
941 HAVE_LIBZ_TRUE
942 HAVE_LIBZ
943 PKGCONFIG
944 CURL_DISABLE_GOPHER
945 CURL_DISABLE_SMTP
946 CURL_DISABLE_SMB
947 CURL_DISABLE_IMAP
948 CURL_DISABLE_POP3
949 CURL_DISABLE_TFTP
950 CURL_DISABLE_TELNET
951 CURL_DISABLE_DICT
952 CURL_DISABLE_PROXY
953 HAVE_LDAP_SSL
954 CURL_DISABLE_LDAPS
955 CURL_DISABLE_LDAP
956 CURL_DISABLE_FILE
957 CURL_DISABLE_FTP
958 CURL_DISABLE_RTSP
959 CURL_DISABLE_HTTP
960 DOING_NATIVE_WINDOWS_FALSE
961 DOING_NATIVE_WINDOWS_TRUE
962 BUILD_UNITTESTS_FALSE
963 BUILD_UNITTESTS_TRUE
964 CURLDEBUG_FALSE
965 CURLDEBUG_TRUE
966 USE_EXPLICIT_LIB_DEPS_FALSE
967 USE_EXPLICIT_LIB_DEPS_TRUE
968 REQUIRE_LIB_DEPS
969 CPPFLAG_CURL_STATICLIB
970 USE_CPPFLAG_CURL_STATICLIB_FALSE
971 USE_CPPFLAG_CURL_STATICLIB_TRUE
972 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
973 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
974 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
975 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
976 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
977 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
978 LT_SYS_LIBRARY_PATH
979 OTOOL64
980 OTOOL
981 LIPO
982 NMEDIT
983 DSYMUTIL
984 MANIFEST_TOOL
985 RANLIB
986 ac_ct_AR
987 LN_S
988 NM
989 ac_ct_DUMPBIN
990 DUMPBIN
991 LD
992 FGREP
993 LIBTOOL
994 OBJDUMP
995 DLLTOOL
996 AS
997 host_os
998 host_vendor
999 host_cpu
1000 host
1001 build_os
1002 build_vendor
1003 build_cpu
1004 build
1005 PKGADD_VENDOR
1006 PKGADD_NAME
1007 PKGADD_PKG
1008 VERSIONNUM
1009 CURLVERSION
1010 am__fastdepCC_FALSE
1011 am__fastdepCC_TRUE
1012 CCDEPMODE
1013 am__nodep
1014 AMDEPBACKSLASH
1015 AMDEP_FALSE
1016 AMDEP_TRUE
1017 am__quote
1018 am__include
1019 DEPDIR
1020 am__untar
1021 am__tar
1022 AMTAR
1023 am__leading_dot
1024 SET_MAKE
1025 AWK
1026 mkdir_p
1027 MKDIR_P
1028 INSTALL_STRIP_PROGRAM
1029 STRIP
1030 install_sh
1031 MAKEINFO
1032 AUTOHEADER
1033 AUTOMAKE
1034 AUTOCONF
1035 ACLOCAL
1036 VERSION
1037 PACKAGE
1038 CYGPATH_W
1039 am__isrc
1040 CPP
1041 OBJEXT
1042 EXEEXT
1043 ac_ct_CC
1044 CPPFLAGS
1045 LDFLAGS
1046 CFLAGS
1047 CC
1048 INSTALL_DATA
1049 INSTALL_SCRIPT
1050 INSTALL_PROGRAM
1051 libext
1052 AR
1053 EGREP
1054 GREP
1055 CURL_CFLAG_EXTRAS
1056 CONFIGURE_OPTIONS
1057 CODE_COVERAGE_RULES
1058 CODE_COVERAGE_LDFLAGS
1059 CODE_COVERAGE_LIBS
1060 CODE_COVERAGE_CXXFLAGS
1061 CODE_COVERAGE_CFLAGS
1062 CODE_COVERAGE_CPPFLAGS
1063 GENHTML
1064 LCOV
1065 GCOV
1066 CODE_COVERAGE_ENABLED
1067 CODE_COVERAGE_ENABLED_FALSE
1068 CODE_COVERAGE_ENABLED_TRUE
1069 SED
1070 AM_BACKSLASH
1071 AM_DEFAULT_VERBOSITY
1072 AM_DEFAULT_V
1073 AM_V
1074 MAINT
1075 MAINTAINER_MODE_FALSE
1076 MAINTAINER_MODE_TRUE
1077 target_alias
1078 host_alias
1079 build_alias
1080 LIBS
1081 ECHO_T
1082 ECHO_N
1083 ECHO_C
1084 DEFS
1085 mandir
1086 localedir
1087 libdir
1088 psdir
1089 pdfdir
1090 dvidir
1091 htmldir
1092 infodir
1093 docdir
1094 oldincludedir
1095 includedir
1096 runstatedir
1097 localstatedir
1098 sharedstatedir
1099 sysconfdir
1100 datadir
1101 datarootdir
1102 libexecdir
1103 sbindir
1104 bindir
1105 program_transform_name
1106 prefix
1107 exec_prefix
1108 PACKAGE_URL
1109 PACKAGE_BUGREPORT
1110 PACKAGE_STRING
1111 PACKAGE_VERSION
1112 PACKAGE_TARNAME
1113 PACKAGE_NAME
1114 SHELL
1115 PATH_SEPARATOR'
1116 ac_subst_files=''
1117 ac_user_opts='
1118 enable_option_checking
1119 enable_maintainer_mode
1120 enable_silent_rules
1121 enable_debug
1122 enable_optimize
1123 enable_warnings
1124 enable_werror
1125 enable_curldebug
1126 enable_symbol_hiding
1127 enable_hidden_symbols
1128 enable_ares
1129 enable_rt
1130 with_gcov
1131 enable_code_coverage
1132 enable_dependency_tracking
1133 enable_largefile
1134 enable_shared
1135 enable_static
1136 with_pic
1137 enable_fast_install
1138 with_aix_soname
1139 with_gnu_ld
1140 with_sysroot
1141 enable_libtool_lock
1142 enable_http
1143 enable_ftp
1144 enable_file
1145 enable_ldap
1146 enable_ldaps
1147 enable_rtsp
1148 enable_proxy
1149 enable_dict
1150 enable_telnet
1151 enable_tftp
1152 enable_pop3
1153 enable_imap
1154 enable_smb
1155 enable_smtp
1156 enable_gopher
1157 enable_manual
1158 enable_libcurl_option
1159 enable_libgcc
1160 with_zlib
1161 with_ldap_lib
1162 with_lber_lib
1163 enable_ipv6
1164 with_gssapi_includes
1165 with_gssapi_libs
1166 with_gssapi
1167 with_default_ssl_backend
1168 with_winssl
1169 with_darwinssl
1170 with_ssl
1171 with_egd_socket
1172 with_random
1173 with_gnutls
1174 with_polarssl
1175 with_mbedtls
1176 with_cyassl
1177 with_nss
1178 with_axtls
1179 with_ca_bundle
1180 with_ca_path
1181 with_ca_fallback
1182 with_libpsl
1183 with_libmetalink
1184 with_libssh2
1185 with_librtmp
1186 enable_versioned_symbols
1187 with_winidn
1188 with_libidn2
1189 with_nghttp2
1190 with_zsh_functions_dir
1191 enable_threaded_resolver
1192 enable_pthreads
1193 enable_verbose
1194 enable_sspi
1195 enable_crypto_auth
1196 enable_ntlm_wb
1197 enable_tls_srp
1198 enable_unix_sockets
1199 enable_cookies
1200 '
1201       ac_precious_vars='build_alias
1202 host_alias
1203 target_alias
1204 CC
1205 CFLAGS
1206 LDFLAGS
1207 LIBS
1208 CPPFLAGS
1209 CPP
1210 LT_SYS_LIBRARY_PATH'
1211 ac_subdirs_all='ares'
1212
1213 # Initialize some variables set by options.
1214 ac_init_help=
1215 ac_init_version=false
1216 ac_unrecognized_opts=
1217 ac_unrecognized_sep=
1218 # The variables have the same names as the options, with
1219 # dashes changed to underlines.
1220 cache_file=/dev/null
1221 exec_prefix=NONE
1222 no_create=
1223 no_recursion=
1224 prefix=NONE
1225 program_prefix=NONE
1226 program_suffix=NONE
1227 program_transform_name=s,x,x,
1228 silent=
1229 site=
1230 srcdir=
1231 verbose=
1232 x_includes=NONE
1233 x_libraries=NONE
1234
1235 # Installation directory options.
1236 # These are left unexpanded so users can "make install exec_prefix=/foo"
1237 # and all the variables that are supposed to be based on exec_prefix
1238 # by default will actually change.
1239 # Use braces instead of parens because sh, perl, etc. also accept them.
1240 # (The list follows the same order as the GNU Coding Standards.)
1241 bindir='${exec_prefix}/bin'
1242 sbindir='${exec_prefix}/sbin'
1243 libexecdir='${exec_prefix}/libexec'
1244 datarootdir='${prefix}/share'
1245 datadir='${datarootdir}'
1246 sysconfdir='${prefix}/etc'
1247 sharedstatedir='${prefix}/com'
1248 localstatedir='${prefix}/var'
1249 runstatedir='${localstatedir}/run'
1250 includedir='${prefix}/include'
1251 oldincludedir='/usr/include'
1252 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1253 infodir='${datarootdir}/info'
1254 htmldir='${docdir}'
1255 dvidir='${docdir}'
1256 pdfdir='${docdir}'
1257 psdir='${docdir}'
1258 libdir='${exec_prefix}/lib'
1259 localedir='${datarootdir}/locale'
1260 mandir='${datarootdir}/man'
1261
1262 ac_prev=
1263 ac_dashdash=
1264 for ac_option
1265 do
1266   # If the previous option needs an argument, assign it.
1267   if test -n "$ac_prev"; then
1268     eval $ac_prev=\$ac_option
1269     ac_prev=
1270     continue
1271   fi
1272
1273   case $ac_option in
1274   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1275   *=)   ac_optarg= ;;
1276   *)    ac_optarg=yes ;;
1277   esac
1278
1279   # Accept the important Cygnus configure options, so we can diagnose typos.
1280
1281   case $ac_dashdash$ac_option in
1282   --)
1283     ac_dashdash=yes ;;
1284
1285   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1286     ac_prev=bindir ;;
1287   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1288     bindir=$ac_optarg ;;
1289
1290   -build | --build | --buil | --bui | --bu)
1291     ac_prev=build_alias ;;
1292   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1293     build_alias=$ac_optarg ;;
1294
1295   -cache-file | --cache-file | --cache-fil | --cache-fi \
1296   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1297     ac_prev=cache_file ;;
1298   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1299   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1300     cache_file=$ac_optarg ;;
1301
1302   --config-cache | -C)
1303     cache_file=config.cache ;;
1304
1305   -datadir | --datadir | --datadi | --datad)
1306     ac_prev=datadir ;;
1307   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1308     datadir=$ac_optarg ;;
1309
1310   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1311   | --dataroo | --dataro | --datar)
1312     ac_prev=datarootdir ;;
1313   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1314   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1315     datarootdir=$ac_optarg ;;
1316
1317   -disable-* | --disable-*)
1318     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1319     # Reject names that are not valid shell variable names.
1320     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321       as_fn_error $? "invalid feature name: $ac_useropt"
1322     ac_useropt_orig=$ac_useropt
1323     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324     case $ac_user_opts in
1325       *"
1326 "enable_$ac_useropt"
1327 "*) ;;
1328       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1329          ac_unrecognized_sep=', ';;
1330     esac
1331     eval enable_$ac_useropt=no ;;
1332
1333   -docdir | --docdir | --docdi | --doc | --do)
1334     ac_prev=docdir ;;
1335   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1336     docdir=$ac_optarg ;;
1337
1338   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1339     ac_prev=dvidir ;;
1340   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1341     dvidir=$ac_optarg ;;
1342
1343   -enable-* | --enable-*)
1344     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1345     # Reject names that are not valid shell variable names.
1346     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347       as_fn_error $? "invalid feature name: $ac_useropt"
1348     ac_useropt_orig=$ac_useropt
1349     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350     case $ac_user_opts in
1351       *"
1352 "enable_$ac_useropt"
1353 "*) ;;
1354       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1355          ac_unrecognized_sep=', ';;
1356     esac
1357     eval enable_$ac_useropt=\$ac_optarg ;;
1358
1359   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1360   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1361   | --exec | --exe | --ex)
1362     ac_prev=exec_prefix ;;
1363   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1364   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1365   | --exec=* | --exe=* | --ex=*)
1366     exec_prefix=$ac_optarg ;;
1367
1368   -gas | --gas | --ga | --g)
1369     # Obsolete; use --with-gas.
1370     with_gas=yes ;;
1371
1372   -help | --help | --hel | --he | -h)
1373     ac_init_help=long ;;
1374   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1375     ac_init_help=recursive ;;
1376   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1377     ac_init_help=short ;;
1378
1379   -host | --host | --hos | --ho)
1380     ac_prev=host_alias ;;
1381   -host=* | --host=* | --hos=* | --ho=*)
1382     host_alias=$ac_optarg ;;
1383
1384   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1385     ac_prev=htmldir ;;
1386   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1387   | --ht=*)
1388     htmldir=$ac_optarg ;;
1389
1390   -includedir | --includedir | --includedi | --included | --include \
1391   | --includ | --inclu | --incl | --inc)
1392     ac_prev=includedir ;;
1393   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1394   | --includ=* | --inclu=* | --incl=* | --inc=*)
1395     includedir=$ac_optarg ;;
1396
1397   -infodir | --infodir | --infodi | --infod | --info | --inf)
1398     ac_prev=infodir ;;
1399   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1400     infodir=$ac_optarg ;;
1401
1402   -libdir | --libdir | --libdi | --libd)
1403     ac_prev=libdir ;;
1404   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1405     libdir=$ac_optarg ;;
1406
1407   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1408   | --libexe | --libex | --libe)
1409     ac_prev=libexecdir ;;
1410   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1411   | --libexe=* | --libex=* | --libe=*)
1412     libexecdir=$ac_optarg ;;
1413
1414   -localedir | --localedir | --localedi | --localed | --locale)
1415     ac_prev=localedir ;;
1416   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1417     localedir=$ac_optarg ;;
1418
1419   -localstatedir | --localstatedir | --localstatedi | --localstated \
1420   | --localstate | --localstat | --localsta | --localst | --locals)
1421     ac_prev=localstatedir ;;
1422   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1423   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1424     localstatedir=$ac_optarg ;;
1425
1426   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1427     ac_prev=mandir ;;
1428   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1429     mandir=$ac_optarg ;;
1430
1431   -nfp | --nfp | --nf)
1432     # Obsolete; use --without-fp.
1433     with_fp=no ;;
1434
1435   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1436   | --no-cr | --no-c | -n)
1437     no_create=yes ;;
1438
1439   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1440   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1441     no_recursion=yes ;;
1442
1443   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1444   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1445   | --oldin | --oldi | --old | --ol | --o)
1446     ac_prev=oldincludedir ;;
1447   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1448   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1449   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1450     oldincludedir=$ac_optarg ;;
1451
1452   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1453     ac_prev=prefix ;;
1454   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1455     prefix=$ac_optarg ;;
1456
1457   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1458   | --program-pre | --program-pr | --program-p)
1459     ac_prev=program_prefix ;;
1460   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1461   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1462     program_prefix=$ac_optarg ;;
1463
1464   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1465   | --program-suf | --program-su | --program-s)
1466     ac_prev=program_suffix ;;
1467   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1468   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1469     program_suffix=$ac_optarg ;;
1470
1471   -program-transform-name | --program-transform-name \
1472   | --program-transform-nam | --program-transform-na \
1473   | --program-transform-n | --program-transform- \
1474   | --program-transform | --program-transfor \
1475   | --program-transfo | --program-transf \
1476   | --program-trans | --program-tran \
1477   | --progr-tra | --program-tr | --program-t)
1478     ac_prev=program_transform_name ;;
1479   -program-transform-name=* | --program-transform-name=* \
1480   | --program-transform-nam=* | --program-transform-na=* \
1481   | --program-transform-n=* | --program-transform-=* \
1482   | --program-transform=* | --program-transfor=* \
1483   | --program-transfo=* | --program-transf=* \
1484   | --program-trans=* | --program-tran=* \
1485   | --progr-tra=* | --program-tr=* | --program-t=*)
1486     program_transform_name=$ac_optarg ;;
1487
1488   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1489     ac_prev=pdfdir ;;
1490   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1491     pdfdir=$ac_optarg ;;
1492
1493   -psdir | --psdir | --psdi | --psd | --ps)
1494     ac_prev=psdir ;;
1495   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1496     psdir=$ac_optarg ;;
1497
1498   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1499   | -silent | --silent | --silen | --sile | --sil)
1500     silent=yes ;;
1501
1502   -runstatedir | --runstatedir | --runstatedi | --runstated \
1503   | --runstate | --runstat | --runsta | --runst | --runs \
1504   | --run | --ru | --r)
1505     ac_prev=runstatedir ;;
1506   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1507   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1508   | --run=* | --ru=* | --r=*)
1509     runstatedir=$ac_optarg ;;
1510
1511   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1512     ac_prev=sbindir ;;
1513   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1514   | --sbi=* | --sb=*)
1515     sbindir=$ac_optarg ;;
1516
1517   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1518   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1519   | --sharedst | --shareds | --shared | --share | --shar \
1520   | --sha | --sh)
1521     ac_prev=sharedstatedir ;;
1522   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1523   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1524   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1525   | --sha=* | --sh=*)
1526     sharedstatedir=$ac_optarg ;;
1527
1528   -site | --site | --sit)
1529     ac_prev=site ;;
1530   -site=* | --site=* | --sit=*)
1531     site=$ac_optarg ;;
1532
1533   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1534     ac_prev=srcdir ;;
1535   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1536     srcdir=$ac_optarg ;;
1537
1538   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1539   | --syscon | --sysco | --sysc | --sys | --sy)
1540     ac_prev=sysconfdir ;;
1541   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1542   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1543     sysconfdir=$ac_optarg ;;
1544
1545   -target | --target | --targe | --targ | --tar | --ta | --t)
1546     ac_prev=target_alias ;;
1547   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1548     target_alias=$ac_optarg ;;
1549
1550   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1551     verbose=yes ;;
1552
1553   -version | --version | --versio | --versi | --vers | -V)
1554     ac_init_version=: ;;
1555
1556   -with-* | --with-*)
1557     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1558     # Reject names that are not valid shell variable names.
1559     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1560       as_fn_error $? "invalid package name: $ac_useropt"
1561     ac_useropt_orig=$ac_useropt
1562     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1563     case $ac_user_opts in
1564       *"
1565 "with_$ac_useropt"
1566 "*) ;;
1567       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1568          ac_unrecognized_sep=', ';;
1569     esac
1570     eval with_$ac_useropt=\$ac_optarg ;;
1571
1572   -without-* | --without-*)
1573     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1574     # Reject names that are not valid shell variable names.
1575     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1576       as_fn_error $? "invalid package name: $ac_useropt"
1577     ac_useropt_orig=$ac_useropt
1578     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1579     case $ac_user_opts in
1580       *"
1581 "with_$ac_useropt"
1582 "*) ;;
1583       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1584          ac_unrecognized_sep=', ';;
1585     esac
1586     eval with_$ac_useropt=no ;;
1587
1588   --x)
1589     # Obsolete; use --with-x.
1590     with_x=yes ;;
1591
1592   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1593   | --x-incl | --x-inc | --x-in | --x-i)
1594     ac_prev=x_includes ;;
1595   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1596   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1597     x_includes=$ac_optarg ;;
1598
1599   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1600   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1601     ac_prev=x_libraries ;;
1602   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1603   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1604     x_libraries=$ac_optarg ;;
1605
1606   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1607 Try \`$0 --help' for more information"
1608     ;;
1609
1610   *=*)
1611     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1612     # Reject names that are not valid shell variable names.
1613     case $ac_envvar in #(
1614       '' | [0-9]* | *[!_$as_cr_alnum]* )
1615       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1616     esac
1617     eval $ac_envvar=\$ac_optarg
1618     export $ac_envvar ;;
1619
1620   *)
1621     # FIXME: should be removed in autoconf 3.0.
1622     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1623     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1624       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1625     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1626     ;;
1627
1628   esac
1629 done
1630
1631 if test -n "$ac_prev"; then
1632   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1633   as_fn_error $? "missing argument to $ac_option"
1634 fi
1635
1636 if test -n "$ac_unrecognized_opts"; then
1637   case $enable_option_checking in
1638     no) ;;
1639     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1640     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1641   esac
1642 fi
1643
1644 # Check all directory arguments for consistency.
1645 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1646                 datadir sysconfdir sharedstatedir localstatedir includedir \
1647                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1648                 libdir localedir mandir runstatedir
1649 do
1650   eval ac_val=\$$ac_var
1651   # Remove trailing slashes.
1652   case $ac_val in
1653     */ )
1654       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1655       eval $ac_var=\$ac_val;;
1656   esac
1657   # Be sure to have absolute directory names.
1658   case $ac_val in
1659     [\\/$]* | ?:[\\/]* )  continue;;
1660     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1661   esac
1662   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1663 done
1664
1665 # There might be people who depend on the old broken behavior: `$host'
1666 # used to hold the argument of --host etc.
1667 # FIXME: To remove some day.
1668 build=$build_alias
1669 host=$host_alias
1670 target=$target_alias
1671
1672 # FIXME: To remove some day.
1673 if test "x$host_alias" != x; then
1674   if test "x$build_alias" = x; then
1675     cross_compiling=maybe
1676   elif test "x$build_alias" != "x$host_alias"; then
1677     cross_compiling=yes
1678   fi
1679 fi
1680
1681 ac_tool_prefix=
1682 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1683
1684 test "$silent" = yes && exec 6>/dev/null
1685
1686
1687 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1688 ac_ls_di=`ls -di .` &&
1689 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1690   as_fn_error $? "working directory cannot be determined"
1691 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1692   as_fn_error $? "pwd does not report name of working directory"
1693
1694
1695 # Find the source files, if location was not specified.
1696 if test -z "$srcdir"; then
1697   ac_srcdir_defaulted=yes
1698   # Try the directory containing this script, then the parent directory.
1699   ac_confdir=`$as_dirname -- "$as_myself" ||
1700 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1701          X"$as_myself" : 'X\(//\)[^/]' \| \
1702          X"$as_myself" : 'X\(//\)$' \| \
1703          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1704 $as_echo X"$as_myself" |
1705     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1706             s//\1/
1707             q
1708           }
1709           /^X\(\/\/\)[^/].*/{
1710             s//\1/
1711             q
1712           }
1713           /^X\(\/\/\)$/{
1714             s//\1/
1715             q
1716           }
1717           /^X\(\/\).*/{
1718             s//\1/
1719             q
1720           }
1721           s/.*/./; q'`
1722   srcdir=$ac_confdir
1723   if test ! -r "$srcdir/$ac_unique_file"; then
1724     srcdir=..
1725   fi
1726 else
1727   ac_srcdir_defaulted=no
1728 fi
1729 if test ! -r "$srcdir/$ac_unique_file"; then
1730   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1731   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1732 fi
1733 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1734 ac_abs_confdir=`(
1735         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1736         pwd)`
1737 # When building in place, set srcdir=.
1738 if test "$ac_abs_confdir" = "$ac_pwd"; then
1739   srcdir=.
1740 fi
1741 # Remove unnecessary trailing slashes from srcdir.
1742 # Double slashes in file names in object file debugging info
1743 # mess up M-x gdb in Emacs.
1744 case $srcdir in
1745 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1746 esac
1747 for ac_var in $ac_precious_vars; do
1748   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1749   eval ac_env_${ac_var}_value=\$${ac_var}
1750   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1751   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1752 done
1753
1754 #
1755 # Report the --help message.
1756 #
1757 if test "$ac_init_help" = "long"; then
1758   # Omit some internal or obsolete options to make the list less imposing.
1759   # This message is too long to be a string in the A/UX 3.1 sh.
1760   cat <<_ACEOF
1761 \`configure' configures curl - to adapt to many kinds of systems.
1762
1763 Usage: $0 [OPTION]... [VAR=VALUE]...
1764
1765 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1766 VAR=VALUE.  See below for descriptions of some of the useful variables.
1767
1768 Defaults for the options are specified in brackets.
1769
1770 Configuration:
1771   -h, --help              display this help and exit
1772       --help=short        display options specific to this package
1773       --help=recursive    display the short help of all the included packages
1774   -V, --version           display version information and exit
1775   -q, --quiet, --silent   do not print \`checking ...' messages
1776       --cache-file=FILE   cache test results in FILE [disabled]
1777   -C, --config-cache      alias for \`--cache-file=config.cache'
1778   -n, --no-create         do not create output files
1779       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1780
1781 Installation directories:
1782   --prefix=PREFIX         install architecture-independent files in PREFIX
1783                           [$ac_default_prefix]
1784   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1785                           [PREFIX]
1786
1787 By default, \`make install' will install all the files in
1788 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1789 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1790 for instance \`--prefix=\$HOME'.
1791
1792 For better control, use the options below.
1793
1794 Fine tuning of the installation directories:
1795   --bindir=DIR            user executables [EPREFIX/bin]
1796   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1797   --libexecdir=DIR        program executables [EPREFIX/libexec]
1798   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1799   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1800   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1801   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1802   --libdir=DIR            object code libraries [EPREFIX/lib]
1803   --includedir=DIR        C header files [PREFIX/include]
1804   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1805   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1806   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1807   --infodir=DIR           info documentation [DATAROOTDIR/info]
1808   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1809   --mandir=DIR            man documentation [DATAROOTDIR/man]
1810   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1811   --htmldir=DIR           html documentation [DOCDIR]
1812   --dvidir=DIR            dvi documentation [DOCDIR]
1813   --pdfdir=DIR            pdf documentation [DOCDIR]
1814   --psdir=DIR             ps documentation [DOCDIR]
1815 _ACEOF
1816
1817   cat <<\_ACEOF
1818
1819 Program names:
1820   --program-prefix=PREFIX            prepend PREFIX to installed program names
1821   --program-suffix=SUFFIX            append SUFFIX to installed program names
1822   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1823
1824 System types:
1825   --build=BUILD     configure for building on BUILD [guessed]
1826   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1827 _ACEOF
1828 fi
1829
1830 if test -n "$ac_init_help"; then
1831   case $ac_init_help in
1832      short | recursive ) echo "Configuration of curl -:";;
1833    esac
1834   cat <<\_ACEOF
1835
1836 Optional Features:
1837   --disable-option-checking  ignore unrecognized --enable/--with options
1838   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1839   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1840   --enable-maintainer-mode
1841                           enable make rules and dependencies not useful (and
1842                           sometimes confusing) to the casual installer
1843   --enable-silent-rules   less verbose build output (undo: "make V=1")
1844   --disable-silent-rules  verbose build output (undo: "make V=0")
1845   --enable-debug          Enable debug build options
1846   --disable-debug         Disable debug build options
1847   --enable-optimize       Enable compiler optimizations
1848   --disable-optimize      Disable compiler optimizations
1849   --enable-warnings       Enable strict compiler warnings
1850   --disable-warnings      Disable strict compiler warnings
1851   --enable-werror         Enable compiler warnings as errors
1852   --disable-werror        Disable compiler warnings as errors
1853   --enable-curldebug      Enable curl debug memory tracking
1854   --disable-curldebug     Disable curl debug memory tracking
1855   --enable-symbol-hiding  Enable hiding of library internal symbols
1856   --disable-symbol-hiding Disable hiding of library internal symbols
1857   --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1858   --disable-hidden-symbols
1859                           To be deprecated, use --disable-symbol-hiding
1860   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1861   --disable-ares          Disable c-ares for DNS lookups
1862   --disable-rt            disable dependency on -lrt
1863   --enable-code-coverage  Whether to enable code coverage support
1864   --enable-dependency-tracking
1865                           do not reject slow dependency extractors
1866   --disable-dependency-tracking
1867                           speeds up one-time build
1868   --disable-largefile     omit support for large files
1869   --enable-shared[=PKGS]  build shared libraries [default=yes]
1870   --enable-static[=PKGS]  build static libraries [default=yes]
1871   --enable-fast-install[=PKGS]
1872                           optimize for fast installation [default=yes]
1873   --disable-libtool-lock  avoid locking (might break parallel builds)
1874   --enable-http           Enable HTTP support
1875   --disable-http          Disable HTTP support
1876   --enable-ftp            Enable FTP support
1877   --disable-ftp           Disable FTP support
1878   --enable-file           Enable FILE support
1879   --disable-file          Disable FILE support
1880   --enable-ldap           Enable LDAP support
1881   --disable-ldap          Disable LDAP support
1882   --enable-ldaps          Enable LDAPS support
1883   --disable-ldaps         Disable LDAPS support
1884   --enable-rtsp           Enable RTSP support
1885   --disable-rtsp          Disable RTSP support
1886   --enable-proxy          Enable proxy support
1887   --disable-proxy         Disable proxy support
1888   --enable-dict           Enable DICT support
1889   --disable-dict          Disable DICT support
1890   --enable-telnet         Enable TELNET support
1891   --disable-telnet        Disable TELNET support
1892   --enable-tftp           Enable TFTP support
1893   --disable-tftp          Disable TFTP support
1894   --enable-pop3           Enable POP3 support
1895   --disable-pop3          Disable POP3 support
1896   --enable-imap           Enable IMAP support
1897   --disable-imap          Disable IMAP support
1898   --enable-smb            Enable SMB/CIFS support
1899   --disable-smb           Disable SMB/CIFS support
1900   --enable-smtp           Enable SMTP support
1901   --disable-smtp          Disable SMTP support
1902   --enable-gopher         Enable Gopher support
1903   --disable-gopher        Disable Gopher support
1904   --enable-manual         Enable built-in manual
1905   --disable-manual        Disable built-in manual
1906   --enable-libcurl-option Enable --libcurl C code generation support
1907   --disable-libcurl-option
1908                           Disable --libcurl C code generation support
1909   --enable-libgcc         use libgcc when linking
1910   --enable-ipv6           Enable IPv6 (with IPv4) support
1911   --disable-ipv6          Disable IPv6 support
1912   --enable-versioned-symbols
1913                           Enable versioned symbols in shared library
1914   --disable-versioned-symbols
1915                           Disable versioned symbols in shared library
1916   --enable-threaded-resolver
1917                           Enable threaded resolver
1918   --disable-threaded-resolver
1919                           Disable threaded resolver
1920   --enable-pthreads       Enable POSIX threads (default for threaded resolver)
1921   --disable-pthreads      Disable POSIX threads
1922   --enable-verbose        Enable verbose strings
1923   --disable-verbose       Disable verbose strings
1924   --enable-sspi           Enable SSPI
1925   --disable-sspi          Disable SSPI
1926   --enable-crypto-auth    Enable cryptographic authentication
1927   --disable-crypto-auth   Disable cryptographic authentication
1928   --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1929                           helper, where FILE is ntlm_auth's absolute filename
1930                           (default: /usr/bin/ntlm_auth)
1931   --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
1932                           helper
1933   --enable-tls-srp        Enable TLS-SRP authentication
1934   --disable-tls-srp       Disable TLS-SRP authentication
1935   --enable-unix-sockets   Enable Unix domain sockets
1936   --disable-unix-sockets  Disable Unix domain sockets
1937   --enable-cookies        Enable cookies support
1938   --disable-cookies       Disable cookies support
1939
1940 Optional Packages:
1941   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1942   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1943   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1944   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1945                           both]
1946   --with-aix-soname=aix|svr4|both
1947                           shared library versioning (aka "SONAME") variant to
1948                           provide on AIX, [default=aix].
1949   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1950   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1951                           compiler's sysroot if not specified).
1952   --with-zlib=PATH        search for zlib in PATH
1953   --without-zlib          disable use of zlib
1954   --with-ldap-lib=libname Specify name of ldap lib file
1955   --with-lber-lib=libname Specify name of lber lib file
1956   --with-gssapi-includes=DIR
1957                           Specify location of GSS-API headers
1958   --with-gssapi-libs=DIR  Specify location of GSS-API libs
1959   --with-gssapi=DIR       Where to look for GSS-API
1960   --with-default-ssl-backend=NAME
1961                           Use NAME as default SSL backend
1962   --without-default-ssl-backend
1963                           Use implicit default SSL backend
1964   --with-winssl           enable Windows native SSL/TLS
1965   --without-winssl        disable Windows native SSL/TLS
1966   --with-darwinssl        enable Apple OS native SSL/TLS
1967   --without-darwinssl     disable Apple OS native SSL/TLS
1968   --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
1969                           installation (default: /usr/local/ssl); when
1970                           possible, set the PKG_CONFIG_PATH environment
1971                           variable instead of using this option
1972   --without-ssl           disable OpenSSL
1973   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1974   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1975   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
1976                           installation root
1977   --without-gnutls        disable GnuTLS detection
1978   --with-polarssl=PATH    where to look for PolarSSL, PATH points to the
1979                           installation root
1980   --without-polarssl      disable PolarSSL detection
1981   --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
1982                           installation root
1983   --without-mbedtls       disable mbedTLS detection
1984   --with-cyassl=PATH      where to look for CyaSSL, PATH points to the
1985                           installation root (default: system lib default)
1986   --without-cyassl        disable CyaSSL detection
1987   --with-nss=PATH         where to look for NSS, PATH points to the
1988                           installation root
1989   --without-nss           disable NSS detection
1990   --with-axtls=PATH       Where to look for axTLS, PATH points to the axTLS
1991                           installation prefix (default: /usr/local). Ignored
1992                           if another SSL engine is selected.
1993   --without-axtls         disable axTLS
1994   --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
1995                           /etc/ca-bundle.crt)
1996   --without-ca-bundle     Don't use a default CA bundle
1997   --with-ca-path=DIRECTORY
1998                           Path to a directory containing CA certificates
1999                           stored individually, with their filenames in a hash
2000                           format. This option can be used with OpenSSL, GnuTLS
2001                           and PolarSSL backends. Refer to OpenSSL c_rehash for
2002                           details. (example: /etc/certificates)
2003   --without-ca-path       Don't use a default CA path
2004   --with-ca-fallback      Use the built in CA store of the SSL library
2005   --without-ca-fallback   Don't use the built in CA store of the SSL library
2006   --without-libpsl        disable support for libpsl cookie checking
2007   --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2008                           installation root
2009   --without-libmetalink   disable libmetalink detection
2010   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
2011                           LIBSSH2 installation; when possible, set the
2012                           PKG_CONFIG_PATH environment variable instead of
2013                           using this option
2014   --without-libssh2       disable LIBSSH2
2015   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
2016                           LIBRTMP installation; when possible, set the
2017                           PKG_CONFIG_PATH environment variable instead of
2018                           using this option
2019   --without-librtmp       disable LIBRTMP
2020   --with-winidn=PATH      enable Windows native IDN
2021   --without-winidn        disable Windows native IDN
2022   --with-libidn2=PATH     Enable libidn2 usage
2023   --without-libidn2       Disable libidn2 usage
2024   --with-nghttp2=PATH     Enable nghttp2 usage
2025   --without-nghttp2       Disable nghttp2 usage
2026   --with-zsh-functions-dir=PATH
2027                           Install zsh completions to PATH
2028   --without-zsh-functions-dir
2029                           Do not install zsh completions
2030
2031 Some influential environment variables:
2032   CC          C compiler command
2033   CFLAGS      C compiler flags
2034   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2035               nonstandard directory <lib dir>
2036   LIBS        libraries to pass to the linker, e.g. -l<library>
2037   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2038               you have headers in a nonstandard directory <include dir>
2039   CPP         C preprocessor
2040   LT_SYS_LIBRARY_PATH
2041               User-defined run-time library search path.
2042
2043 Use these variables to override the choices made by `configure' or to help
2044 it to find libraries and programs with nonstandard names/locations.
2045
2046 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2047 _ACEOF
2048 ac_status=$?
2049 fi
2050
2051 if test "$ac_init_help" = "recursive"; then
2052   # If there are subdirs, report their specific --help.
2053   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2054     test -d "$ac_dir" ||
2055       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2056       continue
2057     ac_builddir=.
2058
2059 case "$ac_dir" in
2060 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2061 *)
2062   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2063   # A ".." for each directory in $ac_dir_suffix.
2064   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2065   case $ac_top_builddir_sub in
2066   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2067   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2068   esac ;;
2069 esac
2070 ac_abs_top_builddir=$ac_pwd
2071 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2072 # for backward compatibility:
2073 ac_top_builddir=$ac_top_build_prefix
2074
2075 case $srcdir in
2076   .)  # We are building in place.
2077     ac_srcdir=.
2078     ac_top_srcdir=$ac_top_builddir_sub
2079     ac_abs_top_srcdir=$ac_pwd ;;
2080   [\\/]* | ?:[\\/]* )  # Absolute name.
2081     ac_srcdir=$srcdir$ac_dir_suffix;
2082     ac_top_srcdir=$srcdir
2083     ac_abs_top_srcdir=$srcdir ;;
2084   *) # Relative name.
2085     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2086     ac_top_srcdir=$ac_top_build_prefix$srcdir
2087     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2088 esac
2089 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2090
2091     cd "$ac_dir" || { ac_status=$?; continue; }
2092     # Check for guested configure.
2093     if test -f "$ac_srcdir/configure.gnu"; then
2094       echo &&
2095       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2096     elif test -f "$ac_srcdir/configure"; then
2097       echo &&
2098       $SHELL "$ac_srcdir/configure" --help=recursive
2099     else
2100       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2101     fi || ac_status=$?
2102     cd "$ac_pwd" || { ac_status=$?; break; }
2103   done
2104 fi
2105
2106 test -n "$ac_init_help" && exit $ac_status
2107 if $ac_init_version; then
2108   cat <<\_ACEOF
2109 curl configure -
2110 generated by GNU Autoconf 2.69
2111
2112 Copyright (C) 2012 Free Software Foundation, Inc.
2113 This configure script is free software; the Free Software Foundation
2114 gives unlimited permission to copy, distribute and modify it.
2115
2116 Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2117 This configure script may be copied, distributed and modified under the
2118 terms of the curl license; see COPYING for more details
2119 _ACEOF
2120   exit
2121 fi
2122
2123 ## ------------------------ ##
2124 ## Autoconf initialization. ##
2125 ## ------------------------ ##
2126
2127 # ac_fn_c_try_compile LINENO
2128 # --------------------------
2129 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2130 ac_fn_c_try_compile ()
2131 {
2132   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133   rm -f conftest.$ac_objext
2134   if { { ac_try="$ac_compile"
2135 case "(($ac_try" in
2136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137   *) ac_try_echo=$ac_try;;
2138 esac
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140 $as_echo "$ac_try_echo"; } >&5
2141   (eval "$ac_compile") 2>conftest.err
2142   ac_status=$?
2143   if test -s conftest.err; then
2144     grep -v '^ *+' conftest.err >conftest.er1
2145     cat conftest.er1 >&5
2146     mv -f conftest.er1 conftest.err
2147   fi
2148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149   test $ac_status = 0; } && {
2150          test -z "$ac_c_werror_flag" ||
2151          test ! -s conftest.err
2152        } && test -s conftest.$ac_objext; then :
2153   ac_retval=0
2154 else
2155   $as_echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2157
2158         ac_retval=1
2159 fi
2160   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161   as_fn_set_status $ac_retval
2162
2163 } # ac_fn_c_try_compile
2164
2165 # ac_fn_c_try_cpp LINENO
2166 # ----------------------
2167 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2168 ac_fn_c_try_cpp ()
2169 {
2170   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171   if { { ac_try="$ac_cpp conftest.$ac_ext"
2172 case "(($ac_try" in
2173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174   *) ac_try_echo=$ac_try;;
2175 esac
2176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177 $as_echo "$ac_try_echo"; } >&5
2178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2179   ac_status=$?
2180   if test -s conftest.err; then
2181     grep -v '^ *+' conftest.err >conftest.er1
2182     cat conftest.er1 >&5
2183     mv -f conftest.er1 conftest.err
2184   fi
2185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186   test $ac_status = 0; } > conftest.i && {
2187          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2188          test ! -s conftest.err
2189        }; then :
2190   ac_retval=0
2191 else
2192   $as_echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195     ac_retval=1
2196 fi
2197   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198   as_fn_set_status $ac_retval
2199
2200 } # ac_fn_c_try_cpp
2201
2202 # ac_fn_c_try_link LINENO
2203 # -----------------------
2204 # Try to link conftest.$ac_ext, and return whether this succeeded.
2205 ac_fn_c_try_link ()
2206 {
2207   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208   rm -f conftest.$ac_objext conftest$ac_exeext
2209   if { { ac_try="$ac_link"
2210 case "(($ac_try" in
2211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2212   *) ac_try_echo=$ac_try;;
2213 esac
2214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2215 $as_echo "$ac_try_echo"; } >&5
2216   (eval "$ac_link") 2>conftest.err
2217   ac_status=$?
2218   if test -s conftest.err; then
2219     grep -v '^ *+' conftest.err >conftest.er1
2220     cat conftest.er1 >&5
2221     mv -f conftest.er1 conftest.err
2222   fi
2223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224   test $ac_status = 0; } && {
2225          test -z "$ac_c_werror_flag" ||
2226          test ! -s conftest.err
2227        } && test -s conftest$ac_exeext && {
2228          test "$cross_compiling" = yes ||
2229          test -x conftest$ac_exeext
2230        }; then :
2231   ac_retval=0
2232 else
2233   $as_echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2235
2236         ac_retval=1
2237 fi
2238   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2239   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2240   # interfere with the next link command; also delete a directory that is
2241   # left behind by Apple's compiler.  We do this before executing the actions.
2242   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2243   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244   as_fn_set_status $ac_retval
2245
2246 } # ac_fn_c_try_link
2247
2248 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2249 # -------------------------------------------------------
2250 # Tests whether HEADER exists and can be compiled using the include files in
2251 # INCLUDES, setting the cache variable VAR accordingly.
2252 ac_fn_c_check_header_compile ()
2253 {
2254   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256 $as_echo_n "checking for $2... " >&6; }
2257 if eval \${$3+:} false; then :
2258   $as_echo_n "(cached) " >&6
2259 else
2260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h.  */
2262 $4
2263 #include <$2>
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266   eval "$3=yes"
2267 else
2268   eval "$3=no"
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 eval ac_res=\$$3
2273                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276
2277 } # ac_fn_c_check_header_compile
2278
2279 # ac_fn_c_try_run LINENO
2280 # ----------------------
2281 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2282 # that executables *can* be run.
2283 ac_fn_c_try_run ()
2284 {
2285   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286   if { { ac_try="$ac_link"
2287 case "(($ac_try" in
2288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289   *) ac_try_echo=$ac_try;;
2290 esac
2291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2292 $as_echo "$ac_try_echo"; } >&5
2293   (eval "$ac_link") 2>&5
2294   ac_status=$?
2295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2296   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2297   { { case "(($ac_try" in
2298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299   *) ac_try_echo=$ac_try;;
2300 esac
2301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302 $as_echo "$ac_try_echo"; } >&5
2303   (eval "$ac_try") 2>&5
2304   ac_status=$?
2305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306   test $ac_status = 0; }; }; then :
2307   ac_retval=0
2308 else
2309   $as_echo "$as_me: program exited with status $ac_status" >&5
2310        $as_echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2312
2313        ac_retval=$ac_status
2314 fi
2315   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2316   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317   as_fn_set_status $ac_retval
2318
2319 } # ac_fn_c_try_run
2320
2321 # ac_fn_c_check_func LINENO FUNC VAR
2322 # ----------------------------------
2323 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2324 ac_fn_c_check_func ()
2325 {
2326   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2328 $as_echo_n "checking for $2... " >&6; }
2329 if eval \${$3+:} false; then :
2330   $as_echo_n "(cached) " >&6
2331 else
2332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h.  */
2334
2335 #define $2 innocuous_$2
2336 #ifdef __STDC__
2337 # include <limits.h>
2338 #else
2339 # include <assert.h>
2340 #endif
2341 #undef $2
2342 #ifdef __cplusplus
2343 extern "C"
2344 #endif
2345 char $2 ();
2346 #if defined __stub_$2 || defined __stub___$2
2347 choke me
2348 #endif
2349
2350 int main (void)
2351 {
2352 return $2 ();
2353  ;
2354  return 0;
2355 }
2356 _ACEOF
2357 if ac_fn_c_try_link "$LINENO"; then :
2358   eval "$3=yes"
2359 else
2360   eval "$3=no"
2361 fi
2362 rm -f core conftest.err conftest.$ac_objext \
2363     conftest$ac_exeext conftest.$ac_ext
2364 fi
2365 eval ac_res=\$$3
2366                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 $as_echo "$ac_res" >&6; }
2368   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2369
2370 } # ac_fn_c_check_func
2371
2372 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2373 # -------------------------------------------------------
2374 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2375 # the include files in INCLUDES and setting the cache variable VAR
2376 # accordingly.
2377 ac_fn_c_check_header_mongrel ()
2378 {
2379   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380   if eval \${$3+:} false; then :
2381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2382 $as_echo_n "checking for $2... " >&6; }
2383 if eval \${$3+:} false; then :
2384   $as_echo_n "(cached) " >&6
2385 fi
2386 eval ac_res=\$$3
2387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 else
2390   # Is the header compilable?
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2392 $as_echo_n "checking $2 usability... " >&6; }
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h.  */
2395 $4
2396 #include <$2>
2397 _ACEOF
2398 if ac_fn_c_try_compile "$LINENO"; then :
2399   ac_header_compiler=yes
2400 else
2401   ac_header_compiler=no
2402 fi
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2405 $as_echo "$ac_header_compiler" >&6; }
2406
2407 # Is the header present?
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2409 $as_echo_n "checking $2 presence... " >&6; }
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h.  */
2412 #include <$2>
2413 _ACEOF
2414 if ac_fn_c_try_cpp "$LINENO"; then :
2415   ac_header_preproc=yes
2416 else
2417   ac_header_preproc=no
2418 fi
2419 rm -f conftest.err conftest.i conftest.$ac_ext
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2421 $as_echo "$ac_header_preproc" >&6; }
2422
2423 # So?  What about this header?
2424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2425   yes:no: )
2426     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2427 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2428     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2429 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2430     ;;
2431   no:yes:* )
2432     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2433 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2434     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2435 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2436     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2437 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2438     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2439 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2440     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2441 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2442 ( $as_echo "## ----------------------------------------------------------------------- ##
2443 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2444 ## ----------------------------------------------------------------------- ##"
2445      ) | sed "s/^/$as_me: WARNING:     /" >&2
2446     ;;
2447 esac
2448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2449 $as_echo_n "checking for $2... " >&6; }
2450 if eval \${$3+:} false; then :
2451   $as_echo_n "(cached) " >&6
2452 else
2453   eval "$3=\$ac_header_compiler"
2454 fi
2455 eval ac_res=\$$3
2456                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457 $as_echo "$ac_res" >&6; }
2458 fi
2459   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460
2461 } # ac_fn_c_check_header_mongrel
2462
2463 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2464 # --------------------------------------------
2465 # Tries to find the compile-time value of EXPR in a program that includes
2466 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2467 # computed
2468 ac_fn_c_compute_int ()
2469 {
2470   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471   if test "$cross_compiling" = yes; then
2472     # Depending upon the size, compute the lo and hi bounds.
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h.  */
2475 $4
2476 int main (void)
2477 {
2478 static int test_array [1 - 2 * !(($2) >= 0)];
2479 test_array [0] = 0;
2480 return test_array [0];
2481
2482  ;
2483  return 0;
2484 }
2485 _ACEOF
2486 if ac_fn_c_try_compile "$LINENO"; then :
2487   ac_lo=0 ac_mid=0
2488   while :; do
2489     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h.  */
2491 $4
2492 int main (void)
2493 {
2494 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2495 test_array [0] = 0;
2496 return test_array [0];
2497
2498  ;
2499  return 0;
2500 }
2501 _ACEOF
2502 if ac_fn_c_try_compile "$LINENO"; then :
2503   ac_hi=$ac_mid; break
2504 else
2505   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2506                         if test $ac_lo -le $ac_mid; then
2507                           ac_lo= ac_hi=
2508                           break
2509                         fi
2510                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2511 fi
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513   done
2514 else
2515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h.  */
2517 $4
2518 int main (void)
2519 {
2520 static int test_array [1 - 2 * !(($2) < 0)];
2521 test_array [0] = 0;
2522 return test_array [0];
2523
2524  ;
2525  return 0;
2526 }
2527 _ACEOF
2528 if ac_fn_c_try_compile "$LINENO"; then :
2529   ac_hi=-1 ac_mid=-1
2530   while :; do
2531     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h.  */
2533 $4
2534 int main (void)
2535 {
2536 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2537 test_array [0] = 0;
2538 return test_array [0];
2539
2540  ;
2541  return 0;
2542 }
2543 _ACEOF
2544 if ac_fn_c_try_compile "$LINENO"; then :
2545   ac_lo=$ac_mid; break
2546 else
2547   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2548                         if test $ac_mid -le $ac_hi; then
2549                           ac_lo= ac_hi=
2550                           break
2551                         fi
2552                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2553 fi
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555   done
2556 else
2557   ac_lo= ac_hi=
2558 fi
2559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 fi
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 # Binary search between lo and hi bounds.
2563 while test "x$ac_lo" != "x$ac_hi"; do
2564   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h.  */
2567 $4
2568 int main (void)
2569 {
2570 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2571 test_array [0] = 0;
2572 return test_array [0];
2573
2574  ;
2575  return 0;
2576 }
2577 _ACEOF
2578 if ac_fn_c_try_compile "$LINENO"; then :
2579   ac_hi=$ac_mid
2580 else
2581   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2582 fi
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 done
2585 case $ac_lo in #((
2586 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2587 '') ac_retval=1 ;;
2588 esac
2589   else
2590     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h.  */
2592 $4
2593 static long int longval () { return $2; }
2594 static unsigned long int ulongval () { return $2; }
2595 #include <stdio.h>
2596 #include <stdlib.h>
2597 int main (void)
2598 {
2599
2600   FILE *f = fopen ("conftest.val", "w");
2601   if (! f)
2602     return 1;
2603   if (($2) < 0)
2604     {
2605       long int i = longval ();
2606       if (i != ($2))
2607         return 1;
2608       fprintf (f, "%ld", i);
2609     }
2610   else
2611     {
2612       unsigned long int i = ulongval ();
2613       if (i != ($2))
2614         return 1;
2615       fprintf (f, "%lu", i);
2616     }
2617   /* Do not output a trailing newline, as this causes \r\n confusion
2618      on some platforms.  */
2619   return ferror (f) || fclose (f) != 0;
2620
2621  ;
2622  return 0;
2623 }
2624 _ACEOF
2625 if ac_fn_c_try_run "$LINENO"; then :
2626   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2627 else
2628   ac_retval=1
2629 fi
2630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2631   conftest.$ac_objext conftest.beam conftest.$ac_ext
2632 rm -f conftest.val
2633
2634   fi
2635   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2636   as_fn_set_status $ac_retval
2637
2638 } # ac_fn_c_compute_int
2639
2640 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2641 # -------------------------------------------
2642 # Tests whether TYPE exists after having included INCLUDES, setting cache
2643 # variable VAR accordingly.
2644 ac_fn_c_check_type ()
2645 {
2646   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2648 $as_echo_n "checking for $2... " >&6; }
2649 if eval \${$3+:} false; then :
2650   $as_echo_n "(cached) " >&6
2651 else
2652   eval "$3=no"
2653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2654 /* end confdefs.h.  */
2655 $4
2656 int main (void)
2657 {
2658 if (sizeof ($2))
2659          return 0;
2660  ;
2661  return 0;
2662 }
2663 _ACEOF
2664 if ac_fn_c_try_compile "$LINENO"; then :
2665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h.  */
2667 $4
2668 int main (void)
2669 {
2670 if (sizeof (($2)))
2671             return 0;
2672  ;
2673  return 0;
2674 }
2675 _ACEOF
2676 if ac_fn_c_try_compile "$LINENO"; then :
2677
2678 else
2679   eval "$3=yes"
2680 fi
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 fi
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 fi
2685 eval ac_res=\$$3
2686                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2689
2690 } # ac_fn_c_check_type
2691
2692 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2693 # ----------------------------------------------------
2694 # Tries to find if the field MEMBER exists in type AGGR, after including
2695 # INCLUDES, setting cache variable VAR accordingly.
2696 ac_fn_c_check_member ()
2697 {
2698   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2700 $as_echo_n "checking for $2.$3... " >&6; }
2701 if eval \${$4+:} false; then :
2702   $as_echo_n "(cached) " >&6
2703 else
2704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2705 /* end confdefs.h.  */
2706 $5
2707 int main (void)
2708 {
2709 static $2 ac_aggr;
2710 if (ac_aggr.$3)
2711 return 0;
2712  ;
2713  return 0;
2714 }
2715 _ACEOF
2716 if ac_fn_c_try_compile "$LINENO"; then :
2717   eval "$4=yes"
2718 else
2719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h.  */
2721 $5
2722 int main (void)
2723 {
2724 static $2 ac_aggr;
2725 if (sizeof ac_aggr.$3)
2726 return 0;
2727  ;
2728  return 0;
2729 }
2730 _ACEOF
2731 if ac_fn_c_try_compile "$LINENO"; then :
2732   eval "$4=yes"
2733 else
2734   eval "$4=no"
2735 fi
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 fi
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 fi
2740 eval ac_res=\$$4
2741                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2744
2745 } # ac_fn_c_check_member
2746 cat >config.log <<_ACEOF
2747 This file contains any messages produced by compilers while
2748 running configure, to aid debugging if configure makes a mistake.
2749
2750 It was created by curl $as_me -, which was
2751 generated by GNU Autoconf 2.69.  Invocation command line was
2752
2753   $ $0 $@
2754
2755 _ACEOF
2756 exec 5>>config.log
2757 {
2758 cat <<_ASUNAME
2759 ## --------- ##
2760 ## Platform. ##
2761 ## --------- ##
2762
2763 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2764 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2765 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2766 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2767 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2768
2769 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2770 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2771
2772 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2773 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2774 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2775 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2776 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2777 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2778 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2779
2780 _ASUNAME
2781
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785   IFS=$as_save_IFS
2786   test -z "$as_dir" && as_dir=.
2787     $as_echo "PATH: $as_dir"
2788   done
2789 IFS=$as_save_IFS
2790
2791 } >&5
2792
2793 cat >&5 <<_ACEOF
2794
2795
2796 ## ----------- ##
2797 ## Core tests. ##
2798 ## ----------- ##
2799
2800 _ACEOF
2801
2802
2803 # Keep a trace of the command line.
2804 # Strip out --no-create and --no-recursion so they do not pile up.
2805 # Strip out --silent because we don't want to record it for future runs.
2806 # Also quote any args containing shell meta-characters.
2807 # Make two passes to allow for proper duplicate-argument suppression.
2808 ac_configure_args=
2809 ac_configure_args0=
2810 ac_configure_args1=
2811 ac_must_keep_next=false
2812 for ac_pass in 1 2
2813 do
2814   for ac_arg
2815   do
2816     case $ac_arg in
2817     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2818     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2819     | -silent | --silent | --silen | --sile | --sil)
2820       continue ;;
2821     *\'*)
2822       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2823     esac
2824     case $ac_pass in
2825     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2826     2)
2827       as_fn_append ac_configure_args1 " '$ac_arg'"
2828       if test $ac_must_keep_next = true; then
2829         ac_must_keep_next=false # Got value, back to normal.
2830       else
2831         case $ac_arg in
2832           *=* | --config-cache | -C | -disable-* | --disable-* \
2833           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2834           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2835           | -with-* | --with-* | -without-* | --without-* | --x)
2836             case "$ac_configure_args0 " in
2837               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2838             esac
2839             ;;
2840           -* ) ac_must_keep_next=true ;;
2841         esac
2842       fi
2843       as_fn_append ac_configure_args " '$ac_arg'"
2844       ;;
2845     esac
2846   done
2847 done
2848 { ac_configure_args0=; unset ac_configure_args0;}
2849 { ac_configure_args1=; unset ac_configure_args1;}
2850
2851 # When interrupted or exit'd, cleanup temporary files, and complete
2852 # config.log.  We remove comments because anyway the quotes in there
2853 # would cause problems or look ugly.
2854 # WARNING: Use '\'' to represent an apostrophe within the trap.
2855 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2856 trap 'exit_status=$?
2857   # Save into config.log some information that might help in debugging.
2858   {
2859     echo
2860
2861     $as_echo "## ---------------- ##
2862 ## Cache variables. ##
2863 ## ---------------- ##"
2864     echo
2865     # The following way of writing the cache mishandles newlines in values,
2866 (
2867   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2868     eval ac_val=\$$ac_var
2869     case $ac_val in #(
2870     *${as_nl}*)
2871       case $ac_var in #(
2872       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2873 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2874       esac
2875       case $ac_var in #(
2876       _ | IFS | as_nl) ;; #(
2877       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2878       *) { eval $ac_var=; unset $ac_var;} ;;
2879       esac ;;
2880     esac
2881   done
2882   (set) 2>&1 |
2883     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2884     *${as_nl}ac_space=\ *)
2885       sed -n \
2886         "s/'\''/'\''\\\\'\'''\''/g;
2887           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2888       ;; #(
2889     *)
2890       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2891       ;;
2892     esac |
2893     sort
2894 )
2895     echo
2896
2897     $as_echo "## ----------------- ##
2898 ## Output variables. ##
2899 ## ----------------- ##"
2900     echo
2901     for ac_var in $ac_subst_vars
2902     do
2903       eval ac_val=\$$ac_var
2904       case $ac_val in
2905       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2906       esac
2907       $as_echo "$ac_var='\''$ac_val'\''"
2908     done | sort
2909     echo
2910
2911     if test -n "$ac_subst_files"; then
2912       $as_echo "## ------------------- ##
2913 ## File substitutions. ##
2914 ## ------------------- ##"
2915       echo
2916       for ac_var in $ac_subst_files
2917       do
2918         eval ac_val=\$$ac_var
2919         case $ac_val in
2920         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2921         esac
2922         $as_echo "$ac_var='\''$ac_val'\''"
2923       done | sort
2924       echo
2925     fi
2926
2927     if test -s confdefs.h; then
2928       $as_echo "## ----------- ##
2929 ## confdefs.h. ##
2930 ## ----------- ##"
2931       echo
2932       cat confdefs.h
2933       echo
2934     fi
2935     test "$ac_signal" != 0 &&
2936       $as_echo "$as_me: caught signal $ac_signal"
2937     $as_echo "$as_me: exit $exit_status"
2938   } >&5
2939   rm -f core *.core core.conftest.* &&
2940     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2941     exit $exit_status
2942 ' 0
2943 for ac_signal in 1 2 13 15; do
2944   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2945 done
2946 ac_signal=0
2947
2948 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2949 rm -f -r conftest* confdefs.h
2950
2951 $as_echo "/* confdefs.h */" > confdefs.h
2952
2953 # Predefined preprocessor variables.
2954
2955 cat >>confdefs.h <<_ACEOF
2956 #define PACKAGE_NAME "$PACKAGE_NAME"
2957 _ACEOF
2958
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2961 _ACEOF
2962
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2965 _ACEOF
2966
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_STRING "$PACKAGE_STRING"
2969 _ACEOF
2970
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2973 _ACEOF
2974
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_URL "$PACKAGE_URL"
2977 _ACEOF
2978
2979
2980 # Let the site file select an alternate cache file if it wants to.
2981 # Prefer an explicitly selected file to automatically selected ones.
2982 ac_site_file1=NONE
2983 ac_site_file2=NONE
2984 if test -n "$CONFIG_SITE"; then
2985   # We do not want a PATH search for config.site.
2986   case $CONFIG_SITE in #((
2987     -*)  ac_site_file1=./$CONFIG_SITE;;
2988     */*) ac_site_file1=$CONFIG_SITE;;
2989     *)   ac_site_file1=./$CONFIG_SITE;;
2990   esac
2991 elif test "x$prefix" != xNONE; then
2992   ac_site_file1=$prefix/share/config.site
2993   ac_site_file2=$prefix/etc/config.site
2994 else
2995   ac_site_file1=$ac_default_prefix/share/config.site
2996   ac_site_file2=$ac_default_prefix/etc/config.site
2997 fi
2998 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2999 do
3000   test "x$ac_site_file" = xNONE && continue
3001   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3002     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3003 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3004     sed 's/^/| /' "$ac_site_file" >&5
3005     . "$ac_site_file" \
3006       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3008 as_fn_error $? "failed to load site script $ac_site_file
3009 See \`config.log' for more details" "$LINENO" 5; }
3010   fi
3011 done
3012
3013 if test -r "$cache_file"; then
3014   # Some versions of bash will fail to source /dev/null (special files
3015   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3016   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3017     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3018 $as_echo "$as_me: loading cache $cache_file" >&6;}
3019     case $cache_file in
3020       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3021       *)                      . "./$cache_file";;
3022     esac
3023   fi
3024 else
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3026 $as_echo "$as_me: creating cache $cache_file" >&6;}
3027   >$cache_file
3028 fi
3029
3030 # Check that the precious variables saved in the cache have kept the same
3031 # value.
3032 ac_cache_corrupted=false
3033 for ac_var in $ac_precious_vars; do
3034   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3035   eval ac_new_set=\$ac_env_${ac_var}_set
3036   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3037   eval ac_new_val=\$ac_env_${ac_var}_value
3038   case $ac_old_set,$ac_new_set in
3039     set,)
3040       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3041 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3042       ac_cache_corrupted=: ;;
3043     ,set)
3044       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3045 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3046       ac_cache_corrupted=: ;;
3047     ,);;
3048     *)
3049       if test "x$ac_old_val" != "x$ac_new_val"; then
3050         # differences in whitespace do not lead to failure.
3051         ac_old_val_w=`echo x $ac_old_val`
3052         ac_new_val_w=`echo x $ac_new_val`
3053         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3054           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3055 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3056           ac_cache_corrupted=:
3057         else
3058           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3059 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3060           eval $ac_var=\$ac_old_val
3061         fi
3062         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3063 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3064         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3065 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3066       fi;;
3067   esac
3068   # Pass precious variables to config.status.
3069   if test "$ac_new_set" = set; then
3070     case $ac_new_val in
3071     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3072     *) ac_arg=$ac_var=$ac_new_val ;;
3073     esac
3074     case " $ac_configure_args " in
3075       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3076       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3077     esac
3078   fi
3079 done
3080 if $ac_cache_corrupted; then
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3084 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3085   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3086 fi
3087 ## -------------------- ##
3088 ## Main body of script. ##
3089 ## -------------------- ##
3090
3091 ac_ext=c
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096
3097
3098
3099
3100
3101
3102
3103 # using curl-override.m4
3104
3105
3106
3107
3108
3109 ac_config_headers="$ac_config_headers lib/curl_config.h"
3110
3111
3112
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3114 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3115     # Check whether --enable-maintainer-mode was given.
3116 if test "${enable_maintainer_mode+set}" = set; then :
3117   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3118 else
3119   USE_MAINTAINER_MODE=no
3120 fi
3121
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3123 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3124    if test $USE_MAINTAINER_MODE = yes; then
3125   MAINTAINER_MODE_TRUE=
3126   MAINTAINER_MODE_FALSE='#'
3127 else
3128   MAINTAINER_MODE_TRUE='#'
3129   MAINTAINER_MODE_FALSE=
3130 fi
3131
3132   MAINT=$MAINTAINER_MODE_TRUE
3133
3134
3135 # Check whether --enable-silent-rules was given.
3136 if test "${enable_silent_rules+set}" = set; then :
3137   enableval=$enable_silent_rules;
3138 fi
3139
3140 case $enable_silent_rules in # (((
3141   yes) AM_DEFAULT_VERBOSITY=0;;
3142    no) AM_DEFAULT_VERBOSITY=1;;
3143     *) AM_DEFAULT_VERBOSITY=0;;
3144 esac
3145 am_make=${MAKE-make}
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3147 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3148 if ${am_cv_make_support_nested_variables+:} false; then :
3149   $as_echo_n "(cached) " >&6
3150 else
3151   if $as_echo 'TRUE=$(BAR$(V))
3152 BAR0=false
3153 BAR1=true
3154 V=1
3155 am__doit:
3156         @$(TRUE)
3157 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3158   am_cv_make_support_nested_variables=yes
3159 else
3160   am_cv_make_support_nested_variables=no
3161 fi
3162 fi
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3164 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3165 if test $am_cv_make_support_nested_variables = yes; then
3166     AM_V='$(V)'
3167   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3168 else
3169   AM_V=$AM_DEFAULT_VERBOSITY
3170   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3171 fi
3172 AM_BACKSLASH='\'
3173
3174
3175
3176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3177 $as_echo_n "checking whether to enable debug build options... " >&6; }
3178   OPT_DEBUG_BUILD="default"
3179   # Check whether --enable-debug was given.
3180 if test "${enable_debug+set}" = set; then :
3181   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3182 fi
3183
3184   case "$OPT_DEBUG_BUILD" in
3185     no)
3186             want_debug="no"
3187       ;;
3188     default)
3189             want_debug="no"
3190       ;;
3191     *)
3192             want_debug="yes"
3193       ;;
3194   esac
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3196 $as_echo "$want_debug" >&6; }
3197
3198
3199       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3200 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3201   OPT_COMPILER_OPTIMIZE="default"
3202   # Check whether --enable-optimize was given.
3203 if test "${enable_optimize+set}" = set; then :
3204   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3205 fi
3206
3207   case "$OPT_COMPILER_OPTIMIZE" in
3208     no)
3209                               want_optimize="no"
3210       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212       ;;
3213     default)
3214                                                                         if test "$want_debug" = "yes"; then
3215         want_optimize="assume_no"
3216         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3217 $as_echo "(assumed) no" >&6; }
3218       else
3219         want_optimize="assume_yes"
3220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3221 $as_echo "(assumed) yes" >&6; }
3222       fi
3223       ;;
3224     *)
3225                               want_optimize="yes"
3226       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3228       ;;
3229   esac
3230
3231
3232         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3233 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3234   OPT_COMPILER_WARNINGS="default"
3235   # Check whether --enable-warnings was given.
3236 if test "${enable_warnings+set}" = set; then :
3237   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3238 fi
3239
3240   case "$OPT_COMPILER_WARNINGS" in
3241     no)
3242             want_warnings="no"
3243       ;;
3244     default)
3245                   want_warnings="$want_debug"
3246       ;;
3247     *)
3248             want_warnings="yes"
3249       ;;
3250   esac
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3252 $as_echo "$want_warnings" >&6; }
3253
3254
3255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3256 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3257   OPT_COMPILER_WERROR="default"
3258   # Check whether --enable-werror was given.
3259 if test "${enable_werror+set}" = set; then :
3260   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3261 fi
3262
3263   case "$OPT_COMPILER_WERROR" in
3264     no)
3265             want_werror="no"
3266       ;;
3267     default)
3268             want_werror="no"
3269       ;;
3270     *)
3271             want_werror="yes"
3272       ;;
3273   esac
3274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3275 $as_echo "$want_werror" >&6; }
3276
3277
3278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3279 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3280   OPT_CURLDEBUG_BUILD="default"
3281   # Check whether --enable-curldebug was given.
3282 if test "${enable_curldebug+set}" = set; then :
3283   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3284 fi
3285
3286   case "$OPT_CURLDEBUG_BUILD" in
3287     no)
3288             want_curldebug="no"
3289       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291       ;;
3292     default)
3293                                           if test "$want_debug" = "yes"; then
3294         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3295 $as_echo "(assumed) yes" >&6; }
3296       else
3297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299       fi
3300       want_curldebug_assumed="yes"
3301       want_curldebug="$want_debug"
3302       ;;
3303     *)
3304                                                       want_curldebug="yes"
3305       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306 $as_echo "yes" >&6; }
3307       ;;
3308   esac
3309
3310
3311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3312 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3313   OPT_SYMBOL_HIDING="default"
3314   # Check whether --enable-symbol-hiding was given.
3315 if test "${enable_symbol_hiding+set}" = set; then :
3316   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3317 fi
3318
3319   # Check whether --enable-hidden-symbols was given.
3320 if test "${enable_hidden_symbols+set}" = set; then :
3321   enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3322 fi
3323
3324   case "$OPT_SYMBOL_HIDING" in
3325     no)
3326                               want_symbol_hiding="no"
3327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3329       ;;
3330     default)
3331                   want_symbol_hiding="yes"
3332       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3334       ;;
3335     *)
3336                         want_symbol_hiding="yes"
3337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3338 $as_echo "yes" >&6; }
3339       ;;
3340   esac
3341
3342
3343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3344 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3345   OPT_ARES="default"
3346   # Check whether --enable-ares was given.
3347 if test "${enable_ares+set}" = set; then :
3348   enableval=$enable_ares; OPT_ARES=$enableval
3349 fi
3350
3351   case "$OPT_ARES" in
3352     no)
3353             want_ares="no"
3354       ;;
3355     default)
3356             want_ares="no"
3357       ;;
3358     *)
3359             want_ares="yes"
3360       if test -n "$enableval" && test "$enableval" != "yes"; then
3361         want_ares_path="$enableval"
3362       fi
3363       ;;
3364   esac
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3366 $as_echo "$want_ares" >&6; }
3367
3368
3369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3370 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3371   OPT_RT="default"
3372   # Check whether --enable-rt was given.
3373 if test "${enable_rt+set}" = set; then :
3374   enableval=$enable_rt; OPT_RT=$enableval
3375 fi
3376
3377   case "$OPT_RT" in
3378     no)
3379             dontwant_rt="yes"
3380       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381 $as_echo "yes" >&6; }
3382       ;;
3383     default)
3384             dontwant_rt="no"
3385       { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3386 $as_echo "(assumed no)" >&6; }
3387       ;;
3388     *)
3389             dontwant_rt="no"
3390       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3392       ;;
3393   esac
3394
3395
3396 #
3397 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3398 #
3399
3400 if test -z "$xc_configure_preamble_result"; then
3401   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3402 fi
3403
3404 #
3405 # Check that 'PATH_SEPARATOR' has already been set.
3406 #
3407
3408 if test -z "$xc_PATH_SEPARATOR"; then
3409   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3410 fi
3411 if test -z "$PATH_SEPARATOR"; then
3412   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3413 fi
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3415 $as_echo_n "checking for path separator... " >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3417 $as_echo "$PATH_SEPARATOR" >&6; }
3418 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3420 $as_echo_n "checking for initial path separator... " >&6; }
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3422 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3423   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3424 fi
3425
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3427 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3428 if ${ac_cv_path_SED+:} false; then :
3429   $as_echo_n "(cached) " >&6
3430 else
3431             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3432      for ac_i in 1 2 3 4 5 6 7; do
3433        ac_script="$ac_script$as_nl$ac_script"
3434      done
3435      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3436      { ac_script=; unset ac_script;}
3437      if test -z "$SED"; then
3438   ac_path_SED_found=false
3439   # Loop through the user's path and test for each of PROGNAME-LIST
3440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445     for ac_prog in sed gsed; do
3446     for ac_exec_ext in '' $ac_executable_extensions; do
3447       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3448       as_fn_executable_p "$ac_path_SED" || continue
3449 # Check for GNU ac_path_SED and select it if it is found.
3450   # Check for GNU $ac_path_SED
3451 case `"$ac_path_SED" --version 2>&1` in
3452 *GNU*)
3453   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3454 *)
3455   ac_count=0
3456   $as_echo_n 0123456789 >"conftest.in"
3457   while :
3458   do
3459     cat "conftest.in" "conftest.in" >"conftest.tmp"
3460     mv "conftest.tmp" "conftest.in"
3461     cp "conftest.in" "conftest.nl"
3462     $as_echo '' >> "conftest.nl"
3463     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3464     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3465     as_fn_arith $ac_count + 1 && ac_count=$as_val
3466     if test $ac_count -gt ${ac_path_SED_max-0}; then
3467       # Best one so far, save it but keep looking for a better one
3468       ac_cv_path_SED="$ac_path_SED"
3469       ac_path_SED_max=$ac_count
3470     fi
3471     # 10*(2^10) chars as input seems more than enough
3472     test $ac_count -gt 10 && break
3473   done
3474   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3475 esac
3476
3477       $ac_path_SED_found && break 3
3478     done
3479   done
3480   done
3481 IFS=$as_save_IFS
3482   if test -z "$ac_cv_path_SED"; then
3483     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3484   fi
3485 else
3486   ac_cv_path_SED=$SED
3487 fi
3488
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3491 $as_echo "$ac_cv_path_SED" >&6; }
3492  SED="$ac_cv_path_SED"
3493   rm -f conftest.sed
3494
3495
3496
3497
3498         # allow to override gcov location
3499
3500 # Check whether --with-gcov was given.
3501 if test "${with_gcov+set}" = set; then :
3502   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3503 else
3504   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3505 fi
3506
3507
3508         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3509 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3510         # Check whether --enable-code-coverage was given.
3511 if test "${enable_code_coverage+set}" = set; then :
3512   enableval=$enable_code_coverage;
3513 else
3514   enable_code_coverage=no
3515 fi
3516
3517
3518          if test x$enable_code_coverage = xyes; then
3519   CODE_COVERAGE_ENABLED_TRUE=
3520   CODE_COVERAGE_ENABLED_FALSE='#'
3521 else
3522   CODE_COVERAGE_ENABLED_TRUE='#'
3523   CODE_COVERAGE_ENABLED_FALSE=
3524 fi
3525
3526         CODE_COVERAGE_ENABLED=$enable_code_coverage
3527
3528         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3529 $as_echo "$enable_code_coverage" >&6; }
3530
3531         if  test "$enable_code_coverage" = "yes" ; then :
3532
3533                 # check for gcov
3534                 if test -n "$ac_tool_prefix"; then
3535   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3536 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_GCOV+:} false; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   if test -n "$GCOV"; then
3543   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550     for ac_exec_ext in '' $ac_executable_extensions; do
3551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557   done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 GCOV=$ac_cv_prog_GCOV
3563 if test -n "$GCOV"; then
3564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3565 $as_echo "$GCOV" >&6; }
3566 else
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571
3572 fi
3573 if test -z "$ac_cv_prog_GCOV"; then
3574   ac_ct_GCOV=$GCOV
3575   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3576 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3580   $as_echo_n "(cached) " >&6
3581 else
3582   if test -n "$ac_ct_GCOV"; then
3583   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588   IFS=$as_save_IFS
3589   test -z "$as_dir" && as_dir=.
3590     for ac_exec_ext in '' $ac_executable_extensions; do
3591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594     break 2
3595   fi
3596 done
3597   done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3603 if test -n "$ac_ct_GCOV"; then
3604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3605 $as_echo "$ac_ct_GCOV" >&6; }
3606 else
3607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3609 fi
3610
3611   if test "x$ac_ct_GCOV" = x; then
3612     GCOV=":"
3613   else
3614     case $cross_compiling:$ac_tool_warned in
3615 yes:)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned=yes ;;
3619 esac
3620     GCOV=$ac_ct_GCOV
3621   fi
3622 else
3623   GCOV="$ac_cv_prog_GCOV"
3624 fi
3625
3626                 if test "X$GCOV" = "X:"; then :
3627   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3628 fi
3629
3630
3631                                 if  test "$GCC" = "no" ; then :
3632
3633                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3634
3635 fi
3636
3637                 # Extract the first word of "lcov", so it can be a program name with args.
3638 set dummy lcov; ac_word=$2
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640 $as_echo_n "checking for $ac_word... " >&6; }
3641 if ${ac_cv_prog_LCOV+:} false; then :
3642   $as_echo_n "(cached) " >&6
3643 else
3644   if test -n "$LCOV"; then
3645   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3646 else
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3649 do
3650   IFS=$as_save_IFS
3651   test -z "$as_dir" && as_dir=.
3652     for ac_exec_ext in '' $ac_executable_extensions; do
3653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3654     ac_cv_prog_LCOV="lcov"
3655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656     break 2
3657   fi
3658 done
3659   done
3660 IFS=$as_save_IFS
3661
3662 fi
3663 fi
3664 LCOV=$ac_cv_prog_LCOV
3665 if test -n "$LCOV"; then
3666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3667 $as_echo "$LCOV" >&6; }
3668 else
3669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670 $as_echo "no" >&6; }
3671 fi
3672
3673
3674                 # Extract the first word of "genhtml", so it can be a program name with args.
3675 set dummy genhtml; ac_word=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if ${ac_cv_prog_GENHTML+:} false; then :
3679   $as_echo_n "(cached) " >&6
3680 else
3681   if test -n "$GENHTML"; then
3682   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3683 else
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3686 do
3687   IFS=$as_save_IFS
3688   test -z "$as_dir" && as_dir=.
3689     for ac_exec_ext in '' $ac_executable_extensions; do
3690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691     ac_cv_prog_GENHTML="genhtml"
3692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693     break 2
3694   fi
3695 done
3696   done
3697 IFS=$as_save_IFS
3698
3699 fi
3700 fi
3701 GENHTML=$ac_cv_prog_GENHTML
3702 if test -n "$GENHTML"; then
3703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3704 $as_echo "$GENHTML" >&6; }
3705 else
3706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708 fi
3709
3710
3711
3712                 if  test -z "$LCOV" ; then :
3713
3714                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
3715
3716 fi
3717
3718                 if  test -z "$GENHTML" ; then :
3719
3720                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
3721
3722 fi
3723
3724                                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
3725                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3726                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
3727                 CODE_COVERAGE_LIBS="-lgcov"
3728                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
3729
3730
3731
3732
3733
3734
3735
3736                 CODE_COVERAGE_RULES_CHECK='
3737         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
3738         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
3739 '
3740                 CODE_COVERAGE_RULES_CAPTURE='
3741         $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
3742         $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
3743         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
3744         $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
3745         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
3746 '
3747                 CODE_COVERAGE_RULES_CLEAN='
3748 clean: code-coverage-clean
3749 distclean: code-coverage-clean
3750 code-coverage-clean:
3751         -$(LCOV) --directory $(top_builddir) -z
3752         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3753         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
3754 '
3755
3756 else
3757
3758                 CODE_COVERAGE_RULES_CHECK='
3759         @echo "Need to reconfigure with --enable-code-coverage"
3760 '
3761                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
3762                 CODE_COVERAGE_RULES_CLEAN=''
3763
3764 fi
3765
3766 CODE_COVERAGE_RULES='
3767 # Code coverage
3768 #
3769 # Optional:
3770 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
3771 #    Multiple directories may be specified, separated by whitespace.
3772 #    (Default: $(top_builddir))
3773 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
3774 #    by lcov for code coverage. (Default:
3775 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
3776 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
3777 #    reports to be created. (Default:
3778 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
3779 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
3780 #    set to 0 to disable it and leave empty to stay with the default.
3781 #    (Default: empty)
3782 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
3783 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
3784 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
3785 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
3786 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
3787 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
3788 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3789 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
3790 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3791 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
3792 #    lcov instance. (Default: empty)
3793 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
3794 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
3795 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
3796 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
3797 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
3798 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
3799 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
3800 #
3801 # The generated report will be titled using the $(PACKAGE_NAME) and
3802 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
3803 # use the git-version-gen script, available online.
3804
3805 # Optional variables
3806 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
3807 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
3808 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
3809 CODE_COVERAGE_BRANCH_COVERAGE ?=
3810 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
3811 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
3812 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
3813 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
3814 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
3815 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
3816 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
3817 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
3818 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
3819 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
3820 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
3821 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
3822 CODE_COVERAGE_IGNORE_PATTERN ?=
3823
3824 GITIGNOREFILES ?=
3825 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
3826
3827 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
3828 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
3829 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
3830  $(CODE_COVERAGE_OUTPUT_FILE);
3831 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
3832 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
3833 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
3834  $(CODE_COVERAGE_IGNORE_PATTERN);
3835 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
3836 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
3837 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
3838 code_coverage_quiet = $(code_coverage_quiet_$(V))
3839 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
3840 code_coverage_quiet_0 = --quiet
3841
3842 # sanitizes the test-name: replaces with underscores: dashes and dots
3843 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
3844
3845 # Use recursive makes in order to ignore errors during check
3846 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
3847
3848 # Capture code coverage data
3849 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
3850
3851 # Hook rule executed before code-coverage-capture, overridable by the user
3852 code-coverage-capture-hook:
3853
3854 '"$CODE_COVERAGE_RULES_CLEAN"'
3855
3856 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
3857 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
3858
3859 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
3860 '
3861
3862
3863
3864
3865
3866 #
3867 # save the configure arguments
3868 #
3869 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3870
3871
3872 CURL_CFLAG_EXTRAS=""
3873 if test X"$want_werror" = Xyes; then
3874   CURL_CFLAG_EXTRAS="-Werror"
3875 fi
3876
3877
3878 if test -z "$SED"; then
3879     # Extract the first word of "sed", so it can be a program name with args.
3880 set dummy sed; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_path_SED+:} false; then :
3884   $as_echo_n "(cached) " >&6
3885 else
3886   case $SED in
3887   [\\/]* | ?:[\\/]*)
3888   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3889   ;;
3890   *)
3891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3893 for as_dir in $as_dummy
3894 do
3895   IFS=$as_save_IFS
3896   test -z "$as_dir" && as_dir=.
3897     for ac_exec_ext in '' $ac_executable_extensions; do
3898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901     break 2
3902   fi
3903 done
3904   done
3905 IFS=$as_save_IFS
3906
3907   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3908   ;;
3909 esac
3910 fi
3911 SED=$ac_cv_path_SED
3912 if test -n "$SED"; then
3913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3914 $as_echo "$SED" >&6; }
3915 else
3916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3918 fi
3919
3920
3921   if test -z "$SED" || test "$SED" = "not_found"; then
3922     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3923   fi
3924 fi
3925
3926
3927 if test -z "$GREP"; then
3928     # Extract the first word of "grep", so it can be a program name with args.
3929 set dummy grep; ac_word=$2
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931 $as_echo_n "checking for $ac_word... " >&6; }
3932 if ${ac_cv_path_GREP+:} false; then :
3933   $as_echo_n "(cached) " >&6
3934 else
3935   case $GREP in
3936   [\\/]* | ?:[\\/]*)
3937   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3938   ;;
3939   *)
3940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3942 for as_dir in $as_dummy
3943 do
3944   IFS=$as_save_IFS
3945   test -z "$as_dir" && as_dir=.
3946     for ac_exec_ext in '' $ac_executable_extensions; do
3947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950     break 2
3951   fi
3952 done
3953   done
3954 IFS=$as_save_IFS
3955
3956   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3957   ;;
3958 esac
3959 fi
3960 GREP=$ac_cv_path_GREP
3961 if test -n "$GREP"; then
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3963 $as_echo "$GREP" >&6; }
3964 else
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3967 fi
3968
3969
3970   if test -z "$GREP" || test "$GREP" = "not_found"; then
3971     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3972   fi
3973 fi
3974
3975
3976 if test -z "$EGREP"; then
3977     if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3979 $as_echo_n "checking for egrep... " >&6; }
3980     EGREP="$GREP -E"
3981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3982 $as_echo "$EGREP" >&6; }
3983   else
3984     # Extract the first word of "egrep", so it can be a program name with args.
3985 set dummy egrep; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_path_EGREP+:} false; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   case $EGREP in
3992   [\\/]* | ?:[\\/]*)
3993   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3994   ;;
3995   *)
3996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3998 for as_dir in $as_dummy
3999 do
4000   IFS=$as_save_IFS
4001   test -z "$as_dir" && as_dir=.
4002     for ac_exec_ext in '' $ac_executable_extensions; do
4003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
4005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006     break 2
4007   fi
4008 done
4009   done
4010 IFS=$as_save_IFS
4011
4012   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
4013   ;;
4014 esac
4015 fi
4016 EGREP=$ac_cv_path_EGREP
4017 if test -n "$EGREP"; then
4018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
4019 $as_echo "$EGREP" >&6; }
4020 else
4021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4023 fi
4024
4025
4026   fi
4027 fi
4028 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
4029   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
4030 fi
4031
4032
4033 if test -z "$AR"; then
4034     if test -n "$ac_tool_prefix"; then
4035   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4036 set dummy ${ac_tool_prefix}ar; ac_word=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if ${ac_cv_path_AR+:} false; then :
4040   $as_echo_n "(cached) " >&6
4041 else
4042   case $AR in
4043   [\\/]* | ?:[\\/]*)
4044   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4045   ;;
4046   *)
4047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4049 for as_dir in $as_dummy
4050 do
4051   IFS=$as_save_IFS
4052   test -z "$as_dir" && as_dir=.
4053     for ac_exec_ext in '' $ac_executable_extensions; do
4054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4057     break 2
4058   fi
4059 done
4060   done
4061 IFS=$as_save_IFS
4062
4063   ;;
4064 esac
4065 fi
4066 AR=$ac_cv_path_AR
4067 if test -n "$AR"; then
4068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4069 $as_echo "$AR" >&6; }
4070 else
4071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072 $as_echo "no" >&6; }
4073 fi
4074
4075
4076 fi
4077 if test -z "$ac_cv_path_AR"; then
4078   ac_pt_AR=$AR
4079   # Extract the first word of "ar", so it can be a program name with args.
4080 set dummy ar; ac_word=$2
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082 $as_echo_n "checking for $ac_word... " >&6; }
4083 if ${ac_cv_path_ac_pt_AR+:} false; then :
4084   $as_echo_n "(cached) " >&6
4085 else
4086   case $ac_pt_AR in
4087   [\\/]* | ?:[\\/]*)
4088   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4089   ;;
4090   *)
4091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4093 for as_dir in $as_dummy
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097     for ac_exec_ext in '' $ac_executable_extensions; do
4098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
4100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4101     break 2
4102   fi
4103 done
4104   done
4105 IFS=$as_save_IFS
4106
4107   ;;
4108 esac
4109 fi
4110 ac_pt_AR=$ac_cv_path_ac_pt_AR
4111 if test -n "$ac_pt_AR"; then
4112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4113 $as_echo "$ac_pt_AR" >&6; }
4114 else
4115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4117 fi
4118
4119   if test "x$ac_pt_AR" = x; then
4120     AR="not_found"
4121   else
4122     case $cross_compiling:$ac_tool_warned in
4123 yes:)
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4126 ac_tool_warned=yes ;;
4127 esac
4128     AR=$ac_pt_AR
4129   fi
4130 else
4131   AR="$ac_cv_path_AR"
4132 fi
4133
4134   if test -z "$AR" || test "$AR" = "not_found"; then
4135     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4136   fi
4137 fi
4138
4139
4140
4141
4142 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4143
4144   xc_prog_cc_prev_IFS=$IFS
4145   xc_prog_cc_prev_LIBS=$LIBS
4146   xc_prog_cc_prev_CFLAGS=$CFLAGS
4147   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4148   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4149
4150
4151
4152   xc_bad_var_libs=no
4153   for xc_word in $LIBS; do
4154     case "$xc_word" in
4155       -l* | --library=*)
4156         :
4157         ;;
4158       *)
4159         xc_bad_var_libs=yes
4160         ;;
4161     esac
4162   done
4163   if test $xc_bad_var_libs = yes; then
4164     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4165 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
4166     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4167 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4168   fi
4169
4170
4171   xc_bad_var_ldflags=no
4172   for xc_word in $LDFLAGS; do
4173     case "$xc_word" in
4174       -D*)
4175         xc_bad_var_ldflags=yes
4176         ;;
4177       -U*)
4178         xc_bad_var_ldflags=yes
4179         ;;
4180       -I*)
4181         xc_bad_var_ldflags=yes
4182         ;;
4183       -l* | --library=*)
4184         xc_bad_var_ldflags=yes
4185         ;;
4186     esac
4187   done
4188   if test $xc_bad_var_ldflags = yes; then
4189     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4190 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4191     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4192     for xc_word in $LDFLAGS; do
4193       case "$xc_word" in
4194         -D*)
4195           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4196 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4197           ;;
4198         -U*)
4199           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4200 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4201           ;;
4202         -I*)
4203           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4204 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4205           ;;
4206         -l* | --library=*)
4207           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4208 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4209           ;;
4210       esac
4211     done
4212   fi
4213
4214
4215   xc_bad_var_cppflags=no
4216   for xc_word in $CPPFLAGS; do
4217     case "$xc_word" in
4218       -rpath*)
4219         xc_bad_var_cppflags=yes
4220         ;;
4221       -L* | --library-path=*)
4222         xc_bad_var_cppflags=yes
4223         ;;
4224       -l* | --library=*)
4225         xc_bad_var_cppflags=yes
4226         ;;
4227     esac
4228   done
4229   if test $xc_bad_var_cppflags = yes; then
4230     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4231 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4232     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4233     for xc_word in $CPPFLAGS; do
4234       case "$xc_word" in
4235         -rpath*)
4236           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4237 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4238           ;;
4239         -L* | --library-path=*)
4240           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4241 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4242           ;;
4243         -l* | --library=*)
4244           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4245 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4246           ;;
4247       esac
4248     done
4249   fi
4250
4251
4252   xc_bad_var_cflags=no
4253   for xc_word in $CFLAGS; do
4254     case "$xc_word" in
4255       -D*)
4256         xc_bad_var_cflags=yes
4257         ;;
4258       -U*)
4259         xc_bad_var_cflags=yes
4260         ;;
4261       -I*)
4262         xc_bad_var_cflags=yes
4263         ;;
4264       -rpath*)
4265         xc_bad_var_cflags=yes
4266         ;;
4267       -L* | --library-path=*)
4268         xc_bad_var_cflags=yes
4269         ;;
4270       -l* | --library=*)
4271         xc_bad_var_cflags=yes
4272         ;;
4273     esac
4274   done
4275   if test $xc_bad_var_cflags = yes; then
4276     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4277 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
4278     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4279     for xc_word in $CFLAGS; do
4280       case "$xc_word" in
4281         -D*)
4282           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4283 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4284           ;;
4285         -U*)
4286           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4287 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4288           ;;
4289         -I*)
4290           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4291 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4292           ;;
4293         -rpath*)
4294           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4295 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4296           ;;
4297         -L* | --library-path=*)
4298           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4299 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4300           ;;
4301         -l* | --library=*)
4302           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4303 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4304           ;;
4305       esac
4306     done
4307   fi
4308
4309   if test $xc_bad_var_libs = yes ||
4310      test $xc_bad_var_cflags = yes ||
4311      test $xc_bad_var_ldflags = yes ||
4312      test $xc_bad_var_cppflags = yes; then
4313      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4314 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4315   fi
4316
4317 ac_aux_dir=
4318 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4319   if test -f "$ac_dir/install-sh"; then
4320     ac_aux_dir=$ac_dir
4321     ac_install_sh="$ac_aux_dir/install-sh -c"
4322     break
4323   elif test -f "$ac_dir/install.sh"; then
4324     ac_aux_dir=$ac_dir
4325     ac_install_sh="$ac_aux_dir/install.sh -c"
4326     break
4327   elif test -f "$ac_dir/shtool"; then
4328     ac_aux_dir=$ac_dir
4329     ac_install_sh="$ac_aux_dir/shtool install -c"
4330     break
4331   fi
4332 done
4333 if test -z "$ac_aux_dir"; then
4334   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4335 fi
4336
4337 # These three variables are undocumented and unsupported,
4338 # and are intended to be withdrawn in a future Autoconf release.
4339 # They can cause serious problems if a builder's source tree is in a directory
4340 # whose full name contains unusual characters.
4341 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4342 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4343 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4344
4345
4346 # Find a good install program.  We prefer a C program (faster),
4347 # so one script is as good as another.  But avoid the broken or
4348 # incompatible versions:
4349 # SysV /etc/install, /usr/sbin/install
4350 # SunOS /usr/etc/install
4351 # IRIX /sbin/install
4352 # AIX /bin/install
4353 # AmigaOS /C/install, which installs bootblocks on floppy discs
4354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4357 # OS/2's system install, which has a completely different semantic
4358 # ./install, which can be erroneously created by make from ./install.sh.
4359 # Reject install programs that cannot install multiple files.
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4361 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4362 if test -z "$INSTALL"; then
4363 if ${ac_cv_path_install+:} false; then :
4364   $as_echo_n "(cached) " >&6
4365 else
4366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4368 do
4369   IFS=$as_save_IFS
4370   test -z "$as_dir" && as_dir=.
4371     # Account for people who put trailing slashes in PATH elements.
4372 case $as_dir/ in #((
4373   ./ | .// | /[cC]/* | \
4374   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4375   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4376   /usr/ucb/* ) ;;
4377   *)
4378     # OSF1 and SCO ODT 3.0 have their own names for install.
4379     # Don't use installbsd from OSF since it installs stuff as root
4380     # by default.
4381     for ac_prog in ginstall scoinst install; do
4382       for ac_exec_ext in '' $ac_executable_extensions; do
4383         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4384           if test $ac_prog = install &&
4385             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4386             # AIX install.  It has an incompatible calling convention.
4387             :
4388           elif test $ac_prog = install &&
4389             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4390             # program-specific install script used by HP pwplus--don't use.
4391             :
4392           else
4393             rm -rf conftest.one conftest.two conftest.dir
4394             echo one > conftest.one
4395             echo two > conftest.two
4396             mkdir conftest.dir
4397             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4398               test -s conftest.one && test -s conftest.two &&
4399               test -s conftest.dir/conftest.one &&
4400               test -s conftest.dir/conftest.two
4401             then
4402               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4403               break 3
4404             fi
4405           fi
4406         fi
4407       done
4408     done
4409     ;;
4410 esac
4411
4412   done
4413 IFS=$as_save_IFS
4414
4415 rm -rf conftest.one conftest.two conftest.dir
4416
4417 fi
4418   if test "${ac_cv_path_install+set}" = set; then
4419     INSTALL=$ac_cv_path_install
4420   else
4421     # As a last resort, use the slow shell script.  Don't cache a
4422     # value for INSTALL within a source directory, because that will
4423     # break other packages using the cache if that directory is
4424     # removed, or if the value is a relative name.
4425     INSTALL=$ac_install_sh
4426   fi
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4429 $as_echo "$INSTALL" >&6; }
4430
4431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4432 # It thinks the first close brace ends the variable substitution.
4433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4434
4435 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4436
4437 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4438
4439 # Expand $ac_aux_dir to an absolute path.
4440 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4441
4442 ac_ext=c
4443 ac_cpp='$CPP $CPPFLAGS'
4444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447 if test -n "$ac_tool_prefix"; then
4448   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4449 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if ${ac_cv_prog_CC+:} false; then :
4453   $as_echo_n "(cached) " >&6
4454 else
4455   if test -n "$CC"; then
4456   ac_cv_prog_CC="$CC" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4460 do
4461   IFS=$as_save_IFS
4462   test -z "$as_dir" && as_dir=.
4463     for ac_exec_ext in '' $ac_executable_extensions; do
4464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467     break 2
4468   fi
4469 done
4470   done
4471 IFS=$as_save_IFS
4472
4473 fi
4474 fi
4475 CC=$ac_cv_prog_CC
4476 if test -n "$CC"; then
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4478 $as_echo "$CC" >&6; }
4479 else
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482 fi
4483
4484
4485 fi
4486 if test -z "$ac_cv_prog_CC"; then
4487   ac_ct_CC=$CC
4488   # Extract the first word of "gcc", so it can be a program name with args.
4489 set dummy gcc; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4493   $as_echo_n "(cached) " >&6
4494 else
4495   if test -n "$ac_ct_CC"; then
4496   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501   IFS=$as_save_IFS
4502   test -z "$as_dir" && as_dir=.
4503     for ac_exec_ext in '' $ac_executable_extensions; do
4504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505     ac_cv_prog_ac_ct_CC="gcc"
4506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507     break 2
4508   fi
4509 done
4510   done
4511 IFS=$as_save_IFS
4512
4513 fi
4514 fi
4515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4516 if test -n "$ac_ct_CC"; then
4517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4518 $as_echo "$ac_ct_CC" >&6; }
4519 else
4520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4522 fi
4523
4524   if test "x$ac_ct_CC" = x; then
4525     CC=""
4526   else
4527     case $cross_compiling:$ac_tool_warned in
4528 yes:)
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4531 ac_tool_warned=yes ;;
4532 esac
4533     CC=$ac_ct_CC
4534   fi
4535 else
4536   CC="$ac_cv_prog_CC"
4537 fi
4538
4539 if test -z "$CC"; then
4540           if test -n "$ac_tool_prefix"; then
4541     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4542 set dummy ${ac_tool_prefix}cc; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if ${ac_cv_prog_CC+:} false; then :
4546   $as_echo_n "(cached) " >&6
4547 else
4548   if test -n "$CC"; then
4549   ac_cv_prog_CC="$CC" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554   IFS=$as_save_IFS
4555   test -z "$as_dir" && as_dir=.
4556     for ac_exec_ext in '' $ac_executable_extensions; do
4557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558     ac_cv_prog_CC="${ac_tool_prefix}cc"
4559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560     break 2
4561   fi
4562 done
4563   done
4564 IFS=$as_save_IFS
4565
4566 fi
4567 fi
4568 CC=$ac_cv_prog_CC
4569 if test -n "$CC"; then
4570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4571 $as_echo "$CC" >&6; }
4572 else
4573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4575 fi
4576
4577
4578   fi
4579 fi
4580 if test -z "$CC"; then
4581   # Extract the first word of "cc", so it can be a program name with args.
4582 set dummy cc; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if ${ac_cv_prog_CC+:} false; then :
4586   $as_echo_n "(cached) " >&6
4587 else
4588   if test -n "$CC"; then
4589   ac_cv_prog_CC="$CC" # Let the user override the test.
4590 else
4591   ac_prog_rejected=no
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595   IFS=$as_save_IFS
4596   test -z "$as_dir" && as_dir=.
4597     for ac_exec_ext in '' $ac_executable_extensions; do
4598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4600        ac_prog_rejected=yes
4601        continue
4602      fi
4603     ac_cv_prog_CC="cc"
4604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605     break 2
4606   fi
4607 done
4608   done
4609 IFS=$as_save_IFS
4610
4611 if test $ac_prog_rejected = yes; then
4612   # We found a bogon in the path, so make sure we never use it.
4613   set dummy $ac_cv_prog_CC
4614   shift
4615   if test $# != 0; then
4616     # We chose a different compiler from the bogus one.
4617     # However, it has the same basename, so the bogon will be chosen
4618     # first if we set CC to just the basename; use the full file name.
4619     shift
4620     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4621   fi
4622 fi
4623 fi
4624 fi
4625 CC=$ac_cv_prog_CC
4626 if test -n "$CC"; then
4627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4628 $as_echo "$CC" >&6; }
4629 else
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633
4634
4635 fi
4636 if test -z "$CC"; then
4637   if test -n "$ac_tool_prefix"; then
4638   for ac_prog in cl.exe
4639   do
4640     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_CC+:} false; then :
4645   $as_echo_n "(cached) " >&6
4646 else
4647   if test -n "$CC"; then
4648   ac_cv_prog_CC="$CC" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655     for ac_exec_ext in '' $ac_executable_extensions; do
4656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659     break 2
4660   fi
4661 done
4662   done
4663 IFS=$as_save_IFS
4664
4665 fi
4666 fi
4667 CC=$ac_cv_prog_CC
4668 if test -n "$CC"; then
4669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4670 $as_echo "$CC" >&6; }
4671 else
4672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4674 fi
4675
4676
4677     test -n "$CC" && break
4678   done
4679 fi
4680 if test -z "$CC"; then
4681   ac_ct_CC=$CC
4682   for ac_prog in cl.exe
4683 do
4684   # Extract the first word of "$ac_prog", so it can be a program name with args.
4685 set dummy $ac_prog; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if test -n "$ac_ct_CC"; then
4692   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699     for ac_exec_ext in '' $ac_executable_extensions; do
4700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701     ac_cv_prog_ac_ct_CC="$ac_prog"
4702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706   done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4712 if test -n "$ac_ct_CC"; then
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4714 $as_echo "$ac_ct_CC" >&6; }
4715 else
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721   test -n "$ac_ct_CC" && break
4722 done
4723
4724   if test "x$ac_ct_CC" = x; then
4725     CC=""
4726   else
4727     case $cross_compiling:$ac_tool_warned in
4728 yes:)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731 ac_tool_warned=yes ;;
4732 esac
4733     CC=$ac_ct_CC
4734   fi
4735 fi
4736
4737 fi
4738
4739
4740 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4742 as_fn_error $? "no acceptable C compiler found in \$PATH
4743 See \`config.log' for more details" "$LINENO" 5; }
4744
4745 # Provide some information about the compiler.
4746 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4747 set X $ac_compile
4748 ac_compiler=$2
4749 for ac_option in --version -v -V -qversion; do
4750   { { ac_try="$ac_compiler $ac_option >&5"
4751 case "(($ac_try" in
4752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753   *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4756 $as_echo "$ac_try_echo"; } >&5
4757   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4758   ac_status=$?
4759   if test -s conftest.err; then
4760     sed '10a\
4761 ... rest of stderr output deleted ...
4762          10q' conftest.err >conftest.er1
4763     cat conftest.er1 >&5
4764   fi
4765   rm -f conftest.er1 conftest.err
4766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4767   test $ac_status = 0; }
4768 done
4769
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h.  */
4772
4773 int main (void)
4774 {
4775
4776  ;
4777  return 0;
4778 }
4779 _ACEOF
4780 ac_clean_files_save=$ac_clean_files
4781 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4782 # Try to create an executable without -o first, disregard a.out.
4783 # It will help us diagnose broken compilers, and finding out an intuition
4784 # of exeext.
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4786 $as_echo_n "checking whether the C compiler works... " >&6; }
4787 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4788
4789 # The possible output files:
4790 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4791
4792 ac_rmfiles=
4793 for ac_file in $ac_files
4794 do
4795   case $ac_file in
4796     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4797     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4798   esac
4799 done
4800 rm -f $ac_rmfiles
4801
4802 if { { ac_try="$ac_link_default"
4803 case "(($ac_try" in
4804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805   *) ac_try_echo=$ac_try;;
4806 esac
4807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808 $as_echo "$ac_try_echo"; } >&5
4809   (eval "$ac_link_default") 2>&5
4810   ac_status=$?
4811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4812   test $ac_status = 0; }; then :
4813   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4815 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4816 # so that the user can short-circuit this test for compilers unknown to
4817 # Autoconf.
4818 for ac_file in $ac_files ''
4819 do
4820   test -f "$ac_file" || continue
4821   case $ac_file in
4822     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4823         ;;
4824     [ab].out )
4825         # We found the default executable, but exeext='' is most
4826         # certainly right.
4827         break;;
4828     *.* )
4829         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4830         then :; else
4831            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4832         fi
4833         # We set ac_cv_exeext here because the later test for it is not
4834         # safe: cross compilers may not add the suffix if given an `-o'
4835         # argument, so we may need to know it at that point already.
4836         # Even if this section looks crufty: it has the advantage of
4837         # actually working.
4838         break;;
4839     * )
4840         break;;
4841   esac
4842 done
4843 test "$ac_cv_exeext" = no && ac_cv_exeext=
4844
4845 else
4846   ac_file=''
4847 fi
4848 if test -z "$ac_file"; then :
4849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4851 $as_echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4856 as_fn_error 77 "C compiler cannot create executables
4857 See \`config.log' for more details" "$LINENO" 5; }
4858 else
4859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4860 $as_echo "yes" >&6; }
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4863 $as_echo_n "checking for C compiler default output file name... " >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4865 $as_echo "$ac_file" >&6; }
4866 ac_exeext=$ac_cv_exeext
4867
4868 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4869 ac_clean_files=$ac_clean_files_save
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4871 $as_echo_n "checking for suffix of executables... " >&6; }
4872 if { { ac_try="$ac_link"
4873 case "(($ac_try" in
4874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875   *) ac_try_echo=$ac_try;;
4876 esac
4877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4878 $as_echo "$ac_try_echo"; } >&5
4879   (eval "$ac_link") 2>&5
4880   ac_status=$?
4881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4882   test $ac_status = 0; }; then :
4883   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4884 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4885 # work properly (i.e., refer to `conftest.exe'), while it won't with
4886 # `rm'.
4887 for ac_file in conftest.exe conftest conftest.*; do
4888   test -f "$ac_file" || continue
4889   case $ac_file in
4890     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4891     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4892           break;;
4893     * ) break;;
4894   esac
4895 done
4896 else
4897   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4899 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4900 See \`config.log' for more details" "$LINENO" 5; }
4901 fi
4902 rm -f conftest conftest$ac_cv_exeext
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4904 $as_echo "$ac_cv_exeext" >&6; }
4905
4906 rm -f conftest.$ac_ext
4907 EXEEXT=$ac_cv_exeext
4908 ac_exeext=$EXEEXT
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h.  */
4911 #include <stdio.h>
4912 int main (void)
4913 {
4914 FILE *f = fopen ("conftest.out", "w");
4915  return ferror (f) || fclose (f) != 0;
4916
4917  ;
4918  return 0;
4919 }
4920 _ACEOF
4921 ac_clean_files="$ac_clean_files conftest.out"
4922 # Check that the compiler produces executables we can run.  If not, either
4923 # the compiler is broken, or we cross compile.
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4925 $as_echo_n "checking whether we are cross compiling... " >&6; }
4926 if test "$cross_compiling" != yes; then
4927   { { ac_try="$ac_link"
4928 case "(($ac_try" in
4929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930   *) ac_try_echo=$ac_try;;
4931 esac
4932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4933 $as_echo "$ac_try_echo"; } >&5
4934   (eval "$ac_link") 2>&5
4935   ac_status=$?
4936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4937   test $ac_status = 0; }
4938   if { ac_try='./conftest$ac_cv_exeext'
4939   { { case "(($ac_try" in
4940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941   *) ac_try_echo=$ac_try;;
4942 esac
4943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4944 $as_echo "$ac_try_echo"; } >&5
4945   (eval "$ac_try") 2>&5
4946   ac_status=$?
4947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4948   test $ac_status = 0; }; }; then
4949     cross_compiling=no
4950   else
4951     if test "$cross_compiling" = maybe; then
4952         cross_compiling=yes
4953     else
4954         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4956 as_fn_error $? "cannot run C compiled programs.
4957 If you meant to cross compile, use \`--host'.
4958 See \`config.log' for more details" "$LINENO" 5; }
4959     fi
4960   fi
4961 fi
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4963 $as_echo "$cross_compiling" >&6; }
4964
4965 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4966 ac_clean_files=$ac_clean_files_save
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4968 $as_echo_n "checking for suffix of object files... " >&6; }
4969 if ${ac_cv_objext+:} false; then :
4970   $as_echo_n "(cached) " >&6
4971 else
4972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h.  */
4974
4975 int main (void)
4976 {
4977
4978  ;
4979  return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.o conftest.obj
4983 if { { ac_try="$ac_compile"
4984 case "(($ac_try" in
4985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986   *) ac_try_echo=$ac_try;;
4987 esac
4988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4989 $as_echo "$ac_try_echo"; } >&5
4990   (eval "$ac_compile") 2>&5
4991   ac_status=$?
4992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993   test $ac_status = 0; }; then :
4994   for ac_file in conftest.o conftest.obj conftest.*; do
4995   test -f "$ac_file" || continue;
4996   case $ac_file in
4997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4998     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4999        break;;
5000   esac
5001 done
5002 else
5003   $as_echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5008 as_fn_error $? "cannot compute suffix of object files: cannot compile
5009 See \`config.log' for more details" "$LINENO" 5; }
5010 fi
5011 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5014 $as_echo "$ac_cv_objext" >&6; }
5015 OBJEXT=$ac_cv_objext
5016 ac_objext=$OBJEXT
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5018 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5019 if ${ac_cv_c_compiler_gnu+:} false; then :
5020   $as_echo_n "(cached) " >&6
5021 else
5022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h.  */
5024
5025 int main (void)
5026 {
5027 #ifndef __GNUC__
5028        choke me
5029 #endif
5030
5031  ;
5032  return 0;
5033 }
5034 _ACEOF
5035 if ac_fn_c_try_compile "$LINENO"; then :
5036   ac_compiler_gnu=yes
5037 else
5038   ac_compiler_gnu=no
5039 fi
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5042
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5045 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5046 if test $ac_compiler_gnu = yes; then
5047   GCC=yes
5048 else
5049   GCC=
5050 fi
5051 ac_test_CFLAGS=${CFLAGS+set}
5052 ac_save_CFLAGS=$CFLAGS
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5054 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5055 if ${ac_cv_prog_cc_g+:} false; then :
5056   $as_echo_n "(cached) " >&6
5057 else
5058   ac_save_c_werror_flag=$ac_c_werror_flag
5059    ac_c_werror_flag=yes
5060    ac_cv_prog_cc_g=no
5061    CFLAGS="-g"
5062    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h.  */
5064
5065 int main (void)
5066 {
5067
5068  ;
5069  return 0;
5070 }
5071 _ACEOF
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073   ac_cv_prog_cc_g=yes
5074 else
5075   CFLAGS=""
5076       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h.  */
5078
5079 int main (void)
5080 {
5081
5082  ;
5083  return 0;
5084 }
5085 _ACEOF
5086 if ac_fn_c_try_compile "$LINENO"; then :
5087
5088 else
5089   ac_c_werror_flag=$ac_save_c_werror_flag
5090          CFLAGS="-g"
5091          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h.  */
5093
5094 int main (void)
5095 {
5096
5097  ;
5098  return 0;
5099 }
5100 _ACEOF
5101 if ac_fn_c_try_compile "$LINENO"; then :
5102   ac_cv_prog_cc_g=yes
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 fi
5106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 fi
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109    ac_c_werror_flag=$ac_save_c_werror_flag
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5112 $as_echo "$ac_cv_prog_cc_g" >&6; }
5113 if test "$ac_test_CFLAGS" = set; then
5114   CFLAGS=$ac_save_CFLAGS
5115 elif test $ac_cv_prog_cc_g = yes; then
5116   if test "$GCC" = yes; then
5117     CFLAGS="-g -O2"
5118   else
5119     CFLAGS="-g"
5120   fi
5121 else
5122   if test "$GCC" = yes; then
5123     CFLAGS="-O2"
5124   else
5125     CFLAGS=
5126   fi
5127 fi
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5129 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5130 if ${ac_cv_prog_cc_c89+:} false; then :
5131   $as_echo_n "(cached) " >&6
5132 else
5133   ac_cv_prog_cc_c89=no
5134 ac_save_CC=$CC
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h.  */
5137 #include <stdarg.h>
5138 #include <stdio.h>
5139 struct stat;
5140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5141 struct buf { int x; };
5142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5143 static char *e (p, i)
5144      char **p;
5145      int i;
5146 {
5147   return p[i];
5148 }
5149 static char *f (char * (*g) (char **, int), char **p, ...)
5150 {
5151   char *s;
5152   va_list v;
5153   va_start (v,p);
5154   s = g (p, va_arg (v,int));
5155   va_end (v);
5156   return s;
5157 }
5158
5159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5160    function prototypes and stuff, but not '\xHH' hex character constants.
5161    These don't provoke an error unfortunately, instead are silently treated
5162    as 'x'.  The following induces an error, until -std is added to get
5163    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5164    array size at least.  It's necessary to write '\x00'==0 to get something
5165    that's true only with -std.  */
5166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5167
5168 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5169    inside strings and character constants.  */
5170 #define FOO(x) 'x'
5171 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5172
5173 int test (int i, double x);
5174 struct s1 {int (*f) (int a);};
5175 struct s2 {int (*f) (double a);};
5176 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5177 int argc;
5178 char **argv;
5179 int main (void)
5180 {
5181 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5182  ;
5183  return 0;
5184 }
5185 _ACEOF
5186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5187         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5188 do
5189   CC="$ac_save_CC $ac_arg"
5190   if ac_fn_c_try_compile "$LINENO"; then :
5191   ac_cv_prog_cc_c89=$ac_arg
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext
5194   test "x$ac_cv_prog_cc_c89" != "xno" && break
5195 done
5196 rm -f conftest.$ac_ext
5197 CC=$ac_save_CC
5198
5199 fi
5200 # AC_CACHE_VAL
5201 case "x$ac_cv_prog_cc_c89" in
5202   x)
5203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5204 $as_echo "none needed" >&6; } ;;
5205   xno)
5206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5207 $as_echo "unsupported" >&6; } ;;
5208   *)
5209     CC="$CC $ac_cv_prog_cc_c89"
5210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5211 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5212 esac
5213 if test "x$ac_cv_prog_cc_c89" != xno; then :
5214
5215 fi
5216
5217 ac_ext=c
5218 ac_cpp='$CPP $CPPFLAGS'
5219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222
5223 ac_ext=c
5224 ac_cpp='$CPP $CPPFLAGS'
5225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5229 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5230 if ${am_cv_prog_cc_c_o+:} false; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h.  */
5235
5236 int main (void)
5237 {
5238
5239  ;
5240  return 0;
5241 }
5242 _ACEOF
5243   # Make sure it works both with $CC and with simple cc.
5244   # Following AC_PROG_CC_C_O, we do the test twice because some
5245   # compilers refuse to overwrite an existing .o file with -o,
5246   # though they will create one.
5247   am_cv_prog_cc_c_o=yes
5248   for am_i in 1 2; do
5249     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5250    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5251    ac_status=$?
5252    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253    (exit $ac_status); } \
5254          && test -f conftest2.$ac_objext; then
5255       : OK
5256     else
5257       am_cv_prog_cc_c_o=no
5258       break
5259     fi
5260   done
5261   rm -f core conftest*
5262   unset am_i
5263 fi
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5265 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5266 if test "$am_cv_prog_cc_c_o" != yes; then
5267    # Losing compiler, so override with the script.
5268    # FIXME: It is wrong to rewrite CC.
5269    # But if we don't then we get into trouble of one sort or another.
5270    # A longer-term fix would be to have automake use am__CC in this case,
5271    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5272    CC="$am_aux_dir/compile $CC"
5273 fi
5274 ac_ext=c
5275 ac_cpp='$CPP $CPPFLAGS'
5276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5279
5280
5281
5282 ac_ext=c
5283 ac_cpp='$CPP $CPPFLAGS'
5284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5288 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5289 # On Suns, sometimes $CPP names a directory.
5290 if test -n "$CPP" && test -d "$CPP"; then
5291   CPP=
5292 fi
5293 if test -z "$CPP"; then
5294   if ${ac_cv_prog_CPP+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297       # Double quotes because CPP needs to be expanded
5298     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5299     do
5300       ac_preproc_ok=false
5301 for ac_c_preproc_warn_flag in '' yes
5302 do
5303   # Use a header file that comes with gcc, so configuring glibc
5304   # with a fresh cross-compiler works.
5305   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5306   # <limits.h> exists even on freestanding compilers.
5307   # On the NeXT, cc -E runs the code through the compiler's parser,
5308   # not just through cpp. "Syntax error" is here to catch this case.
5309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h.  */
5311 #ifdef __STDC__
5312 # include <limits.h>
5313 #else
5314 # include <assert.h>
5315 #endif
5316                      Syntax error
5317 _ACEOF
5318 if ac_fn_c_try_cpp "$LINENO"; then :
5319
5320 else
5321   # Broken: fails on valid input.
5322 continue
5323 fi
5324 rm -f conftest.err conftest.i conftest.$ac_ext
5325
5326   # OK, works on sane cases.  Now check whether nonexistent headers
5327   # can be detected and how.
5328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h.  */
5330 #include <ac_nonexistent.h>
5331 _ACEOF
5332 if ac_fn_c_try_cpp "$LINENO"; then :
5333   # Broken: success on invalid input.
5334 continue
5335 else
5336   # Passes both tests.
5337 ac_preproc_ok=:
5338 break
5339 fi
5340 rm -f conftest.err conftest.i conftest.$ac_ext
5341
5342 done
5343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5344 rm -f conftest.i conftest.err conftest.$ac_ext
5345 if $ac_preproc_ok; then :
5346   break
5347 fi
5348
5349     done
5350     ac_cv_prog_CPP=$CPP
5351
5352 fi
5353   CPP=$ac_cv_prog_CPP
5354 else
5355   ac_cv_prog_CPP=$CPP
5356 fi
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5358 $as_echo "$CPP" >&6; }
5359 ac_preproc_ok=false
5360 for ac_c_preproc_warn_flag in '' yes
5361 do
5362   # Use a header file that comes with gcc, so configuring glibc
5363   # with a fresh cross-compiler works.
5364   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365   # <limits.h> exists even on freestanding compilers.
5366   # On the NeXT, cc -E runs the code through the compiler's parser,
5367   # not just through cpp. "Syntax error" is here to catch this case.
5368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h.  */
5370 #ifdef __STDC__
5371 # include <limits.h>
5372 #else
5373 # include <assert.h>
5374 #endif
5375                      Syntax error
5376 _ACEOF
5377 if ac_fn_c_try_cpp "$LINENO"; then :
5378
5379 else
5380   # Broken: fails on valid input.
5381 continue
5382 fi
5383 rm -f conftest.err conftest.i conftest.$ac_ext
5384
5385   # OK, works on sane cases.  Now check whether nonexistent headers
5386   # can be detected and how.
5387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h.  */
5389 #include <ac_nonexistent.h>
5390 _ACEOF
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5392   # Broken: success on invalid input.
5393 continue
5394 else
5395   # Passes both tests.
5396 ac_preproc_ok=:
5397 break
5398 fi
5399 rm -f conftest.err conftest.i conftest.$ac_ext
5400
5401 done
5402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5403 rm -f conftest.i conftest.err conftest.$ac_ext
5404 if $ac_preproc_ok; then :
5405
5406 else
5407   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5409 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5410 See \`config.log' for more details" "$LINENO" 5; }
5411 fi
5412
5413 ac_ext=c
5414 ac_cpp='$CPP $CPPFLAGS'
5415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418
5419
5420   IFS=$xc_prog_cc_prev_IFS
5421   LIBS=$xc_prog_cc_prev_LIBS
5422   CFLAGS=$xc_prog_cc_prev_CFLAGS
5423   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5424   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5425
5426
5427
5428
5429
5430 am__api_version='1.15'
5431
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5433 $as_echo_n "checking whether build environment is sane... " >&6; }
5434 # Reject unsafe characters in $srcdir or the absolute working directory
5435 # name.  Accept space and tab only in the latter.
5436 am_lf='
5437 '
5438 case `pwd` in
5439   *[\\\"\#\$\&\'\`$am_lf]*)
5440     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5441 esac
5442 case $srcdir in
5443   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
5444     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5445 esac
5446
5447 # Do 'set' in a subshell so we don't clobber the current shell's
5448 # arguments.  Must try -L first in case configure is actually a
5449 # symlink; some systems play weird games with the mod time of symlinks
5450 # (eg FreeBSD returns the mod time of the symlink's containing
5451 # directory).
5452 if (
5453    am_has_slept=no
5454    for am_try in 1 2; do
5455      echo "timestamp, slept: $am_has_slept" > conftest.file
5456      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5457      if test "$*" = "X"; then
5458         # -L didn't work.
5459         set X `ls -t "$srcdir/configure" conftest.file`
5460      fi
5461      if test "$*" != "X $srcdir/configure conftest.file" \
5462         && test "$*" != "X conftest.file $srcdir/configure"; then
5463
5464         # If neither matched, then we have a broken ls.  This can happen
5465         # if, for instance, CONFIG_SHELL is bash and it inherits a
5466         # broken ls alias from the environment.  This has actually
5467         # happened.  Such a system could not be considered "sane".
5468         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5469   alias in your environment" "$LINENO" 5
5470      fi
5471      if test "$2" = conftest.file || test $am_try -eq 2; then
5472        break
5473      fi
5474      # Just in case.
5475      sleep 1
5476      am_has_slept=yes
5477    done
5478    test "$2" = conftest.file
5479    )
5480 then
5481    # Ok.
5482    :
5483 else
5484    as_fn_error $? "newly created file is older than distributed files!
5485 Check your system clock" "$LINENO" 5
5486 fi
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5488 $as_echo "yes" >&6; }
5489 # If we didn't sleep, we still need to ensure time stamps of config.status and
5490 # generated files are strictly newer.
5491 am_sleep_pid=
5492 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5493   ( sleep 1 ) &
5494   am_sleep_pid=$!
5495 fi
5496
5497 rm -f conftest.file
5498
5499 test "$program_prefix" != NONE &&
5500   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5501 # Use a double $ so make ignores it.
5502 test "$program_suffix" != NONE &&
5503   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5504 # Double any \ or $.
5505 # By default was `s,x,x', remove it if useless.
5506 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5507 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5508
5509 if test x"${MISSING+set}" != xset; then
5510   case $am_aux_dir in
5511   *\ * | *\     *)
5512     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5513   *)
5514     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5515   esac
5516 fi
5517 # Use eval to expand $SHELL
5518 if eval "$MISSING --is-lightweight"; then
5519   am_missing_run="$MISSING "
5520 else
5521   am_missing_run=
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5523 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5524 fi
5525
5526 if test x"${install_sh+set}" != xset; then
5527   case $am_aux_dir in
5528   *\ * | *\     *)
5529     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5530   *)
5531     install_sh="\${SHELL} $am_aux_dir/install-sh"
5532   esac
5533 fi
5534
5535 # Installed binaries are usually stripped using 'strip' when the user
5536 # run "make install-strip".  However 'strip' might not be the right
5537 # tool to use in cross-compilation environments, therefore Automake
5538 # will honor the 'STRIP' environment variable to overrule this program.
5539 if test "$cross_compiling" != no; then
5540   if test -n "$ac_tool_prefix"; then
5541   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5542 set dummy ${ac_tool_prefix}strip; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_STRIP+:} false; then :
5546   $as_echo_n "(cached) " >&6
5547 else
5548   if test -n "$STRIP"; then
5549   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554   IFS=$as_save_IFS
5555   test -z "$as_dir" && as_dir=.
5556     for ac_exec_ext in '' $ac_executable_extensions; do
5557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560     break 2
5561   fi
5562 done
5563   done
5564 IFS=$as_save_IFS
5565
5566 fi
5567 fi
5568 STRIP=$ac_cv_prog_STRIP
5569 if test -n "$STRIP"; then
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5571 $as_echo "$STRIP" >&6; }
5572 else
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5575 fi
5576
5577
5578 fi
5579 if test -z "$ac_cv_prog_STRIP"; then
5580   ac_ct_STRIP=$STRIP
5581   # Extract the first word of "strip", so it can be a program name with args.
5582 set dummy strip; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588   if test -n "$ac_ct_STRIP"; then
5589   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596     for ac_exec_ext in '' $ac_executable_extensions; do
5597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598     ac_cv_prog_ac_ct_STRIP="strip"
5599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603   done
5604 IFS=$as_save_IFS
5605
5606 fi
5607 fi
5608 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5609 if test -n "$ac_ct_STRIP"; then
5610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5611 $as_echo "$ac_ct_STRIP" >&6; }
5612 else
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616
5617   if test "x$ac_ct_STRIP" = x; then
5618     STRIP=":"
5619   else
5620     case $cross_compiling:$ac_tool_warned in
5621 yes:)
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624 ac_tool_warned=yes ;;
5625 esac
5626     STRIP=$ac_ct_STRIP
5627   fi
5628 else
5629   STRIP="$ac_cv_prog_STRIP"
5630 fi
5631
5632 fi
5633 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5636 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5637 if test -z "$MKDIR_P"; then
5638   if ${ac_cv_path_mkdir+:} false; then :
5639   $as_echo_n "(cached) " >&6
5640 else
5641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5643 do
5644   IFS=$as_save_IFS
5645   test -z "$as_dir" && as_dir=.
5646     for ac_prog in mkdir gmkdir; do
5647          for ac_exec_ext in '' $ac_executable_extensions; do
5648            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5649            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5650              'mkdir (GNU coreutils) '* | \
5651              'mkdir (coreutils) '* | \
5652              'mkdir (fileutils) '4.1*)
5653                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5654                break 3;;
5655            esac
5656          done
5657        done
5658   done
5659 IFS=$as_save_IFS
5660
5661 fi
5662
5663   test -d ./--version && rmdir ./--version
5664   if test "${ac_cv_path_mkdir+set}" = set; then
5665     MKDIR_P="$ac_cv_path_mkdir -p"
5666   else
5667     # As a last resort, use the slow shell script.  Don't cache a
5668     # value for MKDIR_P within a source directory, because that will
5669     # break other packages using the cache if that directory is
5670     # removed, or if the value is a relative name.
5671     MKDIR_P="$ac_install_sh -d"
5672   fi
5673 fi
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5675 $as_echo "$MKDIR_P" >&6; }
5676
5677 for ac_prog in gawk mawk nawk awk
5678 do
5679   # Extract the first word of "$ac_prog", so it can be a program name with args.
5680 set dummy $ac_prog; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_AWK+:} false; then :
5684   $as_echo_n "(cached) " >&6
5685 else
5686   if test -n "$AWK"; then
5687   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692   IFS=$as_save_IFS
5693   test -z "$as_dir" && as_dir=.
5694     for ac_exec_ext in '' $ac_executable_extensions; do
5695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696     ac_cv_prog_AWK="$ac_prog"
5697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698     break 2
5699   fi
5700 done
5701   done
5702 IFS=$as_save_IFS
5703
5704 fi
5705 fi
5706 AWK=$ac_cv_prog_AWK
5707 if test -n "$AWK"; then
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5709 $as_echo "$AWK" >&6; }
5710 else
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 fi
5714
5715
5716   test -n "$AWK" && break
5717 done
5718
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5720 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5721 set x ${MAKE-make}
5722 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5723 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5724   $as_echo_n "(cached) " >&6
5725 else
5726   cat >conftest.make <<\_ACEOF
5727 SHELL = /bin/sh
5728 all:
5729         @echo '@@@%%%=$(MAKE)=@@@%%%'
5730 _ACEOF
5731 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5733   *@@@%%%=?*=@@@%%%*)
5734     eval ac_cv_prog_make_${ac_make}_set=yes;;
5735   *)
5736     eval ac_cv_prog_make_${ac_make}_set=no;;
5737 esac
5738 rm -f conftest.make
5739 fi
5740 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5742 $as_echo "yes" >&6; }
5743   SET_MAKE=
5744 else
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5747   SET_MAKE="MAKE=${MAKE-make}"
5748 fi
5749
5750 rm -rf .tst 2>/dev/null
5751 mkdir .tst 2>/dev/null
5752 if test -d .tst; then
5753   am__leading_dot=.
5754 else
5755   am__leading_dot=_
5756 fi
5757 rmdir .tst 2>/dev/null
5758
5759 DEPDIR="${am__leading_dot}deps"
5760
5761 ac_config_commands="$ac_config_commands depfiles"
5762
5763
5764 am_make=${MAKE-make}
5765 cat > confinc << 'END'
5766 am__doit:
5767         @echo this is the am__doit target
5768 .PHONY: am__doit
5769 END
5770 # If we don't find an include directive, just comment out the code.
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5772 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5773 am__include="#"
5774 am__quote=
5775 _am_result=none
5776 # First try GNU make style include.
5777 echo "include confinc" > confmf
5778 # Ignore all kinds of additional output from 'make'.
5779 case `$am_make -s -f confmf 2> /dev/null` in #(
5780 *the\ am__doit\ target*)
5781   am__include=include
5782   am__quote=
5783   _am_result=GNU
5784   ;;
5785 esac
5786 # Now try BSD make style include.
5787 if test "$am__include" = "#"; then
5788    echo '.include "confinc"' > confmf
5789    case `$am_make -s -f confmf 2> /dev/null` in #(
5790    *the\ am__doit\ target*)
5791      am__include=.include
5792      am__quote="\""
5793      _am_result=BSD
5794      ;;
5795    esac
5796 fi
5797
5798
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5800 $as_echo "$_am_result" >&6; }
5801 rm -f confinc confmf
5802
5803 # Check whether --enable-dependency-tracking was given.
5804 if test "${enable_dependency_tracking+set}" = set; then :
5805   enableval=$enable_dependency_tracking;
5806 fi
5807
5808 if test "x$enable_dependency_tracking" != xno; then
5809   am_depcomp="$ac_aux_dir/depcomp"
5810   AMDEPBACKSLASH='\'
5811   am__nodep='_no'
5812 fi
5813  if test "x$enable_dependency_tracking" != xno; then
5814   AMDEP_TRUE=
5815   AMDEP_FALSE='#'
5816 else
5817   AMDEP_TRUE='#'
5818   AMDEP_FALSE=
5819 fi
5820
5821
5822 ## --------------------------------------- ##
5823 ##  Start of automake initialization code  ##
5824 ## --------------------------------------- ##
5825
5826 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5827   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5828   # is not polluted with repeated "-I."
5829   am__isrc=' -I$(srcdir)'
5830   # test to see if srcdir already configured
5831   if test -f $srcdir/config.status; then
5832     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5833   fi
5834 fi
5835
5836 # test whether we have cygpath
5837 if test -z "$CYGPATH_W"; then
5838   if (cygpath --version) >/dev/null 2>/dev/null; then
5839     CYGPATH_W='cygpath -w'
5840   else
5841     CYGPATH_W=echo
5842   fi
5843 fi
5844
5845
5846 # Define the identity of the package.
5847  PACKAGE='curl'
5848  VERSION='-'
5849
5850
5851 cat >>confdefs.h <<_ACEOF
5852 #define PACKAGE "$PACKAGE"
5853 _ACEOF
5854
5855
5856 cat >>confdefs.h <<_ACEOF
5857 #define VERSION "$VERSION"
5858 _ACEOF
5859
5860 # Some tools Automake needs.
5861
5862 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5863
5864
5865 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5866
5867
5868 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5869
5870
5871 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5872
5873
5874 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5875
5876 # For better backward compatibility.  To be removed once Automake 1.9.x
5877 # dies out for good.  For more background, see:
5878 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5879 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5880 mkdir_p='$(MKDIR_P)'
5881
5882 # We need awk for the "check" target (and possibly the TAP driver).  The
5883 # system "awk" is bad on some platforms.
5884 # Always define AMTAR for backward compatibility.  Yes, it's still used
5885 # in the wild :-(  We should find a proper way to deprecate it ...
5886 AMTAR='$${TAR-tar}'
5887
5888
5889 # We'll loop over all known methods to create a tar archive until one works.
5890 _am_tools='gnutar  pax cpio none'
5891
5892 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5893
5894
5895
5896
5897
5898 depcc="$CC"   am_compiler_list=
5899
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5901 $as_echo_n "checking dependency style of $depcc... " >&6; }
5902 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5906   # We make a subdir and do the tests there.  Otherwise we can end up
5907   # making bogus files that we don't know about and never remove.  For
5908   # instance it was reported that on HP-UX the gcc test will end up
5909   # making a dummy file named 'D' -- because '-MD' means "put the output
5910   # in D".
5911   rm -rf conftest.dir
5912   mkdir conftest.dir
5913   # Copy depcomp to subdir because otherwise we won't find it if we're
5914   # using a relative directory.
5915   cp "$am_depcomp" conftest.dir
5916   cd conftest.dir
5917   # We will build objects and dependencies in a subdirectory because
5918   # it helps to detect inapplicable dependency modes.  For instance
5919   # both Tru64's cc and ICC support -MD to output dependencies as a
5920   # side effect of compilation, but ICC will put the dependencies in
5921   # the current directory while Tru64 will put them in the object
5922   # directory.
5923   mkdir sub
5924
5925   am_cv_CC_dependencies_compiler_type=none
5926   if test "$am_compiler_list" = ""; then
5927      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5928   fi
5929   am__universal=false
5930   case " $depcc " in #(
5931      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5932      esac
5933
5934   for depmode in $am_compiler_list; do
5935     # Setup a source with many dependencies, because some compilers
5936     # like to wrap large dependency lists on column 80 (with \), and
5937     # we should not choose a depcomp mode which is confused by this.
5938     #
5939     # We need to recreate these files for each test, as the compiler may
5940     # overwrite some of them when testing with obscure command lines.
5941     # This happens at least with the AIX C compiler.
5942     : > sub/conftest.c
5943     for i in 1 2 3 4 5 6; do
5944       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5945       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5946       # Solaris 10 /bin/sh.
5947       echo '/* dummy */' > sub/conftst$i.h
5948     done
5949     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5950
5951     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5952     # mode.  It turns out that the SunPro C++ compiler does not properly
5953     # handle '-M -o', and we need to detect this.  Also, some Intel
5954     # versions had trouble with output in subdirs.
5955     am__obj=sub/conftest.${OBJEXT-o}
5956     am__minus_obj="-o $am__obj"
5957     case $depmode in
5958     gcc)
5959       # This depmode causes a compiler race in universal mode.
5960       test "$am__universal" = false || continue
5961       ;;
5962     nosideeffect)
5963       # After this tag, mechanisms are not by side-effect, so they'll
5964       # only be used when explicitly requested.
5965       if test "x$enable_dependency_tracking" = xyes; then
5966         continue
5967       else
5968         break
5969       fi
5970       ;;
5971     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5972       # This compiler won't grok '-c -o', but also, the minuso test has
5973       # not run yet.  These depmodes are late enough in the game, and
5974       # so weak that their functioning should not be impacted.
5975       am__obj=conftest.${OBJEXT-o}
5976       am__minus_obj=
5977       ;;
5978     none) break ;;
5979     esac
5980     if depmode=$depmode \
5981        source=sub/conftest.c object=$am__obj \
5982        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5983        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5984          >/dev/null 2>conftest.err &&
5985        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5986        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5987        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5988        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5989       # icc doesn't choke on unknown options, it will just issue warnings
5990       # or remarks (even with -Werror).  So we grep stderr for any message
5991       # that says an option was ignored or not supported.
5992       # When given -MP, icc 7.0 and 7.1 complain thusly:
5993       #   icc: Command line warning: ignoring option '-M'; no argument required
5994       # The diagnosis changed in icc 8.0:
5995       #   icc: Command line remark: option '-MP' not supported
5996       if (grep 'ignoring option' conftest.err ||
5997           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5998         am_cv_CC_dependencies_compiler_type=$depmode
5999         break
6000       fi
6001     fi
6002   done
6003
6004   cd ..
6005   rm -rf conftest.dir
6006 else
6007   am_cv_CC_dependencies_compiler_type=none
6008 fi
6009
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6012 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6013 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6014
6015  if
6016   test "x$enable_dependency_tracking" != xno \
6017   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6018   am__fastdepCC_TRUE=
6019   am__fastdepCC_FALSE='#'
6020 else
6021   am__fastdepCC_TRUE='#'
6022   am__fastdepCC_FALSE=
6023 fi
6024
6025
6026
6027 # POSIX will say in a future version that running "rm -f" with no argument
6028 # is OK; and we want to be able to make that assumption in our Makefile
6029 # recipes.  So use an aggressive probe to check that the usage we want is
6030 # actually supported "in the wild" to an acceptable degree.
6031 # See automake bug#10828.
6032 # To make any issue more visible, cause the running configure to be aborted
6033 # by default if the 'rm' program in use doesn't match our expectations; the
6034 # user can still override this though.
6035 if rm -f && rm -fr && rm -rf; then : OK; else
6036   cat >&2 <<'END'
6037 Oops!
6038
6039 Your 'rm' program seems unable to run without file operands specified
6040 on the command line, even when the '-f' option is present.  This is contrary
6041 to the behaviour of most rm programs out there, and not conforming with
6042 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6043
6044 Please tell bug-automake@gnu.org about your system, including the value
6045 of your $PATH and any error possibly output before this message.  This
6046 can help us improve future automake versions.
6047
6048 END
6049   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6050     echo 'Configuration will proceed anyway, since you have set the' >&2
6051     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6052     echo >&2
6053   else
6054     cat >&2 <<'END'
6055 Aborting the configuration process, to ensure you take notice of the issue.
6056
6057 You can download and install GNU coreutils to get an 'rm' implementation
6058 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6059
6060 If you want to complete the configuration process using your problematic
6061 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6062 to "yes", and re-run configure.
6063
6064 END
6065     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6066   fi
6067 fi
6068
6069 ## ------------------------------------- ##
6070 ##  End of automake initialization code  ##
6071 ## ------------------------------------- ##
6072
6073
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6075 $as_echo_n "checking curl version... " >&6; }
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6077 $as_echo "$CURLVERSION" >&6; }
6078
6079
6080
6081 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6082
6083
6084 PKGADD_PKG="HAXXcurl"
6085 PKGADD_NAME="curl - a client that groks URLs"
6086 PKGADD_VENDOR="curl.haxx.se"
6087
6088
6089
6090
6091     curl_ssl_msg="no      (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
6092     curl_ssh_msg="no      (--with-libssh2)"
6093    curl_zlib_msg="no      (--with-zlib)"
6094     curl_gss_msg="no      (--with-gssapi)"
6095 curl_tls_srp_msg="no      (--enable-tls-srp)"
6096     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6097    curl_ipv6_msg="no      (--enable-ipv6)"
6098 curl_unix_sockets_msg="no      (--enable-unix-sockets)"
6099     curl_idn_msg="no      (--with-{libidn2,winidn})"
6100  curl_manual_msg="no      (--enable-manual)"
6101 curl_libcurl_msg="enabled (--disable-libcurl-option)"
6102 curl_verbose_msg="enabled (--disable-verbose)"
6103    curl_sspi_msg="no      (--enable-sspi)"
6104    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6105   curl_ldaps_msg="no      (--enable-ldaps)"
6106    curl_rtsp_msg="no      (--enable-rtsp)"
6107    curl_rtmp_msg="no      (--with-librtmp)"
6108   curl_mtlnk_msg="no      (--with-libmetalink)"
6109     curl_psl_msg="no      (--with-libpsl)"
6110
6111     ssl_backends=
6112
6113 INITIAL_LDFLAGS=$LDFLAGS
6114 INITIAL_LIBS=$LIBS
6115
6116
6117 # Make sure we can run config.sub.
6118 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6119   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6120
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6122 $as_echo_n "checking build system type... " >&6; }
6123 if ${ac_cv_build+:} false; then :
6124   $as_echo_n "(cached) " >&6
6125 else
6126   ac_build_alias=$build_alias
6127 test "x$ac_build_alias" = x &&
6128   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6129 test "x$ac_build_alias" = x &&
6130   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6131 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6132   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6133
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6136 $as_echo "$ac_cv_build" >&6; }
6137 case $ac_cv_build in
6138 *-*-*) ;;
6139 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6140 esac
6141 build=$ac_cv_build
6142 ac_save_IFS=$IFS; IFS='-'
6143 set x $ac_cv_build
6144 shift
6145 build_cpu=$1
6146 build_vendor=$2
6147 shift; shift
6148 # Remember, the first character of IFS is used to create $*,
6149 # except with old shells:
6150 build_os=$*
6151 IFS=$ac_save_IFS
6152 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6153
6154
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6156 $as_echo_n "checking host system type... " >&6; }
6157 if ${ac_cv_host+:} false; then :
6158   $as_echo_n "(cached) " >&6
6159 else
6160   if test "x$host_alias" = x; then
6161   ac_cv_host=$ac_cv_build
6162 else
6163   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6164     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6165 fi
6166
6167 fi
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6169 $as_echo "$ac_cv_host" >&6; }
6170 case $ac_cv_host in
6171 *-*-*) ;;
6172 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6173 esac
6174 host=$ac_cv_host
6175 ac_save_IFS=$IFS; IFS='-'
6176 set x $ac_cv_host
6177 shift
6178 host_cpu=$1
6179 host_vendor=$2
6180 shift; shift
6181 # Remember, the first character of IFS is used to create $*,
6182 # except with old shells:
6183 host_os=$*
6184 IFS=$ac_save_IFS
6185 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6186
6187
6188
6189 cat >>confdefs.h <<_ACEOF
6190 #define OS "${host}"
6191 _ACEOF
6192
6193
6194
6195
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6198 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6199 if ${ac_cv_path_GREP+:} false; then :
6200   $as_echo_n "(cached) " >&6
6201 else
6202   if test -z "$GREP"; then
6203   ac_path_GREP_found=false
6204   # Loop through the user's path and test for each of PROGNAME-LIST
6205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6207 do
6208   IFS=$as_save_IFS
6209   test -z "$as_dir" && as_dir=.
6210     for ac_prog in grep ggrep; do
6211     for ac_exec_ext in '' $ac_executable_extensions; do
6212       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6213       as_fn_executable_p "$ac_path_GREP" || continue
6214 # Check for GNU ac_path_GREP and select it if it is found.
6215   # Check for GNU $ac_path_GREP
6216 case `"$ac_path_GREP" --version 2>&1` in
6217 *GNU*)
6218   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6219 *)
6220   ac_count=0
6221   $as_echo_n 0123456789 >"conftest.in"
6222   while :
6223   do
6224     cat "conftest.in" "conftest.in" >"conftest.tmp"
6225     mv "conftest.tmp" "conftest.in"
6226     cp "conftest.in" "conftest.nl"
6227     $as_echo 'GREP' >> "conftest.nl"
6228     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6229     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6230     as_fn_arith $ac_count + 1 && ac_count=$as_val
6231     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6232       # Best one so far, save it but keep looking for a better one
6233       ac_cv_path_GREP="$ac_path_GREP"
6234       ac_path_GREP_max=$ac_count
6235     fi
6236     # 10*(2^10) chars as input seems more than enough
6237     test $ac_count -gt 10 && break
6238   done
6239   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6240 esac
6241
6242       $ac_path_GREP_found && break 3
6243     done
6244   done
6245   done
6246 IFS=$as_save_IFS
6247   if test -z "$ac_cv_path_GREP"; then
6248     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6249   fi
6250 else
6251   ac_cv_path_GREP=$GREP
6252 fi
6253
6254 fi
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6256 $as_echo "$ac_cv_path_GREP" >&6; }
6257  GREP="$ac_cv_path_GREP"
6258
6259
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6261 $as_echo_n "checking for egrep... " >&6; }
6262 if ${ac_cv_path_EGREP+:} false; then :
6263   $as_echo_n "(cached) " >&6
6264 else
6265   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6266    then ac_cv_path_EGREP="$GREP -E"
6267    else
6268      if test -z "$EGREP"; then
6269   ac_path_EGREP_found=false
6270   # Loop through the user's path and test for each of PROGNAME-LIST
6271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6273 do
6274   IFS=$as_save_IFS
6275   test -z "$as_dir" && as_dir=.
6276     for ac_prog in egrep; do
6277     for ac_exec_ext in '' $ac_executable_extensions; do
6278       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6279       as_fn_executable_p "$ac_path_EGREP" || continue
6280 # Check for GNU ac_path_EGREP and select it if it is found.
6281   # Check for GNU $ac_path_EGREP
6282 case `"$ac_path_EGREP" --version 2>&1` in
6283 *GNU*)
6284   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6285 *)
6286   ac_count=0
6287   $as_echo_n 0123456789 >"conftest.in"
6288   while :
6289   do
6290     cat "conftest.in" "conftest.in" >"conftest.tmp"
6291     mv "conftest.tmp" "conftest.in"
6292     cp "conftest.in" "conftest.nl"
6293     $as_echo 'EGREP' >> "conftest.nl"
6294     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6295     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6296     as_fn_arith $ac_count + 1 && ac_count=$as_val
6297     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6298       # Best one so far, save it but keep looking for a better one
6299       ac_cv_path_EGREP="$ac_path_EGREP"
6300       ac_path_EGREP_max=$ac_count
6301     fi
6302     # 10*(2^10) chars as input seems more than enough
6303     test $ac_count -gt 10 && break
6304   done
6305   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6306 esac
6307
6308       $ac_path_EGREP_found && break 3
6309     done
6310   done
6311   done
6312 IFS=$as_save_IFS
6313   if test -z "$ac_cv_path_EGREP"; then
6314     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6315   fi
6316 else
6317   ac_cv_path_EGREP=$EGREP
6318 fi
6319
6320    fi
6321 fi
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6323 $as_echo "$ac_cv_path_EGREP" >&6; }
6324  EGREP="$ac_cv_path_EGREP"
6325
6326
6327
6328
6329         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6330 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h.  */
6333
6334 #ifdef _AIX
6335    yes_this_is_aix
6336 #endif
6337
6338 _ACEOF
6339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6340   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6341
6342     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6343 $as_echo "yes" >&6; }
6344     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6345
6346
6347 else
6348
6349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6351
6352 fi
6353 rm -f conftest*
6354
6355
6356
6357
6358     #
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6360 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h.  */
6363
6364
6365
6366 int main (void)
6367 {
6368
6369 #ifdef _THREAD_SAFE
6370       int dummy=1;
6371 #else
6372       force compilation error
6373 #endif
6374
6375  ;
6376  return 0;
6377 }
6378
6379 _ACEOF
6380 if ac_fn_c_try_compile "$LINENO"; then :
6381
6382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6383 $as_echo "yes" >&6; }
6384     tmp_thread_safe_initially_defined="yes"
6385
6386 else
6387
6388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6390     tmp_thread_safe_initially_defined="no"
6391
6392 fi
6393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394   #
6395   if test "$tmp_thread_safe_initially_defined" = "no"; then
6396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6397 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6398
6399   case $host_os in
6400     aix[123].* | aix4.[012].*)
6401             tmp_need_thread_safe="no"
6402       ;;
6403     aix*)
6404             tmp_need_thread_safe="yes"
6405       ;;
6406     *)
6407       tmp_need_thread_safe="no"
6408       ;;
6409   esac
6410
6411     if test "$tmp_need_thread_safe" = "yes"; then
6412       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6413 $as_echo "yes" >&6; }
6414     else
6415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6417     fi
6418   fi
6419   #
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6421 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6422   if test "$tmp_thread_safe_initially_defined" = "yes" ||
6423     test "$tmp_need_thread_safe" = "yes"; then
6424
6425
6426 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6427
6428 cat >>confdefs.h <<_EOF
6429 #ifndef _THREAD_SAFE
6430 #  define _THREAD_SAFE
6431 #endif
6432 _EOF
6433
6434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6435 $as_echo "yes" >&6; }
6436   else
6437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6439   fi
6440   #
6441
6442
6443     #
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6445 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h.  */
6448
6449
6450
6451 int main (void)
6452 {
6453
6454 #ifdef _REENTRANT
6455       int dummy=1;
6456 #else
6457       force compilation error
6458 #endif
6459
6460  ;
6461  return 0;
6462 }
6463
6464 _ACEOF
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466
6467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6468 $as_echo "yes" >&6; }
6469     tmp_reentrant_initially_defined="yes"
6470
6471 else
6472
6473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6475     tmp_reentrant_initially_defined="no"
6476
6477 fi
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479   #
6480   if test "$tmp_reentrant_initially_defined" = "no"; then
6481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6482 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6483
6484   case $host_os in
6485     solaris*)
6486       tmp_need_reentrant="yes"
6487       ;;
6488     *)
6489       tmp_need_reentrant="no"
6490       ;;
6491   esac
6492
6493     if test "$tmp_need_reentrant" = "no"; then
6494
6495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h.  */
6497
6498
6499 #include <errno.h>
6500
6501 int main (void)
6502 {
6503
6504       if(0 != errno)
6505         return 1;
6506
6507  ;
6508  return 0;
6509 }
6510
6511 _ACEOF
6512 if ac_fn_c_try_compile "$LINENO"; then :
6513
6514     tmp_errno="yes"
6515
6516 else
6517
6518     tmp_errno="no"
6519
6520 fi
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522   if test "$tmp_errno" = "yes"; then
6523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h.  */
6525
6526
6527 #include <errno.h>
6528
6529 int main (void)
6530 {
6531
6532 #ifdef errno
6533         int dummy=1;
6534 #else
6535         force compilation error
6536 #endif
6537
6538  ;
6539  return 0;
6540 }
6541
6542 _ACEOF
6543 if ac_fn_c_try_compile "$LINENO"; then :
6544
6545       tmp_errno="errno_macro_defined"
6546
6547 else
6548
6549       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h.  */
6551
6552
6553 #define _REENTRANT
6554 #include <errno.h>
6555
6556 int main (void)
6557 {
6558
6559 #ifdef errno
6560           int dummy=1;
6561 #else
6562           force compilation error
6563 #endif
6564
6565  ;
6566  return 0;
6567 }
6568
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571
6572         tmp_errno="errno_macro_needs_reentrant"
6573         tmp_need_reentrant="yes"
6574
6575 fi
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577
6578 fi
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580   fi
6581
6582     fi
6583     if test "$tmp_need_reentrant" = "no"; then
6584
6585   if test "$tmp_need_reentrant" = "no"; then
6586
6587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h.  */
6589
6590
6591 #define gmtime_r innocuous_gmtime_r
6592 #ifdef __STDC__
6593 # include <limits.h>
6594 #else
6595 # include <assert.h>
6596 #endif
6597 #undef gmtime_r
6598 #ifdef __cplusplus
6599 extern "C"
6600 #endif
6601 char gmtime_r ();
6602 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6603 choke me
6604 #endif
6605
6606 int main (void)
6607 {
6608 return gmtime_r ();
6609  ;
6610  return 0;
6611 }
6612
6613 _ACEOF
6614 if ac_fn_c_try_link "$LINENO"; then :
6615
6616     tmp_gmtime_r="yes"
6617
6618 else
6619
6620     tmp_gmtime_r="no"
6621
6622 fi
6623 rm -f core conftest.err conftest.$ac_objext \
6624     conftest$ac_exeext conftest.$ac_ext
6625   if test "$tmp_gmtime_r" = "yes"; then
6626     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h.  */
6628
6629 #include <sys/types.h>
6630 #include <time.h>
6631
6632 _ACEOF
6633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6634   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6635
6636       tmp_gmtime_r="proto_declared"
6637
6638 else
6639
6640       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h.  */
6642
6643 #define _REENTRANT
6644 #include <sys/types.h>
6645 #include <time.h>
6646
6647 _ACEOF
6648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6649   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6650
6651         tmp_gmtime_r="proto_needs_reentrant"
6652         tmp_need_reentrant="yes"
6653
6654 fi
6655 rm -f conftest*
6656
6657
6658 fi
6659 rm -f conftest*
6660
6661   fi
6662
6663   fi
6664   if test "$tmp_need_reentrant" = "no"; then
6665
6666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h.  */
6668
6669
6670 #define localtime_r innocuous_localtime_r
6671 #ifdef __STDC__
6672 # include <limits.h>
6673 #else
6674 # include <assert.h>
6675 #endif
6676 #undef localtime_r
6677 #ifdef __cplusplus
6678 extern "C"
6679 #endif
6680 char localtime_r ();
6681 #if defined __stub_localtime_r || defined __stub___localtime_r
6682 choke me
6683 #endif
6684
6685 int main (void)
6686 {
6687 return localtime_r ();
6688  ;
6689  return 0;
6690 }
6691
6692 _ACEOF
6693 if ac_fn_c_try_link "$LINENO"; then :
6694
6695     tmp_localtime_r="yes"
6696
6697 else
6698
6699     tmp_localtime_r="no"
6700
6701 fi
6702 rm -f core conftest.err conftest.$ac_objext \
6703     conftest$ac_exeext conftest.$ac_ext
6704   if test "$tmp_localtime_r" = "yes"; then
6705     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h.  */
6707
6708 #include <sys/types.h>
6709 #include <time.h>
6710
6711 _ACEOF
6712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6713   $EGREP "localtime_r" >/dev/null 2>&1; then :
6714
6715       tmp_localtime_r="proto_declared"
6716
6717 else
6718
6719       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h.  */
6721
6722 #define _REENTRANT
6723 #include <sys/types.h>
6724 #include <time.h>
6725
6726 _ACEOF
6727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6728   $EGREP "localtime_r" >/dev/null 2>&1; then :
6729
6730         tmp_localtime_r="proto_needs_reentrant"
6731         tmp_need_reentrant="yes"
6732
6733 fi
6734 rm -f conftest*
6735
6736
6737 fi
6738 rm -f conftest*
6739
6740   fi
6741
6742   fi
6743   if test "$tmp_need_reentrant" = "no"; then
6744
6745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h.  */
6747
6748
6749 #define strerror_r innocuous_strerror_r
6750 #ifdef __STDC__
6751 # include <limits.h>
6752 #else
6753 # include <assert.h>
6754 #endif
6755 #undef strerror_r
6756 #ifdef __cplusplus
6757 extern "C"
6758 #endif
6759 char strerror_r ();
6760 #if defined __stub_strerror_r || defined __stub___strerror_r
6761 choke me
6762 #endif
6763
6764 int main (void)
6765 {
6766 return strerror_r ();
6767  ;
6768  return 0;
6769 }
6770
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"; then :
6773
6774     tmp_strerror_r="yes"
6775
6776 else
6777
6778     tmp_strerror_r="no"
6779
6780 fi
6781 rm -f core conftest.err conftest.$ac_objext \
6782     conftest$ac_exeext conftest.$ac_ext
6783   if test "$tmp_strerror_r" = "yes"; then
6784     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h.  */
6786
6787 #include <sys/types.h>
6788 #include <string.h>
6789
6790 _ACEOF
6791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6792   $EGREP "strerror_r" >/dev/null 2>&1; then :
6793
6794       tmp_strerror_r="proto_declared"
6795
6796 else
6797
6798       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h.  */
6800
6801 #define _REENTRANT
6802 #include <sys/types.h>
6803 #include <string.h>
6804
6805 _ACEOF
6806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6807   $EGREP "strerror_r" >/dev/null 2>&1; then :
6808
6809         tmp_strerror_r="proto_needs_reentrant"
6810         tmp_need_reentrant="yes"
6811
6812 fi
6813 rm -f conftest*
6814
6815
6816 fi
6817 rm -f conftest*
6818
6819   fi
6820
6821   fi
6822   if test "$tmp_need_reentrant" = "no"; then
6823
6824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h.  */
6826
6827
6828 #define strtok_r innocuous_strtok_r
6829 #ifdef __STDC__
6830 # include <limits.h>
6831 #else
6832 # include <assert.h>
6833 #endif
6834 #undef strtok_r
6835 #ifdef __cplusplus
6836 extern "C"
6837 #endif
6838 char strtok_r ();
6839 #if defined __stub_strtok_r || defined __stub___strtok_r
6840 choke me
6841 #endif
6842
6843 int main (void)
6844 {
6845 return strtok_r ();
6846  ;
6847  return 0;
6848 }
6849
6850 _ACEOF
6851 if ac_fn_c_try_link "$LINENO"; then :
6852
6853     tmp_strtok_r="yes"
6854
6855 else
6856
6857     tmp_strtok_r="no"
6858
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext \
6861     conftest$ac_exeext conftest.$ac_ext
6862   if test "$tmp_strtok_r" = "yes"; then
6863     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h.  */
6865
6866 #include <sys/types.h>
6867 #include <string.h>
6868
6869 _ACEOF
6870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6871   $EGREP "strtok_r" >/dev/null 2>&1; then :
6872
6873       tmp_strtok_r="proto_declared"
6874
6875 else
6876
6877       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h.  */
6879
6880 #define _REENTRANT
6881 #include <sys/types.h>
6882 #include <string.h>
6883
6884 _ACEOF
6885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6886   $EGREP "strtok_r" >/dev/null 2>&1; then :
6887
6888         tmp_strtok_r="proto_needs_reentrant"
6889         tmp_need_reentrant="yes"
6890
6891 fi
6892 rm -f conftest*
6893
6894
6895 fi
6896 rm -f conftest*
6897
6898   fi
6899
6900   fi
6901   if test "$tmp_need_reentrant" = "no"; then
6902
6903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h.  */
6905
6906
6907 #define inet_ntoa_r innocuous_inet_ntoa_r
6908 #ifdef __STDC__
6909 # include <limits.h>
6910 #else
6911 # include <assert.h>
6912 #endif
6913 #undef inet_ntoa_r
6914 #ifdef __cplusplus
6915 extern "C"
6916 #endif
6917 char inet_ntoa_r ();
6918 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6919 choke me
6920 #endif
6921
6922 int main (void)
6923 {
6924 return inet_ntoa_r ();
6925  ;
6926  return 0;
6927 }
6928
6929 _ACEOF
6930 if ac_fn_c_try_link "$LINENO"; then :
6931
6932     tmp_inet_ntoa_r="yes"
6933
6934 else
6935
6936     tmp_inet_ntoa_r="no"
6937
6938 fi
6939 rm -f core conftest.err conftest.$ac_objext \
6940     conftest$ac_exeext conftest.$ac_ext
6941   if test "$tmp_inet_ntoa_r" = "yes"; then
6942     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h.  */
6944
6945 #include <sys/types.h>
6946 #include <sys/socket.h>
6947 #include <netinet/in.h>
6948 #include <arpa/inet.h>
6949
6950 _ACEOF
6951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6953
6954       tmp_inet_ntoa_r="proto_declared"
6955
6956 else
6957
6958       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h.  */
6960
6961 #define _REENTRANT
6962 #include <sys/types.h>
6963 #include <sys/socket.h>
6964 #include <netinet/in.h>
6965 #include <arpa/inet.h>
6966
6967 _ACEOF
6968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6969   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6970
6971         tmp_inet_ntoa_r="proto_needs_reentrant"
6972         tmp_need_reentrant="yes"
6973
6974 fi
6975 rm -f conftest*
6976
6977
6978 fi
6979 rm -f conftest*
6980
6981   fi
6982
6983   fi
6984   if test "$tmp_need_reentrant" = "no"; then
6985
6986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h.  */
6988
6989
6990 #define gethostbyaddr_r innocuous_gethostbyaddr_r
6991 #ifdef __STDC__
6992 # include <limits.h>
6993 #else
6994 # include <assert.h>
6995 #endif
6996 #undef gethostbyaddr_r
6997 #ifdef __cplusplus
6998 extern "C"
6999 #endif
7000 char gethostbyaddr_r ();
7001 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7002 choke me
7003 #endif
7004
7005 int main (void)
7006 {
7007 return gethostbyaddr_r ();
7008  ;
7009  return 0;
7010 }
7011
7012 _ACEOF
7013 if ac_fn_c_try_link "$LINENO"; then :
7014
7015     tmp_gethostbyaddr_r="yes"
7016
7017 else
7018
7019     tmp_gethostbyaddr_r="no"
7020
7021 fi
7022 rm -f core conftest.err conftest.$ac_objext \
7023     conftest$ac_exeext conftest.$ac_ext
7024   if test "$tmp_gethostbyaddr_r" = "yes"; then
7025     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h.  */
7027
7028 #include <sys/types.h>
7029 #include <netdb.h>
7030
7031 _ACEOF
7032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7033   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7034
7035       tmp_gethostbyaddr_r="proto_declared"
7036
7037 else
7038
7039       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h.  */
7041
7042 #define _REENTRANT
7043 #include <sys/types.h>
7044 #include <netdb.h>
7045
7046 _ACEOF
7047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7048   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7049
7050         tmp_gethostbyaddr_r="proto_needs_reentrant"
7051         tmp_need_reentrant="yes"
7052
7053 fi
7054 rm -f conftest*
7055
7056
7057 fi
7058 rm -f conftest*
7059
7060   fi
7061
7062   fi
7063   if test "$tmp_need_reentrant" = "no"; then
7064
7065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h.  */
7067
7068
7069 #define gethostbyname_r innocuous_gethostbyname_r
7070 #ifdef __STDC__
7071 # include <limits.h>
7072 #else
7073 # include <assert.h>
7074 #endif
7075 #undef gethostbyname_r
7076 #ifdef __cplusplus
7077 extern "C"
7078 #endif
7079 char gethostbyname_r ();
7080 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7081 choke me
7082 #endif
7083
7084 int main (void)
7085 {
7086 return gethostbyname_r ();
7087  ;
7088  return 0;
7089 }
7090
7091 _ACEOF
7092 if ac_fn_c_try_link "$LINENO"; then :
7093
7094     tmp_gethostbyname_r="yes"
7095
7096 else
7097
7098     tmp_gethostbyname_r="no"
7099
7100 fi
7101 rm -f core conftest.err conftest.$ac_objext \
7102     conftest$ac_exeext conftest.$ac_ext
7103   if test "$tmp_gethostbyname_r" = "yes"; then
7104     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h.  */
7106
7107 #include <sys/types.h>
7108 #include <netdb.h>
7109
7110 _ACEOF
7111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7112   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7113
7114       tmp_gethostbyname_r="proto_declared"
7115
7116 else
7117
7118       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h.  */
7120
7121 #define _REENTRANT
7122 #include <sys/types.h>
7123 #include <netdb.h>
7124
7125 _ACEOF
7126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7127   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7128
7129         tmp_gethostbyname_r="proto_needs_reentrant"
7130         tmp_need_reentrant="yes"
7131
7132 fi
7133 rm -f conftest*
7134
7135
7136 fi
7137 rm -f conftest*
7138
7139   fi
7140
7141   fi
7142   if test "$tmp_need_reentrant" = "no"; then
7143
7144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h.  */
7146
7147
7148 #define getprotobyname_r innocuous_getprotobyname_r
7149 #ifdef __STDC__
7150 # include <limits.h>
7151 #else
7152 # include <assert.h>
7153 #endif
7154 #undef getprotobyname_r
7155 #ifdef __cplusplus
7156 extern "C"
7157 #endif
7158 char getprotobyname_r ();
7159 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7160 choke me
7161 #endif
7162
7163 int main (void)
7164 {
7165 return getprotobyname_r ();
7166  ;
7167  return 0;
7168 }
7169
7170 _ACEOF
7171 if ac_fn_c_try_link "$LINENO"; then :
7172
7173     tmp_getprotobyname_r="yes"
7174
7175 else
7176
7177     tmp_getprotobyname_r="no"
7178
7179 fi
7180 rm -f core conftest.err conftest.$ac_objext \
7181     conftest$ac_exeext conftest.$ac_ext
7182   if test "$tmp_getprotobyname_r" = "yes"; then
7183     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h.  */
7185
7186 #include <sys/types.h>
7187 #include <netdb.h>
7188
7189 _ACEOF
7190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7191   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7192
7193       tmp_getprotobyname_r="proto_declared"
7194
7195 else
7196
7197       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h.  */
7199
7200 #define _REENTRANT
7201 #include <sys/types.h>
7202 #include <netdb.h>
7203
7204 _ACEOF
7205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7206   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7207
7208         tmp_getprotobyname_r="proto_needs_reentrant"
7209         tmp_need_reentrant="yes"
7210
7211 fi
7212 rm -f conftest*
7213
7214
7215 fi
7216 rm -f conftest*
7217
7218   fi
7219
7220   fi
7221   if test "$tmp_need_reentrant" = "no"; then
7222
7223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h.  */
7225
7226
7227 #define getservbyport_r innocuous_getservbyport_r
7228 #ifdef __STDC__
7229 # include <limits.h>
7230 #else
7231 # include <assert.h>
7232 #endif
7233 #undef getservbyport_r
7234 #ifdef __cplusplus
7235 extern "C"
7236 #endif
7237 char getservbyport_r ();
7238 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7239 choke me
7240 #endif
7241
7242 int main (void)
7243 {
7244 return getservbyport_r ();
7245  ;
7246  return 0;
7247 }
7248
7249 _ACEOF
7250 if ac_fn_c_try_link "$LINENO"; then :
7251
7252     tmp_getservbyport_r="yes"
7253
7254 else
7255
7256     tmp_getservbyport_r="no"
7257
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext \
7260     conftest$ac_exeext conftest.$ac_ext
7261   if test "$tmp_getservbyport_r" = "yes"; then
7262     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h.  */
7264
7265 #include <sys/types.h>
7266 #include <netdb.h>
7267
7268 _ACEOF
7269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7270   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7271
7272       tmp_getservbyport_r="proto_declared"
7273
7274 else
7275
7276       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h.  */
7278
7279 #define _REENTRANT
7280 #include <sys/types.h>
7281 #include <netdb.h>
7282
7283 _ACEOF
7284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7285   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7286
7287         tmp_getservbyport_r="proto_needs_reentrant"
7288         tmp_need_reentrant="yes"
7289
7290 fi
7291 rm -f conftest*
7292
7293
7294 fi
7295 rm -f conftest*
7296
7297   fi
7298
7299   fi
7300
7301     fi
7302     if test "$tmp_need_reentrant" = "yes"; then
7303       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7304 $as_echo "yes" >&6; }
7305     else
7306       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308     fi
7309   fi
7310   #
7311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7312 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7313   if test "$tmp_reentrant_initially_defined" = "yes" ||
7314     test "$tmp_need_reentrant" = "yes"; then
7315
7316
7317 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7318
7319 cat >>confdefs.h <<_EOF
7320 #ifndef _REENTRANT
7321 #  define _REENTRANT
7322 #endif
7323 _EOF
7324
7325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7326 $as_echo "yes" >&6; }
7327   else
7328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7330   fi
7331   #
7332
7333
7334 # Check whether --enable-largefile was given.
7335 if test "${enable_largefile+set}" = set; then :
7336   enableval=$enable_largefile;
7337 fi
7338
7339 if test "$enable_largefile" != no; then
7340
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7342 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7343 if ${ac_cv_sys_largefile_CC+:} false; then :
7344   $as_echo_n "(cached) " >&6
7345 else
7346   ac_cv_sys_largefile_CC=no
7347      if test "$GCC" != yes; then
7348        ac_save_CC=$CC
7349        while :; do
7350          # IRIX 6.2 and later do not support large files by default,
7351          # so use the C compiler's -n32 option if that helps.
7352          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h.  */
7354 #include <sys/types.h>
7355  /* Check that off_t can represent 2**63 - 1 correctly.
7356     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7357     since some C++ compilers masquerading as C compilers
7358     incorrectly reject 9223372036854775807.  */
7359 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7360   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7361                        && LARGE_OFF_T % 2147483647 == 1)
7362                       ? 1 : -1];
7363 int main (void)
7364 {
7365
7366  ;
7367  return 0;
7368 }
7369 _ACEOF
7370          if ac_fn_c_try_compile "$LINENO"; then :
7371   break
7372 fi
7373 rm -f core conftest.err conftest.$ac_objext
7374          CC="$CC -n32"
7375          if ac_fn_c_try_compile "$LINENO"; then :
7376   ac_cv_sys_largefile_CC=' -n32'; break
7377 fi
7378 rm -f core conftest.err conftest.$ac_objext
7379          break
7380        done
7381        CC=$ac_save_CC
7382        rm -f conftest.$ac_ext
7383     fi
7384 fi
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7386 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7387   if test "$ac_cv_sys_largefile_CC" != no; then
7388     CC=$CC$ac_cv_sys_largefile_CC
7389   fi
7390
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7392 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7393 if ${ac_cv_sys_file_offset_bits+:} false; then :
7394   $as_echo_n "(cached) " >&6
7395 else
7396   while :; do
7397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h.  */
7399 #include <sys/types.h>
7400  /* Check that off_t can represent 2**63 - 1 correctly.
7401     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7402     since some C++ compilers masquerading as C compilers
7403     incorrectly reject 9223372036854775807.  */
7404 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7405   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7406                        && LARGE_OFF_T % 2147483647 == 1)
7407                       ? 1 : -1];
7408 int main (void)
7409 {
7410
7411  ;
7412  return 0;
7413 }
7414 _ACEOF
7415 if ac_fn_c_try_compile "$LINENO"; then :
7416   ac_cv_sys_file_offset_bits=no; break
7417 fi
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h.  */
7421 #define _FILE_OFFSET_BITS 64
7422 #include <sys/types.h>
7423  /* Check that off_t can represent 2**63 - 1 correctly.
7424     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7425     since some C++ compilers masquerading as C compilers
7426     incorrectly reject 9223372036854775807.  */
7427 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7428   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7429                        && LARGE_OFF_T % 2147483647 == 1)
7430                       ? 1 : -1];
7431 int main (void)
7432 {
7433
7434  ;
7435  return 0;
7436 }
7437 _ACEOF
7438 if ac_fn_c_try_compile "$LINENO"; then :
7439   ac_cv_sys_file_offset_bits=64; break
7440 fi
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442   ac_cv_sys_file_offset_bits=unknown
7443   break
7444 done
7445 fi
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7447 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7448 case $ac_cv_sys_file_offset_bits in #(
7449   no | unknown) ;;
7450   *)
7451 cat >>confdefs.h <<_ACEOF
7452 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7453 _ACEOF
7454 ;;
7455 esac
7456 rm -rf conftest*
7457   if test $ac_cv_sys_file_offset_bits = unknown; then
7458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7459 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7460 if ${ac_cv_sys_large_files+:} false; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   while :; do
7464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h.  */
7466 #include <sys/types.h>
7467  /* Check that off_t can represent 2**63 - 1 correctly.
7468     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7469     since some C++ compilers masquerading as C compilers
7470     incorrectly reject 9223372036854775807.  */
7471 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7472   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7473                        && LARGE_OFF_T % 2147483647 == 1)
7474                       ? 1 : -1];
7475 int main (void)
7476 {
7477
7478  ;
7479  return 0;
7480 }
7481 _ACEOF
7482 if ac_fn_c_try_compile "$LINENO"; then :
7483   ac_cv_sys_large_files=no; break
7484 fi
7485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h.  */
7488 #define _LARGE_FILES 1
7489 #include <sys/types.h>
7490  /* Check that off_t can represent 2**63 - 1 correctly.
7491     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7492     since some C++ compilers masquerading as C compilers
7493     incorrectly reject 9223372036854775807.  */
7494 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7495   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7496                        && LARGE_OFF_T % 2147483647 == 1)
7497                       ? 1 : -1];
7498 int main (void)
7499 {
7500
7501  ;
7502  return 0;
7503 }
7504 _ACEOF
7505 if ac_fn_c_try_compile "$LINENO"; then :
7506   ac_cv_sys_large_files=1; break
7507 fi
7508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509   ac_cv_sys_large_files=unknown
7510   break
7511 done
7512 fi
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7514 $as_echo "$ac_cv_sys_large_files" >&6; }
7515 case $ac_cv_sys_large_files in #(
7516   no | unknown) ;;
7517   *)
7518 cat >>confdefs.h <<_ACEOF
7519 #define _LARGE_FILES $ac_cv_sys_large_files
7520 _ACEOF
7521 ;;
7522 esac
7523 rm -rf conftest*
7524   fi
7525
7526
7527 fi
7528
7529
7530 case `pwd` in
7531   *\ * | *\     *)
7532     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7533 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7534 esac
7535
7536
7537
7538 macro_version='2.4.6'
7539 macro_revision='2.4.6'
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553 ltmain=$ac_aux_dir/ltmain.sh
7554
7555 # Backslashify metacharacters that are still active within
7556 # double-quoted strings.
7557 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7558
7559 # Same as above, but do not quote variable references.
7560 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7561
7562 # Sed substitution to delay expansion of an escaped shell variable in a
7563 # double_quote_subst'ed string.
7564 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7565
7566 # Sed substitution to delay expansion of an escaped single quote.
7567 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7568
7569 # Sed substitution to avoid accidental globbing in evaled expressions
7570 no_glob_subst='s/\*/\\\*/g'
7571
7572 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7573 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7574 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7575
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7577 $as_echo_n "checking how to print strings... " >&6; }
7578 # Test print first, because it will be a builtin if present.
7579 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7580    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7581   ECHO='print -r --'
7582 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7583   ECHO='printf %s\n'
7584 else
7585   # Use this function as a fallback that always works.
7586   func_fallback_echo ()
7587   {
7588     eval 'cat <<_LTECHO_EOF
7589 $1
7590 _LTECHO_EOF'
7591   }
7592   ECHO='func_fallback_echo'
7593 fi
7594
7595 # func_echo_all arg...
7596 # Invoke $ECHO with all args, space-separated.
7597 func_echo_all ()
7598 {
7599     $ECHO ""
7600 }
7601
7602 case $ECHO in
7603   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7604 $as_echo "printf" >&6; } ;;
7605   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7606 $as_echo "print -r" >&6; } ;;
7607   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7608 $as_echo "cat" >&6; } ;;
7609 esac
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7625 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7626 if ${ac_cv_path_SED+:} false; then :
7627   $as_echo_n "(cached) " >&6
7628 else
7629             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7630      for ac_i in 1 2 3 4 5 6 7; do
7631        ac_script="$ac_script$as_nl$ac_script"
7632      done
7633      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7634      { ac_script=; unset ac_script;}
7635      if test -z "$SED"; then
7636   ac_path_SED_found=false
7637   # Loop through the user's path and test for each of PROGNAME-LIST
7638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641   IFS=$as_save_IFS
7642   test -z "$as_dir" && as_dir=.
7643     for ac_prog in sed gsed; do
7644     for ac_exec_ext in '' $ac_executable_extensions; do
7645       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7646       as_fn_executable_p "$ac_path_SED" || continue
7647 # Check for GNU ac_path_SED and select it if it is found.
7648   # Check for GNU $ac_path_SED
7649 case `"$ac_path_SED" --version 2>&1` in
7650 *GNU*)
7651   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7652 *)
7653   ac_count=0
7654   $as_echo_n 0123456789 >"conftest.in"
7655   while :
7656   do
7657     cat "conftest.in" "conftest.in" >"conftest.tmp"
7658     mv "conftest.tmp" "conftest.in"
7659     cp "conftest.in" "conftest.nl"
7660     $as_echo '' >> "conftest.nl"
7661     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7662     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7663     as_fn_arith $ac_count + 1 && ac_count=$as_val
7664     if test $ac_count -gt ${ac_path_SED_max-0}; then
7665       # Best one so far, save it but keep looking for a better one
7666       ac_cv_path_SED="$ac_path_SED"
7667       ac_path_SED_max=$ac_count
7668     fi
7669     # 10*(2^10) chars as input seems more than enough
7670     test $ac_count -gt 10 && break
7671   done
7672   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7673 esac
7674
7675       $ac_path_SED_found && break 3
7676     done
7677   done
7678   done
7679 IFS=$as_save_IFS
7680   if test -z "$ac_cv_path_SED"; then
7681     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7682   fi
7683 else
7684   ac_cv_path_SED=$SED
7685 fi
7686
7687 fi
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7689 $as_echo "$ac_cv_path_SED" >&6; }
7690  SED="$ac_cv_path_SED"
7691   rm -f conftest.sed
7692
7693 test -z "$SED" && SED=sed
7694 Xsed="$SED -e 1s/^X//"
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7707 $as_echo_n "checking for fgrep... " >&6; }
7708 if ${ac_cv_path_FGREP+:} false; then :
7709   $as_echo_n "(cached) " >&6
7710 else
7711   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7712    then ac_cv_path_FGREP="$GREP -F"
7713    else
7714      if test -z "$FGREP"; then
7715   ac_path_FGREP_found=false
7716   # Loop through the user's path and test for each of PROGNAME-LIST
7717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7719 do
7720   IFS=$as_save_IFS
7721   test -z "$as_dir" && as_dir=.
7722     for ac_prog in fgrep; do
7723     for ac_exec_ext in '' $ac_executable_extensions; do
7724       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7725       as_fn_executable_p "$ac_path_FGREP" || continue
7726 # Check for GNU ac_path_FGREP and select it if it is found.
7727   # Check for GNU $ac_path_FGREP
7728 case `"$ac_path_FGREP" --version 2>&1` in
7729 *GNU*)
7730   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7731 *)
7732   ac_count=0
7733   $as_echo_n 0123456789 >"conftest.in"
7734   while :
7735   do
7736     cat "conftest.in" "conftest.in" >"conftest.tmp"
7737     mv "conftest.tmp" "conftest.in"
7738     cp "conftest.in" "conftest.nl"
7739     $as_echo 'FGREP' >> "conftest.nl"
7740     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7741     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7742     as_fn_arith $ac_count + 1 && ac_count=$as_val
7743     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7744       # Best one so far, save it but keep looking for a better one
7745       ac_cv_path_FGREP="$ac_path_FGREP"
7746       ac_path_FGREP_max=$ac_count
7747     fi
7748     # 10*(2^10) chars as input seems more than enough
7749     test $ac_count -gt 10 && break
7750   done
7751   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7752 esac
7753
7754       $ac_path_FGREP_found && break 3
7755     done
7756   done
7757   done
7758 IFS=$as_save_IFS
7759   if test -z "$ac_cv_path_FGREP"; then
7760     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7761   fi
7762 else
7763   ac_cv_path_FGREP=$FGREP
7764 fi
7765
7766    fi
7767 fi
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7769 $as_echo "$ac_cv_path_FGREP" >&6; }
7770  FGREP="$ac_cv_path_FGREP"
7771
7772
7773 test -z "$GREP" && GREP=grep
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793 # Check whether --with-gnu-ld was given.
7794 if test "${with_gnu_ld+set}" = set; then :
7795   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7796 else
7797   with_gnu_ld=no
7798 fi
7799
7800 ac_prog=ld
7801 if test yes = "$GCC"; then
7802   # Check if gcc -print-prog-name=ld gives a path.
7803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7804 $as_echo_n "checking for ld used by $CC... " >&6; }
7805   case $host in
7806   *-*-mingw*)
7807     # gcc leaves a trailing carriage return, which upsets mingw
7808     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7809   *)
7810     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7811   esac
7812   case $ac_prog in
7813     # Accept absolute paths.
7814     [\\/]* | ?:[\\/]*)
7815       re_direlt='/[^/][^/]*/\.\./'
7816       # Canonicalize the pathname of ld
7817       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7818       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7819         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7820       done
7821       test -z "$LD" && LD=$ac_prog
7822       ;;
7823   "")
7824     # If it fails, then pretend we aren't using GCC.
7825     ac_prog=ld
7826     ;;
7827   *)
7828     # If it is relative, then search for the first ld in PATH.
7829     with_gnu_ld=unknown
7830     ;;
7831   esac
7832 elif test yes = "$with_gnu_ld"; then
7833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7834 $as_echo_n "checking for GNU ld... " >&6; }
7835 else
7836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7837 $as_echo_n "checking for non-GNU ld... " >&6; }
7838 fi
7839 if ${lt_cv_path_LD+:} false; then :
7840   $as_echo_n "(cached) " >&6
7841 else
7842   if test -z "$LD"; then
7843   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7844   for ac_dir in $PATH; do
7845     IFS=$lt_save_ifs
7846     test -z "$ac_dir" && ac_dir=.
7847     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7848       lt_cv_path_LD=$ac_dir/$ac_prog
7849       # Check to see if the program is GNU ld.  I'd rather use --version,
7850       # but apparently some variants of GNU ld only accept -v.
7851       # Break only if it was the GNU/non-GNU ld that we prefer.
7852       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7853       *GNU* | *'with BFD'*)
7854         test no != "$with_gnu_ld" && break
7855         ;;
7856       *)
7857         test yes != "$with_gnu_ld" && break
7858         ;;
7859       esac
7860     fi
7861   done
7862   IFS=$lt_save_ifs
7863 else
7864   lt_cv_path_LD=$LD # Let the user override the test with a path.
7865 fi
7866 fi
7867
7868 LD=$lt_cv_path_LD
7869 if test -n "$LD"; then
7870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7871 $as_echo "$LD" >&6; }
7872 else
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7878 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7879 if ${lt_cv_prog_gnu_ld+:} false; then :
7880   $as_echo_n "(cached) " >&6
7881 else
7882   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7883 case `$LD -v 2>&1 </dev/null` in
7884 *GNU* | *'with BFD'*)
7885   lt_cv_prog_gnu_ld=yes
7886   ;;
7887 *)
7888   lt_cv_prog_gnu_ld=no
7889   ;;
7890 esac
7891 fi
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7893 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7894 with_gnu_ld=$lt_cv_prog_gnu_ld
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7905 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7906 if ${lt_cv_path_NM+:} false; then :
7907   $as_echo_n "(cached) " >&6
7908 else
7909   if test -n "$NM"; then
7910   # Let the user override the test.
7911   lt_cv_path_NM=$NM
7912 else
7913   lt_nm_to_check=${ac_tool_prefix}nm
7914   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7915     lt_nm_to_check="$lt_nm_to_check nm"
7916   fi
7917   for lt_tmp_nm in $lt_nm_to_check; do
7918     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7919     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7920       IFS=$lt_save_ifs
7921       test -z "$ac_dir" && ac_dir=.
7922       tmp_nm=$ac_dir/$lt_tmp_nm
7923       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7924         # Check to see if the nm accepts a BSD-compat flag.
7925         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7926         #   nm: unknown option "B" ignored
7927         # Tru64's nm complains that /dev/null is an invalid object file
7928         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7929         case $build_os in
7930         mingw*) lt_bad_file=conftest.nm/nofile ;;
7931         *) lt_bad_file=/dev/null ;;
7932         esac
7933         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7934         *$lt_bad_file* | *'Invalid file or object type'*)
7935           lt_cv_path_NM="$tmp_nm -B"
7936           break 2
7937           ;;
7938         *)
7939           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7940           */dev/null*)
7941             lt_cv_path_NM="$tmp_nm -p"
7942             break 2
7943             ;;
7944           *)
7945             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7946             continue # so that we can try to find one that supports BSD flags
7947             ;;
7948           esac
7949           ;;
7950         esac
7951       fi
7952     done
7953     IFS=$lt_save_ifs
7954   done
7955   : ${lt_cv_path_NM=no}
7956 fi
7957 fi
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7959 $as_echo "$lt_cv_path_NM" >&6; }
7960 if test no != "$lt_cv_path_NM"; then
7961   NM=$lt_cv_path_NM
7962 else
7963   # Didn't find any BSD compatible name lister, look for dumpbin.
7964   if test -n "$DUMPBIN"; then :
7965     # Let the user override the test.
7966   else
7967     if test -n "$ac_tool_prefix"; then
7968   for ac_prog in dumpbin "link -dump"
7969   do
7970     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if ${ac_cv_prog_DUMPBIN+:} false; then :
7975   $as_echo_n "(cached) " >&6
7976 else
7977   if test -n "$DUMPBIN"; then
7978   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983   IFS=$as_save_IFS
7984   test -z "$as_dir" && as_dir=.
7985     for ac_exec_ext in '' $ac_executable_extensions; do
7986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989     break 2
7990   fi
7991 done
7992   done
7993 IFS=$as_save_IFS
7994
7995 fi
7996 fi
7997 DUMPBIN=$ac_cv_prog_DUMPBIN
7998 if test -n "$DUMPBIN"; then
7999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8000 $as_echo "$DUMPBIN" >&6; }
8001 else
8002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8004 fi
8005
8006
8007     test -n "$DUMPBIN" && break
8008   done
8009 fi
8010 if test -z "$DUMPBIN"; then
8011   ac_ct_DUMPBIN=$DUMPBIN
8012   for ac_prog in dumpbin "link -dump"
8013 do
8014   # Extract the first word of "$ac_prog", so it can be a program name with args.
8015 set dummy $ac_prog; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8019   $as_echo_n "(cached) " >&6
8020 else
8021   if test -n "$ac_ct_DUMPBIN"; then
8022   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8026 do
8027   IFS=$as_save_IFS
8028   test -z "$as_dir" && as_dir=.
8029     for ac_exec_ext in '' $ac_executable_extensions; do
8030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033     break 2
8034   fi
8035 done
8036   done
8037 IFS=$as_save_IFS
8038
8039 fi
8040 fi
8041 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8042 if test -n "$ac_ct_DUMPBIN"; then
8043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8044 $as_echo "$ac_ct_DUMPBIN" >&6; }
8045 else
8046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8048 fi
8049
8050
8051   test -n "$ac_ct_DUMPBIN" && break
8052 done
8053
8054   if test "x$ac_ct_DUMPBIN" = x; then
8055     DUMPBIN=":"
8056   else
8057     case $cross_compiling:$ac_tool_warned in
8058 yes:)
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8061 ac_tool_warned=yes ;;
8062 esac
8063     DUMPBIN=$ac_ct_DUMPBIN
8064   fi
8065 fi
8066
8067     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8068     *COFF*)
8069       DUMPBIN="$DUMPBIN -symbols -headers"
8070       ;;
8071     *)
8072       DUMPBIN=:
8073       ;;
8074     esac
8075   fi
8076
8077   if test : != "$DUMPBIN"; then
8078     NM=$DUMPBIN
8079   fi
8080 fi
8081 test -z "$NM" && NM=nm
8082
8083
8084
8085
8086
8087
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8089 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8090 if ${lt_cv_nm_interface+:} false; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093   lt_cv_nm_interface="BSD nm"
8094   echo "int some_variable = 0;" > conftest.$ac_ext
8095   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8096   (eval "$ac_compile" 2>conftest.err)
8097   cat conftest.err >&5
8098   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8099   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8100   cat conftest.err >&5
8101   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8102   cat conftest.out >&5
8103   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8104     lt_cv_nm_interface="MS dumpbin"
8105   fi
8106   rm -f conftest*
8107 fi
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8109 $as_echo "$lt_cv_nm_interface" >&6; }
8110
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8112 $as_echo_n "checking whether ln -s works... " >&6; }
8113 LN_S=$as_ln_s
8114 if test "$LN_S" = "ln -s"; then
8115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8116 $as_echo "yes" >&6; }
8117 else
8118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8119 $as_echo "no, using $LN_S" >&6; }
8120 fi
8121
8122 # find the maximum length of command line arguments
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8124 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8125 if ${lt_cv_sys_max_cmd_len+:} false; then :
8126   $as_echo_n "(cached) " >&6
8127 else
8128     i=0
8129   teststring=ABCD
8130
8131   case $build_os in
8132   msdosdjgpp*)
8133     # On DJGPP, this test can blow up pretty badly due to problems in libc
8134     # (any single argument exceeding 2000 bytes causes a buffer overrun
8135     # during glob expansion).  Even if it were fixed, the result of this
8136     # check would be larger than it should be.
8137     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8138     ;;
8139
8140   gnu*)
8141     # Under GNU Hurd, this test is not required because there is
8142     # no limit to the length of command line arguments.
8143     # Libtool will interpret -1 as no limit whatsoever
8144     lt_cv_sys_max_cmd_len=-1;
8145     ;;
8146
8147   cygwin* | mingw* | cegcc*)
8148     # On Win9x/ME, this test blows up -- it succeeds, but takes
8149     # about 5 minutes as the teststring grows exponentially.
8150     # Worse, since 9x/ME are not pre-emptively multitasking,
8151     # you end up with a "frozen" computer, even though with patience
8152     # the test eventually succeeds (with a max line length of 256k).
8153     # Instead, let's just punt: use the minimum linelength reported by
8154     # all of the supported platforms: 8192 (on NT/2K/XP).
8155     lt_cv_sys_max_cmd_len=8192;
8156     ;;
8157
8158   mint*)
8159     # On MiNT this can take a long time and run out of memory.
8160     lt_cv_sys_max_cmd_len=8192;
8161     ;;
8162
8163   amigaos*)
8164     # On AmigaOS with pdksh, this test takes hours, literally.
8165     # So we just punt and use a minimum line length of 8192.
8166     lt_cv_sys_max_cmd_len=8192;
8167     ;;
8168
8169   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8170     # This has been around since 386BSD, at least.  Likely further.
8171     if test -x /sbin/sysctl; then
8172       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8173     elif test -x /usr/sbin/sysctl; then
8174       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8175     else
8176       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8177     fi
8178     # And add a safety zone
8179     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8180     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8181     ;;
8182
8183   interix*)
8184     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8185     lt_cv_sys_max_cmd_len=196608
8186     ;;
8187
8188   os2*)
8189     # The test takes a long time on OS/2.
8190     lt_cv_sys_max_cmd_len=8192
8191     ;;
8192
8193   osf*)
8194     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8195     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8196     # nice to cause kernel panics so lets avoid the loop below.
8197     # First set a reasonable default.
8198     lt_cv_sys_max_cmd_len=16384
8199     #
8200     if test -x /sbin/sysconfig; then
8201       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8202         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8203       esac
8204     fi
8205     ;;
8206   sco3.2v5*)
8207     lt_cv_sys_max_cmd_len=102400
8208     ;;
8209   sysv5* | sco5v6* | sysv4.2uw2*)
8210     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8211     if test -n "$kargmax"; then
8212       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8213     else
8214       lt_cv_sys_max_cmd_len=32768
8215     fi
8216     ;;
8217   *)
8218     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8219     if test -n "$lt_cv_sys_max_cmd_len" && \
8220        test undefined != "$lt_cv_sys_max_cmd_len"; then
8221       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8222       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8223     else
8224       # Make teststring a little bigger before we do anything with it.
8225       # a 1K string should be a reasonable start.
8226       for i in 1 2 3 4 5 6 7 8; do
8227         teststring=$teststring$teststring
8228       done
8229       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8230       # If test is not a shell built-in, we'll probably end up computing a
8231       # maximum length that is only half of the actual maximum length, but
8232       # we can't tell.
8233       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8234                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8235               test 17 != "$i" # 1/2 MB should be enough
8236       do
8237         i=`expr $i + 1`
8238         teststring=$teststring$teststring
8239       done
8240       # Only check the string length outside the loop.
8241       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8242       teststring=
8243       # Add a significant safety factor because C++ compilers can tack on
8244       # massive amounts of additional arguments before passing them to the
8245       # linker.  It appears as though 1/2 is a usable value.
8246       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8247     fi
8248     ;;
8249   esac
8250
8251 fi
8252
8253 if test -n "$lt_cv_sys_max_cmd_len"; then
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8255 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8256 else
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8258 $as_echo "none" >&6; }
8259 fi
8260 max_cmd_len=$lt_cv_sys_max_cmd_len
8261
8262
8263
8264
8265
8266
8267 : ${CP="cp -f"}
8268 : ${MV="mv -f"}
8269 : ${RM="rm -f"}
8270
8271 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8272   lt_unset=unset
8273 else
8274   lt_unset=false
8275 fi
8276
8277
8278
8279
8280
8281 # test EBCDIC or ASCII
8282 case `echo X|tr X '\101'` in
8283  A) # ASCII based system
8284     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8285   lt_SP2NL='tr \040 \012'
8286   lt_NL2SP='tr \015\012 \040\040'
8287   ;;
8288  *) # EBCDIC based system
8289   lt_SP2NL='tr \100 \n'
8290   lt_NL2SP='tr \r\n \100\100'
8291   ;;
8292 esac
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8303 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8304 if ${lt_cv_to_host_file_cmd+:} false; then :
8305   $as_echo_n "(cached) " >&6
8306 else
8307   case $host in
8308   *-*-mingw* )
8309     case $build in
8310       *-*-mingw* ) # actually msys
8311         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8312         ;;
8313       *-*-cygwin* )
8314         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8315         ;;
8316       * ) # otherwise, assume *nix
8317         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8318         ;;
8319     esac
8320     ;;
8321   *-*-cygwin* )
8322     case $build in
8323       *-*-mingw* ) # actually msys
8324         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8325         ;;
8326       *-*-cygwin* )
8327         lt_cv_to_host_file_cmd=func_convert_file_noop
8328         ;;
8329       * ) # otherwise, assume *nix
8330         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8331         ;;
8332     esac
8333     ;;
8334   * ) # unhandled hosts (and "normal" native builds)
8335     lt_cv_to_host_file_cmd=func_convert_file_noop
8336     ;;
8337 esac
8338
8339 fi
8340
8341 to_host_file_cmd=$lt_cv_to_host_file_cmd
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8343 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8344
8345
8346
8347
8348
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8350 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8351 if ${lt_cv_to_tool_file_cmd+:} false; then :
8352   $as_echo_n "(cached) " >&6
8353 else
8354   #assume ordinary cross tools, or native build.
8355 lt_cv_to_tool_file_cmd=func_convert_file_noop
8356 case $host in
8357   *-*-mingw* )
8358     case $build in
8359       *-*-mingw* ) # actually msys
8360         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8361         ;;
8362     esac
8363     ;;
8364 esac
8365
8366 fi
8367
8368 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8370 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8371
8372
8373
8374
8375
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8377 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8378 if ${lt_cv_ld_reload_flag+:} false; then :
8379   $as_echo_n "(cached) " >&6
8380 else
8381   lt_cv_ld_reload_flag='-r'
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8384 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8385 reload_flag=$lt_cv_ld_reload_flag
8386 case $reload_flag in
8387 "" | " "*) ;;
8388 *) reload_flag=" $reload_flag" ;;
8389 esac
8390 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8391 case $host_os in
8392   cygwin* | mingw* | pw32* | cegcc*)
8393     if test yes != "$GCC"; then
8394       reload_cmds=false
8395     fi
8396     ;;
8397   darwin*)
8398     if test yes = "$GCC"; then
8399       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8400     else
8401       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8402     fi
8403     ;;
8404 esac
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414 if test -n "$ac_tool_prefix"; then
8415   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8416 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418 $as_echo_n "checking for $ac_word... " >&6; }
8419 if ${ac_cv_prog_OBJDUMP+:} false; then :
8420   $as_echo_n "(cached) " >&6
8421 else
8422   if test -n "$OBJDUMP"; then
8423   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8424 else
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $PATH
8427 do
8428   IFS=$as_save_IFS
8429   test -z "$as_dir" && as_dir=.
8430     for ac_exec_ext in '' $ac_executable_extensions; do
8431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8432     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434     break 2
8435   fi
8436 done
8437   done
8438 IFS=$as_save_IFS
8439
8440 fi
8441 fi
8442 OBJDUMP=$ac_cv_prog_OBJDUMP
8443 if test -n "$OBJDUMP"; then
8444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8445 $as_echo "$OBJDUMP" >&6; }
8446 else
8447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448 $as_echo "no" >&6; }
8449 fi
8450
8451
8452 fi
8453 if test -z "$ac_cv_prog_OBJDUMP"; then
8454   ac_ct_OBJDUMP=$OBJDUMP
8455   # Extract the first word of "objdump", so it can be a program name with args.
8456 set dummy objdump; ac_word=$2
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458 $as_echo_n "checking for $ac_word... " >&6; }
8459 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8460   $as_echo_n "(cached) " >&6
8461 else
8462   if test -n "$ac_ct_OBJDUMP"; then
8463   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8464 else
8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466 for as_dir in $PATH
8467 do
8468   IFS=$as_save_IFS
8469   test -z "$as_dir" && as_dir=.
8470     for ac_exec_ext in '' $ac_executable_extensions; do
8471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8472     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474     break 2
8475   fi
8476 done
8477   done
8478 IFS=$as_save_IFS
8479
8480 fi
8481 fi
8482 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8483 if test -n "$ac_ct_OBJDUMP"; then
8484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8485 $as_echo "$ac_ct_OBJDUMP" >&6; }
8486 else
8487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8489 fi
8490
8491   if test "x$ac_ct_OBJDUMP" = x; then
8492     OBJDUMP="false"
8493   else
8494     case $cross_compiling:$ac_tool_warned in
8495 yes:)
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8498 ac_tool_warned=yes ;;
8499 esac
8500     OBJDUMP=$ac_ct_OBJDUMP
8501   fi
8502 else
8503   OBJDUMP="$ac_cv_prog_OBJDUMP"
8504 fi
8505
8506 test -z "$OBJDUMP" && OBJDUMP=objdump
8507
8508
8509
8510
8511
8512
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8514 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8515 if ${lt_cv_deplibs_check_method+:} false; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   lt_cv_file_magic_cmd='$MAGIC_CMD'
8519 lt_cv_file_magic_test_file=
8520 lt_cv_deplibs_check_method='unknown'
8521 # Need to set the preceding variable on all platforms that support
8522 # interlibrary dependencies.
8523 # 'none' -- dependencies not supported.
8524 # 'unknown' -- same as none, but documents that we really don't know.
8525 # 'pass_all' -- all dependencies passed with no checks.
8526 # 'test_compile' -- check by making test program.
8527 # 'file_magic [[regex]]' -- check by looking for files in library path
8528 # that responds to the $file_magic_cmd with a given extended regex.
8529 # If you have 'file' or equivalent on your system and you're not sure
8530 # whether 'pass_all' will *always* work, you probably want this one.
8531
8532 case $host_os in
8533 aix[4-9]*)
8534   lt_cv_deplibs_check_method=pass_all
8535   ;;
8536
8537 beos*)
8538   lt_cv_deplibs_check_method=pass_all
8539   ;;
8540
8541 bsdi[45]*)
8542   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8543   lt_cv_file_magic_cmd='/usr/bin/file -L'
8544   lt_cv_file_magic_test_file=/shlib/libc.so
8545   ;;
8546
8547 cygwin*)
8548   # func_win32_libid is a shell function defined in ltmain.sh
8549   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8550   lt_cv_file_magic_cmd='func_win32_libid'
8551   ;;
8552
8553 mingw* | pw32*)
8554   # Base MSYS/MinGW do not provide the 'file' command needed by
8555   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8556   # unless we find 'file', for example because we are cross-compiling.
8557   if ( file / ) >/dev/null 2>&1; then
8558     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8559     lt_cv_file_magic_cmd='func_win32_libid'
8560   else
8561     # Keep this pattern in sync with the one in func_win32_libid.
8562     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8563     lt_cv_file_magic_cmd='$OBJDUMP -f'
8564   fi
8565   ;;
8566
8567 cegcc*)
8568   # use the weaker test based on 'objdump'. See mingw*.
8569   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8570   lt_cv_file_magic_cmd='$OBJDUMP -f'
8571   ;;
8572
8573 darwin* | rhapsody*)
8574   lt_cv_deplibs_check_method=pass_all
8575   ;;
8576
8577 freebsd* | dragonfly*)
8578   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8579     case $host_cpu in
8580     i*86 )
8581       # Not sure whether the presence of OpenBSD here was a mistake.
8582       # Let's accept both of them until this is cleared up.
8583       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8584       lt_cv_file_magic_cmd=/usr/bin/file
8585       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8586       ;;
8587     esac
8588   else
8589     lt_cv_deplibs_check_method=pass_all
8590   fi
8591   ;;
8592
8593 haiku*)
8594   lt_cv_deplibs_check_method=pass_all
8595   ;;
8596
8597 hpux10.20* | hpux11*)
8598   lt_cv_file_magic_cmd=/usr/bin/file
8599   case $host_cpu in
8600   ia64*)
8601     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8602     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8603     ;;
8604   hppa*64*)
8605     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]'
8606     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8607     ;;
8608   *)
8609     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8610     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8611     ;;
8612   esac
8613   ;;
8614
8615 interix[3-9]*)
8616   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8617   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8618   ;;
8619
8620 irix5* | irix6* | nonstopux*)
8621   case $LD in
8622   *-32|*"-32 ") libmagic=32-bit;;
8623   *-n32|*"-n32 ") libmagic=N32;;
8624   *-64|*"-64 ") libmagic=64-bit;;
8625   *) libmagic=never-match;;
8626   esac
8627   lt_cv_deplibs_check_method=pass_all
8628   ;;
8629
8630 # This must be glibc/ELF.
8631 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8632   lt_cv_deplibs_check_method=pass_all
8633   ;;
8634
8635 netbsd* | netbsdelf*-gnu)
8636   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8637     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8638   else
8639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8640   fi
8641   ;;
8642
8643 newos6*)
8644   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8645   lt_cv_file_magic_cmd=/usr/bin/file
8646   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8647   ;;
8648
8649 *nto* | *qnx*)
8650   lt_cv_deplibs_check_method=pass_all
8651   ;;
8652
8653 openbsd* | bitrig*)
8654   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8655     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8656   else
8657     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8658   fi
8659   ;;
8660
8661 osf3* | osf4* | osf5*)
8662   lt_cv_deplibs_check_method=pass_all
8663   ;;
8664
8665 rdos*)
8666   lt_cv_deplibs_check_method=pass_all
8667   ;;
8668
8669 solaris*)
8670   lt_cv_deplibs_check_method=pass_all
8671   ;;
8672
8673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8674   lt_cv_deplibs_check_method=pass_all
8675   ;;
8676
8677 sysv4 | sysv4.3*)
8678   case $host_vendor in
8679   motorola)
8680     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]'
8681     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8682     ;;
8683   ncr)
8684     lt_cv_deplibs_check_method=pass_all
8685     ;;
8686   sequent)
8687     lt_cv_file_magic_cmd='/bin/file'
8688     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8689     ;;
8690   sni)
8691     lt_cv_file_magic_cmd='/bin/file'
8692     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8693     lt_cv_file_magic_test_file=/lib/libc.so
8694     ;;
8695   siemens)
8696     lt_cv_deplibs_check_method=pass_all
8697     ;;
8698   pc)
8699     lt_cv_deplibs_check_method=pass_all
8700     ;;
8701   esac
8702   ;;
8703
8704 tpf*)
8705   lt_cv_deplibs_check_method=pass_all
8706   ;;
8707 os2*)
8708   lt_cv_deplibs_check_method=pass_all
8709   ;;
8710 esac
8711
8712 fi
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8714 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8715
8716 file_magic_glob=
8717 want_nocaseglob=no
8718 if test "$build" = "$host"; then
8719   case $host_os in
8720   mingw* | pw32*)
8721     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8722       want_nocaseglob=yes
8723     else
8724       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8725     fi
8726     ;;
8727   esac
8728 fi
8729
8730 file_magic_cmd=$lt_cv_file_magic_cmd
8731 deplibs_check_method=$lt_cv_deplibs_check_method
8732 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755 if test -n "$ac_tool_prefix"; then
8756   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8757 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if ${ac_cv_prog_DLLTOOL+:} false; then :
8761   $as_echo_n "(cached) " >&6
8762 else
8763   if test -n "$DLLTOOL"; then
8764   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8765 else
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8767 for as_dir in $PATH
8768 do
8769   IFS=$as_save_IFS
8770   test -z "$as_dir" && as_dir=.
8771     for ac_exec_ext in '' $ac_executable_extensions; do
8772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8773     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775     break 2
8776   fi
8777 done
8778   done
8779 IFS=$as_save_IFS
8780
8781 fi
8782 fi
8783 DLLTOOL=$ac_cv_prog_DLLTOOL
8784 if test -n "$DLLTOOL"; then
8785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8786 $as_echo "$DLLTOOL" >&6; }
8787 else
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8790 fi
8791
8792
8793 fi
8794 if test -z "$ac_cv_prog_DLLTOOL"; then
8795   ac_ct_DLLTOOL=$DLLTOOL
8796   # Extract the first word of "dlltool", so it can be a program name with args.
8797 set dummy dlltool; ac_word=$2
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799 $as_echo_n "checking for $ac_word... " >&6; }
8800 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8801   $as_echo_n "(cached) " >&6
8802 else
8803   if test -n "$ac_ct_DLLTOOL"; then
8804   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8805 else
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807 for as_dir in $PATH
8808 do
8809   IFS=$as_save_IFS
8810   test -z "$as_dir" && as_dir=.
8811     for ac_exec_ext in '' $ac_executable_extensions; do
8812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815     break 2
8816   fi
8817 done
8818   done
8819 IFS=$as_save_IFS
8820
8821 fi
8822 fi
8823 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8824 if test -n "$ac_ct_DLLTOOL"; then
8825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8826 $as_echo "$ac_ct_DLLTOOL" >&6; }
8827 else
8828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829 $as_echo "no" >&6; }
8830 fi
8831
8832   if test "x$ac_ct_DLLTOOL" = x; then
8833     DLLTOOL="false"
8834   else
8835     case $cross_compiling:$ac_tool_warned in
8836 yes:)
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8839 ac_tool_warned=yes ;;
8840 esac
8841     DLLTOOL=$ac_ct_DLLTOOL
8842   fi
8843 else
8844   DLLTOOL="$ac_cv_prog_DLLTOOL"
8845 fi
8846
8847 test -z "$DLLTOOL" && DLLTOOL=dlltool
8848
8849
8850
8851
8852
8853
8854
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8856 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8857 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8858   $as_echo_n "(cached) " >&6
8859 else
8860   lt_cv_sharedlib_from_linklib_cmd='unknown'
8861
8862 case $host_os in
8863 cygwin* | mingw* | pw32* | cegcc*)
8864   # two different shell functions defined in ltmain.sh;
8865   # decide which one to use based on capabilities of $DLLTOOL
8866   case `$DLLTOOL --help 2>&1` in
8867   *--identify-strict*)
8868     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8869     ;;
8870   *)
8871     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8872     ;;
8873   esac
8874   ;;
8875 *)
8876   # fallback: assume linklib IS sharedlib
8877   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8878   ;;
8879 esac
8880
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8883 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8884 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8885 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8886
8887
8888
8889
8890
8891
8892
8893 if test -n "$ac_tool_prefix"; then
8894   for ac_prog in ar
8895   do
8896     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if ${ac_cv_prog_AR+:} false; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903   if test -n "$AR"; then
8904   ac_cv_prog_AR="$AR" # Let the user override the test.
8905 else
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8908 do
8909   IFS=$as_save_IFS
8910   test -z "$as_dir" && as_dir=.
8911     for ac_exec_ext in '' $ac_executable_extensions; do
8912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8915     break 2
8916   fi
8917 done
8918   done
8919 IFS=$as_save_IFS
8920
8921 fi
8922 fi
8923 AR=$ac_cv_prog_AR
8924 if test -n "$AR"; then
8925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8926 $as_echo "$AR" >&6; }
8927 else
8928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8930 fi
8931
8932
8933     test -n "$AR" && break
8934   done
8935 fi
8936 if test -z "$AR"; then
8937   ac_ct_AR=$AR
8938   for ac_prog in ar
8939 do
8940   # Extract the first word of "$ac_prog", so it can be a program name with args.
8941 set dummy $ac_prog; ac_word=$2
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943 $as_echo_n "checking for $ac_word... " >&6; }
8944 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   if test -n "$ac_ct_AR"; then
8948   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8949 else
8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951 for as_dir in $PATH
8952 do
8953   IFS=$as_save_IFS
8954   test -z "$as_dir" && as_dir=.
8955     for ac_exec_ext in '' $ac_executable_extensions; do
8956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8957     ac_cv_prog_ac_ct_AR="$ac_prog"
8958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959     break 2
8960   fi
8961 done
8962   done
8963 IFS=$as_save_IFS
8964
8965 fi
8966 fi
8967 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8968 if test -n "$ac_ct_AR"; then
8969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8970 $as_echo "$ac_ct_AR" >&6; }
8971 else
8972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8974 fi
8975
8976
8977   test -n "$ac_ct_AR" && break
8978 done
8979
8980   if test "x$ac_ct_AR" = x; then
8981     AR="false"
8982   else
8983     case $cross_compiling:$ac_tool_warned in
8984 yes:)
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8987 ac_tool_warned=yes ;;
8988 esac
8989     AR=$ac_ct_AR
8990   fi
8991 fi
8992
8993 : ${AR=ar}
8994 : ${AR_FLAGS=cru}
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9007 $as_echo_n "checking for archiver @FILE support... " >&6; }
9008 if ${lt_cv_ar_at_file+:} false; then :
9009   $as_echo_n "(cached) " >&6
9010 else
9011   lt_cv_ar_at_file=no
9012    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h.  */
9014
9015 int main (void)
9016 {
9017
9018  ;
9019  return 0;
9020 }
9021 _ACEOF
9022 if ac_fn_c_try_compile "$LINENO"; then :
9023   echo conftest.$ac_objext > conftest.lst
9024       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9025       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9026   (eval $lt_ar_try) 2>&5
9027   ac_status=$?
9028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9029   test $ac_status = 0; }
9030       if test 0 -eq "$ac_status"; then
9031         # Ensure the archiver fails upon bogus file names.
9032         rm -f conftest.$ac_objext libconftest.a
9033         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9034   (eval $lt_ar_try) 2>&5
9035   ac_status=$?
9036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9037   test $ac_status = 0; }
9038         if test 0 -ne "$ac_status"; then
9039           lt_cv_ar_at_file=@
9040         fi
9041       fi
9042       rm -f conftest.* libconftest.a
9043
9044 fi
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9046
9047 fi
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9049 $as_echo "$lt_cv_ar_at_file" >&6; }
9050
9051 if test no = "$lt_cv_ar_at_file"; then
9052   archiver_list_spec=
9053 else
9054   archiver_list_spec=$lt_cv_ar_at_file
9055 fi
9056
9057
9058
9059
9060
9061
9062
9063 if test -n "$ac_tool_prefix"; then
9064   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9065 set dummy ${ac_tool_prefix}strip; ac_word=$2
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067 $as_echo_n "checking for $ac_word... " >&6; }
9068 if ${ac_cv_prog_STRIP+:} false; then :
9069   $as_echo_n "(cached) " >&6
9070 else
9071   if test -n "$STRIP"; then
9072   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9073 else
9074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 for as_dir in $PATH
9076 do
9077   IFS=$as_save_IFS
9078   test -z "$as_dir" && as_dir=.
9079     for ac_exec_ext in '' $ac_executable_extensions; do
9080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9081     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083     break 2
9084   fi
9085 done
9086   done
9087 IFS=$as_save_IFS
9088
9089 fi
9090 fi
9091 STRIP=$ac_cv_prog_STRIP
9092 if test -n "$STRIP"; then
9093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9094 $as_echo "$STRIP" >&6; }
9095 else
9096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 $as_echo "no" >&6; }
9098 fi
9099
9100
9101 fi
9102 if test -z "$ac_cv_prog_STRIP"; then
9103   ac_ct_STRIP=$STRIP
9104   # Extract the first word of "strip", so it can be a program name with args.
9105 set dummy strip; ac_word=$2
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107 $as_echo_n "checking for $ac_word... " >&6; }
9108 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9109   $as_echo_n "(cached) " >&6
9110 else
9111   if test -n "$ac_ct_STRIP"; then
9112   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9113 else
9114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115 for as_dir in $PATH
9116 do
9117   IFS=$as_save_IFS
9118   test -z "$as_dir" && as_dir=.
9119     for ac_exec_ext in '' $ac_executable_extensions; do
9120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9121     ac_cv_prog_ac_ct_STRIP="strip"
9122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9123     break 2
9124   fi
9125 done
9126   done
9127 IFS=$as_save_IFS
9128
9129 fi
9130 fi
9131 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9132 if test -n "$ac_ct_STRIP"; then
9133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9134 $as_echo "$ac_ct_STRIP" >&6; }
9135 else
9136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9138 fi
9139
9140   if test "x$ac_ct_STRIP" = x; then
9141     STRIP=":"
9142   else
9143     case $cross_compiling:$ac_tool_warned in
9144 yes:)
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9147 ac_tool_warned=yes ;;
9148 esac
9149     STRIP=$ac_ct_STRIP
9150   fi
9151 else
9152   STRIP="$ac_cv_prog_STRIP"
9153 fi
9154
9155 test -z "$STRIP" && STRIP=:
9156
9157
9158
9159
9160
9161
9162 if test -n "$ac_tool_prefix"; then
9163   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9164 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166 $as_echo_n "checking for $ac_word... " >&6; }
9167 if ${ac_cv_prog_RANLIB+:} false; then :
9168   $as_echo_n "(cached) " >&6
9169 else
9170   if test -n "$RANLIB"; then
9171   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9172 else
9173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174 for as_dir in $PATH
9175 do
9176   IFS=$as_save_IFS
9177   test -z "$as_dir" && as_dir=.
9178     for ac_exec_ext in '' $ac_executable_extensions; do
9179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9180     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9182     break 2
9183   fi
9184 done
9185   done
9186 IFS=$as_save_IFS
9187
9188 fi
9189 fi
9190 RANLIB=$ac_cv_prog_RANLIB
9191 if test -n "$RANLIB"; then
9192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9193 $as_echo "$RANLIB" >&6; }
9194 else
9195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9197 fi
9198
9199
9200 fi
9201 if test -z "$ac_cv_prog_RANLIB"; then
9202   ac_ct_RANLIB=$RANLIB
9203   # Extract the first word of "ranlib", so it can be a program name with args.
9204 set dummy ranlib; ac_word=$2
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206 $as_echo_n "checking for $ac_word... " >&6; }
9207 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9208   $as_echo_n "(cached) " >&6
9209 else
9210   if test -n "$ac_ct_RANLIB"; then
9211   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9212 else
9213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214 for as_dir in $PATH
9215 do
9216   IFS=$as_save_IFS
9217   test -z "$as_dir" && as_dir=.
9218     for ac_exec_ext in '' $ac_executable_extensions; do
9219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9220     ac_cv_prog_ac_ct_RANLIB="ranlib"
9221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9222     break 2
9223   fi
9224 done
9225   done
9226 IFS=$as_save_IFS
9227
9228 fi
9229 fi
9230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9231 if test -n "$ac_ct_RANLIB"; then
9232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9233 $as_echo "$ac_ct_RANLIB" >&6; }
9234 else
9235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9237 fi
9238
9239   if test "x$ac_ct_RANLIB" = x; then
9240     RANLIB=":"
9241   else
9242     case $cross_compiling:$ac_tool_warned in
9243 yes:)
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9246 ac_tool_warned=yes ;;
9247 esac
9248     RANLIB=$ac_ct_RANLIB
9249   fi
9250 else
9251   RANLIB="$ac_cv_prog_RANLIB"
9252 fi
9253
9254 test -z "$RANLIB" && RANLIB=:
9255
9256
9257
9258
9259
9260
9261 # Determine commands to create old-style static archives.
9262 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9263 old_postinstall_cmds='chmod 644 $oldlib'
9264 old_postuninstall_cmds=
9265
9266 if test -n "$RANLIB"; then
9267   case $host_os in
9268   bitrig* | openbsd*)
9269     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9270     ;;
9271   *)
9272     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9273     ;;
9274   esac
9275   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9276 fi
9277
9278 case $host_os in
9279   darwin*)
9280     lock_old_archive_extraction=yes ;;
9281   *)
9282     lock_old_archive_extraction=no ;;
9283 esac
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323 # If no C compiler was specified, use CC.
9324 LTCC=${LTCC-"$CC"}
9325
9326 # If no C compiler flags were specified, use CFLAGS.
9327 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9328
9329 # Allow CC to be a program name with arguments.
9330 compiler=$CC
9331
9332
9333 # Check for command to grab the raw symbol name followed by C symbol from nm.
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9335 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9336 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9337   $as_echo_n "(cached) " >&6
9338 else
9339
9340 # These are sane defaults that work on at least a few old systems.
9341 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9342
9343 # Character class describing NM global symbol codes.
9344 symcode='[BCDEGRST]'
9345
9346 # Regexp to match symbols that can be accessed directly from C.
9347 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9348
9349 # Define system-specific variables.
9350 case $host_os in
9351 aix*)
9352   symcode='[BCDT]'
9353   ;;
9354 cygwin* | mingw* | pw32* | cegcc*)
9355   symcode='[ABCDGISTW]'
9356   ;;
9357 hpux*)
9358   if test ia64 = "$host_cpu"; then
9359     symcode='[ABCDEGRST]'
9360   fi
9361   ;;
9362 irix* | nonstopux*)
9363   symcode='[BCDEGRST]'
9364   ;;
9365 osf*)
9366   symcode='[BCDEGQRST]'
9367   ;;
9368 solaris*)
9369   symcode='[BDRT]'
9370   ;;
9371 sco3.2v5*)
9372   symcode='[DT]'
9373   ;;
9374 sysv4.2uw2*)
9375   symcode='[DT]'
9376   ;;
9377 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9378   symcode='[ABDT]'
9379   ;;
9380 sysv4)
9381   symcode='[DFNSTU]'
9382   ;;
9383 esac
9384
9385 # If we're using GNU nm, then use its standard symbol codes.
9386 case `$NM -V 2>&1` in
9387 *GNU* | *'with BFD'*)
9388   symcode='[ABCDGIRSTW]' ;;
9389 esac
9390
9391 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9392   # Gets list of data symbols to import.
9393   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9394   # Adjust the below global symbol transforms to fixup imported variables.
9395   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9396   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9397   lt_c_name_lib_hook="\
9398   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9399   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9400 else
9401   # Disable hooks by default.
9402   lt_cv_sys_global_symbol_to_import=
9403   lt_cdecl_hook=
9404   lt_c_name_hook=
9405   lt_c_name_lib_hook=
9406 fi
9407
9408 # Transform an extracted symbol line into a proper C declaration.
9409 # Some systems (esp. on ia64) link data and code symbols differently,
9410 # so use this general approach.
9411 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9412 $lt_cdecl_hook\
9413 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9414 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9415
9416 # Transform an extracted symbol line into symbol name and symbol address
9417 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9418 $lt_c_name_hook\
9419 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9420 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9421
9422 # Transform an extracted symbol line into symbol name with lib prefix and
9423 # symbol address.
9424 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9425 $lt_c_name_lib_hook\
9426 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9427 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9428 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9429
9430 # Handle CRLF in mingw tool chain
9431 opt_cr=
9432 case $build_os in
9433 mingw*)
9434   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9435   ;;
9436 esac
9437
9438 # Try without a prefix underscore, then with it.
9439 for ac_symprfx in "" "_"; do
9440
9441   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9442   symxfrm="\\1 $ac_symprfx\\2 \\2"
9443
9444   # Write the raw and C identifiers.
9445   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9446     # Fake it for dumpbin and say T for any non-static function,
9447     # D for any global variable and I for any imported variable.
9448     # Also find C++ and __fastcall symbols from MSVC++,
9449     # which start with @ or ?.
9450     lt_cv_sys_global_symbol_pipe="$AWK '"\
9451 "     {last_section=section; section=\$ 3};"\
9452 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9453 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9454 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9455 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9456 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9457 "     \$ 0!~/External *\|/{next};"\
9458 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9459 "     {if(hide[section]) next};"\
9460 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9461 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9462 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9463 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9464 "     ' prfx=^$ac_symprfx"
9465   else
9466     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9467   fi
9468   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9469
9470   # Check to see that the pipe works correctly.
9471   pipe_works=no
9472
9473   rm -f conftest*
9474   cat > conftest.$ac_ext <<_LT_EOF
9475 #ifdef __cplusplus
9476 extern "C" {
9477 #endif
9478 char nm_test_var;
9479 void nm_test_func(void);
9480 void nm_test_func(void){}
9481 #ifdef __cplusplus
9482 }
9483 #endif
9484 int main(){nm_test_var='a';nm_test_func();return(0);}
9485 _LT_EOF
9486
9487   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9488   (eval $ac_compile) 2>&5
9489   ac_status=$?
9490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9491   test $ac_status = 0; }; then
9492     # Now try to grab the symbols.
9493     nlist=conftest.nm
9494     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9495   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9496   ac_status=$?
9497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9498   test $ac_status = 0; } && test -s "$nlist"; then
9499       # Try sorting and uniquifying the output.
9500       if sort "$nlist" | uniq > "$nlist"T; then
9501         mv -f "$nlist"T "$nlist"
9502       else
9503         rm -f "$nlist"T
9504       fi
9505
9506       # Make sure that we snagged all the symbols we need.
9507       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9508         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9509           cat <<_LT_EOF > conftest.$ac_ext
9510 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9511 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9512 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9513    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9514 # define LT_DLSYM_CONST
9515 #elif defined __osf__
9516 /* This system does not cope well with relocations in const data.  */
9517 # define LT_DLSYM_CONST
9518 #else
9519 # define LT_DLSYM_CONST const
9520 #endif
9521
9522 #ifdef __cplusplus
9523 extern "C" {
9524 #endif
9525
9526 _LT_EOF
9527           # Now generate the symbol file.
9528           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9529
9530           cat <<_LT_EOF >> conftest.$ac_ext
9531
9532 /* The mapping between symbol names and symbols.  */
9533 LT_DLSYM_CONST struct {
9534   const char *name;
9535   void       *address;
9536 }
9537 lt__PROGRAM__LTX_preloaded_symbols[] =
9538 {
9539   { "@PROGRAM@", (void *) 0 },
9540 _LT_EOF
9541           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9542           cat <<\_LT_EOF >> conftest.$ac_ext
9543   {0, (void *) 0}
9544 };
9545
9546 /* This works around a problem in FreeBSD linker */
9547 #ifdef FREEBSD_WORKAROUND
9548 static const void *lt_preloaded_setup() {
9549   return lt__PROGRAM__LTX_preloaded_symbols;
9550 }
9551 #endif
9552
9553 #ifdef __cplusplus
9554 }
9555 #endif
9556 _LT_EOF
9557           # Now try linking the two files.
9558           mv -f conftest.$ac_objext conftstm.$ac_objext
9559           lt_globsym_save_LIBS=$LIBS
9560           lt_globsym_save_CFLAGS=$CFLAGS
9561           LIBS=conftstm.$ac_objext
9562           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9563           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9564   (eval $ac_link) 2>&5
9565   ac_status=$?
9566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9567   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9568             pipe_works=yes
9569           fi
9570           LIBS=$lt_globsym_save_LIBS
9571           CFLAGS=$lt_globsym_save_CFLAGS
9572         else
9573           echo "cannot find nm_test_func in $nlist" >&5
9574         fi
9575       else
9576         echo "cannot find nm_test_var in $nlist" >&5
9577       fi
9578     else
9579       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9580     fi
9581   else
9582     echo "$progname: failed program was:" >&5
9583     cat conftest.$ac_ext >&5
9584   fi
9585   rm -rf conftest* conftst*
9586
9587   # Do not use the global_symbol_pipe unless it works.
9588   if test yes = "$pipe_works"; then
9589     break
9590   else
9591     lt_cv_sys_global_symbol_pipe=
9592   fi
9593 done
9594
9595 fi
9596
9597 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9598   lt_cv_sys_global_symbol_to_cdecl=
9599 fi
9600 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9602 $as_echo "failed" >&6; }
9603 else
9604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9605 $as_echo "ok" >&6; }
9606 fi
9607
9608 # Response file support.
9609 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9610   nm_file_list_spec='@'
9611 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9612   nm_file_list_spec='@'
9613 fi
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9652 $as_echo_n "checking for sysroot... " >&6; }
9653
9654 # Check whether --with-sysroot was given.
9655 if test "${with_sysroot+set}" = set; then :
9656   withval=$with_sysroot;
9657 else
9658   with_sysroot=no
9659 fi
9660
9661
9662 lt_sysroot=
9663 case $with_sysroot in #(
9664  yes)
9665    if test yes = "$GCC"; then
9666      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9667    fi
9668    ;; #(
9669  /*)
9670    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9671    ;; #(
9672  no|'')
9673    ;; #(
9674  *)
9675    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9676 $as_echo "$with_sysroot" >&6; }
9677    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9678    ;;
9679 esac
9680
9681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9682 $as_echo "${lt_sysroot:-no}" >&6; }
9683
9684
9685
9686
9687
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9689 $as_echo_n "checking for a working dd... " >&6; }
9690 if ${ac_cv_path_lt_DD+:} false; then :
9691   $as_echo_n "(cached) " >&6
9692 else
9693   printf 0123456789abcdef0123456789abcdef >conftest.i
9694 cat conftest.i conftest.i >conftest2.i
9695 : ${lt_DD:=$DD}
9696 if test -z "$lt_DD"; then
9697   ac_path_lt_DD_found=false
9698   # Loop through the user's path and test for each of PROGNAME-LIST
9699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 for as_dir in $PATH
9701 do
9702   IFS=$as_save_IFS
9703   test -z "$as_dir" && as_dir=.
9704     for ac_prog in dd; do
9705     for ac_exec_ext in '' $ac_executable_extensions; do
9706       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9707       as_fn_executable_p "$ac_path_lt_DD" || continue
9708 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9709   cmp -s conftest.i conftest.out \
9710   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9711 fi
9712       $ac_path_lt_DD_found && break 3
9713     done
9714   done
9715   done
9716 IFS=$as_save_IFS
9717   if test -z "$ac_cv_path_lt_DD"; then
9718     :
9719   fi
9720 else
9721   ac_cv_path_lt_DD=$lt_DD
9722 fi
9723
9724 rm -f conftest.i conftest2.i conftest.out
9725 fi
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9727 $as_echo "$ac_cv_path_lt_DD" >&6; }
9728
9729
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9731 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9732 if ${lt_cv_truncate_bin+:} false; then :
9733   $as_echo_n "(cached) " >&6
9734 else
9735   printf 0123456789abcdef0123456789abcdef >conftest.i
9736 cat conftest.i conftest.i >conftest2.i
9737 lt_cv_truncate_bin=
9738 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9739   cmp -s conftest.i conftest.out \
9740   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9741 fi
9742 rm -f conftest.i conftest2.i conftest.out
9743 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9744 fi
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9746 $as_echo "$lt_cv_truncate_bin" >&6; }
9747
9748
9749
9750
9751
9752
9753
9754 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9755 func_cc_basename ()
9756 {
9757     for cc_temp in $*""; do
9758       case $cc_temp in
9759         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9760         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9761         \-*) ;;
9762         *) break;;
9763       esac
9764     done
9765     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9766 }
9767
9768 # Check whether --enable-libtool-lock was given.
9769 if test "${enable_libtool_lock+set}" = set; then :
9770   enableval=$enable_libtool_lock;
9771 fi
9772
9773 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9774
9775 # Some flags need to be propagated to the compiler or linker for good
9776 # libtool support.
9777 case $host in
9778 ia64-*-hpux*)
9779   # Find out what ABI is being produced by ac_compile, and set mode
9780   # options accordingly.
9781   echo 'int i;' > conftest.$ac_ext
9782   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9783   (eval $ac_compile) 2>&5
9784   ac_status=$?
9785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9786   test $ac_status = 0; }; then
9787     case `/usr/bin/file conftest.$ac_objext` in
9788       *ELF-32*)
9789         HPUX_IA64_MODE=32
9790         ;;
9791       *ELF-64*)
9792         HPUX_IA64_MODE=64
9793         ;;
9794     esac
9795   fi
9796   rm -rf conftest*
9797   ;;
9798 *-*-irix6*)
9799   # Find out what ABI is being produced by ac_compile, and set linker
9800   # options accordingly.
9801   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9802   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9803   (eval $ac_compile) 2>&5
9804   ac_status=$?
9805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9806   test $ac_status = 0; }; then
9807     if test yes = "$lt_cv_prog_gnu_ld"; then
9808       case `/usr/bin/file conftest.$ac_objext` in
9809         *32-bit*)
9810           LD="${LD-ld} -melf32bsmip"
9811           ;;
9812         *N32*)
9813           LD="${LD-ld} -melf32bmipn32"
9814           ;;
9815         *64-bit*)
9816           LD="${LD-ld} -melf64bmip"
9817         ;;
9818       esac
9819     else
9820       case `/usr/bin/file conftest.$ac_objext` in
9821         *32-bit*)
9822           LD="${LD-ld} -32"
9823           ;;
9824         *N32*)
9825           LD="${LD-ld} -n32"
9826           ;;
9827         *64-bit*)
9828           LD="${LD-ld} -64"
9829           ;;
9830       esac
9831     fi
9832   fi
9833   rm -rf conftest*
9834   ;;
9835
9836 mips64*-*linux*)
9837   # Find out what ABI is being produced by ac_compile, and set linker
9838   # options accordingly.
9839   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9840   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9841   (eval $ac_compile) 2>&5
9842   ac_status=$?
9843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9844   test $ac_status = 0; }; then
9845     emul=elf
9846     case `/usr/bin/file conftest.$ac_objext` in
9847       *32-bit*)
9848         emul="${emul}32"
9849         ;;
9850       *64-bit*)
9851         emul="${emul}64"
9852         ;;
9853     esac
9854     case `/usr/bin/file conftest.$ac_objext` in
9855       *MSB*)
9856         emul="${emul}btsmip"
9857         ;;
9858       *LSB*)
9859         emul="${emul}ltsmip"
9860         ;;
9861     esac
9862     case `/usr/bin/file conftest.$ac_objext` in
9863       *N32*)
9864         emul="${emul}n32"
9865         ;;
9866     esac
9867     LD="${LD-ld} -m $emul"
9868   fi
9869   rm -rf conftest*
9870   ;;
9871
9872 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9873 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9874   # Find out what ABI is being produced by ac_compile, and set linker
9875   # options accordingly.  Note that the listed cases only cover the
9876   # situations where additional linker options are needed (such as when
9877   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9878   # vice versa); the common cases where no linker options are needed do
9879   # not appear in the list.
9880   echo 'int i;' > conftest.$ac_ext
9881   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9882   (eval $ac_compile) 2>&5
9883   ac_status=$?
9884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9885   test $ac_status = 0; }; then
9886     case `/usr/bin/file conftest.o` in
9887       *32-bit*)
9888         case $host in
9889           x86_64-*kfreebsd*-gnu)
9890             LD="${LD-ld} -m elf_i386_fbsd"
9891             ;;
9892           x86_64-*linux*)
9893             case `/usr/bin/file conftest.o` in
9894               *x86-64*)
9895                 LD="${LD-ld} -m elf32_x86_64"
9896                 ;;
9897               *)
9898                 LD="${LD-ld} -m elf_i386"
9899                 ;;
9900             esac
9901             ;;
9902           powerpc64le-*linux*)
9903             LD="${LD-ld} -m elf32lppclinux"
9904             ;;
9905           powerpc64-*linux*)
9906             LD="${LD-ld} -m elf32ppclinux"
9907             ;;
9908           s390x-*linux*)
9909             LD="${LD-ld} -m elf_s390"
9910             ;;
9911           sparc64-*linux*)
9912             LD="${LD-ld} -m elf32_sparc"
9913             ;;
9914         esac
9915         ;;
9916       *64-bit*)
9917         case $host in
9918           x86_64-*kfreebsd*-gnu)
9919             LD="${LD-ld} -m elf_x86_64_fbsd"
9920             ;;
9921           x86_64-*linux*)
9922             LD="${LD-ld} -m elf_x86_64"
9923             ;;
9924           powerpcle-*linux*)
9925             LD="${LD-ld} -m elf64lppc"
9926             ;;
9927           powerpc-*linux*)
9928             LD="${LD-ld} -m elf64ppc"
9929             ;;
9930           s390*-*linux*|s390*-*tpf*)
9931             LD="${LD-ld} -m elf64_s390"
9932             ;;
9933           sparc*-*linux*)
9934             LD="${LD-ld} -m elf64_sparc"
9935             ;;
9936         esac
9937         ;;
9938     esac
9939   fi
9940   rm -rf conftest*
9941   ;;
9942
9943 *-*-sco3.2v5*)
9944   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9945   SAVE_CFLAGS=$CFLAGS
9946   CFLAGS="$CFLAGS -belf"
9947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9948 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9949 if ${lt_cv_cc_needs_belf+:} false; then :
9950   $as_echo_n "(cached) " >&6
9951 else
9952   ac_ext=c
9953 ac_cpp='$CPP $CPPFLAGS'
9954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9957
9958      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h.  */
9960
9961 int main (void)
9962 {
9963
9964  ;
9965  return 0;
9966 }
9967 _ACEOF
9968 if ac_fn_c_try_link "$LINENO"; then :
9969   lt_cv_cc_needs_belf=yes
9970 else
9971   lt_cv_cc_needs_belf=no
9972 fi
9973 rm -f core conftest.err conftest.$ac_objext \
9974     conftest$ac_exeext conftest.$ac_ext
9975      ac_ext=c
9976 ac_cpp='$CPP $CPPFLAGS'
9977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9980
9981 fi
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9983 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9984   if test yes != "$lt_cv_cc_needs_belf"; then
9985     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9986     CFLAGS=$SAVE_CFLAGS
9987   fi
9988   ;;
9989 *-*solaris*)
9990   # Find out what ABI is being produced by ac_compile, and set linker
9991   # options accordingly.
9992   echo 'int i;' > conftest.$ac_ext
9993   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9994   (eval $ac_compile) 2>&5
9995   ac_status=$?
9996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9997   test $ac_status = 0; }; then
9998     case `/usr/bin/file conftest.o` in
9999     *64-bit*)
10000       case $lt_cv_prog_gnu_ld in
10001       yes*)
10002         case $host in
10003         i?86-*-solaris*|x86_64-*-solaris*)
10004           LD="${LD-ld} -m elf_x86_64"
10005           ;;
10006         sparc*-*-solaris*)
10007           LD="${LD-ld} -m elf64_sparc"
10008           ;;
10009         esac
10010         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10011         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10012           LD=${LD-ld}_sol2
10013         fi
10014         ;;
10015       *)
10016         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10017           LD="${LD-ld} -64"
10018         fi
10019         ;;
10020       esac
10021       ;;
10022     esac
10023   fi
10024   rm -rf conftest*
10025   ;;
10026 esac
10027
10028 need_locks=$enable_libtool_lock
10029
10030 if test -n "$ac_tool_prefix"; then
10031   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10032 set dummy ${ac_tool_prefix}mt; ac_word=$2
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034 $as_echo_n "checking for $ac_word... " >&6; }
10035 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10036   $as_echo_n "(cached) " >&6
10037 else
10038   if test -n "$MANIFEST_TOOL"; then
10039   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10040 else
10041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042 for as_dir in $PATH
10043 do
10044   IFS=$as_save_IFS
10045   test -z "$as_dir" && as_dir=.
10046     for ac_exec_ext in '' $ac_executable_extensions; do
10047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10048     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10050     break 2
10051   fi
10052 done
10053   done
10054 IFS=$as_save_IFS
10055
10056 fi
10057 fi
10058 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10059 if test -n "$MANIFEST_TOOL"; then
10060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10061 $as_echo "$MANIFEST_TOOL" >&6; }
10062 else
10063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064 $as_echo "no" >&6; }
10065 fi
10066
10067
10068 fi
10069 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10070   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10071   # Extract the first word of "mt", so it can be a program name with args.
10072 set dummy mt; ac_word=$2
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10074 $as_echo_n "checking for $ac_word... " >&6; }
10075 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10076   $as_echo_n "(cached) " >&6
10077 else
10078   if test -n "$ac_ct_MANIFEST_TOOL"; then
10079   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10080 else
10081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082 for as_dir in $PATH
10083 do
10084   IFS=$as_save_IFS
10085   test -z "$as_dir" && as_dir=.
10086     for ac_exec_ext in '' $ac_executable_extensions; do
10087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10088     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10090     break 2
10091   fi
10092 done
10093   done
10094 IFS=$as_save_IFS
10095
10096 fi
10097 fi
10098 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10099 if test -n "$ac_ct_MANIFEST_TOOL"; then
10100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10101 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10102 else
10103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 $as_echo "no" >&6; }
10105 fi
10106
10107   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10108     MANIFEST_TOOL=":"
10109   else
10110     case $cross_compiling:$ac_tool_warned in
10111 yes:)
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10114 ac_tool_warned=yes ;;
10115 esac
10116     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10117   fi
10118 else
10119   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10120 fi
10121
10122 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10124 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10125 if ${lt_cv_path_mainfest_tool+:} false; then :
10126   $as_echo_n "(cached) " >&6
10127 else
10128   lt_cv_path_mainfest_tool=no
10129   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10130   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10131   cat conftest.err >&5
10132   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10133     lt_cv_path_mainfest_tool=yes
10134   fi
10135   rm -f conftest*
10136 fi
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10138 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10139 if test yes != "$lt_cv_path_mainfest_tool"; then
10140   MANIFEST_TOOL=:
10141 fi
10142
10143
10144
10145
10146
10147
10148   case $host_os in
10149     rhapsody* | darwin*)
10150     if test -n "$ac_tool_prefix"; then
10151   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10152 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154 $as_echo_n "checking for $ac_word... " >&6; }
10155 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10156   $as_echo_n "(cached) " >&6
10157 else
10158   if test -n "$DSYMUTIL"; then
10159   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10160 else
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10163 do
10164   IFS=$as_save_IFS
10165   test -z "$as_dir" && as_dir=.
10166     for ac_exec_ext in '' $ac_executable_extensions; do
10167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10168     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170     break 2
10171   fi
10172 done
10173   done
10174 IFS=$as_save_IFS
10175
10176 fi
10177 fi
10178 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10179 if test -n "$DSYMUTIL"; then
10180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10181 $as_echo "$DSYMUTIL" >&6; }
10182 else
10183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10185 fi
10186
10187
10188 fi
10189 if test -z "$ac_cv_prog_DSYMUTIL"; then
10190   ac_ct_DSYMUTIL=$DSYMUTIL
10191   # Extract the first word of "dsymutil", so it can be a program name with args.
10192 set dummy dsymutil; ac_word=$2
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10194 $as_echo_n "checking for $ac_word... " >&6; }
10195 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10196   $as_echo_n "(cached) " >&6
10197 else
10198   if test -n "$ac_ct_DSYMUTIL"; then
10199   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10200 else
10201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202 for as_dir in $PATH
10203 do
10204   IFS=$as_save_IFS
10205   test -z "$as_dir" && as_dir=.
10206     for ac_exec_ext in '' $ac_executable_extensions; do
10207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10208     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10210     break 2
10211   fi
10212 done
10213   done
10214 IFS=$as_save_IFS
10215
10216 fi
10217 fi
10218 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10219 if test -n "$ac_ct_DSYMUTIL"; then
10220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10221 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10222 else
10223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224 $as_echo "no" >&6; }
10225 fi
10226
10227   if test "x$ac_ct_DSYMUTIL" = x; then
10228     DSYMUTIL=":"
10229   else
10230     case $cross_compiling:$ac_tool_warned in
10231 yes:)
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10234 ac_tool_warned=yes ;;
10235 esac
10236     DSYMUTIL=$ac_ct_DSYMUTIL
10237   fi
10238 else
10239   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10240 fi
10241
10242     if test -n "$ac_tool_prefix"; then
10243   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10244 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10246 $as_echo_n "checking for $ac_word... " >&6; }
10247 if ${ac_cv_prog_NMEDIT+:} false; then :
10248   $as_echo_n "(cached) " >&6
10249 else
10250   if test -n "$NMEDIT"; then
10251   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10252 else
10253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10254 for as_dir in $PATH
10255 do
10256   IFS=$as_save_IFS
10257   test -z "$as_dir" && as_dir=.
10258     for ac_exec_ext in '' $ac_executable_extensions; do
10259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10260     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10262     break 2
10263   fi
10264 done
10265   done
10266 IFS=$as_save_IFS
10267
10268 fi
10269 fi
10270 NMEDIT=$ac_cv_prog_NMEDIT
10271 if test -n "$NMEDIT"; then
10272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10273 $as_echo "$NMEDIT" >&6; }
10274 else
10275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276 $as_echo "no" >&6; }
10277 fi
10278
10279
10280 fi
10281 if test -z "$ac_cv_prog_NMEDIT"; then
10282   ac_ct_NMEDIT=$NMEDIT
10283   # Extract the first word of "nmedit", so it can be a program name with args.
10284 set dummy nmedit; ac_word=$2
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286 $as_echo_n "checking for $ac_word... " >&6; }
10287 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10288   $as_echo_n "(cached) " >&6
10289 else
10290   if test -n "$ac_ct_NMEDIT"; then
10291   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10292 else
10293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294 for as_dir in $PATH
10295 do
10296   IFS=$as_save_IFS
10297   test -z "$as_dir" && as_dir=.
10298     for ac_exec_ext in '' $ac_executable_extensions; do
10299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10300     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10302     break 2
10303   fi
10304 done
10305   done
10306 IFS=$as_save_IFS
10307
10308 fi
10309 fi
10310 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10311 if test -n "$ac_ct_NMEDIT"; then
10312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10313 $as_echo "$ac_ct_NMEDIT" >&6; }
10314 else
10315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316 $as_echo "no" >&6; }
10317 fi
10318
10319   if test "x$ac_ct_NMEDIT" = x; then
10320     NMEDIT=":"
10321   else
10322     case $cross_compiling:$ac_tool_warned in
10323 yes:)
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10326 ac_tool_warned=yes ;;
10327 esac
10328     NMEDIT=$ac_ct_NMEDIT
10329   fi
10330 else
10331   NMEDIT="$ac_cv_prog_NMEDIT"
10332 fi
10333
10334     if test -n "$ac_tool_prefix"; then
10335   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10336 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338 $as_echo_n "checking for $ac_word... " >&6; }
10339 if ${ac_cv_prog_LIPO+:} false; then :
10340   $as_echo_n "(cached) " >&6
10341 else
10342   if test -n "$LIPO"; then
10343   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10344 else
10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346 for as_dir in $PATH
10347 do
10348   IFS=$as_save_IFS
10349   test -z "$as_dir" && as_dir=.
10350     for ac_exec_ext in '' $ac_executable_extensions; do
10351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10352     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10354     break 2
10355   fi
10356 done
10357   done
10358 IFS=$as_save_IFS
10359
10360 fi
10361 fi
10362 LIPO=$ac_cv_prog_LIPO
10363 if test -n "$LIPO"; then
10364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10365 $as_echo "$LIPO" >&6; }
10366 else
10367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368 $as_echo "no" >&6; }
10369 fi
10370
10371
10372 fi
10373 if test -z "$ac_cv_prog_LIPO"; then
10374   ac_ct_LIPO=$LIPO
10375   # Extract the first word of "lipo", so it can be a program name with args.
10376 set dummy lipo; ac_word=$2
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378 $as_echo_n "checking for $ac_word... " >&6; }
10379 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10380   $as_echo_n "(cached) " >&6
10381 else
10382   if test -n "$ac_ct_LIPO"; then
10383   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10384 else
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386 for as_dir in $PATH
10387 do
10388   IFS=$as_save_IFS
10389   test -z "$as_dir" && as_dir=.
10390     for ac_exec_ext in '' $ac_executable_extensions; do
10391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10392     ac_cv_prog_ac_ct_LIPO="lipo"
10393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394     break 2
10395   fi
10396 done
10397   done
10398 IFS=$as_save_IFS
10399
10400 fi
10401 fi
10402 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10403 if test -n "$ac_ct_LIPO"; then
10404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10405 $as_echo "$ac_ct_LIPO" >&6; }
10406 else
10407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10409 fi
10410
10411   if test "x$ac_ct_LIPO" = x; then
10412     LIPO=":"
10413   else
10414     case $cross_compiling:$ac_tool_warned in
10415 yes:)
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10418 ac_tool_warned=yes ;;
10419 esac
10420     LIPO=$ac_ct_LIPO
10421   fi
10422 else
10423   LIPO="$ac_cv_prog_LIPO"
10424 fi
10425
10426     if test -n "$ac_tool_prefix"; then
10427   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10428 set dummy ${ac_tool_prefix}otool; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if ${ac_cv_prog_OTOOL+:} false; then :
10432   $as_echo_n "(cached) " >&6
10433 else
10434   if test -n "$OTOOL"; then
10435   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10436 else
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10439 do
10440   IFS=$as_save_IFS
10441   test -z "$as_dir" && as_dir=.
10442     for ac_exec_ext in '' $ac_executable_extensions; do
10443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10444     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446     break 2
10447   fi
10448 done
10449   done
10450 IFS=$as_save_IFS
10451
10452 fi
10453 fi
10454 OTOOL=$ac_cv_prog_OTOOL
10455 if test -n "$OTOOL"; then
10456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10457 $as_echo "$OTOOL" >&6; }
10458 else
10459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10461 fi
10462
10463
10464 fi
10465 if test -z "$ac_cv_prog_OTOOL"; then
10466   ac_ct_OTOOL=$OTOOL
10467   # Extract the first word of "otool", so it can be a program name with args.
10468 set dummy otool; ac_word=$2
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470 $as_echo_n "checking for $ac_word... " >&6; }
10471 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10472   $as_echo_n "(cached) " >&6
10473 else
10474   if test -n "$ac_ct_OTOOL"; then
10475   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10476 else
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in $PATH
10479 do
10480   IFS=$as_save_IFS
10481   test -z "$as_dir" && as_dir=.
10482     for ac_exec_ext in '' $ac_executable_extensions; do
10483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484     ac_cv_prog_ac_ct_OTOOL="otool"
10485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10486     break 2
10487   fi
10488 done
10489   done
10490 IFS=$as_save_IFS
10491
10492 fi
10493 fi
10494 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10495 if test -n "$ac_ct_OTOOL"; then
10496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10497 $as_echo "$ac_ct_OTOOL" >&6; }
10498 else
10499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; }
10501 fi
10502
10503   if test "x$ac_ct_OTOOL" = x; then
10504     OTOOL=":"
10505   else
10506     case $cross_compiling:$ac_tool_warned in
10507 yes:)
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10510 ac_tool_warned=yes ;;
10511 esac
10512     OTOOL=$ac_ct_OTOOL
10513   fi
10514 else
10515   OTOOL="$ac_cv_prog_OTOOL"
10516 fi
10517
10518     if test -n "$ac_tool_prefix"; then
10519   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10520 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10522 $as_echo_n "checking for $ac_word... " >&6; }
10523 if ${ac_cv_prog_OTOOL64+:} false; then :
10524   $as_echo_n "(cached) " >&6
10525 else
10526   if test -n "$OTOOL64"; then
10527   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10528 else
10529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530 for as_dir in $PATH
10531 do
10532   IFS=$as_save_IFS
10533   test -z "$as_dir" && as_dir=.
10534     for ac_exec_ext in '' $ac_executable_extensions; do
10535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10536     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10538     break 2
10539   fi
10540 done
10541   done
10542 IFS=$as_save_IFS
10543
10544 fi
10545 fi
10546 OTOOL64=$ac_cv_prog_OTOOL64
10547 if test -n "$OTOOL64"; then
10548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10549 $as_echo "$OTOOL64" >&6; }
10550 else
10551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552 $as_echo "no" >&6; }
10553 fi
10554
10555
10556 fi
10557 if test -z "$ac_cv_prog_OTOOL64"; then
10558   ac_ct_OTOOL64=$OTOOL64
10559   # Extract the first word of "otool64", so it can be a program name with args.
10560 set dummy otool64; ac_word=$2
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10564   $as_echo_n "(cached) " >&6
10565 else
10566   if test -n "$ac_ct_OTOOL64"; then
10567   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10568 else
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10571 do
10572   IFS=$as_save_IFS
10573   test -z "$as_dir" && as_dir=.
10574     for ac_exec_ext in '' $ac_executable_extensions; do
10575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10576     ac_cv_prog_ac_ct_OTOOL64="otool64"
10577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578     break 2
10579   fi
10580 done
10581   done
10582 IFS=$as_save_IFS
10583
10584 fi
10585 fi
10586 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10587 if test -n "$ac_ct_OTOOL64"; then
10588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10589 $as_echo "$ac_ct_OTOOL64" >&6; }
10590 else
10591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10593 fi
10594
10595   if test "x$ac_ct_OTOOL64" = x; then
10596     OTOOL64=":"
10597   else
10598     case $cross_compiling:$ac_tool_warned in
10599 yes:)
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10602 ac_tool_warned=yes ;;
10603 esac
10604     OTOOL64=$ac_ct_OTOOL64
10605   fi
10606 else
10607   OTOOL64="$ac_cv_prog_OTOOL64"
10608 fi
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10637 $as_echo_n "checking for -single_module linker flag... " >&6; }
10638 if ${lt_cv_apple_cc_single_mod+:} false; then :
10639   $as_echo_n "(cached) " >&6
10640 else
10641   lt_cv_apple_cc_single_mod=no
10642       if test -z "$LT_MULTI_MODULE"; then
10643         # By default we will add the -single_module flag. You can override
10644         # by either setting the environment variable LT_MULTI_MODULE
10645         # non-empty at configure time, or by adding -multi_module to the
10646         # link flags.
10647         rm -rf libconftest.dylib*
10648         echo "int foo(void){return 1;}" > conftest.c
10649         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10650 -dynamiclib -Wl,-single_module conftest.c" >&5
10651         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10652           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10653         _lt_result=$?
10654         # If there is a non-empty error log, and "single_module"
10655         # appears in it, assume the flag caused a linker warning
10656         if test -s conftest.err && $GREP single_module conftest.err; then
10657           cat conftest.err >&5
10658         # Otherwise, if the output was created with a 0 exit code from
10659         # the compiler, it worked.
10660         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10661           lt_cv_apple_cc_single_mod=yes
10662         else
10663           cat conftest.err >&5
10664         fi
10665         rm -rf libconftest.dylib*
10666         rm -f conftest.*
10667       fi
10668 fi
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10670 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10671
10672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10673 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10674 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10675   $as_echo_n "(cached) " >&6
10676 else
10677   lt_cv_ld_exported_symbols_list=no
10678       save_LDFLAGS=$LDFLAGS
10679       echo "_main" > conftest.sym
10680       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10681       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h.  */
10683
10684 int main (void)
10685 {
10686
10687  ;
10688  return 0;
10689 }
10690 _ACEOF
10691 if ac_fn_c_try_link "$LINENO"; then :
10692   lt_cv_ld_exported_symbols_list=yes
10693 else
10694   lt_cv_ld_exported_symbols_list=no
10695 fi
10696 rm -f core conftest.err conftest.$ac_objext \
10697     conftest$ac_exeext conftest.$ac_ext
10698         LDFLAGS=$save_LDFLAGS
10699
10700 fi
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10702 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10703
10704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10705 $as_echo_n "checking for -force_load linker flag... " >&6; }
10706 if ${lt_cv_ld_force_load+:} false; then :
10707   $as_echo_n "(cached) " >&6
10708 else
10709   lt_cv_ld_force_load=no
10710       cat > conftest.c << _LT_EOF
10711 int forced_loaded() { return 2;}
10712 _LT_EOF
10713       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10714       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10715       echo "$AR cru libconftest.a conftest.o" >&5
10716       $AR cru libconftest.a conftest.o 2>&5
10717       echo "$RANLIB libconftest.a" >&5
10718       $RANLIB libconftest.a 2>&5
10719       cat > conftest.c << _LT_EOF
10720 int main() { return 0;}
10721 _LT_EOF
10722       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10723       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10724       _lt_result=$?
10725       if test -s conftest.err && $GREP force_load conftest.err; then
10726         cat conftest.err >&5
10727       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10728         lt_cv_ld_force_load=yes
10729       else
10730         cat conftest.err >&5
10731       fi
10732         rm -f conftest.err libconftest.a conftest conftest.c
10733         rm -rf conftest.dSYM
10734
10735 fi
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10737 $as_echo "$lt_cv_ld_force_load" >&6; }
10738     case $host_os in
10739     rhapsody* | darwin1.[012])
10740       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10741     darwin1.*)
10742       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10743     darwin*) # darwin 5.x on
10744       # if running on 10.5 or later, the deployment target defaults
10745       # to the OS version, if on x86, and 10.4, the deployment
10746       # target defaults to 10.4. Don't you love it?
10747       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10748         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10749           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10750         10.[012][,.]*)
10751           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10752         10.*)
10753           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10754       esac
10755     ;;
10756   esac
10757     if test yes = "$lt_cv_apple_cc_single_mod"; then
10758       _lt_dar_single_mod='$single_module'
10759     fi
10760     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10761       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10762     else
10763       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10764     fi
10765     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10766       _lt_dsymutil='~$DSYMUTIL $lib || :'
10767     else
10768       _lt_dsymutil=
10769     fi
10770     ;;
10771   esac
10772
10773 # func_munge_path_list VARIABLE PATH
10774 # -----------------------------------
10775 # VARIABLE is name of variable containing _space_ separated list of
10776 # directories to be munged by the contents of PATH, which is string
10777 # having a format:
10778 # "DIR[:DIR]:"
10779 #       string "DIR[ DIR]" will be prepended to VARIABLE
10780 # ":DIR[:DIR]"
10781 #       string "DIR[ DIR]" will be appended to VARIABLE
10782 # "DIRP[:DIRP]::[DIRA:]DIRA"
10783 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10784 #       "DIRA[ DIRA]" will be appended to VARIABLE
10785 # "DIR[:DIR]"
10786 #       VARIABLE will be replaced by "DIR[ DIR]"
10787 func_munge_path_list ()
10788 {
10789     case x$2 in
10790     x)
10791         ;;
10792     *:)
10793         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10794         ;;
10795     x:*)
10796         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10797         ;;
10798     *::*)
10799         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10800         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10801         ;;
10802     *)
10803         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10804         ;;
10805     esac
10806 }
10807
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10809 $as_echo_n "checking for ANSI C header files... " >&6; }
10810 if ${ac_cv_header_stdc+:} false; then :
10811   $as_echo_n "(cached) " >&6
10812 else
10813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h.  */
10815 #include <stdlib.h>
10816 #include <stdarg.h>
10817 #include <string.h>
10818 #include <float.h>
10819
10820 int main (void)
10821 {
10822
10823  ;
10824  return 0;
10825 }
10826 _ACEOF
10827 if ac_fn_c_try_compile "$LINENO"; then :
10828   ac_cv_header_stdc=yes
10829 else
10830   ac_cv_header_stdc=no
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10833
10834 if test $ac_cv_header_stdc = yes; then
10835   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h.  */
10838 #include <string.h>
10839
10840 _ACEOF
10841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10842   $EGREP "memchr" >/dev/null 2>&1; then :
10843
10844 else
10845   ac_cv_header_stdc=no
10846 fi
10847 rm -f conftest*
10848
10849 fi
10850
10851 if test $ac_cv_header_stdc = yes; then
10852   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h.  */
10855 #include <stdlib.h>
10856
10857 _ACEOF
10858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10859   $EGREP "free" >/dev/null 2>&1; then :
10860
10861 else
10862   ac_cv_header_stdc=no
10863 fi
10864 rm -f conftest*
10865
10866 fi
10867
10868 if test $ac_cv_header_stdc = yes; then
10869   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10870   if test "$cross_compiling" = yes; then :
10871   :
10872 else
10873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h.  */
10875 #include <ctype.h>
10876 #include <stdlib.h>
10877 #if ((' ' & 0x0FF) == 0x020)
10878 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10879 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10880 #else
10881 # define ISLOWER(c) \
10882                    (('a' <= (c) && (c) <= 'i') \
10883                      || ('j' <= (c) && (c) <= 'r') \
10884                      || ('s' <= (c) && (c) <= 'z'))
10885 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10886 #endif
10887
10888 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10889 int
10890 main ()
10891 {
10892   int i;
10893   for (i = 0; i < 256; i++)
10894     if (XOR (islower (i), ISLOWER (i))
10895         || toupper (i) != TOUPPER (i))
10896       return 2;
10897   return 0;
10898 }
10899 _ACEOF
10900 if ac_fn_c_try_run "$LINENO"; then :
10901
10902 else
10903   ac_cv_header_stdc=no
10904 fi
10905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10906   conftest.$ac_objext conftest.beam conftest.$ac_ext
10907 fi
10908
10909 fi
10910 fi
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10912 $as_echo "$ac_cv_header_stdc" >&6; }
10913 if test $ac_cv_header_stdc = yes; then
10914
10915 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10916
10917 fi
10918
10919 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10920 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10921                   inttypes.h stdint.h unistd.h
10922 do :
10923   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10924 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10925 "
10926 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10927   cat >>confdefs.h <<_ACEOF
10928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10929 _ACEOF
10930
10931 fi
10932
10933 done
10934
10935
10936 for ac_header in dlfcn.h
10937 do :
10938   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10939 "
10940 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10941   cat >>confdefs.h <<_ACEOF
10942 #define HAVE_DLFCN_H 1
10943 _ACEOF
10944
10945 fi
10946
10947 done
10948
10949 # ------------------------------------ #
10950 #  Determine libtool default behavior  #
10951 # ------------------------------------ #
10952
10953 #
10954 # Default behavior is to enable shared and static libraries on systems
10955 # where libtool knows how to build both library versions, and does not
10956 # require separate configuration and build runs for each flavor.
10957 #
10958
10959 xc_lt_want_enable_shared='yes'
10960 xc_lt_want_enable_static='yes'
10961
10962 #
10963 # User may have disabled shared or static libraries.
10964 #
10965 case "x$enable_shared" in # (
10966   xno)
10967     xc_lt_want_enable_shared='no'
10968     ;;
10969 esac
10970 case "x$enable_static" in # (
10971   xno)
10972     xc_lt_want_enable_static='no'
10973     ;;
10974 esac
10975 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10976   test "x$xc_lt_want_enable_static" = 'xno'; then
10977   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10978 fi
10979
10980 #
10981 # Default behavior on systems that require independent configuration
10982 # and build runs for shared and static is to enable shared libraries
10983 # and disable static ones. On these systems option '--disable-shared'
10984 # must be used in order to build a proper static library.
10985 #
10986
10987 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10988   test "x$xc_lt_want_enable_static" = 'xyes'; then
10989   case $host_os in # (
10990     pw32* | cegcc* | os2* | aix*)
10991       xc_lt_want_enable_static='no'
10992       ;;
10993   esac
10994 fi
10995
10996 #
10997 # Make libtool aware of current shared and static library preferences
10998 # taking in account that, depending on host characteristics, libtool
10999 # may modify these option preferences later in this configure script.
11000 #
11001
11002 enable_shared=$xc_lt_want_enable_shared
11003 enable_static=$xc_lt_want_enable_static
11004
11005 #
11006 # Default behavior is to build PIC objects for shared libraries and
11007 # non-PIC objects for static libraries.
11008 #
11009
11010 xc_lt_want_with_pic='default'
11011
11012 #
11013 # User may have specified PIC preference.
11014 #
11015
11016 case "x$with_pic" in # ((
11017   xno)
11018     xc_lt_want_with_pic='no'
11019     ;;
11020   xyes)
11021     xc_lt_want_with_pic='yes'
11022     ;;
11023 esac
11024
11025 #
11026 # Default behavior on some systems where building a shared library out
11027 # of non-PIC compiled objects will fail with following linker error
11028 # "relocation R_X86_64_32 can not be used when making a shared object"
11029 # is to build PIC objects even for static libraries. This behavior may
11030 # be overridden using 'configure --disable-shared --without-pic'.
11031 #
11032
11033 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11034   case $host_cpu in # (
11035     x86_64 | amd64 | ia64)
11036       case $host_os in # (
11037         linux* | freebsd*)
11038           xc_lt_want_with_pic='yes'
11039           ;;
11040       esac
11041       ;;
11042   esac
11043 fi
11044
11045 #
11046 # Make libtool aware of current PIC preference taking in account that,
11047 # depending on host characteristics, libtool may modify PIC default
11048 # behavior to fit host system idiosyncrasies later in this script.
11049 #
11050
11051 with_pic=$xc_lt_want_with_pic
11052
11053 ## ----------------------- ##
11054 ##  Start of libtool code  ##
11055 ## ----------------------- ##
11056
11057
11058
11059
11060 # Set options
11061 enable_win32_dll=yes
11062
11063 case $host in
11064 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11065   if test -n "$ac_tool_prefix"; then
11066   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11067 set dummy ${ac_tool_prefix}as; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if ${ac_cv_prog_AS+:} false; then :
11071   $as_echo_n "(cached) " >&6
11072 else
11073   if test -n "$AS"; then
11074   ac_cv_prog_AS="$AS" # Let the user override the test.
11075 else
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11078 do
11079   IFS=$as_save_IFS
11080   test -z "$as_dir" && as_dir=.
11081     for ac_exec_ext in '' $ac_executable_extensions; do
11082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11083     ac_cv_prog_AS="${ac_tool_prefix}as"
11084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085     break 2
11086   fi
11087 done
11088   done
11089 IFS=$as_save_IFS
11090
11091 fi
11092 fi
11093 AS=$ac_cv_prog_AS
11094 if test -n "$AS"; then
11095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11096 $as_echo "$AS" >&6; }
11097 else
11098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11100 fi
11101
11102
11103 fi
11104 if test -z "$ac_cv_prog_AS"; then
11105   ac_ct_AS=$AS
11106   # Extract the first word of "as", so it can be a program name with args.
11107 set dummy as; ac_word=$2
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109 $as_echo_n "checking for $ac_word... " >&6; }
11110 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11111   $as_echo_n "(cached) " >&6
11112 else
11113   if test -n "$ac_ct_AS"; then
11114   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11115 else
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11118 do
11119   IFS=$as_save_IFS
11120   test -z "$as_dir" && as_dir=.
11121     for ac_exec_ext in '' $ac_executable_extensions; do
11122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11123     ac_cv_prog_ac_ct_AS="as"
11124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125     break 2
11126   fi
11127 done
11128   done
11129 IFS=$as_save_IFS
11130
11131 fi
11132 fi
11133 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11134 if test -n "$ac_ct_AS"; then
11135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11136 $as_echo "$ac_ct_AS" >&6; }
11137 else
11138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; }
11140 fi
11141
11142   if test "x$ac_ct_AS" = x; then
11143     AS="false"
11144   else
11145     case $cross_compiling:$ac_tool_warned in
11146 yes:)
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11149 ac_tool_warned=yes ;;
11150 esac
11151     AS=$ac_ct_AS
11152   fi
11153 else
11154   AS="$ac_cv_prog_AS"
11155 fi
11156
11157   if test -n "$ac_tool_prefix"; then
11158   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11159 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161 $as_echo_n "checking for $ac_word... " >&6; }
11162 if ${ac_cv_prog_DLLTOOL+:} false; then :
11163   $as_echo_n "(cached) " >&6
11164 else
11165   if test -n "$DLLTOOL"; then
11166   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11167 else
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11170 do
11171   IFS=$as_save_IFS
11172   test -z "$as_dir" && as_dir=.
11173     for ac_exec_ext in '' $ac_executable_extensions; do
11174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11175     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11177     break 2
11178   fi
11179 done
11180   done
11181 IFS=$as_save_IFS
11182
11183 fi
11184 fi
11185 DLLTOOL=$ac_cv_prog_DLLTOOL
11186 if test -n "$DLLTOOL"; then
11187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11188 $as_echo "$DLLTOOL" >&6; }
11189 else
11190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191 $as_echo "no" >&6; }
11192 fi
11193
11194
11195 fi
11196 if test -z "$ac_cv_prog_DLLTOOL"; then
11197   ac_ct_DLLTOOL=$DLLTOOL
11198   # Extract the first word of "dlltool", so it can be a program name with args.
11199 set dummy dlltool; ac_word=$2
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201 $as_echo_n "checking for $ac_word... " >&6; }
11202 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11203   $as_echo_n "(cached) " >&6
11204 else
11205   if test -n "$ac_ct_DLLTOOL"; then
11206   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11207 else
11208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209 for as_dir in $PATH
11210 do
11211   IFS=$as_save_IFS
11212   test -z "$as_dir" && as_dir=.
11213     for ac_exec_ext in '' $ac_executable_extensions; do
11214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11215     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217     break 2
11218   fi
11219 done
11220   done
11221 IFS=$as_save_IFS
11222
11223 fi
11224 fi
11225 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11226 if test -n "$ac_ct_DLLTOOL"; then
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11228 $as_echo "$ac_ct_DLLTOOL" >&6; }
11229 else
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11232 fi
11233
11234   if test "x$ac_ct_DLLTOOL" = x; then
11235     DLLTOOL="false"
11236   else
11237     case $cross_compiling:$ac_tool_warned in
11238 yes:)
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11241 ac_tool_warned=yes ;;
11242 esac
11243     DLLTOOL=$ac_ct_DLLTOOL
11244   fi
11245 else
11246   DLLTOOL="$ac_cv_prog_DLLTOOL"
11247 fi
11248
11249   if test -n "$ac_tool_prefix"; then
11250   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11251 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11253 $as_echo_n "checking for $ac_word... " >&6; }
11254 if ${ac_cv_prog_OBJDUMP+:} false; then :
11255   $as_echo_n "(cached) " >&6
11256 else
11257   if test -n "$OBJDUMP"; then
11258   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11259 else
11260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261 for as_dir in $PATH
11262 do
11263   IFS=$as_save_IFS
11264   test -z "$as_dir" && as_dir=.
11265     for ac_exec_ext in '' $ac_executable_extensions; do
11266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11267     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11269     break 2
11270   fi
11271 done
11272   done
11273 IFS=$as_save_IFS
11274
11275 fi
11276 fi
11277 OBJDUMP=$ac_cv_prog_OBJDUMP
11278 if test -n "$OBJDUMP"; then
11279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11280 $as_echo "$OBJDUMP" >&6; }
11281 else
11282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283 $as_echo "no" >&6; }
11284 fi
11285
11286
11287 fi
11288 if test -z "$ac_cv_prog_OBJDUMP"; then
11289   ac_ct_OBJDUMP=$OBJDUMP
11290   # Extract the first word of "objdump", so it can be a program name with args.
11291 set dummy objdump; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11295   $as_echo_n "(cached) " >&6
11296 else
11297   if test -n "$ac_ct_OBJDUMP"; then
11298   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11299 else
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11302 do
11303   IFS=$as_save_IFS
11304   test -z "$as_dir" && as_dir=.
11305     for ac_exec_ext in '' $ac_executable_extensions; do
11306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11309     break 2
11310   fi
11311 done
11312   done
11313 IFS=$as_save_IFS
11314
11315 fi
11316 fi
11317 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11318 if test -n "$ac_ct_OBJDUMP"; then
11319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11320 $as_echo "$ac_ct_OBJDUMP" >&6; }
11321 else
11322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11324 fi
11325
11326   if test "x$ac_ct_OBJDUMP" = x; then
11327     OBJDUMP="false"
11328   else
11329     case $cross_compiling:$ac_tool_warned in
11330 yes:)
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11333 ac_tool_warned=yes ;;
11334 esac
11335     OBJDUMP=$ac_ct_OBJDUMP
11336   fi
11337 else
11338   OBJDUMP="$ac_cv_prog_OBJDUMP"
11339 fi
11340
11341   ;;
11342 esac
11343
11344 test -z "$AS" && AS=as
11345
11346
11347
11348
11349
11350 test -z "$DLLTOOL" && DLLTOOL=dlltool
11351
11352
11353
11354
11355
11356 test -z "$OBJDUMP" && OBJDUMP=objdump
11357
11358
11359
11360
11361
11362
11363
11364         enable_dlopen=no
11365
11366
11367
11368             # Check whether --enable-shared was given.
11369 if test "${enable_shared+set}" = set; then :
11370   enableval=$enable_shared; p=${PACKAGE-default}
11371     case $enableval in
11372     yes) enable_shared=yes ;;
11373     no) enable_shared=no ;;
11374     *)
11375       enable_shared=no
11376       # Look at the argument we got.  We use all the common list separators.
11377       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11378       for pkg in $enableval; do
11379         IFS=$lt_save_ifs
11380         if test "X$pkg" = "X$p"; then
11381           enable_shared=yes
11382         fi
11383       done
11384       IFS=$lt_save_ifs
11385       ;;
11386     esac
11387 else
11388   enable_shared=yes
11389 fi
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399   # Check whether --enable-static was given.
11400 if test "${enable_static+set}" = set; then :
11401   enableval=$enable_static; p=${PACKAGE-default}
11402     case $enableval in
11403     yes) enable_static=yes ;;
11404     no) enable_static=no ;;
11405     *)
11406      enable_static=no
11407       # Look at the argument we got.  We use all the common list separators.
11408       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11409       for pkg in $enableval; do
11410         IFS=$lt_save_ifs
11411         if test "X$pkg" = "X$p"; then
11412           enable_static=yes
11413         fi
11414       done
11415       IFS=$lt_save_ifs
11416       ;;
11417     esac
11418 else
11419   enable_static=yes
11420 fi
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431 # Check whether --with-pic was given.
11432 if test "${with_pic+set}" = set; then :
11433   withval=$with_pic; lt_p=${PACKAGE-default}
11434     case $withval in
11435     yes|no) pic_mode=$withval ;;
11436     *)
11437       pic_mode=default
11438       # Look at the argument we got.  We use all the common list separators.
11439       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11440       for lt_pkg in $withval; do
11441         IFS=$lt_save_ifs
11442         if test "X$lt_pkg" = "X$lt_p"; then
11443           pic_mode=yes
11444         fi
11445       done
11446       IFS=$lt_save_ifs
11447       ;;
11448     esac
11449 else
11450   pic_mode=default
11451 fi
11452
11453
11454
11455
11456
11457
11458
11459
11460   # Check whether --enable-fast-install was given.
11461 if test "${enable_fast_install+set}" = set; then :
11462   enableval=$enable_fast_install; p=${PACKAGE-default}
11463     case $enableval in
11464     yes) enable_fast_install=yes ;;
11465     no) enable_fast_install=no ;;
11466     *)
11467       enable_fast_install=no
11468       # Look at the argument we got.  We use all the common list separators.
11469       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11470       for pkg in $enableval; do
11471         IFS=$lt_save_ifs
11472         if test "X$pkg" = "X$p"; then
11473           enable_fast_install=yes
11474         fi
11475       done
11476       IFS=$lt_save_ifs
11477       ;;
11478     esac
11479 else
11480   enable_fast_install=yes
11481 fi
11482
11483
11484
11485
11486
11487
11488
11489
11490   shared_archive_member_spec=
11491 case $host,$enable_shared in
11492 power*-*-aix[5-9]*,yes)
11493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11494 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11495
11496 # Check whether --with-aix-soname was given.
11497 if test "${with_aix_soname+set}" = set; then :
11498   withval=$with_aix_soname; case $withval in
11499     aix|svr4|both)
11500       ;;
11501     *)
11502       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11503       ;;
11504     esac
11505     lt_cv_with_aix_soname=$with_aix_soname
11506 else
11507   if ${lt_cv_with_aix_soname+:} false; then :
11508   $as_echo_n "(cached) " >&6
11509 else
11510   lt_cv_with_aix_soname=aix
11511 fi
11512
11513     with_aix_soname=$lt_cv_with_aix_soname
11514 fi
11515
11516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11517 $as_echo "$with_aix_soname" >&6; }
11518   if test aix != "$with_aix_soname"; then
11519     # For the AIX way of multilib, we name the shared archive member
11520     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11521     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11522     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11523     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11524     if test 64 = "${OBJECT_MODE-32}"; then
11525       shared_archive_member_spec=shr_64
11526     else
11527       shared_archive_member_spec=shr
11528     fi
11529   fi
11530   ;;
11531 *)
11532   with_aix_soname=aix
11533   ;;
11534 esac
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545 # This can be used to rebuild libtool when needed
11546 LIBTOOL_DEPS=$ltmain
11547
11548 # Always use our own libtool.
11549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580 test -z "$LN_S" && LN_S="ln -s"
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595 if test -n "${ZSH_VERSION+set}"; then
11596    setopt NO_GLOB_SUBST
11597 fi
11598
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11600 $as_echo_n "checking for objdir... " >&6; }
11601 if ${lt_cv_objdir+:} false; then :
11602   $as_echo_n "(cached) " >&6
11603 else
11604   rm -f .libs 2>/dev/null
11605 mkdir .libs 2>/dev/null
11606 if test -d .libs; then
11607   lt_cv_objdir=.libs
11608 else
11609   # MS-DOS does not allow filenames that begin with a dot.
11610   lt_cv_objdir=_libs
11611 fi
11612 rmdir .libs 2>/dev/null
11613 fi
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11615 $as_echo "$lt_cv_objdir" >&6; }
11616 objdir=$lt_cv_objdir
11617
11618
11619
11620
11621
11622 cat >>confdefs.h <<_ACEOF
11623 #define LT_OBJDIR "$lt_cv_objdir/"
11624 _ACEOF
11625
11626
11627
11628
11629 case $host_os in
11630 aix3*)
11631   # AIX sometimes has problems with the GCC collect2 program.  For some
11632   # reason, if we set the COLLECT_NAMES environment variable, the problems
11633   # vanish in a puff of smoke.
11634   if test set != "${COLLECT_NAMES+set}"; then
11635     COLLECT_NAMES=
11636     export COLLECT_NAMES
11637   fi
11638   ;;
11639 esac
11640
11641 # Global variables:
11642 ofile=libtool
11643 can_build_shared=yes
11644
11645 # All known linkers require a '.a' archive for static linking (except MSVC,
11646 # which needs '.lib').
11647 libext=a
11648
11649 with_gnu_ld=$lt_cv_prog_gnu_ld
11650
11651 old_CC=$CC
11652 old_CFLAGS=$CFLAGS
11653
11654 # Set sane defaults for various variables
11655 test -z "$CC" && CC=cc
11656 test -z "$LTCC" && LTCC=$CC
11657 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11658 test -z "$LD" && LD=ld
11659 test -z "$ac_objext" && ac_objext=o
11660
11661 func_cc_basename $compiler
11662 cc_basename=$func_cc_basename_result
11663
11664
11665 # Only perform the check for file, if the check method requires it
11666 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11667 case $deplibs_check_method in
11668 file_magic*)
11669   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11671 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11672 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11673   $as_echo_n "(cached) " >&6
11674 else
11675   case $MAGIC_CMD in
11676 [\\/*] |  ?:[\\/]*)
11677   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11678   ;;
11679 *)
11680   lt_save_MAGIC_CMD=$MAGIC_CMD
11681   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11682   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11683   for ac_dir in $ac_dummy; do
11684     IFS=$lt_save_ifs
11685     test -z "$ac_dir" && ac_dir=.
11686     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11687       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11688       if test -n "$file_magic_test_file"; then
11689         case $deplibs_check_method in
11690         "file_magic "*)
11691           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11692           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11693           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11694             $EGREP "$file_magic_regex" > /dev/null; then
11695             :
11696           else
11697             cat <<_LT_EOF 1>&2
11698
11699 *** Warning: the command libtool uses to detect shared libraries,
11700 *** $file_magic_cmd, produces output that libtool cannot recognize.
11701 *** The result is that libtool may fail to recognize shared libraries
11702 *** as such.  This will affect the creation of libtool libraries that
11703 *** depend on shared libraries, but programs linked with such libtool
11704 *** libraries will work regardless of this problem.  Nevertheless, you
11705 *** may want to report the problem to your system manager and/or to
11706 *** bug-libtool@gnu.org
11707
11708 _LT_EOF
11709           fi ;;
11710         esac
11711       fi
11712       break
11713     fi
11714   done
11715   IFS=$lt_save_ifs
11716   MAGIC_CMD=$lt_save_MAGIC_CMD
11717   ;;
11718 esac
11719 fi
11720
11721 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11722 if test -n "$MAGIC_CMD"; then
11723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11724 $as_echo "$MAGIC_CMD" >&6; }
11725 else
11726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11728 fi
11729
11730
11731
11732
11733
11734 if test -z "$lt_cv_path_MAGIC_CMD"; then
11735   if test -n "$ac_tool_prefix"; then
11736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11737 $as_echo_n "checking for file... " >&6; }
11738 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11739   $as_echo_n "(cached) " >&6
11740 else
11741   case $MAGIC_CMD in
11742 [\\/*] |  ?:[\\/]*)
11743   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11744   ;;
11745 *)
11746   lt_save_MAGIC_CMD=$MAGIC_CMD
11747   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11748   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11749   for ac_dir in $ac_dummy; do
11750     IFS=$lt_save_ifs
11751     test -z "$ac_dir" && ac_dir=.
11752     if test -f "$ac_dir/file"; then
11753       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11754       if test -n "$file_magic_test_file"; then
11755         case $deplibs_check_method in
11756         "file_magic "*)
11757           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11758           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11759           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11760             $EGREP "$file_magic_regex" > /dev/null; then
11761             :
11762           else
11763             cat <<_LT_EOF 1>&2
11764
11765 *** Warning: the command libtool uses to detect shared libraries,
11766 *** $file_magic_cmd, produces output that libtool cannot recognize.
11767 *** The result is that libtool may fail to recognize shared libraries
11768 *** as such.  This will affect the creation of libtool libraries that
11769 *** depend on shared libraries, but programs linked with such libtool
11770 *** libraries will work regardless of this problem.  Nevertheless, you
11771 *** may want to report the problem to your system manager and/or to
11772 *** bug-libtool@gnu.org
11773
11774 _LT_EOF
11775           fi ;;
11776         esac
11777       fi
11778       break
11779     fi
11780   done
11781   IFS=$lt_save_ifs
11782   MAGIC_CMD=$lt_save_MAGIC_CMD
11783   ;;
11784 esac
11785 fi
11786
11787 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11788 if test -n "$MAGIC_CMD"; then
11789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11790 $as_echo "$MAGIC_CMD" >&6; }
11791 else
11792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793 $as_echo "no" >&6; }
11794 fi
11795
11796
11797   else
11798     MAGIC_CMD=:
11799   fi
11800 fi
11801
11802   fi
11803   ;;
11804 esac
11805
11806 # Use C for the default configuration in the libtool script
11807
11808 lt_save_CC=$CC
11809 ac_ext=c
11810 ac_cpp='$CPP $CPPFLAGS'
11811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11814
11815
11816 # Source file extension for C test sources.
11817 ac_ext=c
11818
11819 # Object file extension for compiled C test sources.
11820 objext=o
11821 objext=$objext
11822
11823 # Code to be used in simple compile tests
11824 lt_simple_compile_test_code="int some_variable = 0;"
11825
11826 # Code to be used in simple link tests
11827 lt_simple_link_test_code='int main(){return(0);}'
11828
11829
11830
11831
11832
11833
11834
11835 # If no C compiler was specified, use CC.
11836 LTCC=${LTCC-"$CC"}
11837
11838 # If no C compiler flags were specified, use CFLAGS.
11839 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11840
11841 # Allow CC to be a program name with arguments.
11842 compiler=$CC
11843
11844 # Save the default compiler, since it gets overwritten when the other
11845 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11846 compiler_DEFAULT=$CC
11847
11848 # save warnings/boilerplate of simple test code
11849 ac_outfile=conftest.$ac_objext
11850 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11851 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11852 _lt_compiler_boilerplate=`cat conftest.err`
11853 $RM conftest*
11854
11855 ac_outfile=conftest.$ac_objext
11856 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11857 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11858 _lt_linker_boilerplate=`cat conftest.err`
11859 $RM -r conftest*
11860
11861
11862 ## CAVEAT EMPTOR:
11863 ## There is no encapsulation within the following macros, do not change
11864 ## the running order or otherwise move them around unless you know exactly
11865 ## what you are doing...
11866 if test -n "$compiler"; then
11867
11868 lt_prog_compiler_no_builtin_flag=
11869
11870 if test yes = "$GCC"; then
11871   case $cc_basename in
11872   nvcc*)
11873     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11874   *)
11875     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11876   esac
11877
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11879 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11880 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11881   $as_echo_n "(cached) " >&6
11882 else
11883   lt_cv_prog_compiler_rtti_exceptions=no
11884    ac_outfile=conftest.$ac_objext
11885    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11886    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11887    # Insert the option either (1) after the last *FLAGS variable, or
11888    # (2) before a word containing "conftest.", or (3) at the end.
11889    # Note that $ac_compile itself does not contain backslashes and begins
11890    # with a dollar sign (not a hyphen), so the echo should work correctly.
11891    # The option is referenced via a variable to avoid confusing sed.
11892    lt_compile=`echo "$ac_compile" | $SED \
11893    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11895    -e 's:$: $lt_compiler_flag:'`
11896    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11897    (eval "$lt_compile" 2>conftest.err)
11898    ac_status=$?
11899    cat conftest.err >&5
11900    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901    if (exit $ac_status) && test -s "$ac_outfile"; then
11902      # The compiler can only warn and ignore the option if not recognized
11903      # So say no if there are warnings other than the usual output.
11904      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11905      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11906      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11907        lt_cv_prog_compiler_rtti_exceptions=yes
11908      fi
11909    fi
11910    $RM conftest*
11911
11912 fi
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11914 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11915
11916 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11917     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11918 else
11919     :
11920 fi
11921
11922 fi
11923
11924
11925
11926
11927
11928
11929   lt_prog_compiler_wl=
11930 lt_prog_compiler_pic=
11931 lt_prog_compiler_static=
11932
11933
11934   if test yes = "$GCC"; then
11935     lt_prog_compiler_wl='-Wl,'
11936     lt_prog_compiler_static='-static'
11937
11938     case $host_os in
11939       aix*)
11940       # All AIX code is PIC.
11941       if test ia64 = "$host_cpu"; then
11942         # AIX 5 now supports IA64 processor
11943         lt_prog_compiler_static='-Bstatic'
11944       fi
11945       lt_prog_compiler_pic='-fPIC'
11946       ;;
11947
11948     amigaos*)
11949       case $host_cpu in
11950       powerpc)
11951             # see comment about AmigaOS4 .so support
11952             lt_prog_compiler_pic='-fPIC'
11953         ;;
11954       m68k)
11955             # FIXME: we need at least 68020 code to build shared libraries, but
11956             # adding the '-m68020' flag to GCC prevents building anything better,
11957             # like '-m68040'.
11958             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11959         ;;
11960       esac
11961       ;;
11962
11963     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11964       # PIC is the default for these OSes.
11965       ;;
11966
11967     mingw* | cygwin* | pw32* | os2* | cegcc*)
11968       # This hack is so that the source file can tell whether it is being
11969       # built for inclusion in a dll (and should export symbols for example).
11970       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11971       # (--disable-auto-import) libraries
11972       lt_prog_compiler_pic='-DDLL_EXPORT'
11973       case $host_os in
11974       os2*)
11975         lt_prog_compiler_static='$wl-static'
11976         ;;
11977       esac
11978       ;;
11979
11980     darwin* | rhapsody*)
11981       # PIC is the default on this platform
11982       # Common symbols not allowed in MH_DYLIB files
11983       lt_prog_compiler_pic='-fno-common'
11984       ;;
11985
11986     haiku*)
11987       # PIC is the default for Haiku.
11988       # The "-static" flag exists, but is broken.
11989       lt_prog_compiler_static=
11990       ;;
11991
11992     hpux*)
11993       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11994       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11995       # sets the default TLS model and affects inlining.
11996       case $host_cpu in
11997       hppa*64*)
11998         # +Z the default
11999         ;;
12000       *)
12001         lt_prog_compiler_pic='-fPIC'
12002         ;;
12003       esac
12004       ;;
12005
12006     interix[3-9]*)
12007       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12008       # Instead, we relocate shared libraries at runtime.
12009       ;;
12010
12011     msdosdjgpp*)
12012       # Just because we use GCC doesn't mean we suddenly get shared libraries
12013       # on systems that don't support them.
12014       lt_prog_compiler_can_build_shared=no
12015       enable_shared=no
12016       ;;
12017
12018     *nto* | *qnx*)
12019       # QNX uses GNU C++, but need to define -shared option too, otherwise
12020       # it will coredump.
12021       lt_prog_compiler_pic='-fPIC -shared'
12022       ;;
12023
12024     sysv4*MP*)
12025       if test -d /usr/nec; then
12026         lt_prog_compiler_pic=-Kconform_pic
12027       fi
12028       ;;
12029
12030     *)
12031       lt_prog_compiler_pic='-fPIC'
12032       ;;
12033     esac
12034
12035     case $cc_basename in
12036     nvcc*) # Cuda Compiler Driver 2.2
12037       lt_prog_compiler_wl='-Xlinker '
12038       if test -n "$lt_prog_compiler_pic"; then
12039         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12040       fi
12041       ;;
12042     esac
12043   else
12044     # PORTME Check for flag to pass linker flags through the system compiler.
12045     case $host_os in
12046     aix*)
12047       lt_prog_compiler_wl='-Wl,'
12048       if test ia64 = "$host_cpu"; then
12049         # AIX 5 now supports IA64 processor
12050         lt_prog_compiler_static='-Bstatic'
12051       else
12052         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12053       fi
12054       ;;
12055
12056     darwin* | rhapsody*)
12057       # PIC is the default on this platform
12058       # Common symbols not allowed in MH_DYLIB files
12059       lt_prog_compiler_pic='-fno-common'
12060       case $cc_basename in
12061       nagfor*)
12062         # NAG Fortran compiler
12063         lt_prog_compiler_wl='-Wl,-Wl,,'
12064         lt_prog_compiler_pic='-PIC'
12065         lt_prog_compiler_static='-Bstatic'
12066         ;;
12067       esac
12068       ;;
12069
12070     mingw* | cygwin* | pw32* | os2* | cegcc*)
12071       # This hack is so that the source file can tell whether it is being
12072       # built for inclusion in a dll (and should export symbols for example).
12073       lt_prog_compiler_pic='-DDLL_EXPORT'
12074       case $host_os in
12075       os2*)
12076         lt_prog_compiler_static='$wl-static'
12077         ;;
12078       esac
12079       ;;
12080
12081     hpux9* | hpux10* | hpux11*)
12082       lt_prog_compiler_wl='-Wl,'
12083       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12084       # not for PA HP-UX.
12085       case $host_cpu in
12086       hppa*64*|ia64*)
12087         # +Z the default
12088         ;;
12089       *)
12090         lt_prog_compiler_pic='+Z'
12091         ;;
12092       esac
12093       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12094       lt_prog_compiler_static='$wl-a ${wl}archive'
12095       ;;
12096
12097     irix5* | irix6* | nonstopux*)
12098       lt_prog_compiler_wl='-Wl,'
12099       # PIC (with -KPIC) is the default.
12100       lt_prog_compiler_static='-non_shared'
12101       ;;
12102
12103     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12104       case $cc_basename in
12105       # old Intel for x86_64, which still supported -KPIC.
12106       ecc*)
12107         lt_prog_compiler_wl='-Wl,'
12108         lt_prog_compiler_pic='-KPIC'
12109         lt_prog_compiler_static='-static'
12110         ;;
12111       # icc used to be incompatible with GCC.
12112       # ICC 10 doesn't accept -KPIC any more.
12113       icc* | ifort*)
12114         lt_prog_compiler_wl='-Wl,'
12115         lt_prog_compiler_pic='-fPIC'
12116         lt_prog_compiler_static='-static'
12117         ;;
12118       # Lahey Fortran 8.1.
12119       lf95*)
12120         lt_prog_compiler_wl='-Wl,'
12121         lt_prog_compiler_pic='--shared'
12122         lt_prog_compiler_static='--static'
12123         ;;
12124       nagfor*)
12125         # NAG Fortran compiler
12126         lt_prog_compiler_wl='-Wl,-Wl,,'
12127         lt_prog_compiler_pic='-PIC'
12128         lt_prog_compiler_static='-Bstatic'
12129         ;;
12130       tcc*)
12131         # Fabrice Bellard et al's Tiny C Compiler
12132         lt_prog_compiler_wl='-Wl,'
12133         lt_prog_compiler_pic='-fPIC'
12134         lt_prog_compiler_static='-static'
12135         ;;
12136       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12137         # Portland Group compilers (*not* the Pentium gcc compiler,
12138         # which looks to be a dead project)
12139         lt_prog_compiler_wl='-Wl,'
12140         lt_prog_compiler_pic='-fpic'
12141         lt_prog_compiler_static='-Bstatic'
12142         ;;
12143       ccc*)
12144         lt_prog_compiler_wl='-Wl,'
12145         # All Alpha code is PIC.
12146         lt_prog_compiler_static='-non_shared'
12147         ;;
12148       xl* | bgxl* | bgf* | mpixl*)
12149         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12150         lt_prog_compiler_wl='-Wl,'
12151         lt_prog_compiler_pic='-qpic'
12152         lt_prog_compiler_static='-qstaticlink'
12153         ;;
12154       *)
12155         case `$CC -V 2>&1 | sed 5q` in
12156         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12157           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12158           lt_prog_compiler_pic='-KPIC'
12159           lt_prog_compiler_static='-Bstatic'
12160           lt_prog_compiler_wl=''
12161           ;;
12162         *Sun\ F* | *Sun*Fortran*)
12163           lt_prog_compiler_pic='-KPIC'
12164           lt_prog_compiler_static='-Bstatic'
12165           lt_prog_compiler_wl='-Qoption ld '
12166           ;;
12167         *Sun\ C*)
12168           # Sun C 5.9
12169           lt_prog_compiler_pic='-KPIC'
12170           lt_prog_compiler_static='-Bstatic'
12171           lt_prog_compiler_wl='-Wl,'
12172           ;;
12173         *Intel*\ [CF]*Compiler*)
12174           lt_prog_compiler_wl='-Wl,'
12175           lt_prog_compiler_pic='-fPIC'
12176           lt_prog_compiler_static='-static'
12177           ;;
12178         *Portland\ Group*)
12179           lt_prog_compiler_wl='-Wl,'
12180           lt_prog_compiler_pic='-fpic'
12181           lt_prog_compiler_static='-Bstatic'
12182           ;;
12183         esac
12184         ;;
12185       esac
12186       ;;
12187
12188     newsos6)
12189       lt_prog_compiler_pic='-KPIC'
12190       lt_prog_compiler_static='-Bstatic'
12191       ;;
12192
12193     *nto* | *qnx*)
12194       # QNX uses GNU C++, but need to define -shared option too, otherwise
12195       # it will coredump.
12196       lt_prog_compiler_pic='-fPIC -shared'
12197       ;;
12198
12199     osf3* | osf4* | osf5*)
12200       lt_prog_compiler_wl='-Wl,'
12201       # All OSF/1 code is PIC.
12202       lt_prog_compiler_static='-non_shared'
12203       ;;
12204
12205     rdos*)
12206       lt_prog_compiler_static='-non_shared'
12207       ;;
12208
12209     solaris*)
12210       lt_prog_compiler_pic='-KPIC'
12211       lt_prog_compiler_static='-Bstatic'
12212       case $cc_basename in
12213       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12214         lt_prog_compiler_wl='-Qoption ld ';;
12215       *)
12216         lt_prog_compiler_wl='-Wl,';;
12217       esac
12218       ;;
12219
12220     sunos4*)
12221       lt_prog_compiler_wl='-Qoption ld '
12222       lt_prog_compiler_pic='-PIC'
12223       lt_prog_compiler_static='-Bstatic'
12224       ;;
12225
12226     sysv4 | sysv4.2uw2* | sysv4.3*)
12227       lt_prog_compiler_wl='-Wl,'
12228       lt_prog_compiler_pic='-KPIC'
12229       lt_prog_compiler_static='-Bstatic'
12230       ;;
12231
12232     sysv4*MP*)
12233       if test -d /usr/nec; then
12234         lt_prog_compiler_pic='-Kconform_pic'
12235         lt_prog_compiler_static='-Bstatic'
12236       fi
12237       ;;
12238
12239     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12240       lt_prog_compiler_wl='-Wl,'
12241       lt_prog_compiler_pic='-KPIC'
12242       lt_prog_compiler_static='-Bstatic'
12243       ;;
12244
12245     unicos*)
12246       lt_prog_compiler_wl='-Wl,'
12247       lt_prog_compiler_can_build_shared=no
12248       ;;
12249
12250     uts4*)
12251       lt_prog_compiler_pic='-pic'
12252       lt_prog_compiler_static='-Bstatic'
12253       ;;
12254
12255     *)
12256       lt_prog_compiler_can_build_shared=no
12257       ;;
12258     esac
12259   fi
12260
12261 case $host_os in
12262   # For platforms that do not support PIC, -DPIC is meaningless:
12263   *djgpp*)
12264     lt_prog_compiler_pic=
12265     ;;
12266   *)
12267     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12268     ;;
12269 esac
12270
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12272 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12273 if ${lt_cv_prog_compiler_pic+:} false; then :
12274   $as_echo_n "(cached) " >&6
12275 else
12276   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12277 fi
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12279 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12280 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12281
12282 #
12283 # Check to make sure the PIC flag actually works.
12284 #
12285 if test -n "$lt_prog_compiler_pic"; then
12286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12287 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12288 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12289   $as_echo_n "(cached) " >&6
12290 else
12291   lt_cv_prog_compiler_pic_works=no
12292    ac_outfile=conftest.$ac_objext
12293    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12294    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12295    # Insert the option either (1) after the last *FLAGS variable, or
12296    # (2) before a word containing "conftest.", or (3) at the end.
12297    # Note that $ac_compile itself does not contain backslashes and begins
12298    # with a dollar sign (not a hyphen), so the echo should work correctly.
12299    # The option is referenced via a variable to avoid confusing sed.
12300    lt_compile=`echo "$ac_compile" | $SED \
12301    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12302    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12303    -e 's:$: $lt_compiler_flag:'`
12304    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12305    (eval "$lt_compile" 2>conftest.err)
12306    ac_status=$?
12307    cat conftest.err >&5
12308    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309    if (exit $ac_status) && test -s "$ac_outfile"; then
12310      # The compiler can only warn and ignore the option if not recognized
12311      # So say no if there are warnings other than the usual output.
12312      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12313      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12314      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12315        lt_cv_prog_compiler_pic_works=yes
12316      fi
12317    fi
12318    $RM conftest*
12319
12320 fi
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12322 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12323
12324 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12325     case $lt_prog_compiler_pic in
12326      "" | " "*) ;;
12327      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12328      esac
12329 else
12330     lt_prog_compiler_pic=
12331      lt_prog_compiler_can_build_shared=no
12332 fi
12333
12334 fi
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346 #
12347 # Check to make sure the static flag actually works.
12348 #
12349 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12351 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12352 if ${lt_cv_prog_compiler_static_works+:} false; then :
12353   $as_echo_n "(cached) " >&6
12354 else
12355   lt_cv_prog_compiler_static_works=no
12356    save_LDFLAGS=$LDFLAGS
12357    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12358    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12359    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12360      # The linker can only warn and ignore the option if not recognized
12361      # So say no if there are warnings
12362      if test -s conftest.err; then
12363        # Append any errors to the config.log.
12364        cat conftest.err 1>&5
12365        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12366        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12367        if diff conftest.exp conftest.er2 >/dev/null; then
12368          lt_cv_prog_compiler_static_works=yes
12369        fi
12370      else
12371        lt_cv_prog_compiler_static_works=yes
12372      fi
12373    fi
12374    $RM -r conftest*
12375    LDFLAGS=$save_LDFLAGS
12376
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12379 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12380
12381 if test yes = "$lt_cv_prog_compiler_static_works"; then
12382     :
12383 else
12384     lt_prog_compiler_static=
12385 fi
12386
12387
12388
12389
12390
12391
12392
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12394 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12395 if ${lt_cv_prog_compiler_c_o+:} false; then :
12396   $as_echo_n "(cached) " >&6
12397 else
12398   lt_cv_prog_compiler_c_o=no
12399    $RM -r conftest 2>/dev/null
12400    mkdir conftest
12401    cd conftest
12402    mkdir out
12403    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12404
12405    lt_compiler_flag="-o out/conftest2.$ac_objext"
12406    # Insert the option either (1) after the last *FLAGS variable, or
12407    # (2) before a word containing "conftest.", or (3) at the end.
12408    # Note that $ac_compile itself does not contain backslashes and begins
12409    # with a dollar sign (not a hyphen), so the echo should work correctly.
12410    lt_compile=`echo "$ac_compile" | $SED \
12411    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12413    -e 's:$: $lt_compiler_flag:'`
12414    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12415    (eval "$lt_compile" 2>out/conftest.err)
12416    ac_status=$?
12417    cat out/conftest.err >&5
12418    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12420    then
12421      # The compiler can only warn and ignore the option if not recognized
12422      # So say no if there are warnings
12423      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12424      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12425      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12426        lt_cv_prog_compiler_c_o=yes
12427      fi
12428    fi
12429    chmod u+w . 2>&5
12430    $RM conftest*
12431    # SGI C++ compiler will create directory out/ii_files/ for
12432    # template instantiation
12433    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12434    $RM out/* && rmdir out
12435    cd ..
12436    $RM -r conftest
12437    $RM conftest*
12438
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12441 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12442
12443
12444
12445
12446
12447
12448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12449 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12450 if ${lt_cv_prog_compiler_c_o+:} false; then :
12451   $as_echo_n "(cached) " >&6
12452 else
12453   lt_cv_prog_compiler_c_o=no
12454    $RM -r conftest 2>/dev/null
12455    mkdir conftest
12456    cd conftest
12457    mkdir out
12458    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12459
12460    lt_compiler_flag="-o out/conftest2.$ac_objext"
12461    # Insert the option either (1) after the last *FLAGS variable, or
12462    # (2) before a word containing "conftest.", or (3) at the end.
12463    # Note that $ac_compile itself does not contain backslashes and begins
12464    # with a dollar sign (not a hyphen), so the echo should work correctly.
12465    lt_compile=`echo "$ac_compile" | $SED \
12466    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12467    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12468    -e 's:$: $lt_compiler_flag:'`
12469    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12470    (eval "$lt_compile" 2>out/conftest.err)
12471    ac_status=$?
12472    cat out/conftest.err >&5
12473    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12475    then
12476      # The compiler can only warn and ignore the option if not recognized
12477      # So say no if there are warnings
12478      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12479      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12480      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12481        lt_cv_prog_compiler_c_o=yes
12482      fi
12483    fi
12484    chmod u+w . 2>&5
12485    $RM conftest*
12486    # SGI C++ compiler will create directory out/ii_files/ for
12487    # template instantiation
12488    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12489    $RM out/* && rmdir out
12490    cd ..
12491    $RM -r conftest
12492    $RM conftest*
12493
12494 fi
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12496 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12497
12498
12499
12500
12501 hard_links=nottested
12502 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12503   # do not overwrite the value of need_locks provided by the user
12504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12505 $as_echo_n "checking if we can lock with hard links... " >&6; }
12506   hard_links=yes
12507   $RM conftest*
12508   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12509   touch conftest.a
12510   ln conftest.a conftest.b 2>&5 || hard_links=no
12511   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12513 $as_echo "$hard_links" >&6; }
12514   if test no = "$hard_links"; then
12515     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12516 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12517     need_locks=warn
12518   fi
12519 else
12520   need_locks=no
12521 fi
12522
12523
12524
12525
12526
12527
12528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12529 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12530
12531   runpath_var=
12532   allow_undefined_flag=
12533   always_export_symbols=no
12534   archive_cmds=
12535   archive_expsym_cmds=
12536   compiler_needs_object=no
12537   enable_shared_with_static_runtimes=no
12538   export_dynamic_flag_spec=
12539   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12540   hardcode_automatic=no
12541   hardcode_direct=no
12542   hardcode_direct_absolute=no
12543   hardcode_libdir_flag_spec=
12544   hardcode_libdir_separator=
12545   hardcode_minus_L=no
12546   hardcode_shlibpath_var=unsupported
12547   inherit_rpath=no
12548   link_all_deplibs=unknown
12549   module_cmds=
12550   module_expsym_cmds=
12551   old_archive_from_new_cmds=
12552   old_archive_from_expsyms_cmds=
12553   thread_safe_flag_spec=
12554   whole_archive_flag_spec=
12555   # include_expsyms should be a list of space-separated symbols to be *always*
12556   # included in the symbol list
12557   include_expsyms=
12558   # exclude_expsyms can be an extended regexp of symbols to exclude
12559   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12560   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12561   # as well as any symbol that contains 'd'.
12562   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12563   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12564   # platforms (ab)use it in PIC code, but their linkers get confused if
12565   # the symbol is explicitly referenced.  Since portable code cannot
12566   # rely on this symbol name, it's probably fine to never include it in
12567   # preloaded symbol tables.
12568   # Exclude shared library initialization/finalization symbols.
12569   extract_expsyms_cmds=
12570
12571   case $host_os in
12572   cygwin* | mingw* | pw32* | cegcc*)
12573     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12574     # When not using gcc, we currently assume that we are using
12575     # Microsoft Visual C++.
12576     if test yes != "$GCC"; then
12577       with_gnu_ld=no
12578     fi
12579     ;;
12580   interix*)
12581     # we just hope/assume this is gcc and not c89 (= MSVC++)
12582     with_gnu_ld=yes
12583     ;;
12584   openbsd* | bitrig*)
12585     with_gnu_ld=no
12586     ;;
12587   linux* | k*bsd*-gnu | gnu*)
12588     link_all_deplibs=no
12589     ;;
12590   esac
12591
12592   ld_shlibs=yes
12593
12594   # On some targets, GNU ld is compatible enough with the native linker
12595   # that we're better off using the native interface for both.
12596   lt_use_gnu_ld_interface=no
12597   if test yes = "$with_gnu_ld"; then
12598     case $host_os in
12599       aix*)
12600         # The AIX port of GNU ld has always aspired to compatibility
12601         # with the native linker.  However, as the warning in the GNU ld
12602         # block says, versions before 2.19.5* couldn't really create working
12603         # shared libraries, regardless of the interface used.
12604         case `$LD -v 2>&1` in
12605           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12606           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12607           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12608           *)
12609             lt_use_gnu_ld_interface=yes
12610             ;;
12611         esac
12612         ;;
12613       *)
12614         lt_use_gnu_ld_interface=yes
12615         ;;
12616     esac
12617   fi
12618
12619   if test yes = "$lt_use_gnu_ld_interface"; then
12620     # If archive_cmds runs LD, not CC, wlarc should be empty
12621     wlarc='$wl'
12622
12623     # Set some defaults for GNU ld with shared library support. These
12624     # are reset later if shared libraries are not supported. Putting them
12625     # here allows them to be overridden if necessary.
12626     runpath_var=LD_RUN_PATH
12627     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12628     export_dynamic_flag_spec='$wl--export-dynamic'
12629     # ancient GNU ld didn't support --whole-archive et. al.
12630     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12631       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12632     else
12633       whole_archive_flag_spec=
12634     fi
12635     supports_anon_versioning=no
12636     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12637       *GNU\ gold*) supports_anon_versioning=yes ;;
12638       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12639       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12640       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12641       *\ 2.11.*) ;; # other 2.11 versions
12642       *) supports_anon_versioning=yes ;;
12643     esac
12644
12645     # See if GNU ld supports shared libraries.
12646     case $host_os in
12647     aix[3-9]*)
12648       # On AIX/PPC, the GNU linker is very broken
12649       if test ia64 != "$host_cpu"; then
12650         ld_shlibs=no
12651         cat <<_LT_EOF 1>&2
12652
12653 *** Warning: the GNU linker, at least up to release 2.19, is reported
12654 *** to be unable to reliably create shared libraries on AIX.
12655 *** Therefore, libtool is disabling shared libraries support.  If you
12656 *** really care for shared libraries, you may want to install binutils
12657 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12658 *** You will then need to restart the configuration process.
12659
12660 _LT_EOF
12661       fi
12662       ;;
12663
12664     amigaos*)
12665       case $host_cpu in
12666       powerpc)
12667             # see comment about AmigaOS4 .so support
12668             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12669             archive_expsym_cmds=''
12670         ;;
12671       m68k)
12672             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)'
12673             hardcode_libdir_flag_spec='-L$libdir'
12674             hardcode_minus_L=yes
12675         ;;
12676       esac
12677       ;;
12678
12679     beos*)
12680       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12681         allow_undefined_flag=unsupported
12682         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12683         # support --undefined.  This deserves some investigation.  FIXME
12684         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12685       else
12686         ld_shlibs=no
12687       fi
12688       ;;
12689
12690     cygwin* | mingw* | pw32* | cegcc*)
12691       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12692       # as there is no search path for DLLs.
12693       hardcode_libdir_flag_spec='-L$libdir'
12694       export_dynamic_flag_spec='$wl--export-all-symbols'
12695       allow_undefined_flag=unsupported
12696       always_export_symbols=no
12697       enable_shared_with_static_runtimes=yes
12698       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'
12699       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12700
12701       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12702         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12703         # If the export-symbols file already is a .def file, use it as
12704         # is; otherwise, prepend EXPORTS...
12705         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12706           cp $export_symbols $output_objdir/$soname.def;
12707         else
12708           echo EXPORTS > $output_objdir/$soname.def;
12709           cat $export_symbols >> $output_objdir/$soname.def;
12710         fi~
12711         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12712       else
12713         ld_shlibs=no
12714       fi
12715       ;;
12716
12717     haiku*)
12718       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12719       link_all_deplibs=yes
12720       ;;
12721
12722     os2*)
12723       hardcode_libdir_flag_spec='-L$libdir'
12724       hardcode_minus_L=yes
12725       allow_undefined_flag=unsupported
12726       shrext_cmds=.dll
12727       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12728         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12729         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12730         $ECHO EXPORTS >> $output_objdir/$libname.def~
12731         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12732         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12733         emximp -o $lib $output_objdir/$libname.def'
12734       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12735         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12736         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12737         $ECHO EXPORTS >> $output_objdir/$libname.def~
12738         prefix_cmds="$SED"~
12739         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12740           prefix_cmds="$prefix_cmds -e 1d";
12741         fi~
12742         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12743         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12744         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12745         emximp -o $lib $output_objdir/$libname.def'
12746       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12747       enable_shared_with_static_runtimes=yes
12748       ;;
12749
12750     interix[3-9]*)
12751       hardcode_direct=no
12752       hardcode_shlibpath_var=no
12753       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12754       export_dynamic_flag_spec='$wl-E'
12755       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12756       # Instead, shared libraries are loaded at an image base (0x10000000 by
12757       # default) and relocated if they conflict, which is a slow very memory
12758       # consuming and fragmenting process.  To avoid this, we pick a random,
12759       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12760       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12761       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12762       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'
12763       ;;
12764
12765     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12766       tmp_diet=no
12767       if test linux-dietlibc = "$host_os"; then
12768         case $cc_basename in
12769           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12770         esac
12771       fi
12772       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12773          && test no = "$tmp_diet"
12774       then
12775         tmp_addflag=' $pic_flag'
12776         tmp_sharedflag='-shared'
12777         case $cc_basename,$host_cpu in
12778         pgcc*)                          # Portland Group C compiler
12779           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'
12780           tmp_addflag=' $pic_flag'
12781           ;;
12782         pgf77* | pgf90* | pgf95* | pgfortran*)
12783                                         # Portland Group f77 and f90 compilers
12784           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'
12785           tmp_addflag=' $pic_flag -Mnomain' ;;
12786         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12787           tmp_addflag=' -i_dynamic' ;;
12788         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12789           tmp_addflag=' -i_dynamic -nofor_main' ;;
12790         ifc* | ifort*)                  # Intel Fortran compiler
12791           tmp_addflag=' -nofor_main' ;;
12792         lf95*)                          # Lahey Fortran 8.1
12793           whole_archive_flag_spec=
12794           tmp_sharedflag='--shared' ;;
12795         nagfor*)                        # NAGFOR 5.3
12796           tmp_sharedflag='-Wl,-shared' ;;
12797         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12798           tmp_sharedflag='-qmkshrobj'
12799           tmp_addflag= ;;
12800         nvcc*)  # Cuda Compiler Driver 2.2
12801           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'
12802           compiler_needs_object=yes
12803           ;;
12804         esac
12805         case `$CC -V 2>&1 | sed 5q` in
12806         *Sun\ C*)                       # Sun C 5.9
12807           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'
12808           compiler_needs_object=yes
12809           tmp_sharedflag='-G' ;;
12810         *Sun\ F*)                       # Sun Fortran 8.3
12811           tmp_sharedflag='-G' ;;
12812         esac
12813         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12814
12815         if test yes = "$supports_anon_versioning"; then
12816           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12817             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12818             echo "local: *; };" >> $output_objdir/$libname.ver~
12819             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12820         fi
12821
12822         case $cc_basename in
12823         tcc*)
12824           export_dynamic_flag_spec='-rdynamic'
12825           ;;
12826         xlf* | bgf* | bgxlf* | mpixlf*)
12827           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12828           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12829           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12830           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12831           if test yes = "$supports_anon_versioning"; then
12832             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12833               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12834               echo "local: *; };" >> $output_objdir/$libname.ver~
12835               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12836           fi
12837           ;;
12838         esac
12839       else
12840         ld_shlibs=no
12841       fi
12842       ;;
12843
12844     netbsd* | netbsdelf*-gnu)
12845       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12846         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12847         wlarc=
12848       else
12849         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12850         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12851       fi
12852       ;;
12853
12854     solaris*)
12855       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12856         ld_shlibs=no
12857         cat <<_LT_EOF 1>&2
12858
12859 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12860 *** create shared libraries on Solaris systems.  Therefore, libtool
12861 *** is disabling shared libraries support.  We urge you to upgrade GNU
12862 *** binutils to release 2.9.1 or newer.  Another option is to modify
12863 *** your PATH or compiler configuration so that the native linker is
12864 *** used, and then restart.
12865
12866 _LT_EOF
12867       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12868         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12869         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12870       else
12871         ld_shlibs=no
12872       fi
12873       ;;
12874
12875     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12876       case `$LD -v 2>&1` in
12877         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12878         ld_shlibs=no
12879         cat <<_LT_EOF 1>&2
12880
12881 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12882 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12883 *** is disabling shared libraries support.  We urge you to upgrade GNU
12884 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12885 *** your PATH or compiler configuration so that the native linker is
12886 *** used, and then restart.
12887
12888 _LT_EOF
12889         ;;
12890         *)
12891           # For security reasons, it is highly recommended that you always
12892           # use absolute paths for naming shared libraries, and exclude the
12893           # DT_RUNPATH tag from executables and libraries.  But doing so
12894           # requires that you compile everything twice, which is a pain.
12895           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12896             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12897             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12898             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12899           else
12900             ld_shlibs=no
12901           fi
12902         ;;
12903       esac
12904       ;;
12905
12906     sunos4*)
12907       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12908       wlarc=
12909       hardcode_direct=yes
12910       hardcode_shlibpath_var=no
12911       ;;
12912
12913     *)
12914       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12915         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12916         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12917       else
12918         ld_shlibs=no
12919       fi
12920       ;;
12921     esac
12922
12923     if test no = "$ld_shlibs"; then
12924       runpath_var=
12925       hardcode_libdir_flag_spec=
12926       export_dynamic_flag_spec=
12927       whole_archive_flag_spec=
12928     fi
12929   else
12930     # PORTME fill in a description of your system's linker (not GNU ld)
12931     case $host_os in
12932     aix3*)
12933       allow_undefined_flag=unsupported
12934       always_export_symbols=yes
12935       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'
12936       # Note: this linker hardcodes the directories in LIBPATH if there
12937       # are no directories specified by -L.
12938       hardcode_minus_L=yes
12939       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12940         # Neither direct hardcoding nor static linking is supported with a
12941         # broken collect2.
12942         hardcode_direct=unsupported
12943       fi
12944       ;;
12945
12946     aix[4-9]*)
12947       if test ia64 = "$host_cpu"; then
12948         # On IA64, the linker does run time linking by default, so we don't
12949         # have to do anything special.
12950         aix_use_runtimelinking=no
12951         exp_sym_flag='-Bexport'
12952         no_entry_flag=
12953       else
12954         # If we're using GNU nm, then we don't want the "-C" option.
12955         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12956         # Without the "-l" option, or with the "-B" option, AIX nm treats
12957         # weak defined symbols like other global defined symbols, whereas
12958         # GNU nm marks them as "W".
12959         # While the 'weak' keyword is ignored in the Export File, we need
12960         # it in the Import File for the 'aix-soname' feature, so we have
12961         # to replace the "-B" option with "-P" for AIX nm.
12962         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12963           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'
12964         else
12965           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'
12966         fi
12967         aix_use_runtimelinking=no
12968
12969         # Test if we are trying to use run time linking or normal
12970         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12971         # have runtime linking enabled, and use it for executables.
12972         # For shared libraries, we enable/disable runtime linking
12973         # depending on the kind of the shared library created -
12974         # when "with_aix_soname,aix_use_runtimelinking" is:
12975         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12976         # "aix,yes"  lib.so          shared, rtl:yes, for executables
12977         #            lib.a           static archive
12978         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12979         #            lib.a(lib.so.V) shared, rtl:no,  for executables
12980         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12981         #            lib.a(lib.so.V) shared, rtl:no
12982         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12983         #            lib.a           static archive
12984         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12985           for ld_flag in $LDFLAGS; do
12986           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12987             aix_use_runtimelinking=yes
12988             break
12989           fi
12990           done
12991           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12992             # With aix-soname=svr4, we create the lib.so.V shared archives only,
12993             # so we don't have lib.a shared libs to link our executables.
12994             # We have to force runtime linking in this case.
12995             aix_use_runtimelinking=yes
12996             LDFLAGS="$LDFLAGS -Wl,-brtl"
12997           fi
12998           ;;
12999         esac
13000
13001         exp_sym_flag='-bexport'
13002         no_entry_flag='-bnoentry'
13003       fi
13004
13005       # When large executables or shared objects are built, AIX ld can
13006       # have problems creating the table of contents.  If linking a library
13007       # or program results in "error TOC overflow" add -mminimal-toc to
13008       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13009       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13010
13011       archive_cmds=''
13012       hardcode_direct=yes
13013       hardcode_direct_absolute=yes
13014       hardcode_libdir_separator=':'
13015       link_all_deplibs=yes
13016       file_list_spec='$wl-f,'
13017       case $with_aix_soname,$aix_use_runtimelinking in
13018       aix,*) ;; # traditional, no import file
13019       svr4,* | *,yes) # use import file
13020         # The Import File defines what to hardcode.
13021         hardcode_direct=no
13022         hardcode_direct_absolute=no
13023         ;;
13024       esac
13025
13026       if test yes = "$GCC"; then
13027         case $host_os in aix4.[012]|aix4.[012].*)
13028         # We only want to do this on AIX 4.2 and lower, the check
13029         # below for broken collect2 doesn't work under 4.3+
13030           collect2name=`$CC -print-prog-name=collect2`
13031           if test -f "$collect2name" &&
13032            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13033           then
13034           # We have reworked collect2
13035           :
13036           else
13037           # We have old collect2
13038           hardcode_direct=unsupported
13039           # It fails to find uninstalled libraries when the uninstalled
13040           # path is not listed in the libpath.  Setting hardcode_minus_L
13041           # to unsupported forces relinking
13042           hardcode_minus_L=yes
13043           hardcode_libdir_flag_spec='-L$libdir'
13044           hardcode_libdir_separator=
13045           fi
13046           ;;
13047         esac
13048         shared_flag='-shared'
13049         if test yes = "$aix_use_runtimelinking"; then
13050           shared_flag="$shared_flag "'$wl-G'
13051         fi
13052         # Need to ensure runtime linking is disabled for the traditional
13053         # shared library, or the linker may eventually find shared libraries
13054         # /with/ Import File - we do not want to mix them.
13055         shared_flag_aix='-shared'
13056         shared_flag_svr4='-shared $wl-G'
13057       else
13058         # not using gcc
13059         if test ia64 = "$host_cpu"; then
13060         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13061         # chokes on -Wl,-G. The following line is correct:
13062           shared_flag='-G'
13063         else
13064           if test yes = "$aix_use_runtimelinking"; then
13065             shared_flag='$wl-G'
13066           else
13067             shared_flag='$wl-bM:SRE'
13068           fi
13069           shared_flag_aix='$wl-bM:SRE'
13070           shared_flag_svr4='$wl-G'
13071         fi
13072       fi
13073
13074       export_dynamic_flag_spec='$wl-bexpall'
13075       # It seems that -bexpall does not export symbols beginning with
13076       # underscore (_), so it is better to generate a list of symbols to export.
13077       always_export_symbols=yes
13078       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13079         # Warning - without using the other runtime loading flags (-brtl),
13080         # -berok will link without error, but may produce a broken library.
13081         allow_undefined_flag='-berok'
13082         # Determine the default libpath from the value encoded in an
13083         # empty executable.
13084         if test set = "${lt_cv_aix_libpath+set}"; then
13085   aix_libpath=$lt_cv_aix_libpath
13086 else
13087   if ${lt_cv_aix_libpath_+:} false; then :
13088   $as_echo_n "(cached) " >&6
13089 else
13090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h.  */
13092
13093 int main (void)
13094 {
13095
13096  ;
13097  return 0;
13098 }
13099 _ACEOF
13100 if ac_fn_c_try_link "$LINENO"; then :
13101
13102   lt_aix_libpath_sed='
13103       /Import File Strings/,/^$/ {
13104           /^0/ {
13105               s/^0  *\([^ ]*\) *$/\1/
13106               p
13107           }
13108       }'
13109   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13110   # Check for a 64-bit object if we didn't find anything.
13111   if test -z "$lt_cv_aix_libpath_"; then
13112     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13113   fi
13114 fi
13115 rm -f core conftest.err conftest.$ac_objext \
13116     conftest$ac_exeext conftest.$ac_ext
13117   if test -z "$lt_cv_aix_libpath_"; then
13118     lt_cv_aix_libpath_=/usr/lib:/lib
13119   fi
13120
13121 fi
13122
13123   aix_libpath=$lt_cv_aix_libpath_
13124 fi
13125
13126         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13127         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
13128       else
13129         if test ia64 = "$host_cpu"; then
13130           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13131           allow_undefined_flag="-z nodefs"
13132           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"
13133         else
13134          # Determine the default libpath from the value encoded in an
13135          # empty executable.
13136          if test set = "${lt_cv_aix_libpath+set}"; then
13137   aix_libpath=$lt_cv_aix_libpath
13138 else
13139   if ${lt_cv_aix_libpath_+:} false; then :
13140   $as_echo_n "(cached) " >&6
13141 else
13142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h.  */
13144
13145 int main (void)
13146 {
13147
13148  ;
13149  return 0;
13150 }
13151 _ACEOF
13152 if ac_fn_c_try_link "$LINENO"; then :
13153
13154   lt_aix_libpath_sed='
13155       /Import File Strings/,/^$/ {
13156           /^0/ {
13157               s/^0  *\([^ ]*\) *$/\1/
13158               p
13159           }
13160       }'
13161   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13162   # Check for a 64-bit object if we didn't find anything.
13163   if test -z "$lt_cv_aix_libpath_"; then
13164     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13165   fi
13166 fi
13167 rm -f core conftest.err conftest.$ac_objext \
13168     conftest$ac_exeext conftest.$ac_ext
13169   if test -z "$lt_cv_aix_libpath_"; then
13170     lt_cv_aix_libpath_=/usr/lib:/lib
13171   fi
13172
13173 fi
13174
13175   aix_libpath=$lt_cv_aix_libpath_
13176 fi
13177
13178          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13179           # Warning - without using the other run time loading flags,
13180           # -berok will link without error, but may produce a broken library.
13181           no_undefined_flag=' $wl-bernotok'
13182           allow_undefined_flag=' $wl-berok'
13183           if test yes = "$with_gnu_ld"; then
13184             # We only use this code for GNU lds that support --whole-archive.
13185             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13186           else
13187             # Exported symbols can be pulled into shared objects from archives
13188             whole_archive_flag_spec='$convenience'
13189           fi
13190           archive_cmds_need_lc=yes
13191           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13192           # -brtl affects multiple linker settings, -berok does not and is overridden later
13193           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13194           if test svr4 != "$with_aix_soname"; then
13195             # This is similar to how AIX traditionally builds its shared libraries.
13196             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'
13197           fi
13198           if test aix != "$with_aix_soname"; then
13199             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'
13200           else
13201             # used by -dlpreopen to get the symbols
13202             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13203           fi
13204           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13205         fi
13206       fi
13207       ;;
13208
13209     amigaos*)
13210       case $host_cpu in
13211       powerpc)
13212             # see comment about AmigaOS4 .so support
13213             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13214             archive_expsym_cmds=''
13215         ;;
13216       m68k)
13217             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)'
13218             hardcode_libdir_flag_spec='-L$libdir'
13219             hardcode_minus_L=yes
13220         ;;
13221       esac
13222       ;;
13223
13224     bsdi[45]*)
13225       export_dynamic_flag_spec=-rdynamic
13226       ;;
13227
13228     cygwin* | mingw* | pw32* | cegcc*)
13229       # When not using gcc, we currently assume that we are using
13230       # Microsoft Visual C++.
13231       # hardcode_libdir_flag_spec is actually meaningless, as there is
13232       # no search path for DLLs.
13233       case $cc_basename in
13234       cl*)
13235         # Native MSVC
13236         hardcode_libdir_flag_spec=' '
13237         allow_undefined_flag=unsupported
13238         always_export_symbols=yes
13239         file_list_spec='@'
13240         # Tell ltmain to make .lib files, not .a files.
13241         libext=lib
13242         # Tell ltmain to make .dll files, not .so files.
13243         shrext_cmds=.dll
13244         # FIXME: Setting linknames here is a bad hack.
13245         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13246         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13247             cp "$export_symbols" "$output_objdir/$soname.def";
13248             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13249           else
13250             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13251           fi~
13252           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13253           linknames='
13254         # The linker will not automatically build a static lib if we build a DLL.
13255         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13256         enable_shared_with_static_runtimes=yes
13257         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13258         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13259         # Don't use ranlib
13260         old_postinstall_cmds='chmod 644 $oldlib'
13261         postlink_cmds='lt_outputfile="@OUTPUT@"~
13262           lt_tool_outputfile="@TOOL_OUTPUT@"~
13263           case $lt_outputfile in
13264             *.exe|*.EXE) ;;
13265             *)
13266               lt_outputfile=$lt_outputfile.exe
13267               lt_tool_outputfile=$lt_tool_outputfile.exe
13268               ;;
13269           esac~
13270           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13271             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13272             $RM "$lt_outputfile.manifest";
13273           fi'
13274         ;;
13275       *)
13276         # Assume MSVC wrapper
13277         hardcode_libdir_flag_spec=' '
13278         allow_undefined_flag=unsupported
13279         # Tell ltmain to make .lib files, not .a files.
13280         libext=lib
13281         # Tell ltmain to make .dll files, not .so files.
13282         shrext_cmds=.dll
13283         # FIXME: Setting linknames here is a bad hack.
13284         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13285         # The linker will automatically build a .lib file if we build a DLL.
13286         old_archive_from_new_cmds='true'
13287         # FIXME: Should let the user specify the lib program.
13288         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13289         enable_shared_with_static_runtimes=yes
13290         ;;
13291       esac
13292       ;;
13293
13294     darwin* | rhapsody*)
13295
13296
13297   archive_cmds_need_lc=no
13298   hardcode_direct=no
13299   hardcode_automatic=yes
13300   hardcode_shlibpath_var=unsupported
13301   if test yes = "$lt_cv_ld_force_load"; then
13302     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\"`'
13303
13304   else
13305     whole_archive_flag_spec=''
13306   fi
13307   link_all_deplibs=yes
13308   allow_undefined_flag=$_lt_dar_allow_undefined
13309   case $cc_basename in
13310      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13311      *) _lt_dar_can_shared=$GCC ;;
13312   esac
13313   if test yes = "$_lt_dar_can_shared"; then
13314     output_verbose_link_cmd=func_echo_all
13315     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13316     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13317     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"
13318     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"
13319
13320   else
13321   ld_shlibs=no
13322   fi
13323
13324       ;;
13325
13326     dgux*)
13327       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13328       hardcode_libdir_flag_spec='-L$libdir'
13329       hardcode_shlibpath_var=no
13330       ;;
13331
13332     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13333     # support.  Future versions do this automatically, but an explicit c++rt0.o
13334     # does not break anything, and helps significantly (at the cost of a little
13335     # extra space).
13336     freebsd2.2*)
13337       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13338       hardcode_libdir_flag_spec='-R$libdir'
13339       hardcode_direct=yes
13340       hardcode_shlibpath_var=no
13341       ;;
13342
13343     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13344     freebsd2.*)
13345       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13346       hardcode_direct=yes
13347       hardcode_minus_L=yes
13348       hardcode_shlibpath_var=no
13349       ;;
13350
13351     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13352     freebsd* | dragonfly*)
13353       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13354       hardcode_libdir_flag_spec='-R$libdir'
13355       hardcode_direct=yes
13356       hardcode_shlibpath_var=no
13357       ;;
13358
13359     hpux9*)
13360       if test yes = "$GCC"; then
13361         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'
13362       else
13363         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'
13364       fi
13365       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13366       hardcode_libdir_separator=:
13367       hardcode_direct=yes
13368
13369       # hardcode_minus_L: Not really in the search PATH,
13370       # but as the default location of the library.
13371       hardcode_minus_L=yes
13372       export_dynamic_flag_spec='$wl-E'
13373       ;;
13374
13375     hpux10*)
13376       if test yes,no = "$GCC,$with_gnu_ld"; then
13377         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13378       else
13379         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13380       fi
13381       if test no = "$with_gnu_ld"; then
13382         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13383         hardcode_libdir_separator=:
13384         hardcode_direct=yes
13385         hardcode_direct_absolute=yes
13386         export_dynamic_flag_spec='$wl-E'
13387         # hardcode_minus_L: Not really in the search PATH,
13388         # but as the default location of the library.
13389         hardcode_minus_L=yes
13390       fi
13391       ;;
13392
13393     hpux11*)
13394       if test yes,no = "$GCC,$with_gnu_ld"; then
13395         case $host_cpu in
13396         hppa*64*)
13397           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13398           ;;
13399         ia64*)
13400           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13401           ;;
13402         *)
13403           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13404           ;;
13405         esac
13406       else
13407         case $host_cpu in
13408         hppa*64*)
13409           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13410           ;;
13411         ia64*)
13412           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13413           ;;
13414         *)
13415
13416           # Older versions of the 11.00 compiler do not understand -b yet
13417           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13418           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13419 $as_echo_n "checking if $CC understands -b... " >&6; }
13420 if ${lt_cv_prog_compiler__b+:} false; then :
13421   $as_echo_n "(cached) " >&6
13422 else
13423   lt_cv_prog_compiler__b=no
13424    save_LDFLAGS=$LDFLAGS
13425    LDFLAGS="$LDFLAGS -b"
13426    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13427    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13428      # The linker can only warn and ignore the option if not recognized
13429      # So say no if there are warnings
13430      if test -s conftest.err; then
13431        # Append any errors to the config.log.
13432        cat conftest.err 1>&5
13433        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13434        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13435        if diff conftest.exp conftest.er2 >/dev/null; then
13436          lt_cv_prog_compiler__b=yes
13437        fi
13438      else
13439        lt_cv_prog_compiler__b=yes
13440      fi
13441    fi
13442    $RM -r conftest*
13443    LDFLAGS=$save_LDFLAGS
13444
13445 fi
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13447 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13448
13449 if test yes = "$lt_cv_prog_compiler__b"; then
13450     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13451 else
13452     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13453 fi
13454
13455           ;;
13456         esac
13457       fi
13458       if test no = "$with_gnu_ld"; then
13459         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13460         hardcode_libdir_separator=:
13461
13462         case $host_cpu in
13463         hppa*64*|ia64*)
13464           hardcode_direct=no
13465           hardcode_shlibpath_var=no
13466           ;;
13467         *)
13468           hardcode_direct=yes
13469           hardcode_direct_absolute=yes
13470           export_dynamic_flag_spec='$wl-E'
13471
13472           # hardcode_minus_L: Not really in the search PATH,
13473           # but as the default location of the library.
13474           hardcode_minus_L=yes
13475           ;;
13476         esac
13477       fi
13478       ;;
13479
13480     irix5* | irix6* | nonstopux*)
13481       if test yes = "$GCC"; then
13482         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'
13483         # Try to use the -exported_symbol ld option, if it does not
13484         # work, assume that -exports_file does not work either and
13485         # implicitly export all symbols.
13486         # This should be the same for all languages, so no per-tag cache variable.
13487         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13488 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13489 if ${lt_cv_irix_exported_symbol+:} false; then :
13490   $as_echo_n "(cached) " >&6
13491 else
13492   save_LDFLAGS=$LDFLAGS
13493            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13494            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h.  */
13496 int foo (void) { return 0; }
13497 _ACEOF
13498 if ac_fn_c_try_link "$LINENO"; then :
13499   lt_cv_irix_exported_symbol=yes
13500 else
13501   lt_cv_irix_exported_symbol=no
13502 fi
13503 rm -f core conftest.err conftest.$ac_objext \
13504     conftest$ac_exeext conftest.$ac_ext
13505            LDFLAGS=$save_LDFLAGS
13506 fi
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13508 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13509         if test yes = "$lt_cv_irix_exported_symbol"; then
13510           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'
13511         fi
13512         link_all_deplibs=no
13513       else
13514         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'
13515         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'
13516       fi
13517       archive_cmds_need_lc='no'
13518       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13519       hardcode_libdir_separator=:
13520       inherit_rpath=yes
13521       link_all_deplibs=yes
13522       ;;
13523
13524     linux*)
13525       case $cc_basename in
13526       tcc*)
13527         # Fabrice Bellard et al's Tiny C Compiler
13528         ld_shlibs=yes
13529         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13530         ;;
13531       esac
13532       ;;
13533
13534     netbsd* | netbsdelf*-gnu)
13535       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13536         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13537       else
13538         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13539       fi
13540       hardcode_libdir_flag_spec='-R$libdir'
13541       hardcode_direct=yes
13542       hardcode_shlibpath_var=no
13543       ;;
13544
13545     newsos6)
13546       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13547       hardcode_direct=yes
13548       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13549       hardcode_libdir_separator=:
13550       hardcode_shlibpath_var=no
13551       ;;
13552
13553     *nto* | *qnx*)
13554       ;;
13555
13556     openbsd* | bitrig*)
13557       if test -f /usr/libexec/ld.so; then
13558         hardcode_direct=yes
13559         hardcode_shlibpath_var=no
13560         hardcode_direct_absolute=yes
13561         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13562           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13563           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13564           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13565           export_dynamic_flag_spec='$wl-E'
13566         else
13567           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13568           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13569         fi
13570       else
13571         ld_shlibs=no
13572       fi
13573       ;;
13574
13575     os2*)
13576       hardcode_libdir_flag_spec='-L$libdir'
13577       hardcode_minus_L=yes
13578       allow_undefined_flag=unsupported
13579       shrext_cmds=.dll
13580       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13581         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13582         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13583         $ECHO EXPORTS >> $output_objdir/$libname.def~
13584         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13585         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13586         emximp -o $lib $output_objdir/$libname.def'
13587       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13588         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13589         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13590         $ECHO EXPORTS >> $output_objdir/$libname.def~
13591         prefix_cmds="$SED"~
13592         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13593           prefix_cmds="$prefix_cmds -e 1d";
13594         fi~
13595         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13596         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13597         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13598         emximp -o $lib $output_objdir/$libname.def'
13599       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13600       enable_shared_with_static_runtimes=yes
13601       ;;
13602
13603     osf3*)
13604       if test yes = "$GCC"; then
13605         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13606         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'
13607       else
13608         allow_undefined_flag=' -expect_unresolved \*'
13609         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'
13610       fi
13611       archive_cmds_need_lc='no'
13612       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13613       hardcode_libdir_separator=:
13614       ;;
13615
13616     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13617       if test yes = "$GCC"; then
13618         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13619         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'
13620         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13621       else
13622         allow_undefined_flag=' -expect_unresolved \*'
13623         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'
13624         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~
13625           $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'
13626
13627         # Both c and cxx compiler support -rpath directly
13628         hardcode_libdir_flag_spec='-rpath $libdir'
13629       fi
13630       archive_cmds_need_lc='no'
13631       hardcode_libdir_separator=:
13632       ;;
13633
13634     solaris*)
13635       no_undefined_flag=' -z defs'
13636       if test yes = "$GCC"; then
13637         wlarc='$wl'
13638         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13639         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13640           $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'
13641       else
13642         case `$CC -V 2>&1` in
13643         *"Compilers 5.0"*)
13644           wlarc=''
13645           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13646           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13647             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13648           ;;
13649         *)
13650           wlarc='$wl'
13651           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13652           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13653             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13654           ;;
13655         esac
13656       fi
13657       hardcode_libdir_flag_spec='-R$libdir'
13658       hardcode_shlibpath_var=no
13659       case $host_os in
13660       solaris2.[0-5] | solaris2.[0-5].*) ;;
13661       *)
13662         # The compiler driver will combine and reorder linker options,
13663         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13664         # but is careful enough not to reorder.
13665         # Supported since Solaris 2.6 (maybe 2.5.1?)
13666         if test yes = "$GCC"; then
13667           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13668         else
13669           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13670         fi
13671         ;;
13672       esac
13673       link_all_deplibs=yes
13674       ;;
13675
13676     sunos4*)
13677       if test sequent = "$host_vendor"; then
13678         # Use $CC to link under sequent, because it throws in some extra .o
13679         # files that make .init and .fini sections work.
13680         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13681       else
13682         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13683       fi
13684       hardcode_libdir_flag_spec='-L$libdir'
13685       hardcode_direct=yes
13686       hardcode_minus_L=yes
13687       hardcode_shlibpath_var=no
13688       ;;
13689
13690     sysv4)
13691       case $host_vendor in
13692         sni)
13693           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13694           hardcode_direct=yes # is this really true???
13695         ;;
13696         siemens)
13697           ## LD is ld it makes a PLAMLIB
13698           ## CC just makes a GrossModule.
13699           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13700           reload_cmds='$CC -r -o $output$reload_objs'
13701           hardcode_direct=no
13702         ;;
13703         motorola)
13704           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13705           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13706         ;;
13707       esac
13708       runpath_var='LD_RUN_PATH'
13709       hardcode_shlibpath_var=no
13710       ;;
13711
13712     sysv4.3*)
13713       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13714       hardcode_shlibpath_var=no
13715       export_dynamic_flag_spec='-Bexport'
13716       ;;
13717
13718     sysv4*MP*)
13719       if test -d /usr/nec; then
13720         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13721         hardcode_shlibpath_var=no
13722         runpath_var=LD_RUN_PATH
13723         hardcode_runpath_var=yes
13724         ld_shlibs=yes
13725       fi
13726       ;;
13727
13728     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13729       no_undefined_flag='$wl-z,text'
13730       archive_cmds_need_lc=no
13731       hardcode_shlibpath_var=no
13732       runpath_var='LD_RUN_PATH'
13733
13734       if test yes = "$GCC"; then
13735         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13737       else
13738         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13739         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13740       fi
13741       ;;
13742
13743     sysv5* | sco3.2v5* | sco5v6*)
13744       # Note: We CANNOT use -z defs as we might desire, because we do not
13745       # link with -lc, and that would cause any symbols used from libc to
13746       # always be unresolved, which means just about no library would
13747       # ever link correctly.  If we're not using GNU ld we use -z text
13748       # though, which does catch some bad symbols but isn't as heavy-handed
13749       # as -z defs.
13750       no_undefined_flag='$wl-z,text'
13751       allow_undefined_flag='$wl-z,nodefs'
13752       archive_cmds_need_lc=no
13753       hardcode_shlibpath_var=no
13754       hardcode_libdir_flag_spec='$wl-R,$libdir'
13755       hardcode_libdir_separator=':'
13756       link_all_deplibs=yes
13757       export_dynamic_flag_spec='$wl-Bexport'
13758       runpath_var='LD_RUN_PATH'
13759
13760       if test yes = "$GCC"; then
13761         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13763       else
13764         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13766       fi
13767       ;;
13768
13769     uts4*)
13770       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771       hardcode_libdir_flag_spec='-L$libdir'
13772       hardcode_shlibpath_var=no
13773       ;;
13774
13775     *)
13776       ld_shlibs=no
13777       ;;
13778     esac
13779
13780     if test sni = "$host_vendor"; then
13781       case $host in
13782       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13783         export_dynamic_flag_spec='$wl-Blargedynsym'
13784         ;;
13785       esac
13786     fi
13787   fi
13788
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13790 $as_echo "$ld_shlibs" >&6; }
13791 test no = "$ld_shlibs" && can_build_shared=no
13792
13793 with_gnu_ld=$with_gnu_ld
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809 #
13810 # Do we need to explicitly link libc?
13811 #
13812 case "x$archive_cmds_need_lc" in
13813 x|xyes)
13814   # Assume -lc should be added
13815   archive_cmds_need_lc=yes
13816
13817   if test yes,yes = "$GCC,$enable_shared"; then
13818     case $archive_cmds in
13819     *'~'*)
13820       # FIXME: we may have to deal with multi-command sequences.
13821       ;;
13822     '$CC '*)
13823       # Test whether the compiler implicitly links with -lc since on some
13824       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13825       # to ld, don't add -lc before -lgcc.
13826       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13827 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13828 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13829   $as_echo_n "(cached) " >&6
13830 else
13831   $RM conftest*
13832         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13833
13834         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13835   (eval $ac_compile) 2>&5
13836   ac_status=$?
13837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13838   test $ac_status = 0; } 2>conftest.err; then
13839           soname=conftest
13840           lib=conftest
13841           libobjs=conftest.$ac_objext
13842           deplibs=
13843           wl=$lt_prog_compiler_wl
13844           pic_flag=$lt_prog_compiler_pic
13845           compiler_flags=-v
13846           linker_flags=-v
13847           verstring=
13848           output_objdir=.
13849           libname=conftest
13850           lt_save_allow_undefined_flag=$allow_undefined_flag
13851           allow_undefined_flag=
13852           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13853   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13854   ac_status=$?
13855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13856   test $ac_status = 0; }
13857           then
13858             lt_cv_archive_cmds_need_lc=no
13859           else
13860             lt_cv_archive_cmds_need_lc=yes
13861           fi
13862           allow_undefined_flag=$lt_save_allow_undefined_flag
13863         else
13864           cat conftest.err 1>&5
13865         fi
13866         $RM conftest*
13867
13868 fi
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13870 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13871       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13872       ;;
13873     esac
13874   fi
13875   ;;
13876 esac
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14030 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14031
14032 if test yes = "$GCC"; then
14033   case $host_os in
14034     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14035     *) lt_awk_arg='/^libraries:/' ;;
14036   esac
14037   case $host_os in
14038     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14039     *) lt_sed_strip_eq='s|=/|/|g' ;;
14040   esac
14041   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14042   case $lt_search_path_spec in
14043   *\;*)
14044     # if the path contains ";" then we assume it to be the separator
14045     # otherwise default to the standard path separator (i.e. ":") - it is
14046     # assumed that no part of a normal pathname contains ";" but that should
14047     # okay in the real world where ";" in dirpaths is itself problematic.
14048     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14049     ;;
14050   *)
14051     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14052     ;;
14053   esac
14054   # Ok, now we have the path, separated by spaces, we can step through it
14055   # and add multilib dir if necessary...
14056   lt_tmp_lt_search_path_spec=
14057   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14058   # ...but if some path component already ends with the multilib dir we assume
14059   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14060   case "$lt_multi_os_dir; $lt_search_path_spec " in
14061   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14062     lt_multi_os_dir=
14063     ;;
14064   esac
14065   for lt_sys_path in $lt_search_path_spec; do
14066     if test -d "$lt_sys_path$lt_multi_os_dir"; then
14067       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14068     elif test -n "$lt_multi_os_dir"; then
14069       test -d "$lt_sys_path" && \
14070         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14071     fi
14072   done
14073   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14074 BEGIN {RS = " "; FS = "/|\n";} {
14075   lt_foo = "";
14076   lt_count = 0;
14077   for (lt_i = NF; lt_i > 0; lt_i--) {
14078     if ($lt_i != "" && $lt_i != ".") {
14079       if ($lt_i == "..") {
14080         lt_count++;
14081       } else {
14082         if (lt_count == 0) {
14083           lt_foo = "/" $lt_i lt_foo;
14084         } else {
14085           lt_count--;
14086         }
14087       }
14088     }
14089   }
14090   if (lt_foo != "") { lt_freq[lt_foo]++; }
14091   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14092 }'`
14093   # AWK program above erroneously prepends '/' to C:/dos/paths
14094   # for these hosts.
14095   case $host_os in
14096     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14097       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14098   esac
14099   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14100 else
14101   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14102 fi
14103 library_names_spec=
14104 libname_spec='lib$name'
14105 soname_spec=
14106 shrext_cmds=.so
14107 postinstall_cmds=
14108 postuninstall_cmds=
14109 finish_cmds=
14110 finish_eval=
14111 shlibpath_var=
14112 shlibpath_overrides_runpath=unknown
14113 version_type=none
14114 dynamic_linker="$host_os ld.so"
14115 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14116 need_lib_prefix=unknown
14117 hardcode_into_libs=no
14118
14119 # when you set need_version to no, make sure it does not cause -set_version
14120 # flags to be left without arguments
14121 need_version=unknown
14122
14123
14124
14125 case $host_os in
14126 aix3*)
14127   version_type=linux # correct to gnu/linux during the next big refactor
14128   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14129   shlibpath_var=LIBPATH
14130
14131   # AIX 3 has no versioning support, so we append a major version to the name.
14132   soname_spec='$libname$release$shared_ext$major'
14133   ;;
14134
14135 aix[4-9]*)
14136   version_type=linux # correct to gnu/linux during the next big refactor
14137   need_lib_prefix=no
14138   need_version=no
14139   hardcode_into_libs=yes
14140   if test ia64 = "$host_cpu"; then
14141     # AIX 5 supports IA64
14142     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14143     shlibpath_var=LD_LIBRARY_PATH
14144   else
14145     # With GCC up to 2.95.x, collect2 would create an import file
14146     # for dependence libraries.  The import file would start with
14147     # the line '#! .'.  This would cause the generated library to
14148     # depend on '.', always an invalid library.  This was fixed in
14149     # development snapshots of GCC prior to 3.0.
14150     case $host_os in
14151       aix4 | aix4.[01] | aix4.[01].*)
14152       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14153            echo ' yes '
14154            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14155         :
14156       else
14157         can_build_shared=no
14158       fi
14159       ;;
14160     esac
14161     # Using Import Files as archive members, it is possible to support
14162     # filename-based versioning of shared library archives on AIX. While
14163     # this would work for both with and without runtime linking, it will
14164     # prevent static linking of such archives. So we do filename-based
14165     # shared library versioning with .so extension only, which is used
14166     # when both runtime linking and shared linking is enabled.
14167     # Unfortunately, runtime linking may impact performance, so we do
14168     # not want this to be the default eventually. Also, we use the
14169     # versioned .so libs for executables only if there is the -brtl
14170     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14171     # To allow for filename-based versioning support, we need to create
14172     # libNAME.so.V as an archive file, containing:
14173     # *) an Import File, referring to the versioned filename of the
14174     #    archive as well as the shared archive member, telling the
14175     #    bitwidth (32 or 64) of that shared object, and providing the
14176     #    list of exported symbols of that shared object, eventually
14177     #    decorated with the 'weak' keyword
14178     # *) the shared object with the F_LOADONLY flag set, to really avoid
14179     #    it being seen by the linker.
14180     # At run time we better use the real file rather than another symlink,
14181     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14182
14183     case $with_aix_soname,$aix_use_runtimelinking in
14184     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14185     # soname into executable. Probably we can add versioning support to
14186     # collect2, so additional links can be useful in future.
14187     aix,yes) # traditional libtool
14188       dynamic_linker='AIX unversionable lib.so'
14189       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14190       # instead of lib<name>.a to let people know that these are not
14191       # typical AIX shared libraries.
14192       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14193       ;;
14194     aix,no) # traditional AIX only
14195       dynamic_linker='AIX lib.a(lib.so.V)'
14196       # We preserve .a as extension for shared libraries through AIX4.2
14197       # and later when we are not doing run time linking.
14198       library_names_spec='$libname$release.a $libname.a'
14199       soname_spec='$libname$release$shared_ext$major'
14200       ;;
14201     svr4,*) # full svr4 only
14202       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14203       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14204       # We do not specify a path in Import Files, so LIBPATH fires.
14205       shlibpath_overrides_runpath=yes
14206       ;;
14207     *,yes) # both, prefer svr4
14208       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14209       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14210       # unpreferred sharedlib libNAME.a needs extra handling
14211       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"'
14212       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"'
14213       # We do not specify a path in Import Files, so LIBPATH fires.
14214       shlibpath_overrides_runpath=yes
14215       ;;
14216     *,no) # both, prefer aix
14217       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14218       library_names_spec='$libname$release.a $libname.a'
14219       soname_spec='$libname$release$shared_ext$major'
14220       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14221       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)'
14222       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"'
14223       ;;
14224     esac
14225     shlibpath_var=LIBPATH
14226   fi
14227   ;;
14228
14229 amigaos*)
14230   case $host_cpu in
14231   powerpc)
14232     # Since July 2007 AmigaOS4 officially supports .so libraries.
14233     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14234     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14235     ;;
14236   m68k)
14237     library_names_spec='$libname.ixlibrary $libname.a'
14238     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14239     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'
14240     ;;
14241   esac
14242   ;;
14243
14244 beos*)
14245   library_names_spec='$libname$shared_ext'
14246   dynamic_linker="$host_os ld.so"
14247   shlibpath_var=LIBRARY_PATH
14248   ;;
14249
14250 bsdi[45]*)
14251   version_type=linux # correct to gnu/linux during the next big refactor
14252   need_version=no
14253   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14254   soname_spec='$libname$release$shared_ext$major'
14255   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14256   shlibpath_var=LD_LIBRARY_PATH
14257   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14258   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14259   # the default ld.so.conf also contains /usr/contrib/lib and
14260   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14261   # libtool to hard-code these into programs
14262   ;;
14263
14264 cygwin* | mingw* | pw32* | cegcc*)
14265   version_type=windows
14266   shrext_cmds=.dll
14267   need_version=no
14268   need_lib_prefix=no
14269
14270   case $GCC,$cc_basename in
14271   yes,*)
14272     # gcc
14273     library_names_spec='$libname.dll.a'
14274     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14275     postinstall_cmds='base_file=`basename \$file`~
14276       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14277       dldir=$destdir/`dirname \$dlpath`~
14278       test -d \$dldir || mkdir -p \$dldir~
14279       $install_prog $dir/$dlname \$dldir/$dlname~
14280       chmod a+x \$dldir/$dlname~
14281       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14282         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14283       fi'
14284     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14285       dlpath=$dir/\$dldll~
14286        $RM \$dlpath'
14287     shlibpath_overrides_runpath=yes
14288
14289     case $host_os in
14290     cygwin*)
14291       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14292       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14293
14294       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14295       ;;
14296     mingw* | cegcc*)
14297       # MinGW DLLs use traditional 'lib' prefix
14298       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14299       ;;
14300     pw32*)
14301       # pw32 DLLs use 'pw' prefix rather than 'lib'
14302       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14303       ;;
14304     esac
14305     dynamic_linker='Win32 ld.exe'
14306     ;;
14307
14308   *,cl*)
14309     # Native MSVC
14310     libname_spec='$name'
14311     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14312     library_names_spec='$libname.dll.lib'
14313
14314     case $build_os in
14315     mingw*)
14316       sys_lib_search_path_spec=
14317       lt_save_ifs=$IFS
14318       IFS=';'
14319       for lt_path in $LIB
14320       do
14321         IFS=$lt_save_ifs
14322         # Let DOS variable expansion print the short 8.3 style file name.
14323         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14324         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14325       done
14326       IFS=$lt_save_ifs
14327       # Convert to MSYS style.
14328       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14329       ;;
14330     cygwin*)
14331       # Convert to unix form, then to dos form, then back to unix form
14332       # but this time dos style (no spaces!) so that the unix form looks
14333       # like /cygdrive/c/PROGRA~1:/cygdr...
14334       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14335       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14336       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14337       ;;
14338     *)
14339       sys_lib_search_path_spec=$LIB
14340       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14341         # It is most probably a Windows format PATH.
14342         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14343       else
14344         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14345       fi
14346       # FIXME: find the short name or the path components, as spaces are
14347       # common. (e.g. "Program Files" -> "PROGRA~1")
14348       ;;
14349     esac
14350
14351     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14352     postinstall_cmds='base_file=`basename \$file`~
14353       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14354       dldir=$destdir/`dirname \$dlpath`~
14355       test -d \$dldir || mkdir -p \$dldir~
14356       $install_prog $dir/$dlname \$dldir/$dlname'
14357     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14358       dlpath=$dir/\$dldll~
14359        $RM \$dlpath'
14360     shlibpath_overrides_runpath=yes
14361     dynamic_linker='Win32 link.exe'
14362     ;;
14363
14364   *)
14365     # Assume MSVC wrapper
14366     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14367     dynamic_linker='Win32 ld.exe'
14368     ;;
14369   esac
14370   # FIXME: first we should search . and the directory the executable is in
14371   shlibpath_var=PATH
14372   ;;
14373
14374 darwin* | rhapsody*)
14375   dynamic_linker="$host_os dyld"
14376   version_type=darwin
14377   need_lib_prefix=no
14378   need_version=no
14379   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14380   soname_spec='$libname$release$major$shared_ext'
14381   shlibpath_overrides_runpath=yes
14382   shlibpath_var=DYLD_LIBRARY_PATH
14383   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14384
14385   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14386   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14387   ;;
14388
14389 dgux*)
14390   version_type=linux # correct to gnu/linux during the next big refactor
14391   need_lib_prefix=no
14392   need_version=no
14393   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14394   soname_spec='$libname$release$shared_ext$major'
14395   shlibpath_var=LD_LIBRARY_PATH
14396   ;;
14397
14398 freebsd* | dragonfly*)
14399   # DragonFly does not have aout.  When/if they implement a new
14400   # versioning mechanism, adjust this.
14401   if test -x /usr/bin/objformat; then
14402     objformat=`/usr/bin/objformat`
14403   else
14404     case $host_os in
14405     freebsd[23].*) objformat=aout ;;
14406     *) objformat=elf ;;
14407     esac
14408   fi
14409   version_type=freebsd-$objformat
14410   case $version_type in
14411     freebsd-elf*)
14412       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14413       soname_spec='$libname$release$shared_ext$major'
14414       need_version=no
14415       need_lib_prefix=no
14416       ;;
14417     freebsd-*)
14418       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14419       need_version=yes
14420       ;;
14421   esac
14422   shlibpath_var=LD_LIBRARY_PATH
14423   case $host_os in
14424   freebsd2.*)
14425     shlibpath_overrides_runpath=yes
14426     ;;
14427   freebsd3.[01]* | freebsdelf3.[01]*)
14428     shlibpath_overrides_runpath=yes
14429     hardcode_into_libs=yes
14430     ;;
14431   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14432   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14433     shlibpath_overrides_runpath=no
14434     hardcode_into_libs=yes
14435     ;;
14436   *) # from 4.6 on, and DragonFly
14437     shlibpath_overrides_runpath=yes
14438     hardcode_into_libs=yes
14439     ;;
14440   esac
14441   ;;
14442
14443 haiku*)
14444   version_type=linux # correct to gnu/linux during the next big refactor
14445   need_lib_prefix=no
14446   need_version=no
14447   dynamic_linker="$host_os runtime_loader"
14448   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14449   soname_spec='$libname$release$shared_ext$major'
14450   shlibpath_var=LIBRARY_PATH
14451   shlibpath_overrides_runpath=no
14452   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14453   hardcode_into_libs=yes
14454   ;;
14455
14456 hpux9* | hpux10* | hpux11*)
14457   # Give a soname corresponding to the major version so that dld.sl refuses to
14458   # link against other versions.
14459   version_type=sunos
14460   need_lib_prefix=no
14461   need_version=no
14462   case $host_cpu in
14463   ia64*)
14464     shrext_cmds='.so'
14465     hardcode_into_libs=yes
14466     dynamic_linker="$host_os dld.so"
14467     shlibpath_var=LD_LIBRARY_PATH
14468     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14469     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14470     soname_spec='$libname$release$shared_ext$major'
14471     if test 32 = "$HPUX_IA64_MODE"; then
14472       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14473       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14474     else
14475       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14476       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14477     fi
14478     ;;
14479   hppa*64*)
14480     shrext_cmds='.sl'
14481     hardcode_into_libs=yes
14482     dynamic_linker="$host_os dld.sl"
14483     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14484     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14485     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14486     soname_spec='$libname$release$shared_ext$major'
14487     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14488     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14489     ;;
14490   *)
14491     shrext_cmds='.sl'
14492     dynamic_linker="$host_os dld.sl"
14493     shlibpath_var=SHLIB_PATH
14494     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14495     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14496     soname_spec='$libname$release$shared_ext$major'
14497     ;;
14498   esac
14499   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14500   postinstall_cmds='chmod 555 $lib'
14501   # or fails outright, so override atomically:
14502   install_override_mode=555
14503   ;;
14504
14505 interix[3-9]*)
14506   version_type=linux # correct to gnu/linux during the next big refactor
14507   need_lib_prefix=no
14508   need_version=no
14509   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14510   soname_spec='$libname$release$shared_ext$major'
14511   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14512   shlibpath_var=LD_LIBRARY_PATH
14513   shlibpath_overrides_runpath=no
14514   hardcode_into_libs=yes
14515   ;;
14516
14517 irix5* | irix6* | nonstopux*)
14518   case $host_os in
14519     nonstopux*) version_type=nonstopux ;;
14520     *)
14521         if test yes = "$lt_cv_prog_gnu_ld"; then
14522                 version_type=linux # correct to gnu/linux during the next big refactor
14523         else
14524                 version_type=irix
14525         fi ;;
14526   esac
14527   need_lib_prefix=no
14528   need_version=no
14529   soname_spec='$libname$release$shared_ext$major'
14530   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14531   case $host_os in
14532   irix5* | nonstopux*)
14533     libsuff= shlibsuff=
14534     ;;
14535   *)
14536     case $LD in # libtool.m4 will add one of these switches to LD
14537     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14538       libsuff= shlibsuff= libmagic=32-bit;;
14539     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14540       libsuff=32 shlibsuff=N32 libmagic=N32;;
14541     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14542       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14543     *) libsuff= shlibsuff= libmagic=never-match;;
14544     esac
14545     ;;
14546   esac
14547   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14548   shlibpath_overrides_runpath=no
14549   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14550   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14551   hardcode_into_libs=yes
14552   ;;
14553
14554 # No shared lib support for Linux oldld, aout, or coff.
14555 linux*oldld* | linux*aout* | linux*coff*)
14556   dynamic_linker=no
14557   ;;
14558
14559 linux*android*)
14560   version_type=none # Android doesn't support versioned libraries.
14561   need_lib_prefix=no
14562   need_version=no
14563   library_names_spec='$libname$release$shared_ext'
14564   soname_spec='$libname$release$shared_ext'
14565   finish_cmds=
14566   shlibpath_var=LD_LIBRARY_PATH
14567   shlibpath_overrides_runpath=yes
14568
14569   # This implies no fast_install, which is unacceptable.
14570   # Some rework will be needed to allow for fast_install
14571   # before this can be enabled.
14572   hardcode_into_libs=yes
14573
14574   dynamic_linker='Android linker'
14575   # Don't embed -rpath directories since the linker doesn't support them.
14576   hardcode_libdir_flag_spec='-L$libdir'
14577   ;;
14578
14579 # This must be glibc/ELF.
14580 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14581   version_type=linux # correct to gnu/linux during the next big refactor
14582   need_lib_prefix=no
14583   need_version=no
14584   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14585   soname_spec='$libname$release$shared_ext$major'
14586   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14587   shlibpath_var=LD_LIBRARY_PATH
14588   shlibpath_overrides_runpath=no
14589
14590   # Some binutils ld are patched to set DT_RUNPATH
14591   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14592   $as_echo_n "(cached) " >&6
14593 else
14594   lt_cv_shlibpath_overrides_runpath=no
14595     save_LDFLAGS=$LDFLAGS
14596     save_libdir=$libdir
14597     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14598          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14599     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h.  */
14601
14602 int main (void)
14603 {
14604
14605  ;
14606  return 0;
14607 }
14608 _ACEOF
14609 if ac_fn_c_try_link "$LINENO"; then :
14610   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14611   lt_cv_shlibpath_overrides_runpath=yes
14612 fi
14613 fi
14614 rm -f core conftest.err conftest.$ac_objext \
14615     conftest$ac_exeext conftest.$ac_ext
14616     LDFLAGS=$save_LDFLAGS
14617     libdir=$save_libdir
14618
14619 fi
14620
14621   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14622
14623   # This implies no fast_install, which is unacceptable.
14624   # Some rework will be needed to allow for fast_install
14625   # before this can be enabled.
14626   hardcode_into_libs=yes
14627
14628   # Ideally, we could use ldconfig to report *all* directores which are
14629   # searched for libraries, however this is still not possible.  Aside from not
14630   # being certain /sbin/ldconfig is available, command
14631   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14632   # even though it is searched at run-time.  Try to do the best guess by
14633   # appending ld.so.conf contents (and includes) to the search path.
14634   if test -f /etc/ld.so.conf; then
14635     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' ' '`
14636     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14637   fi
14638
14639   # We used to test for /lib/ld.so.1 and disable shared libraries on
14640   # powerpc, because MkLinux only supported shared libraries with the
14641   # GNU dynamic linker.  Since this was broken with cross compilers,
14642   # most powerpc-linux boxes support dynamic linking these days and
14643   # people can always --disable-shared, the test was removed, and we
14644   # assume the GNU/Linux dynamic linker is in use.
14645   dynamic_linker='GNU/Linux ld.so'
14646   ;;
14647
14648 netbsdelf*-gnu)
14649   version_type=linux
14650   need_lib_prefix=no
14651   need_version=no
14652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14653   soname_spec='${libname}${release}${shared_ext}$major'
14654   shlibpath_var=LD_LIBRARY_PATH
14655   shlibpath_overrides_runpath=no
14656   hardcode_into_libs=yes
14657   dynamic_linker='NetBSD ld.elf_so'
14658   ;;
14659
14660 netbsd*)
14661   version_type=sunos
14662   need_lib_prefix=no
14663   need_version=no
14664   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14665     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14666     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14667     dynamic_linker='NetBSD (a.out) ld.so'
14668   else
14669     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14670     soname_spec='$libname$release$shared_ext$major'
14671     dynamic_linker='NetBSD ld.elf_so'
14672   fi
14673   shlibpath_var=LD_LIBRARY_PATH
14674   shlibpath_overrides_runpath=yes
14675   hardcode_into_libs=yes
14676   ;;
14677
14678 newsos6)
14679   version_type=linux # correct to gnu/linux during the next big refactor
14680   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14681   shlibpath_var=LD_LIBRARY_PATH
14682   shlibpath_overrides_runpath=yes
14683   ;;
14684
14685 *nto* | *qnx*)
14686   version_type=qnx
14687   need_lib_prefix=no
14688   need_version=no
14689   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14690   soname_spec='$libname$release$shared_ext$major'
14691   shlibpath_var=LD_LIBRARY_PATH
14692   shlibpath_overrides_runpath=no
14693   hardcode_into_libs=yes
14694   dynamic_linker='ldqnx.so'
14695   ;;
14696
14697 openbsd* | bitrig*)
14698   version_type=sunos
14699   sys_lib_dlsearch_path_spec=/usr/lib
14700   need_lib_prefix=no
14701   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14702     need_version=no
14703   else
14704     need_version=yes
14705   fi
14706   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14707   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14708   shlibpath_var=LD_LIBRARY_PATH
14709   shlibpath_overrides_runpath=yes
14710   ;;
14711
14712 os2*)
14713   libname_spec='$name'
14714   version_type=windows
14715   shrext_cmds=.dll
14716   need_version=no
14717   need_lib_prefix=no
14718   # OS/2 can only load a DLL with a base name of 8 characters or less.
14719   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14720     v=$($ECHO $release$versuffix | tr -d .-);
14721     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14722     $ECHO $n$v`$shared_ext'
14723   library_names_spec='${libname}_dll.$libext'
14724   dynamic_linker='OS/2 ld.exe'
14725   shlibpath_var=BEGINLIBPATH
14726   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14727   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14728   postinstall_cmds='base_file=`basename \$file`~
14729     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14730     dldir=$destdir/`dirname \$dlpath`~
14731     test -d \$dldir || mkdir -p \$dldir~
14732     $install_prog $dir/$dlname \$dldir/$dlname~
14733     chmod a+x \$dldir/$dlname~
14734     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14735       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14736     fi'
14737   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14738     dlpath=$dir/\$dldll~
14739     $RM \$dlpath'
14740   ;;
14741
14742 osf3* | osf4* | osf5*)
14743   version_type=osf
14744   need_lib_prefix=no
14745   need_version=no
14746   soname_spec='$libname$release$shared_ext$major'
14747   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14748   shlibpath_var=LD_LIBRARY_PATH
14749   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14750   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14751   ;;
14752
14753 rdos*)
14754   dynamic_linker=no
14755   ;;
14756
14757 solaris*)
14758   version_type=linux # correct to gnu/linux during the next big refactor
14759   need_lib_prefix=no
14760   need_version=no
14761   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14762   soname_spec='$libname$release$shared_ext$major'
14763   shlibpath_var=LD_LIBRARY_PATH
14764   shlibpath_overrides_runpath=yes
14765   hardcode_into_libs=yes
14766   # ldd complains unless libraries are executable
14767   postinstall_cmds='chmod +x $lib'
14768   ;;
14769
14770 sunos4*)
14771   version_type=sunos
14772   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14773   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14774   shlibpath_var=LD_LIBRARY_PATH
14775   shlibpath_overrides_runpath=yes
14776   if test yes = "$with_gnu_ld"; then
14777     need_lib_prefix=no
14778   fi
14779   need_version=yes
14780   ;;
14781
14782 sysv4 | sysv4.3*)
14783   version_type=linux # correct to gnu/linux during the next big refactor
14784   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14785   soname_spec='$libname$release$shared_ext$major'
14786   shlibpath_var=LD_LIBRARY_PATH
14787   case $host_vendor in
14788     sni)
14789       shlibpath_overrides_runpath=no
14790       need_lib_prefix=no
14791       runpath_var=LD_RUN_PATH
14792       ;;
14793     siemens)
14794       need_lib_prefix=no
14795       ;;
14796     motorola)
14797       need_lib_prefix=no
14798       need_version=no
14799       shlibpath_overrides_runpath=no
14800       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14801       ;;
14802   esac
14803   ;;
14804
14805 sysv4*MP*)
14806   if test -d /usr/nec; then
14807     version_type=linux # correct to gnu/linux during the next big refactor
14808     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14809     soname_spec='$libname$shared_ext.$major'
14810     shlibpath_var=LD_LIBRARY_PATH
14811   fi
14812   ;;
14813
14814 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14815   version_type=sco
14816   need_lib_prefix=no
14817   need_version=no
14818   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14819   soname_spec='$libname$release$shared_ext$major'
14820   shlibpath_var=LD_LIBRARY_PATH
14821   shlibpath_overrides_runpath=yes
14822   hardcode_into_libs=yes
14823   if test yes = "$with_gnu_ld"; then
14824     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14825   else
14826     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14827     case $host_os in
14828       sco3.2v5*)
14829         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14830         ;;
14831     esac
14832   fi
14833   sys_lib_dlsearch_path_spec='/usr/lib'
14834   ;;
14835
14836 tpf*)
14837   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14838   version_type=linux # correct to gnu/linux during the next big refactor
14839   need_lib_prefix=no
14840   need_version=no
14841   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14842   shlibpath_var=LD_LIBRARY_PATH
14843   shlibpath_overrides_runpath=no
14844   hardcode_into_libs=yes
14845   ;;
14846
14847 uts4*)
14848   version_type=linux # correct to gnu/linux during the next big refactor
14849   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14850   soname_spec='$libname$release$shared_ext$major'
14851   shlibpath_var=LD_LIBRARY_PATH
14852   ;;
14853
14854 *)
14855   dynamic_linker=no
14856   ;;
14857 esac
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14859 $as_echo "$dynamic_linker" >&6; }
14860 test no = "$dynamic_linker" && can_build_shared=no
14861
14862 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14863 if test yes = "$GCC"; then
14864   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14865 fi
14866
14867 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14868   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14869 fi
14870
14871 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14872   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14873 fi
14874
14875 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14876 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14877
14878 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14879 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14880
14881 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14882 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14981 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14982 hardcode_action=
14983 if test -n "$hardcode_libdir_flag_spec" ||
14984    test -n "$runpath_var" ||
14985    test yes = "$hardcode_automatic"; then
14986
14987   # We can hardcode non-existent directories.
14988   if test no != "$hardcode_direct" &&
14989      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14990      # have to relink, otherwise we might link with an installed library
14991      # when we should be linking with a yet-to-be-installed one
14992      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14993      test no != "$hardcode_minus_L"; then
14994     # Linking always hardcodes the temporary library directory.
14995     hardcode_action=relink
14996   else
14997     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14998     hardcode_action=immediate
14999   fi
15000 else
15001   # We cannot hardcode anything, or else we can only hardcode existing
15002   # directories.
15003   hardcode_action=unsupported
15004 fi
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15006 $as_echo "$hardcode_action" >&6; }
15007
15008 if test relink = "$hardcode_action" ||
15009    test yes = "$inherit_rpath"; then
15010   # Fast installation is not supported
15011   enable_fast_install=no
15012 elif test yes = "$shlibpath_overrides_runpath" ||
15013      test no = "$enable_shared"; then
15014   # Fast installation is not necessary
15015   enable_fast_install=needless
15016 fi
15017
15018
15019
15020
15021
15022
15023   if test yes != "$enable_dlopen"; then
15024   enable_dlopen=unknown
15025   enable_dlopen_self=unknown
15026   enable_dlopen_self_static=unknown
15027 else
15028   lt_cv_dlopen=no
15029   lt_cv_dlopen_libs=
15030
15031   case $host_os in
15032   beos*)
15033     lt_cv_dlopen=load_add_on
15034     lt_cv_dlopen_libs=
15035     lt_cv_dlopen_self=yes
15036     ;;
15037
15038   mingw* | pw32* | cegcc*)
15039     lt_cv_dlopen=LoadLibrary
15040     lt_cv_dlopen_libs=
15041     ;;
15042
15043   cygwin*)
15044     lt_cv_dlopen=dlopen
15045     lt_cv_dlopen_libs=
15046     ;;
15047
15048   darwin*)
15049     # if libdl is installed we need to link against it
15050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15051 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15052 if ${ac_cv_lib_dl_dlopen+:} false; then :
15053   $as_echo_n "(cached) " >&6
15054 else
15055   ac_check_lib_save_LIBS=$LIBS
15056 LIBS="-ldl  $LIBS"
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h.  */
15059
15060
15061 #ifdef __cplusplus
15062 extern "C"
15063 #endif
15064 char dlopen ();
15065 int main (void)
15066 {
15067 return dlopen ();
15068  ;
15069  return 0;
15070 }
15071 _ACEOF
15072 if ac_fn_c_try_link "$LINENO"; then :
15073   ac_cv_lib_dl_dlopen=yes
15074 else
15075   ac_cv_lib_dl_dlopen=no
15076 fi
15077 rm -f core conftest.err conftest.$ac_objext \
15078     conftest$ac_exeext conftest.$ac_ext
15079 LIBS=$ac_check_lib_save_LIBS
15080 fi
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15082 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15083 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15084   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15085 else
15086
15087     lt_cv_dlopen=dyld
15088     lt_cv_dlopen_libs=
15089     lt_cv_dlopen_self=yes
15090
15091 fi
15092
15093     ;;
15094
15095   tpf*)
15096     # Don't try to run any link tests for TPF.  We know it's impossible
15097     # because TPF is a cross-compiler, and we know how we open DSOs.
15098     lt_cv_dlopen=dlopen
15099     lt_cv_dlopen_libs=
15100     lt_cv_dlopen_self=no
15101     ;;
15102
15103   *)
15104     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15105 if test "x$ac_cv_func_shl_load" = xyes; then :
15106   lt_cv_dlopen=shl_load
15107 else
15108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15109 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15110 if ${ac_cv_lib_dld_shl_load+:} false; then :
15111   $as_echo_n "(cached) " >&6
15112 else
15113   ac_check_lib_save_LIBS=$LIBS
15114 LIBS="-ldld  $LIBS"
15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h.  */
15117
15118
15119 #ifdef __cplusplus
15120 extern "C"
15121 #endif
15122 char shl_load ();
15123 int main (void)
15124 {
15125 return shl_load ();
15126  ;
15127  return 0;
15128 }
15129 _ACEOF
15130 if ac_fn_c_try_link "$LINENO"; then :
15131   ac_cv_lib_dld_shl_load=yes
15132 else
15133   ac_cv_lib_dld_shl_load=no
15134 fi
15135 rm -f core conftest.err conftest.$ac_objext \
15136     conftest$ac_exeext conftest.$ac_ext
15137 LIBS=$ac_check_lib_save_LIBS
15138 fi
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15140 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15141 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15142   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15143 else
15144   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15145 if test "x$ac_cv_func_dlopen" = xyes; then :
15146   lt_cv_dlopen=dlopen
15147 else
15148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15149 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15150 if ${ac_cv_lib_dl_dlopen+:} false; then :
15151   $as_echo_n "(cached) " >&6
15152 else
15153   ac_check_lib_save_LIBS=$LIBS
15154 LIBS="-ldl  $LIBS"
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h.  */
15157
15158
15159 #ifdef __cplusplus
15160 extern "C"
15161 #endif
15162 char dlopen ();
15163 int main (void)
15164 {
15165 return dlopen ();
15166  ;
15167  return 0;
15168 }
15169 _ACEOF
15170 if ac_fn_c_try_link "$LINENO"; then :
15171   ac_cv_lib_dl_dlopen=yes
15172 else
15173   ac_cv_lib_dl_dlopen=no
15174 fi
15175 rm -f core conftest.err conftest.$ac_objext \
15176     conftest$ac_exeext conftest.$ac_ext
15177 LIBS=$ac_check_lib_save_LIBS
15178 fi
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15180 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15181 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15182   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15183 else
15184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15185 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15186 if ${ac_cv_lib_svld_dlopen+:} false; then :
15187   $as_echo_n "(cached) " >&6
15188 else
15189   ac_check_lib_save_LIBS=$LIBS
15190 LIBS="-lsvld  $LIBS"
15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h.  */
15193
15194
15195 #ifdef __cplusplus
15196 extern "C"
15197 #endif
15198 char dlopen ();
15199 int main (void)
15200 {
15201 return dlopen ();
15202  ;
15203  return 0;
15204 }
15205 _ACEOF
15206 if ac_fn_c_try_link "$LINENO"; then :
15207   ac_cv_lib_svld_dlopen=yes
15208 else
15209   ac_cv_lib_svld_dlopen=no
15210 fi
15211 rm -f core conftest.err conftest.$ac_objext \
15212     conftest$ac_exeext conftest.$ac_ext
15213 LIBS=$ac_check_lib_save_LIBS
15214 fi
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15216 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15217 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15218   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15219 else
15220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15221 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15222 if ${ac_cv_lib_dld_dld_link+:} false; then :
15223   $as_echo_n "(cached) " >&6
15224 else
15225   ac_check_lib_save_LIBS=$LIBS
15226 LIBS="-ldld  $LIBS"
15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h.  */
15229
15230
15231 #ifdef __cplusplus
15232 extern "C"
15233 #endif
15234 char dld_link ();
15235 int main (void)
15236 {
15237 return dld_link ();
15238  ;
15239  return 0;
15240 }
15241 _ACEOF
15242 if ac_fn_c_try_link "$LINENO"; then :
15243   ac_cv_lib_dld_dld_link=yes
15244 else
15245   ac_cv_lib_dld_dld_link=no
15246 fi
15247 rm -f core conftest.err conftest.$ac_objext \
15248     conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15250 fi
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15252 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15253 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15254   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15255 fi
15256
15257
15258 fi
15259
15260
15261 fi
15262
15263
15264 fi
15265
15266
15267 fi
15268
15269
15270 fi
15271
15272     ;;
15273   esac
15274
15275   if test no = "$lt_cv_dlopen"; then
15276     enable_dlopen=no
15277   else
15278     enable_dlopen=yes
15279   fi
15280
15281   case $lt_cv_dlopen in
15282   dlopen)
15283     save_CPPFLAGS=$CPPFLAGS
15284     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15285
15286     save_LDFLAGS=$LDFLAGS
15287     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15288
15289     save_LIBS=$LIBS
15290     LIBS="$lt_cv_dlopen_libs $LIBS"
15291
15292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15293 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15294 if ${lt_cv_dlopen_self+:} false; then :
15295   $as_echo_n "(cached) " >&6
15296 else
15297           if test yes = "$cross_compiling"; then :
15298   lt_cv_dlopen_self=cross
15299 else
15300   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15301   lt_status=$lt_dlunknown
15302   cat > conftest.$ac_ext <<_LT_EOF
15303 #line $LINENO "configure"
15304 #include "confdefs.h"
15305
15306 #if HAVE_DLFCN_H
15307 #include <dlfcn.h>
15308 #endif
15309
15310 #include <stdio.h>
15311
15312 #ifdef RTLD_GLOBAL
15313 #  define LT_DLGLOBAL           RTLD_GLOBAL
15314 #else
15315 #  ifdef DL_GLOBAL
15316 #    define LT_DLGLOBAL         DL_GLOBAL
15317 #  else
15318 #    define LT_DLGLOBAL         0
15319 #  endif
15320 #endif
15321
15322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15323    find out it does not work in some platform. */
15324 #ifndef LT_DLLAZY_OR_NOW
15325 #  ifdef RTLD_LAZY
15326 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15327 #  else
15328 #    ifdef DL_LAZY
15329 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15330 #    else
15331 #      ifdef RTLD_NOW
15332 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15333 #      else
15334 #        ifdef DL_NOW
15335 #          define LT_DLLAZY_OR_NOW      DL_NOW
15336 #        else
15337 #          define LT_DLLAZY_OR_NOW      0
15338 #        endif
15339 #      endif
15340 #    endif
15341 #  endif
15342 #endif
15343
15344 /* When -fvisibility=hidden is used, assume the code has been annotated
15345    correspondingly for the symbols needed.  */
15346 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15347 int fnord () __attribute__((visibility("default")));
15348 #endif
15349
15350 int fnord () { return 42; }
15351 int main ()
15352 {
15353   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15354   int status = $lt_dlunknown;
15355
15356   if (self)
15357     {
15358       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15359       else
15360         {
15361           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15362           else puts (dlerror ());
15363         }
15364       /* dlclose (self); */
15365     }
15366   else
15367     puts (dlerror ());
15368
15369   return status;
15370 }
15371 _LT_EOF
15372   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15373   (eval $ac_link) 2>&5
15374   ac_status=$?
15375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15376   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15377     (./conftest; exit; ) >&5 2>/dev/null
15378     lt_status=$?
15379     case x$lt_status in
15380       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15381       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15382       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15383     esac
15384   else :
15385     # compilation failed
15386     lt_cv_dlopen_self=no
15387   fi
15388 fi
15389 rm -fr conftest*
15390
15391
15392 fi
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15394 $as_echo "$lt_cv_dlopen_self" >&6; }
15395
15396     if test yes = "$lt_cv_dlopen_self"; then
15397       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15398       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15399 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15400 if ${lt_cv_dlopen_self_static+:} false; then :
15401   $as_echo_n "(cached) " >&6
15402 else
15403           if test yes = "$cross_compiling"; then :
15404   lt_cv_dlopen_self_static=cross
15405 else
15406   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15407   lt_status=$lt_dlunknown
15408   cat > conftest.$ac_ext <<_LT_EOF
15409 #line $LINENO "configure"
15410 #include "confdefs.h"
15411
15412 #if HAVE_DLFCN_H
15413 #include <dlfcn.h>
15414 #endif
15415
15416 #include <stdio.h>
15417
15418 #ifdef RTLD_GLOBAL
15419 #  define LT_DLGLOBAL           RTLD_GLOBAL
15420 #else
15421 #  ifdef DL_GLOBAL
15422 #    define LT_DLGLOBAL         DL_GLOBAL
15423 #  else
15424 #    define LT_DLGLOBAL         0
15425 #  endif
15426 #endif
15427
15428 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15429    find out it does not work in some platform. */
15430 #ifndef LT_DLLAZY_OR_NOW
15431 #  ifdef RTLD_LAZY
15432 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15433 #  else
15434 #    ifdef DL_LAZY
15435 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15436 #    else
15437 #      ifdef RTLD_NOW
15438 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15439 #      else
15440 #        ifdef DL_NOW
15441 #          define LT_DLLAZY_OR_NOW      DL_NOW
15442 #        else
15443 #          define LT_DLLAZY_OR_NOW      0
15444 #        endif
15445 #      endif
15446 #    endif
15447 #  endif
15448 #endif
15449
15450 /* When -fvisibility=hidden is used, assume the code has been annotated
15451    correspondingly for the symbols needed.  */
15452 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15453 int fnord () __attribute__((visibility("default")));
15454 #endif
15455
15456 int fnord () { return 42; }
15457 int main ()
15458 {
15459   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15460   int status = $lt_dlunknown;
15461
15462   if (self)
15463     {
15464       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15465       else
15466         {
15467           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15468           else puts (dlerror ());
15469         }
15470       /* dlclose (self); */
15471     }
15472   else
15473     puts (dlerror ());
15474
15475   return status;
15476 }
15477 _LT_EOF
15478   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15479   (eval $ac_link) 2>&5
15480   ac_status=$?
15481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15482   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15483     (./conftest; exit; ) >&5 2>/dev/null
15484     lt_status=$?
15485     case x$lt_status in
15486       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15487       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15488       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15489     esac
15490   else :
15491     # compilation failed
15492     lt_cv_dlopen_self_static=no
15493   fi
15494 fi
15495 rm -fr conftest*
15496
15497
15498 fi
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15500 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15501     fi
15502
15503     CPPFLAGS=$save_CPPFLAGS
15504     LDFLAGS=$save_LDFLAGS
15505     LIBS=$save_LIBS
15506     ;;
15507   esac
15508
15509   case $lt_cv_dlopen_self in
15510   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15511   *) enable_dlopen_self=unknown ;;
15512   esac
15513
15514   case $lt_cv_dlopen_self_static in
15515   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15516   *) enable_dlopen_self_static=unknown ;;
15517   esac
15518 fi
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536 striplib=
15537 old_striplib=
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15539 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15540 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15541   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15542   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15544 $as_echo "yes" >&6; }
15545 else
15546 # FIXME - insert some real tests, host_os isn't really good enough
15547   case $host_os in
15548   darwin*)
15549     if test -n "$STRIP"; then
15550       striplib="$STRIP -x"
15551       old_striplib="$STRIP -S"
15552       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15553 $as_echo "yes" >&6; }
15554     else
15555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15556 $as_echo "no" >&6; }
15557     fi
15558     ;;
15559   *)
15560     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15561 $as_echo "no" >&6; }
15562     ;;
15563   esac
15564 fi
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577   # Report what library types will actually be built
15578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15579 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15581 $as_echo "$can_build_shared" >&6; }
15582
15583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15584 $as_echo_n "checking whether to build shared libraries... " >&6; }
15585   test no = "$can_build_shared" && enable_shared=no
15586
15587   # On AIX, shared libraries and static libraries use the same namespace, and
15588   # are all built from PIC.
15589   case $host_os in
15590   aix3*)
15591     test yes = "$enable_shared" && enable_static=no
15592     if test -n "$RANLIB"; then
15593       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15594       postinstall_cmds='$RANLIB $lib'
15595     fi
15596     ;;
15597
15598   aix[4-9]*)
15599     if test ia64 != "$host_cpu"; then
15600       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15601       yes,aix,yes) ;;                   # shared object as lib.so file only
15602       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15603       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15604       esac
15605     fi
15606     ;;
15607   esac
15608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15609 $as_echo "$enable_shared" >&6; }
15610
15611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15612 $as_echo_n "checking whether to build static libraries... " >&6; }
15613   # Make sure either enable_shared or enable_static is yes.
15614   test yes = "$enable_shared" || enable_static=yes
15615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15616 $as_echo "$enable_static" >&6; }
15617
15618
15619
15620
15621 fi
15622 ac_ext=c
15623 ac_cpp='$CPP $CPPFLAGS'
15624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15627
15628 CC=$lt_save_CC
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644         ac_config_commands="$ac_config_commands libtool"
15645
15646
15647
15648
15649 # Only expand once:
15650
15651
15652 ## --------------------- ##
15653 ##  End of libtool code  ##
15654 ## --------------------- ##
15655
15656 #
15657 # Verify if finally libtool shared libraries will be built
15658 #
15659
15660 case "x$enable_shared" in # ((
15661   xyes | xno)
15662     xc_lt_build_shared=$enable_shared
15663     ;;
15664   *)
15665     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15666     ;;
15667 esac
15668
15669 #
15670 # Verify if finally libtool static libraries will be built
15671 #
15672
15673 case "x$enable_static" in # ((
15674   xyes | xno)
15675     xc_lt_build_static=$enable_static
15676     ;;
15677   *)
15678     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15679     ;;
15680 esac
15681
15682 #
15683 # Verify if libtool shared libraries should be linked using flag -version-info
15684 #
15685
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15687 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15688 xc_lt_shlib_use_version_info='yes'
15689 if test "x$version_type" = 'xnone'; then
15690   xc_lt_shlib_use_version_info='no'
15691 fi
15692 case $host_os in # (
15693   amigaos*)
15694     xc_lt_shlib_use_version_info='yes'
15695     ;;
15696 esac
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15698 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15699
15700 #
15701 # Verify if libtool shared libraries should be linked using flag -no-undefined
15702 #
15703
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15705 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15706 xc_lt_shlib_use_no_undefined='no'
15707 if test "x$allow_undefined" = 'xno'; then
15708   xc_lt_shlib_use_no_undefined='yes'
15709 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15710   xc_lt_shlib_use_no_undefined='yes'
15711 fi
15712 case $host_os in # (
15713   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15714     xc_lt_shlib_use_no_undefined='yes'
15715     ;;
15716 esac
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15718 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15719
15720 #
15721 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15722 #
15723
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15725 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15726 xc_lt_shlib_use_mimpure_text='no'
15727 case $host_os in # (
15728   solaris2*)
15729     if test "x$GCC" = 'xyes'; then
15730       xc_lt_shlib_use_mimpure_text='yes'
15731     fi
15732     ;;
15733 esac
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15735 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15736
15737 #
15738 # Find out whether libtool libraries would be built wit PIC
15739 #
15740
15741 case "x$pic_mode" in # ((((
15742   xdefault)
15743     xc_lt_build_shared_with_pic='yes'
15744     xc_lt_build_static_with_pic='no'
15745     ;;
15746   xyes)
15747     xc_lt_build_shared_with_pic='yes'
15748     xc_lt_build_static_with_pic='yes'
15749     ;;
15750   xno)
15751     xc_lt_build_shared_with_pic='no'
15752     xc_lt_build_static_with_pic='no'
15753     ;;
15754   *)
15755     xc_lt_build_shared_with_pic='unknown'
15756     xc_lt_build_static_with_pic='unknown'
15757     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15758 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15759     ;;
15760 esac
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15762 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15764 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15766 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15768 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15769
15770 #
15771 # Verify if libtool shared libraries will be built while static not built
15772 #
15773
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15775 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15776 if test "$xc_lt_build_shared" = 'yes' &&
15777   test "$xc_lt_build_static" = 'no'; then
15778   xc_lt_build_shared_only='yes'
15779 else
15780   xc_lt_build_shared_only='no'
15781 fi
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15783 $as_echo "$xc_lt_build_shared_only" >&6; }
15784
15785 #
15786 # Verify if libtool static libraries will be built while shared not built
15787 #
15788
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15790 $as_echo_n "checking whether to build static libraries only... " >&6; }
15791 if test "$xc_lt_build_static" = 'yes' &&
15792   test "$xc_lt_build_shared" = 'no'; then
15793   xc_lt_build_static_only='yes'
15794 else
15795   xc_lt_build_static_only='no'
15796 fi
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15798 $as_echo "$xc_lt_build_static_only" >&6; }
15799
15800
15801
15802
15803 #
15804 # Automake conditionals based on libtool related checks
15805 #
15806
15807  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15808   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15809   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15810 else
15811   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15812   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15813 fi
15814
15815  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15816   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15817   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15818 else
15819   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15820   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15821 fi
15822
15823  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15824   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15825   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15826 else
15827   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15828   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15829 fi
15830
15831
15832 #
15833 # Due to libtool and automake machinery limitations of not allowing
15834 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15835 # inclusion of these in shared or static libraries, we are forced to
15836 # build using separate configure runs for shared and static libraries
15837 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15838 # to compile objects for each kind of library. Notice that relying on
15839 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15840 # user might for example choose to build static libraries with PIC.
15841 #
15842
15843 #
15844 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15845 # targeting a static library and not building its shared counterpart.
15846 #
15847
15848  if test "x$xc_lt_build_static_only" = 'xyes'; then
15849   USE_CPPFLAG_CURL_STATICLIB_TRUE=
15850   USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15851 else
15852   USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15853   USE_CPPFLAG_CURL_STATICLIB_FALSE=
15854 fi
15855
15856
15857 #
15858 # Make staticlib CPPFLAG variable and its definition visible in output
15859 # files unconditionally, providing an empty definition unless strictly
15860 # targeting a static library and not building its shared counterpart.
15861 #
15862
15863 CPPFLAG_CURL_STATICLIB=
15864 if test "x$xc_lt_build_static_only" = 'xyes'; then
15865   CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15866 fi
15867
15868
15869
15870 # Determine whether all dependent libraries must be specified when linking
15871 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15872 then
15873     REQUIRE_LIB_DEPS=no
15874 else
15875     REQUIRE_LIB_DEPS=yes
15876 fi
15877
15878  if test x$REQUIRE_LIB_DEPS = xyes; then
15879   USE_EXPLICIT_LIB_DEPS_TRUE=
15880   USE_EXPLICIT_LIB_DEPS_FALSE='#'
15881 else
15882   USE_EXPLICIT_LIB_DEPS_TRUE='#'
15883   USE_EXPLICIT_LIB_DEPS_FALSE=
15884 fi
15885
15886
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15888 $as_echo_n "checking for inline... " >&6; }
15889 if ${ac_cv_c_inline+:} false; then :
15890   $as_echo_n "(cached) " >&6
15891 else
15892   ac_cv_c_inline=no
15893 for ac_kw in inline __inline__ __inline; do
15894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895 /* end confdefs.h.  */
15896 #ifndef __cplusplus
15897 typedef int foo_t;
15898 static $ac_kw foo_t static_foo () {return 0; }
15899 $ac_kw foo_t foo () {return 0; }
15900 #endif
15901
15902 _ACEOF
15903 if ac_fn_c_try_compile "$LINENO"; then :
15904   ac_cv_c_inline=$ac_kw
15905 fi
15906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15907   test "$ac_cv_c_inline" != no && break
15908 done
15909
15910 fi
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15912 $as_echo "$ac_cv_c_inline" >&6; }
15913
15914 case $ac_cv_c_inline in
15915   inline | yes) ;;
15916   *)
15917     case $ac_cv_c_inline in
15918       no) ac_val=;;
15919       *) ac_val=$ac_cv_c_inline;;
15920     esac
15921     cat >>confdefs.h <<_ACEOF
15922 #ifndef __cplusplus
15923 #define inline $ac_val
15924 #endif
15925 _ACEOF
15926     ;;
15927 esac
15928
15929
15930
15931
15932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15933 $as_echo_n "checking if cpp -P is needed... " >&6; }
15934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h.  */
15936
15937  #include <errno.h>
15938 TEST EINVAL TEST
15939
15940 _ACEOF
15941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15942   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15943   cpp=no
15944 else
15945   cpp=yes
15946 fi
15947 rm -f conftest*
15948
15949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15950 $as_echo "$cpp" >&6; }
15951
15952     if test "x$cpp" = "xyes"; then
15953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15954 $as_echo_n "checking if cpp -P works... " >&6; }
15955     OLDCPPFLAGS=$CPPFLAGS
15956     CPPFLAGS="$CPPFLAGS -P"
15957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h.  */
15959
15960  #include <errno.h>
15961 TEST EINVAL TEST
15962
15963 _ACEOF
15964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15965   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15966   cpp_p=yes
15967 else
15968   cpp_p=no
15969 fi
15970 rm -f conftest*
15971
15972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15973 $as_echo "$cpp_p" >&6; }
15974
15975     if test "x$cpp_p" = "xno"; then
15976       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15977 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15978       # without -P
15979       CPPPFLAG=""
15980     else
15981       # with -P
15982       CPPPFLAG="-P"
15983     fi
15984         CPPFLAGS=$OLDCPPFLAGS
15985   else
15986     # without -P
15987     CPPPFLAG=""
15988   fi
15989
15990
15991   #
15992   compiler_id="unknown"
15993   compiler_num="0"
15994   #
15995   flags_dbg_all="unknown"
15996   flags_dbg_yes="unknown"
15997   flags_dbg_off="unknown"
15998   flags_opt_all="unknown"
15999   flags_opt_yes="unknown"
16000   flags_opt_off="unknown"
16001   #
16002   flags_prefer_cppflags="no"
16003   #
16004
16005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16006 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16007
16008     OLDCPPFLAGS=$CPPFLAGS
16009   # CPPPFLAG comes from CURL_CPP_P
16010   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16011       if test -z "$SED"; then
16012     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16013   fi
16014   if test -z "$GREP"; then
16015     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16016   fi
16017
16018   tmp_exp=""
16019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020 /* end confdefs.h.  */
16021
16022
16023 #ifdef __DECC
16024 CURL_DEF_TOKEN __DECC
16025 #endif
16026
16027
16028 _ACEOF
16029 if ac_fn_c_try_cpp "$LINENO"; then :
16030
16031     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16032       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16033       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16034       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16035     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16036       tmp_exp=""
16037     fi
16038
16039 fi
16040 rm -f conftest.err conftest.i conftest.$ac_ext
16041   if test -z "$tmp_exp"; then
16042     curl_cv_have_def___DECC=no
16043
16044   else
16045     curl_cv_have_def___DECC=yes
16046     curl_cv_def___DECC=$tmp_exp
16047
16048   fi
16049       CPPFLAGS=$OLDCPPFLAGS
16050
16051
16052     OLDCPPFLAGS=$CPPFLAGS
16053   # CPPPFLAG comes from CURL_CPP_P
16054   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16055       if test -z "$SED"; then
16056     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16057   fi
16058   if test -z "$GREP"; then
16059     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16060   fi
16061
16062   tmp_exp=""
16063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h.  */
16065
16066
16067 #ifdef __DECC_VER
16068 CURL_DEF_TOKEN __DECC_VER
16069 #endif
16070
16071
16072 _ACEOF
16073 if ac_fn_c_try_cpp "$LINENO"; then :
16074
16075     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16076       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16077       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16078       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16079     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16080       tmp_exp=""
16081     fi
16082
16083 fi
16084 rm -f conftest.err conftest.i conftest.$ac_ext
16085   if test -z "$tmp_exp"; then
16086     curl_cv_have_def___DECC_VER=no
16087
16088   else
16089     curl_cv_have_def___DECC_VER=yes
16090     curl_cv_def___DECC_VER=$tmp_exp
16091
16092   fi
16093       CPPFLAGS=$OLDCPPFLAGS
16094
16095   if test "$curl_cv_have_def___DECC" = "yes" &&
16096     test "$curl_cv_have_def___DECC_VER" = "yes"; then
16097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16098 $as_echo "yes" >&6; }
16099     compiler_id="DEC_C"
16100     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16101     flags_dbg_yes="-g2"
16102     flags_dbg_off=""
16103     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16104     flags_opt_yes="-O1"
16105     flags_opt_off="-O0"
16106   else
16107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16108 $as_echo "no" >&6; }
16109   fi
16110
16111
16112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16113 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
16114
16115     OLDCPPFLAGS=$CPPFLAGS
16116   # CPPPFLAG comes from CURL_CPP_P
16117   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16118       if test -z "$SED"; then
16119     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16120   fi
16121   if test -z "$GREP"; then
16122     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16123   fi
16124
16125   tmp_exp=""
16126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h.  */
16128
16129
16130 #ifdef __HP_cc
16131 CURL_DEF_TOKEN __HP_cc
16132 #endif
16133
16134
16135 _ACEOF
16136 if ac_fn_c_try_cpp "$LINENO"; then :
16137
16138     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16139       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16140       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16141       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16142     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16143       tmp_exp=""
16144     fi
16145
16146 fi
16147 rm -f conftest.err conftest.i conftest.$ac_ext
16148   if test -z "$tmp_exp"; then
16149     curl_cv_have_def___HP_cc=no
16150
16151   else
16152     curl_cv_have_def___HP_cc=yes
16153     curl_cv_def___HP_cc=$tmp_exp
16154
16155   fi
16156       CPPFLAGS=$OLDCPPFLAGS
16157
16158   if test "$curl_cv_have_def___HP_cc" = "yes"; then
16159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16160 $as_echo "yes" >&6; }
16161     compiler_id="HP_UX_C"
16162     flags_dbg_all="-g -s"
16163     flags_dbg_yes="-g"
16164     flags_dbg_off="-s"
16165     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16166     flags_opt_yes="+O2"
16167     flags_opt_off="+O0"
16168   else
16169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16170 $as_echo "no" >&6; }
16171   fi
16172
16173
16174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16175 $as_echo_n "checking if compiler is IBM C... " >&6; }
16176
16177     OLDCPPFLAGS=$CPPFLAGS
16178   # CPPPFLAG comes from CURL_CPP_P
16179   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16180       if test -z "$SED"; then
16181     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16182   fi
16183   if test -z "$GREP"; then
16184     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16185   fi
16186
16187   tmp_exp=""
16188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h.  */
16190
16191
16192 #ifdef __IBMC__
16193 CURL_DEF_TOKEN __IBMC__
16194 #endif
16195
16196
16197 _ACEOF
16198 if ac_fn_c_try_cpp "$LINENO"; then :
16199
16200     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16201       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16202       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16203       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16204     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16205       tmp_exp=""
16206     fi
16207
16208 fi
16209 rm -f conftest.err conftest.i conftest.$ac_ext
16210   if test -z "$tmp_exp"; then
16211     curl_cv_have_def___IBMC__=no
16212
16213   else
16214     curl_cv_have_def___IBMC__=yes
16215     curl_cv_def___IBMC__=$tmp_exp
16216
16217   fi
16218       CPPFLAGS=$OLDCPPFLAGS
16219
16220   if test "$curl_cv_have_def___IBMC__" = "yes"; then
16221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16222 $as_echo "yes" >&6; }
16223     compiler_id="IBM_C"
16224     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16225     flags_dbg_yes="-g"
16226     flags_dbg_off=""
16227     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16228     flags_opt_all="$flags_opt_all -qnooptimize"
16229     flags_opt_all="$flags_opt_all -qoptimize=0"
16230     flags_opt_all="$flags_opt_all -qoptimize=1"
16231     flags_opt_all="$flags_opt_all -qoptimize=2"
16232     flags_opt_all="$flags_opt_all -qoptimize=3"
16233     flags_opt_all="$flags_opt_all -qoptimize=4"
16234     flags_opt_all="$flags_opt_all -qoptimize=5"
16235     flags_opt_yes="-O2"
16236     flags_opt_off="-qnooptimize"
16237     flags_prefer_cppflags="yes"
16238   else
16239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16240 $as_echo "no" >&6; }
16241   fi
16242
16243
16244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16245 $as_echo_n "checking if compiler is Intel C... " >&6; }
16246
16247     OLDCPPFLAGS=$CPPFLAGS
16248   # CPPPFLAG comes from CURL_CPP_P
16249   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16250       if test -z "$SED"; then
16251     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16252   fi
16253   if test -z "$GREP"; then
16254     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16255   fi
16256
16257   tmp_exp=""
16258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259 /* end confdefs.h.  */
16260
16261
16262 #ifdef __INTEL_COMPILER
16263 CURL_DEF_TOKEN __INTEL_COMPILER
16264 #endif
16265
16266
16267 _ACEOF
16268 if ac_fn_c_try_cpp "$LINENO"; then :
16269
16270     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16271       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16272       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16273       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16274     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16275       tmp_exp=""
16276     fi
16277
16278 fi
16279 rm -f conftest.err conftest.i conftest.$ac_ext
16280   if test -z "$tmp_exp"; then
16281     curl_cv_have_def___INTEL_COMPILER=no
16282
16283   else
16284     curl_cv_have_def___INTEL_COMPILER=yes
16285     curl_cv_def___INTEL_COMPILER=$tmp_exp
16286
16287   fi
16288       CPPFLAGS=$OLDCPPFLAGS
16289
16290   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16292 $as_echo "yes" >&6; }
16293     compiler_num="$curl_cv_def___INTEL_COMPILER"
16294
16295     OLDCPPFLAGS=$CPPFLAGS
16296   # CPPPFLAG comes from CURL_CPP_P
16297   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16298       if test -z "$SED"; then
16299     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16300   fi
16301   if test -z "$GREP"; then
16302     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16303   fi
16304
16305   tmp_exp=""
16306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h.  */
16308
16309
16310 #ifdef __unix__
16311 CURL_DEF_TOKEN __unix__
16312 #endif
16313
16314
16315 _ACEOF
16316 if ac_fn_c_try_cpp "$LINENO"; then :
16317
16318     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16319       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16320       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16321       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16322     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16323       tmp_exp=""
16324     fi
16325
16326 fi
16327 rm -f conftest.err conftest.i conftest.$ac_ext
16328   if test -z "$tmp_exp"; then
16329     curl_cv_have_def___unix__=no
16330
16331   else
16332     curl_cv_have_def___unix__=yes
16333     curl_cv_def___unix__=$tmp_exp
16334
16335   fi
16336       CPPFLAGS=$OLDCPPFLAGS
16337
16338     if test "$curl_cv_have_def___unix__" = "yes"; then
16339       compiler_id="INTEL_UNIX_C"
16340       flags_dbg_all="-g -g0"
16341       flags_dbg_yes="-g"
16342       flags_dbg_off=""
16343       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16344       flags_opt_yes="-O2"
16345       flags_opt_off="-O0"
16346     else
16347       compiler_id="INTEL_WINDOWS_C"
16348       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16349       flags_dbg_all="$flags_dbg_all /debug"
16350       flags_dbg_all="$flags_dbg_all /debug:none"
16351       flags_dbg_all="$flags_dbg_all /debug:minimal"
16352       flags_dbg_all="$flags_dbg_all /debug:partial"
16353       flags_dbg_all="$flags_dbg_all /debug:full"
16354       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16355       flags_dbg_all="$flags_dbg_all /debug:extended"
16356       flags_dbg_yes="/Zi /Oy-"
16357       flags_dbg_off="/debug:none /Oy-"
16358       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16359       flags_opt_yes="/O2"
16360       flags_opt_off="/Od"
16361     fi
16362   else
16363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16364 $as_echo "no" >&6; }
16365   fi
16366
16367
16368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16369 $as_echo_n "checking if compiler is clang... " >&6; }
16370
16371     OLDCPPFLAGS=$CPPFLAGS
16372   # CPPPFLAG comes from CURL_CPP_P
16373   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16374       if test -z "$SED"; then
16375     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16376   fi
16377   if test -z "$GREP"; then
16378     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16379   fi
16380
16381   tmp_exp=""
16382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h.  */
16384
16385
16386 #ifdef __clang__
16387 CURL_DEF_TOKEN __clang__
16388 #endif
16389
16390
16391 _ACEOF
16392 if ac_fn_c_try_cpp "$LINENO"; then :
16393
16394     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16395       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16396       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16397       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16398     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16399       tmp_exp=""
16400     fi
16401
16402 fi
16403 rm -f conftest.err conftest.i conftest.$ac_ext
16404   if test -z "$tmp_exp"; then
16405     curl_cv_have_def___clang__=no
16406
16407   else
16408     curl_cv_have_def___clang__=yes
16409     curl_cv_def___clang__=$tmp_exp
16410
16411   fi
16412       CPPFLAGS=$OLDCPPFLAGS
16413
16414   if test "$curl_cv_have_def___clang__" = "yes"; then
16415     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16416 $as_echo "yes" >&6; }
16417     compiler_id="CLANG"
16418     fullclangver=`$CC -v 2>&1 | grep version`
16419     clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16420     if test -z "$clangver"; then
16421       if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
16422                 clangver="3.7"
16423       else
16424         clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16425       fi
16426     fi
16427     clangvhi=`echo $clangver | cut -d . -f1`
16428     clangvlo=`echo $clangver | cut -d . -f2`
16429     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16430     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16431     flags_dbg_all="$flags_dbg_all -ggdb"
16432     flags_dbg_all="$flags_dbg_all -gstabs"
16433     flags_dbg_all="$flags_dbg_all -gstabs+"
16434     flags_dbg_all="$flags_dbg_all -gcoff"
16435     flags_dbg_all="$flags_dbg_all -gxcoff"
16436     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16437     flags_dbg_all="$flags_dbg_all -gvms"
16438     flags_dbg_yes="-g"
16439     flags_dbg_off=""
16440     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16441     flags_opt_yes="-Os"
16442     flags_opt_off="-O0"
16443   else
16444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445 $as_echo "no" >&6; }
16446   fi
16447
16448
16449       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16450 $as_echo_n "checking if compiler is GNU C... " >&6; }
16451
16452     OLDCPPFLAGS=$CPPFLAGS
16453   # CPPPFLAG comes from CURL_CPP_P
16454   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16455       if test -z "$SED"; then
16456     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16457   fi
16458   if test -z "$GREP"; then
16459     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16460   fi
16461
16462   tmp_exp=""
16463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h.  */
16465
16466
16467 #ifdef __GNUC__
16468 CURL_DEF_TOKEN __GNUC__
16469 #endif
16470
16471
16472 _ACEOF
16473 if ac_fn_c_try_cpp "$LINENO"; then :
16474
16475     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16476       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16477       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16478       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16479     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16480       tmp_exp=""
16481     fi
16482
16483 fi
16484 rm -f conftest.err conftest.i conftest.$ac_ext
16485   if test -z "$tmp_exp"; then
16486     curl_cv_have_def___GNUC__=no
16487
16488   else
16489     curl_cv_have_def___GNUC__=yes
16490     curl_cv_def___GNUC__=$tmp_exp
16491
16492   fi
16493       CPPFLAGS=$OLDCPPFLAGS
16494
16495   if test "$curl_cv_have_def___GNUC__" = "yes" &&
16496     test "$compiler_id" = "unknown"; then
16497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16498 $as_echo "yes" >&6; }
16499     compiler_id="GNU_C"
16500     gccver=`$CC -dumpversion`
16501     gccvhi=`echo $gccver | cut -d . -f1`
16502     gccvlo=`echo $gccver | cut -d . -f2`
16503     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16504     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16505     flags_dbg_all="$flags_dbg_all -ggdb"
16506     flags_dbg_all="$flags_dbg_all -gstabs"
16507     flags_dbg_all="$flags_dbg_all -gstabs+"
16508     flags_dbg_all="$flags_dbg_all -gcoff"
16509     flags_dbg_all="$flags_dbg_all -gxcoff"
16510     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16511     flags_dbg_all="$flags_dbg_all -gvms"
16512     flags_dbg_yes="-g"
16513     flags_dbg_off=""
16514     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16515     flags_opt_yes="-O2"
16516     flags_opt_off="-O0"
16517
16518     OLDCPPFLAGS=$CPPFLAGS
16519   # CPPPFLAG comes from CURL_CPP_P
16520   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16521       if test -z "$SED"; then
16522     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16523   fi
16524   if test -z "$GREP"; then
16525     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16526   fi
16527
16528   tmp_exp=""
16529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16530 /* end confdefs.h.  */
16531
16532
16533 #ifdef _WIN32
16534 CURL_DEF_TOKEN _WIN32
16535 #endif
16536
16537
16538 _ACEOF
16539 if ac_fn_c_try_cpp "$LINENO"; then :
16540
16541     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16542       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16543       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16544       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16545     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16546       tmp_exp=""
16547     fi
16548
16549 fi
16550 rm -f conftest.err conftest.i conftest.$ac_ext
16551   if test -z "$tmp_exp"; then
16552     curl_cv_have_def__WIN32=no
16553
16554   else
16555     curl_cv_have_def__WIN32=yes
16556     curl_cv_def__WIN32=$tmp_exp
16557
16558   fi
16559       CPPFLAGS=$OLDCPPFLAGS
16560
16561   else
16562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16563 $as_echo "no" >&6; }
16564   fi
16565
16566
16567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16568 $as_echo_n "checking if compiler is LCC... " >&6; }
16569
16570     OLDCPPFLAGS=$CPPFLAGS
16571   # CPPPFLAG comes from CURL_CPP_P
16572   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16573       if test -z "$SED"; then
16574     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16575   fi
16576   if test -z "$GREP"; then
16577     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16578   fi
16579
16580   tmp_exp=""
16581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h.  */
16583
16584
16585 #ifdef __LCC__
16586 CURL_DEF_TOKEN __LCC__
16587 #endif
16588
16589
16590 _ACEOF
16591 if ac_fn_c_try_cpp "$LINENO"; then :
16592
16593     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16594       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16595       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16596       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16597     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16598       tmp_exp=""
16599     fi
16600
16601 fi
16602 rm -f conftest.err conftest.i conftest.$ac_ext
16603   if test -z "$tmp_exp"; then
16604     curl_cv_have_def___LCC__=no
16605
16606   else
16607     curl_cv_have_def___LCC__=yes
16608     curl_cv_def___LCC__=$tmp_exp
16609
16610   fi
16611       CPPFLAGS=$OLDCPPFLAGS
16612
16613   if test "$curl_cv_have_def___LCC__" = "yes"; then
16614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16615 $as_echo "yes" >&6; }
16616     compiler_id="LCC"
16617     flags_dbg_all="-g"
16618     flags_dbg_yes="-g"
16619     flags_dbg_off=""
16620     flags_opt_all=""
16621     flags_opt_yes=""
16622     flags_opt_off=""
16623   else
16624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16625 $as_echo "no" >&6; }
16626   fi
16627
16628
16629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16630 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16631
16632     OLDCPPFLAGS=$CPPFLAGS
16633   # CPPPFLAG comes from CURL_CPP_P
16634   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16635       if test -z "$SED"; then
16636     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16637   fi
16638   if test -z "$GREP"; then
16639     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16640   fi
16641
16642   tmp_exp=""
16643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16644 /* end confdefs.h.  */
16645
16646
16647 #ifdef __GNUC__
16648 CURL_DEF_TOKEN __GNUC__
16649 #endif
16650
16651
16652 _ACEOF
16653 if ac_fn_c_try_cpp "$LINENO"; then :
16654
16655     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16656       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16657       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16658       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16659     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16660       tmp_exp=""
16661     fi
16662
16663 fi
16664 rm -f conftest.err conftest.i conftest.$ac_ext
16665   if test -z "$tmp_exp"; then
16666     curl_cv_have_def___GNUC__=no
16667
16668   else
16669     curl_cv_have_def___GNUC__=yes
16670     curl_cv_def___GNUC__=$tmp_exp
16671
16672   fi
16673       CPPFLAGS=$OLDCPPFLAGS
16674
16675
16676     OLDCPPFLAGS=$CPPFLAGS
16677   # CPPPFLAG comes from CURL_CPP_P
16678   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16679       if test -z "$SED"; then
16680     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16681   fi
16682   if test -z "$GREP"; then
16683     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16684   fi
16685
16686   tmp_exp=""
16687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h.  */
16689
16690
16691 #ifdef _COMPILER_VERSION
16692 CURL_DEF_TOKEN _COMPILER_VERSION
16693 #endif
16694
16695
16696 _ACEOF
16697 if ac_fn_c_try_cpp "$LINENO"; then :
16698
16699     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16700       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16701       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16702       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16703     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16704       tmp_exp=""
16705     fi
16706
16707 fi
16708 rm -f conftest.err conftest.i conftest.$ac_ext
16709   if test -z "$tmp_exp"; then
16710     curl_cv_have_def__COMPILER_VERSION=no
16711
16712   else
16713     curl_cv_have_def__COMPILER_VERSION=yes
16714     curl_cv_def__COMPILER_VERSION=$tmp_exp
16715
16716   fi
16717       CPPFLAGS=$OLDCPPFLAGS
16718
16719
16720     OLDCPPFLAGS=$CPPFLAGS
16721   # CPPPFLAG comes from CURL_CPP_P
16722   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16723       if test -z "$SED"; then
16724     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16725   fi
16726   if test -z "$GREP"; then
16727     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16728   fi
16729
16730   tmp_exp=""
16731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h.  */
16733
16734
16735 #ifdef _SGI_COMPILER_VERSION
16736 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16737 #endif
16738
16739
16740 _ACEOF
16741 if ac_fn_c_try_cpp "$LINENO"; then :
16742
16743     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16744       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16745       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16746       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16747     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16748       tmp_exp=""
16749     fi
16750
16751 fi
16752 rm -f conftest.err conftest.i conftest.$ac_ext
16753   if test -z "$tmp_exp"; then
16754     curl_cv_have_def__SGI_COMPILER_VERSION=no
16755
16756   else
16757     curl_cv_have_def__SGI_COMPILER_VERSION=yes
16758     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16759
16760   fi
16761       CPPFLAGS=$OLDCPPFLAGS
16762
16763   if test "$curl_cv_have_def___GNUC__" = "no" &&
16764     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16765      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16767 $as_echo "yes" >&6; }
16768     compiler_id="SGI_MIPSPRO_C"
16769     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16770     flags_dbg_yes="-g"
16771     flags_dbg_off=""
16772     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16773     flags_opt_yes="-O2"
16774     flags_opt_off="-O0"
16775   else
16776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16777 $as_echo "no" >&6; }
16778   fi
16779
16780
16781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16782 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16783
16784     OLDCPPFLAGS=$CPPFLAGS
16785   # CPPPFLAG comes from CURL_CPP_P
16786   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16787       if test -z "$SED"; then
16788     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16789   fi
16790   if test -z "$GREP"; then
16791     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16792   fi
16793
16794   tmp_exp=""
16795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h.  */
16797
16798
16799 #ifdef __GNUC__
16800 CURL_DEF_TOKEN __GNUC__
16801 #endif
16802
16803
16804 _ACEOF
16805 if ac_fn_c_try_cpp "$LINENO"; then :
16806
16807     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16808       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16809       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16810       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16811     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16812       tmp_exp=""
16813     fi
16814
16815 fi
16816 rm -f conftest.err conftest.i conftest.$ac_ext
16817   if test -z "$tmp_exp"; then
16818     curl_cv_have_def___GNUC__=no
16819
16820   else
16821     curl_cv_have_def___GNUC__=yes
16822     curl_cv_def___GNUC__=$tmp_exp
16823
16824   fi
16825       CPPFLAGS=$OLDCPPFLAGS
16826
16827
16828     OLDCPPFLAGS=$CPPFLAGS
16829   # CPPPFLAG comes from CURL_CPP_P
16830   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16831       if test -z "$SED"; then
16832     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16833   fi
16834   if test -z "$GREP"; then
16835     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16836   fi
16837
16838   tmp_exp=""
16839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840 /* end confdefs.h.  */
16841
16842
16843 #ifdef __sgi
16844 CURL_DEF_TOKEN __sgi
16845 #endif
16846
16847
16848 _ACEOF
16849 if ac_fn_c_try_cpp "$LINENO"; then :
16850
16851     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16852       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16853       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16854       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16855     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16856       tmp_exp=""
16857     fi
16858
16859 fi
16860 rm -f conftest.err conftest.i conftest.$ac_ext
16861   if test -z "$tmp_exp"; then
16862     curl_cv_have_def___sgi=no
16863
16864   else
16865     curl_cv_have_def___sgi=yes
16866     curl_cv_def___sgi=$tmp_exp
16867
16868   fi
16869       CPPFLAGS=$OLDCPPFLAGS
16870
16871   if test "$curl_cv_have_def___GNUC__" = "no" &&
16872     test "$curl_cv_have_def___sgi" = "yes" &&
16873     test "$compiler_id" = "unknown"; then
16874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16875 $as_echo "yes" >&6; }
16876     compiler_id="SGI_MIPS_C"
16877     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16878     flags_dbg_yes="-g"
16879     flags_dbg_off=""
16880     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16881     flags_opt_yes="-O2"
16882     flags_opt_off="-O0"
16883   else
16884     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16885 $as_echo "no" >&6; }
16886   fi
16887
16888
16889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16890 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16891
16892     OLDCPPFLAGS=$CPPFLAGS
16893   # CPPPFLAG comes from CURL_CPP_P
16894   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16895       if test -z "$SED"; then
16896     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16897   fi
16898   if test -z "$GREP"; then
16899     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16900   fi
16901
16902   tmp_exp=""
16903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h.  */
16905
16906
16907 #ifdef __SUNPRO_C
16908 CURL_DEF_TOKEN __SUNPRO_C
16909 #endif
16910
16911
16912 _ACEOF
16913 if ac_fn_c_try_cpp "$LINENO"; then :
16914
16915     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16916       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16917       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16918       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16919     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16920       tmp_exp=""
16921     fi
16922
16923 fi
16924 rm -f conftest.err conftest.i conftest.$ac_ext
16925   if test -z "$tmp_exp"; then
16926     curl_cv_have_def___SUNPRO_C=no
16927
16928   else
16929     curl_cv_have_def___SUNPRO_C=yes
16930     curl_cv_def___SUNPRO_C=$tmp_exp
16931
16932   fi
16933       CPPFLAGS=$OLDCPPFLAGS
16934
16935   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16936     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16937 $as_echo "yes" >&6; }
16938     compiler_id="SUNPRO_C"
16939     flags_dbg_all="-g -s"
16940     flags_dbg_yes="-g"
16941     flags_dbg_off="-s"
16942     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16943     flags_opt_yes="-xO2"
16944     flags_opt_off=""
16945   else
16946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947 $as_echo "no" >&6; }
16948   fi
16949
16950
16951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16952 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16953
16954     OLDCPPFLAGS=$CPPFLAGS
16955   # CPPPFLAG comes from CURL_CPP_P
16956   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16957       if test -z "$SED"; then
16958     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16959   fi
16960   if test -z "$GREP"; then
16961     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16962   fi
16963
16964   tmp_exp=""
16965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966 /* end confdefs.h.  */
16967
16968
16969 #ifdef __TINYC__
16970 CURL_DEF_TOKEN __TINYC__
16971 #endif
16972
16973
16974 _ACEOF
16975 if ac_fn_c_try_cpp "$LINENO"; then :
16976
16977     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16978       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16979       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16980       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16981     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16982       tmp_exp=""
16983     fi
16984
16985 fi
16986 rm -f conftest.err conftest.i conftest.$ac_ext
16987   if test -z "$tmp_exp"; then
16988     curl_cv_have_def___TINYC__=no
16989
16990   else
16991     curl_cv_have_def___TINYC__=yes
16992     curl_cv_def___TINYC__=$tmp_exp
16993
16994   fi
16995       CPPFLAGS=$OLDCPPFLAGS
16996
16997   if test "$curl_cv_have_def___TINYC__" = "yes"; then
16998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16999 $as_echo "yes" >&6; }
17000     compiler_id="TINY_C"
17001     flags_dbg_all="-g -b"
17002     flags_dbg_yes="-g"
17003     flags_dbg_off=""
17004     flags_opt_all=""
17005     flags_opt_yes=""
17006     flags_opt_off=""
17007   else
17008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17009 $as_echo "no" >&6; }
17010   fi
17011
17012
17013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17014 $as_echo_n "checking if compiler is Watcom C... " >&6; }
17015
17016     OLDCPPFLAGS=$CPPFLAGS
17017   # CPPPFLAG comes from CURL_CPP_P
17018   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17019       if test -z "$SED"; then
17020     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17021   fi
17022   if test -z "$GREP"; then
17023     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17024   fi
17025
17026   tmp_exp=""
17027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h.  */
17029
17030
17031 #ifdef __WATCOMC__
17032 CURL_DEF_TOKEN __WATCOMC__
17033 #endif
17034
17035
17036 _ACEOF
17037 if ac_fn_c_try_cpp "$LINENO"; then :
17038
17039     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17040       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17041       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17042       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17043     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17044       tmp_exp=""
17045     fi
17046
17047 fi
17048 rm -f conftest.err conftest.i conftest.$ac_ext
17049   if test -z "$tmp_exp"; then
17050     curl_cv_have_def___WATCOMC__=no
17051
17052   else
17053     curl_cv_have_def___WATCOMC__=yes
17054     curl_cv_def___WATCOMC__=$tmp_exp
17055
17056   fi
17057       CPPFLAGS=$OLDCPPFLAGS
17058
17059   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17061 $as_echo "yes" >&6; }
17062
17063     OLDCPPFLAGS=$CPPFLAGS
17064   # CPPPFLAG comes from CURL_CPP_P
17065   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17066       if test -z "$SED"; then
17067     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17068   fi
17069   if test -z "$GREP"; then
17070     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17071   fi
17072
17073   tmp_exp=""
17074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h.  */
17076
17077
17078 #ifdef __UNIX__
17079 CURL_DEF_TOKEN __UNIX__
17080 #endif
17081
17082
17083 _ACEOF
17084 if ac_fn_c_try_cpp "$LINENO"; then :
17085
17086     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17087       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17088       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17089       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17090     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17091       tmp_exp=""
17092     fi
17093
17094 fi
17095 rm -f conftest.err conftest.i conftest.$ac_ext
17096   if test -z "$tmp_exp"; then
17097     curl_cv_have_def___UNIX__=no
17098
17099   else
17100     curl_cv_have_def___UNIX__=yes
17101     curl_cv_def___UNIX__=$tmp_exp
17102
17103   fi
17104       CPPFLAGS=$OLDCPPFLAGS
17105
17106     if test "$curl_cv_have_def___UNIX__" = "yes"; then
17107       compiler_id="WATCOM_UNIX_C"
17108       flags_dbg_all="-g1 -g1+ -g2 -g3"
17109       flags_dbg_yes="-g2"
17110       flags_dbg_off=""
17111       flags_opt_all="-O0 -O1 -O2 -O3"
17112       flags_opt_yes="-O2"
17113       flags_opt_off="-O0"
17114     else
17115       compiler_id="WATCOM_WINDOWS_C"
17116       flags_dbg_all=""
17117       flags_dbg_yes=""
17118       flags_dbg_off=""
17119       flags_opt_all=""
17120       flags_opt_yes=""
17121       flags_opt_off=""
17122     fi
17123   else
17124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17125 $as_echo "no" >&6; }
17126   fi
17127
17128   #
17129   if test "$compiler_id" = "unknown"; then
17130   cat <<_EOF 1>&2
17131 ***
17132 *** Warning: This configure script does not have information about the
17133 *** compiler you are using, relative to the flags required to enable or
17134 *** disable generation of debug info, optimization options or warnings.
17135 ***
17136 *** Whatever settings are present in CFLAGS will be used for this run.
17137 ***
17138 *** If you wish to help the curl project to better support your compiler
17139 *** you can report this and the required info on the libcurl development
17140 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17141 ***
17142 _EOF
17143   fi
17144
17145
17146 squeeze() {
17147   _sqz_result=""
17148   eval _sqz_input=\$$1
17149   for _sqz_token in $_sqz_input; do
17150     if test -z "$_sqz_result"; then
17151       _sqz_result="$_sqz_token"
17152     else
17153       _sqz_result="$_sqz_result $_sqz_token"
17154     fi
17155   done
17156   eval $1=\$_sqz_result
17157   return 0
17158 }
17159
17160
17161       #
17162   if test "$compiler_id" != "unknown"; then
17163     #
17164     if test "$compiler_id" = "GNU_C" ||
17165       test "$compiler_id" = "CLANG"; then
17166
17167       if test "$compiler_id" = "GNU_C" ||
17168     test "$compiler_id" = "CLANG"; then
17169     tmp_has_include="no"
17170     tmp_chg_FLAGS="$CFLAGS"
17171     for word1 in $tmp_chg_FLAGS; do
17172       case "$word1" in
17173         -I*)
17174           tmp_has_include="yes"
17175           ;;
17176       esac
17177     done
17178     if test "$tmp_has_include" = "yes"; then
17179       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17180       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17181       CFLAGS="$tmp_chg_FLAGS"
17182       squeeze CFLAGS
17183     fi
17184     tmp_has_include="no"
17185     tmp_chg_FLAGS="$CPPFLAGS"
17186     for word1 in $tmp_chg_FLAGS; do
17187       case "$word1" in
17188         -I*)
17189           tmp_has_include="yes"
17190           ;;
17191       esac
17192     done
17193     if test "$tmp_has_include" = "yes"; then
17194       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17195       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17196       CPPFLAGS="$tmp_chg_FLAGS"
17197       squeeze CPPFLAGS
17198     fi
17199   fi
17200
17201     fi
17202     #
17203     tmp_save_CPPFLAGS="$CPPFLAGS"
17204     tmp_save_CFLAGS="$CFLAGS"
17205     tmp_CPPFLAGS=""
17206     tmp_CFLAGS=""
17207     #
17208     case "$compiler_id" in
17209         #
17210       CLANG)
17211         #
17212                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17213         ;;
17214         #
17215       DEC_C)
17216         #
17217                 tmp_CFLAGS="$tmp_CFLAGS -std1"
17218                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17219                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17220                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17221         ;;
17222         #
17223       GNU_C)
17224         #
17225                         if test "$compiler_num" -ge "295"; then
17226           tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17227         fi
17228         ;;
17229         #
17230       HP_UX_C)
17231         #
17232                 tmp_CFLAGS="$tmp_CFLAGS -z"
17233                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17234         ;;
17235         #
17236       IBM_C)
17237         #
17238                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17239                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17240                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17241         ;;
17242         #
17243       INTEL_UNIX_C)
17244         #
17245                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17246                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17247                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17248         ;;
17249         #
17250       INTEL_WINDOWS_C)
17251         #
17252                 tmp_CFLAGS="$tmp_CFLAGS"
17253         ;;
17254         #
17255       LCC)
17256         #
17257                 tmp_CFLAGS="$tmp_CFLAGS -n"
17258         ;;
17259         #
17260       SGI_MIPS_C)
17261         #
17262                 tmp_CFLAGS="$tmp_CFLAGS"
17263         ;;
17264         #
17265       SGI_MIPSPRO_C)
17266         #
17267                 tmp_CFLAGS="$tmp_CFLAGS"
17268         ;;
17269         #
17270       SUNPRO_C)
17271         #
17272                 tmp_CFLAGS="$tmp_CFLAGS"
17273         ;;
17274         #
17275       TINY_C)
17276         #
17277                 tmp_CFLAGS="$tmp_CFLAGS"
17278         ;;
17279         #
17280       WATCOM_UNIX_C)
17281         #
17282                 tmp_CFLAGS="$tmp_CFLAGS"
17283         ;;
17284         #
17285       WATCOM_WINDOWS_C)
17286         #
17287                 tmp_CFLAGS="$tmp_CFLAGS"
17288         ;;
17289         #
17290     esac
17291     #
17292     squeeze tmp_CPPFLAGS
17293     squeeze tmp_CFLAGS
17294     #
17295     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17296       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17297 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17298       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17299       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17300       squeeze CPPFLAGS
17301       squeeze CFLAGS
17302
17303     tmp_compiler_works="unknown"
17304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17305 /* end confdefs.h.  */
17306
17307
17308
17309 int main (void)
17310 {
17311
17312       int i = 1;
17313       return i;
17314
17315  ;
17316  return 0;
17317 }
17318
17319 _ACEOF
17320 if ac_fn_c_try_compile "$LINENO"; then :
17321
17322     tmp_compiler_works="yes"
17323
17324 else
17325
17326     tmp_compiler_works="no"
17327     echo " " >&6
17328     sed 's/^/cc-fail: /' conftest.err >&6
17329     echo " " >&6
17330
17331 fi
17332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17333     if test "$tmp_compiler_works" = "yes"; then
17334     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17335 /* end confdefs.h.  */
17336
17337
17338
17339 int main (void)
17340 {
17341
17342         int i = 1;
17343         return i;
17344
17345  ;
17346  return 0;
17347 }
17348
17349 _ACEOF
17350 if ac_fn_c_try_link "$LINENO"; then :
17351
17352       tmp_compiler_works="yes"
17353
17354 else
17355
17356       tmp_compiler_works="no"
17357       echo " " >&6
17358       sed 's/^/link-fail: /' conftest.err >&6
17359       echo " " >&6
17360
17361 fi
17362 rm -f core conftest.err conftest.$ac_objext \
17363     conftest$ac_exeext conftest.$ac_ext
17364   fi
17365     if test "x$cross_compiling" != "xyes" &&
17366     test "$tmp_compiler_works" = "yes"; then
17367     if test "$cross_compiling" = yes; then :
17368   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17370 as_fn_error $? "cannot run test program while cross compiling
17371 See \`config.log' for more details" "$LINENO" 5; }
17372 else
17373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h.  */
17375
17376
17377 #       ifdef __STDC__
17378 #         include <stdlib.h>
17379 #       endif
17380
17381 int main (void)
17382 {
17383
17384         int i = 0;
17385         exit(i);
17386
17387  ;
17388  return 0;
17389 }
17390
17391 _ACEOF
17392 if ac_fn_c_try_run "$LINENO"; then :
17393
17394       tmp_compiler_works="yes"
17395
17396 else
17397
17398       tmp_compiler_works="no"
17399       echo " " >&6
17400       echo "run-fail: test program exited with status $ac_status" >&6
17401       echo " " >&6
17402
17403 fi
17404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17405   conftest.$ac_objext conftest.beam conftest.$ac_ext
17406 fi
17407
17408   fi
17409     if test "$tmp_compiler_works" = "yes"; then
17410
17411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17412 $as_echo "yes" >&6; }
17413         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17414 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17415
17416   else
17417
17418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17419 $as_echo "no" >&6; }
17420         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17421 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17422                 CPPFLAGS="$tmp_save_CPPFLAGS"
17423         CFLAGS="$tmp_save_CFLAGS"
17424
17425   fi
17426
17427     fi
17428     #
17429   fi
17430
17431
17432         #
17433   if test "$compiler_id" != "unknown"; then
17434     #
17435     tmp_save_CFLAGS="$CFLAGS"
17436     tmp_save_CPPFLAGS="$CPPFLAGS"
17437     #
17438     tmp_options=""
17439     tmp_CFLAGS="$CFLAGS"
17440     tmp_CPPFLAGS="$CPPFLAGS"
17441
17442     ac_var_stripped=""
17443   for word1 in $tmp_CFLAGS; do
17444     ac_var_strip_word="no"
17445     for word2 in $flags_dbg_all; do
17446       if test "$word1" = "$word2"; then
17447         ac_var_strip_word="yes"
17448       fi
17449     done
17450     if test "$ac_var_strip_word" = "no"; then
17451       ac_var_stripped="$ac_var_stripped $word1"
17452     fi
17453   done
17454     tmp_CFLAGS="$ac_var_stripped"
17455   squeeze tmp_CFLAGS
17456
17457
17458     ac_var_stripped=""
17459   for word1 in $tmp_CPPFLAGS; do
17460     ac_var_strip_word="no"
17461     for word2 in $flags_dbg_all; do
17462       if test "$word1" = "$word2"; then
17463         ac_var_strip_word="yes"
17464       fi
17465     done
17466     if test "$ac_var_strip_word" = "no"; then
17467       ac_var_stripped="$ac_var_stripped $word1"
17468     fi
17469   done
17470     tmp_CPPFLAGS="$ac_var_stripped"
17471   squeeze tmp_CPPFLAGS
17472
17473     #
17474     if test "$want_debug" = "yes"; then
17475       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17476 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17477       tmp_options="$flags_dbg_yes"
17478     fi
17479     if test "$want_debug" = "no"; then
17480       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17481 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17482       tmp_options="$flags_dbg_off"
17483     fi
17484     #
17485     if test "$flags_prefer_cppflags" = "yes"; then
17486       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17487       CFLAGS="$tmp_CFLAGS"
17488     else
17489       CPPFLAGS="$tmp_CPPFLAGS"
17490       CFLAGS="$tmp_CFLAGS $tmp_options"
17491     fi
17492     squeeze CPPFLAGS
17493     squeeze CFLAGS
17494
17495     tmp_compiler_works="unknown"
17496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h.  */
17498
17499
17500
17501 int main (void)
17502 {
17503
17504       int i = 1;
17505       return i;
17506
17507  ;
17508  return 0;
17509 }
17510
17511 _ACEOF
17512 if ac_fn_c_try_compile "$LINENO"; then :
17513
17514     tmp_compiler_works="yes"
17515
17516 else
17517
17518     tmp_compiler_works="no"
17519     echo " " >&6
17520     sed 's/^/cc-fail: /' conftest.err >&6
17521     echo " " >&6
17522
17523 fi
17524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17525     if test "$tmp_compiler_works" = "yes"; then
17526     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527 /* end confdefs.h.  */
17528
17529
17530
17531 int main (void)
17532 {
17533
17534         int i = 1;
17535         return i;
17536
17537  ;
17538  return 0;
17539 }
17540
17541 _ACEOF
17542 if ac_fn_c_try_link "$LINENO"; then :
17543
17544       tmp_compiler_works="yes"
17545
17546 else
17547
17548       tmp_compiler_works="no"
17549       echo " " >&6
17550       sed 's/^/link-fail: /' conftest.err >&6
17551       echo " " >&6
17552
17553 fi
17554 rm -f core conftest.err conftest.$ac_objext \
17555     conftest$ac_exeext conftest.$ac_ext
17556   fi
17557     if test "x$cross_compiling" != "xyes" &&
17558     test "$tmp_compiler_works" = "yes"; then
17559     if test "$cross_compiling" = yes; then :
17560   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17562 as_fn_error $? "cannot run test program while cross compiling
17563 See \`config.log' for more details" "$LINENO" 5; }
17564 else
17565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17566 /* end confdefs.h.  */
17567
17568
17569 #       ifdef __STDC__
17570 #         include <stdlib.h>
17571 #       endif
17572
17573 int main (void)
17574 {
17575
17576         int i = 0;
17577         exit(i);
17578
17579  ;
17580  return 0;
17581 }
17582
17583 _ACEOF
17584 if ac_fn_c_try_run "$LINENO"; then :
17585
17586       tmp_compiler_works="yes"
17587
17588 else
17589
17590       tmp_compiler_works="no"
17591       echo " " >&6
17592       echo "run-fail: test program exited with status $ac_status" >&6
17593       echo " " >&6
17594
17595 fi
17596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17597   conftest.$ac_objext conftest.beam conftest.$ac_ext
17598 fi
17599
17600   fi
17601     if test "$tmp_compiler_works" = "yes"; then
17602
17603       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17604 $as_echo "yes" >&6; }
17605       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17606 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17607
17608   else
17609
17610       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17611 $as_echo "no" >&6; }
17612       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17613 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17614             CPPFLAGS="$tmp_save_CPPFLAGS"
17615       CFLAGS="$tmp_save_CFLAGS"
17616
17617   fi
17618
17619     #
17620   fi
17621
17622
17623         #
17624   if test "$compiler_id" != "unknown"; then
17625     #
17626     tmp_save_CFLAGS="$CFLAGS"
17627     tmp_save_CPPFLAGS="$CPPFLAGS"
17628     #
17629     tmp_options=""
17630     tmp_CFLAGS="$CFLAGS"
17631     tmp_CPPFLAGS="$CPPFLAGS"
17632     honor_optimize_option="yes"
17633     #
17634                         #
17635     if test "$want_optimize" = "assume_no" ||
17636        test "$want_optimize" = "assume_yes"; then
17637       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17638 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17639
17640
17641   ac_var_match_word="no"
17642   for word1 in $tmp_CFLAGS; do
17643     for word2 in $flags_opt_all; do
17644       if test "$word1" = "$word2"; then
17645         ac_var_match_word="yes"
17646       fi
17647     done
17648   done
17649
17650   if test "$ac_var_match_word" = "yes"; then
17651
17652         honor_optimize_option="no"
17653
17654
17655   fi
17656
17657
17658
17659   ac_var_match_word="no"
17660   for word1 in $tmp_CPPFLAGS; do
17661     for word2 in $flags_opt_all; do
17662       if test "$word1" = "$word2"; then
17663         ac_var_match_word="yes"
17664       fi
17665     done
17666   done
17667
17668   if test "$ac_var_match_word" = "yes"; then
17669
17670         honor_optimize_option="no"
17671
17672
17673   fi
17674
17675       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17676 $as_echo "$honor_optimize_option" >&6; }
17677       if test "$honor_optimize_option" = "yes"; then
17678         if test "$want_optimize" = "assume_yes"; then
17679           want_optimize="yes"
17680         fi
17681         if test "$want_optimize" = "assume_no"; then
17682           want_optimize="no"
17683         fi
17684       fi
17685     fi
17686     #
17687     if test "$honor_optimize_option" = "yes"; then
17688
17689     ac_var_stripped=""
17690   for word1 in $tmp_CFLAGS; do
17691     ac_var_strip_word="no"
17692     for word2 in $flags_opt_all; do
17693       if test "$word1" = "$word2"; then
17694         ac_var_strip_word="yes"
17695       fi
17696     done
17697     if test "$ac_var_strip_word" = "no"; then
17698       ac_var_stripped="$ac_var_stripped $word1"
17699     fi
17700   done
17701     tmp_CFLAGS="$ac_var_stripped"
17702   squeeze tmp_CFLAGS
17703
17704
17705     ac_var_stripped=""
17706   for word1 in $tmp_CPPFLAGS; do
17707     ac_var_strip_word="no"
17708     for word2 in $flags_opt_all; do
17709       if test "$word1" = "$word2"; then
17710         ac_var_strip_word="yes"
17711       fi
17712     done
17713     if test "$ac_var_strip_word" = "no"; then
17714       ac_var_stripped="$ac_var_stripped $word1"
17715     fi
17716   done
17717     tmp_CPPFLAGS="$ac_var_stripped"
17718   squeeze tmp_CPPFLAGS
17719
17720       if test "$want_optimize" = "yes"; then
17721         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17722 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17723         tmp_options="$flags_opt_yes"
17724       fi
17725       if test "$want_optimize" = "no"; then
17726         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17727 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17728         tmp_options="$flags_opt_off"
17729       fi
17730       if test "$flags_prefer_cppflags" = "yes"; then
17731         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17732         CFLAGS="$tmp_CFLAGS"
17733       else
17734         CPPFLAGS="$tmp_CPPFLAGS"
17735         CFLAGS="$tmp_CFLAGS $tmp_options"
17736       fi
17737       squeeze CPPFLAGS
17738       squeeze CFLAGS
17739
17740     tmp_compiler_works="unknown"
17741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742 /* end confdefs.h.  */
17743
17744
17745
17746 int main (void)
17747 {
17748
17749       int i = 1;
17750       return i;
17751
17752  ;
17753  return 0;
17754 }
17755
17756 _ACEOF
17757 if ac_fn_c_try_compile "$LINENO"; then :
17758
17759     tmp_compiler_works="yes"
17760
17761 else
17762
17763     tmp_compiler_works="no"
17764     echo " " >&6
17765     sed 's/^/cc-fail: /' conftest.err >&6
17766     echo " " >&6
17767
17768 fi
17769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17770     if test "$tmp_compiler_works" = "yes"; then
17771     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772 /* end confdefs.h.  */
17773
17774
17775
17776 int main (void)
17777 {
17778
17779         int i = 1;
17780         return i;
17781
17782  ;
17783  return 0;
17784 }
17785
17786 _ACEOF
17787 if ac_fn_c_try_link "$LINENO"; then :
17788
17789       tmp_compiler_works="yes"
17790
17791 else
17792
17793       tmp_compiler_works="no"
17794       echo " " >&6
17795       sed 's/^/link-fail: /' conftest.err >&6
17796       echo " " >&6
17797
17798 fi
17799 rm -f core conftest.err conftest.$ac_objext \
17800     conftest$ac_exeext conftest.$ac_ext
17801   fi
17802     if test "x$cross_compiling" != "xyes" &&
17803     test "$tmp_compiler_works" = "yes"; then
17804     if test "$cross_compiling" = yes; then :
17805   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17807 as_fn_error $? "cannot run test program while cross compiling
17808 See \`config.log' for more details" "$LINENO" 5; }
17809 else
17810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17811 /* end confdefs.h.  */
17812
17813
17814 #       ifdef __STDC__
17815 #         include <stdlib.h>
17816 #       endif
17817
17818 int main (void)
17819 {
17820
17821         int i = 0;
17822         exit(i);
17823
17824  ;
17825  return 0;
17826 }
17827
17828 _ACEOF
17829 if ac_fn_c_try_run "$LINENO"; then :
17830
17831       tmp_compiler_works="yes"
17832
17833 else
17834
17835       tmp_compiler_works="no"
17836       echo " " >&6
17837       echo "run-fail: test program exited with status $ac_status" >&6
17838       echo " " >&6
17839
17840 fi
17841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17842   conftest.$ac_objext conftest.beam conftest.$ac_ext
17843 fi
17844
17845   fi
17846     if test "$tmp_compiler_works" = "yes"; then
17847
17848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17849 $as_echo "yes" >&6; }
17850         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17851 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17852
17853   else
17854
17855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17856 $as_echo "no" >&6; }
17857         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17858 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17859                 CPPFLAGS="$tmp_save_CPPFLAGS"
17860         CFLAGS="$tmp_save_CFLAGS"
17861
17862   fi
17863
17864     fi
17865     #
17866   fi
17867
17868
17869         #
17870   if test "$compiler_id" != "unknown"; then
17871     #
17872     tmp_save_CPPFLAGS="$CPPFLAGS"
17873     tmp_save_CFLAGS="$CFLAGS"
17874     tmp_CPPFLAGS=""
17875     tmp_CFLAGS=""
17876     #
17877     case "$compiler_id" in
17878         #
17879       CLANG)
17880         #
17881         if test "$want_warnings" = "yes"; then
17882           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17883           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17884           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17885           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17886           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17887           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17888           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17889           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17890           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17891           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17892           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17893           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17894           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17895           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17896           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17897           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17898           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17899           #
17900                     if test "$compiler_num" -ge "101"; then
17901             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17902           fi
17903           #
17904                     if test "$compiler_num" -ge "208"; then
17905             tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17906           fi
17907           #
17908                     if test "$compiler_num" -ge "209"; then
17909             tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17910           fi
17911           #
17912                     if test "$compiler_num" -ge "302"; then
17913             case $host_os in
17914             cygwin* | mingw*)
17915                                           ;;
17916             *)
17917               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17918               ;;
17919             esac
17920           fi
17921           #
17922                     if test "$compiler_num" -ge "306"; then
17923             tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17924           fi
17925           #
17926                     if test "$compiler_num" -ge "309"; then
17927             tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
17928             # avoid the varargs warning, fixed in 4.0
17929             # https://bugs.llvm.org/show_bug.cgi?id=29140
17930             if test "$compiler_num" -lt "400"; then
17931               tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17932             fi
17933           fi
17934         fi
17935         ;;
17936         #
17937       DEC_C)
17938         #
17939         if test "$want_warnings" = "yes"; then
17940                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17941         fi
17942         ;;
17943         #
17944       GNU_C)
17945         #
17946         if test "$want_warnings" = "yes"; then
17947           #
17948                               if test "x$cross_compiling" != "xyes" ||
17949             test "$compiler_num" -ge "300"; then
17950             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17951           fi
17952           #
17953                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17954           #
17955                     if test "$compiler_num" -ge "104"; then
17956             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17957                         if test "x$cross_compiling" != "xyes" ||
17958               test "$compiler_num" -ge "300"; then
17959               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17960             fi
17961           fi
17962           #
17963                     if test "$compiler_num" -ge "207"; then
17964             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17965                         if test "x$cross_compiling" != "xyes" ||
17966               test "$compiler_num" -ge "300"; then
17967               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17968               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17969             fi
17970           fi
17971           #
17972                     if test "$compiler_num" -ge "295"; then
17973             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17974           fi
17975           #
17976                     if test "$compiler_num" -ge "296"; then
17977             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17978             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17979                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17980           fi
17981           #
17982                     if test "$compiler_num" -ge "297"; then
17983             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17984           fi
17985           #
17986                     if test "$compiler_num" -ge "300"; then
17987                                                             tmp_CFLAGS="$tmp_CFLAGS"
17988           fi
17989           #
17990                     if test "$compiler_num" -ge "303"; then
17991             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17992           fi
17993           #
17994                     if test "$compiler_num" -ge "304"; then
17995             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17996           fi
17997           #
17998                     if test "$compiler_num" -ge "400"; then
17999             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18000           fi
18001           #
18002                     if test "$compiler_num" -ge "402"; then
18003             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18004           fi
18005           #
18006                     if test "$compiler_num" -ge "403"; then
18007             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18008             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18009             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18010             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18011           fi
18012           #
18013                     if test "$compiler_num" -ge "405"; then
18014                         if test "$curl_cv_have_def__WIN32" = "yes"; then
18015               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18016             fi
18017           fi
18018           #
18019                     if test "$compiler_num" -ge "406"; then
18020             tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
18021           fi
18022           #
18023         fi
18024         #
18025                 if test "$compiler_num" -ge "300"; then
18026           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18027         else
18028                               if test "x$cross_compiling" = "xyes"; then
18029             if test "$compiler_num" -ge "104"; then
18030                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18031             fi
18032             if test "$compiler_num" -ge "207"; then
18033                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18034               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18035             fi
18036           fi
18037         fi
18038         ;;
18039         #
18040       HP_UX_C)
18041         #
18042         if test "$want_warnings" = "yes"; then
18043                     tmp_CFLAGS="$tmp_CFLAGS +w1"
18044         fi
18045         ;;
18046         #
18047       IBM_C)
18048         #
18049                 tmp_CFLAGS="$tmp_CFLAGS"
18050         ;;
18051         #
18052       INTEL_UNIX_C)
18053         #
18054         if test "$want_warnings" = "yes"; then
18055           if test "$compiler_num" -gt "600"; then
18056                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18057                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18058                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18059                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18060                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18061                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18062                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18063                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18064                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18065                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18066                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18067           fi
18068         fi
18069                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18070                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18071                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18072                 if test "$compiler_num" -ge "1000"; then
18073                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18074         fi
18075         ;;
18076         #
18077       INTEL_WINDOWS_C)
18078         #
18079                 tmp_CFLAGS="$tmp_CFLAGS"
18080         ;;
18081         #
18082       LCC)
18083         #
18084         if test "$want_warnings" = "yes"; then
18085                                                   tmp_CFLAGS="$tmp_CFLAGS"
18086         fi
18087         ;;
18088         #
18089       SGI_MIPS_C)
18090         #
18091         if test "$want_warnings" = "yes"; then
18092                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18093         fi
18094         ;;
18095         #
18096       SGI_MIPSPRO_C)
18097         #
18098         if test "$want_warnings" = "yes"; then
18099                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18100                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18101         fi
18102         ;;
18103         #
18104       SUNPRO_C)
18105         #
18106         if test "$want_warnings" = "yes"; then
18107                     tmp_CFLAGS="$tmp_CFLAGS -v"
18108         fi
18109         ;;
18110         #
18111       TINY_C)
18112         #
18113         if test "$want_warnings" = "yes"; then
18114                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
18115                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18116                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18117         fi
18118         ;;
18119         #
18120       WATCOM_UNIX_C)
18121         #
18122         if test "$want_warnings" = "yes"; then
18123                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18124         fi
18125         ;;
18126         #
18127       WATCOM_WINDOWS_C)
18128         #
18129                 tmp_CFLAGS="$tmp_CFLAGS"
18130         ;;
18131         #
18132     esac
18133     #
18134     squeeze tmp_CPPFLAGS
18135     squeeze tmp_CFLAGS
18136     #
18137     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18138       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18139 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18140       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18141       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18142       squeeze CPPFLAGS
18143       squeeze CFLAGS
18144
18145     tmp_compiler_works="unknown"
18146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h.  */
18148
18149
18150
18151 int main (void)
18152 {
18153
18154       int i = 1;
18155       return i;
18156
18157  ;
18158  return 0;
18159 }
18160
18161 _ACEOF
18162 if ac_fn_c_try_compile "$LINENO"; then :
18163
18164     tmp_compiler_works="yes"
18165
18166 else
18167
18168     tmp_compiler_works="no"
18169     echo " " >&6
18170     sed 's/^/cc-fail: /' conftest.err >&6
18171     echo " " >&6
18172
18173 fi
18174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18175     if test "$tmp_compiler_works" = "yes"; then
18176     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h.  */
18178
18179
18180
18181 int main (void)
18182 {
18183
18184         int i = 1;
18185         return i;
18186
18187  ;
18188  return 0;
18189 }
18190
18191 _ACEOF
18192 if ac_fn_c_try_link "$LINENO"; then :
18193
18194       tmp_compiler_works="yes"
18195
18196 else
18197
18198       tmp_compiler_works="no"
18199       echo " " >&6
18200       sed 's/^/link-fail: /' conftest.err >&6
18201       echo " " >&6
18202
18203 fi
18204 rm -f core conftest.err conftest.$ac_objext \
18205     conftest$ac_exeext conftest.$ac_ext
18206   fi
18207     if test "x$cross_compiling" != "xyes" &&
18208     test "$tmp_compiler_works" = "yes"; then
18209     if test "$cross_compiling" = yes; then :
18210   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18212 as_fn_error $? "cannot run test program while cross compiling
18213 See \`config.log' for more details" "$LINENO" 5; }
18214 else
18215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216 /* end confdefs.h.  */
18217
18218
18219 #       ifdef __STDC__
18220 #         include <stdlib.h>
18221 #       endif
18222
18223 int main (void)
18224 {
18225
18226         int i = 0;
18227         exit(i);
18228
18229  ;
18230  return 0;
18231 }
18232
18233 _ACEOF
18234 if ac_fn_c_try_run "$LINENO"; then :
18235
18236       tmp_compiler_works="yes"
18237
18238 else
18239
18240       tmp_compiler_works="no"
18241       echo " " >&6
18242       echo "run-fail: test program exited with status $ac_status" >&6
18243       echo " " >&6
18244
18245 fi
18246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18247   conftest.$ac_objext conftest.beam conftest.$ac_ext
18248 fi
18249
18250   fi
18251     if test "$tmp_compiler_works" = "yes"; then
18252
18253         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18254 $as_echo "yes" >&6; }
18255         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18256 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18257
18258   else
18259
18260         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18261 $as_echo "no" >&6; }
18262         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18263 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18264                 CPPFLAGS="$tmp_save_CPPFLAGS"
18265         CFLAGS="$tmp_save_CFLAGS"
18266
18267   fi
18268
18269     fi
18270     #
18271   fi
18272
18273
18274 if test "$compiler_id" = "INTEL_UNIX_C"; then
18275   #
18276   if test "$compiler_num" -ge "1000"; then
18277         CFLAGS="$CFLAGS -shared-intel"
18278   elif test "$compiler_num" -ge "900"; then
18279         CFLAGS="$CFLAGS -i-dynamic"
18280   fi
18281   #
18282 fi
18283
18284
18285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18286 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h.  */
18289
18290
18291
18292 int main (void)
18293 {
18294
18295       force compilation error
18296
18297  ;
18298  return 0;
18299 }
18300
18301 _ACEOF
18302 if ac_fn_c_try_compile "$LINENO"; then :
18303
18304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305 $as_echo "no" >&6; }
18306     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18307
18308 else
18309
18310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18311 $as_echo "yes" >&6; }
18312
18313 fi
18314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18315
18316
18317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18318 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h.  */
18321
18322
18323       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18324
18325 int main (void)
18326 {
18327
18328       bad_t dummy;
18329
18330  ;
18331  return 0;
18332 }
18333
18334 _ACEOF
18335 if ac_fn_c_try_compile "$LINENO"; then :
18336
18337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18338 $as_echo "no" >&6; }
18339     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18340
18341 else
18342
18343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18344 $as_echo "yes" >&6; }
18345
18346 fi
18347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18348
18349
18350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18351 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h.  */
18354
18355
18356 #     include <stdlib.h>
18357       int rand(int n);
18358       int rand(int n)
18359       {
18360         if(n)
18361           return ++n;
18362         else
18363           return n;
18364       }
18365
18366 int main (void)
18367 {
18368
18369       int i[2]={0,0};
18370       int j = rand(i[0]);
18371       if(j)
18372         return j;
18373
18374  ;
18375  return 0;
18376 }
18377
18378 _ACEOF
18379 if ac_fn_c_try_compile "$LINENO"; then :
18380
18381     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18382 $as_echo "no" >&6; }
18383     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18384
18385 else
18386
18387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18388 $as_echo "yes" >&6; }
18389
18390 fi
18391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18392
18393
18394       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18395 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18396   supports_symbol_hiding="no"
18397   symbol_hiding_CFLAGS=""
18398   symbol_hiding_EXTERN=""
18399   tmp_CFLAGS=""
18400   tmp_EXTERN=""
18401   case "$compiler_id" in
18402     CLANG)
18403             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18404       tmp_CFLAGS="-fvisibility=hidden"
18405       supports_symbol_hiding="yes"
18406       ;;
18407     GNU_C)
18408             if test "$compiler_num" -ge "304"; then
18409         if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18410           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18411           tmp_CFLAGS="-fvisibility=hidden"
18412           supports_symbol_hiding="yes"
18413         fi
18414       fi
18415       ;;
18416     INTEL_UNIX_C)
18417             if test "$compiler_num" -ge "900"; then
18418         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18419           tmp_save_CFLAGS="$CFLAGS"
18420           CFLAGS="$CFLAGS -fvisibility=hidden"
18421           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18422 /* end confdefs.h.  */
18423
18424
18425 #             include <stdio.h>
18426
18427 int main (void)
18428 {
18429
18430               printf("icc fvisibility bug test");
18431
18432  ;
18433  return 0;
18434 }
18435
18436 _ACEOF
18437 if ac_fn_c_try_link "$LINENO"; then :
18438
18439             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18440             tmp_CFLAGS="-fvisibility=hidden"
18441             supports_symbol_hiding="yes"
18442
18443 fi
18444 rm -f core conftest.err conftest.$ac_objext \
18445     conftest$ac_exeext conftest.$ac_ext
18446           CFLAGS="$tmp_save_CFLAGS"
18447         fi
18448       fi
18449       ;;
18450     SUNPRO_C)
18451       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18452         tmp_EXTERN="__global"
18453         tmp_CFLAGS="-xldscope=hidden"
18454         supports_symbol_hiding="yes"
18455       fi
18456       ;;
18457   esac
18458   if test "$supports_symbol_hiding" = "yes"; then
18459     tmp_save_CFLAGS="$CFLAGS"
18460     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18461     squeeze CFLAGS
18462     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18463 /* end confdefs.h.  */
18464
18465
18466         $tmp_EXTERN char *dummy(char *buff);
18467         char *dummy(char *buff)
18468         {
18469          if(buff)
18470            return ++buff;
18471          else
18472            return buff;
18473         }
18474
18475 int main (void)
18476 {
18477
18478         char b[16];
18479         char *r = dummy(&b[0]);
18480         if(r)
18481           return (int)*r;
18482
18483  ;
18484  return 0;
18485 }
18486
18487 _ACEOF
18488 if ac_fn_c_try_compile "$LINENO"; then :
18489
18490       supports_symbol_hiding="yes"
18491       if test -f conftest.err; then
18492         grep 'visibility' conftest.err >/dev/null
18493         if test "$?" -eq "0"; then
18494           supports_symbol_hiding="no"
18495         fi
18496       fi
18497
18498 else
18499
18500       supports_symbol_hiding="no"
18501       echo " " >&6
18502       sed 's/^/cc-src: /' conftest.$ac_ext >&6
18503       sed 's/^/cc-err: /' conftest.err >&6
18504       echo " " >&6
18505
18506 fi
18507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18508     CFLAGS="$tmp_save_CFLAGS"
18509   fi
18510   if test "$supports_symbol_hiding" = "yes"; then
18511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18512 $as_echo "yes" >&6; }
18513     symbol_hiding_CFLAGS="$tmp_CFLAGS"
18514     symbol_hiding_EXTERN="$tmp_EXTERN"
18515   else
18516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18517 $as_echo "no" >&6; }
18518   fi
18519
18520
18521
18522       supports_curldebug="unknown"
18523   if test "$want_curldebug" = "yes"; then
18524     if test "x$enable_shared" != "xno" &&
18525       test "x$enable_shared" != "xyes"; then
18526       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18527 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18528       supports_curldebug="no"
18529     fi
18530     if test "x$enable_static" != "xno" &&
18531       test "x$enable_static" != "xyes"; then
18532       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18533 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18534       supports_curldebug="no"
18535     fi
18536     if test "$supports_curldebug" != "no"; then
18537       if test "$enable_shared" = "yes" &&
18538         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18539         supports_curldebug="no"
18540         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18541 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18542       fi
18543     fi
18544   fi
18545   #
18546   if test "$want_curldebug" = "yes"; then
18547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18548 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18549     test "$supports_curldebug" = "no" || supports_curldebug="yes"
18550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18551 $as_echo "$supports_curldebug" >&6; }
18552     if test "$supports_curldebug" = "no"; then
18553       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18554 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18555       want_curldebug="no"
18556     fi
18557   fi
18558   #
18559   if test "$want_curldebug" = "yes"; then
18560     CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18561     squeeze CPPFLAGS
18562   fi
18563   if test "$want_debug" = "yes"; then
18564     CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18565     squeeze CPPFLAGS
18566   fi
18567
18568  if test x$want_curldebug = xyes; then
18569   CURLDEBUG_TRUE=
18570   CURLDEBUG_FALSE='#'
18571 else
18572   CURLDEBUG_TRUE='#'
18573   CURLDEBUG_FALSE=
18574 fi
18575
18576
18577 supports_unittests=yes
18578 # cross-compilation of unit tests static library/programs fails when
18579 # libcurl shared library is built. This might be due to a libtool or
18580 # automake issue. In this case we disable unit tests.
18581 if test "x$cross_compiling" != "xno" &&
18582    test "x$enable_shared" != "xno"; then
18583   supports_unittests=no
18584 fi
18585
18586 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18587 # a problem related with OpenSSL headers and library versions not matching.
18588 # Disable unit tests while time to further investigate this is found.
18589 case $host in
18590   mips-sgi-irix6.5)
18591     if test "$compiler_id" = "GNU_C"; then
18592       supports_unittests=no
18593     fi
18594     ;;
18595 esac
18596
18597 # All AIX autobuilds fails unit tests linking against unittests library
18598 # due to unittests library being built with no symbols or members. Libtool ?
18599 # Disable unit tests while time to further investigate this is found.
18600 case $host_os in
18601   aix*)
18602     supports_unittests=no
18603     ;;
18604 esac
18605
18606 if test "x$want_debug" = "xyes" &&
18607    test "x$supports_unittests" = "xyes"; then
18608   want_unittests=yes
18609 else
18610   want_unittests=no
18611 fi
18612  if test x$want_unittests = xyes; then
18613   BUILD_UNITTESTS_TRUE=
18614   BUILD_UNITTESTS_FALSE='#'
18615 else
18616   BUILD_UNITTESTS_TRUE='#'
18617   BUILD_UNITTESTS_FALSE=
18618 fi
18619
18620
18621
18622
18623
18624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18625 $as_echo_n "checking for windows.h... " >&6; }
18626 if ${curl_cv_header_windows_h+:} false; then :
18627   $as_echo_n "(cached) " >&6
18628 else
18629
18630     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18631 /* end confdefs.h.  */
18632
18633
18634 #undef inline
18635 #ifndef WIN32_LEAN_AND_MEAN
18636 #define WIN32_LEAN_AND_MEAN
18637 #endif
18638 #include <windows.h>
18639
18640 int main (void)
18641 {
18642
18643 #if defined(__CYGWIN__) || defined(__CEGCC__)
18644         HAVE_WINDOWS_H shall not be defined.
18645 #else
18646         int dummy=2*WINVER;
18647 #endif
18648
18649  ;
18650  return 0;
18651 }
18652
18653 _ACEOF
18654 if ac_fn_c_try_compile "$LINENO"; then :
18655
18656       curl_cv_header_windows_h="yes"
18657
18658 else
18659
18660       curl_cv_header_windows_h="no"
18661
18662 fi
18663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18664
18665 fi
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18667 $as_echo "$curl_cv_header_windows_h" >&6; }
18668   case "$curl_cv_header_windows_h" in
18669     yes)
18670
18671 cat >>confdefs.h <<_ACEOF
18672 #define HAVE_WINDOWS_H 1
18673 _ACEOF
18674
18675       ;;
18676   esac
18677
18678
18679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18680 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18681 if ${curl_cv_native_windows+:} false; then :
18682   $as_echo_n "(cached) " >&6
18683 else
18684
18685     if test "$curl_cv_header_windows_h" = "no"; then
18686       curl_cv_native_windows="no"
18687     else
18688       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18689 /* end confdefs.h.  */
18690
18691
18692
18693 int main (void)
18694 {
18695
18696 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18697    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18698           int dummy=1;
18699 #else
18700           Not a native Windows build target.
18701 #endif
18702
18703  ;
18704  return 0;
18705 }
18706
18707 _ACEOF
18708 if ac_fn_c_try_compile "$LINENO"; then :
18709
18710         curl_cv_native_windows="yes"
18711
18712 else
18713
18714         curl_cv_native_windows="no"
18715
18716 fi
18717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18718     fi
18719
18720 fi
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18722 $as_echo "$curl_cv_native_windows" >&6; }
18723    if test "x$curl_cv_native_windows" = xyes; then
18724   DOING_NATIVE_WINDOWS_TRUE=
18725   DOING_NATIVE_WINDOWS_FALSE='#'
18726 else
18727   DOING_NATIVE_WINDOWS_TRUE='#'
18728   DOING_NATIVE_WINDOWS_FALSE=
18729 fi
18730
18731
18732 case X-"$curl_cv_native_windows" in
18733   X-yes)
18734
18735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18736 $as_echo_n "checking for winsock.h... " >&6; }
18737 if ${curl_cv_header_winsock_h+:} false; then :
18738   $as_echo_n "(cached) " >&6
18739 else
18740
18741     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h.  */
18743
18744
18745 #undef inline
18746 #ifndef WIN32_LEAN_AND_MEAN
18747 #define WIN32_LEAN_AND_MEAN
18748 #endif
18749 #include <windows.h>
18750 #include <winsock.h>
18751
18752 int main (void)
18753 {
18754
18755 #if defined(__CYGWIN__) || defined(__CEGCC__)
18756         HAVE_WINSOCK_H shall not be defined.
18757 #else
18758         int dummy=WSACleanup();
18759 #endif
18760
18761  ;
18762  return 0;
18763 }
18764
18765 _ACEOF
18766 if ac_fn_c_try_compile "$LINENO"; then :
18767
18768       curl_cv_header_winsock_h="yes"
18769
18770 else
18771
18772       curl_cv_header_winsock_h="no"
18773
18774 fi
18775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18776
18777 fi
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18779 $as_echo "$curl_cv_header_winsock_h" >&6; }
18780   case "$curl_cv_header_winsock_h" in
18781     yes)
18782
18783 cat >>confdefs.h <<_ACEOF
18784 #define HAVE_WINSOCK_H 1
18785 _ACEOF
18786
18787       ;;
18788   esac
18789
18790
18791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18792 $as_echo_n "checking for winsock2.h... " >&6; }
18793 if ${curl_cv_header_winsock2_h+:} false; then :
18794   $as_echo_n "(cached) " >&6
18795 else
18796
18797     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18798 /* end confdefs.h.  */
18799
18800
18801 #undef inline
18802 #ifndef WIN32_LEAN_AND_MEAN
18803 #define WIN32_LEAN_AND_MEAN
18804 #endif
18805 #include <windows.h>
18806 #include <winsock2.h>
18807
18808 int main (void)
18809 {
18810
18811 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18812         HAVE_WINSOCK2_H shall not be defined.
18813 #else
18814         int dummy=2*IPPROTO_ESP;
18815 #endif
18816
18817  ;
18818  return 0;
18819 }
18820
18821 _ACEOF
18822 if ac_fn_c_try_compile "$LINENO"; then :
18823
18824       curl_cv_header_winsock2_h="yes"
18825
18826 else
18827
18828       curl_cv_header_winsock2_h="no"
18829
18830 fi
18831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18832
18833 fi
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18835 $as_echo "$curl_cv_header_winsock2_h" >&6; }
18836   case "$curl_cv_header_winsock2_h" in
18837     yes)
18838
18839 cat >>confdefs.h <<_ACEOF
18840 #define HAVE_WINSOCK2_H 1
18841 _ACEOF
18842
18843       ;;
18844   esac
18845
18846
18847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18848 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18849 if ${curl_cv_header_ws2tcpip_h+:} false; then :
18850   $as_echo_n "(cached) " >&6
18851 else
18852
18853     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18854 /* end confdefs.h.  */
18855
18856
18857 #undef inline
18858 #ifndef WIN32_LEAN_AND_MEAN
18859 #define WIN32_LEAN_AND_MEAN
18860 #endif
18861 #include <windows.h>
18862 #include <winsock2.h>
18863 #include <ws2tcpip.h>
18864
18865 int main (void)
18866 {
18867
18868 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18869         HAVE_WS2TCPIP_H shall not be defined.
18870 #else
18871         int dummy=2*IP_PKTINFO;
18872 #endif
18873
18874  ;
18875  return 0;
18876 }
18877
18878 _ACEOF
18879 if ac_fn_c_try_compile "$LINENO"; then :
18880
18881       curl_cv_header_ws2tcpip_h="yes"
18882
18883 else
18884
18885       curl_cv_header_ws2tcpip_h="no"
18886
18887 fi
18888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18889
18890 fi
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18892 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18893   case "$curl_cv_header_ws2tcpip_h" in
18894     yes)
18895
18896 cat >>confdefs.h <<_ACEOF
18897 #define HAVE_WS2TCPIP_H 1
18898 _ACEOF
18899
18900       ;;
18901   esac
18902
18903
18904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18905 $as_echo_n "checking for winldap.h... " >&6; }
18906 if ${curl_cv_header_winldap_h+:} false; then :
18907   $as_echo_n "(cached) " >&6
18908 else
18909
18910     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18911 /* end confdefs.h.  */
18912
18913
18914 #undef inline
18915 #ifdef HAVE_WINDOWS_H
18916 #ifndef WIN32_LEAN_AND_MEAN
18917 #define WIN32_LEAN_AND_MEAN
18918 #endif
18919 #include <windows.h>
18920 #endif
18921 #include <winldap.h>
18922
18923 int main (void)
18924 {
18925
18926 #if defined(__CYGWIN__) || defined(__CEGCC__)
18927         HAVE_WINLDAP_H shall not be defined.
18928 #else
18929         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18930         ULONG res = ldap_unbind(ldp);
18931 #endif
18932
18933  ;
18934  return 0;
18935 }
18936
18937 _ACEOF
18938 if ac_fn_c_try_compile "$LINENO"; then :
18939
18940       curl_cv_header_winldap_h="yes"
18941
18942 else
18943
18944       curl_cv_header_winldap_h="no"
18945
18946 fi
18947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18948
18949 fi
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18951 $as_echo "$curl_cv_header_winldap_h" >&6; }
18952   case "$curl_cv_header_winldap_h" in
18953     yes)
18954
18955 cat >>confdefs.h <<_ACEOF
18956 #define HAVE_WINLDAP_H 1
18957 _ACEOF
18958
18959       ;;
18960   esac
18961
18962
18963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18964 $as_echo_n "checking for winber.h... " >&6; }
18965 if ${curl_cv_header_winber_h+:} false; then :
18966   $as_echo_n "(cached) " >&6
18967 else
18968
18969     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18970 /* end confdefs.h.  */
18971
18972
18973 #undef inline
18974 #ifdef HAVE_WINDOWS_H
18975 #ifndef WIN32_LEAN_AND_MEAN
18976 #define WIN32_LEAN_AND_MEAN
18977 #endif
18978 #include <windows.h>
18979 #endif
18980 #include <winldap.h>
18981 #include <winber.h>
18982
18983 int main (void)
18984 {
18985
18986 #if defined(__CYGWIN__) || defined(__CEGCC__)
18987         HAVE_WINBER_H shall not be defined.
18988 #else
18989         BERVAL *bvp = NULL;
18990         BerElement *bep = ber_init(bvp);
18991         ber_free(bep, 1);
18992 #endif
18993
18994  ;
18995  return 0;
18996 }
18997
18998 _ACEOF
18999 if ac_fn_c_try_compile "$LINENO"; then :
19000
19001       curl_cv_header_winber_h="yes"
19002
19003 else
19004
19005       curl_cv_header_winber_h="no"
19006
19007 fi
19008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19009
19010 fi
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19012 $as_echo "$curl_cv_header_winber_h" >&6; }
19013   case "$curl_cv_header_winber_h" in
19014     yes)
19015
19016 cat >>confdefs.h <<_ACEOF
19017 #define HAVE_WINBER_H 1
19018 _ACEOF
19019
19020       ;;
19021   esac
19022
19023     ;;
19024   *)
19025     curl_cv_header_winsock_h="no"
19026     curl_cv_header_winsock2_h="no"
19027     curl_cv_header_ws2tcpip_h="no"
19028     curl_cv_header_winldap_h="no"
19029     curl_cv_header_winber_h="no"
19030     ;;
19031 esac
19032
19033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19034 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19035   curl_win32_file_api="no"
19036   if test "$curl_cv_header_windows_h" = "yes"; then
19037     if test x"$enable_largefile" != "xno"; then
19038       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039 /* end confdefs.h.  */
19040
19041
19042
19043 int main (void)
19044 {
19045
19046 #if !defined(_WIN32_WCE) && \
19047     (defined(__MINGW32__) || \
19048     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19049           int dummy=1;
19050 #else
19051           WIN32 large file API not supported.
19052 #endif
19053
19054  ;
19055  return 0;
19056 }
19057
19058 _ACEOF
19059 if ac_fn_c_try_compile "$LINENO"; then :
19060
19061         curl_win32_file_api="win32_large_files"
19062
19063 fi
19064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19065     fi
19066     if test "$curl_win32_file_api" = "no"; then
19067       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19068 /* end confdefs.h.  */
19069
19070
19071
19072 int main (void)
19073 {
19074
19075 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19076           int dummy=1;
19077 #else
19078           WIN32 small file API not supported.
19079 #endif
19080
19081  ;
19082  return 0;
19083 }
19084
19085 _ACEOF
19086 if ac_fn_c_try_compile "$LINENO"; then :
19087
19088         curl_win32_file_api="win32_small_files"
19089
19090 fi
19091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19092     fi
19093   fi
19094   case "$curl_win32_file_api" in
19095     win32_large_files)
19096       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19097 $as_echo "yes (large file enabled)" >&6; }
19098
19099 cat >>confdefs.h <<_ACEOF
19100 #define USE_WIN32_LARGE_FILES 1
19101 _ACEOF
19102
19103       ;;
19104     win32_small_files)
19105       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19106 $as_echo "yes (large file disabled)" >&6; }
19107
19108 cat >>confdefs.h <<_ACEOF
19109 #define USE_WIN32_SMALL_FILES 1
19110 _ACEOF
19111
19112       ;;
19113     *)
19114       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19115 $as_echo "no" >&6; }
19116       ;;
19117   esac
19118
19119
19120
19121
19122   tst_cflags="no"
19123   case $host_os in
19124     darwin*)
19125       tst_cflags="yes"
19126       ;;
19127   esac
19128
19129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19130 $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19132 $as_echo "$tst_cflags" >&6; };
19133
19134   if test "$tst_cflags" = "yes"; then
19135     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19136 $as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19137     min=""
19138     if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19139       min="-mmacosx-version-min=10.8"
19140       CFLAGS="$CFLAGS $min"
19141     fi
19142     if test -z "$min"; then
19143       { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19144 $as_echo "set by user" >&6; }
19145     else
19146       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19147 $as_echo "$min set" >&6; }
19148     fi
19149
19150     old_CFLAGS=$CFLAGS
19151     CFLAGS="$CFLAGS -Werror=partial-availability"
19152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19153 $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19154     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h.  */
19156
19157 int main (void)
19158 {
19159
19160  ;
19161  return 0;
19162 }
19163 _ACEOF
19164 if ac_fn_c_try_compile "$LINENO"; then :
19165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19166 $as_echo "yes" >&6; }
19167 else
19168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19169 $as_echo "no" >&6; }
19170       CFLAGS=$old_CFLAGS
19171 fi
19172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173   fi
19174
19175
19176
19177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19178 $as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19180 /* end confdefs.h.  */
19181
19182
19183 #include <stdlib.h>
19184
19185 int main (void)
19186 {
19187
19188       if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19189
19190  ;
19191  return 0;
19192 }
19193
19194 _ACEOF
19195 if ac_fn_c_try_compile "$LINENO"; then :
19196
19197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19198 $as_echo "yes" >&6; }
19199
19200 cat >>confdefs.h <<_ACEOF
19201 #define HAVE_BUILTIN_AVAILABLE 1
19202 _ACEOF
19203
19204
19205 else
19206
19207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19208 $as_echo "no" >&6; }
19209
19210 fi
19211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19212
19213
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19215 $as_echo_n "checking whether to support http... " >&6; }
19216 # Check whether --enable-http was given.
19217 if test "${enable_http+set}" = set; then :
19218   enableval=$enable_http;  case "$enableval" in
19219   no)
19220        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19221 $as_echo "no" >&6; }
19222
19223 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19224
19225        disable_http="yes"
19226        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19227 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19228        CURL_DISABLE_HTTP=1
19229
19230
19231 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19232
19233        CURL_DISABLE_RTSP=1
19234
19235        ;;
19236   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19237 $as_echo "yes" >&6; }
19238        ;;
19239   esac
19240 else
19241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19242 $as_echo "yes" >&6; }
19243
19244 fi
19245
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19247 $as_echo_n "checking whether to support ftp... " >&6; }
19248 # Check whether --enable-ftp was given.
19249 if test "${enable_ftp+set}" = set; then :
19250   enableval=$enable_ftp;  case "$enableval" in
19251   no)
19252        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19253 $as_echo "no" >&6; }
19254
19255 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19256
19257        CURL_DISABLE_FTP=1
19258
19259        ;;
19260   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19261 $as_echo "yes" >&6; }
19262        ;;
19263   esac
19264 else
19265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19266 $as_echo "yes" >&6; }
19267
19268 fi
19269
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19271 $as_echo_n "checking whether to support file... " >&6; }
19272 # Check whether --enable-file was given.
19273 if test "${enable_file+set}" = set; then :
19274   enableval=$enable_file;  case "$enableval" in
19275   no)
19276        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19277 $as_echo "no" >&6; }
19278
19279 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19280
19281        CURL_DISABLE_FILE=1
19282
19283        ;;
19284   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19285 $as_echo "yes" >&6; }
19286        ;;
19287   esac
19288 else
19289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19290 $as_echo "yes" >&6; }
19291
19292 fi
19293
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19295 $as_echo_n "checking whether to support ldap... " >&6; }
19296 # Check whether --enable-ldap was given.
19297 if test "${enable_ldap+set}" = set; then :
19298   enableval=$enable_ldap;  case "$enableval" in
19299   no)
19300        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19301 $as_echo "no" >&6; }
19302
19303 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19304
19305        CURL_DISABLE_LDAP=1
19306
19307        ;;
19308   *)
19309        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19310 $as_echo "yes" >&6; }
19311        ;;
19312   esac
19313 else
19314
19315        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19316 $as_echo "yes" >&6; }
19317
19318 fi
19319
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19321 $as_echo_n "checking whether to support ldaps... " >&6; }
19322 # Check whether --enable-ldaps was given.
19323 if test "${enable_ldaps+set}" = set; then :
19324   enableval=$enable_ldaps;  case "$enableval" in
19325   no)
19326        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19327 $as_echo "no" >&6; }
19328
19329 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19330
19331        CURL_DISABLE_LDAPS=1
19332
19333        ;;
19334   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19335          { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19336 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19337
19338 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19339
19340          CURL_DISABLE_LDAPS=1
19341
19342        else
19343          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19344 $as_echo "yes" >&6; }
19345
19346 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19347
19348          HAVE_LDAP_SSL=1
19349
19350        fi
19351        ;;
19352   esac
19353 else
19354
19355        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19356          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19357 $as_echo "no" >&6; }
19358
19359 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19360
19361          CURL_DISABLE_LDAPS=1
19362
19363        else
19364          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19365 $as_echo "yes" >&6; }
19366
19367 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19368
19369          HAVE_LDAP_SSL=1
19370
19371        fi
19372
19373 fi
19374
19375
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19377 $as_echo_n "checking whether to support rtsp... " >&6; }
19378 # Check whether --enable-rtsp was given.
19379 if test "${enable_rtsp+set}" = set; then :
19380   enableval=$enable_rtsp;  case "$enableval" in
19381   no)
19382        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19383 $as_echo "no" >&6; }
19384
19385 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19386
19387        CURL_DISABLE_RTSP=1
19388
19389        ;;
19390   *)   if test x$CURL_DISABLE_HTTP = x1 ; then
19391           as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19392        else
19393           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19394 $as_echo "yes" >&6; }
19395           curl_rtsp_msg="enabled"
19396        fi
19397        ;;
19398   esac
19399 else
19400   if test "x$CURL_DISABLE_HTTP" != "x1"; then
19401           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19402 $as_echo "yes" >&6; }
19403           curl_rtsp_msg="enabled"
19404        else
19405           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19406 $as_echo "no" >&6; }
19407        fi
19408
19409 fi
19410
19411
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19413 $as_echo_n "checking whether to support proxies... " >&6; }
19414 # Check whether --enable-proxy was given.
19415 if test "${enable_proxy+set}" = set; then :
19416   enableval=$enable_proxy;  case "$enableval" in
19417   no)
19418        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19419 $as_echo "no" >&6; }
19420
19421 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19422
19423        CURL_DISABLE_PROXY=1
19424
19425        ;;
19426   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19427 $as_echo "yes" >&6; }
19428        ;;
19429   esac
19430 else
19431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19432 $as_echo "yes" >&6; }
19433
19434 fi
19435
19436
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19438 $as_echo_n "checking whether to support dict... " >&6; }
19439 # Check whether --enable-dict was given.
19440 if test "${enable_dict+set}" = set; then :
19441   enableval=$enable_dict;  case "$enableval" in
19442   no)
19443        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19444 $as_echo "no" >&6; }
19445
19446 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19447
19448        CURL_DISABLE_DICT=1
19449
19450        ;;
19451   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19452 $as_echo "yes" >&6; }
19453        ;;
19454   esac
19455 else
19456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19457 $as_echo "yes" >&6; }
19458
19459 fi
19460
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19462 $as_echo_n "checking whether to support telnet... " >&6; }
19463 # Check whether --enable-telnet was given.
19464 if test "${enable_telnet+set}" = set; then :
19465   enableval=$enable_telnet;  case "$enableval" in
19466   no)
19467        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19468 $as_echo "no" >&6; }
19469
19470 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19471
19472        CURL_DISABLE_TELNET=1
19473
19474        ;;
19475   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19476 $as_echo "yes" >&6; }
19477        ;;
19478   esac
19479 else
19480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19481 $as_echo "yes" >&6; }
19482
19483 fi
19484
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19486 $as_echo_n "checking whether to support tftp... " >&6; }
19487 # Check whether --enable-tftp was given.
19488 if test "${enable_tftp+set}" = set; then :
19489   enableval=$enable_tftp;  case "$enableval" in
19490   no)
19491        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19492 $as_echo "no" >&6; }
19493
19494 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19495
19496        CURL_DISABLE_TFTP=1
19497
19498        ;;
19499   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19500 $as_echo "yes" >&6; }
19501        ;;
19502   esac
19503 else
19504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19505 $as_echo "yes" >&6; }
19506
19507 fi
19508
19509
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19511 $as_echo_n "checking whether to support pop3... " >&6; }
19512 # Check whether --enable-pop3 was given.
19513 if test "${enable_pop3+set}" = set; then :
19514   enableval=$enable_pop3;  case "$enableval" in
19515   no)
19516        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19517 $as_echo "no" >&6; }
19518
19519 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19520
19521        CURL_DISABLE_POP3=1
19522
19523        ;;
19524   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19525 $as_echo "yes" >&6; }
19526        ;;
19527   esac
19528 else
19529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19530 $as_echo "yes" >&6; }
19531
19532 fi
19533
19534
19535
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19537 $as_echo_n "checking whether to support imap... " >&6; }
19538 # Check whether --enable-imap was given.
19539 if test "${enable_imap+set}" = set; then :
19540   enableval=$enable_imap;  case "$enableval" in
19541   no)
19542        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19543 $as_echo "no" >&6; }
19544
19545 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19546
19547        CURL_DISABLE_IMAP=1
19548
19549        ;;
19550   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19551 $as_echo "yes" >&6; }
19552        ;;
19553   esac
19554 else
19555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19556 $as_echo "yes" >&6; }
19557
19558 fi
19559
19560
19561
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19563 $as_echo_n "checking whether to support smb... " >&6; }
19564 # Check whether --enable-smb was given.
19565 if test "${enable_smb+set}" = set; then :
19566   enableval=$enable_smb;  case "$enableval" in
19567   no)
19568        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19569 $as_echo "no" >&6; }
19570
19571 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19572
19573        CURL_DISABLE_SMB=1
19574
19575        ;;
19576   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19577 $as_echo "yes" >&6; }
19578        ;;
19579   esac
19580 else
19581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19582 $as_echo "yes" >&6; }
19583
19584 fi
19585
19586
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19588 $as_echo_n "checking whether to support smtp... " >&6; }
19589 # Check whether --enable-smtp was given.
19590 if test "${enable_smtp+set}" = set; then :
19591   enableval=$enable_smtp;  case "$enableval" in
19592   no)
19593        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19594 $as_echo "no" >&6; }
19595
19596 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19597
19598        CURL_DISABLE_SMTP=1
19599
19600        ;;
19601   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19602 $as_echo "yes" >&6; }
19603        ;;
19604   esac
19605 else
19606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19607 $as_echo "yes" >&6; }
19608
19609 fi
19610
19611
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19613 $as_echo_n "checking whether to support gopher... " >&6; }
19614 # Check whether --enable-gopher was given.
19615 if test "${enable_gopher+set}" = set; then :
19616   enableval=$enable_gopher;  case "$enableval" in
19617   no)
19618        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19619 $as_echo "no" >&6; }
19620
19621 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19622
19623        CURL_DISABLE_GOPHER=1
19624
19625        ;;
19626   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19627 $as_echo "yes" >&6; }
19628        ;;
19629   esac
19630 else
19631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19632 $as_echo "yes" >&6; }
19633
19634 fi
19635
19636
19637
19638
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19640 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19641 # Check whether --enable-manual was given.
19642 if test "${enable_manual+set}" = set; then :
19643   enableval=$enable_manual;  case "$enableval" in
19644   no)
19645        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19646 $as_echo "no" >&6; }
19647        ;;
19648   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19649 $as_echo "yes" >&6; }
19650        USE_MANUAL="1"
19651        ;;
19652   esac
19653 else
19654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19655 $as_echo "yes" >&6; }
19656        USE_MANUAL="1"
19657
19658 fi
19659
19660
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19662 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19663 # Check whether --enable-libcurl_option was given.
19664 if test "${enable_libcurl_option+set}" = set; then :
19665   enableval=$enable_libcurl_option;  case "$enableval" in
19666   no)
19667        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19668 $as_echo "no" >&6; }
19669
19670 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19671
19672        curl_libcurl_msg="no"
19673        ;;
19674   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19675 $as_echo "yes" >&6; }
19676        ;;
19677   esac
19678 else
19679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19680 $as_echo "yes" >&6; }
19681
19682 fi
19683
19684
19685
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19687 $as_echo_n "checking whether to use libgcc... " >&6; }
19688 # Check whether --enable-libgcc was given.
19689 if test "${enable_libgcc+set}" = set; then :
19690   enableval=$enable_libgcc;  case "$enableval" in
19691   yes)
19692        LIBS="-lgcc $LIBS"
19693        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19694 $as_echo "yes" >&6; }
19695        ;;
19696   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19697 $as_echo "no" >&6; }
19698        ;;
19699   esac
19700 else
19701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19702 $as_echo "no" >&6; }
19703
19704 fi
19705
19706
19707
19708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19709 $as_echo_n "checking if X/Open network library is required... " >&6; }
19710   tst_lib_xnet_required="no"
19711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h.  */
19713
19714
19715 int main (void)
19716 {
19717 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19718   return 0;
19719 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19720   return 0;
19721 #else
19722   force compilation error
19723 #endif
19724 }
19725
19726
19727 _ACEOF
19728 if ac_fn_c_try_compile "$LINENO"; then :
19729
19730     tst_lib_xnet_required="yes"
19731     LIBS="-lxnet $LIBS"
19732
19733 fi
19734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19736 $as_echo "$tst_lib_xnet_required" >&6; }
19737
19738
19739 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19740 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19741   HAVE_GETHOSTBYNAME="1"
19742
19743 else
19744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19745 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19746 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19747   $as_echo_n "(cached) " >&6
19748 else
19749   ac_check_lib_save_LIBS=$LIBS
19750 LIBS="-lnsl  $LIBS"
19751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19752 /* end confdefs.h.  */
19753
19754
19755 #ifdef __cplusplus
19756 extern "C"
19757 #endif
19758 char gethostbyname ();
19759 int main (void)
19760 {
19761 return gethostbyname ();
19762  ;
19763  return 0;
19764 }
19765 _ACEOF
19766 if ac_fn_c_try_link "$LINENO"; then :
19767   ac_cv_lib_nsl_gethostbyname=yes
19768 else
19769   ac_cv_lib_nsl_gethostbyname=no
19770 fi
19771 rm -f core conftest.err conftest.$ac_objext \
19772     conftest$ac_exeext conftest.$ac_ext
19773 LIBS=$ac_check_lib_save_LIBS
19774 fi
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19776 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19777 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19778   HAVE_GETHOSTBYNAME="1"
19779                              LIBS="-lnsl $LIBS"
19780
19781 fi
19782
19783
19784 fi
19785
19786
19787 if test "$HAVE_GETHOSTBYNAME" != "1"
19788 then
19789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19790 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19791 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19792   $as_echo_n "(cached) " >&6
19793 else
19794   ac_check_lib_save_LIBS=$LIBS
19795 LIBS="-lsocket  $LIBS"
19796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19797 /* end confdefs.h.  */
19798
19799
19800 #ifdef __cplusplus
19801 extern "C"
19802 #endif
19803 char gethostbyname ();
19804 int main (void)
19805 {
19806 return gethostbyname ();
19807  ;
19808  return 0;
19809 }
19810 _ACEOF
19811 if ac_fn_c_try_link "$LINENO"; then :
19812   ac_cv_lib_socket_gethostbyname=yes
19813 else
19814   ac_cv_lib_socket_gethostbyname=no
19815 fi
19816 rm -f core conftest.err conftest.$ac_objext \
19817     conftest$ac_exeext conftest.$ac_ext
19818 LIBS=$ac_check_lib_save_LIBS
19819 fi
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19821 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19822 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19823   HAVE_GETHOSTBYNAME="1"
19824                LIBS="-lsocket $LIBS"
19825
19826 fi
19827
19828 fi
19829
19830 if test "$HAVE_GETHOSTBYNAME" != "1"
19831 then
19832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19833 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19834 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19835   $as_echo_n "(cached) " >&6
19836 else
19837   ac_check_lib_save_LIBS=$LIBS
19838 LIBS="-lwatt  $LIBS"
19839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19840 /* end confdefs.h.  */
19841
19842
19843 #ifdef __cplusplus
19844 extern "C"
19845 #endif
19846 char gethostbyname ();
19847 int main (void)
19848 {
19849 return gethostbyname ();
19850  ;
19851  return 0;
19852 }
19853 _ACEOF
19854 if ac_fn_c_try_link "$LINENO"; then :
19855   ac_cv_lib_watt_gethostbyname=yes
19856 else
19857   ac_cv_lib_watt_gethostbyname=no
19858 fi
19859 rm -f core conftest.err conftest.$ac_objext \
19860     conftest$ac_exeext conftest.$ac_ext
19861 LIBS=$ac_check_lib_save_LIBS
19862 fi
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19864 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19865 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19866   HAVE_GETHOSTBYNAME="1"
19867                CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19868                LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19869                LIBS="-lwatt $LIBS"
19870
19871 fi
19872
19873 fi
19874
19875 if test "$HAVE_GETHOSTBYNAME" != "1"
19876 then
19877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19878 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19879   my_ac_save_LIBS=$LIBS
19880   LIBS="-lnsl -lsocket $LIBS"
19881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h.  */
19883
19884
19885
19886 int main (void)
19887 {
19888
19889       gethostbyname();
19890
19891  ;
19892  return 0;
19893 }
19894
19895 _ACEOF
19896 if ac_fn_c_try_link "$LINENO"; then :
19897
19898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19899 $as_echo "yes" >&6; }
19900     HAVE_GETHOSTBYNAME="1"
19901
19902 else
19903
19904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19905 $as_echo "no" >&6; }
19906     LIBS=$my_ac_save_LIBS
19907
19908 fi
19909 rm -f core conftest.err conftest.$ac_objext \
19910     conftest$ac_exeext conftest.$ac_ext
19911 fi
19912
19913 if test "$HAVE_GETHOSTBYNAME" != "1"
19914 then
19915     if test "$curl_cv_header_windows_h" = "yes"; then
19916     if test "$curl_cv_header_winsock_h" = "yes"; then
19917       case $host in
19918         *-*-mingw32ce*)
19919           winsock_LIB="-lwinsock"
19920           ;;
19921         *)
19922           winsock_LIB="-lwsock32"
19923           ;;
19924       esac
19925     fi
19926     if test "$curl_cv_header_winsock2_h" = "yes"; then
19927       winsock_LIB="-lws2_32"
19928     fi
19929     if test ! -z "$winsock_LIB"; then
19930       my_ac_save_LIBS=$LIBS
19931       LIBS="$winsock_LIB $LIBS"
19932       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19933 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19934       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h.  */
19936
19937
19938 #ifdef HAVE_WINDOWS_H
19939 #ifndef WIN32_LEAN_AND_MEAN
19940 #define WIN32_LEAN_AND_MEAN
19941 #endif
19942 #include <windows.h>
19943 #ifdef HAVE_WINSOCK2_H
19944 #include <winsock2.h>
19945 #else
19946 #ifdef HAVE_WINSOCK_H
19947 #include <winsock.h>
19948 #endif
19949 #endif
19950 #endif
19951
19952 int main (void)
19953 {
19954
19955           gethostbyname("www.dummysite.com");
19956
19957  ;
19958  return 0;
19959 }
19960
19961 _ACEOF
19962 if ac_fn_c_try_link "$LINENO"; then :
19963
19964         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19965 $as_echo "yes" >&6; }
19966         HAVE_GETHOSTBYNAME="1"
19967
19968 else
19969
19970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19971 $as_echo "no" >&6; }
19972         winsock_LIB=""
19973         LIBS=$my_ac_save_LIBS
19974
19975 fi
19976 rm -f core conftest.err conftest.$ac_objext \
19977     conftest$ac_exeext conftest.$ac_ext
19978     fi
19979   fi
19980 fi
19981
19982 if test "$HAVE_GETHOSTBYNAME" != "1"
19983 then
19984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19985 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h.  */
19988
19989
19990 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19991 #include <netdb.h>
19992
19993 int main (void)
19994 {
19995
19996       gethostbyname("www.dummysite.com");
19997
19998  ;
19999  return 0;
20000 }
20001
20002 _ACEOF
20003 if ac_fn_c_try_link "$LINENO"; then :
20004
20005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20006 $as_echo "yes" >&6; }
20007     HAVE_GETHOSTBYNAME="1"
20008
20009 else
20010
20011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20012 $as_echo "no" >&6; }
20013
20014 fi
20015 rm -f core conftest.err conftest.$ac_objext \
20016     conftest$ac_exeext conftest.$ac_ext
20017 fi
20018
20019 if test "$HAVE_GETHOSTBYNAME" != "1"
20020 then
20021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20022 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
20023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20024 /* end confdefs.h.  */
20025
20026
20027 #include <stdio.h>
20028 #include <netdb.h>
20029
20030 int main (void)
20031 {
20032
20033       gethostbyname("www.dummysite.com");
20034
20035  ;
20036  return 0;
20037 }
20038
20039 _ACEOF
20040 if ac_fn_c_try_link "$LINENO"; then :
20041
20042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20043 $as_echo "yes" >&6; }
20044     HAVE_GETHOSTBYNAME="1"
20045
20046 else
20047
20048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20049 $as_echo "no" >&6; }
20050
20051 fi
20052 rm -f core conftest.err conftest.$ac_objext \
20053     conftest$ac_exeext conftest.$ac_ext
20054 fi
20055
20056 if test "$HAVE_GETHOSTBYNAME" != "1"
20057 then
20058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20059 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20060 if ${ac_cv_lib_network_gethostbyname+:} false; then :
20061   $as_echo_n "(cached) " >&6
20062 else
20063   ac_check_lib_save_LIBS=$LIBS
20064 LIBS="-lnetwork  $LIBS"
20065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20066 /* end confdefs.h.  */
20067
20068
20069 #ifdef __cplusplus
20070 extern "C"
20071 #endif
20072 char gethostbyname ();
20073 int main (void)
20074 {
20075 return gethostbyname ();
20076  ;
20077  return 0;
20078 }
20079 _ACEOF
20080 if ac_fn_c_try_link "$LINENO"; then :
20081   ac_cv_lib_network_gethostbyname=yes
20082 else
20083   ac_cv_lib_network_gethostbyname=no
20084 fi
20085 rm -f core conftest.err conftest.$ac_objext \
20086     conftest$ac_exeext conftest.$ac_ext
20087 LIBS=$ac_check_lib_save_LIBS
20088 fi
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20090 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20091 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20092   HAVE_GETHOSTBYNAME="1"
20093                LIBS="-lnetwork $LIBS"
20094
20095 fi
20096
20097 fi
20098
20099 if test "$HAVE_GETHOSTBYNAME" != "1"
20100 then
20101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20102 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20103 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20104   $as_echo_n "(cached) " >&6
20105 else
20106   ac_check_lib_save_LIBS=$LIBS
20107 LIBS="-lnet  $LIBS"
20108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h.  */
20110
20111
20112 #ifdef __cplusplus
20113 extern "C"
20114 #endif
20115 char gethostbyname ();
20116 int main (void)
20117 {
20118 return gethostbyname ();
20119  ;
20120  return 0;
20121 }
20122 _ACEOF
20123 if ac_fn_c_try_link "$LINENO"; then :
20124   ac_cv_lib_net_gethostbyname=yes
20125 else
20126   ac_cv_lib_net_gethostbyname=no
20127 fi
20128 rm -f core conftest.err conftest.$ac_objext \
20129     conftest$ac_exeext conftest.$ac_ext
20130 LIBS=$ac_check_lib_save_LIBS
20131 fi
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20133 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20134 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20135   HAVE_GETHOSTBYNAME="1"
20136                LIBS="-lnet $LIBS"
20137
20138 fi
20139
20140 fi
20141
20142
20143 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20144   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20145 fi
20146
20147
20148 curl_includes_winsock2="\
20149 /* includes start */
20150 #ifdef HAVE_WINDOWS_H
20151 #  ifndef WIN32_LEAN_AND_MEAN
20152 #    define WIN32_LEAN_AND_MEAN
20153 #  endif
20154 #  include <windows.h>
20155 #  ifdef HAVE_WINSOCK2_H
20156 #    include <winsock2.h>
20157 #  else
20158 #    ifdef HAVE_WINSOCK_H
20159 #      include <winsock.h>
20160 #    endif
20161 #  endif
20162 #endif
20163 /* includes end */"
20164
20165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20166 $as_echo_n "checking for windows.h... " >&6; }
20167 if ${curl_cv_header_windows_h+:} false; then :
20168   $as_echo_n "(cached) " >&6
20169 else
20170
20171     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h.  */
20173
20174
20175 #undef inline
20176 #ifndef WIN32_LEAN_AND_MEAN
20177 #define WIN32_LEAN_AND_MEAN
20178 #endif
20179 #include <windows.h>
20180
20181 int main (void)
20182 {
20183
20184 #if defined(__CYGWIN__) || defined(__CEGCC__)
20185         HAVE_WINDOWS_H shall not be defined.
20186 #else
20187         int dummy=2*WINVER;
20188 #endif
20189
20190  ;
20191  return 0;
20192 }
20193
20194 _ACEOF
20195 if ac_fn_c_try_compile "$LINENO"; then :
20196
20197       curl_cv_header_windows_h="yes"
20198
20199 else
20200
20201       curl_cv_header_windows_h="no"
20202
20203 fi
20204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20205
20206 fi
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20208 $as_echo "$curl_cv_header_windows_h" >&6; }
20209   case "$curl_cv_header_windows_h" in
20210     yes)
20211
20212 cat >>confdefs.h <<_ACEOF
20213 #define HAVE_WINDOWS_H 1
20214 _ACEOF
20215
20216       ;;
20217   esac
20218
20219
20220     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20221 $as_echo_n "checking for winsock.h... " >&6; }
20222 if ${curl_cv_header_winsock_h+:} false; then :
20223   $as_echo_n "(cached) " >&6
20224 else
20225
20226     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20227 /* end confdefs.h.  */
20228
20229
20230 #undef inline
20231 #ifndef WIN32_LEAN_AND_MEAN
20232 #define WIN32_LEAN_AND_MEAN
20233 #endif
20234 #include <windows.h>
20235 #include <winsock.h>
20236
20237 int main (void)
20238 {
20239
20240 #if defined(__CYGWIN__) || defined(__CEGCC__)
20241         HAVE_WINSOCK_H shall not be defined.
20242 #else
20243         int dummy=WSACleanup();
20244 #endif
20245
20246  ;
20247  return 0;
20248 }
20249
20250 _ACEOF
20251 if ac_fn_c_try_compile "$LINENO"; then :
20252
20253       curl_cv_header_winsock_h="yes"
20254
20255 else
20256
20257       curl_cv_header_winsock_h="no"
20258
20259 fi
20260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20261
20262 fi
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20264 $as_echo "$curl_cv_header_winsock_h" >&6; }
20265   case "$curl_cv_header_winsock_h" in
20266     yes)
20267
20268 cat >>confdefs.h <<_ACEOF
20269 #define HAVE_WINSOCK_H 1
20270 _ACEOF
20271
20272       ;;
20273   esac
20274
20275
20276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20277 $as_echo_n "checking for winsock2.h... " >&6; }
20278 if ${curl_cv_header_winsock2_h+:} false; then :
20279   $as_echo_n "(cached) " >&6
20280 else
20281
20282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283 /* end confdefs.h.  */
20284
20285
20286 #undef inline
20287 #ifndef WIN32_LEAN_AND_MEAN
20288 #define WIN32_LEAN_AND_MEAN
20289 #endif
20290 #include <windows.h>
20291 #include <winsock2.h>
20292
20293 int main (void)
20294 {
20295
20296 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20297         HAVE_WINSOCK2_H shall not be defined.
20298 #else
20299         int dummy=2*IPPROTO_ESP;
20300 #endif
20301
20302  ;
20303  return 0;
20304 }
20305
20306 _ACEOF
20307 if ac_fn_c_try_compile "$LINENO"; then :
20308
20309       curl_cv_header_winsock2_h="yes"
20310
20311 else
20312
20313       curl_cv_header_winsock2_h="no"
20314
20315 fi
20316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20317
20318 fi
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20320 $as_echo "$curl_cv_header_winsock2_h" >&6; }
20321   case "$curl_cv_header_winsock2_h" in
20322     yes)
20323
20324 cat >>confdefs.h <<_ACEOF
20325 #define HAVE_WINSOCK2_H 1
20326 _ACEOF
20327
20328       ;;
20329   esac
20330
20331
20332
20333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20334 $as_echo_n "checking for connect in libraries... " >&6; }
20335   tst_connect_save_LIBS="$LIBS"
20336   tst_connect_need_LIBS="unknown"
20337   for tst_lib in '' '-lsocket' ; do
20338     if test "$tst_connect_need_LIBS" = "unknown"; then
20339       LIBS="$tst_lib $tst_connect_save_LIBS"
20340       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20341 /* end confdefs.h.  */
20342
20343
20344           $curl_includes_winsock2
20345           #ifndef HAVE_WINDOWS_H
20346             int connect(int, void*, int);
20347           #endif
20348
20349 int main (void)
20350 {
20351
20352           if(0 != connect(0, 0, 0))
20353             return 1;
20354
20355  ;
20356  return 0;
20357 }
20358
20359 _ACEOF
20360 if ac_fn_c_try_link "$LINENO"; then :
20361
20362         tst_connect_need_LIBS="$tst_lib"
20363
20364 fi
20365 rm -f core conftest.err conftest.$ac_objext \
20366     conftest$ac_exeext conftest.$ac_ext
20367     fi
20368   done
20369   LIBS="$tst_connect_save_LIBS"
20370   #
20371   case X-"$tst_connect_need_LIBS" in
20372     X-unknown)
20373       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20374 $as_echo "cannot find connect" >&6; }
20375       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20376       ;;
20377     X-)
20378       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20379 $as_echo "yes" >&6; }
20380       ;;
20381     *)
20382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20383 $as_echo "$tst_connect_need_LIBS" >&6; }
20384       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20385       ;;
20386   esac
20387
20388
20389 CURL_NETWORK_LIBS=$LIBS
20390
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20392 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20393 if ${ac_cv_header_time+:} false; then :
20394   $as_echo_n "(cached) " >&6
20395 else
20396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20397 /* end confdefs.h.  */
20398 #include <sys/types.h>
20399 #include <sys/time.h>
20400 #include <time.h>
20401
20402 int main (void)
20403 {
20404 if ((struct tm *) 0)
20405 return 0;
20406  ;
20407  return 0;
20408 }
20409 _ACEOF
20410 if ac_fn_c_try_compile "$LINENO"; then :
20411   ac_cv_header_time=yes
20412 else
20413   ac_cv_header_time=no
20414 fi
20415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20416 fi
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20418 $as_echo "$ac_cv_header_time" >&6; }
20419 if test $ac_cv_header_time = yes; then
20420
20421 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20422
20423 fi
20424
20425
20426     for ac_header in sys/types.h sys/time.h time.h
20427 do :
20428   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20429 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20431   cat >>confdefs.h <<_ACEOF
20432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20433 _ACEOF
20434
20435 fi
20436
20437 done
20438
20439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20440 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20441   #
20442   if test "x$dontwant_rt" = "xno" ; then
20443     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20444 /* end confdefs.h.  */
20445
20446
20447 #ifdef HAVE_SYS_TYPES_H
20448 #include <sys/types.h>
20449 #endif
20450 #ifdef HAVE_SYS_TIME_H
20451 #include <sys/time.h>
20452 #ifdef TIME_WITH_SYS_TIME
20453 #include <time.h>
20454 #endif
20455 #else
20456 #ifdef HAVE_TIME_H
20457 #include <time.h>
20458 #endif
20459 #endif
20460
20461 int main (void)
20462 {
20463
20464         struct timespec ts;
20465         (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20466
20467  ;
20468  return 0;
20469 }
20470
20471 _ACEOF
20472 if ac_fn_c_try_compile "$LINENO"; then :
20473
20474       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20475 $as_echo "yes" >&6; }
20476       curl_func_clock_gettime="yes"
20477
20478 else
20479
20480       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20481 $as_echo "no" >&6; }
20482       curl_func_clock_gettime="no"
20483
20484 fi
20485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20486   fi
20487
20488
20489     #
20490   if test "$curl_func_clock_gettime" = "yes"; then
20491     #
20492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20493 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20494     #
20495     curl_cv_save_LIBS="$LIBS"
20496     curl_cv_gclk_LIBS="unknown"
20497     #
20498     for x_xlibs in '' '-lrt' '-lposix4' ; do
20499       if test "$curl_cv_gclk_LIBS" = "unknown"; then
20500         if test -z "$x_xlibs"; then
20501           LIBS="$curl_cv_save_LIBS"
20502         else
20503           LIBS="$x_xlibs $curl_cv_save_LIBS"
20504         fi
20505         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h.  */
20507
20508
20509 #ifdef HAVE_SYS_TYPES_H
20510 #include <sys/types.h>
20511 #endif
20512 #ifdef HAVE_SYS_TIME_H
20513 #include <sys/time.h>
20514 #ifdef TIME_WITH_SYS_TIME
20515 #include <time.h>
20516 #endif
20517 #else
20518 #ifdef HAVE_TIME_H
20519 #include <time.h>
20520 #endif
20521 #endif
20522
20523 int main (void)
20524 {
20525
20526             struct timespec ts;
20527             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20528
20529  ;
20530  return 0;
20531 }
20532
20533 _ACEOF
20534 if ac_fn_c_try_link "$LINENO"; then :
20535
20536           curl_cv_gclk_LIBS="$x_xlibs"
20537
20538 fi
20539 rm -f core conftest.err conftest.$ac_objext \
20540     conftest$ac_exeext conftest.$ac_ext
20541       fi
20542     done
20543     #
20544     LIBS="$curl_cv_save_LIBS"
20545     #
20546     case X-"$curl_cv_gclk_LIBS" in
20547       X-unknown)
20548         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20549 $as_echo "cannot find clock_gettime" >&6; }
20550         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20551 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20552         curl_func_clock_gettime="no"
20553         ;;
20554       X-)
20555         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20556 $as_echo "no additional lib required" >&6; }
20557         curl_func_clock_gettime="yes"
20558         ;;
20559       *)
20560         if test -z "$curl_cv_save_LIBS"; then
20561           LIBS="$curl_cv_gclk_LIBS"
20562         else
20563           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20564         fi
20565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20566 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20567         curl_func_clock_gettime="yes"
20568         ;;
20569     esac
20570     #
20571         if test "x$cross_compiling" != "xyes" &&
20572       test "$curl_func_clock_gettime" = "yes"; then
20573       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20574 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20575       if test "$cross_compiling" = yes; then :
20576   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20578 as_fn_error $? "cannot run test program while cross compiling
20579 See \`config.log' for more details" "$LINENO" 5; }
20580 else
20581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20582 /* end confdefs.h.  */
20583
20584
20585 #ifdef HAVE_STDLIB_H
20586 #include <stdlib.h>
20587 #endif
20588 #ifdef HAVE_SYS_TYPES_H
20589 #include <sys/types.h>
20590 #endif
20591 #ifdef HAVE_SYS_TIME_H
20592 #include <sys/time.h>
20593 #ifdef TIME_WITH_SYS_TIME
20594 #include <time.h>
20595 #endif
20596 #else
20597 #ifdef HAVE_TIME_H
20598 #include <time.h>
20599 #endif
20600 #endif
20601
20602 int main (void)
20603 {
20604
20605           struct timespec ts;
20606           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20607             exit(0);
20608           else
20609             exit(1);
20610
20611  ;
20612  return 0;
20613 }
20614
20615 _ACEOF
20616 if ac_fn_c_try_run "$LINENO"; then :
20617
20618         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20619 $as_echo "yes" >&6; }
20620
20621 else
20622
20623         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20624 $as_echo "no" >&6; }
20625         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20626 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20627         curl_func_clock_gettime="no"
20628         LIBS="$curl_cv_save_LIBS"
20629
20630 fi
20631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20632   conftest.$ac_objext conftest.beam conftest.$ac_ext
20633 fi
20634
20635     fi
20636     #
20637     case "$curl_func_clock_gettime" in
20638       yes)
20639
20640 cat >>confdefs.h <<_ACEOF
20641 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20642 _ACEOF
20643
20644         ;;
20645     esac
20646     #
20647   fi
20648   #
20649
20650
20651 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20652
20653
20654
20655 clean_CPPFLAGS=$CPPFLAGS
20656 clean_LDFLAGS=$LDFLAGS
20657 clean_LIBS=$LIBS
20658 ZLIB_LIBS=""
20659
20660 # Check whether --with-zlib was given.
20661 if test "${with_zlib+set}" = set; then :
20662   withval=$with_zlib; OPT_ZLIB="$withval"
20663 fi
20664
20665
20666 if test "$OPT_ZLIB" = "no" ; then
20667     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20668 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20669 else
20670   if test "$OPT_ZLIB" = "yes" ; then
20671     OPT_ZLIB=""
20672   fi
20673
20674   if test -z "$OPT_ZLIB" ; then
20675
20676     if test -n "$PKG_CONFIG"; then
20677       PKGCONFIG="$PKG_CONFIG"
20678     else
20679       if test -n "$ac_tool_prefix"; then
20680   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20681 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20683 $as_echo_n "checking for $ac_word... " >&6; }
20684 if ${ac_cv_path_PKGCONFIG+:} false; then :
20685   $as_echo_n "(cached) " >&6
20686 else
20687   case $PKGCONFIG in
20688   [\\/]* | ?:[\\/]*)
20689   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20690   ;;
20691   *)
20692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20693 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20694 for as_dir in $as_dummy
20695 do
20696   IFS=$as_save_IFS
20697   test -z "$as_dir" && as_dir=.
20698     for ac_exec_ext in '' $ac_executable_extensions; do
20699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20700     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20702     break 2
20703   fi
20704 done
20705   done
20706 IFS=$as_save_IFS
20707
20708   ;;
20709 esac
20710 fi
20711 PKGCONFIG=$ac_cv_path_PKGCONFIG
20712 if test -n "$PKGCONFIG"; then
20713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20714 $as_echo "$PKGCONFIG" >&6; }
20715 else
20716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20717 $as_echo "no" >&6; }
20718 fi
20719
20720
20721 fi
20722 if test -z "$ac_cv_path_PKGCONFIG"; then
20723   ac_pt_PKGCONFIG=$PKGCONFIG
20724   # Extract the first word of "pkg-config", so it can be a program name with args.
20725 set dummy pkg-config; ac_word=$2
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20727 $as_echo_n "checking for $ac_word... " >&6; }
20728 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20729   $as_echo_n "(cached) " >&6
20730 else
20731   case $ac_pt_PKGCONFIG in
20732   [\\/]* | ?:[\\/]*)
20733   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20734   ;;
20735   *)
20736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20737 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20738 for as_dir in $as_dummy
20739 do
20740   IFS=$as_save_IFS
20741   test -z "$as_dir" && as_dir=.
20742     for ac_exec_ext in '' $ac_executable_extensions; do
20743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20744     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20746     break 2
20747   fi
20748 done
20749   done
20750 IFS=$as_save_IFS
20751
20752   ;;
20753 esac
20754 fi
20755 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20756 if test -n "$ac_pt_PKGCONFIG"; then
20757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20758 $as_echo "$ac_pt_PKGCONFIG" >&6; }
20759 else
20760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20761 $as_echo "no" >&6; }
20762 fi
20763
20764   if test "x$ac_pt_PKGCONFIG" = x; then
20765     PKGCONFIG="no"
20766   else
20767     case $cross_compiling:$ac_tool_warned in
20768 yes:)
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20771 ac_tool_warned=yes ;;
20772 esac
20773     PKGCONFIG=$ac_pt_PKGCONFIG
20774   fi
20775 else
20776   PKGCONFIG="$ac_cv_path_PKGCONFIG"
20777 fi
20778
20779     fi
20780
20781     if test "x$PKGCONFIG" != "xno"; then
20782       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20783 $as_echo_n "checking for zlib options with pkg-config... " >&6; }
20784             itexists=`
20785     if test -n ""; then
20786       PKG_CONFIG_LIBDIR=""
20787       export PKG_CONFIG_LIBDIR
20788     fi
20789          $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20790
20791       if test -z "$itexists"; then
20792                         PKGCONFIG="no"
20793         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20794 $as_echo "no" >&6; }
20795       else
20796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20797 $as_echo "found" >&6; }
20798       fi
20799     fi
20800
20801
20802     if test "$PKGCONFIG" != "no" ; then
20803       LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20804       LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20805       CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20806       OPT_ZLIB=""
20807       HAVE_LIBZ="1"
20808     fi
20809
20810     if test -z "$HAVE_LIBZ"; then
20811
20812
20813       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20814 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20815 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20816   $as_echo_n "(cached) " >&6
20817 else
20818   ac_check_lib_save_LIBS=$LIBS
20819 LIBS="-lz  $LIBS"
20820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20821 /* end confdefs.h.  */
20822
20823
20824 #ifdef __cplusplus
20825 extern "C"
20826 #endif
20827 char inflateEnd ();
20828 int main (void)
20829 {
20830 return inflateEnd ();
20831  ;
20832  return 0;
20833 }
20834 _ACEOF
20835 if ac_fn_c_try_link "$LINENO"; then :
20836   ac_cv_lib_z_inflateEnd=yes
20837 else
20838   ac_cv_lib_z_inflateEnd=no
20839 fi
20840 rm -f core conftest.err conftest.$ac_objext \
20841     conftest$ac_exeext conftest.$ac_ext
20842 LIBS=$ac_check_lib_save_LIBS
20843 fi
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20845 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20846 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20847                      HAVE_LIBZ="1"
20848                     LIBS="-lz $LIBS"
20849 else
20850                      OPT_ZLIB="/usr/local"
20851 fi
20852
20853     fi
20854   fi
20855
20856     if test -n "$OPT_ZLIB"; then
20857      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20858      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20859   fi
20860
20861   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20862 if test "x$ac_cv_header_zlib_h" = xyes; then :
20863
20864         HAVE_ZLIB_H="1"
20865         if test "$HAVE_LIBZ" != "1"; then
20866       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20867 $as_echo_n "checking for gzread in -lz... " >&6; }
20868 if ${ac_cv_lib_z_gzread+:} false; then :
20869   $as_echo_n "(cached) " >&6
20870 else
20871   ac_check_lib_save_LIBS=$LIBS
20872 LIBS="-lz  $LIBS"
20873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874 /* end confdefs.h.  */
20875
20876
20877 #ifdef __cplusplus
20878 extern "C"
20879 #endif
20880 char gzread ();
20881 int main (void)
20882 {
20883 return gzread ();
20884  ;
20885  return 0;
20886 }
20887 _ACEOF
20888 if ac_fn_c_try_link "$LINENO"; then :
20889   ac_cv_lib_z_gzread=yes
20890 else
20891   ac_cv_lib_z_gzread=no
20892 fi
20893 rm -f core conftest.err conftest.$ac_objext \
20894     conftest$ac_exeext conftest.$ac_ext
20895 LIBS=$ac_check_lib_save_LIBS
20896 fi
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20898 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20899 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20900
20901                                       HAVE_LIBZ="1"
20902                    LIBS="-lz $LIBS"
20903
20904 else
20905    CPPFLAGS=$clean_CPPFLAGS
20906                    LDFLAGS=$clean_LDFLAGS
20907 fi
20908
20909     fi
20910
20911 else
20912
20913             CPPFLAGS=$clean_CPPFLAGS
20914       LDFLAGS=$clean_LDFLAGS
20915
20916 fi
20917
20918
20919
20920   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20921   then
20922     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20923 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20924     HAVE_LIBZ=""
20925     CPPFLAGS=$clean_CPPFLAGS
20926     LDFLAGS=$clean_LDFLAGS
20927     LIBS=$clean_LIBS
20928   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20929   then
20930     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20931 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20932     CPPFLAGS=$clean_CPPFLAGS
20933     LDFLAGS=$clean_LDFLAGS
20934     LIBS=$clean_LIBS
20935   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20936   then
20937
20938
20939 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20940
20941
20942 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20943
20944
20945     ZLIB_LIBS="-lz"
20946     LIBS="-lz $clean_LIBS"
20947
20948         AMFIXLIB="1"
20949     { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20950 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20951     curl_zlib_msg="enabled"
20952   fi
20953 fi
20954
20955  if test x"$AMFIXLIB" = x1; then
20956   HAVE_LIBZ_TRUE=
20957   HAVE_LIBZ_FALSE='#'
20958 else
20959   HAVE_LIBZ_TRUE='#'
20960   HAVE_LIBZ_FALSE=
20961 fi
20962
20963
20964
20965
20966 LDAPLIBNAME=""
20967
20968 # Check whether --with-ldap-lib was given.
20969 if test "${with_ldap_lib+set}" = set; then :
20970   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
20971 fi
20972
20973
20974 LBERLIBNAME=""
20975
20976 # Check whether --with-lber-lib was given.
20977 if test "${with_lber_lib+set}" = set; then :
20978   withval=$with_lber_lib; LBERLIBNAME="$withval"
20979 fi
20980
20981
20982 if test x$CURL_DISABLE_LDAP != x1 ; then
20983
20984
20985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
20986 $as_echo_n "checking for lber.h... " >&6; }
20987 if ${curl_cv_header_lber_h+:} false; then :
20988   $as_echo_n "(cached) " >&6
20989 else
20990
20991     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20992 /* end confdefs.h.  */
20993
20994
20995 #undef inline
20996 #ifdef HAVE_WINDOWS_H
20997 #ifndef WIN32_LEAN_AND_MEAN
20998 #define WIN32_LEAN_AND_MEAN
20999 #endif
21000 #include <windows.h>
21001 #else
21002 #ifdef HAVE_SYS_TYPES_H
21003 #include <sys/types.h>
21004 #endif
21005 #endif
21006 #ifndef NULL
21007 #define NULL (void *)0
21008 #endif
21009 #include <lber.h>
21010
21011 int main (void)
21012 {
21013
21014         BerValue *bvp = NULL;
21015         BerElement *bep = ber_init(bvp);
21016         ber_free(bep, 1);
21017
21018  ;
21019  return 0;
21020 }
21021
21022 _ACEOF
21023 if ac_fn_c_try_compile "$LINENO"; then :
21024
21025       curl_cv_header_lber_h="yes"
21026
21027 else
21028
21029       curl_cv_header_lber_h="no"
21030
21031 fi
21032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033
21034 fi
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21036 $as_echo "$curl_cv_header_lber_h" >&6; }
21037   if test "$curl_cv_header_lber_h" = "yes"; then
21038
21039 cat >>confdefs.h <<_ACEOF
21040 #define HAVE_LBER_H 1
21041 _ACEOF
21042
21043     #
21044     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h.  */
21046
21047
21048 #undef inline
21049 #ifdef HAVE_WINDOWS_H
21050 #ifndef WIN32_LEAN_AND_MEAN
21051 #define WIN32_LEAN_AND_MEAN
21052 #endif
21053 #include <windows.h>
21054 #else
21055 #ifdef HAVE_SYS_TYPES_H
21056 #include <sys/types.h>
21057 #endif
21058 #endif
21059 #ifndef NULL
21060 #define NULL (void *)0
21061 #endif
21062 #ifndef LDAP_DEPRECATED
21063 #define LDAP_DEPRECATED 1
21064 #endif
21065 #include <ldap.h>
21066
21067 int main (void)
21068 {
21069
21070         BerValue *bvp = NULL;
21071         BerElement *bep = ber_init(bvp);
21072         ber_free(bep, 1);
21073
21074  ;
21075  return 0;
21076 }
21077
21078 _ACEOF
21079 if ac_fn_c_try_compile "$LINENO"; then :
21080
21081       curl_cv_need_header_lber_h="no"
21082
21083 else
21084
21085       curl_cv_need_header_lber_h="yes"
21086
21087 fi
21088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21089     #
21090     case "$curl_cv_need_header_lber_h" in
21091       yes)
21092
21093 cat >>confdefs.h <<_ACEOF
21094 #define NEED_LBER_H 1
21095 _ACEOF
21096
21097         ;;
21098     esac
21099   fi
21100
21101
21102     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21103 $as_echo_n "checking for ldap.h... " >&6; }
21104 if ${curl_cv_header_ldap_h+:} false; then :
21105   $as_echo_n "(cached) " >&6
21106 else
21107
21108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h.  */
21110
21111
21112 #undef inline
21113 #ifdef HAVE_WINDOWS_H
21114 #ifndef WIN32_LEAN_AND_MEAN
21115 #define WIN32_LEAN_AND_MEAN
21116 #endif
21117 #include <windows.h>
21118 #else
21119 #ifdef HAVE_SYS_TYPES_H
21120 #include <sys/types.h>
21121 #endif
21122 #endif
21123 #ifndef LDAP_DEPRECATED
21124 #define LDAP_DEPRECATED 1
21125 #endif
21126 #ifdef NEED_LBER_H
21127 #include <lber.h>
21128 #endif
21129 #include <ldap.h>
21130
21131 int main (void)
21132 {
21133
21134         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21135         int res = ldap_unbind(ldp);
21136
21137  ;
21138  return 0;
21139 }
21140
21141 _ACEOF
21142 if ac_fn_c_try_compile "$LINENO"; then :
21143
21144       curl_cv_header_ldap_h="yes"
21145
21146 else
21147
21148       curl_cv_header_ldap_h="no"
21149
21150 fi
21151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21152
21153 fi
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21155 $as_echo "$curl_cv_header_ldap_h" >&6; }
21156   case "$curl_cv_header_ldap_h" in
21157     yes)
21158
21159 cat >>confdefs.h <<_ACEOF
21160 #define HAVE_LDAP_H 1
21161 _ACEOF
21162
21163       ;;
21164   esac
21165
21166
21167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21168 $as_echo_n "checking for ldapssl.h... " >&6; }
21169 if ${curl_cv_header_ldapssl_h+:} false; then :
21170   $as_echo_n "(cached) " >&6
21171 else
21172
21173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21174 /* end confdefs.h.  */
21175
21176
21177 #undef inline
21178 #ifdef HAVE_WINDOWS_H
21179 #ifndef WIN32_LEAN_AND_MEAN
21180 #define WIN32_LEAN_AND_MEAN
21181 #endif
21182 #include <windows.h>
21183 #else
21184 #ifdef HAVE_SYS_TYPES_H
21185 #include <sys/types.h>
21186 #endif
21187 #endif
21188 #ifndef NULL
21189 #define NULL (void *)0
21190 #endif
21191 #ifndef LDAP_DEPRECATED
21192 #define LDAP_DEPRECATED 1
21193 #endif
21194 #ifdef NEED_LBER_H
21195 #include <lber.h>
21196 #endif
21197 #ifdef HAVE_LDAP_H
21198 #include <ldap.h>
21199 #endif
21200 #include <ldapssl.h>
21201
21202 int main (void)
21203 {
21204
21205         char *cert_label = NULL;
21206         LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21207
21208  ;
21209  return 0;
21210 }
21211
21212 _ACEOF
21213 if ac_fn_c_try_compile "$LINENO"; then :
21214
21215       curl_cv_header_ldapssl_h="yes"
21216
21217 else
21218
21219       curl_cv_header_ldapssl_h="no"
21220
21221 fi
21222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21223
21224 fi
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21226 $as_echo "$curl_cv_header_ldapssl_h" >&6; }
21227   case "$curl_cv_header_ldapssl_h" in
21228     yes)
21229
21230 cat >>confdefs.h <<_ACEOF
21231 #define HAVE_LDAPSSL_H 1
21232 _ACEOF
21233
21234       ;;
21235   esac
21236
21237
21238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21239 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21240 if ${curl_cv_header_ldap_ssl_h+:} false; then :
21241   $as_echo_n "(cached) " >&6
21242 else
21243
21244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21245 /* end confdefs.h.  */
21246
21247
21248 #undef inline
21249 #ifdef HAVE_WINDOWS_H
21250 #ifndef WIN32_LEAN_AND_MEAN
21251 #define WIN32_LEAN_AND_MEAN
21252 #endif
21253 #include <windows.h>
21254 #else
21255 #ifdef HAVE_SYS_TYPES_H
21256 #include <sys/types.h>
21257 #endif
21258 #endif
21259 #ifndef LDAP_DEPRECATED
21260 #define LDAP_DEPRECATED 1
21261 #endif
21262 #ifdef NEED_LBER_H
21263 #include <lber.h>
21264 #endif
21265 #ifdef HAVE_LDAP_H
21266 #include <ldap.h>
21267 #endif
21268 #include <ldap_ssl.h>
21269
21270 int main (void)
21271 {
21272
21273         LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21274
21275  ;
21276  return 0;
21277 }
21278
21279 _ACEOF
21280 if ac_fn_c_try_compile "$LINENO"; then :
21281
21282       curl_cv_header_ldap_ssl_h="yes"
21283
21284 else
21285
21286       curl_cv_header_ldap_ssl_h="no"
21287
21288 fi
21289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21290
21291 fi
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21293 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21294   case "$curl_cv_header_ldap_ssl_h" in
21295     yes)
21296
21297 cat >>confdefs.h <<_ACEOF
21298 #define HAVE_LDAP_SSL_H 1
21299 _ACEOF
21300
21301       ;;
21302   esac
21303
21304
21305   if test -z "$LDAPLIBNAME" ; then
21306     if test "$curl_cv_native_windows" = "yes"; then
21307             LDAPLIBNAME="wldap32"
21308       LBERLIBNAME="no"
21309     fi
21310   fi
21311
21312   if test "$LDAPLIBNAME" ; then
21313     as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21315 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21316 if eval \${$as_ac_Lib+:} false; then :
21317   $as_echo_n "(cached) " >&6
21318 else
21319   ac_check_lib_save_LIBS=$LIBS
21320 LIBS="-l"$LDAPLIBNAME"  $LIBS"
21321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21322 /* end confdefs.h.  */
21323
21324
21325 #ifdef __cplusplus
21326 extern "C"
21327 #endif
21328 char ldap_init ();
21329 int main (void)
21330 {
21331 return ldap_init ();
21332  ;
21333  return 0;
21334 }
21335 _ACEOF
21336 if ac_fn_c_try_link "$LINENO"; then :
21337   eval "$as_ac_Lib=yes"
21338 else
21339   eval "$as_ac_Lib=no"
21340 fi
21341 rm -f core conftest.err conftest.$ac_objext \
21342     conftest$ac_exeext conftest.$ac_ext
21343 LIBS=$ac_check_lib_save_LIBS
21344 fi
21345 eval ac_res=\$$as_ac_Lib
21346                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21347 $as_echo "$ac_res" >&6; }
21348 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21349   cat >>confdefs.h <<_ACEOF
21350 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21351 _ACEOF
21352
21353   LIBS="-l"$LDAPLIBNAME" $LIBS"
21354
21355 else
21356
21357       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21358 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21359
21360 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21361
21362       CURL_DISABLE_LDAP=1
21363
21364
21365 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21366
21367       CURL_DISABLE_LDAPS=1
21368
21369 fi
21370
21371   else
21372
21373     #
21374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21375 $as_echo_n "checking for LDAP libraries... " >&6; }
21376   #
21377   u_libs=""
21378   #
21379
21380   #
21381   curl_cv_save_LIBS="$LIBS"
21382   curl_cv_ldap_LIBS="unknown"
21383   #
21384   for x_nlibs in '' "$u_libs" \
21385     '-lldap' \
21386     '-lldap -llber' \
21387     '-llber -lldap' \
21388     '-lldapssl -lldapx -lldapsdk' \
21389     '-lldapsdk -lldapx -lldapssl' ; do
21390     if test "$curl_cv_ldap_LIBS" = "unknown"; then
21391       if test -z "$x_nlibs"; then
21392         LIBS="$curl_cv_save_LIBS"
21393       else
21394         LIBS="$x_nlibs $curl_cv_save_LIBS"
21395       fi
21396       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21397 /* end confdefs.h.  */
21398
21399
21400 #undef inline
21401 #ifdef HAVE_WINDOWS_H
21402 #ifndef WIN32_LEAN_AND_MEAN
21403 #define WIN32_LEAN_AND_MEAN
21404 #endif
21405 #include <windows.h>
21406 #else
21407 #ifdef HAVE_SYS_TYPES_H
21408 #include <sys/types.h>
21409 #endif
21410 #endif
21411 #ifndef NULL
21412 #define NULL (void *)0
21413 #endif
21414 #ifndef LDAP_DEPRECATED
21415 #define LDAP_DEPRECATED 1
21416 #endif
21417 #ifdef NEED_LBER_H
21418 #include <lber.h>
21419 #endif
21420 #ifdef HAVE_LDAP_H
21421 #include <ldap.h>
21422 #endif
21423
21424 int main (void)
21425 {
21426
21427           BerValue *bvp = NULL;
21428           BerElement *bep = ber_init(bvp);
21429           LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21430           int res = ldap_unbind(ldp);
21431           ber_free(bep, 1);
21432
21433  ;
21434  return 0;
21435 }
21436
21437 _ACEOF
21438 if ac_fn_c_try_link "$LINENO"; then :
21439
21440         curl_cv_ldap_LIBS="$x_nlibs"
21441
21442 fi
21443 rm -f core conftest.err conftest.$ac_objext \
21444     conftest$ac_exeext conftest.$ac_ext
21445     fi
21446   done
21447   #
21448   LIBS="$curl_cv_save_LIBS"
21449   #
21450   case X-"$curl_cv_ldap_LIBS" in
21451     X-unknown)
21452       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21453 $as_echo "cannot find LDAP libraries" >&6; }
21454       ;;
21455     X-)
21456       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21457 $as_echo "no additional lib required" >&6; }
21458       ;;
21459     *)
21460       if test -z "$curl_cv_save_LIBS"; then
21461         LIBS="$curl_cv_ldap_LIBS"
21462       else
21463         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21464       fi
21465       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21466 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21467       ;;
21468   esac
21469   #
21470
21471     case X-"$curl_cv_ldap_LIBS" in
21472       X-unknown)
21473         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21474 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21475
21476 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21477
21478         CURL_DISABLE_LDAP=1
21479
21480
21481 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21482
21483         CURL_DISABLE_LDAPS=1
21484
21485         ;;
21486     esac
21487   fi
21488 fi
21489
21490 if test x$CURL_DISABLE_LDAP != x1 ; then
21491
21492   if test "$LBERLIBNAME" ; then
21493             if test "$LBERLIBNAME" != "no" ; then
21494       as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21496 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21497 if eval \${$as_ac_Lib+:} false; then :
21498   $as_echo_n "(cached) " >&6
21499 else
21500   ac_check_lib_save_LIBS=$LIBS
21501 LIBS="-l"$LBERLIBNAME"  $LIBS"
21502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21503 /* end confdefs.h.  */
21504
21505
21506 #ifdef __cplusplus
21507 extern "C"
21508 #endif
21509 char ber_free ();
21510 int main (void)
21511 {
21512 return ber_free ();
21513  ;
21514  return 0;
21515 }
21516 _ACEOF
21517 if ac_fn_c_try_link "$LINENO"; then :
21518   eval "$as_ac_Lib=yes"
21519 else
21520   eval "$as_ac_Lib=no"
21521 fi
21522 rm -f core conftest.err conftest.$ac_objext \
21523     conftest$ac_exeext conftest.$ac_ext
21524 LIBS=$ac_check_lib_save_LIBS
21525 fi
21526 eval ac_res=\$$as_ac_Lib
21527                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21528 $as_echo "$ac_res" >&6; }
21529 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21530   cat >>confdefs.h <<_ACEOF
21531 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21532 _ACEOF
21533
21534   LIBS="-l"$LBERLIBNAME" $LIBS"
21535
21536 else
21537
21538         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21539 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21540
21541 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21542
21543         CURL_DISABLE_LDAP=1
21544
21545
21546 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21547
21548         CURL_DISABLE_LDAPS=1
21549
21550 fi
21551
21552     fi
21553   fi
21554 fi
21555
21556 if test x$CURL_DISABLE_LDAP != x1 ; then
21557   for ac_func in ldap_url_parse ldap_init_fd
21558 do :
21559   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21560 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21561 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21562   cat >>confdefs.h <<_ACEOF
21563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21564 _ACEOF
21565
21566 fi
21567 done
21568
21569
21570   if test "$LDAPLIBNAME" = "wldap32"; then
21571     curl_ldap_msg="enabled (winldap)"
21572
21573 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21574
21575   else
21576     curl_ldap_msg="enabled (OpenLDAP)"
21577     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21578
21579 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21580
21581       USE_OPENLDAP=1
21582
21583     fi
21584   fi
21585 fi
21586
21587 if test x$CURL_DISABLE_LDAPS != x1 ; then
21588     curl_ldaps_msg="enabled"
21589 fi
21590
21591
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21593 $as_echo_n "checking whether to enable IPv6... " >&6; }
21594 # Check whether --enable-ipv6 was given.
21595 if test "${enable_ipv6+set}" = set; then :
21596   enableval=$enable_ipv6;  case "$enableval" in
21597   no)
21598        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21599 $as_echo "no" >&6; }
21600        ipv6=no
21601        ;;
21602   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21603 $as_echo "yes" >&6; }
21604        ipv6=yes
21605        ;;
21606   esac
21607 else
21608   if test "$cross_compiling" = yes; then :
21609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21610 $as_echo "yes" >&6; }
21611   ipv6=yes
21612
21613 else
21614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21615 /* end confdefs.h.  */
21616  /* is AF_INET6 available? */
21617 #include <sys/types.h>
21618 #ifdef HAVE_WINSOCK2_H
21619 #include <winsock2.h>
21620 #else
21621 #include <sys/socket.h>
21622 #endif
21623 #include <stdlib.h> /* for exit() */
21624 main()
21625 {
21626  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21627    exit(1);
21628  else
21629    exit(0);
21630 }
21631
21632 _ACEOF
21633 if ac_fn_c_try_run "$LINENO"; then :
21634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21635 $as_echo "yes" >&6; }
21636   ipv6=yes
21637 else
21638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21639 $as_echo "no" >&6; }
21640   ipv6=no
21641 fi
21642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21643   conftest.$ac_objext conftest.beam conftest.$ac_ext
21644 fi
21645
21646 fi
21647
21648
21649 if test "$ipv6" = "yes"; then
21650   curl_ipv6_msg="enabled"
21651 fi
21652
21653 # Check if struct sockaddr_in6 have sin6_scope_id member
21654 if test "$ipv6" = yes; then
21655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21656 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21658 /* end confdefs.h.  */
21659
21660 #include <sys/types.h>
21661 #ifdef HAVE_WINSOCK2_H
21662 #include <winsock2.h>
21663 #include <ws2tcpip.h>
21664 #else
21665 #include <netinet/in.h>
21666 #endif
21667 int main (void)
21668 {
21669 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21670  ;
21671  return 0;
21672 }
21673 _ACEOF
21674 if ac_fn_c_try_compile "$LINENO"; then :
21675   have_sin6_scope_id=yes
21676 fi
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678   if test "$have_sin6_scope_id" = yes; then
21679     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21680 $as_echo "yes" >&6; }
21681
21682 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21683
21684   else
21685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21686 $as_echo "no" >&6; }
21687   fi
21688 fi
21689
21690
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21692 $as_echo_n "checking if argv can be written to... " >&6; }
21693 if test "$cross_compiling" = yes; then :
21694
21695   curl_cv_writable_argv=cross
21696
21697 else
21698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21699 /* end confdefs.h.  */
21700
21701
21702 int main(int argc, char ** argv) {
21703     argv[0][0] = ' ';
21704     return (argv[0][0] == ' ')?0:1;
21705 }
21706
21707
21708 _ACEOF
21709 if ac_fn_c_try_run "$LINENO"; then :
21710
21711   curl_cv_writable_argv=yes
21712
21713 else
21714
21715   curl_cv_writable_argv=no
21716
21717 fi
21718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21719   conftest.$ac_objext conftest.beam conftest.$ac_ext
21720 fi
21721
21722 case $curl_cv_writable_argv in
21723 yes)
21724
21725 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21726
21727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21728 $as_echo "yes" >&6; }
21729         ;;
21730 no)
21731         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21732 $as_echo "no" >&6; }
21733         ;;
21734 *)
21735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21736 $as_echo "no" >&6; }
21737         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21738 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21739         ;;
21740 esac
21741
21742
21743
21744 GSSAPI_ROOT="/usr"
21745
21746 # Check whether --with-gssapi-includes was given.
21747 if test "${with_gssapi_includes+set}" = set; then :
21748   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
21749     want_gss="yes"
21750
21751 fi
21752
21753
21754
21755 # Check whether --with-gssapi-libs was given.
21756 if test "${with_gssapi_libs+set}" = set; then :
21757   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
21758     want_gss="yes"
21759
21760 fi
21761
21762
21763
21764 # Check whether --with-gssapi was given.
21765 if test "${with_gssapi+set}" = set; then :
21766   withval=$with_gssapi;
21767   GSSAPI_ROOT="$withval"
21768   if test x"$GSSAPI_ROOT" != xno; then
21769     want_gss="yes"
21770     if test x"$GSSAPI_ROOT" = xyes; then
21771             GSSAPI_ROOT="/usr"
21772     fi
21773   fi
21774
21775 fi
21776
21777
21778 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21779
21780 save_CPPFLAGS="$CPPFLAGS"
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21782 $as_echo_n "checking if GSS-API support is requested... " >&6; }
21783 if test x"$want_gss" = xyes; then
21784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21785 $as_echo "yes" >&6; }
21786
21787   if test -z "$GSSAPI_INCS"; then
21788      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21789         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21790      elif test -f "$KRB5CONFIG"; then
21791         GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21792      elif test "$GSSAPI_ROOT" != "yes"; then
21793         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21794      fi
21795   fi
21796
21797   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21798
21799   ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21800 if test "x$ac_cv_header_gss_h" = xyes; then :
21801
21802
21803 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21804
21805       gnu_gss=yes
21806
21807 else
21808
21809             for ac_header in gssapi/gssapi.h
21810 do :
21811   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21812 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21813   cat >>confdefs.h <<_ACEOF
21814 #define HAVE_GSSAPI_GSSAPI_H 1
21815 _ACEOF
21816
21817 else
21818   not_mit=1
21819 fi
21820
21821 done
21822
21823       for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21824 do :
21825   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21826 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21827 $ac_includes_default
21828 #ifdef HAVE_GSSAPI_GSSAPI_H
21829 #include <gssapi/gssapi.h>
21830 #endif
21831
21832 "
21833 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21834   cat >>confdefs.h <<_ACEOF
21835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21836 _ACEOF
21837
21838 else
21839   not_mit=1
21840 fi
21841
21842 done
21843
21844       if test "x$not_mit" = "x1"; then
21845                 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21846 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21847
21848
21849 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21850
21851
21852 else
21853
21854                             want_gss=no
21855               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21856 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21857
21858
21859 fi
21860
21861
21862       else
21863
21864 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21865
21866                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21867 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21868         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21869 /* end confdefs.h.  */
21870
21871
21872 #include <gssapi/gssapi.h>
21873 #include <gssapi/gssapi_generic.h>
21874 #include <gssapi/gssapi_krb5.h>
21875
21876 int main (void)
21877 {
21878
21879             gss_import_name(
21880                             (OM_uint32 *)0,
21881                             (gss_buffer_t)0,
21882                             GSS_C_NT_HOSTBASED_SERVICE,
21883                             (gss_name_t *)0);
21884
21885  ;
21886  return 0;
21887 }
21888
21889 _ACEOF
21890 if ac_fn_c_try_compile "$LINENO"; then :
21891
21892           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21893 $as_echo "yes" >&6; }
21894
21895 else
21896
21897           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21898 $as_echo "no" >&6; }
21899
21900 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21901
21902
21903 fi
21904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21905       fi
21906
21907
21908 fi
21909
21910
21911 else
21912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21913 $as_echo "no" >&6; }
21914 fi
21915 if test x"$want_gss" = xyes; then
21916
21917 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21918
21919   HAVE_GSSAPI=1
21920   curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21921
21922   if test -n "$gnu_gss"; then
21923     curl_gss_msg="enabled (GNU GSS)"
21924     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21925     LIBS="-lgss $LIBS"
21926   elif test -z "$GSSAPI_LIB_DIR"; then
21927      case $host in
21928      *-*-darwin*)
21929         LIBS="-lgssapi_krb5 -lresolv $LIBS"
21930         ;;
21931      *)
21932         if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21933                                  gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21934            LIBS="$gss_libs $LIBS"
21935         elif test -f "$KRB5CONFIG"; then
21936                                  gss_libs=`$KRB5CONFIG --libs gssapi`
21937            LIBS="$gss_libs $LIBS"
21938         else
21939            case $host in
21940            *-hp-hpux*)
21941               gss_libname="gss"
21942               ;;
21943            *)
21944               gss_libname="gssapi"
21945               ;;
21946            esac
21947
21948            if test "$GSSAPI_ROOT" != "yes"; then
21949               LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21950               LIBS="-l$gss_libname $LIBS"
21951            else
21952               LIBS="-l$gss_libname $LIBS"
21953            fi
21954         fi
21955         ;;
21956      esac
21957   else
21958      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21959      case $host in
21960      *-hp-hpux*)
21961         LIBS="-lgss $LIBS"
21962         ;;
21963      *)
21964         LIBS="-lgssapi $LIBS"
21965         ;;
21966      esac
21967   fi
21968 else
21969   CPPFLAGS="$save_CPPFLAGS"
21970 fi
21971
21972 build_libstubgss=no
21973 if test x"$want_gss" = "xyes"; then
21974   build_libstubgss=yes
21975 fi
21976
21977  if test "x$build_libstubgss" = "xyes"; then
21978   BUILD_STUB_GSS_TRUE=
21979   BUILD_STUB_GSS_FALSE='#'
21980 else
21981   BUILD_STUB_GSS_TRUE='#'
21982   BUILD_STUB_GSS_FALSE=
21983 fi
21984
21985
21986
21987 DEFAULT_SSL_BACKEND=no
21988 VALID_DEFAULT_SSL_BACKEND=
21989
21990 # Check whether --with-default-ssl-backend was given.
21991 if test "${with_default_ssl_backend+set}" = set; then :
21992   withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
21993 fi
21994
21995 case "$DEFAULT_SSL_BACKEND" in
21996   no)
21997         ;;
21998   default|yes)
21999         as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22000     ;;
22001   *)
22002
22003         VALID_DEFAULT_SSL_BACKEND=no
22004     ;;
22005 esac
22006
22007
22008
22009 OPT_WINSSL=no
22010
22011 # Check whether --with-winssl was given.
22012 if test "${with_winssl+set}" = set; then :
22013   withval=$with_winssl; OPT_WINSSL=$withval
22014 fi
22015
22016
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22018 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
22019 if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22020   ssl_msg=
22021   if test "x$OPT_WINSSL" != "xno"  &&
22022      test "x$curl_cv_native_windows" = "xyes"; then
22023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22024 $as_echo "yes" >&6; }
22025
22026 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22027
22028     USE_SCHANNEL=1
22029
22030     ssl_msg="Windows-native"
22031     test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22032     WINSSL_ENABLED=1
22033     # --with-winssl implies --enable-sspi
22034
22035 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22036
22037     USE_WINDOWS_SSPI=1
22038
22039     curl_sspi_msg="enabled"
22040     LIBS="-lcrypt32 $LIBS"
22041   else
22042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22043 $as_echo "no" >&6; }
22044   fi
22045   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22046 else
22047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22048 $as_echo "no" >&6; }
22049 fi
22050
22051 OPT_DARWINSSL=no
22052
22053 # Check whether --with-darwinssl was given.
22054 if test "${with_darwinssl+set}" = set; then :
22055   withval=$with_darwinssl; OPT_DARWINSSL=$withval
22056 fi
22057
22058
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22060 $as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
22061 if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
22062   if test "x$OPT_DARWINSSL" != "xno" &&
22063      test -d "/System/Library/Frameworks/Security.framework"; then
22064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22065 $as_echo "yes" >&6; }
22066
22067 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22068
22069     USE_DARWINSSL=1
22070
22071     ssl_msg="Apple OS-native"
22072     test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22073     DARWINSSL_ENABLED=1
22074     LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22075   else
22076     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22077 $as_echo "no" >&6; }
22078   fi
22079   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22080 else
22081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22082 $as_echo "no" >&6; }
22083 fi
22084
22085
22086 OPT_SSL=off
22087 ca="no"
22088
22089 # Check whether --with-ssl was given.
22090 if test "${with_ssl+set}" = set; then :
22091   withval=$with_ssl; OPT_SSL=$withval
22092 fi
22093
22094
22095 if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22096    test X"$OPT_SSL" != Xno; then
22097   ssl_msg=
22098
22099     CLEANLDFLAGS="$LDFLAGS"
22100   CLEANCPPFLAGS="$CPPFLAGS"
22101   CLEANLIBS="$LIBS"
22102
22103     case $host in
22104     *-*-msys* | *-*-mingw*)
22105       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22106 $as_echo_n "checking for gdi32... " >&6; }
22107       my_ac_save_LIBS=$LIBS
22108       LIBS="-lgdi32 $LIBS"
22109       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22110 /* end confdefs.h.  */
22111 #include <windef.h>
22112                    #include <wingdi.h>
22113 int main (void)
22114 {
22115 GdiFlush();
22116  ;
22117  return 0;
22118 }
22119 _ACEOF
22120 if ac_fn_c_try_link "$LINENO"; then :
22121                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22122 $as_echo "yes" >&6; }
22123 else
22124                       LIBS=$my_ac_save_LIBS
22125                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22126 $as_echo "no" >&6; }
22127
22128 fi
22129 rm -f core conftest.err conftest.$ac_objext \
22130     conftest$ac_exeext conftest.$ac_ext
22131       ;;
22132   esac
22133
22134   case "$OPT_SSL" in
22135   yes)
22136         if test x$cross_compiling != xyes; then
22137             PKGTEST="yes"
22138     fi
22139     PREFIX_OPENSSL=/usr/local/ssl
22140     LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22141     ;;
22142   off)
22143         if test x$cross_compiling != xyes; then
22144             PKGTEST="yes"
22145     fi
22146     PREFIX_OPENSSL=
22147     ;;
22148   *)
22149         PKGTEST="no"
22150     PREFIX_OPENSSL=$OPT_SSL
22151
22152                 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22153     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22154 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22155     if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22156       PKGTEST="yes"
22157     fi
22158
22159             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22160     if test "$PREFIX_OPENSSL" != "/usr" ; then
22161       SSL_LDFLAGS="-L$LIB_OPENSSL"
22162       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22163     fi
22164     SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22165     ;;
22166   esac
22167
22168   if test "$PKGTEST" = "yes"; then
22169
22170
22171     if test -n "$PKG_CONFIG"; then
22172       PKGCONFIG="$PKG_CONFIG"
22173     else
22174       if test -n "$ac_tool_prefix"; then
22175   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22178 $as_echo_n "checking for $ac_word... " >&6; }
22179 if ${ac_cv_path_PKGCONFIG+:} false; then :
22180   $as_echo_n "(cached) " >&6
22181 else
22182   case $PKGCONFIG in
22183   [\\/]* | ?:[\\/]*)
22184   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22185   ;;
22186   *)
22187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22188 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22189 for as_dir in $as_dummy
22190 do
22191   IFS=$as_save_IFS
22192   test -z "$as_dir" && as_dir=.
22193     for ac_exec_ext in '' $ac_executable_extensions; do
22194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22195     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22197     break 2
22198   fi
22199 done
22200   done
22201 IFS=$as_save_IFS
22202
22203   ;;
22204 esac
22205 fi
22206 PKGCONFIG=$ac_cv_path_PKGCONFIG
22207 if test -n "$PKGCONFIG"; then
22208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22209 $as_echo "$PKGCONFIG" >&6; }
22210 else
22211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22212 $as_echo "no" >&6; }
22213 fi
22214
22215
22216 fi
22217 if test -z "$ac_cv_path_PKGCONFIG"; then
22218   ac_pt_PKGCONFIG=$PKGCONFIG
22219   # Extract the first word of "pkg-config", so it can be a program name with args.
22220 set dummy pkg-config; ac_word=$2
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22222 $as_echo_n "checking for $ac_word... " >&6; }
22223 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22224   $as_echo_n "(cached) " >&6
22225 else
22226   case $ac_pt_PKGCONFIG in
22227   [\\/]* | ?:[\\/]*)
22228   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22229   ;;
22230   *)
22231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22232 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22233 for as_dir in $as_dummy
22234 do
22235   IFS=$as_save_IFS
22236   test -z "$as_dir" && as_dir=.
22237     for ac_exec_ext in '' $ac_executable_extensions; do
22238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22239     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22241     break 2
22242   fi
22243 done
22244   done
22245 IFS=$as_save_IFS
22246
22247   ;;
22248 esac
22249 fi
22250 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22251 if test -n "$ac_pt_PKGCONFIG"; then
22252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22253 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22254 else
22255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22256 $as_echo "no" >&6; }
22257 fi
22258
22259   if test "x$ac_pt_PKGCONFIG" = x; then
22260     PKGCONFIG="no"
22261   else
22262     case $cross_compiling:$ac_tool_warned in
22263 yes:)
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22266 ac_tool_warned=yes ;;
22267 esac
22268     PKGCONFIG=$ac_pt_PKGCONFIG
22269   fi
22270 else
22271   PKGCONFIG="$ac_cv_path_PKGCONFIG"
22272 fi
22273
22274     fi
22275
22276     if test "x$PKGCONFIG" != "xno"; then
22277       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22278 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22279             itexists=`
22280     if test -n "$OPENSSL_PCDIR"; then
22281       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22282       export PKG_CONFIG_LIBDIR
22283     fi
22284          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22285
22286       if test -z "$itexists"; then
22287                         PKGCONFIG="no"
22288         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22289 $as_echo "no" >&6; }
22290       else
22291         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22292 $as_echo "found" >&6; }
22293       fi
22294     fi
22295
22296
22297     if test "$PKGCONFIG" != "no" ; then
22298       SSL_LIBS=`
22299     if test -n "$OPENSSL_PCDIR"; then
22300       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22301       export PKG_CONFIG_LIBDIR
22302     fi
22303          $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22304
22305       SSL_LDFLAGS=`
22306     if test -n "$OPENSSL_PCDIR"; then
22307       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22308       export PKG_CONFIG_LIBDIR
22309     fi
22310          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22311
22312       SSL_CPPFLAGS=`
22313     if test -n "$OPENSSL_PCDIR"; then
22314       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22315       export PKG_CONFIG_LIBDIR
22316     fi
22317          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22318
22319
22320       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22321 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22322       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22323 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22324       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22325 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22326
22327       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22328
22329                                           LIBS="$SSL_LIBS $LIBS"
22330     fi
22331   fi
22332
22333     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22334   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22335
22336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22337 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22338 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22339   $as_echo_n "(cached) " >&6
22340 else
22341   ac_check_lib_save_LIBS=$LIBS
22342 LIBS="-lcrypto  $LIBS"
22343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22344 /* end confdefs.h.  */
22345
22346
22347 #ifdef __cplusplus
22348 extern "C"
22349 #endif
22350 char HMAC_Update ();
22351 int main (void)
22352 {
22353 return HMAC_Update ();
22354  ;
22355  return 0;
22356 }
22357 _ACEOF
22358 if ac_fn_c_try_link "$LINENO"; then :
22359   ac_cv_lib_crypto_HMAC_Update=yes
22360 else
22361   ac_cv_lib_crypto_HMAC_Update=no
22362 fi
22363 rm -f core conftest.err conftest.$ac_objext \
22364     conftest$ac_exeext conftest.$ac_ext
22365 LIBS=$ac_check_lib_save_LIBS
22366 fi
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22368 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22369 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22370
22371      HAVECRYPTO="yes"
22372      LIBS="-lcrypto $LIBS"
22373
22374 else
22375
22376      LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22377      CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22378      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22379 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22380 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22381   $as_echo_n "(cached) " >&6
22382 else
22383   ac_check_lib_save_LIBS=$LIBS
22384 LIBS="-lcrypto  $LIBS"
22385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22386 /* end confdefs.h.  */
22387
22388
22389 #ifdef __cplusplus
22390 extern "C"
22391 #endif
22392 char HMAC_Init_ex ();
22393 int main (void)
22394 {
22395 return HMAC_Init_ex ();
22396  ;
22397  return 0;
22398 }
22399 _ACEOF
22400 if ac_fn_c_try_link "$LINENO"; then :
22401   ac_cv_lib_crypto_HMAC_Init_ex=yes
22402 else
22403   ac_cv_lib_crypto_HMAC_Init_ex=no
22404 fi
22405 rm -f core conftest.err conftest.$ac_objext \
22406     conftest$ac_exeext conftest.$ac_ext
22407 LIBS=$ac_check_lib_save_LIBS
22408 fi
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22410 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22411 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22412
22413        HAVECRYPTO="yes"
22414        LIBS="-lcrypto $LIBS"
22415 else
22416
22417
22418               { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22419 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22420        LIBS="-ldl $LIBS"
22421        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22422 /* end confdefs.h.  */
22423
22424          #include <openssl/err.h>
22425
22426 int main (void)
22427 {
22428
22429          ERR_clear_error();
22430
22431  ;
22432  return 0;
22433 }
22434 _ACEOF
22435 if ac_fn_c_try_link "$LINENO"; then :
22436
22437          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22438 $as_echo "yes" >&6; }
22439          HAVECRYPTO="yes"
22440
22441 else
22442
22443          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22444 $as_echo "no" >&6; }
22445
22446          { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22447 $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
22448          LIBS="-lpthread $LIBS"
22449          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22450 /* end confdefs.h.  */
22451
22452            #include <openssl/err.h>
22453
22454 int main (void)
22455 {
22456
22457            ERR_clear_error();
22458
22459  ;
22460  return 0;
22461 }
22462 _ACEOF
22463 if ac_fn_c_try_link "$LINENO"; then :
22464
22465            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22466 $as_echo "yes" >&6; }
22467            HAVECRYPTO="yes"
22468
22469 else
22470
22471            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22472 $as_echo "no" >&6; }
22473            LDFLAGS="$CLEANLDFLAGS"
22474            CPPFLAGS="$CLEANCPPFLAGS"
22475            LIBS="$CLEANLIBS"
22476
22477
22478 fi
22479 rm -f core conftest.err conftest.$ac_objext \
22480     conftest$ac_exeext conftest.$ac_ext
22481
22482
22483 fi
22484 rm -f core conftest.err conftest.$ac_objext \
22485     conftest$ac_exeext conftest.$ac_ext
22486
22487
22488 fi
22489
22490
22491 fi
22492
22493
22494   if test X"$HAVECRYPTO" = X"yes"; then
22495
22496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22497 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22498 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22499   $as_echo_n "(cached) " >&6
22500 else
22501   ac_check_lib_save_LIBS=$LIBS
22502 LIBS="-lssl  $LIBS"
22503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22504 /* end confdefs.h.  */
22505
22506
22507 #ifdef __cplusplus
22508 extern "C"
22509 #endif
22510 char SSL_connect ();
22511 int main (void)
22512 {
22513 return SSL_connect ();
22514  ;
22515  return 0;
22516 }
22517 _ACEOF
22518 if ac_fn_c_try_link "$LINENO"; then :
22519   ac_cv_lib_ssl_SSL_connect=yes
22520 else
22521   ac_cv_lib_ssl_SSL_connect=no
22522 fi
22523 rm -f core conftest.err conftest.$ac_objext \
22524     conftest$ac_exeext conftest.$ac_ext
22525 LIBS=$ac_check_lib_save_LIBS
22526 fi
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22528 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22529 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22530   cat >>confdefs.h <<_ACEOF
22531 #define HAVE_LIBSSL 1
22532 _ACEOF
22533
22534   LIBS="-lssl $LIBS"
22535
22536 fi
22537
22538
22539     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22540                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22541 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22542         OLIBS=$LIBS
22543         LIBS="-lRSAglue -lrsaref $LIBS"
22544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22545 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22546 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22547   $as_echo_n "(cached) " >&6
22548 else
22549   ac_check_lib_save_LIBS=$LIBS
22550 LIBS="-lssl  $LIBS"
22551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22552 /* end confdefs.h.  */
22553
22554
22555 #ifdef __cplusplus
22556 extern "C"
22557 #endif
22558 char SSL_connect ();
22559 int main (void)
22560 {
22561 return SSL_connect ();
22562  ;
22563  return 0;
22564 }
22565 _ACEOF
22566 if ac_fn_c_try_link "$LINENO"; then :
22567   ac_cv_lib_ssl_SSL_connect=yes
22568 else
22569   ac_cv_lib_ssl_SSL_connect=no
22570 fi
22571 rm -f core conftest.err conftest.$ac_objext \
22572     conftest$ac_exeext conftest.$ac_ext
22573 LIBS=$ac_check_lib_save_LIBS
22574 fi
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22576 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22577 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22578   cat >>confdefs.h <<_ACEOF
22579 #define HAVE_LIBSSL 1
22580 _ACEOF
22581
22582   LIBS="-lssl $LIBS"
22583
22584 fi
22585
22586         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22587                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22588 $as_echo "no" >&6; }
22589             LIBS=$OLIBS
22590         else
22591             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22592 $as_echo "yes" >&6; }
22593         fi
22594
22595     else
22596
22597             for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22598                        openssl/pem.h openssl/ssl.h openssl/err.h
22599 do :
22600   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22601 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22602 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22603   cat >>confdefs.h <<_ACEOF
22604 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22605 _ACEOF
22606  ssl_msg="OpenSSL"
22607         test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22608         OPENSSL_ENABLED=1
22609
22610 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22611
22612 fi
22613
22614 done
22615
22616
22617       if test $ac_cv_header_openssl_x509_h = no; then
22618                                 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22619 do :
22620   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22621 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22622 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22623   cat >>confdefs.h <<_ACEOF
22624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22625 _ACEOF
22626
22627 fi
22628
22629 done
22630
22631
22632         if test $ac_cv_header_x509_h = yes &&
22633            test $ac_cv_header_crypto_h = yes &&
22634            test $ac_cv_header_ssl_h = yes; then
22635                     ssl_msg="OpenSSL"
22636           OPENSSL_ENABLED=1
22637         fi
22638       fi
22639     fi
22640
22641     if test X"$OPENSSL_ENABLED" != X"1"; then
22642        LIBS="$CLEANLIBS"
22643     fi
22644
22645     if test X"$OPT_SSL" != Xoff &&
22646        test "$OPENSSL_ENABLED" != "1"; then
22647       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22648     fi
22649   fi
22650
22651   if test X"$OPENSSL_ENABLED" = X"1"; then
22652             ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22653 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22654
22655                 for ac_header in openssl/engine.h
22656 do :
22657   ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22658 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22659   cat >>confdefs.h <<_ACEOF
22660 #define HAVE_OPENSSL_ENGINE_H 1
22661 _ACEOF
22662
22663 fi
22664
22665 done
22666
22667                 for ac_func in ENGINE_load_builtin_engines
22668 do :
22669   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22670 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22671 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22672   cat >>confdefs.h <<_ACEOF
22673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22674 _ACEOF
22675
22676 fi
22677 done
22678
22679
22680 fi
22681
22682
22683
22684     for ac_func in RAND_egd \
22685                     ENGINE_cleanup \
22686                     SSL_get_shutdown \
22687                     SSLv2_client_method
22688 do :
22689   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22690 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22691 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22692   cat >>confdefs.h <<_ACEOF
22693 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22694 _ACEOF
22695
22696 fi
22697 done
22698
22699
22700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22701 $as_echo_n "checking for BoringSSL... " >&6; }
22702     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22703 /* end confdefs.h.  */
22704
22705
22706                 #include <openssl/base.h>
22707
22708 int main (void)
22709 {
22710
22711                 #ifndef OPENSSL_IS_BORINGSSL
22712                 #error not boringssl
22713                 #endif
22714
22715  ;
22716  return 0;
22717 }
22718
22719 _ACEOF
22720 if ac_fn_c_try_compile "$LINENO"; then :
22721
22722         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22723 $as_echo "yes" >&6; }
22724
22725 cat >>confdefs.h <<_ACEOF
22726 #define HAVE_BORINGSSL 1
22727 _ACEOF
22728
22729         ssl_msg="BoringSSL"
22730
22731 else
22732
22733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22734 $as_echo "no" >&6; }
22735
22736 fi
22737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22738
22739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22740 $as_echo_n "checking for libressl... " >&6; }
22741     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22742 /* end confdefs.h.  */
22743
22744
22745 #include <openssl/opensslv.h>
22746
22747 int main (void)
22748 {
22749
22750         int dummy = LIBRESSL_VERSION_NUMBER;
22751
22752  ;
22753  return 0;
22754 }
22755
22756 _ACEOF
22757 if ac_fn_c_try_compile "$LINENO"; then :
22758
22759       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22760 $as_echo "yes" >&6; }
22761
22762 cat >>confdefs.h <<_ACEOF
22763 #define HAVE_LIBRESSL 1
22764 _ACEOF
22765
22766       ssl_msg="libressl"
22767
22768 else
22769
22770       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22771 $as_echo "no" >&6; }
22772
22773 fi
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22775   fi
22776
22777   if test "$OPENSSL_ENABLED" = "1"; then
22778     if test -n "$LIB_OPENSSL"; then
22779                             if test "x$cross_compiling" != "xyes"; then
22780          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
22781          export LD_LIBRARY_PATH
22782          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
22783 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
22784        fi
22785     fi
22786
22787   #
22788
22789   #
22790   tst_api="unknown"
22791   #
22792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22793 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22794
22795     OLDCPPFLAGS=$CPPFLAGS
22796   # CPPPFLAG comes from CURL_CPP_P
22797   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22798       if test -z "$SED"; then
22799     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22800   fi
22801   if test -z "$GREP"; then
22802     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22803   fi
22804
22805   tmp_exp=""
22806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22807 /* end confdefs.h.  */
22808
22809
22810 #   ifdef USE_OPENSSL
22811 #     include <openssl/crypto.h>
22812 #   else
22813 #     include <crypto.h>
22814 #   endif
22815
22816 #ifdef OPENSSL_VERSION_NUMBER
22817 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22818 #endif
22819
22820
22821 _ACEOF
22822 if ac_fn_c_try_cpp "$LINENO"; then :
22823
22824     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22825       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22826       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22827       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22828     if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22829       tmp_exp=""
22830     fi
22831
22832 fi
22833 rm -f conftest.err conftest.i conftest.$ac_ext
22834   if test -z "$tmp_exp"; then
22835     curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22836
22837   else
22838     curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22839     curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22840
22841   fi
22842       CPPFLAGS=$OLDCPPFLAGS
22843
22844   if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22845     tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22846     case "x$tst_verlen" in
22847       x6)
22848         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22849         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22850         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22851         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22852         ;;
22853       x11|x10)
22854         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22855         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22856         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22857         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22858         ;;
22859       *)
22860         tst_api="unknown"
22861         ;;
22862     esac
22863     case $tst_api in
22864       0x110) tst_show="1.1.0" ;;
22865       0x102) tst_show="1.0.2" ;;
22866       0x101) tst_show="1.0.1" ;;
22867       0x100) tst_show="1.0.0" ;;
22868       0x099) tst_show="0.9.9" ;;
22869       0x098) tst_show="0.9.8" ;;
22870       0x097) tst_show="0.9.7" ;;
22871       0x096) tst_show="0.9.6" ;;
22872       0x095) tst_show="0.9.5" ;;
22873       0x094) tst_show="0.9.4" ;;
22874       0x093) tst_show="0.9.3" ;;
22875       0x092) tst_show="0.9.2" ;;
22876       0x091) tst_show="0.9.1" ;;
22877       *)     tst_show="unknown" ;;
22878     esac
22879     tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22880   else
22881     tst_show="unknown"
22882   fi
22883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22884 $as_echo "$tst_show" >&6; }
22885   #
22886   curl_openssl_api_headers=$tst_api
22887
22888
22889   #
22890   tst_api="unknown"
22891   #
22892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22893 $as_echo_n "checking for OpenSSL library version... " >&6; }
22894   if test "$tst_api" = "unknown"; then
22895     case $host in
22896       *-*-vms*)
22897         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22898 /* end confdefs.h.  */
22899
22900
22901 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22902 #ifdef __STDC__
22903 # include <limits.h>
22904 #else
22905 # include <assert.h>
22906 #endif
22907 #undef SSL_CTX_set_not_resumbl_sess_cb
22908 #ifdef __cplusplus
22909 extern "C"
22910 #endif
22911 char SSL_CTX_set_not_resumbl_sess_cb ();
22912 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22913 choke me
22914 #endif
22915
22916 int main (void)
22917 {
22918 return SSL_CTX_set_not_resumbl_sess_cb ();
22919  ;
22920  return 0;
22921 }
22922
22923 _ACEOF
22924 if ac_fn_c_try_link "$LINENO"; then :
22925
22926           tst_api="0x110"
22927
22928 fi
22929 rm -f core conftest.err conftest.$ac_objext \
22930     conftest$ac_exeext conftest.$ac_ext
22931         ;;
22932       *)
22933         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22934 /* end confdefs.h.  */
22935
22936
22937 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22938 #ifdef __STDC__
22939 # include <limits.h>
22940 #else
22941 # include <assert.h>
22942 #endif
22943 #undef SSL_CTX_set_not_resumable_session_callback
22944 #ifdef __cplusplus
22945 extern "C"
22946 #endif
22947 char SSL_CTX_set_not_resumable_session_callback ();
22948 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22949 choke me
22950 #endif
22951
22952 int main (void)
22953 {
22954 return SSL_CTX_set_not_resumable_session_callback ();
22955  ;
22956  return 0;
22957 }
22958
22959 _ACEOF
22960 if ac_fn_c_try_link "$LINENO"; then :
22961
22962           tst_api="0x110"
22963
22964 fi
22965 rm -f core conftest.err conftest.$ac_objext \
22966     conftest$ac_exeext conftest.$ac_ext
22967         ;;
22968     esac
22969   fi
22970   if test "$tst_api" = "unknown"; then
22971     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22972 /* end confdefs.h.  */
22973
22974
22975 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
22976 #ifdef __STDC__
22977 # include <limits.h>
22978 #else
22979 # include <assert.h>
22980 #endif
22981 #undef SSL_CONF_CTX_new
22982 #ifdef __cplusplus
22983 extern "C"
22984 #endif
22985 char SSL_CONF_CTX_new ();
22986 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
22987 choke me
22988 #endif
22989
22990 int main (void)
22991 {
22992 return SSL_CONF_CTX_new ();
22993  ;
22994  return 0;
22995 }
22996
22997 _ACEOF
22998 if ac_fn_c_try_link "$LINENO"; then :
22999
23000       tst_api="0x102"
23001
23002 fi
23003 rm -f core conftest.err conftest.$ac_objext \
23004     conftest$ac_exeext conftest.$ac_ext
23005   fi
23006   if test "$tst_api" = "unknown"; then
23007     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23008 /* end confdefs.h.  */
23009
23010
23011 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23012 #ifdef __STDC__
23013 # include <limits.h>
23014 #else
23015 # include <assert.h>
23016 #endif
23017 #undef SSL_renegotiate_abbreviated
23018 #ifdef __cplusplus
23019 extern "C"
23020 #endif
23021 char SSL_renegotiate_abbreviated ();
23022 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23023 choke me
23024 #endif
23025
23026 int main (void)
23027 {
23028 return SSL_renegotiate_abbreviated ();
23029  ;
23030  return 0;
23031 }
23032
23033 _ACEOF
23034 if ac_fn_c_try_link "$LINENO"; then :
23035
23036       tst_api="0x101"
23037
23038 fi
23039 rm -f core conftest.err conftest.$ac_objext \
23040     conftest$ac_exeext conftest.$ac_ext
23041   fi
23042   if test "$tst_api" = "unknown"; then
23043     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23044 /* end confdefs.h.  */
23045
23046
23047 #define OBJ_add_sigid innocuous_OBJ_add_sigid
23048 #ifdef __STDC__
23049 # include <limits.h>
23050 #else
23051 # include <assert.h>
23052 #endif
23053 #undef OBJ_add_sigid
23054 #ifdef __cplusplus
23055 extern "C"
23056 #endif
23057 char OBJ_add_sigid ();
23058 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23059 choke me
23060 #endif
23061
23062 int main (void)
23063 {
23064 return OBJ_add_sigid ();
23065  ;
23066  return 0;
23067 }
23068
23069 _ACEOF
23070 if ac_fn_c_try_link "$LINENO"; then :
23071
23072       tst_api="0x100"
23073
23074 fi
23075 rm -f core conftest.err conftest.$ac_objext \
23076     conftest$ac_exeext conftest.$ac_ext
23077   fi
23078   if test "$tst_api" = "unknown"; then
23079     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23080 /* end confdefs.h.  */
23081
23082
23083 #define ERR_set_mark innocuous_ERR_set_mark
23084 #ifdef __STDC__
23085 # include <limits.h>
23086 #else
23087 # include <assert.h>
23088 #endif
23089 #undef ERR_set_mark
23090 #ifdef __cplusplus
23091 extern "C"
23092 #endif
23093 char ERR_set_mark ();
23094 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23095 choke me
23096 #endif
23097
23098 int main (void)
23099 {
23100 return ERR_set_mark ();
23101  ;
23102  return 0;
23103 }
23104
23105 _ACEOF
23106 if ac_fn_c_try_link "$LINENO"; then :
23107
23108       tst_api="0x098"
23109
23110 fi
23111 rm -f core conftest.err conftest.$ac_objext \
23112     conftest$ac_exeext conftest.$ac_ext
23113   fi
23114   if test "$tst_api" = "unknown"; then
23115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23116 /* end confdefs.h.  */
23117
23118
23119 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23120 #ifdef __STDC__
23121 # include <limits.h>
23122 #else
23123 # include <assert.h>
23124 #endif
23125 #undef ERR_peek_last_error
23126 #ifdef __cplusplus
23127 extern "C"
23128 #endif
23129 char ERR_peek_last_error ();
23130 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23131 choke me
23132 #endif
23133
23134 int main (void)
23135 {
23136 return ERR_peek_last_error ();
23137  ;
23138  return 0;
23139 }
23140
23141 _ACEOF
23142 if ac_fn_c_try_link "$LINENO"; then :
23143
23144       tst_api="0x097"
23145
23146 fi
23147 rm -f core conftest.err conftest.$ac_objext \
23148     conftest$ac_exeext conftest.$ac_ext
23149   fi
23150   if test "$tst_api" = "unknown"; then
23151     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23152 /* end confdefs.h.  */
23153
23154
23155 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23156 #ifdef __STDC__
23157 # include <limits.h>
23158 #else
23159 # include <assert.h>
23160 #endif
23161 #undef c2i_ASN1_OBJECT
23162 #ifdef __cplusplus
23163 extern "C"
23164 #endif
23165 char c2i_ASN1_OBJECT ();
23166 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23167 choke me
23168 #endif
23169
23170 int main (void)
23171 {
23172 return c2i_ASN1_OBJECT ();
23173  ;
23174  return 0;
23175 }
23176
23177 _ACEOF
23178 if ac_fn_c_try_link "$LINENO"; then :
23179
23180       tst_api="0x096"
23181
23182 fi
23183 rm -f core conftest.err conftest.$ac_objext \
23184     conftest$ac_exeext conftest.$ac_ext
23185   fi
23186   if test "$tst_api" = "unknown"; then
23187     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23188 /* end confdefs.h.  */
23189
23190
23191 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23192 #ifdef __STDC__
23193 # include <limits.h>
23194 #else
23195 # include <assert.h>
23196 #endif
23197 #undef SSL_CTX_set_purpose
23198 #ifdef __cplusplus
23199 extern "C"
23200 #endif
23201 char SSL_CTX_set_purpose ();
23202 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23203 choke me
23204 #endif
23205
23206 int main (void)
23207 {
23208 return SSL_CTX_set_purpose ();
23209  ;
23210  return 0;
23211 }
23212
23213 _ACEOF
23214 if ac_fn_c_try_link "$LINENO"; then :
23215
23216       tst_api="0x095"
23217
23218 fi
23219 rm -f core conftest.err conftest.$ac_objext \
23220     conftest$ac_exeext conftest.$ac_ext
23221   fi
23222   if test "$tst_api" = "unknown"; then
23223     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23224 /* end confdefs.h.  */
23225
23226
23227 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23228 #ifdef __STDC__
23229 # include <limits.h>
23230 #else
23231 # include <assert.h>
23232 #endif
23233 #undef OBJ_obj2txt
23234 #ifdef __cplusplus
23235 extern "C"
23236 #endif
23237 char OBJ_obj2txt ();
23238 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23239 choke me
23240 #endif
23241
23242 int main (void)
23243 {
23244 return OBJ_obj2txt ();
23245  ;
23246  return 0;
23247 }
23248
23249 _ACEOF
23250 if ac_fn_c_try_link "$LINENO"; then :
23251
23252       tst_api="0x094"
23253
23254 fi
23255 rm -f core conftest.err conftest.$ac_objext \
23256     conftest$ac_exeext conftest.$ac_ext
23257   fi
23258   if test "$tst_api" = "unknown"; then
23259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23260 /* end confdefs.h.  */
23261
23262
23263 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23264 #ifdef __STDC__
23265 # include <limits.h>
23266 #else
23267 # include <assert.h>
23268 #endif
23269 #undef SSL_get_verify_depth
23270 #ifdef __cplusplus
23271 extern "C"
23272 #endif
23273 char SSL_get_verify_depth ();
23274 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23275 choke me
23276 #endif
23277
23278 int main (void)
23279 {
23280 return SSL_get_verify_depth ();
23281  ;
23282  return 0;
23283 }
23284
23285 _ACEOF
23286 if ac_fn_c_try_link "$LINENO"; then :
23287
23288       tst_api="0x093"
23289
23290 fi
23291 rm -f core conftest.err conftest.$ac_objext \
23292     conftest$ac_exeext conftest.$ac_ext
23293   fi
23294   if test "$tst_api" = "unknown"; then
23295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23296 /* end confdefs.h.  */
23297
23298
23299 #define SSL_library_init innocuous_SSL_library_init
23300 #ifdef __STDC__
23301 # include <limits.h>
23302 #else
23303 # include <assert.h>
23304 #endif
23305 #undef SSL_library_init
23306 #ifdef __cplusplus
23307 extern "C"
23308 #endif
23309 char SSL_library_init ();
23310 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23311 choke me
23312 #endif
23313
23314 int main (void)
23315 {
23316 return SSL_library_init ();
23317  ;
23318  return 0;
23319 }
23320
23321 _ACEOF
23322 if ac_fn_c_try_link "$LINENO"; then :
23323
23324       tst_api="0x092"
23325
23326 fi
23327 rm -f core conftest.err conftest.$ac_objext \
23328     conftest$ac_exeext conftest.$ac_ext
23329   fi
23330   if test "$tst_api" = "unknown"; then
23331     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23332 /* end confdefs.h.  */
23333
23334
23335 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23336 #ifdef __STDC__
23337 # include <limits.h>
23338 #else
23339 # include <assert.h>
23340 #endif
23341 #undef SSL_CTX_set_cipher_list
23342 #ifdef __cplusplus
23343 extern "C"
23344 #endif
23345 char SSL_CTX_set_cipher_list ();
23346 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23347 choke me
23348 #endif
23349
23350 int main (void)
23351 {
23352 return SSL_CTX_set_cipher_list ();
23353  ;
23354  return 0;
23355 }
23356
23357 _ACEOF
23358 if ac_fn_c_try_link "$LINENO"; then :
23359
23360       tst_api="0x091"
23361
23362 fi
23363 rm -f core conftest.err conftest.$ac_objext \
23364     conftest$ac_exeext conftest.$ac_ext
23365   fi
23366   case $tst_api in
23367     0x110) tst_show="1.1.0" ;;
23368     0x102) tst_show="1.0.2" ;;
23369     0x101) tst_show="1.0.1" ;;
23370     0x100) tst_show="1.0.0" ;;
23371     0x099) tst_show="0.9.9" ;;
23372     0x098) tst_show="0.9.8" ;;
23373     0x097) tst_show="0.9.7" ;;
23374     0x096) tst_show="0.9.6" ;;
23375     0x095) tst_show="0.9.5" ;;
23376     0x094) tst_show="0.9.4" ;;
23377     0x093) tst_show="0.9.3" ;;
23378     0x092) tst_show="0.9.2" ;;
23379     0x091) tst_show="0.9.1" ;;
23380     *)     tst_show="unknown" ;;
23381   esac
23382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23383 $as_echo "$tst_show" >&6; }
23384   #
23385   curl_openssl_api_library=$tst_api
23386
23387   #
23388   tst_match="yes"
23389   #
23390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23391 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23392   if test "$curl_openssl_api_headers" = "unknown" ||
23393     test "$curl_openssl_api_library" = "unknown"; then
23394     tst_match="fail"
23395     tst_warns="Can not compare OpenSSL headers and library versions."
23396   elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23397     tst_match="no"
23398     tst_warns="OpenSSL headers and library versions do not match."
23399   fi
23400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23401 $as_echo "$tst_match" >&6; }
23402   if test "$tst_match" != "yes"; then
23403     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23404 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23405   fi
23406
23407   fi
23408
23409   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23410 fi
23411
23412
23413 if test X"$OPENSSL_ENABLED" = X"1"; then
23414
23415 # Check whether --with-egd-socket was given.
23416 if test "${with_egd_socket+set}" = set; then :
23417   withval=$with_egd_socket;  EGD_SOCKET="$withval"
23418
23419 fi
23420
23421   if test -n "$EGD_SOCKET" ; then
23422
23423 cat >>confdefs.h <<_ACEOF
23424 #define EGD_SOCKET "$EGD_SOCKET"
23425 _ACEOF
23426
23427   fi
23428
23429
23430 # Check whether --with-random was given.
23431 if test "${with_random+set}" = set; then :
23432   withval=$with_random;  RANDOM_FILE="$withval"
23433 else
23434
23435           if test x$cross_compiling != xyes; then
23436                         as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23438 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23439 if eval \${$as_ac_File+:} false; then :
23440   $as_echo_n "(cached) " >&6
23441 else
23442   test "$cross_compiling" = yes &&
23443   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23444 if test -r ""/dev/urandom""; then
23445   eval "$as_ac_File=yes"
23446 else
23447   eval "$as_ac_File=no"
23448 fi
23449 fi
23450 eval ac_res=\$$as_ac_File
23451                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23452 $as_echo "$ac_res" >&6; }
23453 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23454    RANDOM_FILE="/dev/urandom"
23455 fi
23456
23457           else
23458             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23459 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23460           fi
23461
23462
23463 fi
23464
23465   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23466
23467
23468 cat >>confdefs.h <<_ACEOF
23469 #define RANDOM_FILE "$RANDOM_FILE"
23470 _ACEOF
23471
23472   fi
23473 fi
23474
23475 if test "$OPENSSL_ENABLED" = "1"; then
23476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23477 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23478 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23479   $as_echo_n "(cached) " >&6
23480 else
23481   ac_check_lib_save_LIBS=$LIBS
23482 LIBS="-lcrypto  $LIBS"
23483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23484 /* end confdefs.h.  */
23485
23486
23487 #ifdef __cplusplus
23488 extern "C"
23489 #endif
23490 char SRP_Calc_client_key ();
23491 int main (void)
23492 {
23493 return SRP_Calc_client_key ();
23494  ;
23495  return 0;
23496 }
23497 _ACEOF
23498 if ac_fn_c_try_link "$LINENO"; then :
23499   ac_cv_lib_crypto_SRP_Calc_client_key=yes
23500 else
23501   ac_cv_lib_crypto_SRP_Calc_client_key=no
23502 fi
23503 rm -f core conftest.err conftest.$ac_objext \
23504     conftest$ac_exeext conftest.$ac_ext
23505 LIBS=$ac_check_lib_save_LIBS
23506 fi
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23508 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23509 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23510
23511
23512 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23513
23514      HAVE_OPENSSL_SRP=1
23515
23516
23517 fi
23518
23519 fi
23520
23521
23522 OPT_GNUTLS=no
23523
23524
23525 # Check whether --with-gnutls was given.
23526 if test "${with_gnutls+set}" = set; then :
23527   withval=$with_gnutls; OPT_GNUTLS=$withval
23528 fi
23529
23530
23531 if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23532   ssl_msg=
23533
23534   if test X"$OPT_GNUTLS" != Xno; then
23535
23536     addld=""
23537     addlib=""
23538     gtlslib=""
23539     version=""
23540     addcflags=""
23541
23542     if test "x$OPT_GNUTLS" = "xyes"; then
23543
23544     if test -n "$PKG_CONFIG"; then
23545       PKGCONFIG="$PKG_CONFIG"
23546     else
23547       if test -n "$ac_tool_prefix"; then
23548   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23549 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23551 $as_echo_n "checking for $ac_word... " >&6; }
23552 if ${ac_cv_path_PKGCONFIG+:} false; then :
23553   $as_echo_n "(cached) " >&6
23554 else
23555   case $PKGCONFIG in
23556   [\\/]* | ?:[\\/]*)
23557   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23558   ;;
23559   *)
23560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23561 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23562 for as_dir in $as_dummy
23563 do
23564   IFS=$as_save_IFS
23565   test -z "$as_dir" && as_dir=.
23566     for ac_exec_ext in '' $ac_executable_extensions; do
23567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23568     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23570     break 2
23571   fi
23572 done
23573   done
23574 IFS=$as_save_IFS
23575
23576   ;;
23577 esac
23578 fi
23579 PKGCONFIG=$ac_cv_path_PKGCONFIG
23580 if test -n "$PKGCONFIG"; then
23581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23582 $as_echo "$PKGCONFIG" >&6; }
23583 else
23584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23585 $as_echo "no" >&6; }
23586 fi
23587
23588
23589 fi
23590 if test -z "$ac_cv_path_PKGCONFIG"; then
23591   ac_pt_PKGCONFIG=$PKGCONFIG
23592   # Extract the first word of "pkg-config", so it can be a program name with args.
23593 set dummy pkg-config; ac_word=$2
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23595 $as_echo_n "checking for $ac_word... " >&6; }
23596 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23597   $as_echo_n "(cached) " >&6
23598 else
23599   case $ac_pt_PKGCONFIG in
23600   [\\/]* | ?:[\\/]*)
23601   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23602   ;;
23603   *)
23604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23605 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23606 for as_dir in $as_dummy
23607 do
23608   IFS=$as_save_IFS
23609   test -z "$as_dir" && as_dir=.
23610     for ac_exec_ext in '' $ac_executable_extensions; do
23611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23612     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23614     break 2
23615   fi
23616 done
23617   done
23618 IFS=$as_save_IFS
23619
23620   ;;
23621 esac
23622 fi
23623 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23624 if test -n "$ac_pt_PKGCONFIG"; then
23625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23626 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23627 else
23628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23629 $as_echo "no" >&6; }
23630 fi
23631
23632   if test "x$ac_pt_PKGCONFIG" = x; then
23633     PKGCONFIG="no"
23634   else
23635     case $cross_compiling:$ac_tool_warned in
23636 yes:)
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23639 ac_tool_warned=yes ;;
23640 esac
23641     PKGCONFIG=$ac_pt_PKGCONFIG
23642   fi
23643 else
23644   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23645 fi
23646
23647     fi
23648
23649     if test "x$PKGCONFIG" != "xno"; then
23650       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23651 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23652             itexists=`
23653     if test -n ""; then
23654       PKG_CONFIG_LIBDIR=""
23655       export PKG_CONFIG_LIBDIR
23656     fi
23657          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23658
23659       if test -z "$itexists"; then
23660                         PKGCONFIG="no"
23661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23662 $as_echo "no" >&6; }
23663       else
23664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23665 $as_echo "found" >&6; }
23666       fi
23667     fi
23668
23669
23670       if test "$PKGCONFIG" != "no" ; then
23671         addlib=`$PKGCONFIG --libs-only-l gnutls`
23672         addld=`$PKGCONFIG --libs-only-L gnutls`
23673         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23674         version=`$PKGCONFIG --modversion gnutls`
23675         gtlslib=`echo $addld | $SED -e 's/-L//'`
23676       else
23677                         check=`libgnutls-config --version 2>/dev/null`
23678         if test -n "$check"; then
23679           addlib=`libgnutls-config --libs`
23680           addcflags=`libgnutls-config --cflags`
23681           version=`libgnutls-config --version`
23682           gtlslib=`libgnutls-config --prefix`/lib$libsuff
23683         fi
23684       fi
23685     else
23686                   cfg=$OPT_GNUTLS/bin/libgnutls-config
23687       check=`$cfg --version 2>/dev/null`
23688       if test -n "$check"; then
23689         addlib=`$cfg --libs`
23690         addcflags=`$cfg --cflags`
23691         version=`$cfg --version`
23692         gtlslib=`$cfg --prefix`/lib$libsuff
23693       else
23694                 addlib=-lgnutls
23695         addld=-L$OPT_GNUTLS/lib$libsuff
23696         addcflags=-I$OPT_GNUTLS/include
23697         version="" # we just don't know
23698         gtlslib=$OPT_GNUTLS/lib$libsuff
23699       fi
23700     fi
23701
23702     if test -z "$version"; then
23703             version="unknown"
23704     fi
23705
23706     if test -n "$addlib"; then
23707
23708       CLEANLIBS="$LIBS"
23709       CLEANCPPFLAGS="$CPPFLAGS"
23710       CLEANLDFLAGS="$LDFLAGS"
23711
23712       LIBS="$addlib $LIBS"
23713       LDFLAGS="$LDFLAGS $addld"
23714       if test "$addcflags" != "-I/usr/include"; then
23715          CPPFLAGS="$CPPFLAGS $addcflags"
23716       fi
23717
23718       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23719 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23720 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23721   $as_echo_n "(cached) " >&6
23722 else
23723   ac_check_lib_save_LIBS=$LIBS
23724 LIBS="-lgnutls  $LIBS"
23725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23726 /* end confdefs.h.  */
23727
23728
23729 #ifdef __cplusplus
23730 extern "C"
23731 #endif
23732 char gnutls_check_version ();
23733 int main (void)
23734 {
23735 return gnutls_check_version ();
23736  ;
23737  return 0;
23738 }
23739 _ACEOF
23740 if ac_fn_c_try_link "$LINENO"; then :
23741   ac_cv_lib_gnutls_gnutls_check_version=yes
23742 else
23743   ac_cv_lib_gnutls_gnutls_check_version=no
23744 fi
23745 rm -f core conftest.err conftest.$ac_objext \
23746     conftest$ac_exeext conftest.$ac_ext
23747 LIBS=$ac_check_lib_save_LIBS
23748 fi
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23750 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23751 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23752
23753
23754 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
23755
23756        USE_GNUTLS=1
23757
23758        GNUTLS_ENABLED=1
23759        USE_GNUTLS="yes"
23760        ssl_msg="GnuTLS"
23761        test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
23762
23763 else
23764
23765          LIBS="$CLEANLIBS"
23766          CPPFLAGS="$CLEANCPPFLAGS"
23767
23768 fi
23769
23770
23771       if test "x$USE_GNUTLS" = "xyes"; then
23772         { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23773 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
23774
23775         if test -n "$gtlslib"; then
23776                                                   if test "x$cross_compiling" != "xyes"; then
23777             LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
23778             export LD_LIBRARY_PATH
23779             { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
23780 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
23781           fi
23782         fi
23783         for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
23784 do :
23785   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23786 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23787 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23788   cat >>confdefs.h <<_ACEOF
23789 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23790 _ACEOF
23791
23792 fi
23793 done
23794
23795       fi
23796
23797     fi
23798
23799   fi
23800   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23801 fi
23802
23803
23804 if test "$GNUTLS_ENABLED" = "1"; then
23805   USE_GNUTLS_NETTLE=
23806   # First check if we can detect either crypto library via transitive linking
23807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23808 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23809 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23810   $as_echo_n "(cached) " >&6
23811 else
23812   ac_check_lib_save_LIBS=$LIBS
23813 LIBS="-lgnutls  $LIBS"
23814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23815 /* end confdefs.h.  */
23816
23817
23818 #ifdef __cplusplus
23819 extern "C"
23820 #endif
23821 char nettle_MD5Init ();
23822 int main (void)
23823 {
23824 return nettle_MD5Init ();
23825  ;
23826  return 0;
23827 }
23828 _ACEOF
23829 if ac_fn_c_try_link "$LINENO"; then :
23830   ac_cv_lib_gnutls_nettle_MD5Init=yes
23831 else
23832   ac_cv_lib_gnutls_nettle_MD5Init=no
23833 fi
23834 rm -f core conftest.err conftest.$ac_objext \
23835     conftest$ac_exeext conftest.$ac_ext
23836 LIBS=$ac_check_lib_save_LIBS
23837 fi
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
23839 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
23840 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
23841    USE_GNUTLS_NETTLE=1
23842 fi
23843
23844   if test "$USE_GNUTLS_NETTLE" = ""; then
23845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23846 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23847 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23848   $as_echo_n "(cached) " >&6
23849 else
23850   ac_check_lib_save_LIBS=$LIBS
23851 LIBS="-lgnutls  $LIBS"
23852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23853 /* end confdefs.h.  */
23854
23855
23856 #ifdef __cplusplus
23857 extern "C"
23858 #endif
23859 char gcry_control ();
23860 int main (void)
23861 {
23862 return gcry_control ();
23863  ;
23864  return 0;
23865 }
23866 _ACEOF
23867 if ac_fn_c_try_link "$LINENO"; then :
23868   ac_cv_lib_gnutls_gcry_control=yes
23869 else
23870   ac_cv_lib_gnutls_gcry_control=no
23871 fi
23872 rm -f core conftest.err conftest.$ac_objext \
23873     conftest$ac_exeext conftest.$ac_ext
23874 LIBS=$ac_check_lib_save_LIBS
23875 fi
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23877 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23878 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23879    USE_GNUTLS_NETTLE=0
23880 fi
23881
23882   fi
23883   # If not, try linking directly to both of them to see if they are available
23884   if test "$USE_GNUTLS_NETTLE" = ""; then
23885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23886 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23887 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23888   $as_echo_n "(cached) " >&6
23889 else
23890   ac_check_lib_save_LIBS=$LIBS
23891 LIBS="-lnettle  $LIBS"
23892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23893 /* end confdefs.h.  */
23894
23895
23896 #ifdef __cplusplus
23897 extern "C"
23898 #endif
23899 char nettle_MD5Init ();
23900 int main (void)
23901 {
23902 return nettle_MD5Init ();
23903  ;
23904  return 0;
23905 }
23906 _ACEOF
23907 if ac_fn_c_try_link "$LINENO"; then :
23908   ac_cv_lib_nettle_nettle_MD5Init=yes
23909 else
23910   ac_cv_lib_nettle_nettle_MD5Init=no
23911 fi
23912 rm -f core conftest.err conftest.$ac_objext \
23913     conftest$ac_exeext conftest.$ac_ext
23914 LIBS=$ac_check_lib_save_LIBS
23915 fi
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23917 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23918 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23919    USE_GNUTLS_NETTLE=1
23920 fi
23921
23922   fi
23923   if test "$USE_GNUTLS_NETTLE" = ""; then
23924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23925 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23926 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23927   $as_echo_n "(cached) " >&6
23928 else
23929   ac_check_lib_save_LIBS=$LIBS
23930 LIBS="-lgcrypt  $LIBS"
23931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23932 /* end confdefs.h.  */
23933
23934
23935 #ifdef __cplusplus
23936 extern "C"
23937 #endif
23938 char gcry_control ();
23939 int main (void)
23940 {
23941 return gcry_control ();
23942  ;
23943  return 0;
23944 }
23945 _ACEOF
23946 if ac_fn_c_try_link "$LINENO"; then :
23947   ac_cv_lib_gcrypt_gcry_control=yes
23948 else
23949   ac_cv_lib_gcrypt_gcry_control=no
23950 fi
23951 rm -f core conftest.err conftest.$ac_objext \
23952     conftest$ac_exeext conftest.$ac_ext
23953 LIBS=$ac_check_lib_save_LIBS
23954 fi
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23956 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23957 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23958    USE_GNUTLS_NETTLE=0
23959 fi
23960
23961   fi
23962   if test "$USE_GNUTLS_NETTLE" = ""; then
23963     as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23964   fi
23965   if test "$USE_GNUTLS_NETTLE" = "1"; then
23966
23967 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23968
23969     USE_GNUTLS_NETTLE=1
23970
23971     LIBS="-lnettle $LIBS"
23972   else
23973     LIBS="-lgcrypt $LIBS"
23974   fi
23975 fi
23976
23977 if test "$GNUTLS_ENABLED" = "1"; then
23978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
23979 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
23980 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
23981   $as_echo_n "(cached) " >&6
23982 else
23983   ac_check_lib_save_LIBS=$LIBS
23984 LIBS="-lgnutls  $LIBS"
23985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23986 /* end confdefs.h.  */
23987
23988
23989 #ifdef __cplusplus
23990 extern "C"
23991 #endif
23992 char gnutls_srp_verifier ();
23993 int main (void)
23994 {
23995 return gnutls_srp_verifier ();
23996  ;
23997  return 0;
23998 }
23999 _ACEOF
24000 if ac_fn_c_try_link "$LINENO"; then :
24001   ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24002 else
24003   ac_cv_lib_gnutls_gnutls_srp_verifier=no
24004 fi
24005 rm -f core conftest.err conftest.$ac_objext \
24006     conftest$ac_exeext conftest.$ac_ext
24007 LIBS=$ac_check_lib_save_LIBS
24008 fi
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24010 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24011 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24012
24013
24014 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24015
24016      HAVE_GNUTLS_SRP=1
24017
24018
24019 fi
24020
24021 fi
24022
24023
24024 OPT_POLARSSL=no
24025
24026 _cppflags=$CPPFLAGS
24027 _ldflags=$LDFLAGS
24028
24029 # Check whether --with-polarssl was given.
24030 if test "${with_polarssl+set}" = set; then :
24031   withval=$with_polarssl; OPT_POLARSSL=$withval
24032 fi
24033
24034
24035 if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24036   ssl_msg=
24037
24038   if test X"$OPT_POLARSSL" != Xno; then
24039
24040     if test "$OPT_POLARSSL" = "yes"; then
24041       OPT_POLARSSL=""
24042     fi
24043
24044     if test -z "$OPT_POLARSSL" ; then
24045
24046       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24047 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24048 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24049   $as_echo_n "(cached) " >&6
24050 else
24051   ac_check_lib_save_LIBS=$LIBS
24052 LIBS="-lpolarssl  $LIBS"
24053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24054 /* end confdefs.h.  */
24055
24056
24057 #ifdef __cplusplus
24058 extern "C"
24059 #endif
24060 char havege_init ();
24061 int main (void)
24062 {
24063 return havege_init ();
24064  ;
24065  return 0;
24066 }
24067 _ACEOF
24068 if ac_fn_c_try_link "$LINENO"; then :
24069   ac_cv_lib_polarssl_havege_init=yes
24070 else
24071   ac_cv_lib_polarssl_havege_init=no
24072 fi
24073 rm -f core conftest.err conftest.$ac_objext \
24074     conftest$ac_exeext conftest.$ac_ext
24075 LIBS=$ac_check_lib_save_LIBS
24076 fi
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24078 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24079 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24080
24081
24082 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24083
24084          USE_POLARSSL=1
24085
24086          POLARSSL_ENABLED=1
24087          USE_POLARSSL="yes"
24088          ssl_msg="PolarSSL"
24089          test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24090
24091 fi
24092
24093     fi
24094
24095     addld=""
24096     addlib=""
24097     addcflags=""
24098     polarssllib=""
24099
24100     if test "x$USE_POLARSSL" != "xyes"; then
24101             addld=-L$OPT_POLARSSL/lib$libsuff
24102       addcflags=-I$OPT_POLARSSL/include
24103       polarssllib=$OPT_POLARSSL/lib$libsuff
24104
24105       LDFLAGS="$LDFLAGS $addld"
24106       if test "$addcflags" != "-I/usr/include"; then
24107          CPPFLAGS="$CPPFLAGS $addcflags"
24108       fi
24109
24110       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24111 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24112 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24113   $as_echo_n "(cached) " >&6
24114 else
24115   ac_check_lib_save_LIBS=$LIBS
24116 LIBS="-lpolarssl  $LIBS"
24117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24118 /* end confdefs.h.  */
24119
24120
24121 #ifdef __cplusplus
24122 extern "C"
24123 #endif
24124 char ssl_init ();
24125 int main (void)
24126 {
24127 return ssl_init ();
24128  ;
24129  return 0;
24130 }
24131 _ACEOF
24132 if ac_fn_c_try_link "$LINENO"; then :
24133   ac_cv_lib_polarssl_ssl_init=yes
24134 else
24135   ac_cv_lib_polarssl_ssl_init=no
24136 fi
24137 rm -f core conftest.err conftest.$ac_objext \
24138     conftest$ac_exeext conftest.$ac_ext
24139 LIBS=$ac_check_lib_save_LIBS
24140 fi
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24142 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24143 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24144
24145
24146 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24147
24148        USE_POLARSSL=1
24149
24150        POLARSSL_ENABLED=1
24151        USE_POLARSSL="yes"
24152        ssl_msg="PolarSSL"
24153        test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24154
24155 else
24156
24157          CPPFLAGS=$_cppflags
24158          LDFLAGS=$_ldflags
24159
24160 fi
24161
24162     fi
24163
24164     if test "x$USE_POLARSSL" = "xyes"; then
24165       { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24166 $as_echo "$as_me: detected PolarSSL" >&6;}
24167
24168       LIBS="-lpolarssl $LIBS"
24169
24170       if test -n "$polarssllib"; then
24171                                         if test "x$cross_compiling" != "xyes"; then
24172           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24173           export LD_LIBRARY_PATH
24174           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24175 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24176         fi
24177       fi
24178     fi
24179
24180   fi
24181   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24182 fi
24183
24184
24185 OPT_MBEDTLS=no
24186
24187 _cppflags=$CPPFLAGS
24188 _ldflags=$LDFLAGS
24189
24190 # Check whether --with-mbedtls was given.
24191 if test "${with_mbedtls+set}" = set; then :
24192   withval=$with_mbedtls; OPT_MBEDTLS=$withval
24193 fi
24194
24195
24196 if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24197   ssl_msg=
24198
24199   if test X"$OPT_MBEDTLS" != Xno; then
24200
24201     if test "$OPT_MBEDTLS" = "yes"; then
24202       OPT_MBEDTLS=""
24203     fi
24204
24205     if test -z "$OPT_MBEDTLS" ; then
24206
24207       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24208 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24209 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24210   $as_echo_n "(cached) " >&6
24211 else
24212   ac_check_lib_save_LIBS=$LIBS
24213 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24215 /* end confdefs.h.  */
24216
24217
24218 #ifdef __cplusplus
24219 extern "C"
24220 #endif
24221 char mbedtls_havege_init ();
24222 int main (void)
24223 {
24224 return mbedtls_havege_init ();
24225  ;
24226  return 0;
24227 }
24228 _ACEOF
24229 if ac_fn_c_try_link "$LINENO"; then :
24230   ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24231 else
24232   ac_cv_lib_mbedtls_mbedtls_havege_init=no
24233 fi
24234 rm -f core conftest.err conftest.$ac_objext \
24235     conftest$ac_exeext conftest.$ac_ext
24236 LIBS=$ac_check_lib_save_LIBS
24237 fi
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24239 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24240 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24241
24242
24243 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24244
24245          USE_MBEDTLS=1
24246
24247          MBEDTLS_ENABLED=1
24248          USE_MBEDTLS="yes"
24249          ssl_msg="mbedTLS"
24250          test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24251
24252 fi
24253
24254     fi
24255
24256     addld=""
24257     addlib=""
24258     addcflags=""
24259     mbedtlslib=""
24260
24261     if test "x$USE_MBEDTLS" != "xyes"; then
24262             addld=-L$OPT_MBEDTLS/lib$libsuff
24263       addcflags=-I$OPT_MBEDTLS/include
24264       mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24265
24266       LDFLAGS="$LDFLAGS $addld"
24267       if test "$addcflags" != "-I/usr/include"; then
24268          CPPFLAGS="$CPPFLAGS $addcflags"
24269       fi
24270
24271       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24272 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24273 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24274   $as_echo_n "(cached) " >&6
24275 else
24276   ac_check_lib_save_LIBS=$LIBS
24277 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24279 /* end confdefs.h.  */
24280
24281
24282 #ifdef __cplusplus
24283 extern "C"
24284 #endif
24285 char mbedtls_ssl_init ();
24286 int main (void)
24287 {
24288 return mbedtls_ssl_init ();
24289  ;
24290  return 0;
24291 }
24292 _ACEOF
24293 if ac_fn_c_try_link "$LINENO"; then :
24294   ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24295 else
24296   ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24297 fi
24298 rm -f core conftest.err conftest.$ac_objext \
24299     conftest$ac_exeext conftest.$ac_ext
24300 LIBS=$ac_check_lib_save_LIBS
24301 fi
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24303 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24304 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24305
24306
24307 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24308
24309        USE_MBEDTLS=1
24310
24311        MBEDTLS_ENABLED=1
24312        USE_MBEDTLS="yes"
24313        ssl_msg="mbedTLS"
24314        test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24315
24316 else
24317
24318          CPPFLAGS=$_cppflags
24319          LDFLAGS=$_ldflags
24320
24321 fi
24322
24323     fi
24324
24325     if test "x$USE_MBEDTLS" = "xyes"; then
24326       { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24327 $as_echo "$as_me: detected mbedTLS" >&6;}
24328
24329       LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24330
24331       if test -n "$mbedtlslib"; then
24332                                         if test "x$cross_compiling" != "xyes"; then
24333           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24334           export LD_LIBRARY_PATH
24335           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24336 $as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24337         fi
24338       fi
24339     fi
24340
24341   fi
24342   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24343 fi
24344
24345
24346 OPT_CYASSL=no
24347
24348 _cppflags=$CPPFLAGS
24349 _ldflags=$LDFLAGS
24350
24351 # Check whether --with-cyassl was given.
24352 if test "${with_cyassl+set}" = set; then :
24353   withval=$with_cyassl; OPT_CYASSL=$withval
24354 fi
24355
24356
24357 if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24358   ssl_msg=
24359
24360   if test X"$OPT_CYASSL" != Xno; then
24361
24362     if test "$OPT_CYASSL" = "yes"; then
24363       OPT_CYASSL=""
24364     fi
24365
24366
24367     cyassllibname=cyassl
24368
24369     if test -z "$OPT_CYASSL" ; then
24370
24371       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24372 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24373 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24374   $as_echo_n "(cached) " >&6
24375 else
24376   ac_check_lib_save_LIBS=$LIBS
24377 LIBS="-lcyassl  $LIBS"
24378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24379 /* end confdefs.h.  */
24380
24381
24382 #ifdef __cplusplus
24383 extern "C"
24384 #endif
24385 char CyaSSL_Init ();
24386 int main (void)
24387 {
24388 return CyaSSL_Init ();
24389  ;
24390  return 0;
24391 }
24392 _ACEOF
24393 if ac_fn_c_try_link "$LINENO"; then :
24394   ac_cv_lib_cyassl_CyaSSL_Init=yes
24395 else
24396   ac_cv_lib_cyassl_CyaSSL_Init=no
24397 fi
24398 rm -f core conftest.err conftest.$ac_objext \
24399     conftest$ac_exeext conftest.$ac_ext
24400 LIBS=$ac_check_lib_save_LIBS
24401 fi
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24403 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24404 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24405
24406
24407 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24408
24409          USE_CYASSL=1
24410
24411          CYASSL_ENABLED=1
24412          USE_CYASSL="yes"
24413          ssl_msg="CyaSSL"
24414          test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24415
24416 fi
24417
24418     fi
24419
24420     addld=""
24421     addlib=""
24422     addcflags=""
24423     cyassllib=""
24424
24425     if test "x$USE_CYASSL" != "xyes"; then
24426             addld=-L$OPT_CYASSL/lib$libsuff
24427       addcflags=-I$OPT_CYASSL/include
24428       cyassllib=$OPT_CYASSL/lib$libsuff
24429
24430       LDFLAGS="$LDFLAGS $addld"
24431       if test "$addcflags" != "-I/usr/include"; then
24432          CPPFLAGS="$CPPFLAGS $addcflags"
24433       fi
24434
24435       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24436 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24437 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24438   $as_echo_n "(cached) " >&6
24439 else
24440   ac_check_lib_save_LIBS=$LIBS
24441 LIBS="-lcyassl  $LIBS"
24442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24443 /* end confdefs.h.  */
24444
24445
24446 #ifdef __cplusplus
24447 extern "C"
24448 #endif
24449 char CyaSSL_Init ();
24450 int main (void)
24451 {
24452 return CyaSSL_Init ();
24453  ;
24454  return 0;
24455 }
24456 _ACEOF
24457 if ac_fn_c_try_link "$LINENO"; then :
24458   ac_cv_lib_cyassl_CyaSSL_Init=yes
24459 else
24460   ac_cv_lib_cyassl_CyaSSL_Init=no
24461 fi
24462 rm -f core conftest.err conftest.$ac_objext \
24463     conftest$ac_exeext conftest.$ac_ext
24464 LIBS=$ac_check_lib_save_LIBS
24465 fi
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24467 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24468 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24469
24470
24471 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24472
24473        USE_CYASSL=1
24474
24475        CYASSL_ENABLED=1
24476        USE_CYASSL="yes"
24477        ssl_msg="CyaSSL"
24478        test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24479
24480 else
24481
24482          CPPFLAGS=$_cppflags
24483          LDFLAGS=$_ldflags
24484          cyassllib=""
24485
24486 fi
24487
24488     fi
24489
24490     addld=""
24491     addlib=""
24492     addcflags=""
24493
24494     if test "x$USE_CYASSL" != "xyes"; then
24495             addld=-L$OPT_CYASSL/lib$libsuff
24496       addcflags=-I$OPT_CYASSL/include
24497       cyassllib=$OPT_CYASSL/lib$libsuff
24498
24499       LDFLAGS="$LDFLAGS $addld"
24500       if test "$addcflags" != "-I/usr/include"; then
24501          CPPFLAGS="$CPPFLAGS $addcflags"
24502       fi
24503
24504       cyassllibname=wolfssl
24505       my_ac_save_LIBS="$LIBS"
24506       LIBS="-l$cyassllibname -lm $LIBS"
24507
24508       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24509 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24510       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24511 /* end confdefs.h.  */
24512
24513
24514 /* These aren't needed for detection and confuse WolfSSL.
24515    They are set up properly later if it is detected.  */
24516 #undef SIZEOF_LONG
24517 #undef SIZEOF_LONG_LONG
24518 #include <cyassl/ssl.h>
24519
24520 int main (void)
24521 {
24522
24523           return CyaSSL_Init();
24524
24525  ;
24526  return 0;
24527 }
24528
24529 _ACEOF
24530 if ac_fn_c_try_link "$LINENO"; then :
24531
24532          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24533 $as_echo "yes" >&6; }
24534
24535 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24536
24537          USE_CYASSL=1
24538
24539          CYASSL_ENABLED=1
24540          USE_CYASSL="yes"
24541          ssl_msg="WolfSSL"
24542          test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24543
24544 else
24545
24546          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24547 $as_echo "no" >&6; }
24548          CPPFLAGS=$_cppflags
24549          LDFLAGS=$_ldflags
24550          cyassllib=""
24551
24552 fi
24553 rm -f core conftest.err conftest.$ac_objext \
24554     conftest$ac_exeext conftest.$ac_ext
24555       LIBS="$my_ac_save_LIBS"
24556     fi
24557
24558     if test "x$USE_CYASSL" = "xyes"; then
24559       { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24560 $as_echo "$as_me: detected $cyassllibname" >&6;}
24561
24562             # The cast to long int works around a bug in the HP C Compiler
24563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24565 # This bug is HP SR number 8606223364.
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24567 $as_echo_n "checking size of long long... " >&6; }
24568 if ${ac_cv_sizeof_long_long+:} false; then :
24569   $as_echo_n "(cached) " >&6
24570 else
24571   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
24572
24573 else
24574   if test "$ac_cv_type_long_long" = yes; then
24575      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24577 as_fn_error 77 "cannot compute sizeof (long long)
24578 See \`config.log' for more details" "$LINENO" 5; }
24579    else
24580      ac_cv_sizeof_long_long=0
24581    fi
24582 fi
24583
24584 fi
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24586 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24587
24588
24589
24590 cat >>confdefs.h <<_ACEOF
24591 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24592 _ACEOF
24593
24594
24595
24596             for ac_header in cyassl/options.h
24597 do :
24598   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24599 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24600   cat >>confdefs.h <<_ACEOF
24601 #define HAVE_CYASSL_OPTIONS_H 1
24602 _ACEOF
24603
24604 fi
24605
24606 done
24607
24608
24609             for ac_header in cyassl/error-ssl.h
24610 do :
24611   ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24612 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24613   cat >>confdefs.h <<_ACEOF
24614 #define HAVE_CYASSL_ERROR_SSL_H 1
24615 _ACEOF
24616
24617 fi
24618
24619 done
24620
24621
24622       LIBS="-l$cyassllibname -lm $LIBS"
24623
24624       if test "x$cyassllibname" = "xwolfssl"; then
24625                         for ac_func in wolfSSLv3_client_method \
24626                        wolfSSL_CTX_UseSupportedCurve \
24627                        wolfSSL_get_peer_certificate \
24628                        wolfSSL_UseALPN
24629 do :
24630   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24631 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24632 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24633   cat >>confdefs.h <<_ACEOF
24634 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24635 _ACEOF
24636
24637 fi
24638 done
24639
24640       else
24641                 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24642                        CyaSSL_get_peer_certificate
24643 do :
24644   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24647   cat >>confdefs.h <<_ACEOF
24648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24649 _ACEOF
24650
24651 fi
24652 done
24653
24654       fi
24655
24656       if test -n "$cyassllib"; then
24657                                         if test "x$cross_compiling" != "xyes"; then
24658           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
24659           export LD_LIBRARY_PATH
24660           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
24661 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
24662         fi
24663       fi
24664
24665     fi
24666
24667   fi
24668   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24669 fi
24670
24671
24672 OPT_NSS=no
24673
24674
24675 # Check whether --with-nss was given.
24676 if test "${with_nss+set}" = set; then :
24677   withval=$with_nss; OPT_NSS=$withval
24678 fi
24679
24680
24681 if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
24682   ssl_msg=
24683
24684   if test X"$OPT_NSS" != Xno; then
24685
24686     addld=""
24687     addlib=""
24688     addcflags=""
24689     nssprefix=""
24690     version=""
24691
24692     if test "x$OPT_NSS" = "xyes"; then
24693
24694
24695     if test -n "$PKG_CONFIG"; then
24696       PKGCONFIG="$PKG_CONFIG"
24697     else
24698       if test -n "$ac_tool_prefix"; then
24699   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24700 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24702 $as_echo_n "checking for $ac_word... " >&6; }
24703 if ${ac_cv_path_PKGCONFIG+:} false; then :
24704   $as_echo_n "(cached) " >&6
24705 else
24706   case $PKGCONFIG in
24707   [\\/]* | ?:[\\/]*)
24708   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24709   ;;
24710   *)
24711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24712 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24713 for as_dir in $as_dummy
24714 do
24715   IFS=$as_save_IFS
24716   test -z "$as_dir" && as_dir=.
24717     for ac_exec_ext in '' $ac_executable_extensions; do
24718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24719     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24721     break 2
24722   fi
24723 done
24724   done
24725 IFS=$as_save_IFS
24726
24727   ;;
24728 esac
24729 fi
24730 PKGCONFIG=$ac_cv_path_PKGCONFIG
24731 if test -n "$PKGCONFIG"; then
24732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24733 $as_echo "$PKGCONFIG" >&6; }
24734 else
24735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24736 $as_echo "no" >&6; }
24737 fi
24738
24739
24740 fi
24741 if test -z "$ac_cv_path_PKGCONFIG"; then
24742   ac_pt_PKGCONFIG=$PKGCONFIG
24743   # Extract the first word of "pkg-config", so it can be a program name with args.
24744 set dummy pkg-config; ac_word=$2
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24746 $as_echo_n "checking for $ac_word... " >&6; }
24747 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24748   $as_echo_n "(cached) " >&6
24749 else
24750   case $ac_pt_PKGCONFIG in
24751   [\\/]* | ?:[\\/]*)
24752   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24753   ;;
24754   *)
24755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24756 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24757 for as_dir in $as_dummy
24758 do
24759   IFS=$as_save_IFS
24760   test -z "$as_dir" && as_dir=.
24761     for ac_exec_ext in '' $ac_executable_extensions; do
24762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24763     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24765     break 2
24766   fi
24767 done
24768   done
24769 IFS=$as_save_IFS
24770
24771   ;;
24772 esac
24773 fi
24774 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24775 if test -n "$ac_pt_PKGCONFIG"; then
24776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24777 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24778 else
24779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24780 $as_echo "no" >&6; }
24781 fi
24782
24783   if test "x$ac_pt_PKGCONFIG" = x; then
24784     PKGCONFIG="no"
24785   else
24786     case $cross_compiling:$ac_tool_warned in
24787 yes:)
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24790 ac_tool_warned=yes ;;
24791 esac
24792     PKGCONFIG=$ac_pt_PKGCONFIG
24793   fi
24794 else
24795   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24796 fi
24797
24798     fi
24799
24800     if test "x$PKGCONFIG" != "xno"; then
24801       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24802 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24803             itexists=`
24804     if test -n ""; then
24805       PKG_CONFIG_LIBDIR=""
24806       export PKG_CONFIG_LIBDIR
24807     fi
24808          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24809
24810       if test -z "$itexists"; then
24811                         PKGCONFIG="no"
24812         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24813 $as_echo "no" >&6; }
24814       else
24815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24816 $as_echo "found" >&6; }
24817       fi
24818     fi
24819
24820
24821       if test "$PKGCONFIG" != "no" ; then
24822         addlib=`$PKGCONFIG --libs nss`
24823         addcflags=`$PKGCONFIG --cflags nss`
24824         version=`$PKGCONFIG --modversion nss`
24825         nssprefix=`$PKGCONFIG --variable=prefix nss`
24826       else
24827
24828         check=`nss-config --version 2>/dev/null`
24829         if test -n "$check"; then
24830           addlib=`nss-config --libs`
24831           addcflags=`nss-config --cflags`
24832           version=`nss-config --version`
24833           nssprefix=`nss-config --prefix`
24834         else
24835           addlib="-lnss3"
24836           addcflags=""
24837           version="unknown"
24838         fi
24839       fi
24840     else
24841       NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
24842       if test -f "$NSS_PCDIR/nss.pc"; then
24843
24844     if test -n "$PKG_CONFIG"; then
24845       PKGCONFIG="$PKG_CONFIG"
24846     else
24847       if test -n "$ac_tool_prefix"; then
24848   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24849 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24851 $as_echo_n "checking for $ac_word... " >&6; }
24852 if ${ac_cv_path_PKGCONFIG+:} false; then :
24853   $as_echo_n "(cached) " >&6
24854 else
24855   case $PKGCONFIG in
24856   [\\/]* | ?:[\\/]*)
24857   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24858   ;;
24859   *)
24860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24861 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24862 for as_dir in $as_dummy
24863 do
24864   IFS=$as_save_IFS
24865   test -z "$as_dir" && as_dir=.
24866     for ac_exec_ext in '' $ac_executable_extensions; do
24867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24868     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24870     break 2
24871   fi
24872 done
24873   done
24874 IFS=$as_save_IFS
24875
24876   ;;
24877 esac
24878 fi
24879 PKGCONFIG=$ac_cv_path_PKGCONFIG
24880 if test -n "$PKGCONFIG"; then
24881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24882 $as_echo "$PKGCONFIG" >&6; }
24883 else
24884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24885 $as_echo "no" >&6; }
24886 fi
24887
24888
24889 fi
24890 if test -z "$ac_cv_path_PKGCONFIG"; then
24891   ac_pt_PKGCONFIG=$PKGCONFIG
24892   # Extract the first word of "pkg-config", so it can be a program name with args.
24893 set dummy pkg-config; ac_word=$2
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24895 $as_echo_n "checking for $ac_word... " >&6; }
24896 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24897   $as_echo_n "(cached) " >&6
24898 else
24899   case $ac_pt_PKGCONFIG in
24900   [\\/]* | ?:[\\/]*)
24901   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24902   ;;
24903   *)
24904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24905 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24906 for as_dir in $as_dummy
24907 do
24908   IFS=$as_save_IFS
24909   test -z "$as_dir" && as_dir=.
24910     for ac_exec_ext in '' $ac_executable_extensions; do
24911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24912     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24914     break 2
24915   fi
24916 done
24917   done
24918 IFS=$as_save_IFS
24919
24920   ;;
24921 esac
24922 fi
24923 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24924 if test -n "$ac_pt_PKGCONFIG"; then
24925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24926 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24927 else
24928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24929 $as_echo "no" >&6; }
24930 fi
24931
24932   if test "x$ac_pt_PKGCONFIG" = x; then
24933     PKGCONFIG="no"
24934   else
24935     case $cross_compiling:$ac_tool_warned in
24936 yes:)
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24939 ac_tool_warned=yes ;;
24940 esac
24941     PKGCONFIG=$ac_pt_PKGCONFIG
24942   fi
24943 else
24944   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24945 fi
24946
24947     fi
24948
24949     if test "x$PKGCONFIG" != "xno"; then
24950       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
24951 $as_echo_n "checking for nss options with pkg-config... " >&6; }
24952             itexists=`
24953     if test -n "$NSS_PCDIR"; then
24954       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24955       export PKG_CONFIG_LIBDIR
24956     fi
24957          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
24958
24959       if test -z "$itexists"; then
24960                         PKGCONFIG="no"
24961         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24962 $as_echo "no" >&6; }
24963       else
24964         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24965 $as_echo "found" >&6; }
24966       fi
24967     fi
24968
24969         if test "$PKGCONFIG" != "no" ; then
24970           addld=`
24971     if test -n "$NSS_PCDIR"; then
24972       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24973       export PKG_CONFIG_LIBDIR
24974     fi
24975  $PKGCONFIG --libs-only-L nss`
24976           addlib=`
24977     if test -n "$NSS_PCDIR"; then
24978       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24979       export PKG_CONFIG_LIBDIR
24980     fi
24981  $PKGCONFIG --libs-only-l nss`
24982           addcflags=`
24983     if test -n "$NSS_PCDIR"; then
24984       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24985       export PKG_CONFIG_LIBDIR
24986     fi
24987  $PKGCONFIG --cflags nss`
24988           version=`
24989     if test -n "$NSS_PCDIR"; then
24990       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24991       export PKG_CONFIG_LIBDIR
24992     fi
24993  $PKGCONFIG --modversion nss`
24994           nssprefix=`
24995     if test -n "$NSS_PCDIR"; then
24996       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
24997       export PKG_CONFIG_LIBDIR
24998     fi
24999  $PKGCONFIG --variable=prefix nss`
25000         fi
25001       fi
25002     fi
25003
25004     if test -z "$addlib"; then
25005       # Without pkg-config, we'll kludge in some defaults
25006       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25007 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25008       addld="-L$OPT_NSS/lib"
25009       addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25010       addcflags="-I$OPT_NSS/include"
25011       version="unknown"
25012       nssprefix=$OPT_NSS
25013     fi
25014
25015     CLEANLDFLAGS="$LDFLAGS"
25016     CLEANLIBS="$LIBS"
25017     CLEANCPPFLAGS="$CPPFLAGS"
25018
25019     LDFLAGS="$addld $LDFLAGS"
25020     LIBS="$addlib $LIBS"
25021     if test "$addcflags" != "-I/usr/include"; then
25022        CPPFLAGS="$CPPFLAGS $addcflags"
25023     fi
25024
25025         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25026 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25027 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25028   $as_echo_n "(cached) " >&6
25029 else
25030   ac_check_lib_save_LIBS=$LIBS
25031 LIBS="-lnss3  $LIBS"
25032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25033 /* end confdefs.h.  */
25034
25035
25036 #ifdef __cplusplus
25037 extern "C"
25038 #endif
25039 char SSL_VersionRangeSet ();
25040 int main (void)
25041 {
25042 return SSL_VersionRangeSet ();
25043  ;
25044  return 0;
25045 }
25046 _ACEOF
25047 if ac_fn_c_try_link "$LINENO"; then :
25048   ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25049 else
25050   ac_cv_lib_nss3_SSL_VersionRangeSet=no
25051 fi
25052 rm -f core conftest.err conftest.$ac_objext \
25053     conftest$ac_exeext conftest.$ac_ext
25054 LIBS=$ac_check_lib_save_LIBS
25055 fi
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25057 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25058 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25059
25060
25061 $as_echo "#define USE_NSS 1" >>confdefs.h
25062
25063      USE_NSS=1
25064
25065      USE_NSS="yes"
25066      NSS_ENABLED=1
25067      ssl_msg="NSS"
25068      test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25069
25070 else
25071
25072        LDFLAGS="$CLEANLDFLAGS"
25073        LIBS="$CLEANLIBS"
25074        CPPFLAGS="$CLEANCPPFLAGS"
25075
25076 fi
25077
25078
25079     if test "x$USE_NSS" = "xyes"; then
25080       { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25081 $as_echo "$as_me: detected NSS version $version" >&6;}
25082
25083             NSS_LIBS=$addlib
25084
25085
25086                               if test "x$cross_compiling" != "xyes"; then
25087         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
25088         export LD_LIBRARY_PATH
25089         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
25090 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
25091       fi
25092
25093     fi
25094   fi
25095   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25096 fi
25097
25098 OPT_AXTLS=off
25099
25100
25101 # Check whether --with-axtls was given.
25102 if test "${with_axtls+set}" = set; then :
25103   withval=$with_axtls; OPT_AXTLS=$withval
25104 fi
25105
25106
25107 if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
25108   ssl_msg=
25109   if test X"$OPT_AXTLS" != Xno; then
25110         CLEANLDFLAGS="$LDFLAGS"
25111     CLEANCPPFLAGS="$CPPFLAGS"
25112     CLEANLIBS="$LIBS"
25113
25114     case "$OPT_AXTLS" in
25115     yes)
25116             PREFIX_AXTLS=/usr/local
25117       LIB_AXTLS="$PREFIX_AXTLS/lib"
25118       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25119       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25120       ;;
25121     off)
25122             PREFIX_AXTLS=
25123       ;;
25124     *)
25125             PREFIX_AXTLS=$OPT_AXTLS
25126       LIB_AXTLS="$PREFIX_AXTLS/lib"
25127       LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25128       CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25129       ;;
25130     esac
25131
25132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25133 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25134 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25135   $as_echo_n "(cached) " >&6
25136 else
25137   ac_check_lib_save_LIBS=$LIBS
25138 LIBS="-laxtls  $LIBS"
25139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25140 /* end confdefs.h.  */
25141
25142
25143 #ifdef __cplusplus
25144 extern "C"
25145 #endif
25146 char ssl_version ();
25147 int main (void)
25148 {
25149 return ssl_version ();
25150  ;
25151  return 0;
25152 }
25153 _ACEOF
25154 if ac_fn_c_try_link "$LINENO"; then :
25155   ac_cv_lib_axtls_ssl_version=yes
25156 else
25157   ac_cv_lib_axtls_ssl_version=no
25158 fi
25159 rm -f core conftest.err conftest.$ac_objext \
25160     conftest$ac_exeext conftest.$ac_ext
25161 LIBS=$ac_check_lib_save_LIBS
25162 fi
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25164 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25165 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25166
25167       LIBS="-laxtls $LIBS"
25168
25169 $as_echo "#define USE_AXTLS 1" >>confdefs.h
25170
25171       USE_AXTLS=1
25172
25173       AXTLS_ENABLED=1
25174       USE_AXTLS="yes"
25175       ssl_msg="axTLS"
25176       test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25177
25178       if test "x$cross_compiling" != "xyes"; then
25179         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25180         export LD_LIBRARY_PATH
25181         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25182 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25183       fi
25184
25185 else
25186
25187       LDFLAGS="$CLEANLDFLAGS"
25188       CPPFLAGS="$CLEANCPPFLAGS"
25189       LIBS="$CLEANLIBS"
25190
25191 fi
25192
25193   fi
25194   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25195 fi
25196
25197 case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" in
25198 x)
25199   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25200 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25201   { $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
25202 $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;}
25203   ;;
25204 x1)
25205   # one SSL backend is enabled
25206
25207   SSL_ENABLED="1"
25208   { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25209 $as_echo "$as_me: built with one SSL backend" >&6;}
25210   ;;
25211 *)
25212   # more than one SSL backend is enabled
25213
25214   SSL_ENABLED="1"
25215
25216   CURL_WITH_MULTI_SSL="1"
25217
25218 $as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25219
25220   { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25221 $as_echo "$as_me: built with multiple SSL backends" >&6;}
25222   ;;
25223 esac
25224
25225 if test -n "$ssl_backends"; then
25226   curl_ssl_msg="enabled ($ssl_backends)"
25227 fi
25228
25229 if test no = "$VALID_DEFAULT_SSL_BACKEND"
25230 then
25231   if test -n "$SSL_ENABLED"
25232   then
25233     as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25234   else
25235     as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25236   fi
25237 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25238 then
25239
25240 cat >>confdefs.h <<_ACEOF
25241 #define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25242 _ACEOF
25243
25244 fi
25245
25246
25247
25248
25249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25250 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25251
25252
25253 # Check whether --with-ca-bundle was given.
25254 if test "${with_ca_bundle+set}" = set; then :
25255   withval=$with_ca_bundle;
25256     want_ca="$withval"
25257     if test "x$want_ca" = "xyes"; then
25258       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25259     fi
25260
25261 else
25262    want_ca="unset"
25263 fi
25264
25265
25266 # Check whether --with-ca-path was given.
25267 if test "${with_ca_path+set}" = set; then :
25268   withval=$with_ca_path;
25269     want_capath="$withval"
25270     if test "x$want_capath" = "xyes"; then
25271       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25272     fi
25273
25274 else
25275    want_capath="unset"
25276 fi
25277
25278
25279   ca_warning="   (warning: certs not found)"
25280   capath_warning="   (warning: certs not found)"
25281   check_capath=""
25282
25283   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25284           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25285         ca="$want_ca"
25286     capath="$want_capath"
25287   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25288         ca="$want_ca"
25289     capath="no"
25290   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25291         if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25292       as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25293     fi
25294     capath="$want_capath"
25295     ca="no"
25296   else
25297             ca="no"
25298     capath="no"
25299     if test "x$cross_compiling" != "xyes"; then
25300                   if test "x$want_ca" = "xunset"; then
25301                                 if test "x$prefix" != xNONE; then
25302           cac="${prefix}/share/curl/curl-ca-bundle.crt"
25303         else
25304           cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25305         fi
25306
25307         for a in /etc/ssl/certs/ca-certificates.crt \
25308                  /etc/pki/tls/certs/ca-bundle.crt \
25309                  /usr/share/ssl/certs/ca-bundle.crt \
25310                  /usr/local/share/certs/ca-root-nss.crt \
25311                  /etc/ssl/cert.pem \
25312                  "$cac"; do
25313           if test -f "$a"; then
25314             ca="$a"
25315             break
25316           fi
25317         done
25318       fi
25319       if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25320               "x$OPENSSL_ENABLED" = "x1"; then
25321         check_capath="/etc/ssl/certs/"
25322       fi
25323     else
25324             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25325 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25326     fi
25327   fi
25328
25329   if test "x$ca" = "xno" || test -f "$ca"; then
25330     ca_warning=""
25331   fi
25332
25333   if test "x$capath" != "xno"; then
25334     check_capath="$capath"
25335   fi
25336
25337   if test ! -z "$check_capath"; then
25338     for a in "$check_capath"; do
25339       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
25340         if test "x$capath" = "xno"; then
25341           capath="$a"
25342         fi
25343         capath_warning=""
25344         break
25345       fi
25346     done
25347   fi
25348
25349   if test "x$capath" = "xno"; then
25350     capath_warning=""
25351   fi
25352
25353   if test "x$ca" != "xno"; then
25354     CURL_CA_BUNDLE='"'$ca'"'
25355
25356 cat >>confdefs.h <<_ACEOF
25357 #define CURL_CA_BUNDLE "$ca"
25358 _ACEOF
25359
25360
25361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25362 $as_echo "$ca" >&6; }
25363   fi
25364   if test "x$capath" != "xno"; then
25365     CURL_CA_PATH="\"$capath\""
25366
25367 cat >>confdefs.h <<_ACEOF
25368 #define CURL_CA_PATH "$capath"
25369 _ACEOF
25370
25371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25372 $as_echo "$capath (capath)" >&6; }
25373   fi
25374   if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25376 $as_echo "no" >&6; }
25377   fi
25378
25379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25380 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25381
25382 # Check whether --with-ca-fallback was given.
25383 if test "${with_ca_fallback+set}" = set; then :
25384   withval=$with_ca_fallback;
25385     if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25386       as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25387     fi
25388
25389 else
25390    with_ca_fallback="no"
25391 fi
25392
25393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25394 $as_echo "$with_ca_fallback" >&6; }
25395   if test "x$with_ca_fallback" = "xyes"; then
25396     if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25397       as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25398     fi
25399
25400 cat >>confdefs.h <<_ACEOF
25401 #define CURL_CA_FALLBACK 1
25402 _ACEOF
25403
25404   fi
25405
25406
25407
25408
25409 # Check whether --with-libpsl was given.
25410 if test "${with_libpsl+set}" = set; then :
25411   withval=$with_libpsl; with_libpsl=$withval
25412 else
25413   with_libpsl=yes
25414 fi
25415
25416 if test $with_libpsl != "no"; then
25417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25418 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25419 if ${ac_cv_search_psl_builtin+:} false; then :
25420   $as_echo_n "(cached) " >&6
25421 else
25422   ac_func_search_save_LIBS=$LIBS
25423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25424 /* end confdefs.h.  */
25425
25426
25427 #ifdef __cplusplus
25428 extern "C"
25429 #endif
25430 char psl_builtin ();
25431 int main (void)
25432 {
25433 return psl_builtin ();
25434  ;
25435  return 0;
25436 }
25437 _ACEOF
25438 for ac_lib in '' psl; do
25439   if test -z "$ac_lib"; then
25440     ac_res="none required"
25441   else
25442     ac_res=-l$ac_lib
25443     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25444   fi
25445   if ac_fn_c_try_link "$LINENO"; then :
25446   ac_cv_search_psl_builtin=$ac_res
25447 fi
25448 rm -f core conftest.err conftest.$ac_objext \
25449     conftest$ac_exeext
25450   if ${ac_cv_search_psl_builtin+:} false; then :
25451   break
25452 fi
25453 done
25454 if ${ac_cv_search_psl_builtin+:} false; then :
25455
25456 else
25457   ac_cv_search_psl_builtin=no
25458 fi
25459 rm conftest.$ac_ext
25460 LIBS=$ac_func_search_save_LIBS
25461 fi
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25463 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25464 ac_res=$ac_cv_search_psl_builtin
25465 if test "$ac_res" != no; then :
25466   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25467   curl_psl_msg="yes";
25468
25469 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25470
25471
25472 else
25473   curl_psl_msg="no      (libpsl not found)";
25474      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25475 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25476
25477
25478 fi
25479
25480 fi
25481  if test "$curl_psl_msg" = "yes"; then
25482   USE_LIBPSL_TRUE=
25483   USE_LIBPSL_FALSE='#'
25484 else
25485   USE_LIBPSL_TRUE='#'
25486   USE_LIBPSL_FALSE=
25487 fi
25488
25489
25490
25491 OPT_LIBMETALINK=no
25492
25493
25494 # Check whether --with-libmetalink was given.
25495 if test "${with_libmetalink+set}" = set; then :
25496   withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25497 fi
25498
25499
25500 if test X"$OPT_LIBMETALINK" != Xno; then
25501
25502   addld=""
25503   addlib=""
25504   addcflags=""
25505   version=""
25506   libmetalinklib=""
25507
25508   PKGTEST="no"
25509   if test "x$OPT_LIBMETALINK" = "xyes"; then
25510         PKGTEST="yes"
25511
25512     if test -n "$PKG_CONFIG"; then
25513       PKGCONFIG="$PKG_CONFIG"
25514     else
25515       if test -n "$ac_tool_prefix"; then
25516   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25517 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25519 $as_echo_n "checking for $ac_word... " >&6; }
25520 if ${ac_cv_path_PKGCONFIG+:} false; then :
25521   $as_echo_n "(cached) " >&6
25522 else
25523   case $PKGCONFIG in
25524   [\\/]* | ?:[\\/]*)
25525   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25526   ;;
25527   *)
25528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25529 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25530 for as_dir in $as_dummy
25531 do
25532   IFS=$as_save_IFS
25533   test -z "$as_dir" && as_dir=.
25534     for ac_exec_ext in '' $ac_executable_extensions; do
25535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25536     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25538     break 2
25539   fi
25540 done
25541   done
25542 IFS=$as_save_IFS
25543
25544   ;;
25545 esac
25546 fi
25547 PKGCONFIG=$ac_cv_path_PKGCONFIG
25548 if test -n "$PKGCONFIG"; then
25549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25550 $as_echo "$PKGCONFIG" >&6; }
25551 else
25552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25553 $as_echo "no" >&6; }
25554 fi
25555
25556
25557 fi
25558 if test -z "$ac_cv_path_PKGCONFIG"; then
25559   ac_pt_PKGCONFIG=$PKGCONFIG
25560   # Extract the first word of "pkg-config", so it can be a program name with args.
25561 set dummy 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_ac_pt_PKGCONFIG+:} false; then :
25565   $as_echo_n "(cached) " >&6
25566 else
25567   case $ac_pt_PKGCONFIG in
25568   [\\/]* | ?:[\\/]*)
25569   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_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_ac_pt_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 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25592 if test -n "$ac_pt_PKGCONFIG"; then
25593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25594 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25595 else
25596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25597 $as_echo "no" >&6; }
25598 fi
25599
25600   if test "x$ac_pt_PKGCONFIG" = x; then
25601     PKGCONFIG="no"
25602   else
25603     case $cross_compiling:$ac_tool_warned in
25604 yes:)
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25607 ac_tool_warned=yes ;;
25608 esac
25609     PKGCONFIG=$ac_pt_PKGCONFIG
25610   fi
25611 else
25612   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25613 fi
25614
25615     fi
25616
25617     if test "x$PKGCONFIG" != "xno"; then
25618       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25619 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25620             itexists=`
25621     if test -n ""; then
25622       PKG_CONFIG_LIBDIR=""
25623       export PKG_CONFIG_LIBDIR
25624     fi
25625          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25626
25627       if test -z "$itexists"; then
25628                         PKGCONFIG="no"
25629         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25630 $as_echo "no" >&6; }
25631       else
25632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25633 $as_echo "found" >&6; }
25634       fi
25635     fi
25636
25637   else
25638         LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25639     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25640 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25641     if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25642       PKGTEST="yes"
25643     fi
25644     if test "$PKGTEST" = "yes"; then
25645
25646     if test -n "$PKG_CONFIG"; then
25647       PKGCONFIG="$PKG_CONFIG"
25648     else
25649       if test -n "$ac_tool_prefix"; then
25650   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25651 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25653 $as_echo_n "checking for $ac_word... " >&6; }
25654 if ${ac_cv_path_PKGCONFIG+:} false; then :
25655   $as_echo_n "(cached) " >&6
25656 else
25657   case $PKGCONFIG in
25658   [\\/]* | ?:[\\/]*)
25659   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25660   ;;
25661   *)
25662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25663 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25664 for as_dir in $as_dummy
25665 do
25666   IFS=$as_save_IFS
25667   test -z "$as_dir" && as_dir=.
25668     for ac_exec_ext in '' $ac_executable_extensions; do
25669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25670     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25672     break 2
25673   fi
25674 done
25675   done
25676 IFS=$as_save_IFS
25677
25678   ;;
25679 esac
25680 fi
25681 PKGCONFIG=$ac_cv_path_PKGCONFIG
25682 if test -n "$PKGCONFIG"; then
25683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25684 $as_echo "$PKGCONFIG" >&6; }
25685 else
25686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25687 $as_echo "no" >&6; }
25688 fi
25689
25690
25691 fi
25692 if test -z "$ac_cv_path_PKGCONFIG"; then
25693   ac_pt_PKGCONFIG=$PKGCONFIG
25694   # Extract the first word of "pkg-config", so it can be a program name with args.
25695 set dummy pkg-config; ac_word=$2
25696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25697 $as_echo_n "checking for $ac_word... " >&6; }
25698 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25699   $as_echo_n "(cached) " >&6
25700 else
25701   case $ac_pt_PKGCONFIG in
25702   [\\/]* | ?:[\\/]*)
25703   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25704   ;;
25705   *)
25706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25707 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25708 for as_dir in $as_dummy
25709 do
25710   IFS=$as_save_IFS
25711   test -z "$as_dir" && as_dir=.
25712     for ac_exec_ext in '' $ac_executable_extensions; do
25713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25714     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25716     break 2
25717   fi
25718 done
25719   done
25720 IFS=$as_save_IFS
25721
25722   ;;
25723 esac
25724 fi
25725 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25726 if test -n "$ac_pt_PKGCONFIG"; then
25727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25728 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25729 else
25730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25731 $as_echo "no" >&6; }
25732 fi
25733
25734   if test "x$ac_pt_PKGCONFIG" = x; then
25735     PKGCONFIG="no"
25736   else
25737     case $cross_compiling:$ac_tool_warned in
25738 yes:)
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25741 ac_tool_warned=yes ;;
25742 esac
25743     PKGCONFIG=$ac_pt_PKGCONFIG
25744   fi
25745 else
25746   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25747 fi
25748
25749     fi
25750
25751     if test "x$PKGCONFIG" != "xno"; then
25752       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25753 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25754             itexists=`
25755     if test -n "$LIBMETALINK_PCDIR"; then
25756       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25757       export PKG_CONFIG_LIBDIR
25758     fi
25759          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25760
25761       if test -z "$itexists"; then
25762                         PKGCONFIG="no"
25763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25764 $as_echo "no" >&6; }
25765       else
25766         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25767 $as_echo "found" >&6; }
25768       fi
25769     fi
25770
25771     fi
25772   fi
25773   if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
25774     addlib=`
25775     if test -n "$LIBMETALINK_PCDIR"; then
25776       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25777       export PKG_CONFIG_LIBDIR
25778     fi
25779        $PKGCONFIG --libs-only-l libmetalink`
25780     addld=`
25781     if test -n "$LIBMETALINK_PCDIR"; then
25782       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25783       export PKG_CONFIG_LIBDIR
25784     fi
25785        $PKGCONFIG --libs-only-L libmetalink`
25786     addcflags=`
25787     if test -n "$LIBMETALINK_PCDIR"; then
25788       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25789       export PKG_CONFIG_LIBDIR
25790     fi
25791        $PKGCONFIG --cflags-only-I libmetalink`
25792     version=`
25793     if test -n "$LIBMETALINK_PCDIR"; then
25794       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25795       export PKG_CONFIG_LIBDIR
25796     fi
25797        $PKGCONFIG --modversion libmetalink`
25798     libmetalinklib=`echo $addld | $SED -e 's/-L//'`
25799   fi
25800   if test -n "$addlib"; then
25801
25802     clean_CPPFLAGS="$CPPFLAGS"
25803     clean_LDFLAGS="$LDFLAGS"
25804     clean_LIBS="$LIBS"
25805     CPPFLAGS="$clean_CPPFLAGS $addcflags"
25806     LDFLAGS="$clean_LDFLAGS $addld"
25807     LIBS="$addlib $clean_LIBS"
25808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
25809 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
25810     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h.  */
25812
25813
25814 #       include <metalink/metalink.h>
25815
25816 int main (void)
25817 {
25818
25819         if(0 != metalink_strerror(0)) /* added in 0.1.0 */
25820           return 1;
25821
25822  ;
25823  return 0;
25824 }
25825
25826 _ACEOF
25827 if ac_fn_c_try_link "$LINENO"; then :
25828
25829       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
25830 $as_echo "yes ($version)" >&6; }
25831       want_metalink="yes"
25832
25833 else
25834
25835       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
25836 $as_echo "no ($version)" >&6; }
25837       { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
25838 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
25839       want_metalink="no"
25840
25841 fi
25842 rm -f core conftest.err conftest.$ac_objext \
25843     conftest$ac_exeext conftest.$ac_ext
25844     CPPFLAGS="$clean_CPPFLAGS"
25845     LDFLAGS="$clean_LDFLAGS"
25846     LIBS="$clean_LIBS"
25847     if test "$want_metalink" = "yes"; then
25848
25849 $as_echo "#define USE_METALINK 1" >>confdefs.h
25850
25851       LIBMETALINK_LIBS=$addlib
25852       LIBMETALINK_LDFLAGS=$addld
25853       LIBMETALINK_CPPFLAGS=$addcflags
25854
25855
25856
25857       curl_mtlnk_msg="enabled"
25858     fi
25859
25860   fi
25861 fi
25862
25863
25864 OPT_LIBSSH2=off
25865
25866 # Check whether --with-libssh2 was given.
25867 if test "${with_libssh2+set}" = set; then :
25868   withval=$with_libssh2; OPT_LIBSSH2=$withval
25869 fi
25870
25871
25872 if test X"$OPT_LIBSSH2" != Xno; then
25873     CLEANLDFLAGS="$LDFLAGS"
25874   CLEANCPPFLAGS="$CPPFLAGS"
25875   CLEANLIBS="$LIBS"
25876
25877   case "$OPT_LIBSSH2" in
25878   yes)
25879
25880     if test -n "$PKG_CONFIG"; then
25881       PKGCONFIG="$PKG_CONFIG"
25882     else
25883       if test -n "$ac_tool_prefix"; then
25884   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25885 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25887 $as_echo_n "checking for $ac_word... " >&6; }
25888 if ${ac_cv_path_PKGCONFIG+:} false; then :
25889   $as_echo_n "(cached) " >&6
25890 else
25891   case $PKGCONFIG in
25892   [\\/]* | ?:[\\/]*)
25893   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25894   ;;
25895   *)
25896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25897 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25898 for as_dir in $as_dummy
25899 do
25900   IFS=$as_save_IFS
25901   test -z "$as_dir" && as_dir=.
25902     for ac_exec_ext in '' $ac_executable_extensions; do
25903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25904     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25906     break 2
25907   fi
25908 done
25909   done
25910 IFS=$as_save_IFS
25911
25912   ;;
25913 esac
25914 fi
25915 PKGCONFIG=$ac_cv_path_PKGCONFIG
25916 if test -n "$PKGCONFIG"; then
25917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25918 $as_echo "$PKGCONFIG" >&6; }
25919 else
25920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25921 $as_echo "no" >&6; }
25922 fi
25923
25924
25925 fi
25926 if test -z "$ac_cv_path_PKGCONFIG"; then
25927   ac_pt_PKGCONFIG=$PKGCONFIG
25928   # Extract the first word of "pkg-config", so it can be a program name with args.
25929 set dummy pkg-config; ac_word=$2
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25931 $as_echo_n "checking for $ac_word... " >&6; }
25932 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25933   $as_echo_n "(cached) " >&6
25934 else
25935   case $ac_pt_PKGCONFIG in
25936   [\\/]* | ?:[\\/]*)
25937   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25938   ;;
25939   *)
25940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25941 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25942 for as_dir in $as_dummy
25943 do
25944   IFS=$as_save_IFS
25945   test -z "$as_dir" && as_dir=.
25946     for ac_exec_ext in '' $ac_executable_extensions; do
25947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25948     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25950     break 2
25951   fi
25952 done
25953   done
25954 IFS=$as_save_IFS
25955
25956   ;;
25957 esac
25958 fi
25959 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25960 if test -n "$ac_pt_PKGCONFIG"; then
25961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25962 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25963 else
25964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25965 $as_echo "no" >&6; }
25966 fi
25967
25968   if test "x$ac_pt_PKGCONFIG" = x; then
25969     PKGCONFIG="no"
25970   else
25971     case $cross_compiling:$ac_tool_warned in
25972 yes:)
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25975 ac_tool_warned=yes ;;
25976 esac
25977     PKGCONFIG=$ac_pt_PKGCONFIG
25978   fi
25979 else
25980   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25981 fi
25982
25983     fi
25984
25985     if test "x$PKGCONFIG" != "xno"; then
25986       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
25987 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
25988             itexists=`
25989     if test -n ""; then
25990       PKG_CONFIG_LIBDIR=""
25991       export PKG_CONFIG_LIBDIR
25992     fi
25993          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
25994
25995       if test -z "$itexists"; then
25996                         PKGCONFIG="no"
25997         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25998 $as_echo "no" >&6; }
25999       else
26000         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26001 $as_echo "found" >&6; }
26002       fi
26003     fi
26004
26005
26006     if test "$PKGCONFIG" != "no" ; then
26007       LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
26008       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26009       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26010       version=`$PKGCONFIG --modversion libssh2`
26011       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26012     fi
26013
26014     ;;
26015   off)
26016         ;;
26017   *)
26018         PREFIX_SSH2=$OPT_LIBSSH2
26019     ;;
26020   esac
26021
26022     if test -n "$PREFIX_SSH2"; then
26023     LIB_SSH2="-lssh2"
26024     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26025     CPP_SSH2=-I${PREFIX_SSH2}/include
26026     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26027   fi
26028
26029   LDFLAGS="$LDFLAGS $LD_SSH2"
26030   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26031   LIBS="$LIB_SSH2 $LIBS"
26032
26033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26034 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26035 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26036   $as_echo_n "(cached) " >&6
26037 else
26038   ac_check_lib_save_LIBS=$LIBS
26039 LIBS="-lssh2  $LIBS"
26040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26041 /* end confdefs.h.  */
26042
26043
26044 #ifdef __cplusplus
26045 extern "C"
26046 #endif
26047 char libssh2_channel_open_ex ();
26048 int main (void)
26049 {
26050 return libssh2_channel_open_ex ();
26051  ;
26052  return 0;
26053 }
26054 _ACEOF
26055 if ac_fn_c_try_link "$LINENO"; then :
26056   ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26057 else
26058   ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26059 fi
26060 rm -f core conftest.err conftest.$ac_objext \
26061     conftest$ac_exeext conftest.$ac_ext
26062 LIBS=$ac_check_lib_save_LIBS
26063 fi
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26065 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26066 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26067   cat >>confdefs.h <<_ACEOF
26068 #define HAVE_LIBSSH2 1
26069 _ACEOF
26070
26071   LIBS="-lssh2 $LIBS"
26072
26073 fi
26074
26075
26076   for ac_header in libssh2.h
26077 do :
26078   ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26079 if test "x$ac_cv_header_libssh2_h" = xyes; then :
26080   cat >>confdefs.h <<_ACEOF
26081 #define HAVE_LIBSSH2_H 1
26082 _ACEOF
26083  curl_ssh_msg="enabled (libSSH2)"
26084     LIBSSH2_ENABLED=1
26085
26086 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26087
26088     USE_LIBSSH2=1
26089
26090
26091 fi
26092
26093 done
26094
26095
26096   if test X"$OPT_LIBSSH2" != Xoff &&
26097      test "$LIBSSH2_ENABLED" != "1"; then
26098     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26099   fi
26100
26101   if test "$LIBSSH2_ENABLED" = "1"; then
26102     if test -n "$DIR_SSH2"; then
26103
26104        if test "x$cross_compiling" != "xyes"; then
26105          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
26106          export LD_LIBRARY_PATH
26107          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
26108 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
26109        fi
26110     fi
26111   else
26112         LDFLAGS=$CLEANLDFLAGS
26113     CPPFLAGS=$CLEANCPPFLAGS
26114     LIBS=$CLEANLIBS
26115   fi
26116 fi
26117
26118
26119 OPT_LIBRTMP=off
26120
26121 # Check whether --with-librtmp was given.
26122 if test "${with_librtmp+set}" = set; then :
26123   withval=$with_librtmp; OPT_LIBRTMP=$withval
26124 fi
26125
26126
26127 if test X"$OPT_LIBRTMP" != Xno; then
26128     CLEANLDFLAGS="$LDFLAGS"
26129   CLEANCPPFLAGS="$CPPFLAGS"
26130   CLEANLIBS="$LIBS"
26131
26132   case "$OPT_LIBRTMP" in
26133   yes)
26134
26135     if test -n "$PKG_CONFIG"; then
26136       PKGCONFIG="$PKG_CONFIG"
26137     else
26138       if test -n "$ac_tool_prefix"; then
26139   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26140 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26142 $as_echo_n "checking for $ac_word... " >&6; }
26143 if ${ac_cv_path_PKGCONFIG+:} false; then :
26144   $as_echo_n "(cached) " >&6
26145 else
26146   case $PKGCONFIG in
26147   [\\/]* | ?:[\\/]*)
26148   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26149   ;;
26150   *)
26151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26152 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26153 for as_dir in $as_dummy
26154 do
26155   IFS=$as_save_IFS
26156   test -z "$as_dir" && as_dir=.
26157     for ac_exec_ext in '' $ac_executable_extensions; do
26158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26159     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26161     break 2
26162   fi
26163 done
26164   done
26165 IFS=$as_save_IFS
26166
26167   ;;
26168 esac
26169 fi
26170 PKGCONFIG=$ac_cv_path_PKGCONFIG
26171 if test -n "$PKGCONFIG"; then
26172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26173 $as_echo "$PKGCONFIG" >&6; }
26174 else
26175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26176 $as_echo "no" >&6; }
26177 fi
26178
26179
26180 fi
26181 if test -z "$ac_cv_path_PKGCONFIG"; then
26182   ac_pt_PKGCONFIG=$PKGCONFIG
26183   # Extract the first word of "pkg-config", so it can be a program name with args.
26184 set dummy pkg-config; ac_word=$2
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26186 $as_echo_n "checking for $ac_word... " >&6; }
26187 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26188   $as_echo_n "(cached) " >&6
26189 else
26190   case $ac_pt_PKGCONFIG in
26191   [\\/]* | ?:[\\/]*)
26192   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26193   ;;
26194   *)
26195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26196 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26197 for as_dir in $as_dummy
26198 do
26199   IFS=$as_save_IFS
26200   test -z "$as_dir" && as_dir=.
26201     for ac_exec_ext in '' $ac_executable_extensions; do
26202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26203     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26205     break 2
26206   fi
26207 done
26208   done
26209 IFS=$as_save_IFS
26210
26211   ;;
26212 esac
26213 fi
26214 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26215 if test -n "$ac_pt_PKGCONFIG"; then
26216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26217 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26218 else
26219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26220 $as_echo "no" >&6; }
26221 fi
26222
26223   if test "x$ac_pt_PKGCONFIG" = x; then
26224     PKGCONFIG="no"
26225   else
26226     case $cross_compiling:$ac_tool_warned in
26227 yes:)
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26230 ac_tool_warned=yes ;;
26231 esac
26232     PKGCONFIG=$ac_pt_PKGCONFIG
26233   fi
26234 else
26235   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26236 fi
26237
26238     fi
26239
26240     if test "x$PKGCONFIG" != "xno"; then
26241       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26242 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26243             itexists=`
26244     if test -n ""; then
26245       PKG_CONFIG_LIBDIR=""
26246       export PKG_CONFIG_LIBDIR
26247     fi
26248          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26249
26250       if test -z "$itexists"; then
26251                         PKGCONFIG="no"
26252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26253 $as_echo "no" >&6; }
26254       else
26255         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26256 $as_echo "found" >&6; }
26257       fi
26258     fi
26259
26260
26261     if test "$PKGCONFIG" != "no" ; then
26262       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26263       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26264       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26265       version=`$PKGCONFIG --modversion librtmp`
26266       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26267     else
26268                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26269     fi
26270
26271     ;;
26272   off)
26273         LIB_RTMP="-lrtmp"
26274     ;;
26275   *)
26276         LIB_RTMP="-lrtmp"
26277     PREFIX_RTMP=$OPT_LIBRTMP
26278     ;;
26279   esac
26280
26281     if test -n "$PREFIX_RTMP"; then
26282     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26283     CPP_RTMP=-I${PREFIX_RTMP}/include
26284     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26285   fi
26286
26287   LDFLAGS="$LDFLAGS $LD_RTMP"
26288   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26289   LIBS="$LIB_RTMP $LIBS"
26290
26291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26292 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26293 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26294   $as_echo_n "(cached) " >&6
26295 else
26296   ac_check_lib_save_LIBS=$LIBS
26297 LIBS="-lrtmp  $LIBS"
26298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26299 /* end confdefs.h.  */
26300
26301
26302 #ifdef __cplusplus
26303 extern "C"
26304 #endif
26305 char RTMP_Init ();
26306 int main (void)
26307 {
26308 return RTMP_Init ();
26309  ;
26310  return 0;
26311 }
26312 _ACEOF
26313 if ac_fn_c_try_link "$LINENO"; then :
26314   ac_cv_lib_rtmp_RTMP_Init=yes
26315 else
26316   ac_cv_lib_rtmp_RTMP_Init=no
26317 fi
26318 rm -f core conftest.err conftest.$ac_objext \
26319     conftest$ac_exeext conftest.$ac_ext
26320 LIBS=$ac_check_lib_save_LIBS
26321 fi
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26323 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26324 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26325
26326      for ac_header in librtmp/rtmp.h
26327 do :
26328   ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26329 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26330   cat >>confdefs.h <<_ACEOF
26331 #define HAVE_LIBRTMP_RTMP_H 1
26332 _ACEOF
26333  curl_rtmp_msg="enabled (librtmp)"
26334         LIBRTMP_ENABLED=1
26335
26336 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26337
26338         USE_LIBRTMP=1
26339
26340
26341 fi
26342
26343 done
26344
26345
26346 else
26347         LDFLAGS=$CLEANLDFLAGS
26348       CPPFLAGS=$CLEANCPPFLAGS
26349       LIBS=$CLEANLIBS
26350
26351 fi
26352
26353
26354   if test X"$OPT_LIBRTMP" != Xoff &&
26355      test "$LIBRTMP_ENABLED" != "1"; then
26356     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26357   fi
26358
26359 fi
26360
26361
26362 versioned_symbols_flavour=
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26364 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26365 # Check whether --enable-versioned-symbols was given.
26366 if test "${enable_versioned_symbols+set}" = set; then :
26367   enableval=$enable_versioned_symbols;  case "$enableval" in
26368   yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26369 $as_echo "yes" >&6; }
26370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26371 $as_echo_n "checking if libraries can be versioned... " >&6; }
26372     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26373     if test -z "$GLD"; then
26374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26375 $as_echo "no" >&6; }
26376         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26377 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26378     else
26379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26380 $as_echo "yes" >&6; }
26381         if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26382           versioned_symbols_flavour="MULTISSL_"
26383         elif test "x$OPENSSL_ENABLED" = "x1"; then
26384           versioned_symbols_flavour="OPENSSL_"
26385         elif test "x$GNUTLS_ENABLED" = "x1"; then
26386           versioned_symbols_flavour="GNUTLS_"
26387         elif test "x$NSS_ENABLED" = "x1"; then
26388           versioned_symbols_flavour="NSS_"
26389         elif test "x$POLARSSL_ENABLED" = "x1"; then
26390           versioned_symbols_flavour="POLARSSL_"
26391         elif test "x$CYASSL_ENABLED" = "x1"; then
26392           versioned_symbols_flavour="CYASSL_"
26393         elif test "x$AXTLS_ENABLED" = "x1"; then
26394           versioned_symbols_flavour="AXTLS_"
26395         elif test "x$WINSSL_ENABLED" = "x1"; then
26396           versioned_symbols_flavour="WINSSL_"
26397         elif test "x$DARWINSSL_ENABLED" = "x1"; then
26398           versioned_symbols_flavour="DARWINSSL_"
26399         else
26400           versioned_symbols_flavour=""
26401         fi
26402         versioned_symbols="yes"
26403     fi
26404     ;;
26405
26406   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26407 $as_echo "no" >&6; }
26408     ;;
26409   esac
26410
26411 else
26412
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26414 $as_echo "no" >&6; }
26415
26416
26417 fi
26418
26419
26420 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26421
26422  if test "x$versioned_symbols" = 'xyes'; then
26423   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26424   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26425 else
26426   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26427   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26428 fi
26429
26430
26431
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26433 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26434 OPT_WINIDN="default"
26435
26436 # Check whether --with-winidn was given.
26437 if test "${with_winidn+set}" = set; then :
26438   withval=$with_winidn; OPT_WINIDN=$withval
26439 fi
26440
26441 case "$OPT_WINIDN" in
26442   no|default)
26443         want_winidn="no"
26444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26445 $as_echo "no" >&6; }
26446     ;;
26447   yes)
26448         want_winidn="yes"
26449     want_winidn_path="default"
26450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26451 $as_echo "yes" >&6; }
26452     ;;
26453   *)
26454         want_winidn="yes"
26455     want_winidn_path="$withval"
26456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26457 $as_echo "yes ($withval)" >&6; }
26458     ;;
26459 esac
26460
26461 if test "$want_winidn" = "yes"; then
26462     clean_CPPFLAGS="$CPPFLAGS"
26463   clean_LDFLAGS="$LDFLAGS"
26464   clean_LIBS="$LIBS"
26465   WINIDN_LIBS="-lnormaliz"
26466   WINIDN_CPPFLAGS="-DWINVER=0x0600"
26467   #
26468   if test "$want_winidn_path" != "default"; then
26469             WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26470     WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26471     WINIDN_DIR="$want_winidn_path/lib$libsuff"
26472   fi
26473   #
26474   CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
26475   LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
26476   LIBS="$WINIDN_LIBS $LIBS"
26477   #
26478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26479 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26481 /* end confdefs.h.  */
26482
26483
26484       #include <windows.h>
26485
26486 int main (void)
26487 {
26488
26489       IdnToUnicode(0, NULL, 0, NULL, 0);
26490
26491  ;
26492  return 0;
26493 }
26494
26495 _ACEOF
26496 if ac_fn_c_try_link "$LINENO"; then :
26497
26498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26499 $as_echo "yes" >&6; }
26500     tst_links_winidn="yes"
26501
26502 else
26503
26504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26505 $as_echo "no" >&6; }
26506     tst_links_winidn="no"
26507
26508 fi
26509 rm -f core conftest.err conftest.$ac_objext \
26510     conftest$ac_exeext conftest.$ac_ext
26511   #
26512   if test "$tst_links_winidn" = "yes"; then
26513
26514 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26515
26516
26517 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26518
26519     IDN_ENABLED=1
26520
26521     curl_idn_msg="enabled (Windows-native)"
26522   else
26523     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26524 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26525     CPPFLAGS="$clean_CPPFLAGS"
26526     LDFLAGS="$clean_LDFLAGS"
26527     LIBS="$clean_LIBS"
26528   fi
26529 fi
26530
26531
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
26533 $as_echo_n "checking whether to build with libidn2... " >&6; }
26534 OPT_IDN="default"
26535
26536 # Check whether --with-libidn2 was given.
26537 if test "${with_libidn2+set}" = set; then :
26538   withval=$with_libidn2; OPT_IDN=$withval
26539 fi
26540
26541 case "$OPT_IDN" in
26542   no)
26543         want_idn="no"
26544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26545 $as_echo "no" >&6; }
26546     ;;
26547   default)
26548         want_idn="yes"
26549     want_idn_path="default"
26550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
26551 $as_echo "(assumed) yes" >&6; }
26552     ;;
26553   yes)
26554         want_idn="yes"
26555     want_idn_path="default"
26556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26557 $as_echo "yes" >&6; }
26558     ;;
26559   *)
26560         want_idn="yes"
26561     want_idn_path="$withval"
26562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26563 $as_echo "yes ($withval)" >&6; }
26564     ;;
26565 esac
26566
26567 if test "$want_idn" = "yes"; then
26568     clean_CPPFLAGS="$CPPFLAGS"
26569   clean_LDFLAGS="$LDFLAGS"
26570   clean_LIBS="$LIBS"
26571   PKGCONFIG="no"
26572   #
26573   if test "$want_idn_path" != "default"; then
26574         IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
26575
26576     if test -n "$PKG_CONFIG"; then
26577       PKGCONFIG="$PKG_CONFIG"
26578     else
26579       if test -n "$ac_tool_prefix"; then
26580   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26581 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26583 $as_echo_n "checking for $ac_word... " >&6; }
26584 if ${ac_cv_path_PKGCONFIG+:} false; then :
26585   $as_echo_n "(cached) " >&6
26586 else
26587   case $PKGCONFIG in
26588   [\\/]* | ?:[\\/]*)
26589   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26590   ;;
26591   *)
26592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26593 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26594 for as_dir in $as_dummy
26595 do
26596   IFS=$as_save_IFS
26597   test -z "$as_dir" && as_dir=.
26598     for ac_exec_ext in '' $ac_executable_extensions; do
26599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26600     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26602     break 2
26603   fi
26604 done
26605   done
26606 IFS=$as_save_IFS
26607
26608   ;;
26609 esac
26610 fi
26611 PKGCONFIG=$ac_cv_path_PKGCONFIG
26612 if test -n "$PKGCONFIG"; then
26613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26614 $as_echo "$PKGCONFIG" >&6; }
26615 else
26616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26617 $as_echo "no" >&6; }
26618 fi
26619
26620
26621 fi
26622 if test -z "$ac_cv_path_PKGCONFIG"; then
26623   ac_pt_PKGCONFIG=$PKGCONFIG
26624   # Extract the first word of "pkg-config", so it can be a program name with args.
26625 set dummy pkg-config; ac_word=$2
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26627 $as_echo_n "checking for $ac_word... " >&6; }
26628 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26629   $as_echo_n "(cached) " >&6
26630 else
26631   case $ac_pt_PKGCONFIG in
26632   [\\/]* | ?:[\\/]*)
26633   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26634   ;;
26635   *)
26636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26637 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26638 for as_dir in $as_dummy
26639 do
26640   IFS=$as_save_IFS
26641   test -z "$as_dir" && as_dir=.
26642     for ac_exec_ext in '' $ac_executable_extensions; do
26643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26644     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26646     break 2
26647   fi
26648 done
26649   done
26650 IFS=$as_save_IFS
26651
26652   ;;
26653 esac
26654 fi
26655 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26656 if test -n "$ac_pt_PKGCONFIG"; then
26657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26658 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26659 else
26660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26661 $as_echo "no" >&6; }
26662 fi
26663
26664   if test "x$ac_pt_PKGCONFIG" = x; then
26665     PKGCONFIG="no"
26666   else
26667     case $cross_compiling:$ac_tool_warned in
26668 yes:)
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26671 ac_tool_warned=yes ;;
26672 esac
26673     PKGCONFIG=$ac_pt_PKGCONFIG
26674   fi
26675 else
26676   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26677 fi
26678
26679     fi
26680
26681     if test "x$PKGCONFIG" != "xno"; then
26682       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
26683 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
26684             itexists=`
26685     if test -n "$IDN_PCDIR"; then
26686       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26687       export PKG_CONFIG_LIBDIR
26688     fi
26689          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
26690
26691       if test -z "$itexists"; then
26692                         PKGCONFIG="no"
26693         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26694 $as_echo "no" >&6; }
26695       else
26696         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26697 $as_echo "found" >&6; }
26698       fi
26699     fi
26700
26701     if test "$PKGCONFIG" != "no"; then
26702       IDN_LIBS=`
26703     if test -n "$IDN_PCDIR"; then
26704       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26705       export PKG_CONFIG_LIBDIR
26706     fi
26707          $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
26708       IDN_LDFLAGS=`
26709     if test -n "$IDN_PCDIR"; then
26710       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26711       export PKG_CONFIG_LIBDIR
26712     fi
26713          $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
26714       IDN_CPPFLAGS=`
26715     if test -n "$IDN_PCDIR"; then
26716       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
26717       export PKG_CONFIG_LIBDIR
26718     fi
26719          $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
26720       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26721     else
26722             IDN_LIBS="-lidn2"
26723       IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
26724       IDN_CPPFLAGS="-I$want_idn_path/include"
26725       IDN_DIR="$want_idn_path/lib$libsuff"
26726     fi
26727   else
26728
26729     if test -n "$PKG_CONFIG"; then
26730       PKGCONFIG="$PKG_CONFIG"
26731     else
26732       if test -n "$ac_tool_prefix"; then
26733   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26734 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26736 $as_echo_n "checking for $ac_word... " >&6; }
26737 if ${ac_cv_path_PKGCONFIG+:} false; then :
26738   $as_echo_n "(cached) " >&6
26739 else
26740   case $PKGCONFIG in
26741   [\\/]* | ?:[\\/]*)
26742   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26743   ;;
26744   *)
26745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26746 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26747 for as_dir in $as_dummy
26748 do
26749   IFS=$as_save_IFS
26750   test -z "$as_dir" && as_dir=.
26751     for ac_exec_ext in '' $ac_executable_extensions; do
26752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26753     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26755     break 2
26756   fi
26757 done
26758   done
26759 IFS=$as_save_IFS
26760
26761   ;;
26762 esac
26763 fi
26764 PKGCONFIG=$ac_cv_path_PKGCONFIG
26765 if test -n "$PKGCONFIG"; then
26766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26767 $as_echo "$PKGCONFIG" >&6; }
26768 else
26769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26770 $as_echo "no" >&6; }
26771 fi
26772
26773
26774 fi
26775 if test -z "$ac_cv_path_PKGCONFIG"; then
26776   ac_pt_PKGCONFIG=$PKGCONFIG
26777   # Extract the first word of "pkg-config", so it can be a program name with args.
26778 set dummy pkg-config; ac_word=$2
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26780 $as_echo_n "checking for $ac_word... " >&6; }
26781 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26782   $as_echo_n "(cached) " >&6
26783 else
26784   case $ac_pt_PKGCONFIG in
26785   [\\/]* | ?:[\\/]*)
26786   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26787   ;;
26788   *)
26789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26790 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26791 for as_dir in $as_dummy
26792 do
26793   IFS=$as_save_IFS
26794   test -z "$as_dir" && as_dir=.
26795     for ac_exec_ext in '' $ac_executable_extensions; do
26796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26797     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26799     break 2
26800   fi
26801 done
26802   done
26803 IFS=$as_save_IFS
26804
26805   ;;
26806 esac
26807 fi
26808 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26809 if test -n "$ac_pt_PKGCONFIG"; then
26810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26811 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26812 else
26813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26814 $as_echo "no" >&6; }
26815 fi
26816
26817   if test "x$ac_pt_PKGCONFIG" = x; then
26818     PKGCONFIG="no"
26819   else
26820     case $cross_compiling:$ac_tool_warned in
26821 yes:)
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26824 ac_tool_warned=yes ;;
26825 esac
26826     PKGCONFIG=$ac_pt_PKGCONFIG
26827   fi
26828 else
26829   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26830 fi
26831
26832     fi
26833
26834     if test "x$PKGCONFIG" != "xno"; then
26835       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
26836 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
26837             itexists=`
26838     if test -n ""; then
26839       PKG_CONFIG_LIBDIR=""
26840       export PKG_CONFIG_LIBDIR
26841     fi
26842          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
26843
26844       if test -z "$itexists"; then
26845                         PKGCONFIG="no"
26846         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26847 $as_echo "no" >&6; }
26848       else
26849         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26850 $as_echo "found" >&6; }
26851       fi
26852     fi
26853
26854     if test "$PKGCONFIG" != "no"; then
26855       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
26856       IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
26857       IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
26858       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
26859     else
26860             IDN_LIBS="-lidn2"
26861     fi
26862   fi
26863   #
26864   if test "$PKGCONFIG" != "no"; then
26865     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
26866 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26867     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26868 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26869     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26870 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26871     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
26872 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
26873   else
26874     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
26875 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
26876     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
26877 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
26878     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
26879 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
26880     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
26881 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
26882   fi
26883   #
26884   CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
26885   LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
26886   LIBS="$IDN_LIBS $LIBS"
26887   #
26888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
26889 $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
26890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26891 /* end confdefs.h.  */
26892
26893
26894 #define idn2_lookup_ul innocuous_idn2_lookup_ul
26895 #ifdef __STDC__
26896 # include <limits.h>
26897 #else
26898 # include <assert.h>
26899 #endif
26900 #undef idn2_lookup_ul
26901 #ifdef __cplusplus
26902 extern "C"
26903 #endif
26904 char idn2_lookup_ul ();
26905 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
26906 choke me
26907 #endif
26908
26909 int main (void)
26910 {
26911 return idn2_lookup_ul ();
26912  ;
26913  return 0;
26914 }
26915
26916 _ACEOF
26917 if ac_fn_c_try_link "$LINENO"; then :
26918
26919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26920 $as_echo "yes" >&6; }
26921     tst_links_libidn="yes"
26922
26923 else
26924
26925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26926 $as_echo "no" >&6; }
26927     tst_links_libidn="no"
26928
26929 fi
26930 rm -f core conftest.err conftest.$ac_objext \
26931     conftest$ac_exeext conftest.$ac_ext
26932   #
26933   for ac_header in idn2.h
26934 do :
26935   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26936 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26938   cat >>confdefs.h <<_ACEOF
26939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26940 _ACEOF
26941
26942 fi
26943
26944 done
26945
26946
26947   if test "$tst_links_libidn" = "yes"; then
26948
26949 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
26950
26951
26952     IDN_ENABLED=1
26953
26954     curl_idn_msg="enabled (libidn2)"
26955     if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
26956       LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
26957       export LD_LIBRARY_PATH
26958       { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
26959 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
26960     fi
26961   else
26962     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26963 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26964     CPPFLAGS="$clean_CPPFLAGS"
26965     LDFLAGS="$clean_LDFLAGS"
26966     LIBS="$clean_LIBS"
26967   fi
26968 fi
26969
26970
26971
26972
26973
26974 OPT_H2="yes"
26975
26976 if test "x$disable_http" = "xyes"; then
26977   # without HTTP, nghttp2 is no use
26978   OPT_H2="no"
26979 fi
26980
26981
26982 # Check whether --with-nghttp2 was given.
26983 if test "${with_nghttp2+set}" = set; then :
26984   withval=$with_nghttp2; OPT_H2=$withval
26985 fi
26986
26987 case "$OPT_H2" in
26988   no)
26989         want_h2="no"
26990     ;;
26991   yes)
26992         want_h2="default"
26993     want_h2_path=""
26994     ;;
26995   *)
26996         want_h2="yes"
26997     want_h2_path="$withval/lib/pkgconfig"
26998     ;;
26999 esac
27000
27001 curl_h2_msg="disabled (--with-nghttp2)"
27002 if test X"$want_h2" != Xno; then
27003     CLEANLDFLAGS="$LDFLAGS"
27004   CLEANCPPFLAGS="$CPPFLAGS"
27005   CLEANLIBS="$LIBS"
27006
27007
27008     if test -n "$PKG_CONFIG"; then
27009       PKGCONFIG="$PKG_CONFIG"
27010     else
27011       if test -n "$ac_tool_prefix"; then
27012   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27013 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27015 $as_echo_n "checking for $ac_word... " >&6; }
27016 if ${ac_cv_path_PKGCONFIG+:} false; then :
27017   $as_echo_n "(cached) " >&6
27018 else
27019   case $PKGCONFIG in
27020   [\\/]* | ?:[\\/]*)
27021   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27022   ;;
27023   *)
27024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27025 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27026 for as_dir in $as_dummy
27027 do
27028   IFS=$as_save_IFS
27029   test -z "$as_dir" && as_dir=.
27030     for ac_exec_ext in '' $ac_executable_extensions; do
27031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27032     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27034     break 2
27035   fi
27036 done
27037   done
27038 IFS=$as_save_IFS
27039
27040   ;;
27041 esac
27042 fi
27043 PKGCONFIG=$ac_cv_path_PKGCONFIG
27044 if test -n "$PKGCONFIG"; then
27045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27046 $as_echo "$PKGCONFIG" >&6; }
27047 else
27048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27049 $as_echo "no" >&6; }
27050 fi
27051
27052
27053 fi
27054 if test -z "$ac_cv_path_PKGCONFIG"; then
27055   ac_pt_PKGCONFIG=$PKGCONFIG
27056   # Extract the first word of "pkg-config", so it can be a program name with args.
27057 set dummy pkg-config; ac_word=$2
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27059 $as_echo_n "checking for $ac_word... " >&6; }
27060 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27061   $as_echo_n "(cached) " >&6
27062 else
27063   case $ac_pt_PKGCONFIG in
27064   [\\/]* | ?:[\\/]*)
27065   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27066   ;;
27067   *)
27068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27069 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27070 for as_dir in $as_dummy
27071 do
27072   IFS=$as_save_IFS
27073   test -z "$as_dir" && as_dir=.
27074     for ac_exec_ext in '' $ac_executable_extensions; do
27075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27076     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27078     break 2
27079   fi
27080 done
27081   done
27082 IFS=$as_save_IFS
27083
27084   ;;
27085 esac
27086 fi
27087 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27088 if test -n "$ac_pt_PKGCONFIG"; then
27089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27090 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27091 else
27092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27093 $as_echo "no" >&6; }
27094 fi
27095
27096   if test "x$ac_pt_PKGCONFIG" = x; then
27097     PKGCONFIG="no"
27098   else
27099     case $cross_compiling:$ac_tool_warned in
27100 yes:)
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27103 ac_tool_warned=yes ;;
27104 esac
27105     PKGCONFIG=$ac_pt_PKGCONFIG
27106   fi
27107 else
27108   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27109 fi
27110
27111     fi
27112
27113     if test "x$PKGCONFIG" != "xno"; then
27114       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27115 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27116             itexists=`
27117     if test -n "$want_h2_path"; then
27118       PKG_CONFIG_LIBDIR="$want_h2_path"
27119       export PKG_CONFIG_LIBDIR
27120     fi
27121          $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27122
27123       if test -z "$itexists"; then
27124                         PKGCONFIG="no"
27125         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27126 $as_echo "no" >&6; }
27127       else
27128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27129 $as_echo "found" >&6; }
27130       fi
27131     fi
27132
27133
27134   if test "$PKGCONFIG" != "no" ; then
27135     LIB_H2=`
27136     if test -n "$want_h2_path"; then
27137       PKG_CONFIG_LIBDIR="$want_h2_path"
27138       export PKG_CONFIG_LIBDIR
27139     fi
27140
27141       $PKGCONFIG --libs-only-l libnghttp2`
27142     { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27143 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27144
27145     CPP_H2=`
27146     if test -n "$want_h2_path"; then
27147       PKG_CONFIG_LIBDIR="$want_h2_path"
27148       export PKG_CONFIG_LIBDIR
27149     fi
27150        $PKGCONFIG --cflags-only-I libnghttp2`
27151     { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27152 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27153
27154     LD_H2=`
27155     if test -n "$want_h2_path"; then
27156       PKG_CONFIG_LIBDIR="$want_h2_path"
27157       export PKG_CONFIG_LIBDIR
27158     fi
27159
27160       $PKGCONFIG --libs-only-L libnghttp2`
27161     { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27162 $as_echo "$as_me: -L is $LD_H2" >&6;}
27163
27164     LDFLAGS="$LDFLAGS $LD_H2"
27165     CPPFLAGS="$CPPFLAGS $CPP_H2"
27166     LIBS="$LIB_H2 $LIBS"
27167
27168     # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27169     # >= 1.0.0
27170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27171 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27172 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27173   $as_echo_n "(cached) " >&6
27174 else
27175   ac_check_lib_save_LIBS=$LIBS
27176 LIBS="-lnghttp2  $LIBS"
27177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27178 /* end confdefs.h.  */
27179
27180
27181 #ifdef __cplusplus
27182 extern "C"
27183 #endif
27184 char nghttp2_option_set_no_recv_client_magic ();
27185 int main (void)
27186 {
27187 return nghttp2_option_set_no_recv_client_magic ();
27188  ;
27189  return 0;
27190 }
27191 _ACEOF
27192 if ac_fn_c_try_link "$LINENO"; then :
27193   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27194 else
27195   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27196 fi
27197 rm -f core conftest.err conftest.$ac_objext \
27198     conftest$ac_exeext conftest.$ac_ext
27199 LIBS=$ac_check_lib_save_LIBS
27200 fi
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27202 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27203 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27204
27205        for ac_header in nghttp2/nghttp2.h
27206 do :
27207   ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27208 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27209   cat >>confdefs.h <<_ACEOF
27210 #define HAVE_NGHTTP2_NGHTTP2_H 1
27211 _ACEOF
27212  curl_h2_msg="enabled (nghttp2)"
27213           NGHTTP2_ENABLED=1
27214
27215 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27216
27217           USE_NGHTTP2=1
27218
27219
27220 fi
27221
27222 done
27223
27224
27225 else
27226           LDFLAGS=$CLEANLDFLAGS
27227         CPPFLAGS=$CLEANCPPFLAGS
27228         LIBS=$CLEANLIBS
27229
27230 fi
27231
27232
27233   else
27234         if test X"$want_h2" != Xdefault; then
27235                   as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27236     fi
27237   fi
27238
27239 fi
27240
27241
27242 OPT_ZSH_FPATH=default
27243
27244 # Check whether --with-zsh-functions-dir was given.
27245 if test "${with_zsh_functions_dir+set}" = set; then :
27246   withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27247 fi
27248
27249 case "$OPT_ZSH_FPATH" in
27250   no)
27251         ;;
27252   default|yes)
27253         ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27254
27255     ;;
27256   *)
27257         ZSH_FUNCTIONS_DIR="$withval"
27258
27259     ;;
27260 esac
27261
27262
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27264 $as_echo_n "checking for ANSI C header files... " >&6; }
27265 if ${ac_cv_header_stdc+:} false; then :
27266   $as_echo_n "(cached) " >&6
27267 else
27268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27269 /* end confdefs.h.  */
27270 #include <stdlib.h>
27271 #include <stdarg.h>
27272 #include <string.h>
27273 #include <float.h>
27274
27275 int main (void)
27276 {
27277
27278  ;
27279  return 0;
27280 }
27281 _ACEOF
27282 if ac_fn_c_try_compile "$LINENO"; then :
27283   ac_cv_header_stdc=yes
27284 else
27285   ac_cv_header_stdc=no
27286 fi
27287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27288
27289 if test $ac_cv_header_stdc = yes; then
27290   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27292 /* end confdefs.h.  */
27293 #include <string.h>
27294
27295 _ACEOF
27296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27297   $EGREP "memchr" >/dev/null 2>&1; then :
27298
27299 else
27300   ac_cv_header_stdc=no
27301 fi
27302 rm -f conftest*
27303
27304 fi
27305
27306 if test $ac_cv_header_stdc = yes; then
27307   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27309 /* end confdefs.h.  */
27310 #include <stdlib.h>
27311
27312 _ACEOF
27313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27314   $EGREP "free" >/dev/null 2>&1; then :
27315
27316 else
27317   ac_cv_header_stdc=no
27318 fi
27319 rm -f conftest*
27320
27321 fi
27322
27323 if test $ac_cv_header_stdc = yes; then
27324   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27325   if test "$cross_compiling" = yes; then :
27326   :
27327 else
27328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27329 /* end confdefs.h.  */
27330 #include <ctype.h>
27331 #include <stdlib.h>
27332 #if ((' ' & 0x0FF) == 0x020)
27333 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27334 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27335 #else
27336 # define ISLOWER(c) \
27337                    (('a' <= (c) && (c) <= 'i') \
27338                      || ('j' <= (c) && (c) <= 'r') \
27339                      || ('s' <= (c) && (c) <= 'z'))
27340 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27341 #endif
27342
27343 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27344 int
27345 main ()
27346 {
27347   int i;
27348   for (i = 0; i < 256; i++)
27349     if (XOR (islower (i), ISLOWER (i))
27350         || toupper (i) != TOUPPER (i))
27351       return 2;
27352   return 0;
27353 }
27354 _ACEOF
27355 if ac_fn_c_try_run "$LINENO"; then :
27356
27357 else
27358   ac_cv_header_stdc=no
27359 fi
27360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27361   conftest.$ac_objext conftest.beam conftest.$ac_ext
27362 fi
27363
27364 fi
27365 fi
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27367 $as_echo "$ac_cv_header_stdc" >&6; }
27368 if test $ac_cv_header_stdc = yes; then
27369
27370 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
27371
27372 fi
27373
27374
27375
27376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27377 $as_echo_n "checking for malloc.h... " >&6; }
27378 if ${curl_cv_header_malloc_h+:} false; then :
27379   $as_echo_n "(cached) " >&6
27380 else
27381
27382     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27383 /* end confdefs.h.  */
27384
27385
27386 #include <malloc.h>
27387
27388 int main (void)
27389 {
27390
27391         void *p = malloc(10);
27392         void *q = calloc(10,10);
27393         free(p);
27394         free(q);
27395
27396  ;
27397  return 0;
27398 }
27399
27400 _ACEOF
27401 if ac_fn_c_try_compile "$LINENO"; then :
27402
27403       curl_cv_header_malloc_h="yes"
27404
27405 else
27406
27407       curl_cv_header_malloc_h="no"
27408
27409 fi
27410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27411
27412 fi
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
27414 $as_echo "$curl_cv_header_malloc_h" >&6; }
27415   if test "$curl_cv_header_malloc_h" = "yes"; then
27416
27417 cat >>confdefs.h <<_ACEOF
27418 #define HAVE_MALLOC_H 1
27419 _ACEOF
27420
27421     #
27422     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27423 /* end confdefs.h.  */
27424
27425
27426 #include <stdlib.h>
27427
27428 int main (void)
27429 {
27430
27431         void *p = malloc(10);
27432         void *q = calloc(10,10);
27433         free(p);
27434         free(q);
27435
27436  ;
27437  return 0;
27438 }
27439
27440 _ACEOF
27441 if ac_fn_c_try_compile "$LINENO"; then :
27442
27443       curl_cv_need_header_malloc_h="no"
27444
27445 else
27446
27447       curl_cv_need_header_malloc_h="yes"
27448
27449 fi
27450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27451     #
27452     case "$curl_cv_need_header_malloc_h" in
27453       yes)
27454
27455 cat >>confdefs.h <<_ACEOF
27456 #define NEED_MALLOC_H 1
27457 _ACEOF
27458
27459         ;;
27460     esac
27461   fi
27462
27463
27464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
27465 $as_echo_n "checking for memory.h... " >&6; }
27466 if ${curl_cv_header_memory_h+:} false; then :
27467   $as_echo_n "(cached) " >&6
27468 else
27469
27470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27471 /* end confdefs.h.  */
27472
27473
27474 #include <memory.h>
27475
27476 int main (void)
27477 {
27478
27479         void *p = malloc(10);
27480         void *q = calloc(10,10);
27481         free(p);
27482         free(q);
27483
27484  ;
27485  return 0;
27486 }
27487
27488 _ACEOF
27489 if ac_fn_c_try_compile "$LINENO"; then :
27490
27491       curl_cv_header_memory_h="yes"
27492
27493 else
27494
27495       curl_cv_header_memory_h="no"
27496
27497 fi
27498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27499
27500 fi
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
27502 $as_echo "$curl_cv_header_memory_h" >&6; }
27503   if test "$curl_cv_header_memory_h" = "yes"; then
27504
27505 cat >>confdefs.h <<_ACEOF
27506 #define HAVE_MEMORY_H 1
27507 _ACEOF
27508
27509     #
27510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27511 /* end confdefs.h.  */
27512
27513
27514 #include <stdlib.h>
27515
27516 int main (void)
27517 {
27518
27519         void *p = malloc(10);
27520         void *q = calloc(10,10);
27521         free(p);
27522         free(q);
27523
27524  ;
27525  return 0;
27526 }
27527
27528 _ACEOF
27529 if ac_fn_c_try_compile "$LINENO"; then :
27530
27531       curl_cv_need_header_memory_h="no"
27532
27533 else
27534
27535       curl_cv_need_header_memory_h="yes"
27536
27537 fi
27538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27539     #
27540     case "$curl_cv_need_header_memory_h" in
27541       yes)
27542
27543 cat >>confdefs.h <<_ACEOF
27544 #define NEED_MEMORY_H 1
27545 _ACEOF
27546
27547         ;;
27548     esac
27549   fi
27550
27551
27552 for ac_header in sys/types.h \
27553         sys/time.h \
27554         sys/select.h \
27555         sys/socket.h \
27556         sys/ioctl.h \
27557         sys/uio.h \
27558         assert.h \
27559         unistd.h \
27560         stdlib.h \
27561         limits.h \
27562         arpa/inet.h \
27563         net/if.h \
27564         netinet/in.h \
27565         sys/un.h \
27566         netinet/tcp.h \
27567         netdb.h \
27568         sys/sockio.h \
27569         sys/stat.h \
27570         sys/param.h \
27571         termios.h \
27572         termio.h \
27573         sgtty.h \
27574         fcntl.h \
27575         alloca.h \
27576         time.h \
27577         io.h \
27578         pwd.h \
27579         utime.h \
27580         sys/utime.h \
27581         sys/poll.h \
27582         poll.h \
27583         socket.h \
27584         sys/resource.h \
27585         libgen.h \
27586         locale.h \
27587         errno.h \
27588         stdbool.h \
27589         arpa/tftp.h \
27590         sys/filio.h \
27591         sys/wait.h \
27592         setjmp.h
27593 do :
27594   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27595 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
27596 #ifdef HAVE_SYS_TYPES_H
27597 #include <sys/types.h>
27598 #endif
27599 #ifdef HAVE_SYS_TIME_H
27600 #include <sys/time.h>
27601 #endif
27602 #ifdef HAVE_SYS_SELECT_H
27603 #include <sys/select.h>
27604 #endif
27605 #ifdef HAVE_SYS_SOCKET_H
27606 #include <sys/socket.h>
27607 #endif
27608 #ifdef HAVE_NETINET_IN_H
27609 #include <netinet/in.h>
27610 #endif
27611 #ifdef HAVE_SYS_UN_H
27612 #include <sys/un.h>
27613 #endif
27614
27615
27616 "
27617 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27618   cat >>confdefs.h <<_ACEOF
27619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27620 _ACEOF
27621
27622 fi
27623
27624 done
27625
27626
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27628 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27629 if ${ac_cv_c_const+:} false; then :
27630   $as_echo_n "(cached) " >&6
27631 else
27632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27633 /* end confdefs.h.  */
27634
27635 int main (void)
27636 {
27637
27638 #ifndef __cplusplus
27639   /* Ultrix mips cc rejects this sort of thing.  */
27640   typedef int charset[2];
27641   const charset cs = { 0, 0 };
27642   /* SunOS 4.1.1 cc rejects this.  */
27643   char const *const *pcpcc;
27644   char **ppc;
27645   /* NEC SVR4.0.2 mips cc rejects this.  */
27646   struct point {int x, y;};
27647   static struct point const zero = {0,0};
27648   /* AIX XL C 1.02.0.0 rejects this.
27649      It does not let you subtract one const X* pointer from another in
27650      an arm of an if-expression whose if-part is not a constant
27651      expression */
27652   const char *g = "string";
27653   pcpcc = &g + (g ? g-g : 0);
27654   /* HPUX 7.0 cc rejects these. */
27655   ++pcpcc;
27656   ppc = (char**) pcpcc;
27657   pcpcc = (char const *const *) ppc;
27658   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27659     char tx;
27660     char *t = &tx;
27661     char const *s = 0 ? (char *) 0 : (char const *) 0;
27662
27663     *t++ = 0;
27664     if (s) return 0;
27665   }
27666   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27667     int x[] = {25, 17};
27668     const int *foo = &x[0];
27669     ++foo;
27670   }
27671   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27672     typedef const int *iptr;
27673     iptr p = 0;
27674     ++p;
27675   }
27676   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27677        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27678     struct s { int j; const int *ap[3]; } bx;
27679     struct s *b = &bx; b->j = 5;
27680   }
27681   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27682     const int foo = 10;
27683     if (!foo) return 0;
27684   }
27685   return !cs[0] && !zero.x;
27686 #endif
27687
27688  ;
27689  return 0;
27690 }
27691 _ACEOF
27692 if ac_fn_c_try_compile "$LINENO"; then :
27693   ac_cv_c_const=yes
27694 else
27695   ac_cv_c_const=no
27696 fi
27697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27698 fi
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27700 $as_echo "$ac_cv_c_const" >&6; }
27701 if test $ac_cv_c_const = no; then
27702
27703 $as_echo "#define const /**/" >>confdefs.h
27704
27705 fi
27706
27707
27708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
27709 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
27710 if ${curl_cv_variadic_macros_c99+:} false; then :
27711   $as_echo_n "(cached) " >&6
27712 else
27713
27714     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27715 /* end confdefs.h.  */
27716
27717
27718 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
27719 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
27720         int fun3(int arg1, int arg2, int arg3);
27721         int fun2(int arg1, int arg2);
27722         int fun3(int arg1, int arg2, int arg3)
27723         { return arg1 + arg2 + arg3; }
27724         int fun2(int arg1, int arg2)
27725         { return arg1 + arg2; }
27726
27727 int main (void)
27728 {
27729
27730         int res3 = c99_vmacro3(1, 2, 3);
27731         int res2 = c99_vmacro2(1, 2);
27732
27733  ;
27734  return 0;
27735 }
27736
27737 _ACEOF
27738 if ac_fn_c_try_compile "$LINENO"; then :
27739
27740       curl_cv_variadic_macros_c99="yes"
27741
27742 else
27743
27744       curl_cv_variadic_macros_c99="no"
27745
27746 fi
27747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27748
27749 fi
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
27751 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
27752   case "$curl_cv_variadic_macros_c99" in
27753     yes)
27754
27755 cat >>confdefs.h <<_ACEOF
27756 #define HAVE_VARIADIC_MACROS_C99 1
27757 _ACEOF
27758
27759       ;;
27760   esac
27761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
27762 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
27763 if ${curl_cv_variadic_macros_gcc+:} false; then :
27764   $as_echo_n "(cached) " >&6
27765 else
27766
27767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27768 /* end confdefs.h.  */
27769
27770
27771 #define gcc_vmacro3(first, args...) fun3(first, args)
27772 #define gcc_vmacro2(first, args...) fun2(first, args)
27773         int fun3(int arg1, int arg2, int arg3);
27774         int fun2(int arg1, int arg2);
27775         int fun3(int arg1, int arg2, int arg3)
27776         { return arg1 + arg2 + arg3; }
27777         int fun2(int arg1, int arg2)
27778         { return arg1 + arg2; }
27779
27780 int main (void)
27781 {
27782
27783         int res3 = gcc_vmacro3(1, 2, 3);
27784         int res2 = gcc_vmacro2(1, 2);
27785
27786  ;
27787  return 0;
27788 }
27789
27790 _ACEOF
27791 if ac_fn_c_try_compile "$LINENO"; then :
27792
27793       curl_cv_variadic_macros_gcc="yes"
27794
27795 else
27796
27797       curl_cv_variadic_macros_gcc="no"
27798
27799 fi
27800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27801
27802 fi
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
27804 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
27805   case "$curl_cv_variadic_macros_gcc" in
27806     yes)
27807
27808 cat >>confdefs.h <<_ACEOF
27809 #define HAVE_VARIADIC_MACROS_GCC 1
27810 _ACEOF
27811
27812       ;;
27813   esac
27814
27815 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27816 if test "x$ac_cv_type_size_t" = xyes; then :
27817
27818 else
27819
27820 cat >>confdefs.h <<_ACEOF
27821 #define size_t unsigned int
27822 _ACEOF
27823
27824 fi
27825
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
27827 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
27828 if ${ac_cv_header_time+:} false; then :
27829   $as_echo_n "(cached) " >&6
27830 else
27831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27832 /* end confdefs.h.  */
27833 #include <sys/types.h>
27834 #include <sys/time.h>
27835 #include <time.h>
27836
27837 int main (void)
27838 {
27839 if ((struct tm *) 0)
27840 return 0;
27841  ;
27842  return 0;
27843 }
27844 _ACEOF
27845 if ac_fn_c_try_compile "$LINENO"; then :
27846   ac_cv_header_time=yes
27847 else
27848   ac_cv_header_time=no
27849 fi
27850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27851 fi
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
27853 $as_echo "$ac_cv_header_time" >&6; }
27854 if test $ac_cv_header_time = yes; then
27855
27856 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
27857
27858 fi
27859
27860
27861         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
27862 do :
27863   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27864 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27865 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27866   cat >>confdefs.h <<_ACEOF
27867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27868 _ACEOF
27869
27870 fi
27871
27872 done
27873
27874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
27875 $as_echo_n "checking for struct timeval... " >&6; }
27876 if ${curl_cv_struct_timeval+:} false; then :
27877   $as_echo_n "(cached) " >&6
27878 else
27879
27880     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27881 /* end confdefs.h.  */
27882
27883
27884 #undef inline
27885 #ifdef HAVE_WINDOWS_H
27886 #ifndef WIN32_LEAN_AND_MEAN
27887 #define WIN32_LEAN_AND_MEAN
27888 #endif
27889 #include <windows.h>
27890 #ifdef HAVE_WINSOCK2_H
27891 #include <winsock2.h>
27892 #else
27893 #ifdef HAVE_WINSOCK_H
27894 #include <winsock.h>
27895 #endif
27896 #endif
27897 #endif
27898 #ifdef HAVE_SYS_TYPES_H
27899 #include <sys/types.h>
27900 #endif
27901 #ifdef HAVE_SYS_TIME_H
27902 #include <sys/time.h>
27903 #ifdef TIME_WITH_SYS_TIME
27904 #include <time.h>
27905 #endif
27906 #else
27907 #ifdef HAVE_TIME_H
27908 #include <time.h>
27909 #endif
27910 #endif
27911 #ifdef HAVE_SYS_SOCKET_H
27912 #include <sys/socket.h>
27913 #endif
27914
27915 int main (void)
27916 {
27917
27918         struct timeval ts;
27919         ts.tv_sec  = 0;
27920         ts.tv_usec = 0;
27921
27922  ;
27923  return 0;
27924 }
27925
27926 _ACEOF
27927 if ac_fn_c_try_compile "$LINENO"; then :
27928
27929       curl_cv_struct_timeval="yes"
27930
27931 else
27932
27933       curl_cv_struct_timeval="no"
27934
27935 fi
27936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27937
27938 fi
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
27940 $as_echo "$curl_cv_struct_timeval" >&6; }
27941   case "$curl_cv_struct_timeval" in
27942     yes)
27943
27944 cat >>confdefs.h <<_ACEOF
27945 #define HAVE_STRUCT_TIMEVAL 1
27946 _ACEOF
27947
27948       ;;
27949   esac
27950
27951
27952
27953     if test "x$cross_compiling" != xyes; then
27954
27955             { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
27956 $as_echo_n "checking run-time libs availability... " >&6; }
27957     if test "$cross_compiling" = yes; then :
27958   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27960 as_fn_error $? "cannot run test program while cross compiling
27961 See \`config.log' for more details" "$LINENO" 5; }
27962 else
27963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27964 /* end confdefs.h.  */
27965
27966 main()
27967 {
27968   return 0;
27969 }
27970
27971 _ACEOF
27972 if ac_fn_c_try_run "$LINENO"; then :
27973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
27974 $as_echo "fine" >&6; }
27975 else
27976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
27977 $as_echo "failed" >&6; }
27978     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
27979
27980 fi
27981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27982   conftest.$ac_objext conftest.beam conftest.$ac_ext
27983 fi
27984
27985
27986       fi
27987
27988
27989 # The cast to long int works around a bug in the HP C Compiler
27990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27992 # This bug is HP SR number 8606223364.
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
27994 $as_echo_n "checking size of size_t... " >&6; }
27995 if ${ac_cv_sizeof_size_t+:} false; then :
27996   $as_echo_n "(cached) " >&6
27997 else
27998   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
27999
28000 else
28001   if test "$ac_cv_type_size_t" = yes; then
28002      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28004 as_fn_error 77 "cannot compute sizeof (size_t)
28005 See \`config.log' for more details" "$LINENO" 5; }
28006    else
28007      ac_cv_sizeof_size_t=0
28008    fi
28009 fi
28010
28011 fi
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28013 $as_echo "$ac_cv_sizeof_size_t" >&6; }
28014
28015
28016
28017 cat >>confdefs.h <<_ACEOF
28018 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28019 _ACEOF
28020
28021
28022 # The cast to long int works around a bug in the HP C Compiler
28023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28025 # This bug is HP SR number 8606223364.
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28027 $as_echo_n "checking size of long... " >&6; }
28028 if ${ac_cv_sizeof_long+:} false; then :
28029   $as_echo_n "(cached) " >&6
28030 else
28031   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
28032
28033 else
28034   if test "$ac_cv_type_long" = yes; then
28035      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28037 as_fn_error 77 "cannot compute sizeof (long)
28038 See \`config.log' for more details" "$LINENO" 5; }
28039    else
28040      ac_cv_sizeof_long=0
28041    fi
28042 fi
28043
28044 fi
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28046 $as_echo "$ac_cv_sizeof_long" >&6; }
28047
28048
28049
28050 cat >>confdefs.h <<_ACEOF
28051 #define SIZEOF_LONG $ac_cv_sizeof_long
28052 _ACEOF
28053
28054
28055 # The cast to long int works around a bug in the HP C Compiler
28056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28058 # This bug is HP SR number 8606223364.
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28060 $as_echo_n "checking size of int... " >&6; }
28061 if ${ac_cv_sizeof_int+:} false; then :
28062   $as_echo_n "(cached) " >&6
28063 else
28064   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
28065
28066 else
28067   if test "$ac_cv_type_int" = yes; then
28068      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28070 as_fn_error 77 "cannot compute sizeof (int)
28071 See \`config.log' for more details" "$LINENO" 5; }
28072    else
28073      ac_cv_sizeof_int=0
28074    fi
28075 fi
28076
28077 fi
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28079 $as_echo "$ac_cv_sizeof_int" >&6; }
28080
28081
28082
28083 cat >>confdefs.h <<_ACEOF
28084 #define SIZEOF_INT $ac_cv_sizeof_int
28085 _ACEOF
28086
28087
28088 # The cast to long int works around a bug in the HP C Compiler
28089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28091 # This bug is HP SR number 8606223364.
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28093 $as_echo_n "checking size of short... " >&6; }
28094 if ${ac_cv_sizeof_short+:} false; then :
28095   $as_echo_n "(cached) " >&6
28096 else
28097   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
28098
28099 else
28100   if test "$ac_cv_type_short" = yes; then
28101      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28103 as_fn_error 77 "cannot compute sizeof (short)
28104 See \`config.log' for more details" "$LINENO" 5; }
28105    else
28106      ac_cv_sizeof_short=0
28107    fi
28108 fi
28109
28110 fi
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28112 $as_echo "$ac_cv_sizeof_short" >&6; }
28113
28114
28115
28116 cat >>confdefs.h <<_ACEOF
28117 #define SIZEOF_SHORT $ac_cv_sizeof_short
28118 _ACEOF
28119
28120
28121 # The cast to long int works around a bug in the HP C Compiler
28122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28124 # This bug is HP SR number 8606223364.
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28126 $as_echo_n "checking size of time_t... " >&6; }
28127 if ${ac_cv_sizeof_time_t+:} false; then :
28128   $as_echo_n "(cached) " >&6
28129 else
28130   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
28131
28132 else
28133   if test "$ac_cv_type_time_t" = yes; then
28134      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28136 as_fn_error 77 "cannot compute sizeof (time_t)
28137 See \`config.log' for more details" "$LINENO" 5; }
28138    else
28139      ac_cv_sizeof_time_t=0
28140    fi
28141 fi
28142
28143 fi
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28145 $as_echo "$ac_cv_sizeof_time_t" >&6; }
28146
28147
28148
28149 cat >>confdefs.h <<_ACEOF
28150 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28151 _ACEOF
28152
28153
28154 # The cast to long int works around a bug in the HP C Compiler
28155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28157 # This bug is HP SR number 8606223364.
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28159 $as_echo_n "checking size of off_t... " >&6; }
28160 if ${ac_cv_sizeof_off_t+:} false; then :
28161   $as_echo_n "(cached) " >&6
28162 else
28163   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
28164
28165 else
28166   if test "$ac_cv_type_off_t" = yes; then
28167      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28169 as_fn_error 77 "cannot compute sizeof (off_t)
28170 See \`config.log' for more details" "$LINENO" 5; }
28171    else
28172      ac_cv_sizeof_off_t=0
28173    fi
28174 fi
28175
28176 fi
28177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28178 $as_echo "$ac_cv_sizeof_off_t" >&6; }
28179
28180
28181
28182 cat >>confdefs.h <<_ACEOF
28183 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28184 _ACEOF
28185
28186
28187
28188 o=$CPPFLAGS
28189 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
28190 # The cast to long int works around a bug in the HP C Compiler
28191 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28192 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28193 # This bug is HP SR number 8606223364.
28194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28195 $as_echo_n "checking size of curl_off_t... " >&6; }
28196 if ${ac_cv_sizeof_curl_off_t+:} false; then :
28197   $as_echo_n "(cached) " >&6
28198 else
28199   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (curl_off_t))" "ac_cv_sizeof_curl_off_t"        "
28200 #include <curl/system.h>
28201
28202 "; then :
28203
28204 else
28205   if test "$ac_cv_type_curl_off_t" = yes; then
28206      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28208 as_fn_error 77 "cannot compute sizeof (curl_off_t)
28209 See \`config.log' for more details" "$LINENO" 5; }
28210    else
28211      ac_cv_sizeof_curl_off_t=0
28212    fi
28213 fi
28214
28215 fi
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28217 $as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28218
28219
28220
28221 cat >>confdefs.h <<_ACEOF
28222 #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28223 _ACEOF
28224
28225
28226 CPPFLAGS=$o
28227
28228 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28229 if test "x$ac_cv_type_long_long" = xyes; then :
28230
28231 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28232
28233    longlong="yes"
28234
28235 fi
28236
28237
28238 if test "xyes" = "x$longlong"; then
28239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28240 $as_echo_n "checking if numberLL works... " >&6; }
28241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28242 /* end confdefs.h.  */
28243
28244
28245
28246 int main (void)
28247 {
28248
28249       long long val = 1000LL;
28250
28251  ;
28252  return 0;
28253 }
28254
28255 _ACEOF
28256 if ac_fn_c_try_compile "$LINENO"; then :
28257
28258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28259 $as_echo "yes" >&6; }
28260
28261 $as_echo "#define HAVE_LL 1" >>confdefs.h
28262
28263
28264 else
28265
28266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28267 $as_echo "no" >&6; }
28268
28269 fi
28270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28271 fi
28272
28273
28274 # check for ssize_t
28275 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28276 if test "x$ac_cv_type_ssize_t" = xyes; then :
28277
28278 else
28279
28280 $as_echo "#define ssize_t int" >>confdefs.h
28281
28282 fi
28283
28284
28285 # check for bool type
28286 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28287 #ifdef HAVE_SYS_TYPES_H
28288 #include <sys/types.h>
28289 #endif
28290 #ifdef HAVE_STDBOOL_H
28291 #include <stdbool.h>
28292 #endif
28293
28294 "
28295 if test "x$ac_cv_type_bool" = xyes; then :
28296
28297
28298 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28299
28300
28301 fi
28302
28303
28304
28305 curl_includes_ws2tcpip="\
28306 /* includes start */
28307 #ifdef HAVE_WINDOWS_H
28308 #  ifndef WIN32_LEAN_AND_MEAN
28309 #    define WIN32_LEAN_AND_MEAN
28310 #  endif
28311 #  include <windows.h>
28312 #  ifdef HAVE_WINSOCK2_H
28313 #    include <winsock2.h>
28314 #    ifdef HAVE_WS2TCPIP_H
28315 #       include <ws2tcpip.h>
28316 #    endif
28317 #  endif
28318 #endif
28319 /* includes end */"
28320
28321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28322 $as_echo_n "checking for windows.h... " >&6; }
28323 if ${curl_cv_header_windows_h+:} false; then :
28324   $as_echo_n "(cached) " >&6
28325 else
28326
28327     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28328 /* end confdefs.h.  */
28329
28330
28331 #undef inline
28332 #ifndef WIN32_LEAN_AND_MEAN
28333 #define WIN32_LEAN_AND_MEAN
28334 #endif
28335 #include <windows.h>
28336
28337 int main (void)
28338 {
28339
28340 #if defined(__CYGWIN__) || defined(__CEGCC__)
28341         HAVE_WINDOWS_H shall not be defined.
28342 #else
28343         int dummy=2*WINVER;
28344 #endif
28345
28346  ;
28347  return 0;
28348 }
28349
28350 _ACEOF
28351 if ac_fn_c_try_compile "$LINENO"; then :
28352
28353       curl_cv_header_windows_h="yes"
28354
28355 else
28356
28357       curl_cv_header_windows_h="no"
28358
28359 fi
28360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28361
28362 fi
28363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28364 $as_echo "$curl_cv_header_windows_h" >&6; }
28365   case "$curl_cv_header_windows_h" in
28366     yes)
28367
28368 cat >>confdefs.h <<_ACEOF
28369 #define HAVE_WINDOWS_H 1
28370 _ACEOF
28371
28372       ;;
28373   esac
28374
28375
28376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
28377 $as_echo_n "checking for winsock2.h... " >&6; }
28378 if ${curl_cv_header_winsock2_h+:} false; then :
28379   $as_echo_n "(cached) " >&6
28380 else
28381
28382     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28383 /* end confdefs.h.  */
28384
28385
28386 #undef inline
28387 #ifndef WIN32_LEAN_AND_MEAN
28388 #define WIN32_LEAN_AND_MEAN
28389 #endif
28390 #include <windows.h>
28391 #include <winsock2.h>
28392
28393 int main (void)
28394 {
28395
28396 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28397         HAVE_WINSOCK2_H shall not be defined.
28398 #else
28399         int dummy=2*IPPROTO_ESP;
28400 #endif
28401
28402  ;
28403  return 0;
28404 }
28405
28406 _ACEOF
28407 if ac_fn_c_try_compile "$LINENO"; then :
28408
28409       curl_cv_header_winsock2_h="yes"
28410
28411 else
28412
28413       curl_cv_header_winsock2_h="no"
28414
28415 fi
28416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28417
28418 fi
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
28420 $as_echo "$curl_cv_header_winsock2_h" >&6; }
28421   case "$curl_cv_header_winsock2_h" in
28422     yes)
28423
28424 cat >>confdefs.h <<_ACEOF
28425 #define HAVE_WINSOCK2_H 1
28426 _ACEOF
28427
28428       ;;
28429   esac
28430
28431
28432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
28433 $as_echo_n "checking for ws2tcpip.h... " >&6; }
28434 if ${curl_cv_header_ws2tcpip_h+:} false; then :
28435   $as_echo_n "(cached) " >&6
28436 else
28437
28438     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28439 /* end confdefs.h.  */
28440
28441
28442 #undef inline
28443 #ifndef WIN32_LEAN_AND_MEAN
28444 #define WIN32_LEAN_AND_MEAN
28445 #endif
28446 #include <windows.h>
28447 #include <winsock2.h>
28448 #include <ws2tcpip.h>
28449
28450 int main (void)
28451 {
28452
28453 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
28454         HAVE_WS2TCPIP_H shall not be defined.
28455 #else
28456         int dummy=2*IP_PKTINFO;
28457 #endif
28458
28459  ;
28460  return 0;
28461 }
28462
28463 _ACEOF
28464 if ac_fn_c_try_compile "$LINENO"; then :
28465
28466       curl_cv_header_ws2tcpip_h="yes"
28467
28468 else
28469
28470       curl_cv_header_ws2tcpip_h="no"
28471
28472 fi
28473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28474
28475 fi
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
28477 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
28478   case "$curl_cv_header_ws2tcpip_h" in
28479     yes)
28480
28481 cat >>confdefs.h <<_ACEOF
28482 #define HAVE_WS2TCPIP_H 1
28483 _ACEOF
28484
28485       ;;
28486   esac
28487
28488
28489
28490 curl_includes_sys_socket="\
28491 /* includes start */
28492 #ifdef HAVE_SYS_TYPES_H
28493 #  include <sys/types.h>
28494 #endif
28495 #ifdef HAVE_SYS_SOCKET_H
28496 #  include <sys/socket.h>
28497 #endif
28498 /* includes end */"
28499   for ac_header in sys/types.h sys/socket.h
28500 do :
28501   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28502 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
28503 "
28504 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28505   cat >>confdefs.h <<_ACEOF
28506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28507 _ACEOF
28508
28509 fi
28510
28511 done
28512
28513
28514
28515 curl_preprocess_callconv="\
28516 /* preprocess start */
28517 #ifdef HAVE_WINDOWS_H
28518 #  define FUNCALLCONV __stdcall
28519 #else
28520 #  define FUNCALLCONV
28521 #endif
28522 /* preprocess end */"
28523
28524
28525         #
28526     #
28527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
28528 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
28529   curl_typeof_curl_socklen_t="unknown"
28530   for arg1 in int SOCKET; do
28531     for arg2 in 'struct sockaddr' void; do
28532       for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
28533         if test "$curl_typeof_curl_socklen_t" = "unknown"; then
28534           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28535 /* end confdefs.h.  */
28536
28537
28538               $curl_includes_ws2tcpip
28539               $curl_includes_sys_socket
28540               $curl_preprocess_callconv
28541               extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
28542
28543 int main (void)
28544 {
28545
28546               $t *lenptr = 0;
28547               if(0 != getpeername(0, 0, lenptr))
28548                 return 1;
28549
28550  ;
28551  return 0;
28552 }
28553
28554 _ACEOF
28555 if ac_fn_c_try_compile "$LINENO"; then :
28556
28557             curl_typeof_curl_socklen_t="$t"
28558
28559 fi
28560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28561         fi
28562       done
28563     done
28564   done
28565   for t in socklen_t int; do
28566     if test "$curl_typeof_curl_socklen_t" = "void"; then
28567       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28568 /* end confdefs.h.  */
28569
28570
28571           $curl_includes_sys_socket
28572           typedef $t curl_socklen_t;
28573
28574 int main (void)
28575 {
28576
28577           curl_socklen_t dummy;
28578
28579  ;
28580  return 0;
28581 }
28582
28583 _ACEOF
28584 if ac_fn_c_try_compile "$LINENO"; then :
28585
28586         curl_typeof_curl_socklen_t="$t"
28587
28588 fi
28589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28590     fi
28591   done
28592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
28593 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
28594   if test "$curl_typeof_curl_socklen_t" = "void" ||
28595     test "$curl_typeof_curl_socklen_t" = "unknown"; then
28596     as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
28597   fi
28598   #
28599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
28600 $as_echo_n "checking size of curl_socklen_t... " >&6; }
28601   curl_sizeof_curl_socklen_t="unknown"
28602   curl_pull_headers_socklen_t="unknown"
28603   if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
28604     tst_pull_header_checks='none ws2tcpip'
28605     tst_size_checks='4'
28606   else
28607     tst_pull_header_checks='none systypes syssocket'
28608     tst_size_checks='4 8 2'
28609   fi
28610   for tst_size in $tst_size_checks; do
28611     for tst_pull_headers in $tst_pull_header_checks; do
28612       if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28613         case $tst_pull_headers in
28614           ws2tcpip)
28615             tmp_includes="$curl_includes_ws2tcpip"
28616             ;;
28617           systypes)
28618             tmp_includes="$curl_includes_sys_types"
28619             ;;
28620           syssocket)
28621             tmp_includes="$curl_includes_sys_socket"
28622             ;;
28623           *)
28624             tmp_includes=""
28625             ;;
28626         esac
28627         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28628 /* end confdefs.h.  */
28629
28630
28631             $tmp_includes
28632             typedef $curl_typeof_curl_socklen_t curl_socklen_t;
28633             typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
28634
28635 int main (void)
28636 {
28637
28638             curl_socklen_t dummy;
28639
28640  ;
28641  return 0;
28642 }
28643
28644 _ACEOF
28645 if ac_fn_c_try_compile "$LINENO"; then :
28646
28647           curl_sizeof_curl_socklen_t="$tst_size"
28648           curl_pull_headers_socklen_t="$tst_pull_headers"
28649
28650 fi
28651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28652       fi
28653     done
28654   done
28655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
28656 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
28657   if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
28658     as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
28659   fi
28660   #
28661   case $curl_pull_headers_socklen_t in
28662     ws2tcpip)
28663
28664 cat >>confdefs.h <<_EOF
28665 #define CURL_PULL_WS2TCPIP_H 1
28666 _EOF
28667
28668       ;;
28669     systypes)
28670
28671 cat >>confdefs.h <<_EOF
28672 #define CURL_PULL_SYS_TYPES_H 1
28673 _EOF
28674
28675       ;;
28676     syssocket)
28677
28678 cat >>confdefs.h <<_EOF
28679 #define CURL_PULL_SYS_TYPES_H 1
28680 _EOF
28681
28682
28683 cat >>confdefs.h <<_EOF
28684 #define CURL_PULL_SYS_SOCKET_H 1
28685 _EOF
28686
28687       ;;
28688   esac
28689
28690 cat >>confdefs.h <<_EOF
28691 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
28692 _EOF
28693
28694
28695 cat >>confdefs.h <<_EOF
28696 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
28697 _EOF
28698
28699
28700
28701
28702 curl_includes_poll="\
28703 /* includes start */
28704 #ifdef HAVE_SYS_TYPES_H
28705 #  include <sys/types.h>
28706 #endif
28707 #ifdef HAVE_POLL_H
28708 #  include <poll.h>
28709 #endif
28710 #ifdef HAVE_SYS_POLL_H
28711 #  include <sys/poll.h>
28712 #endif
28713 /* includes end */"
28714   for ac_header in sys/types.h poll.h sys/poll.h
28715 do :
28716   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28717 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
28718 "
28719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28720   cat >>confdefs.h <<_ACEOF
28721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28722 _ACEOF
28723
28724 fi
28725
28726 done
28727
28728
28729
28730     #
28731   tst_poll_events_macro_defined="unknown"
28732   #
28733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28734 /* end confdefs.h.  */
28735
28736
28737       $curl_includes_poll
28738
28739 int main (void)
28740 {
28741
28742 #if defined(events) || defined(revents)
28743       return 0;
28744 #else
28745       force compilation error
28746 #endif
28747
28748  ;
28749  return 0;
28750 }
28751
28752 _ACEOF
28753 if ac_fn_c_try_compile "$LINENO"; then :
28754
28755     tst_poll_events_macro_defined="yes"
28756
28757 else
28758
28759     tst_poll_events_macro_defined="no"
28760
28761 fi
28762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28763   #
28764   if test "$tst_poll_events_macro_defined" = "yes"; then
28765     if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
28766
28767 cat >>confdefs.h <<_EOF
28768 #define CURL_PULL_SYS_POLL_H 1
28769 _EOF
28770
28771     fi
28772   fi
28773   #
28774
28775
28776
28777   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
28778 #undef inline
28779 #ifdef HAVE_WINDOWS_H
28780 #ifndef WIN32_LEAN_AND_MEAN
28781 #define WIN32_LEAN_AND_MEAN
28782 #endif
28783 #include <windows.h>
28784 #ifdef HAVE_WINSOCK2_H
28785 #include <winsock2.h>
28786 #else
28787 #ifdef HAVE_WINSOCK_H
28788 #include <winsock.h>
28789 #endif
28790 #endif
28791 #else
28792 #ifdef HAVE_SYS_TYPES_H
28793 #include <sys/types.h>
28794 #endif
28795 #ifdef HAVE_SYS_SOCKET_H
28796 #include <sys/socket.h>
28797 #endif
28798 #ifdef HAVE_NETINET_IN_H
28799 #include <netinet/in.h>
28800 #endif
28801 #ifdef HAVE_ARPA_INET_H
28802 #include <arpa/inet.h>
28803 #endif
28804 #endif
28805
28806 "
28807 if test "x$ac_cv_type_in_addr_t" = xyes; then :
28808
28809 else
28810
28811         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
28812 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
28813 if ${curl_cv_in_addr_t_equiv+:} false; then :
28814   $as_echo_n "(cached) " >&6
28815 else
28816
28817       curl_cv_in_addr_t_equiv="unknown"
28818       for t in "unsigned long" int size_t unsigned long; do
28819         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
28820           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28821 /* end confdefs.h.  */
28822
28823
28824 #undef inline
28825 #ifdef HAVE_WINDOWS_H
28826 #ifndef WIN32_LEAN_AND_MEAN
28827 #define WIN32_LEAN_AND_MEAN
28828 #endif
28829 #include <windows.h>
28830 #ifdef HAVE_WINSOCK2_H
28831 #include <winsock2.h>
28832 #else
28833 #ifdef HAVE_WINSOCK_H
28834 #include <winsock.h>
28835 #endif
28836 #endif
28837 #else
28838 #ifdef HAVE_SYS_TYPES_H
28839 #include <sys/types.h>
28840 #endif
28841 #ifdef HAVE_SYS_SOCKET_H
28842 #include <sys/socket.h>
28843 #endif
28844 #ifdef HAVE_NETINET_IN_H
28845 #include <netinet/in.h>
28846 #endif
28847 #ifdef HAVE_ARPA_INET_H
28848 #include <arpa/inet.h>
28849 #endif
28850 #endif
28851
28852 int main (void)
28853 {
28854
28855               $t data = inet_addr ("1.2.3.4");
28856
28857  ;
28858  return 0;
28859 }
28860
28861 _ACEOF
28862 if ac_fn_c_try_link "$LINENO"; then :
28863
28864             curl_cv_in_addr_t_equiv="$t"
28865
28866 fi
28867 rm -f core conftest.err conftest.$ac_objext \
28868     conftest$ac_exeext conftest.$ac_ext
28869         fi
28870       done
28871
28872 fi
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
28874 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
28875     case "$curl_cv_in_addr_t_equiv" in
28876       unknown)
28877         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
28878         ;;
28879       *)
28880
28881 cat >>confdefs.h <<_ACEOF
28882 #define in_addr_t $curl_cv_in_addr_t_equiv
28883 _ACEOF
28884
28885         ;;
28886     esac
28887
28888 fi
28889
28890
28891
28892
28893    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
28894 #undef inline
28895 #ifdef HAVE_WINDOWS_H
28896 #ifndef WIN32_LEAN_AND_MEAN
28897 #define WIN32_LEAN_AND_MEAN
28898 #endif
28899 #include <windows.h>
28900 #ifdef HAVE_WINSOCK2_H
28901 #include <winsock2.h>
28902 #endif
28903 #else
28904 #ifdef HAVE_SYS_TYPES_H
28905 #include <sys/types.h>
28906 #endif
28907 #ifdef HAVE_SYS_SOCKET_H
28908 #include <sys/socket.h>
28909 #endif
28910 #ifdef HAVE_NETINET_IN_H
28911 #include <netinet/in.h>
28912 #endif
28913 #ifdef HAVE_ARPA_INET_H
28914 #include <arpa/inet.h>
28915 #endif
28916 #endif
28917
28918 "
28919 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
28920
28921 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
28922
28923 fi
28924
28925
28926
28927
28928   for ac_header in signal.h
28929 do :
28930   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
28931 if test "x$ac_cv_header_signal_h" = xyes; then :
28932   cat >>confdefs.h <<_ACEOF
28933 #define HAVE_SIGNAL_H 1
28934 _ACEOF
28935
28936 fi
28937
28938 done
28939
28940   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
28941 #ifdef HAVE_SIGNAL_H
28942 #include <signal.h>
28943 #endif
28944
28945 "
28946 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
28947
28948
28949 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
28950
28951
28952 fi
28953
28954   case "$ac_cv_type_sig_atomic_t" in
28955     yes)
28956       #
28957       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
28958 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
28959       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28960 /* end confdefs.h.  */
28961
28962
28963 #ifdef HAVE_SIGNAL_H
28964 #include <signal.h>
28965 #endif
28966
28967 int main (void)
28968 {
28969
28970           static volatile sig_atomic_t dummy = 0;
28971
28972  ;
28973  return 0;
28974 }
28975
28976 _ACEOF
28977 if ac_fn_c_try_link "$LINENO"; then :
28978
28979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28980 $as_echo "no" >&6; }
28981         curl_cv_sig_atomic_t_volatile="no"
28982
28983 else
28984
28985         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28986 $as_echo "yes" >&6; }
28987         curl_cv_sig_atomic_t_volatile="yes"
28988
28989 fi
28990 rm -f core conftest.err conftest.$ac_objext \
28991     conftest$ac_exeext conftest.$ac_ext
28992       #
28993       if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
28994
28995 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
28996
28997       fi
28998       ;;
28999   esac
29000
29001
29002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29003 $as_echo_n "checking return type of signal handlers... " >&6; }
29004 if ${ac_cv_type_signal+:} false; then :
29005   $as_echo_n "(cached) " >&6
29006 else
29007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29008 /* end confdefs.h.  */
29009 #include <sys/types.h>
29010 #include <signal.h>
29011
29012 int main (void)
29013 {
29014 return *(signal (0, 0)) (0) == 1;
29015  ;
29016  return 0;
29017 }
29018 _ACEOF
29019 if ac_fn_c_try_compile "$LINENO"; then :
29020   ac_cv_type_signal=int
29021 else
29022   ac_cv_type_signal=void
29023 fi
29024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29025 fi
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29027 $as_echo "$ac_cv_type_signal" >&6; }
29028
29029 cat >>confdefs.h <<_ACEOF
29030 #define RETSIGTYPE $ac_cv_type_signal
29031 _ACEOF
29032
29033
29034
29035
29036     for ac_header in sys/select.h sys/socket.h
29037 do :
29038   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29039 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29041   cat >>confdefs.h <<_ACEOF
29042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29043 _ACEOF
29044
29045 fi
29046
29047 done
29048
29049   #
29050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29051 $as_echo_n "checking for select... " >&6; }
29052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29053 /* end confdefs.h.  */
29054
29055
29056 #undef inline
29057 #ifdef HAVE_WINDOWS_H
29058 #ifndef WIN32_LEAN_AND_MEAN
29059 #define WIN32_LEAN_AND_MEAN
29060 #endif
29061 #include <windows.h>
29062 #ifdef HAVE_WINSOCK2_H
29063 #include <winsock2.h>
29064 #else
29065 #ifdef HAVE_WINSOCK_H
29066 #include <winsock.h>
29067 #endif
29068 #endif
29069 #endif
29070 #ifdef HAVE_SYS_TYPES_H
29071 #include <sys/types.h>
29072 #endif
29073 #ifdef HAVE_SYS_TIME_H
29074 #include <sys/time.h>
29075 #ifdef TIME_WITH_SYS_TIME
29076 #include <time.h>
29077 #endif
29078 #else
29079 #ifdef HAVE_TIME_H
29080 #include <time.h>
29081 #endif
29082 #endif
29083 #ifndef HAVE_WINDOWS_H
29084 #ifdef HAVE_SYS_SELECT_H
29085 #include <sys/select.h>
29086 #endif
29087 #ifdef HAVE_SYS_SOCKET_H
29088 #include <sys/socket.h>
29089 #endif
29090 #endif
29091
29092 int main (void)
29093 {
29094
29095       select(0, 0, 0, 0, 0);
29096
29097  ;
29098  return 0;
29099 }
29100
29101 _ACEOF
29102 if ac_fn_c_try_link "$LINENO"; then :
29103
29104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29105 $as_echo "yes" >&6; }
29106     curl_cv_select="yes"
29107
29108 else
29109
29110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29111 $as_echo "no" >&6; }
29112     curl_cv_select="no"
29113
29114 fi
29115 rm -f core conftest.err conftest.$ac_objext \
29116     conftest$ac_exeext conftest.$ac_ext
29117   #
29118   if test "$curl_cv_select" = "yes"; then
29119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29120 $as_echo_n "checking types of args and return type for select... " >&6; }
29121 if ${curl_cv_func_select_args+:} false; then :
29122   $as_echo_n "(cached) " >&6
29123 else
29124
29125       curl_cv_func_select_args="unknown"
29126       for sel_retv in 'int' 'ssize_t'; do
29127         for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29128           for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29129             for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29130               if test "$curl_cv_func_select_args" = "unknown"; then
29131                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29132 /* end confdefs.h.  */
29133
29134
29135 #undef inline
29136 #ifdef HAVE_WINDOWS_H
29137 #ifndef WIN32_LEAN_AND_MEAN
29138 #define WIN32_LEAN_AND_MEAN
29139 #endif
29140 #include <windows.h>
29141 #ifdef HAVE_WINSOCK2_H
29142 #include <winsock2.h>
29143 #else
29144 #ifdef HAVE_WINSOCK_H
29145 #include <winsock.h>
29146 #endif
29147 #endif
29148 #define SELECTCALLCONV PASCAL
29149 #endif
29150 #ifdef HAVE_SYS_TYPES_H
29151 #include <sys/types.h>
29152 #endif
29153 #ifdef HAVE_SYS_TIME_H
29154 #include <sys/time.h>
29155 #ifdef TIME_WITH_SYS_TIME
29156 #include <time.h>
29157 #endif
29158 #else
29159 #ifdef HAVE_TIME_H
29160 #include <time.h>
29161 #endif
29162 #endif
29163 #ifndef HAVE_WINDOWS_H
29164 #ifdef HAVE_SYS_SELECT_H
29165 #include <sys/select.h>
29166 #endif
29167 #ifdef HAVE_SYS_SOCKET_H
29168 #include <sys/socket.h>
29169 #endif
29170 #define SELECTCALLCONV
29171 #endif
29172 #ifndef HAVE_STRUCT_TIMEVAL
29173                     struct timeval {
29174                       long tv_sec;
29175                       long tv_usec;
29176                     };
29177 #endif
29178                     extern $sel_retv SELECTCALLCONV
29179 #ifdef __ANDROID__
29180 __attribute__((overloadable))
29181 #endif
29182                         select($sel_arg1,
29183                                         $sel_arg234,
29184                                         $sel_arg234,
29185                                         $sel_arg234,
29186                                         $sel_arg5);
29187
29188 int main (void)
29189 {
29190
29191                     $sel_arg1   nfds=0;
29192                     $sel_arg234 rfds=0;
29193                     $sel_arg234 wfds=0;
29194                     $sel_arg234 efds=0;
29195                     $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29196
29197  ;
29198  return 0;
29199 }
29200
29201 _ACEOF
29202 if ac_fn_c_try_compile "$LINENO"; then :
29203
29204                   curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29205
29206 fi
29207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29208               fi
29209             done
29210           done
29211         done
29212       done
29213
29214 fi
29215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29216 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29217     if test "$curl_cv_func_select_args" = "unknown"; then
29218       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29219 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29220       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29221 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29222     else
29223       select_prev_IFS=$IFS; IFS=','
29224       set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29225       IFS=$select_prev_IFS
29226       shift
29227       #
29228       sel_qual_type_arg5=$3
29229       #
29230
29231 cat >>confdefs.h <<_ACEOF
29232 #define SELECT_TYPE_ARG1 $1
29233 _ACEOF
29234
29235
29236 cat >>confdefs.h <<_ACEOF
29237 #define SELECT_TYPE_ARG234 $2
29238 _ACEOF
29239
29240
29241 cat >>confdefs.h <<_ACEOF
29242 #define SELECT_TYPE_RETV $4
29243 _ACEOF
29244
29245       #
29246       prev_sh_opts=$-
29247       #
29248       case $prev_sh_opts in
29249         *f*)
29250           ;;
29251         *)
29252           set -f
29253           ;;
29254       esac
29255       #
29256       case "$sel_qual_type_arg5" in
29257         const*)
29258           sel_qual_arg5=const
29259           sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29260         ;;
29261         *)
29262           sel_qual_arg5=
29263           sel_type_arg5=$sel_qual_type_arg5
29264         ;;
29265       esac
29266       #
29267
29268 cat >>confdefs.h <<_ACEOF
29269 #define SELECT_QUAL_ARG5 $sel_qual_arg5
29270 _ACEOF
29271
29272
29273 cat >>confdefs.h <<_ACEOF
29274 #define SELECT_TYPE_ARG5 $sel_type_arg5
29275 _ACEOF
29276
29277       #
29278       case $prev_sh_opts in
29279         *f*)
29280           ;;
29281         *)
29282           set +f
29283           ;;
29284       esac
29285       #
29286
29287 cat >>confdefs.h <<_ACEOF
29288 #define HAVE_SELECT 1
29289 _ACEOF
29290
29291       curl_cv_func_select="yes"
29292     fi
29293   fi
29294
29295
29296
29297       for ac_header in sys/types.h sys/socket.h
29298 do :
29299   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29300 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29301 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29302   cat >>confdefs.h <<_ACEOF
29303 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29304 _ACEOF
29305
29306 fi
29307
29308 done
29309
29310   #
29311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29312 $as_echo_n "checking for recv... " >&6; }
29313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29314 /* end confdefs.h.  */
29315
29316
29317 #undef inline
29318 #ifdef HAVE_WINDOWS_H
29319 #ifndef WIN32_LEAN_AND_MEAN
29320 #define WIN32_LEAN_AND_MEAN
29321 #endif
29322 #include <windows.h>
29323 #ifdef HAVE_WINSOCK2_H
29324 #include <winsock2.h>
29325 #else
29326 #ifdef HAVE_WINSOCK_H
29327 #include <winsock.h>
29328 #endif
29329 #endif
29330 #else
29331 #ifdef HAVE_SYS_TYPES_H
29332 #include <sys/types.h>
29333 #endif
29334 #ifdef HAVE_SYS_SOCKET_H
29335 #include <sys/socket.h>
29336 #endif
29337 #endif
29338
29339 int main (void)
29340 {
29341
29342       recv(0, 0, 0, 0);
29343
29344  ;
29345  return 0;
29346 }
29347
29348 _ACEOF
29349 if ac_fn_c_try_link "$LINENO"; then :
29350
29351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29352 $as_echo "yes" >&6; }
29353     curl_cv_recv="yes"
29354
29355 else
29356
29357     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29358 $as_echo "no" >&6; }
29359     curl_cv_recv="no"
29360
29361 fi
29362 rm -f core conftest.err conftest.$ac_objext \
29363     conftest$ac_exeext conftest.$ac_ext
29364   #
29365   if test "$curl_cv_recv" = "yes"; then
29366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29367 $as_echo_n "checking types of args and return type for recv... " >&6; }
29368 if ${curl_cv_func_recv_args+:} false; then :
29369   $as_echo_n "(cached) " >&6
29370 else
29371
29372       curl_cv_func_recv_args="unknown"
29373       for recv_retv in 'int' 'ssize_t'; do
29374         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29375           for recv_arg2 in 'char *' 'void *'; do
29376             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29377               for recv_arg4 in 'int' 'unsigned int'; do
29378                 if test "$curl_cv_func_recv_args" = "unknown"; then
29379                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29380 /* end confdefs.h.  */
29381
29382
29383 #undef inline
29384 #ifdef HAVE_WINDOWS_H
29385 #ifndef WIN32_LEAN_AND_MEAN
29386 #define WIN32_LEAN_AND_MEAN
29387 #endif
29388 #include <windows.h>
29389 #ifdef HAVE_WINSOCK2_H
29390 #include <winsock2.h>
29391 #else
29392 #ifdef HAVE_WINSOCK_H
29393 #include <winsock.h>
29394 #endif
29395 #endif
29396 #define RECVCALLCONV PASCAL
29397 #else
29398 #ifdef HAVE_SYS_TYPES_H
29399 #include <sys/types.h>
29400 #endif
29401 #ifdef HAVE_SYS_SOCKET_H
29402 #include <sys/socket.h>
29403 #endif
29404 #define RECVCALLCONV
29405 #endif
29406                       extern $recv_retv RECVCALLCONV
29407 #ifdef __ANDROID__
29408 __attribute__((overloadable))
29409 #endif
29410                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29411
29412 int main (void)
29413 {
29414
29415                       $recv_arg1 s=0;
29416                       $recv_arg2 buf=0;
29417                       $recv_arg3 len=0;
29418                       $recv_arg4 flags=0;
29419                       $recv_retv res = recv(s, buf, len, flags);
29420
29421  ;
29422  return 0;
29423 }
29424
29425 _ACEOF
29426 if ac_fn_c_try_compile "$LINENO"; then :
29427
29428                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29429
29430 fi
29431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29432                 fi
29433               done
29434             done
29435           done
29436         done
29437       done
29438
29439 fi
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29441 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29442     if test "$curl_cv_func_recv_args" = "unknown"; then
29443       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29444     else
29445       recv_prev_IFS=$IFS; IFS=','
29446       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29447       IFS=$recv_prev_IFS
29448       shift
29449       #
29450
29451 cat >>confdefs.h <<_ACEOF
29452 #define RECV_TYPE_ARG1 $1
29453 _ACEOF
29454
29455
29456 cat >>confdefs.h <<_ACEOF
29457 #define RECV_TYPE_ARG2 $2
29458 _ACEOF
29459
29460
29461 cat >>confdefs.h <<_ACEOF
29462 #define RECV_TYPE_ARG3 $3
29463 _ACEOF
29464
29465
29466 cat >>confdefs.h <<_ACEOF
29467 #define RECV_TYPE_ARG4 $4
29468 _ACEOF
29469
29470
29471 cat >>confdefs.h <<_ACEOF
29472 #define RECV_TYPE_RETV $5
29473 _ACEOF
29474
29475       #
29476
29477 cat >>confdefs.h <<_ACEOF
29478 #define HAVE_RECV 1
29479 _ACEOF
29480
29481       curl_cv_func_recv="yes"
29482     fi
29483   else
29484     as_fn_error $? "Unable to link function recv" "$LINENO" 5
29485   fi
29486
29487
29488       for ac_header in sys/types.h sys/socket.h
29489 do :
29490   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29491 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29492 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29493   cat >>confdefs.h <<_ACEOF
29494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29495 _ACEOF
29496
29497 fi
29498
29499 done
29500
29501   #
29502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29503 $as_echo_n "checking for send... " >&6; }
29504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29505 /* end confdefs.h.  */
29506
29507
29508 #undef inline
29509 #ifdef HAVE_WINDOWS_H
29510 #ifndef WIN32_LEAN_AND_MEAN
29511 #define WIN32_LEAN_AND_MEAN
29512 #endif
29513 #include <windows.h>
29514 #ifdef HAVE_WINSOCK2_H
29515 #include <winsock2.h>
29516 #else
29517 #ifdef HAVE_WINSOCK_H
29518 #include <winsock.h>
29519 #endif
29520 #endif
29521 #else
29522 #ifdef HAVE_SYS_TYPES_H
29523 #include <sys/types.h>
29524 #endif
29525 #ifdef HAVE_SYS_SOCKET_H
29526 #include <sys/socket.h>
29527 #endif
29528 #endif
29529
29530 int main (void)
29531 {
29532
29533       send(0, 0, 0, 0);
29534
29535  ;
29536  return 0;
29537 }
29538
29539 _ACEOF
29540 if ac_fn_c_try_link "$LINENO"; then :
29541
29542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29543 $as_echo "yes" >&6; }
29544     curl_cv_send="yes"
29545
29546 else
29547
29548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29549 $as_echo "no" >&6; }
29550     curl_cv_send="no"
29551
29552 fi
29553 rm -f core conftest.err conftest.$ac_objext \
29554     conftest$ac_exeext conftest.$ac_ext
29555   #
29556   if test "$curl_cv_send" = "yes"; then
29557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29558 $as_echo_n "checking types of args and return type for send... " >&6; }
29559 if ${curl_cv_func_send_args+:} false; then :
29560   $as_echo_n "(cached) " >&6
29561 else
29562
29563       curl_cv_func_send_args="unknown"
29564       for send_retv in 'int' 'ssize_t'; do
29565         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29566           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29567             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29568               for send_arg4 in 'int' 'unsigned int'; do
29569                 if test "$curl_cv_func_send_args" = "unknown"; then
29570                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29571 /* end confdefs.h.  */
29572
29573
29574 #undef inline
29575 #ifdef HAVE_WINDOWS_H
29576 #ifndef WIN32_LEAN_AND_MEAN
29577 #define WIN32_LEAN_AND_MEAN
29578 #endif
29579 #include <windows.h>
29580 #ifdef HAVE_WINSOCK2_H
29581 #include <winsock2.h>
29582 #else
29583 #ifdef HAVE_WINSOCK_H
29584 #include <winsock.h>
29585 #endif
29586 #endif
29587 #define SENDCALLCONV PASCAL
29588 #else
29589 #ifdef HAVE_SYS_TYPES_H
29590 #include <sys/types.h>
29591 #endif
29592 #ifdef HAVE_SYS_SOCKET_H
29593 #include <sys/socket.h>
29594 #endif
29595 #define SENDCALLCONV
29596 #endif
29597                       extern $send_retv SENDCALLCONV
29598 #ifdef __ANDROID__
29599 __attribute__((overloadable))
29600 #endif
29601                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
29602
29603 int main (void)
29604 {
29605
29606                       $send_arg1 s=0;
29607                       $send_arg3 len=0;
29608                       $send_arg4 flags=0;
29609                       $send_retv res = send(s, 0, len, flags);
29610
29611  ;
29612  return 0;
29613 }
29614
29615 _ACEOF
29616 if ac_fn_c_try_compile "$LINENO"; then :
29617
29618                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
29619
29620 fi
29621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29622                 fi
29623               done
29624             done
29625           done
29626         done
29627       done
29628
29629 fi
29630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
29631 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
29632     if test "$curl_cv_func_send_args" = "unknown"; then
29633       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
29634     else
29635       send_prev_IFS=$IFS; IFS=','
29636       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
29637       IFS=$send_prev_IFS
29638       shift
29639       #
29640       send_qual_type_arg2=$2
29641       #
29642
29643 cat >>confdefs.h <<_ACEOF
29644 #define SEND_TYPE_ARG1 $1
29645 _ACEOF
29646
29647
29648 cat >>confdefs.h <<_ACEOF
29649 #define SEND_TYPE_ARG3 $3
29650 _ACEOF
29651
29652
29653 cat >>confdefs.h <<_ACEOF
29654 #define SEND_TYPE_ARG4 $4
29655 _ACEOF
29656
29657
29658 cat >>confdefs.h <<_ACEOF
29659 #define SEND_TYPE_RETV $5
29660 _ACEOF
29661
29662       #
29663       prev_sh_opts=$-
29664       #
29665       case $prev_sh_opts in
29666         *f*)
29667           ;;
29668         *)
29669           set -f
29670           ;;
29671       esac
29672       #
29673       case "$send_qual_type_arg2" in
29674         const*)
29675           send_qual_arg2=const
29676           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
29677         ;;
29678         *)
29679           send_qual_arg2=
29680           send_type_arg2=$send_qual_type_arg2
29681         ;;
29682       esac
29683       #
29684
29685 cat >>confdefs.h <<_ACEOF
29686 #define SEND_QUAL_ARG2 $send_qual_arg2
29687 _ACEOF
29688
29689
29690 cat >>confdefs.h <<_ACEOF
29691 #define SEND_TYPE_ARG2 $send_type_arg2
29692 _ACEOF
29693
29694       #
29695       case $prev_sh_opts in
29696         *f*)
29697           ;;
29698         *)
29699           set +f
29700           ;;
29701       esac
29702       #
29703
29704 cat >>confdefs.h <<_ACEOF
29705 #define HAVE_SEND 1
29706 _ACEOF
29707
29708       curl_cv_func_send="yes"
29709     fi
29710   else
29711     as_fn_error $? "Unable to link function send" "$LINENO" 5
29712   fi
29713
29714
29715   for ac_header in sys/types.h sys/socket.h
29716 do :
29717   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29718 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29720   cat >>confdefs.h <<_ACEOF
29721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29722 _ACEOF
29723
29724 fi
29725
29726 done
29727
29728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
29729 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
29730 if ${curl_cv_msg_nosignal+:} false; then :
29731   $as_echo_n "(cached) " >&6
29732 else
29733
29734     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29735 /* end confdefs.h.  */
29736
29737
29738 #undef inline
29739 #ifdef HAVE_WINDOWS_H
29740 #ifndef WIN32_LEAN_AND_MEAN
29741 #define WIN32_LEAN_AND_MEAN
29742 #endif
29743 #include <windows.h>
29744 #ifdef HAVE_WINSOCK2_H
29745 #include <winsock2.h>
29746 #else
29747 #ifdef HAVE_WINSOCK_H
29748 #include <winsock.h>
29749 #endif
29750 #endif
29751 #else
29752 #ifdef HAVE_SYS_TYPES_H
29753 #include <sys/types.h>
29754 #endif
29755 #ifdef HAVE_SYS_SOCKET_H
29756 #include <sys/socket.h>
29757 #endif
29758 #endif
29759
29760 int main (void)
29761 {
29762
29763         int flag=MSG_NOSIGNAL;
29764
29765  ;
29766  return 0;
29767 }
29768
29769 _ACEOF
29770 if ac_fn_c_try_compile "$LINENO"; then :
29771
29772       curl_cv_msg_nosignal="yes"
29773
29774 else
29775
29776       curl_cv_msg_nosignal="no"
29777
29778 fi
29779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29780
29781 fi
29782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
29783 $as_echo "$curl_cv_msg_nosignal" >&6; }
29784   case "$curl_cv_msg_nosignal" in
29785     yes)
29786
29787 cat >>confdefs.h <<_ACEOF
29788 #define HAVE_MSG_NOSIGNAL 1
29789 _ACEOF
29790
29791       ;;
29792   esac
29793
29794
29795
29796 curl_includes_unistd="\
29797 /* includes start */
29798 #ifdef HAVE_SYS_TYPES_H
29799 #  include <sys/types.h>
29800 #endif
29801 #ifdef HAVE_UNISTD_H
29802 #  include <unistd.h>
29803 #endif
29804 /* includes end */"
29805   for ac_header in sys/types.h unistd.h
29806 do :
29807   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29808 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
29809 "
29810 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29811   cat >>confdefs.h <<_ACEOF
29812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29813 _ACEOF
29814
29815 fi
29816
29817 done
29818
29819
29820
29821     #
29822   tst_links_alarm="unknown"
29823   tst_proto_alarm="unknown"
29824   tst_compi_alarm="unknown"
29825   tst_allow_alarm="unknown"
29826   #
29827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
29828 $as_echo_n "checking if alarm can be linked... " >&6; }
29829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29830 /* end confdefs.h.  */
29831
29832
29833 #define alarm innocuous_alarm
29834 #ifdef __STDC__
29835 # include <limits.h>
29836 #else
29837 # include <assert.h>
29838 #endif
29839 #undef alarm
29840 #ifdef __cplusplus
29841 extern "C"
29842 #endif
29843 char alarm ();
29844 #if defined __stub_alarm || defined __stub___alarm
29845 choke me
29846 #endif
29847
29848 int main (void)
29849 {
29850 return alarm ();
29851  ;
29852  return 0;
29853 }
29854
29855 _ACEOF
29856 if ac_fn_c_try_link "$LINENO"; then :
29857
29858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29859 $as_echo "yes" >&6; }
29860     tst_links_alarm="yes"
29861
29862 else
29863
29864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29865 $as_echo "no" >&6; }
29866     tst_links_alarm="no"
29867
29868 fi
29869 rm -f core conftest.err conftest.$ac_objext \
29870     conftest$ac_exeext conftest.$ac_ext
29871   #
29872   if test "$tst_links_alarm" = "yes"; then
29873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
29874 $as_echo_n "checking if alarm is prototyped... " >&6; }
29875     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29876 /* end confdefs.h.  */
29877
29878       $curl_includes_unistd
29879
29880 _ACEOF
29881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29882   $EGREP "alarm" >/dev/null 2>&1; then :
29883
29884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29885 $as_echo "yes" >&6; }
29886       tst_proto_alarm="yes"
29887
29888 else
29889
29890       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29891 $as_echo "no" >&6; }
29892       tst_proto_alarm="no"
29893
29894 fi
29895 rm -f conftest*
29896
29897   fi
29898   #
29899   if test "$tst_proto_alarm" = "yes"; then
29900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
29901 $as_echo_n "checking if alarm is compilable... " >&6; }
29902     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29903 /* end confdefs.h.  */
29904
29905
29906         $curl_includes_unistd
29907
29908 int main (void)
29909 {
29910
29911         if(0 != alarm(0))
29912           return 1;
29913
29914  ;
29915  return 0;
29916 }
29917
29918 _ACEOF
29919 if ac_fn_c_try_compile "$LINENO"; then :
29920
29921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29922 $as_echo "yes" >&6; }
29923       tst_compi_alarm="yes"
29924
29925 else
29926
29927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29928 $as_echo "no" >&6; }
29929       tst_compi_alarm="no"
29930
29931 fi
29932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29933   fi
29934   #
29935   if test "$tst_compi_alarm" = "yes"; then
29936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
29937 $as_echo_n "checking if alarm usage allowed... " >&6; }
29938     if test "x$curl_disallow_alarm" != "xyes"; then
29939       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29940 $as_echo "yes" >&6; }
29941       tst_allow_alarm="yes"
29942     else
29943       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29944 $as_echo "no" >&6; }
29945       tst_allow_alarm="no"
29946     fi
29947   fi
29948   #
29949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
29950 $as_echo_n "checking if alarm might be used... " >&6; }
29951   if test "$tst_links_alarm" = "yes" &&
29952      test "$tst_proto_alarm" = "yes" &&
29953      test "$tst_compi_alarm" = "yes" &&
29954      test "$tst_allow_alarm" = "yes"; then
29955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29956 $as_echo "yes" >&6; }
29957
29958 cat >>confdefs.h <<_ACEOF
29959 #define HAVE_ALARM 1
29960 _ACEOF
29961
29962     curl_cv_func_alarm="yes"
29963   else
29964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29965 $as_echo "no" >&6; }
29966     curl_cv_func_alarm="no"
29967   fi
29968
29969
29970 curl_includes_string="\
29971 /* includes start */
29972 #ifdef HAVE_SYS_TYPES_H
29973 #  include <sys/types.h>
29974 #endif
29975 #ifdef HAVE_STRING_H
29976 #  include <string.h>
29977 #endif
29978 #ifdef HAVE_STRINGS_H
29979 #  include <strings.h>
29980 #endif
29981 /* includes end */"
29982   for ac_header in sys/types.h string.h strings.h
29983 do :
29984   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29985 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
29986 "
29987 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29988   cat >>confdefs.h <<_ACEOF
29989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29990 _ACEOF
29991
29992 fi
29993
29994 done
29995
29996
29997
29998 curl_includes_libgen="\
29999 /* includes start */
30000 #ifdef HAVE_SYS_TYPES_H
30001 #  include <sys/types.h>
30002 #endif
30003 #ifdef HAVE_LIBGEN_H
30004 #  include <libgen.h>
30005 #endif
30006 /* includes end */"
30007   for ac_header in sys/types.h libgen.h
30008 do :
30009   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30010 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30011 "
30012 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30013   cat >>confdefs.h <<_ACEOF
30014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30015 _ACEOF
30016
30017 fi
30018
30019 done
30020
30021
30022
30023         #
30024   tst_links_basename="unknown"
30025   tst_proto_basename="unknown"
30026   tst_compi_basename="unknown"
30027   tst_allow_basename="unknown"
30028   #
30029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30030 $as_echo_n "checking if basename can be linked... " >&6; }
30031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30032 /* end confdefs.h.  */
30033
30034
30035 #define basename innocuous_basename
30036 #ifdef __STDC__
30037 # include <limits.h>
30038 #else
30039 # include <assert.h>
30040 #endif
30041 #undef basename
30042 #ifdef __cplusplus
30043 extern "C"
30044 #endif
30045 char basename ();
30046 #if defined __stub_basename || defined __stub___basename
30047 choke me
30048 #endif
30049
30050 int main (void)
30051 {
30052 return basename ();
30053  ;
30054  return 0;
30055 }
30056
30057 _ACEOF
30058 if ac_fn_c_try_link "$LINENO"; then :
30059
30060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30061 $as_echo "yes" >&6; }
30062     tst_links_basename="yes"
30063
30064 else
30065
30066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30067 $as_echo "no" >&6; }
30068     tst_links_basename="no"
30069
30070 fi
30071 rm -f core conftest.err conftest.$ac_objext \
30072     conftest$ac_exeext conftest.$ac_ext
30073   #
30074   if test "$tst_links_basename" = "yes"; then
30075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30076 $as_echo_n "checking if basename is prototyped... " >&6; }
30077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30078 /* end confdefs.h.  */
30079
30080       $curl_includes_string
30081       $curl_includes_libgen
30082       $curl_includes_unistd
30083
30084 _ACEOF
30085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30086   $EGREP "basename" >/dev/null 2>&1; then :
30087
30088       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30089 $as_echo "yes" >&6; }
30090       tst_proto_basename="yes"
30091
30092 else
30093
30094       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30095 $as_echo "no" >&6; }
30096       tst_proto_basename="no"
30097
30098 fi
30099 rm -f conftest*
30100
30101   fi
30102   #
30103   if test "$tst_proto_basename" = "yes"; then
30104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30105 $as_echo_n "checking if basename is compilable... " >&6; }
30106     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30107 /* end confdefs.h.  */
30108
30109
30110         $curl_includes_string
30111         $curl_includes_libgen
30112         $curl_includes_unistd
30113
30114 int main (void)
30115 {
30116
30117         if(0 != basename(0))
30118           return 1;
30119
30120  ;
30121  return 0;
30122 }
30123
30124 _ACEOF
30125 if ac_fn_c_try_compile "$LINENO"; then :
30126
30127       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30128 $as_echo "yes" >&6; }
30129       tst_compi_basename="yes"
30130
30131 else
30132
30133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30134 $as_echo "no" >&6; }
30135       tst_compi_basename="no"
30136
30137 fi
30138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30139   fi
30140   #
30141   if test "$tst_compi_basename" = "yes"; then
30142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30143 $as_echo_n "checking if basename usage allowed... " >&6; }
30144     if test "x$curl_disallow_basename" != "xyes"; then
30145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30146 $as_echo "yes" >&6; }
30147       tst_allow_basename="yes"
30148     else
30149       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30150 $as_echo "no" >&6; }
30151       tst_allow_basename="no"
30152     fi
30153   fi
30154   #
30155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30156 $as_echo_n "checking if basename might be used... " >&6; }
30157   if test "$tst_links_basename" = "yes" &&
30158      test "$tst_proto_basename" = "yes" &&
30159      test "$tst_compi_basename" = "yes" &&
30160      test "$tst_allow_basename" = "yes"; then
30161     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30162 $as_echo "yes" >&6; }
30163
30164 cat >>confdefs.h <<_ACEOF
30165 #define HAVE_BASENAME 1
30166 _ACEOF
30167
30168     curl_cv_func_basename="yes"
30169   else
30170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30171 $as_echo "no" >&6; }
30172     curl_cv_func_basename="no"
30173   fi
30174
30175
30176 curl_includes_socket="\
30177 /* includes start */
30178 #ifdef HAVE_SYS_TYPES_H
30179 #  include <sys/types.h>
30180 #endif
30181 #ifdef HAVE_SOCKET_H
30182 #  include <socket.h>
30183 #endif
30184 /* includes end */"
30185   for ac_header in sys/types.h socket.h
30186 do :
30187   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30188 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30189 "
30190 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30191   cat >>confdefs.h <<_ACEOF
30192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30193 _ACEOF
30194
30195 fi
30196
30197 done
30198
30199
30200
30201       #
30202   tst_links_closesocket="unknown"
30203   tst_proto_closesocket="unknown"
30204   tst_compi_closesocket="unknown"
30205   tst_allow_closesocket="unknown"
30206   #
30207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30208 $as_echo_n "checking if closesocket can be linked... " >&6; }
30209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30210 /* end confdefs.h.  */
30211
30212
30213       $curl_includes_winsock2
30214       $curl_includes_socket
30215
30216 int main (void)
30217 {
30218
30219       if(0 != closesocket(0))
30220         return 1;
30221
30222  ;
30223  return 0;
30224 }
30225
30226 _ACEOF
30227 if ac_fn_c_try_link "$LINENO"; then :
30228
30229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30230 $as_echo "yes" >&6; }
30231     tst_links_closesocket="yes"
30232
30233 else
30234
30235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30236 $as_echo "no" >&6; }
30237     tst_links_closesocket="no"
30238
30239 fi
30240 rm -f core conftest.err conftest.$ac_objext \
30241     conftest$ac_exeext conftest.$ac_ext
30242   #
30243   if test "$tst_links_closesocket" = "yes"; then
30244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30245 $as_echo_n "checking if closesocket is prototyped... " >&6; }
30246     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30247 /* end confdefs.h.  */
30248
30249       $curl_includes_winsock2
30250       $curl_includes_socket
30251
30252 _ACEOF
30253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30254   $EGREP "closesocket" >/dev/null 2>&1; then :
30255
30256       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30257 $as_echo "yes" >&6; }
30258       tst_proto_closesocket="yes"
30259
30260 else
30261
30262       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30263 $as_echo "no" >&6; }
30264       tst_proto_closesocket="no"
30265
30266 fi
30267 rm -f conftest*
30268
30269   fi
30270   #
30271   if test "$tst_proto_closesocket" = "yes"; then
30272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30273 $as_echo_n "checking if closesocket is compilable... " >&6; }
30274     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30275 /* end confdefs.h.  */
30276
30277
30278         $curl_includes_winsock2
30279         $curl_includes_socket
30280
30281 int main (void)
30282 {
30283
30284         if(0 != closesocket(0))
30285           return 1;
30286
30287  ;
30288  return 0;
30289 }
30290
30291 _ACEOF
30292 if ac_fn_c_try_compile "$LINENO"; then :
30293
30294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30295 $as_echo "yes" >&6; }
30296       tst_compi_closesocket="yes"
30297
30298 else
30299
30300       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30301 $as_echo "no" >&6; }
30302       tst_compi_closesocket="no"
30303
30304 fi
30305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30306   fi
30307   #
30308   if test "$tst_compi_closesocket" = "yes"; then
30309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30310 $as_echo_n "checking if closesocket usage allowed... " >&6; }
30311     if test "x$curl_disallow_closesocket" != "xyes"; then
30312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30313 $as_echo "yes" >&6; }
30314       tst_allow_closesocket="yes"
30315     else
30316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30317 $as_echo "no" >&6; }
30318       tst_allow_closesocket="no"
30319     fi
30320   fi
30321   #
30322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30323 $as_echo_n "checking if closesocket might be used... " >&6; }
30324   if test "$tst_links_closesocket" = "yes" &&
30325      test "$tst_proto_closesocket" = "yes" &&
30326      test "$tst_compi_closesocket" = "yes" &&
30327      test "$tst_allow_closesocket" = "yes"; then
30328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30329 $as_echo "yes" >&6; }
30330
30331 cat >>confdefs.h <<_ACEOF
30332 #define HAVE_CLOSESOCKET 1
30333 _ACEOF
30334
30335     curl_cv_func_closesocket="yes"
30336   else
30337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30338 $as_echo "no" >&6; }
30339     curl_cv_func_closesocket="no"
30340   fi
30341
30342
30343     #
30344   tst_links_closesocket_camel="unknown"
30345   tst_proto_closesocket_camel="unknown"
30346   tst_compi_closesocket_camel="unknown"
30347   tst_allow_closesocket_camel="unknown"
30348   #
30349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30350 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
30351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30352 /* end confdefs.h.  */
30353
30354
30355       $curl_includes_sys_socket
30356
30357 int main (void)
30358 {
30359
30360       if(0 != CloseSocket(0))
30361         return 1;
30362
30363  ;
30364  return 0;
30365 }
30366
30367 _ACEOF
30368 if ac_fn_c_try_link "$LINENO"; then :
30369
30370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30371 $as_echo "yes" >&6; }
30372     tst_links_closesocket_camel="yes"
30373
30374 else
30375
30376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30377 $as_echo "no" >&6; }
30378     tst_links_closesocket_camel="no"
30379
30380 fi
30381 rm -f core conftest.err conftest.$ac_objext \
30382     conftest$ac_exeext conftest.$ac_ext
30383   #
30384   if test "$tst_links_closesocket_camel" = "yes"; then
30385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30386 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30387     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30388 /* end confdefs.h.  */
30389
30390       $curl_includes_sys_socket
30391
30392 _ACEOF
30393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30394   $EGREP "CloseSocket" >/dev/null 2>&1; then :
30395
30396       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30397 $as_echo "yes" >&6; }
30398       tst_proto_closesocket_camel="yes"
30399
30400 else
30401
30402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30403 $as_echo "no" >&6; }
30404       tst_proto_closesocket_camel="no"
30405
30406 fi
30407 rm -f conftest*
30408
30409   fi
30410   #
30411   if test "$tst_proto_closesocket_camel" = "yes"; then
30412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30413 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
30414     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30415 /* end confdefs.h.  */
30416
30417
30418         $curl_includes_sys_socket
30419
30420 int main (void)
30421 {
30422
30423         if(0 != CloseSocket(0))
30424           return 1;
30425
30426  ;
30427  return 0;
30428 }
30429
30430 _ACEOF
30431 if ac_fn_c_try_compile "$LINENO"; then :
30432
30433       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30434 $as_echo "yes" >&6; }
30435       tst_compi_closesocket_camel="yes"
30436
30437 else
30438
30439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30440 $as_echo "no" >&6; }
30441       tst_compi_closesocket_camel="no"
30442
30443 fi
30444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30445   fi
30446   #
30447   if test "$tst_compi_closesocket_camel" = "yes"; then
30448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30449 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30450     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30451       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30452 $as_echo "yes" >&6; }
30453       tst_allow_closesocket_camel="yes"
30454     else
30455       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30456 $as_echo "no" >&6; }
30457       tst_allow_closesocket_camel="no"
30458     fi
30459   fi
30460   #
30461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30462 $as_echo_n "checking if CloseSocket might be used... " >&6; }
30463   if test "$tst_links_closesocket_camel" = "yes" &&
30464      test "$tst_proto_closesocket_camel" = "yes" &&
30465      test "$tst_compi_closesocket_camel" = "yes" &&
30466      test "$tst_allow_closesocket_camel" = "yes"; then
30467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30468 $as_echo "yes" >&6; }
30469
30470 cat >>confdefs.h <<_ACEOF
30471 #define HAVE_CLOSESOCKET_CAMEL 1
30472 _ACEOF
30473
30474     curl_cv_func_closesocket_camel="yes"
30475   else
30476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30477 $as_echo "no" >&6; }
30478     curl_cv_func_closesocket_camel="no"
30479   fi
30480
30481
30482         #
30483   tst_links_connect="unknown"
30484   tst_proto_connect="unknown"
30485   tst_compi_connect="unknown"
30486   tst_allow_connect="unknown"
30487   #
30488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30489 $as_echo_n "checking if connect can be linked... " >&6; }
30490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30491 /* end confdefs.h.  */
30492
30493
30494       $curl_includes_winsock2
30495       $curl_includes_sys_socket
30496       $curl_includes_socket
30497
30498 int main (void)
30499 {
30500
30501       if(0 != connect(0, 0, 0))
30502         return 1;
30503
30504  ;
30505  return 0;
30506 }
30507
30508 _ACEOF
30509 if ac_fn_c_try_link "$LINENO"; then :
30510
30511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30512 $as_echo "yes" >&6; }
30513     tst_links_connect="yes"
30514
30515 else
30516
30517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30518 $as_echo "no" >&6; }
30519     tst_links_connect="no"
30520
30521 fi
30522 rm -f core conftest.err conftest.$ac_objext \
30523     conftest$ac_exeext conftest.$ac_ext
30524   #
30525   if test "$tst_links_connect" = "yes"; then
30526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30527 $as_echo_n "checking if connect is prototyped... " >&6; }
30528     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30529 /* end confdefs.h.  */
30530
30531       $curl_includes_winsock2
30532       $curl_includes_sys_socket
30533       $curl_includes_socket
30534
30535 _ACEOF
30536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30537   $EGREP "connect" >/dev/null 2>&1; then :
30538
30539       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30540 $as_echo "yes" >&6; }
30541       tst_proto_connect="yes"
30542
30543 else
30544
30545       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30546 $as_echo "no" >&6; }
30547       tst_proto_connect="no"
30548
30549 fi
30550 rm -f conftest*
30551
30552   fi
30553   #
30554   if test "$tst_proto_connect" = "yes"; then
30555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30556 $as_echo_n "checking if connect is compilable... " >&6; }
30557     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30558 /* end confdefs.h.  */
30559
30560
30561         $curl_includes_winsock2
30562         $curl_includes_sys_socket
30563         $curl_includes_socket
30564
30565 int main (void)
30566 {
30567
30568         if(0 != connect(0, 0, 0))
30569           return 1;
30570
30571  ;
30572  return 0;
30573 }
30574
30575 _ACEOF
30576 if ac_fn_c_try_compile "$LINENO"; then :
30577
30578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30579 $as_echo "yes" >&6; }
30580       tst_compi_connect="yes"
30581
30582 else
30583
30584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30585 $as_echo "no" >&6; }
30586       tst_compi_connect="no"
30587
30588 fi
30589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30590   fi
30591   #
30592   if test "$tst_compi_connect" = "yes"; then
30593     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
30594 $as_echo_n "checking if connect usage allowed... " >&6; }
30595     if test "x$curl_disallow_connect" != "xyes"; then
30596       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30597 $as_echo "yes" >&6; }
30598       tst_allow_connect="yes"
30599     else
30600       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30601 $as_echo "no" >&6; }
30602       tst_allow_connect="no"
30603     fi
30604   fi
30605   #
30606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
30607 $as_echo_n "checking if connect might be used... " >&6; }
30608   if test "$tst_links_connect" = "yes" &&
30609      test "$tst_proto_connect" = "yes" &&
30610      test "$tst_compi_connect" = "yes" &&
30611      test "$tst_allow_connect" = "yes"; then
30612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30613 $as_echo "yes" >&6; }
30614
30615 cat >>confdefs.h <<_ACEOF
30616 #define HAVE_CONNECT 1
30617 _ACEOF
30618
30619     curl_cv_func_connect="yes"
30620   else
30621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30622 $as_echo "no" >&6; }
30623     curl_cv_func_connect="no"
30624   fi
30625
30626
30627 curl_includes_fcntl="\
30628 /* includes start */
30629 #ifdef HAVE_SYS_TYPES_H
30630 #  include <sys/types.h>
30631 #endif
30632 #ifdef HAVE_UNISTD_H
30633 #  include <unistd.h>
30634 #endif
30635 #ifdef HAVE_FCNTL_H
30636 #  include <fcntl.h>
30637 #endif
30638 /* includes end */"
30639   for ac_header in sys/types.h unistd.h fcntl.h
30640 do :
30641   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30642 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
30643 "
30644 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30645   cat >>confdefs.h <<_ACEOF
30646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30647 _ACEOF
30648
30649 fi
30650
30651 done
30652
30653
30654
30655     #
30656   tst_links_fcntl="unknown"
30657   tst_proto_fcntl="unknown"
30658   tst_compi_fcntl="unknown"
30659   tst_allow_fcntl="unknown"
30660   #
30661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
30662 $as_echo_n "checking if fcntl can be linked... " >&6; }
30663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30664 /* end confdefs.h.  */
30665
30666
30667 #define fcntl innocuous_fcntl
30668 #ifdef __STDC__
30669 # include <limits.h>
30670 #else
30671 # include <assert.h>
30672 #endif
30673 #undef fcntl
30674 #ifdef __cplusplus
30675 extern "C"
30676 #endif
30677 char fcntl ();
30678 #if defined __stub_fcntl || defined __stub___fcntl
30679 choke me
30680 #endif
30681
30682 int main (void)
30683 {
30684 return fcntl ();
30685  ;
30686  return 0;
30687 }
30688
30689 _ACEOF
30690 if ac_fn_c_try_link "$LINENO"; then :
30691
30692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30693 $as_echo "yes" >&6; }
30694     tst_links_fcntl="yes"
30695
30696 else
30697
30698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30699 $as_echo "no" >&6; }
30700     tst_links_fcntl="no"
30701
30702 fi
30703 rm -f core conftest.err conftest.$ac_objext \
30704     conftest$ac_exeext conftest.$ac_ext
30705   #
30706   if test "$tst_links_fcntl" = "yes"; then
30707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
30708 $as_echo_n "checking if fcntl is prototyped... " >&6; }
30709     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30710 /* end confdefs.h.  */
30711
30712       $curl_includes_fcntl
30713
30714 _ACEOF
30715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30716   $EGREP "fcntl" >/dev/null 2>&1; then :
30717
30718       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30719 $as_echo "yes" >&6; }
30720       tst_proto_fcntl="yes"
30721
30722 else
30723
30724       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30725 $as_echo "no" >&6; }
30726       tst_proto_fcntl="no"
30727
30728 fi
30729 rm -f conftest*
30730
30731   fi
30732   #
30733   if test "$tst_proto_fcntl" = "yes"; then
30734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
30735 $as_echo_n "checking if fcntl is compilable... " >&6; }
30736     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30737 /* end confdefs.h.  */
30738
30739
30740         $curl_includes_fcntl
30741
30742 int main (void)
30743 {
30744
30745         if(0 != fcntl(0, 0, 0))
30746           return 1;
30747
30748  ;
30749  return 0;
30750 }
30751
30752 _ACEOF
30753 if ac_fn_c_try_compile "$LINENO"; then :
30754
30755       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30756 $as_echo "yes" >&6; }
30757       tst_compi_fcntl="yes"
30758
30759 else
30760
30761       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30762 $as_echo "no" >&6; }
30763       tst_compi_fcntl="no"
30764
30765 fi
30766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30767   fi
30768   #
30769   if test "$tst_compi_fcntl" = "yes"; then
30770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
30771 $as_echo_n "checking if fcntl usage allowed... " >&6; }
30772     if test "x$curl_disallow_fcntl" != "xyes"; then
30773       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30774 $as_echo "yes" >&6; }
30775       tst_allow_fcntl="yes"
30776     else
30777       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30778 $as_echo "no" >&6; }
30779       tst_allow_fcntl="no"
30780     fi
30781   fi
30782   #
30783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
30784 $as_echo_n "checking if fcntl might be used... " >&6; }
30785   if test "$tst_links_fcntl" = "yes" &&
30786      test "$tst_proto_fcntl" = "yes" &&
30787      test "$tst_compi_fcntl" = "yes" &&
30788      test "$tst_allow_fcntl" = "yes"; then
30789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30790 $as_echo "yes" >&6; }
30791
30792 cat >>confdefs.h <<_ACEOF
30793 #define HAVE_FCNTL 1
30794 _ACEOF
30795
30796     curl_cv_func_fcntl="yes"
30797
30798   #
30799   tst_compi_fcntl_o_nonblock="unknown"
30800   tst_allow_fcntl_o_nonblock="unknown"
30801   #
30802   case $host_os in
30803     sunos4* | aix3* | beos*)
30804             curl_disallow_fcntl_o_nonblock="yes"
30805       ;;
30806   esac
30807   #
30808   if test "$curl_cv_func_fcntl" = "yes"; then
30809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
30810 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
30811     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30812 /* end confdefs.h.  */
30813
30814
30815         $curl_includes_fcntl
30816
30817 int main (void)
30818 {
30819
30820         int flags = 0;
30821         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
30822           return 1;
30823
30824  ;
30825  return 0;
30826 }
30827
30828 _ACEOF
30829 if ac_fn_c_try_compile "$LINENO"; then :
30830
30831       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30832 $as_echo "yes" >&6; }
30833       tst_compi_fcntl_o_nonblock="yes"
30834
30835 else
30836
30837       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30838 $as_echo "no" >&6; }
30839       tst_compi_fcntl_o_nonblock="no"
30840
30841 fi
30842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30843   fi
30844   #
30845   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
30846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
30847 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
30848     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
30849       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30850 $as_echo "yes" >&6; }
30851       tst_allow_fcntl_o_nonblock="yes"
30852     else
30853       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30854 $as_echo "no" >&6; }
30855       tst_allow_fcntl_o_nonblock="no"
30856     fi
30857   fi
30858   #
30859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
30860 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
30861   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
30862      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
30863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30864 $as_echo "yes" >&6; }
30865
30866 cat >>confdefs.h <<_ACEOF
30867 #define HAVE_FCNTL_O_NONBLOCK 1
30868 _ACEOF
30869
30870     curl_cv_func_fcntl_o_nonblock="yes"
30871   else
30872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30873 $as_echo "no" >&6; }
30874     curl_cv_func_fcntl_o_nonblock="no"
30875   fi
30876
30877   else
30878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30879 $as_echo "no" >&6; }
30880     curl_cv_func_fcntl="no"
30881   fi
30882
30883
30884 curl_includes_stdio="\
30885 /* includes start */
30886 #ifdef HAVE_SYS_TYPES_H
30887 #  include <sys/types.h>
30888 #endif
30889 #ifdef HAVE_STDIO_H
30890 #  include <stdio.h>
30891 #endif
30892 /* includes end */"
30893   for ac_header in sys/types.h stdio.h
30894 do :
30895   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30896 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
30897 "
30898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30899   cat >>confdefs.h <<_ACEOF
30900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30901 _ACEOF
30902
30903 fi
30904
30905 done
30906
30907
30908
30909     #
30910   tst_links_fdopen="unknown"
30911   tst_proto_fdopen="unknown"
30912   tst_compi_fdopen="unknown"
30913   tst_allow_fdopen="unknown"
30914   #
30915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
30916 $as_echo_n "checking if fdopen can be linked... " >&6; }
30917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30918 /* end confdefs.h.  */
30919
30920
30921 #define fdopen innocuous_fdopen
30922 #ifdef __STDC__
30923 # include <limits.h>
30924 #else
30925 # include <assert.h>
30926 #endif
30927 #undef fdopen
30928 #ifdef __cplusplus
30929 extern "C"
30930 #endif
30931 char fdopen ();
30932 #if defined __stub_fdopen || defined __stub___fdopen
30933 choke me
30934 #endif
30935
30936 int main (void)
30937 {
30938 return fdopen ();
30939  ;
30940  return 0;
30941 }
30942
30943 _ACEOF
30944 if ac_fn_c_try_link "$LINENO"; then :
30945
30946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30947 $as_echo "yes" >&6; }
30948     tst_links_fdopen="yes"
30949
30950 else
30951
30952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30953 $as_echo "no" >&6; }
30954     tst_links_fdopen="no"
30955
30956 fi
30957 rm -f core conftest.err conftest.$ac_objext \
30958     conftest$ac_exeext conftest.$ac_ext
30959   #
30960   if test "$tst_links_fdopen" = "yes"; then
30961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
30962 $as_echo_n "checking if fdopen is prototyped... " >&6; }
30963     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30964 /* end confdefs.h.  */
30965
30966       $curl_includes_stdio
30967
30968 _ACEOF
30969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30970   $EGREP "fdopen" >/dev/null 2>&1; then :
30971
30972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30973 $as_echo "yes" >&6; }
30974       tst_proto_fdopen="yes"
30975
30976 else
30977
30978       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30979 $as_echo "no" >&6; }
30980       tst_proto_fdopen="no"
30981
30982 fi
30983 rm -f conftest*
30984
30985   fi
30986   #
30987   if test "$tst_proto_fdopen" = "yes"; then
30988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
30989 $as_echo_n "checking if fdopen is compilable... " >&6; }
30990     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30991 /* end confdefs.h.  */
30992
30993
30994         $curl_includes_stdio
30995
30996 int main (void)
30997 {
30998
30999         if(0 != fdopen(0, 0))
31000           return 1;
31001
31002  ;
31003  return 0;
31004 }
31005
31006 _ACEOF
31007 if ac_fn_c_try_compile "$LINENO"; then :
31008
31009       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31010 $as_echo "yes" >&6; }
31011       tst_compi_fdopen="yes"
31012
31013 else
31014
31015       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31016 $as_echo "no" >&6; }
31017       tst_compi_fdopen="no"
31018
31019 fi
31020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31021   fi
31022   #
31023   if test "$tst_compi_fdopen" = "yes"; then
31024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31025 $as_echo_n "checking if fdopen usage allowed... " >&6; }
31026     if test "x$curl_disallow_fdopen" != "xyes"; then
31027       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31028 $as_echo "yes" >&6; }
31029       tst_allow_fdopen="yes"
31030     else
31031       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31032 $as_echo "no" >&6; }
31033       tst_allow_fdopen="no"
31034     fi
31035   fi
31036   #
31037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31038 $as_echo_n "checking if fdopen might be used... " >&6; }
31039   if test "$tst_links_fdopen" = "yes" &&
31040      test "$tst_proto_fdopen" = "yes" &&
31041      test "$tst_compi_fdopen" = "yes" &&
31042      test "$tst_allow_fdopen" = "yes"; then
31043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31044 $as_echo "yes" >&6; }
31045
31046 cat >>confdefs.h <<_ACEOF
31047 #define HAVE_FDOPEN 1
31048 _ACEOF
31049
31050     curl_cv_func_fdopen="yes"
31051   else
31052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31053 $as_echo "no" >&6; }
31054     curl_cv_func_fdopen="no"
31055   fi
31056
31057
31058 curl_includes_netdb="\
31059 /* includes start */
31060 #ifdef HAVE_SYS_TYPES_H
31061 #  include <sys/types.h>
31062 #endif
31063 #ifdef HAVE_NETDB_H
31064 #  include <netdb.h>
31065 #endif
31066 /* includes end */"
31067   for ac_header in sys/types.h netdb.h
31068 do :
31069   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31070 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31071 "
31072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31073   cat >>confdefs.h <<_ACEOF
31074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31075 _ACEOF
31076
31077 fi
31078
31079 done
31080
31081
31082
31083         #
31084   tst_links_freeaddrinfo="unknown"
31085   tst_proto_freeaddrinfo="unknown"
31086   tst_compi_freeaddrinfo="unknown"
31087   tst_allow_freeaddrinfo="unknown"
31088   #
31089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31090 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31092 /* end confdefs.h.  */
31093
31094
31095       $curl_includes_ws2tcpip
31096       $curl_includes_sys_socket
31097       $curl_includes_netdb
31098
31099 int main (void)
31100 {
31101
31102       freeaddrinfo(0);
31103
31104  ;
31105  return 0;
31106 }
31107
31108 _ACEOF
31109 if ac_fn_c_try_link "$LINENO"; then :
31110
31111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31112 $as_echo "yes" >&6; }
31113     tst_links_freeaddrinfo="yes"
31114
31115 else
31116
31117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31118 $as_echo "no" >&6; }
31119     tst_links_freeaddrinfo="no"
31120
31121 fi
31122 rm -f core conftest.err conftest.$ac_objext \
31123     conftest$ac_exeext conftest.$ac_ext
31124   #
31125   if test "$tst_links_freeaddrinfo" = "yes"; then
31126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31127 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31128     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31129 /* end confdefs.h.  */
31130
31131       $curl_includes_ws2tcpip
31132       $curl_includes_sys_socket
31133       $curl_includes_netdb
31134
31135 _ACEOF
31136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31137   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31138
31139       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31140 $as_echo "yes" >&6; }
31141       tst_proto_freeaddrinfo="yes"
31142
31143 else
31144
31145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31146 $as_echo "no" >&6; }
31147       tst_proto_freeaddrinfo="no"
31148
31149 fi
31150 rm -f conftest*
31151
31152   fi
31153   #
31154   if test "$tst_proto_freeaddrinfo" = "yes"; then
31155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31156 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31158 /* end confdefs.h.  */
31159
31160
31161         $curl_includes_ws2tcpip
31162         $curl_includes_sys_socket
31163         $curl_includes_netdb
31164
31165 int main (void)
31166 {
31167
31168         freeaddrinfo(0);
31169
31170  ;
31171  return 0;
31172 }
31173
31174 _ACEOF
31175 if ac_fn_c_try_compile "$LINENO"; then :
31176
31177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31178 $as_echo "yes" >&6; }
31179       tst_compi_freeaddrinfo="yes"
31180
31181 else
31182
31183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31184 $as_echo "no" >&6; }
31185       tst_compi_freeaddrinfo="no"
31186
31187 fi
31188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31189   fi
31190   #
31191   if test "$tst_compi_freeaddrinfo" = "yes"; then
31192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31193 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31194     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31195       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31196 $as_echo "yes" >&6; }
31197       tst_allow_freeaddrinfo="yes"
31198     else
31199       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31200 $as_echo "no" >&6; }
31201       tst_allow_freeaddrinfo="no"
31202     fi
31203   fi
31204   #
31205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31206 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31207   if test "$tst_links_freeaddrinfo" = "yes" &&
31208      test "$tst_proto_freeaddrinfo" = "yes" &&
31209      test "$tst_compi_freeaddrinfo" = "yes" &&
31210      test "$tst_allow_freeaddrinfo" = "yes"; then
31211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31212 $as_echo "yes" >&6; }
31213
31214 cat >>confdefs.h <<_ACEOF
31215 #define HAVE_FREEADDRINFO 1
31216 _ACEOF
31217
31218     curl_cv_func_freeaddrinfo="yes"
31219   else
31220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31221 $as_echo "no" >&6; }
31222     curl_cv_func_freeaddrinfo="no"
31223   fi
31224
31225
31226 curl_includes_ifaddrs="\
31227 /* includes start */
31228 #ifdef HAVE_SYS_TYPES_H
31229 #  include <sys/types.h>
31230 #endif
31231 #ifdef HAVE_SYS_SOCKET_H
31232 #  include <sys/socket.h>
31233 #endif
31234 #ifdef HAVE_NETINET_IN_H
31235 #  include <netinet/in.h>
31236 #endif
31237 #ifdef HAVE_IFADDRS_H
31238 #  include <ifaddrs.h>
31239 #endif
31240 /* includes end */"
31241   for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31242 do :
31243   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31244 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31245 "
31246 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31247   cat >>confdefs.h <<_ACEOF
31248 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31249 _ACEOF
31250
31251 fi
31252
31253 done
31254
31255
31256
31257     #
31258   tst_links_freeifaddrs="unknown"
31259   tst_proto_freeifaddrs="unknown"
31260   tst_compi_freeifaddrs="unknown"
31261   tst_allow_freeifaddrs="unknown"
31262   #
31263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31264 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31266 /* end confdefs.h.  */
31267
31268
31269 #define freeifaddrs innocuous_freeifaddrs
31270 #ifdef __STDC__
31271 # include <limits.h>
31272 #else
31273 # include <assert.h>
31274 #endif
31275 #undef freeifaddrs
31276 #ifdef __cplusplus
31277 extern "C"
31278 #endif
31279 char freeifaddrs ();
31280 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31281 choke me
31282 #endif
31283
31284 int main (void)
31285 {
31286 return freeifaddrs ();
31287  ;
31288  return 0;
31289 }
31290
31291 _ACEOF
31292 if ac_fn_c_try_link "$LINENO"; then :
31293
31294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31295 $as_echo "yes" >&6; }
31296     tst_links_freeifaddrs="yes"
31297
31298 else
31299
31300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31301 $as_echo "no" >&6; }
31302     tst_links_freeifaddrs="no"
31303
31304 fi
31305 rm -f core conftest.err conftest.$ac_objext \
31306     conftest$ac_exeext conftest.$ac_ext
31307   #
31308   if test "$tst_links_freeifaddrs" = "yes"; then
31309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31310 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31311     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31312 /* end confdefs.h.  */
31313
31314       $curl_includes_ifaddrs
31315
31316 _ACEOF
31317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31318   $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31319
31320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31321 $as_echo "yes" >&6; }
31322       tst_proto_freeifaddrs="yes"
31323
31324 else
31325
31326       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31327 $as_echo "no" >&6; }
31328       tst_proto_freeifaddrs="no"
31329
31330 fi
31331 rm -f conftest*
31332
31333   fi
31334   #
31335   if test "$tst_proto_freeifaddrs" = "yes"; then
31336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31337 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31338     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31339 /* end confdefs.h.  */
31340
31341
31342         $curl_includes_ifaddrs
31343
31344 int main (void)
31345 {
31346
31347         freeifaddrs(0);
31348
31349  ;
31350  return 0;
31351 }
31352
31353 _ACEOF
31354 if ac_fn_c_try_compile "$LINENO"; then :
31355
31356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31357 $as_echo "yes" >&6; }
31358       tst_compi_freeifaddrs="yes"
31359
31360 else
31361
31362       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31363 $as_echo "no" >&6; }
31364       tst_compi_freeifaddrs="no"
31365
31366 fi
31367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31368   fi
31369   #
31370   if test "$tst_compi_freeifaddrs" = "yes"; then
31371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31372 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31373     if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31374       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31375 $as_echo "yes" >&6; }
31376       tst_allow_freeifaddrs="yes"
31377     else
31378       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31379 $as_echo "no" >&6; }
31380       tst_allow_freeifaddrs="no"
31381     fi
31382   fi
31383   #
31384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31385 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
31386   if test "$tst_links_freeifaddrs" = "yes" &&
31387      test "$tst_proto_freeifaddrs" = "yes" &&
31388      test "$tst_compi_freeifaddrs" = "yes" &&
31389      test "$tst_allow_freeifaddrs" = "yes"; then
31390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31391 $as_echo "yes" >&6; }
31392
31393 cat >>confdefs.h <<_ACEOF
31394 #define HAVE_FREEIFADDRS 1
31395 _ACEOF
31396
31397     curl_cv_func_freeifaddrs="yes"
31398   else
31399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31400 $as_echo "no" >&6; }
31401     curl_cv_func_freeifaddrs="no"
31402   fi
31403
31404
31405 curl_includes_sys_xattr="\
31406 /* includes start */
31407 #ifdef HAVE_SYS_TYPES_H
31408 #  include <sys/types.h>
31409 #endif
31410 #ifdef HAVE_SYS_XATTR_H
31411 #  include <sys/xattr.h>
31412 #endif
31413 /* includes end */"
31414   for ac_header in sys/types.h sys/xattr.h
31415 do :
31416   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31417 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31418 "
31419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31420   cat >>confdefs.h <<_ACEOF
31421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31422 _ACEOF
31423
31424 fi
31425
31426 done
31427
31428
31429
31430     #
31431   tst_links_fsetxattr="unknown"
31432   tst_proto_fsetxattr="unknown"
31433   tst_compi_fsetxattr="unknown"
31434   tst_allow_fsetxattr="unknown"
31435   tst_nargs_fsetxattr="unknown"
31436   #
31437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31438 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
31439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31440 /* end confdefs.h.  */
31441
31442
31443 #define fsetxattr innocuous_fsetxattr
31444 #ifdef __STDC__
31445 # include <limits.h>
31446 #else
31447 # include <assert.h>
31448 #endif
31449 #undef fsetxattr
31450 #ifdef __cplusplus
31451 extern "C"
31452 #endif
31453 char fsetxattr ();
31454 #if defined __stub_fsetxattr || defined __stub___fsetxattr
31455 choke me
31456 #endif
31457
31458 int main (void)
31459 {
31460 return fsetxattr ();
31461  ;
31462  return 0;
31463 }
31464
31465 _ACEOF
31466 if ac_fn_c_try_link "$LINENO"; then :
31467
31468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31469 $as_echo "yes" >&6; }
31470     tst_links_fsetxattr="yes"
31471
31472 else
31473
31474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31475 $as_echo "no" >&6; }
31476     tst_links_fsetxattr="no"
31477
31478 fi
31479 rm -f core conftest.err conftest.$ac_objext \
31480     conftest$ac_exeext conftest.$ac_ext
31481   #
31482   if test "$tst_links_fsetxattr" = "yes"; then
31483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
31484 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
31485     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31486 /* end confdefs.h.  */
31487
31488       $curl_includes_sys_xattr
31489
31490 _ACEOF
31491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31492   $EGREP "fsetxattr" >/dev/null 2>&1; then :
31493
31494       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31495 $as_echo "yes" >&6; }
31496       tst_proto_fsetxattr="yes"
31497
31498 else
31499
31500       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31501 $as_echo "no" >&6; }
31502       tst_proto_fsetxattr="no"
31503
31504 fi
31505 rm -f conftest*
31506
31507   fi
31508   #
31509   if test "$tst_proto_fsetxattr" = "yes"; then
31510     if test "$tst_nargs_fsetxattr" = "unknown"; then
31511       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
31512 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
31513       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31514 /* end confdefs.h.  */
31515
31516
31517           $curl_includes_sys_xattr
31518
31519 int main (void)
31520 {
31521
31522           if(0 != fsetxattr(0, 0, 0, 0, 0))
31523             return 1;
31524
31525  ;
31526  return 0;
31527 }
31528
31529 _ACEOF
31530 if ac_fn_c_try_compile "$LINENO"; then :
31531
31532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31533 $as_echo "yes" >&6; }
31534         tst_compi_fsetxattr="yes"
31535         tst_nargs_fsetxattr="5"
31536
31537 else
31538
31539         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31540 $as_echo "no" >&6; }
31541         tst_compi_fsetxattr="no"
31542
31543 fi
31544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31545     fi
31546     if test "$tst_nargs_fsetxattr" = "unknown"; then
31547       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
31548 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
31549       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31550 /* end confdefs.h.  */
31551
31552
31553           $curl_includes_sys_xattr
31554
31555 int main (void)
31556 {
31557
31558           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
31559             return 1;
31560
31561  ;
31562  return 0;
31563 }
31564
31565 _ACEOF
31566 if ac_fn_c_try_compile "$LINENO"; then :
31567
31568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31569 $as_echo "yes" >&6; }
31570         tst_compi_fsetxattr="yes"
31571         tst_nargs_fsetxattr="6"
31572
31573 else
31574
31575         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31576 $as_echo "no" >&6; }
31577         tst_compi_fsetxattr="no"
31578
31579 fi
31580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31581     fi
31582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
31583 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
31584     if test "$tst_compi_fsetxattr" = "yes"; then
31585       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31586 $as_echo "yes" >&6; }
31587     else
31588       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31589 $as_echo "no" >&6; }
31590     fi
31591   fi
31592   #
31593   if test "$tst_compi_fsetxattr" = "yes"; then
31594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
31595 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
31596     if test "x$curl_disallow_fsetxattr" != "xyes"; then
31597       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31598 $as_echo "yes" >&6; }
31599       tst_allow_fsetxattr="yes"
31600     else
31601       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31602 $as_echo "no" >&6; }
31603       tst_allow_fsetxattr="no"
31604     fi
31605   fi
31606   #
31607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
31608 $as_echo_n "checking if fsetxattr might be used... " >&6; }
31609   if test "$tst_links_fsetxattr" = "yes" &&
31610      test "$tst_proto_fsetxattr" = "yes" &&
31611      test "$tst_compi_fsetxattr" = "yes" &&
31612      test "$tst_allow_fsetxattr" = "yes"; then
31613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31614 $as_echo "yes" >&6; }
31615
31616 cat >>confdefs.h <<_ACEOF
31617 #define HAVE_FSETXATTR 1
31618 _ACEOF
31619
31620             #
31621     if test "$tst_nargs_fsetxattr" -eq "5"; then
31622
31623 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
31624
31625     elif test "$tst_nargs_fsetxattr" -eq "6"; then
31626
31627 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
31628
31629     fi
31630     #
31631     curl_cv_func_fsetxattr="yes"
31632   else
31633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31634 $as_echo "no" >&6; }
31635     curl_cv_func_fsetxattr="no"
31636   fi
31637
31638
31639     #
31640   tst_links_ftruncate="unknown"
31641   tst_proto_ftruncate="unknown"
31642   tst_compi_ftruncate="unknown"
31643   tst_allow_ftruncate="unknown"
31644   #
31645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
31646 $as_echo_n "checking if ftruncate can be linked... " >&6; }
31647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31648 /* end confdefs.h.  */
31649
31650
31651 #define ftruncate innocuous_ftruncate
31652 #ifdef __STDC__
31653 # include <limits.h>
31654 #else
31655 # include <assert.h>
31656 #endif
31657 #undef ftruncate
31658 #ifdef __cplusplus
31659 extern "C"
31660 #endif
31661 char ftruncate ();
31662 #if defined __stub_ftruncate || defined __stub___ftruncate
31663 choke me
31664 #endif
31665
31666 int main (void)
31667 {
31668 return ftruncate ();
31669  ;
31670  return 0;
31671 }
31672
31673 _ACEOF
31674 if ac_fn_c_try_link "$LINENO"; then :
31675
31676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31677 $as_echo "yes" >&6; }
31678     tst_links_ftruncate="yes"
31679
31680 else
31681
31682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31683 $as_echo "no" >&6; }
31684     tst_links_ftruncate="no"
31685
31686 fi
31687 rm -f core conftest.err conftest.$ac_objext \
31688     conftest$ac_exeext conftest.$ac_ext
31689   #
31690   if test "$tst_links_ftruncate" = "yes"; then
31691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
31692 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
31693     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31694 /* end confdefs.h.  */
31695
31696       $curl_includes_unistd
31697
31698 _ACEOF
31699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31700   $EGREP "ftruncate" >/dev/null 2>&1; then :
31701
31702       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31703 $as_echo "yes" >&6; }
31704       tst_proto_ftruncate="yes"
31705
31706 else
31707
31708       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31709 $as_echo "no" >&6; }
31710       tst_proto_ftruncate="no"
31711
31712 fi
31713 rm -f conftest*
31714
31715   fi
31716   #
31717   if test "$tst_proto_ftruncate" = "yes"; then
31718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
31719 $as_echo_n "checking if ftruncate is compilable... " >&6; }
31720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31721 /* end confdefs.h.  */
31722
31723
31724         $curl_includes_unistd
31725
31726 int main (void)
31727 {
31728
31729         if(0 != ftruncate(0, 0))
31730           return 1;
31731
31732  ;
31733  return 0;
31734 }
31735
31736 _ACEOF
31737 if ac_fn_c_try_compile "$LINENO"; then :
31738
31739       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31740 $as_echo "yes" >&6; }
31741       tst_compi_ftruncate="yes"
31742
31743 else
31744
31745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31746 $as_echo "no" >&6; }
31747       tst_compi_ftruncate="no"
31748
31749 fi
31750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31751   fi
31752   #
31753   if test "$tst_compi_ftruncate" = "yes"; then
31754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
31755 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
31756     if test "x$curl_disallow_ftruncate" != "xyes"; then
31757       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31758 $as_echo "yes" >&6; }
31759       tst_allow_ftruncate="yes"
31760     else
31761       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31762 $as_echo "no" >&6; }
31763       tst_allow_ftruncate="no"
31764     fi
31765   fi
31766   #
31767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
31768 $as_echo_n "checking if ftruncate might be used... " >&6; }
31769   if test "$tst_links_ftruncate" = "yes" &&
31770      test "$tst_proto_ftruncate" = "yes" &&
31771      test "$tst_compi_ftruncate" = "yes" &&
31772      test "$tst_allow_ftruncate" = "yes"; then
31773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31774 $as_echo "yes" >&6; }
31775
31776 cat >>confdefs.h <<_ACEOF
31777 #define HAVE_FTRUNCATE 1
31778 _ACEOF
31779
31780     curl_cv_func_ftruncate="yes"
31781   else
31782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31783 $as_echo "no" >&6; }
31784     curl_cv_func_ftruncate="no"
31785   fi
31786
31787
31788 curl_includes_stdlib="\
31789 /* includes start */
31790 #ifdef HAVE_SYS_TYPES_H
31791 #  include <sys/types.h>
31792 #endif
31793 #ifdef HAVE_STDLIB_H
31794 #  include <stdlib.h>
31795 #endif
31796 /* includes end */"
31797   for ac_header in sys/types.h stdlib.h
31798 do :
31799   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31800 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
31801 "
31802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31803   cat >>confdefs.h <<_ACEOF
31804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31805 _ACEOF
31806
31807 fi
31808
31809 done
31810
31811
31812
31813               #
31814   tst_links_getaddrinfo="unknown"
31815   tst_proto_getaddrinfo="unknown"
31816   tst_compi_getaddrinfo="unknown"
31817   tst_works_getaddrinfo="unknown"
31818   tst_allow_getaddrinfo="unknown"
31819   tst_tsafe_getaddrinfo="unknown"
31820   #
31821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
31822 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
31823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31824 /* end confdefs.h.  */
31825
31826
31827       $curl_includes_ws2tcpip
31828       $curl_includes_sys_socket
31829       $curl_includes_netdb
31830
31831 int main (void)
31832 {
31833
31834       if(0 != getaddrinfo(0, 0, 0, 0))
31835         return 1;
31836
31837  ;
31838  return 0;
31839 }
31840
31841 _ACEOF
31842 if ac_fn_c_try_link "$LINENO"; then :
31843
31844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31845 $as_echo "yes" >&6; }
31846     tst_links_getaddrinfo="yes"
31847
31848 else
31849
31850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31851 $as_echo "no" >&6; }
31852     tst_links_getaddrinfo="no"
31853
31854 fi
31855 rm -f core conftest.err conftest.$ac_objext \
31856     conftest$ac_exeext conftest.$ac_ext
31857   #
31858   if test "$tst_links_getaddrinfo" = "yes"; then
31859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
31860 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
31861     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31862 /* end confdefs.h.  */
31863
31864       $curl_includes_ws2tcpip
31865       $curl_includes_sys_socket
31866       $curl_includes_netdb
31867
31868 _ACEOF
31869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31870   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
31871
31872       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31873 $as_echo "yes" >&6; }
31874       tst_proto_getaddrinfo="yes"
31875
31876 else
31877
31878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31879 $as_echo "no" >&6; }
31880       tst_proto_getaddrinfo="no"
31881
31882 fi
31883 rm -f conftest*
31884
31885   fi
31886   #
31887   if test "$tst_proto_getaddrinfo" = "yes"; then
31888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
31889 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
31890     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31891 /* end confdefs.h.  */
31892
31893
31894         $curl_includes_ws2tcpip
31895         $curl_includes_sys_socket
31896         $curl_includes_netdb
31897
31898 int main (void)
31899 {
31900
31901         if(0 != getaddrinfo(0, 0, 0, 0))
31902           return 1;
31903
31904  ;
31905  return 0;
31906 }
31907
31908 _ACEOF
31909 if ac_fn_c_try_compile "$LINENO"; then :
31910
31911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31912 $as_echo "yes" >&6; }
31913       tst_compi_getaddrinfo="yes"
31914
31915 else
31916
31917       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31918 $as_echo "no" >&6; }
31919       tst_compi_getaddrinfo="no"
31920
31921 fi
31922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31923   fi
31924   #
31925     if test "x$cross_compiling" != "xyes" &&
31926     test "$tst_compi_getaddrinfo" = "yes"; then
31927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
31928 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
31929     if test "$cross_compiling" = yes; then :
31930   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31932 as_fn_error $? "cannot run test program while cross compiling
31933 See \`config.log' for more details" "$LINENO" 5; }
31934 else
31935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31936 /* end confdefs.h.  */
31937
31938
31939         $curl_includes_ws2tcpip
31940         $curl_includes_stdlib
31941         $curl_includes_string
31942         $curl_includes_sys_socket
31943         $curl_includes_netdb
31944
31945 int main (void)
31946 {
31947
31948         struct addrinfo hints;
31949         struct addrinfo *ai = 0;
31950         int error;
31951
31952         #ifdef HAVE_WINSOCK2_H
31953         WSADATA wsa;
31954         if (WSAStartup(MAKEWORD(2,2), &wsa))
31955                 exit(2);
31956         #endif
31957
31958         memset(&hints, 0, sizeof(hints));
31959         hints.ai_flags = AI_NUMERICHOST;
31960         hints.ai_family = AF_UNSPEC;
31961         hints.ai_socktype = SOCK_STREAM;
31962         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
31963         if(error || !ai)
31964           exit(1); /* fail */
31965         else
31966           exit(0);
31967
31968  ;
31969  return 0;
31970 }
31971
31972 _ACEOF
31973 if ac_fn_c_try_run "$LINENO"; then :
31974
31975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31976 $as_echo "yes" >&6; }
31977       tst_works_getaddrinfo="yes"
31978
31979 else
31980
31981       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31982 $as_echo "no" >&6; }
31983       tst_works_getaddrinfo="no"
31984
31985 fi
31986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31987   conftest.$ac_objext conftest.beam conftest.$ac_ext
31988 fi
31989
31990   fi
31991   #
31992   if test "$tst_compi_getaddrinfo" = "yes" &&
31993     test "$tst_works_getaddrinfo" != "no"; then
31994     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
31995 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
31996     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
31997       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31998 $as_echo "yes" >&6; }
31999       tst_allow_getaddrinfo="yes"
32000     else
32001       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32002 $as_echo "no" >&6; }
32003       tst_allow_getaddrinfo="no"
32004     fi
32005   fi
32006   #
32007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32008 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
32009   if test "$tst_links_getaddrinfo" = "yes" &&
32010      test "$tst_proto_getaddrinfo" = "yes" &&
32011      test "$tst_compi_getaddrinfo" = "yes" &&
32012      test "$tst_allow_getaddrinfo" = "yes" &&
32013      test "$tst_works_getaddrinfo" != "no"; then
32014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32015 $as_echo "yes" >&6; }
32016
32017 cat >>confdefs.h <<_ACEOF
32018 #define HAVE_GETADDRINFO 1
32019 _ACEOF
32020
32021     curl_cv_func_getaddrinfo="yes"
32022   else
32023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32024 $as_echo "no" >&6; }
32025     curl_cv_func_getaddrinfo="no"
32026     curl_cv_func_getaddrinfo_threadsafe="no"
32027   fi
32028   #
32029   if test "$curl_cv_func_getaddrinfo" = "yes"; then
32030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32031 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32032     case $host_os in
32033       aix[1234].* | aix5.[01].*)
32034                 tst_tsafe_getaddrinfo="no"
32035         ;;
32036       aix*)
32037                 tst_tsafe_getaddrinfo="yes"
32038         ;;
32039       darwin[12345].*)
32040                 tst_tsafe_getaddrinfo="no"
32041         ;;
32042       darwin*)
32043                 tst_tsafe_getaddrinfo="yes"
32044         ;;
32045       freebsd[1234].* | freebsd5.[1234]*)
32046                 tst_tsafe_getaddrinfo="no"
32047         ;;
32048       freebsd*)
32049                 tst_tsafe_getaddrinfo="yes"
32050         ;;
32051       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32052                 tst_tsafe_getaddrinfo="no"
32053         ;;
32054       hpux*)
32055                 tst_tsafe_getaddrinfo="yes"
32056         ;;
32057       netbsd[123].*)
32058                 tst_tsafe_getaddrinfo="no"
32059         ;;
32060       netbsd*)
32061                 tst_tsafe_getaddrinfo="yes"
32062         ;;
32063       *bsd*)
32064                 tst_tsafe_getaddrinfo="no"
32065         ;;
32066       solaris2*)
32067                 tst_tsafe_getaddrinfo="yes"
32068         ;;
32069     esac
32070     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32071        test "$curl_cv_native_windows" = "yes"; then
32072       tst_tsafe_getaddrinfo="yes"
32073     fi
32074     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32075
32076
32077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32078 /* end confdefs.h.  */
32079
32080
32081         $curl_includes_sys_socket
32082         $curl_includes_netdb
32083
32084 int main (void)
32085 {
32086 #ifdef h_errno
32087   return 0;
32088 #else
32089   force compilation error
32090 #endif
32091 }
32092
32093
32094 _ACEOF
32095 if ac_fn_c_try_compile "$LINENO"; then :
32096
32097     tst_symbol_defined="yes"
32098
32099 else
32100
32101     tst_symbol_defined="no"
32102
32103 fi
32104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32105   if test "$tst_symbol_defined" = "yes"; then
32106     curl_cv_have_def_h_errno=yes
32107
32108   else
32109     curl_cv_have_def_h_errno=no
32110
32111   fi
32112
32113       if test "$curl_cv_have_def_h_errno" = "yes"; then
32114         tst_h_errno_macro="yes"
32115       else
32116         tst_h_errno_macro="no"
32117       fi
32118       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32119 /* end confdefs.h.  */
32120
32121
32122           $curl_includes_sys_socket
32123           $curl_includes_netdb
32124
32125 int main (void)
32126 {
32127
32128           h_errno = 2;
32129           if(0 != h_errno)
32130             return 1;
32131
32132  ;
32133  return 0;
32134 }
32135
32136 _ACEOF
32137 if ac_fn_c_try_compile "$LINENO"; then :
32138
32139         tst_h_errno_modifiable_lvalue="yes"
32140
32141 else
32142
32143         tst_h_errno_modifiable_lvalue="no"
32144
32145 fi
32146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32147       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32148 /* end confdefs.h.  */
32149
32150
32151
32152 int main (void)
32153 {
32154
32155 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32156           return 0;
32157 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32158           return 0;
32159 #else
32160           force compilation error
32161 #endif
32162
32163  ;
32164  return 0;
32165 }
32166
32167 _ACEOF
32168 if ac_fn_c_try_compile "$LINENO"; then :
32169
32170         tst_h_errno_sbs_issue_7="yes"
32171
32172 else
32173
32174         tst_h_errno_sbs_issue_7="no"
32175
32176 fi
32177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32178       if test "$tst_h_errno_macro" = "no" &&
32179          test "$tst_h_errno_modifiable_lvalue" = "no" &&
32180          test "$tst_h_errno_sbs_issue_7" = "no"; then
32181         tst_tsafe_getaddrinfo="no"
32182       else
32183         tst_tsafe_getaddrinfo="yes"
32184       fi
32185     fi
32186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32187 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
32188     if test "$tst_tsafe_getaddrinfo" = "yes"; then
32189
32190 cat >>confdefs.h <<_ACEOF
32191 #define HAVE_GETADDRINFO_THREADSAFE 1
32192 _ACEOF
32193
32194       curl_cv_func_getaddrinfo_threadsafe="yes"
32195     else
32196       curl_cv_func_getaddrinfo_threadsafe="no"
32197     fi
32198   fi
32199
32200
32201       #
32202   tst_links_gai_strerror="unknown"
32203   tst_proto_gai_strerror="unknown"
32204   tst_compi_gai_strerror="unknown"
32205   tst_allow_gai_strerror="unknown"
32206   #
32207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32208 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
32209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32210 /* end confdefs.h.  */
32211
32212
32213       $curl_includes_winsock2
32214       $curl_includes_netdb
32215
32216 int main (void)
32217 {
32218
32219       if(0 != gai_strerror(0))
32220         return 1;
32221
32222  ;
32223  return 0;
32224 }
32225
32226 _ACEOF
32227 if ac_fn_c_try_link "$LINENO"; then :
32228
32229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32230 $as_echo "yes" >&6; }
32231     tst_links_gai_strerror="yes"
32232
32233 else
32234
32235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32236 $as_echo "no" >&6; }
32237     tst_links_gai_strerror="no"
32238
32239 fi
32240 rm -f core conftest.err conftest.$ac_objext \
32241     conftest$ac_exeext conftest.$ac_ext
32242   #
32243   if test "$tst_links_gai_strerror" = "yes"; then
32244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32245 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32246     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32247 /* end confdefs.h.  */
32248
32249       $curl_includes_winsock2
32250       $curl_includes_netdb
32251
32252 _ACEOF
32253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32254   $EGREP "gai_strerror" >/dev/null 2>&1; then :
32255
32256       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32257 $as_echo "yes" >&6; }
32258       tst_proto_gai_strerror="yes"
32259
32260 else
32261
32262       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32263 $as_echo "no" >&6; }
32264       tst_proto_gai_strerror="no"
32265
32266 fi
32267 rm -f conftest*
32268
32269   fi
32270   #
32271   if test "$tst_proto_gai_strerror" = "yes"; then
32272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32273 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
32274     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32275 /* end confdefs.h.  */
32276
32277
32278         $curl_includes_winsock2
32279         $curl_includes_netdb
32280
32281 int main (void)
32282 {
32283
32284         if(0 != gai_strerror(0))
32285           return 1;
32286
32287  ;
32288  return 0;
32289 }
32290
32291 _ACEOF
32292 if ac_fn_c_try_compile "$LINENO"; then :
32293
32294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32295 $as_echo "yes" >&6; }
32296       tst_compi_gai_strerror="yes"
32297
32298 else
32299
32300       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32301 $as_echo "no" >&6; }
32302       tst_compi_gai_strerror="no"
32303
32304 fi
32305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32306   fi
32307   #
32308   if test "$tst_compi_gai_strerror" = "yes"; then
32309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32310 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32311     if test "x$curl_disallow_gai_strerror" != "xyes"; then
32312       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32313 $as_echo "yes" >&6; }
32314       tst_allow_gai_strerror="yes"
32315     else
32316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32317 $as_echo "no" >&6; }
32318       tst_allow_gai_strerror="no"
32319     fi
32320   fi
32321   #
32322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32323 $as_echo_n "checking if gai_strerror might be used... " >&6; }
32324   if test "$tst_links_gai_strerror" = "yes" &&
32325      test "$tst_proto_gai_strerror" = "yes" &&
32326      test "$tst_compi_gai_strerror" = "yes" &&
32327      test "$tst_allow_gai_strerror" = "yes"; then
32328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32329 $as_echo "yes" >&6; }
32330
32331 cat >>confdefs.h <<_ACEOF
32332 #define HAVE_GAI_STRERROR 1
32333 _ACEOF
32334
32335     curl_cv_func_gai_strerror="yes"
32336   else
32337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32338 $as_echo "no" >&6; }
32339     curl_cv_func_gai_strerror="no"
32340   fi
32341
32342
32343       #
32344   tst_links_gethostbyaddr="unknown"
32345   tst_proto_gethostbyaddr="unknown"
32346   tst_compi_gethostbyaddr="unknown"
32347   tst_allow_gethostbyaddr="unknown"
32348   #
32349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32350 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32352 /* end confdefs.h.  */
32353
32354
32355       $curl_includes_winsock2
32356       $curl_includes_netdb
32357
32358 int main (void)
32359 {
32360
32361       if(0 != gethostbyaddr(0, 0, 0))
32362         return 1;
32363
32364  ;
32365  return 0;
32366 }
32367
32368 _ACEOF
32369 if ac_fn_c_try_link "$LINENO"; then :
32370
32371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32372 $as_echo "yes" >&6; }
32373     tst_links_gethostbyaddr="yes"
32374
32375 else
32376
32377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32378 $as_echo "no" >&6; }
32379     tst_links_gethostbyaddr="no"
32380
32381 fi
32382 rm -f core conftest.err conftest.$ac_objext \
32383     conftest$ac_exeext conftest.$ac_ext
32384   #
32385   if test "$tst_links_gethostbyaddr" = "yes"; then
32386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32387 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32388     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32389 /* end confdefs.h.  */
32390
32391       $curl_includes_winsock2
32392       $curl_includes_netdb
32393
32394 _ACEOF
32395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32396   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32397
32398       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32399 $as_echo "yes" >&6; }
32400       tst_proto_gethostbyaddr="yes"
32401
32402 else
32403
32404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32405 $as_echo "no" >&6; }
32406       tst_proto_gethostbyaddr="no"
32407
32408 fi
32409 rm -f conftest*
32410
32411   fi
32412   #
32413   if test "$tst_proto_gethostbyaddr" = "yes"; then
32414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32415 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32416     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32417 /* end confdefs.h.  */
32418
32419
32420         $curl_includes_winsock2
32421         $curl_includes_netdb
32422
32423 int main (void)
32424 {
32425
32426         if(0 != gethostbyaddr(0, 0, 0))
32427           return 1;
32428
32429  ;
32430  return 0;
32431 }
32432
32433 _ACEOF
32434 if ac_fn_c_try_compile "$LINENO"; then :
32435
32436       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32437 $as_echo "yes" >&6; }
32438       tst_compi_gethostbyaddr="yes"
32439
32440 else
32441
32442       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32443 $as_echo "no" >&6; }
32444       tst_compi_gethostbyaddr="no"
32445
32446 fi
32447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32448   fi
32449   #
32450   if test "$tst_compi_gethostbyaddr" = "yes"; then
32451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32452 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32453     if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32454       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32455 $as_echo "yes" >&6; }
32456       tst_allow_gethostbyaddr="yes"
32457     else
32458       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32459 $as_echo "no" >&6; }
32460       tst_allow_gethostbyaddr="no"
32461     fi
32462   fi
32463   #
32464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
32465 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
32466   if test "$tst_links_gethostbyaddr" = "yes" &&
32467      test "$tst_proto_gethostbyaddr" = "yes" &&
32468      test "$tst_compi_gethostbyaddr" = "yes" &&
32469      test "$tst_allow_gethostbyaddr" = "yes"; then
32470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32471 $as_echo "yes" >&6; }
32472
32473 cat >>confdefs.h <<_ACEOF
32474 #define HAVE_GETHOSTBYADDR 1
32475 _ACEOF
32476
32477     curl_cv_func_gethostbyaddr="yes"
32478   else
32479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32480 $as_echo "no" >&6; }
32481     curl_cv_func_gethostbyaddr="no"
32482   fi
32483
32484
32485     #
32486   tst_links_gethostbyaddr_r="unknown"
32487   tst_proto_gethostbyaddr_r="unknown"
32488   tst_compi_gethostbyaddr_r="unknown"
32489   tst_allow_gethostbyaddr_r="unknown"
32490   tst_nargs_gethostbyaddr_r="unknown"
32491   #
32492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
32493 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
32494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32495 /* end confdefs.h.  */
32496
32497
32498 #define gethostbyaddr_r innocuous_gethostbyaddr_r
32499 #ifdef __STDC__
32500 # include <limits.h>
32501 #else
32502 # include <assert.h>
32503 #endif
32504 #undef gethostbyaddr_r
32505 #ifdef __cplusplus
32506 extern "C"
32507 #endif
32508 char gethostbyaddr_r ();
32509 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
32510 choke me
32511 #endif
32512
32513 int main (void)
32514 {
32515 return gethostbyaddr_r ();
32516  ;
32517  return 0;
32518 }
32519
32520 _ACEOF
32521 if ac_fn_c_try_link "$LINENO"; then :
32522
32523     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32524 $as_echo "yes" >&6; }
32525     tst_links_gethostbyaddr_r="yes"
32526
32527 else
32528
32529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32530 $as_echo "no" >&6; }
32531     tst_links_gethostbyaddr_r="no"
32532
32533 fi
32534 rm -f core conftest.err conftest.$ac_objext \
32535     conftest$ac_exeext conftest.$ac_ext
32536   #
32537   if test "$tst_links_gethostbyaddr_r" = "yes"; then
32538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
32539 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
32540     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32541 /* end confdefs.h.  */
32542
32543       $curl_includes_netdb
32544
32545 _ACEOF
32546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32547   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
32548
32549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32550 $as_echo "yes" >&6; }
32551       tst_proto_gethostbyaddr_r="yes"
32552
32553 else
32554
32555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32556 $as_echo "no" >&6; }
32557       tst_proto_gethostbyaddr_r="no"
32558
32559 fi
32560 rm -f conftest*
32561
32562   fi
32563   #
32564   if test "$tst_proto_gethostbyaddr_r" = "yes"; then
32565     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32566       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
32567 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
32568       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32569 /* end confdefs.h.  */
32570
32571
32572           $curl_includes_netdb
32573
32574 int main (void)
32575 {
32576
32577           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
32578             return 1;
32579
32580  ;
32581  return 0;
32582 }
32583
32584 _ACEOF
32585 if ac_fn_c_try_compile "$LINENO"; then :
32586
32587         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32588 $as_echo "yes" >&6; }
32589         tst_compi_gethostbyaddr_r="yes"
32590         tst_nargs_gethostbyaddr_r="5"
32591
32592 else
32593
32594         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32595 $as_echo "no" >&6; }
32596         tst_compi_gethostbyaddr_r="no"
32597
32598 fi
32599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32600     fi
32601     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32602       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
32603 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
32604       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32605 /* end confdefs.h.  */
32606
32607
32608           $curl_includes_netdb
32609
32610 int main (void)
32611 {
32612
32613           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
32614             return 1;
32615
32616  ;
32617  return 0;
32618 }
32619
32620 _ACEOF
32621 if ac_fn_c_try_compile "$LINENO"; then :
32622
32623         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32624 $as_echo "yes" >&6; }
32625         tst_compi_gethostbyaddr_r="yes"
32626         tst_nargs_gethostbyaddr_r="7"
32627
32628 else
32629
32630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32631 $as_echo "no" >&6; }
32632         tst_compi_gethostbyaddr_r="no"
32633
32634 fi
32635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32636     fi
32637     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32638       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
32639 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
32640       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32641 /* end confdefs.h.  */
32642
32643
32644           $curl_includes_netdb
32645
32646 int main (void)
32647 {
32648
32649           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
32650             return 1;
32651
32652  ;
32653  return 0;
32654 }
32655
32656 _ACEOF
32657 if ac_fn_c_try_compile "$LINENO"; then :
32658
32659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32660 $as_echo "yes" >&6; }
32661         tst_compi_gethostbyaddr_r="yes"
32662         tst_nargs_gethostbyaddr_r="8"
32663
32664 else
32665
32666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32667 $as_echo "no" >&6; }
32668         tst_compi_gethostbyaddr_r="no"
32669
32670 fi
32671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32672     fi
32673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
32674 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
32675     if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32676       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32677 $as_echo "yes" >&6; }
32678     else
32679       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32680 $as_echo "no" >&6; }
32681     fi
32682   fi
32683   #
32684   if test "$tst_compi_gethostbyaddr_r" = "yes"; then
32685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
32686 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
32687     if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
32688       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32689 $as_echo "yes" >&6; }
32690       tst_allow_gethostbyaddr_r="yes"
32691     else
32692       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32693 $as_echo "no" >&6; }
32694       tst_allow_gethostbyaddr_r="no"
32695     fi
32696   fi
32697   #
32698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
32699 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
32700   if test "$tst_links_gethostbyaddr_r" = "yes" &&
32701      test "$tst_proto_gethostbyaddr_r" = "yes" &&
32702      test "$tst_compi_gethostbyaddr_r" = "yes" &&
32703      test "$tst_allow_gethostbyaddr_r" = "yes"; then
32704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32705 $as_echo "yes" >&6; }
32706
32707 cat >>confdefs.h <<_ACEOF
32708 #define HAVE_GETHOSTBYADDR_R 1
32709 _ACEOF
32710
32711             #
32712     if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
32713
32714 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
32715
32716     elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
32717
32718 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
32719
32720     elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
32721
32722 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
32723
32724     fi
32725     #
32726     curl_cv_func_gethostbyaddr_r="yes"
32727   else
32728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32729 $as_echo "no" >&6; }
32730     curl_cv_func_gethostbyaddr_r="no"
32731   fi
32732
32733
32734       #
32735   tst_links_gethostbyname="unknown"
32736   tst_proto_gethostbyname="unknown"
32737   tst_compi_gethostbyname="unknown"
32738   tst_allow_gethostbyname="unknown"
32739   #
32740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
32741 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
32742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32743 /* end confdefs.h.  */
32744
32745
32746       $curl_includes_winsock2
32747       $curl_includes_netdb
32748
32749 int main (void)
32750 {
32751
32752       if(0 != gethostbyname(0))
32753         return 1;
32754
32755  ;
32756  return 0;
32757 }
32758
32759 _ACEOF
32760 if ac_fn_c_try_link "$LINENO"; then :
32761
32762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32763 $as_echo "yes" >&6; }
32764     tst_links_gethostbyname="yes"
32765
32766 else
32767
32768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32769 $as_echo "no" >&6; }
32770     tst_links_gethostbyname="no"
32771
32772 fi
32773 rm -f core conftest.err conftest.$ac_objext \
32774     conftest$ac_exeext conftest.$ac_ext
32775   #
32776   if test "$tst_links_gethostbyname" = "yes"; then
32777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
32778 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
32779     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32780 /* end confdefs.h.  */
32781
32782       $curl_includes_winsock2
32783       $curl_includes_netdb
32784
32785 _ACEOF
32786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32787   $EGREP "gethostbyname" >/dev/null 2>&1; then :
32788
32789       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32790 $as_echo "yes" >&6; }
32791       tst_proto_gethostbyname="yes"
32792
32793 else
32794
32795       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32796 $as_echo "no" >&6; }
32797       tst_proto_gethostbyname="no"
32798
32799 fi
32800 rm -f conftest*
32801
32802   fi
32803   #
32804   if test "$tst_proto_gethostbyname" = "yes"; then
32805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
32806 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
32807     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32808 /* end confdefs.h.  */
32809
32810
32811         $curl_includes_winsock2
32812         $curl_includes_netdb
32813
32814 int main (void)
32815 {
32816
32817         if(0 != gethostbyname(0))
32818           return 1;
32819
32820  ;
32821  return 0;
32822 }
32823
32824 _ACEOF
32825 if ac_fn_c_try_compile "$LINENO"; then :
32826
32827       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32828 $as_echo "yes" >&6; }
32829       tst_compi_gethostbyname="yes"
32830
32831 else
32832
32833       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32834 $as_echo "no" >&6; }
32835       tst_compi_gethostbyname="no"
32836
32837 fi
32838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32839   fi
32840   #
32841   if test "$tst_compi_gethostbyname" = "yes"; then
32842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
32843 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
32844     if test "x$curl_disallow_gethostbyname" != "xyes"; then
32845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32846 $as_echo "yes" >&6; }
32847       tst_allow_gethostbyname="yes"
32848     else
32849       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32850 $as_echo "no" >&6; }
32851       tst_allow_gethostbyname="no"
32852     fi
32853   fi
32854   #
32855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
32856 $as_echo_n "checking if gethostbyname might be used... " >&6; }
32857   if test "$tst_links_gethostbyname" = "yes" &&
32858      test "$tst_proto_gethostbyname" = "yes" &&
32859      test "$tst_compi_gethostbyname" = "yes" &&
32860      test "$tst_allow_gethostbyname" = "yes"; then
32861     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32862 $as_echo "yes" >&6; }
32863
32864 cat >>confdefs.h <<_ACEOF
32865 #define HAVE_GETHOSTBYNAME 1
32866 _ACEOF
32867
32868     curl_cv_func_gethostbyname="yes"
32869   else
32870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32871 $as_echo "no" >&6; }
32872     curl_cv_func_gethostbyname="no"
32873   fi
32874
32875
32876     #
32877   tst_links_gethostbyname_r="unknown"
32878   tst_proto_gethostbyname_r="unknown"
32879   tst_compi_gethostbyname_r="unknown"
32880   tst_allow_gethostbyname_r="unknown"
32881   tst_nargs_gethostbyname_r="unknown"
32882   #
32883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
32884 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
32885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32886 /* end confdefs.h.  */
32887
32888
32889 #define gethostbyname_r innocuous_gethostbyname_r
32890 #ifdef __STDC__
32891 # include <limits.h>
32892 #else
32893 # include <assert.h>
32894 #endif
32895 #undef gethostbyname_r
32896 #ifdef __cplusplus
32897 extern "C"
32898 #endif
32899 char gethostbyname_r ();
32900 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
32901 choke me
32902 #endif
32903
32904 int main (void)
32905 {
32906 return gethostbyname_r ();
32907  ;
32908  return 0;
32909 }
32910
32911 _ACEOF
32912 if ac_fn_c_try_link "$LINENO"; then :
32913
32914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32915 $as_echo "yes" >&6; }
32916     tst_links_gethostbyname_r="yes"
32917
32918 else
32919
32920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32921 $as_echo "no" >&6; }
32922     tst_links_gethostbyname_r="no"
32923
32924 fi
32925 rm -f core conftest.err conftest.$ac_objext \
32926     conftest$ac_exeext conftest.$ac_ext
32927   #
32928   if test "$tst_links_gethostbyname_r" = "yes"; then
32929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
32930 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
32931     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32932 /* end confdefs.h.  */
32933
32934       $curl_includes_netdb
32935
32936 _ACEOF
32937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32938   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
32939
32940       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32941 $as_echo "yes" >&6; }
32942       tst_proto_gethostbyname_r="yes"
32943
32944 else
32945
32946       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32947 $as_echo "no" >&6; }
32948       tst_proto_gethostbyname_r="no"
32949
32950 fi
32951 rm -f conftest*
32952
32953   fi
32954   #
32955   if test "$tst_proto_gethostbyname_r" = "yes"; then
32956     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32957       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
32958 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
32959       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32960 /* end confdefs.h.  */
32961
32962
32963           $curl_includes_netdb
32964
32965 int main (void)
32966 {
32967
32968           if(0 != gethostbyname_r(0, 0, 0))
32969             return 1;
32970
32971  ;
32972  return 0;
32973 }
32974
32975 _ACEOF
32976 if ac_fn_c_try_compile "$LINENO"; then :
32977
32978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32979 $as_echo "yes" >&6; }
32980         tst_compi_gethostbyname_r="yes"
32981         tst_nargs_gethostbyname_r="3"
32982
32983 else
32984
32985         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32986 $as_echo "no" >&6; }
32987         tst_compi_gethostbyname_r="no"
32988
32989 fi
32990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32991     fi
32992     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
32993       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
32994 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
32995       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32996 /* end confdefs.h.  */
32997
32998
32999           $curl_includes_netdb
33000
33001 int main (void)
33002 {
33003
33004           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33005             return 1;
33006
33007  ;
33008  return 0;
33009 }
33010
33011 _ACEOF
33012 if ac_fn_c_try_compile "$LINENO"; then :
33013
33014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33015 $as_echo "yes" >&6; }
33016         tst_compi_gethostbyname_r="yes"
33017         tst_nargs_gethostbyname_r="5"
33018
33019 else
33020
33021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33022 $as_echo "no" >&6; }
33023         tst_compi_gethostbyname_r="no"
33024
33025 fi
33026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33027     fi
33028     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33029       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33030 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33031       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33032 /* end confdefs.h.  */
33033
33034
33035           $curl_includes_netdb
33036
33037 int main (void)
33038 {
33039
33040           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33041             return 1;
33042
33043  ;
33044  return 0;
33045 }
33046
33047 _ACEOF
33048 if ac_fn_c_try_compile "$LINENO"; then :
33049
33050         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33051 $as_echo "yes" >&6; }
33052         tst_compi_gethostbyname_r="yes"
33053         tst_nargs_gethostbyname_r="6"
33054
33055 else
33056
33057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33058 $as_echo "no" >&6; }
33059         tst_compi_gethostbyname_r="no"
33060
33061 fi
33062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33063     fi
33064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33065 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33066     if test "$tst_compi_gethostbyname_r" = "yes"; then
33067       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33068 $as_echo "yes" >&6; }
33069     else
33070       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33071 $as_echo "no" >&6; }
33072     fi
33073   fi
33074   #
33075   if test "$tst_compi_gethostbyname_r" = "yes"; then
33076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33077 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33078     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33079       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33080 $as_echo "yes" >&6; }
33081       tst_allow_gethostbyname_r="yes"
33082     else
33083       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33084 $as_echo "no" >&6; }
33085       tst_allow_gethostbyname_r="no"
33086     fi
33087   fi
33088   #
33089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33090 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33091   if test "$tst_links_gethostbyname_r" = "yes" &&
33092      test "$tst_proto_gethostbyname_r" = "yes" &&
33093      test "$tst_compi_gethostbyname_r" = "yes" &&
33094      test "$tst_allow_gethostbyname_r" = "yes"; then
33095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33096 $as_echo "yes" >&6; }
33097
33098 cat >>confdefs.h <<_ACEOF
33099 #define HAVE_GETHOSTBYNAME_R 1
33100 _ACEOF
33101
33102             #
33103     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33104
33105 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33106
33107     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33108
33109 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33110
33111     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33112
33113 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33114
33115     fi
33116     #
33117     curl_cv_func_gethostbyname_r="yes"
33118   else
33119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33120 $as_echo "no" >&6; }
33121     curl_cv_func_gethostbyname_r="no"
33122   fi
33123
33124
33125         #
33126   tst_links_gethostname="unknown"
33127   tst_proto_gethostname="unknown"
33128   tst_compi_gethostname="unknown"
33129   tst_allow_gethostname="unknown"
33130   #
33131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33132 $as_echo_n "checking if gethostname can be linked... " >&6; }
33133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33134 /* end confdefs.h.  */
33135
33136
33137       $curl_includes_winsock2
33138       $curl_includes_unistd
33139
33140 int main (void)
33141 {
33142
33143       if(0 != gethostname(0, 0))
33144         return 1;
33145
33146  ;
33147  return 0;
33148 }
33149
33150 _ACEOF
33151 if ac_fn_c_try_link "$LINENO"; then :
33152
33153     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33154 $as_echo "yes" >&6; }
33155     tst_links_gethostname="yes"
33156
33157 else
33158
33159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33160 $as_echo "no" >&6; }
33161     tst_links_gethostname="no"
33162
33163 fi
33164 rm -f core conftest.err conftest.$ac_objext \
33165     conftest$ac_exeext conftest.$ac_ext
33166   #
33167   if test "$tst_links_gethostname" = "yes"; then
33168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33169 $as_echo_n "checking if gethostname is prototyped... " >&6; }
33170     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33171 /* end confdefs.h.  */
33172
33173       $curl_includes_winsock2
33174       $curl_includes_unistd
33175
33176 _ACEOF
33177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33178   $EGREP "gethostname" >/dev/null 2>&1; then :
33179
33180       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33181 $as_echo "yes" >&6; }
33182       tst_proto_gethostname="yes"
33183
33184 else
33185
33186       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33187 $as_echo "no" >&6; }
33188       tst_proto_gethostname="no"
33189
33190 fi
33191 rm -f conftest*
33192
33193   fi
33194   #
33195   if test "$tst_proto_gethostname" = "yes"; then
33196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33197 $as_echo_n "checking if gethostname is compilable... " >&6; }
33198     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33199 /* end confdefs.h.  */
33200
33201
33202         $curl_includes_winsock2
33203         $curl_includes_unistd
33204
33205 int main (void)
33206 {
33207
33208         if(0 != gethostname(0, 0))
33209           return 1;
33210
33211  ;
33212  return 0;
33213 }
33214
33215 _ACEOF
33216 if ac_fn_c_try_compile "$LINENO"; then :
33217
33218       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33219 $as_echo "yes" >&6; }
33220       tst_compi_gethostname="yes"
33221
33222 else
33223
33224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33225 $as_echo "no" >&6; }
33226       tst_compi_gethostname="no"
33227
33228 fi
33229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33230   fi
33231   #
33232   if test "$tst_compi_gethostname" = "yes"; then
33233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33234 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33235     tst_gethostname_type_arg2="unknown"
33236     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33237       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33238         if test "$tst_gethostname_type_arg2" = "unknown"; then
33239           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33240 /* end confdefs.h.  */
33241
33242
33243               $curl_includes_winsock2
33244               $curl_includes_unistd
33245               $curl_preprocess_callconv
33246               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33247
33248 int main (void)
33249 {
33250
33251               if(0 != gethostname(0, 0))
33252                 return 1;
33253
33254  ;
33255  return 0;
33256 }
33257
33258 _ACEOF
33259 if ac_fn_c_try_compile "$LINENO"; then :
33260
33261             tst_gethostname_type_arg2="$tst_arg2"
33262
33263 fi
33264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33265         fi
33266       done
33267     done
33268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33269 $as_echo "$tst_gethostname_type_arg2" >&6; }
33270     if test "$tst_gethostname_type_arg2" != "unknown"; then
33271
33272 cat >>confdefs.h <<_ACEOF
33273 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33274 _ACEOF
33275
33276     fi
33277   fi
33278   #
33279   if test "$tst_compi_gethostname" = "yes"; then
33280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33281 $as_echo_n "checking if gethostname usage allowed... " >&6; }
33282     if test "x$curl_disallow_gethostname" != "xyes"; then
33283       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33284 $as_echo "yes" >&6; }
33285       tst_allow_gethostname="yes"
33286     else
33287       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33288 $as_echo "no" >&6; }
33289       tst_allow_gethostname="no"
33290     fi
33291   fi
33292   #
33293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33294 $as_echo_n "checking if gethostname might be used... " >&6; }
33295   if test "$tst_links_gethostname" = "yes" &&
33296      test "$tst_proto_gethostname" = "yes" &&
33297      test "$tst_compi_gethostname" = "yes" &&
33298      test "$tst_allow_gethostname" = "yes"; then
33299     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33300 $as_echo "yes" >&6; }
33301
33302 cat >>confdefs.h <<_ACEOF
33303 #define HAVE_GETHOSTNAME 1
33304 _ACEOF
33305
33306     curl_cv_func_gethostname="yes"
33307   else
33308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33309 $as_echo "no" >&6; }
33310     curl_cv_func_gethostname="no"
33311   fi
33312
33313
33314       #
33315   tst_links_getifaddrs="unknown"
33316   tst_proto_getifaddrs="unknown"
33317   tst_compi_getifaddrs="unknown"
33318   tst_works_getifaddrs="unknown"
33319   tst_allow_getifaddrs="unknown"
33320   #
33321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33322 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
33323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33324 /* end confdefs.h.  */
33325
33326
33327 #define getifaddrs innocuous_getifaddrs
33328 #ifdef __STDC__
33329 # include <limits.h>
33330 #else
33331 # include <assert.h>
33332 #endif
33333 #undef getifaddrs
33334 #ifdef __cplusplus
33335 extern "C"
33336 #endif
33337 char getifaddrs ();
33338 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33339 choke me
33340 #endif
33341
33342 int main (void)
33343 {
33344 return getifaddrs ();
33345  ;
33346  return 0;
33347 }
33348
33349 _ACEOF
33350 if ac_fn_c_try_link "$LINENO"; then :
33351
33352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33353 $as_echo "yes" >&6; }
33354     tst_links_getifaddrs="yes"
33355
33356 else
33357
33358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33359 $as_echo "no" >&6; }
33360     tst_links_getifaddrs="no"
33361
33362 fi
33363 rm -f core conftest.err conftest.$ac_objext \
33364     conftest$ac_exeext conftest.$ac_ext
33365   #
33366   if test "$tst_links_getifaddrs" = "yes"; then
33367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33368 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33370 /* end confdefs.h.  */
33371
33372       $curl_includes_ifaddrs
33373
33374 _ACEOF
33375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33376   $EGREP "getifaddrs" >/dev/null 2>&1; then :
33377
33378       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33379 $as_echo "yes" >&6; }
33380       tst_proto_getifaddrs="yes"
33381
33382 else
33383
33384       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33385 $as_echo "no" >&6; }
33386       tst_proto_getifaddrs="no"
33387
33388 fi
33389 rm -f conftest*
33390
33391   fi
33392   #
33393   if test "$tst_proto_getifaddrs" = "yes"; then
33394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33395 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
33396     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33397 /* end confdefs.h.  */
33398
33399
33400         $curl_includes_ifaddrs
33401
33402 int main (void)
33403 {
33404
33405         if(0 != getifaddrs(0))
33406           return 1;
33407
33408  ;
33409  return 0;
33410 }
33411
33412 _ACEOF
33413 if ac_fn_c_try_compile "$LINENO"; then :
33414
33415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33416 $as_echo "yes" >&6; }
33417       tst_compi_getifaddrs="yes"
33418
33419 else
33420
33421       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33422 $as_echo "no" >&6; }
33423       tst_compi_getifaddrs="no"
33424
33425 fi
33426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33427   fi
33428   #
33429     if test "x$cross_compiling" != "xyes" &&
33430     test "$tst_compi_getifaddrs" = "yes"; then
33431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33432 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
33433     if test "$cross_compiling" = yes; then :
33434   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33436 as_fn_error $? "cannot run test program while cross compiling
33437 See \`config.log' for more details" "$LINENO" 5; }
33438 else
33439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33440 /* end confdefs.h.  */
33441
33442
33443         $curl_includes_stdlib
33444         $curl_includes_ifaddrs
33445
33446 int main (void)
33447 {
33448
33449         struct ifaddrs *ifa = 0;
33450         int error;
33451
33452         error = getifaddrs(&ifa);
33453         if(error || !ifa)
33454           exit(1); /* fail */
33455         else
33456           exit(0);
33457
33458  ;
33459  return 0;
33460 }
33461
33462 _ACEOF
33463 if ac_fn_c_try_run "$LINENO"; then :
33464
33465       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33466 $as_echo "yes" >&6; }
33467       tst_works_getifaddrs="yes"
33468
33469 else
33470
33471       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33472 $as_echo "no" >&6; }
33473       tst_works_getifaddrs="no"
33474
33475 fi
33476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33477   conftest.$ac_objext conftest.beam conftest.$ac_ext
33478 fi
33479
33480   fi
33481   #
33482   if test "$tst_compi_getifaddrs" = "yes" &&
33483     test "$tst_works_getifaddrs" != "no"; then
33484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
33485 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
33486     if test "x$curl_disallow_getifaddrs" != "xyes"; then
33487       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33488 $as_echo "yes" >&6; }
33489       tst_allow_getifaddrs="yes"
33490     else
33491       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33492 $as_echo "no" >&6; }
33493       tst_allow_getifaddrs="no"
33494     fi
33495   fi
33496   #
33497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
33498 $as_echo_n "checking if getifaddrs might be used... " >&6; }
33499   if test "$tst_links_getifaddrs" = "yes" &&
33500      test "$tst_proto_getifaddrs" = "yes" &&
33501      test "$tst_compi_getifaddrs" = "yes" &&
33502      test "$tst_allow_getifaddrs" = "yes" &&
33503      test "$tst_works_getifaddrs" != "no"; then
33504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33505 $as_echo "yes" >&6; }
33506
33507 cat >>confdefs.h <<_ACEOF
33508 #define HAVE_GETIFADDRS 1
33509 _ACEOF
33510
33511     curl_cv_func_getifaddrs="yes"
33512   else
33513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33514 $as_echo "no" >&6; }
33515     curl_cv_func_getifaddrs="no"
33516   fi
33517
33518
33519     #
33520   tst_links_getservbyport_r="unknown"
33521   tst_proto_getservbyport_r="unknown"
33522   tst_compi_getservbyport_r="unknown"
33523   tst_allow_getservbyport_r="unknown"
33524   tst_nargs_getservbyport_r="unknown"
33525   #
33526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
33527 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
33528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33529 /* end confdefs.h.  */
33530
33531
33532 #define getservbyport_r innocuous_getservbyport_r
33533 #ifdef __STDC__
33534 # include <limits.h>
33535 #else
33536 # include <assert.h>
33537 #endif
33538 #undef getservbyport_r
33539 #ifdef __cplusplus
33540 extern "C"
33541 #endif
33542 char getservbyport_r ();
33543 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
33544 choke me
33545 #endif
33546
33547 int main (void)
33548 {
33549 return getservbyport_r ();
33550  ;
33551  return 0;
33552 }
33553
33554 _ACEOF
33555 if ac_fn_c_try_link "$LINENO"; then :
33556
33557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33558 $as_echo "yes" >&6; }
33559     tst_links_getservbyport_r="yes"
33560
33561 else
33562
33563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33564 $as_echo "no" >&6; }
33565     tst_links_getservbyport_r="no"
33566
33567 fi
33568 rm -f core conftest.err conftest.$ac_objext \
33569     conftest$ac_exeext conftest.$ac_ext
33570   #
33571   if test "$tst_links_getservbyport_r" = "yes"; then
33572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
33573 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
33574     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33575 /* end confdefs.h.  */
33576
33577       $curl_includes_netdb
33578
33579 _ACEOF
33580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33581   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
33582
33583       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33584 $as_echo "yes" >&6; }
33585       tst_proto_getservbyport_r="yes"
33586
33587 else
33588
33589       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33590 $as_echo "no" >&6; }
33591       tst_proto_getservbyport_r="no"
33592
33593 fi
33594 rm -f conftest*
33595
33596   fi
33597   #
33598   if test "$tst_proto_getservbyport_r" = "yes"; then
33599     if test "$tst_nargs_getservbyport_r" = "unknown"; then
33600       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
33601 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
33602       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33603 /* end confdefs.h.  */
33604
33605
33606           $curl_includes_netdb
33607
33608 int main (void)
33609 {
33610
33611           if(0 != getservbyport_r(0, 0, 0, 0))
33612             return 1;
33613
33614  ;
33615  return 0;
33616 }
33617
33618 _ACEOF
33619 if ac_fn_c_try_compile "$LINENO"; then :
33620
33621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33622 $as_echo "yes" >&6; }
33623         tst_compi_getservbyport_r="yes"
33624         tst_nargs_getservbyport_r="4"
33625
33626 else
33627
33628         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33629 $as_echo "no" >&6; }
33630         tst_compi_getservbyport_r="no"
33631
33632 fi
33633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33634     fi
33635     if test "$tst_nargs_getservbyport_r" = "unknown"; then
33636       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
33637 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
33638       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33639 /* end confdefs.h.  */
33640
33641
33642           $curl_includes_netdb
33643
33644 int main (void)
33645 {
33646
33647           if(0 != getservbyport_r(0, 0, 0, 0, 0))
33648             return 1;
33649
33650  ;
33651  return 0;
33652 }
33653
33654 _ACEOF
33655 if ac_fn_c_try_compile "$LINENO"; then :
33656
33657         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33658 $as_echo "yes" >&6; }
33659         tst_compi_getservbyport_r="yes"
33660         tst_nargs_getservbyport_r="5"
33661
33662 else
33663
33664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33665 $as_echo "no" >&6; }
33666         tst_compi_getservbyport_r="no"
33667
33668 fi
33669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33670     fi
33671     if test "$tst_nargs_getservbyport_r" = "unknown"; then
33672       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
33673 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
33674       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33675 /* end confdefs.h.  */
33676
33677
33678           $curl_includes_netdb
33679
33680 int main (void)
33681 {
33682
33683           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
33684             return 1;
33685
33686  ;
33687  return 0;
33688 }
33689
33690 _ACEOF
33691 if ac_fn_c_try_compile "$LINENO"; then :
33692
33693         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33694 $as_echo "yes" >&6; }
33695         tst_compi_getservbyport_r="yes"
33696         tst_nargs_getservbyport_r="6"
33697
33698 else
33699
33700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33701 $as_echo "no" >&6; }
33702         tst_compi_getservbyport_r="no"
33703
33704 fi
33705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33706     fi
33707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
33708 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
33709     if test "$tst_compi_getservbyport_r" = "yes"; then
33710       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33711 $as_echo "yes" >&6; }
33712     else
33713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33714 $as_echo "no" >&6; }
33715     fi
33716   fi
33717   #
33718   if test "$tst_compi_getservbyport_r" = "yes"; then
33719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
33720 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
33721     if test "x$curl_disallow_getservbyport_r" != "xyes"; then
33722       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33723 $as_echo "yes" >&6; }
33724       tst_allow_getservbyport_r="yes"
33725     else
33726       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33727 $as_echo "no" >&6; }
33728       tst_allow_getservbyport_r="no"
33729     fi
33730   fi
33731   #
33732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
33733 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
33734   if test "$tst_links_getservbyport_r" = "yes" &&
33735      test "$tst_proto_getservbyport_r" = "yes" &&
33736      test "$tst_compi_getservbyport_r" = "yes" &&
33737      test "$tst_allow_getservbyport_r" = "yes"; then
33738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33739 $as_echo "yes" >&6; }
33740
33741 cat >>confdefs.h <<_ACEOF
33742 #define HAVE_GETSERVBYPORT_R 1
33743 _ACEOF
33744
33745
33746 cat >>confdefs.h <<_ACEOF
33747 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
33748 _ACEOF
33749
33750     if test "$tst_nargs_getservbyport_r" -eq "4"; then
33751
33752 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
33753
33754     else
33755
33756 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
33757
33758     fi
33759     curl_cv_func_getservbyport_r="yes"
33760   else
33761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33762 $as_echo "no" >&6; }
33763     curl_cv_func_getservbyport_r="no"
33764   fi
33765
33766
33767 curl_includes_time="\
33768 /* includes start */
33769 #ifdef HAVE_SYS_TYPES_H
33770 #  include <sys/types.h>
33771 #endif
33772 #ifdef HAVE_SYS_TIME_H
33773 #  include <sys/time.h>
33774 #  ifdef TIME_WITH_SYS_TIME
33775 #    include <time.h>
33776 #  endif
33777 #else
33778 #  ifdef HAVE_TIME_H
33779 #    include <time.h>
33780 #  endif
33781 #endif
33782 /* includes end */"
33783   for ac_header in sys/types.h sys/time.h time.h
33784 do :
33785   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33786 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
33787 "
33788 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33789   cat >>confdefs.h <<_ACEOF
33790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33791 _ACEOF
33792
33793 fi
33794
33795 done
33796
33797
33798
33799       #
33800   tst_links_gmtime_r="unknown"
33801   tst_proto_gmtime_r="unknown"
33802   tst_compi_gmtime_r="unknown"
33803   tst_works_gmtime_r="unknown"
33804   tst_allow_gmtime_r="unknown"
33805   #
33806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
33807 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
33808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33809 /* end confdefs.h.  */
33810
33811
33812 #define gmtime_r innocuous_gmtime_r
33813 #ifdef __STDC__
33814 # include <limits.h>
33815 #else
33816 # include <assert.h>
33817 #endif
33818 #undef gmtime_r
33819 #ifdef __cplusplus
33820 extern "C"
33821 #endif
33822 char gmtime_r ();
33823 #if defined __stub_gmtime_r || defined __stub___gmtime_r
33824 choke me
33825 #endif
33826
33827 int main (void)
33828 {
33829 return gmtime_r ();
33830  ;
33831  return 0;
33832 }
33833
33834 _ACEOF
33835 if ac_fn_c_try_link "$LINENO"; then :
33836
33837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33838 $as_echo "yes" >&6; }
33839     tst_links_gmtime_r="yes"
33840
33841 else
33842
33843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33844 $as_echo "no" >&6; }
33845     tst_links_gmtime_r="no"
33846
33847 fi
33848 rm -f core conftest.err conftest.$ac_objext \
33849     conftest$ac_exeext conftest.$ac_ext
33850   #
33851   if test "$tst_links_gmtime_r" = "yes"; then
33852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
33853 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
33854     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33855 /* end confdefs.h.  */
33856
33857       $curl_includes_time
33858
33859 _ACEOF
33860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33861   $EGREP "gmtime_r" >/dev/null 2>&1; then :
33862
33863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33864 $as_echo "yes" >&6; }
33865       tst_proto_gmtime_r="yes"
33866
33867 else
33868
33869       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33870 $as_echo "no" >&6; }
33871       tst_proto_gmtime_r="no"
33872
33873 fi
33874 rm -f conftest*
33875
33876   fi
33877   #
33878   if test "$tst_proto_gmtime_r" = "yes"; then
33879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
33880 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
33881     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33882 /* end confdefs.h.  */
33883
33884
33885         $curl_includes_time
33886
33887 int main (void)
33888 {
33889
33890         if(0 != gmtime_r(0, 0))
33891           return 1;
33892
33893  ;
33894  return 0;
33895 }
33896
33897 _ACEOF
33898 if ac_fn_c_try_compile "$LINENO"; then :
33899
33900       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33901 $as_echo "yes" >&6; }
33902       tst_compi_gmtime_r="yes"
33903
33904 else
33905
33906       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33907 $as_echo "no" >&6; }
33908       tst_compi_gmtime_r="no"
33909
33910 fi
33911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33912   fi
33913   #
33914     if test "x$cross_compiling" != "xyes" &&
33915     test "$tst_compi_gmtime_r" = "yes"; then
33916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
33917 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
33918     if test "$cross_compiling" = yes; then :
33919   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33921 as_fn_error $? "cannot run test program while cross compiling
33922 See \`config.log' for more details" "$LINENO" 5; }
33923 else
33924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33925 /* end confdefs.h.  */
33926
33927
33928         $curl_includes_stdlib
33929         $curl_includes_time
33930
33931 int main (void)
33932 {
33933
33934         time_t local = 1170352587;
33935         struct tm *gmt = 0;
33936         struct tm result;
33937         gmt = gmtime_r(&local, &result);
33938         if(gmt)
33939           exit(0);
33940         else
33941           exit(1);
33942
33943  ;
33944  return 0;
33945 }
33946
33947 _ACEOF
33948 if ac_fn_c_try_run "$LINENO"; then :
33949
33950       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33951 $as_echo "yes" >&6; }
33952       tst_works_gmtime_r="yes"
33953
33954 else
33955
33956       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33957 $as_echo "no" >&6; }
33958       tst_works_gmtime_r="no"
33959
33960 fi
33961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33962   conftest.$ac_objext conftest.beam conftest.$ac_ext
33963 fi
33964
33965   fi
33966   #
33967   if test "$tst_compi_gmtime_r" = "yes" &&
33968     test "$tst_works_gmtime_r" != "no"; then
33969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
33970 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
33971     if test "x$curl_disallow_gmtime_r" != "xyes"; then
33972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33973 $as_echo "yes" >&6; }
33974       tst_allow_gmtime_r="yes"
33975     else
33976       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33977 $as_echo "no" >&6; }
33978       tst_allow_gmtime_r="no"
33979     fi
33980   fi
33981   #
33982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
33983 $as_echo_n "checking if gmtime_r might be used... " >&6; }
33984   if test "$tst_links_gmtime_r" = "yes" &&
33985      test "$tst_proto_gmtime_r" = "yes" &&
33986      test "$tst_compi_gmtime_r" = "yes" &&
33987      test "$tst_allow_gmtime_r" = "yes" &&
33988      test "$tst_works_gmtime_r" != "no"; then
33989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33990 $as_echo "yes" >&6; }
33991
33992 cat >>confdefs.h <<_ACEOF
33993 #define HAVE_GMTIME_R 1
33994 _ACEOF
33995
33996     curl_cv_func_gmtime_r="yes"
33997   else
33998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33999 $as_echo "no" >&6; }
34000     curl_cv_func_gmtime_r="no"
34001   fi
34002
34003
34004 curl_includes_arpa_inet="\
34005 /* includes start */
34006 #ifdef HAVE_SYS_TYPES_H
34007 #  include <sys/types.h>
34008 #endif
34009 #ifdef HAVE_SYS_SOCKET_H
34010 #  include <sys/socket.h>
34011 #endif
34012 #ifdef HAVE_NETINET_IN_H
34013 #  include <netinet/in.h>
34014 #endif
34015 #ifdef HAVE_ARPA_INET_H
34016 #  include <arpa/inet.h>
34017 #endif
34018 #ifdef HAVE_WINSOCK2_H
34019 #include <winsock2.h>
34020 #include <ws2tcpip.h>
34021 #endif
34022 /* includes end */"
34023   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34024 do :
34025   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34026 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34027 "
34028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34029   cat >>confdefs.h <<_ACEOF
34030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34031 _ACEOF
34032
34033 fi
34034
34035 done
34036
34037
34038
34039     #
34040   tst_links_inet_ntoa_r="unknown"
34041   tst_proto_inet_ntoa_r="unknown"
34042   tst_compi_inet_ntoa_r="unknown"
34043   tst_allow_inet_ntoa_r="unknown"
34044   tst_nargs_inet_ntoa_r="unknown"
34045   #
34046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34047 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34049 /* end confdefs.h.  */
34050
34051
34052 #define inet_ntoa_r innocuous_inet_ntoa_r
34053 #ifdef __STDC__
34054 # include <limits.h>
34055 #else
34056 # include <assert.h>
34057 #endif
34058 #undef inet_ntoa_r
34059 #ifdef __cplusplus
34060 extern "C"
34061 #endif
34062 char inet_ntoa_r ();
34063 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34064 choke me
34065 #endif
34066
34067 int main (void)
34068 {
34069 return inet_ntoa_r ();
34070  ;
34071  return 0;
34072 }
34073
34074 _ACEOF
34075 if ac_fn_c_try_link "$LINENO"; then :
34076
34077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34078 $as_echo "yes" >&6; }
34079     tst_links_inet_ntoa_r="yes"
34080
34081 else
34082
34083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34084 $as_echo "no" >&6; }
34085     tst_links_inet_ntoa_r="no"
34086
34087 fi
34088 rm -f core conftest.err conftest.$ac_objext \
34089     conftest$ac_exeext conftest.$ac_ext
34090   #
34091   if test "$tst_links_inet_ntoa_r" = "yes"; then
34092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34093 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34095 /* end confdefs.h.  */
34096
34097       $curl_includes_arpa_inet
34098
34099 _ACEOF
34100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34101   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34102
34103       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34104 $as_echo "yes" >&6; }
34105       tst_proto_inet_ntoa_r="yes"
34106
34107 else
34108
34109       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34110 $as_echo "no" >&6; }
34111       tst_proto_inet_ntoa_r="no"
34112
34113 fi
34114 rm -f conftest*
34115
34116   fi
34117   #
34118   if test "$tst_proto_inet_ntoa_r" = "yes"; then
34119     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34120       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34121 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34122       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34123 /* end confdefs.h.  */
34124
34125
34126           $curl_includes_arpa_inet
34127
34128 int main (void)
34129 {
34130
34131           struct in_addr addr;
34132           if(0 != inet_ntoa_r(addr, 0))
34133             return 1;
34134
34135  ;
34136  return 0;
34137 }
34138
34139 _ACEOF
34140 if ac_fn_c_try_compile "$LINENO"; then :
34141
34142         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34143 $as_echo "yes" >&6; }
34144         tst_compi_inet_ntoa_r="yes"
34145         tst_nargs_inet_ntoa_r="2"
34146
34147 else
34148
34149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34150 $as_echo "no" >&6; }
34151         tst_compi_inet_ntoa_r="no"
34152
34153 fi
34154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34155     fi
34156     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34157       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34158 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34159       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34160 /* end confdefs.h.  */
34161
34162
34163           $curl_includes_arpa_inet
34164
34165 int main (void)
34166 {
34167
34168           struct in_addr addr;
34169           if(0 != inet_ntoa_r(addr, 0, 0))
34170             return 1;
34171
34172  ;
34173  return 0;
34174 }
34175
34176 _ACEOF
34177 if ac_fn_c_try_compile "$LINENO"; then :
34178
34179         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34180 $as_echo "yes" >&6; }
34181         tst_compi_inet_ntoa_r="yes"
34182         tst_nargs_inet_ntoa_r="3"
34183
34184 else
34185
34186         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34187 $as_echo "no" >&6; }
34188         tst_compi_inet_ntoa_r="no"
34189
34190 fi
34191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34192     fi
34193     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34194 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34195     if test "$tst_compi_inet_ntoa_r" = "yes"; then
34196       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34197 $as_echo "yes" >&6; }
34198     else
34199       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34200 $as_echo "no" >&6; }
34201     fi
34202   fi
34203   #
34204   if test "$tst_compi_inet_ntoa_r" = "yes"; then
34205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34206 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34207     if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34208       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34209 $as_echo "yes" >&6; }
34210       tst_allow_inet_ntoa_r="yes"
34211     else
34212       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34213 $as_echo "no" >&6; }
34214       tst_allow_inet_ntoa_r="no"
34215     fi
34216   fi
34217   #
34218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34219 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34220   if test "$tst_links_inet_ntoa_r" = "yes" &&
34221      test "$tst_proto_inet_ntoa_r" = "yes" &&
34222      test "$tst_compi_inet_ntoa_r" = "yes" &&
34223      test "$tst_allow_inet_ntoa_r" = "yes"; then
34224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34225 $as_echo "yes" >&6; }
34226
34227 cat >>confdefs.h <<_ACEOF
34228 #define HAVE_INET_NTOA_R 1
34229 _ACEOF
34230
34231             #
34232     if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34233
34234 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34235
34236     elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34237
34238 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34239
34240     fi
34241     #
34242     curl_cv_func_inet_ntoa_r="yes"
34243   else
34244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34245 $as_echo "no" >&6; }
34246     curl_cv_func_inet_ntoa_r="no"
34247   fi
34248
34249
34250         #
34251   tst_links_inet_ntop="unknown"
34252   tst_proto_inet_ntop="unknown"
34253   tst_compi_inet_ntop="unknown"
34254   tst_works_inet_ntop="unknown"
34255   tst_allow_inet_ntop="unknown"
34256   #
34257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34258 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
34259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34260 /* end confdefs.h.  */
34261
34262
34263 #define inet_ntop innocuous_inet_ntop
34264 #ifdef __STDC__
34265 # include <limits.h>
34266 #else
34267 # include <assert.h>
34268 #endif
34269 #undef inet_ntop
34270 #ifdef __cplusplus
34271 extern "C"
34272 #endif
34273 char inet_ntop ();
34274 #if defined __stub_inet_ntop || defined __stub___inet_ntop
34275 choke me
34276 #endif
34277
34278 int main (void)
34279 {
34280 return inet_ntop ();
34281  ;
34282  return 0;
34283 }
34284
34285 _ACEOF
34286 if ac_fn_c_try_link "$LINENO"; then :
34287
34288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34289 $as_echo "yes" >&6; }
34290     tst_links_inet_ntop="yes"
34291
34292 else
34293
34294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34295 $as_echo "no" >&6; }
34296     tst_links_inet_ntop="no"
34297
34298 fi
34299 rm -f core conftest.err conftest.$ac_objext \
34300     conftest$ac_exeext conftest.$ac_ext
34301   #
34302   if test "$tst_links_inet_ntop" = "yes"; then
34303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34304 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34306 /* end confdefs.h.  */
34307
34308       $curl_includes_arpa_inet
34309
34310 _ACEOF
34311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34312   $EGREP "inet_ntop" >/dev/null 2>&1; then :
34313
34314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34315 $as_echo "yes" >&6; }
34316       tst_proto_inet_ntop="yes"
34317
34318 else
34319
34320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34321 $as_echo "no" >&6; }
34322       tst_proto_inet_ntop="no"
34323
34324 fi
34325 rm -f conftest*
34326
34327   fi
34328   #
34329   if test "$tst_proto_inet_ntop" = "yes"; then
34330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34331 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
34332     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34333 /* end confdefs.h.  */
34334
34335
34336         $curl_includes_arpa_inet
34337
34338 int main (void)
34339 {
34340
34341         if(0 != inet_ntop(0, 0, 0, 0))
34342           return 1;
34343
34344  ;
34345  return 0;
34346 }
34347
34348 _ACEOF
34349 if ac_fn_c_try_compile "$LINENO"; then :
34350
34351       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34352 $as_echo "yes" >&6; }
34353       tst_compi_inet_ntop="yes"
34354
34355 else
34356
34357       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34358 $as_echo "no" >&6; }
34359       tst_compi_inet_ntop="no"
34360
34361 fi
34362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34363   fi
34364   #
34365     if test "x$cross_compiling" != "xyes" &&
34366     test "$tst_compi_inet_ntop" = "yes"; then
34367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34368 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
34369     if test "$cross_compiling" = yes; then :
34370   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34372 as_fn_error $? "cannot run test program while cross compiling
34373 See \`config.log' for more details" "$LINENO" 5; }
34374 else
34375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34376 /* end confdefs.h.  */
34377
34378
34379         $curl_includes_stdlib
34380         $curl_includes_arpa_inet
34381         $curl_includes_string
34382
34383 int main (void)
34384 {
34385
34386         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34387         char ipv4res[sizeof "255.255.255.255"];
34388         unsigned char ipv6a[26];
34389         unsigned char ipv4a[5];
34390         char *ipv6ptr = 0;
34391         char *ipv4ptr = 0;
34392         /* - */
34393         ipv4res[0] = '\0';
34394         ipv4a[0] = 0xc0;
34395         ipv4a[1] = 0xa8;
34396         ipv4a[2] = 0x64;
34397         ipv4a[3] = 0x01;
34398         ipv4a[4] = 0x01;
34399         /* - */
34400         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34401         if(!ipv4ptr)
34402           exit(1); /* fail */
34403         if(ipv4ptr != ipv4res)
34404           exit(1); /* fail */
34405         if(!ipv4ptr[0])
34406           exit(1); /* fail */
34407         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34408           exit(1); /* fail */
34409         /* - */
34410         ipv6res[0] = '\0';
34411         memset(ipv6a, 0, sizeof(ipv6a));
34412         ipv6a[0] = 0xfe;
34413         ipv6a[1] = 0x80;
34414         ipv6a[8] = 0x02;
34415         ipv6a[9] = 0x14;
34416         ipv6a[10] = 0x4f;
34417         ipv6a[11] = 0xff;
34418         ipv6a[12] = 0xfe;
34419         ipv6a[13] = 0x0b;
34420         ipv6a[14] = 0x76;
34421         ipv6a[15] = 0xc8;
34422         ipv6a[25] = 0x01;
34423         /* - */
34424         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34425         if(!ipv6ptr)
34426           exit(1); /* fail */
34427         if(ipv6ptr != ipv6res)
34428           exit(1); /* fail */
34429         if(!ipv6ptr[0])
34430           exit(1); /* fail */
34431         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34432           exit(1); /* fail */
34433         /* - */
34434         exit(0);
34435
34436  ;
34437  return 0;
34438 }
34439
34440 _ACEOF
34441 if ac_fn_c_try_run "$LINENO"; then :
34442
34443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34444 $as_echo "yes" >&6; }
34445       tst_works_inet_ntop="yes"
34446
34447 else
34448
34449       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34450 $as_echo "no" >&6; }
34451       tst_works_inet_ntop="no"
34452
34453 fi
34454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34455   conftest.$ac_objext conftest.beam conftest.$ac_ext
34456 fi
34457
34458   fi
34459   #
34460   if test "$tst_compi_inet_ntop" = "yes" &&
34461     test "$tst_works_inet_ntop" != "no"; then
34462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
34463 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
34464     if test "x$curl_disallow_inet_ntop" != "xyes"; then
34465       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34466 $as_echo "yes" >&6; }
34467       tst_allow_inet_ntop="yes"
34468     else
34469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34470 $as_echo "no" >&6; }
34471       tst_allow_inet_ntop="no"
34472     fi
34473   fi
34474   #
34475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
34476 $as_echo_n "checking if inet_ntop might be used... " >&6; }
34477   if test "$tst_links_inet_ntop" = "yes" &&
34478      test "$tst_proto_inet_ntop" = "yes" &&
34479      test "$tst_compi_inet_ntop" = "yes" &&
34480      test "$tst_allow_inet_ntop" = "yes" &&
34481      test "$tst_works_inet_ntop" != "no"; then
34482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34483 $as_echo "yes" >&6; }
34484
34485 cat >>confdefs.h <<_ACEOF
34486 #define HAVE_INET_NTOP 1
34487 _ACEOF
34488
34489     curl_cv_func_inet_ntop="yes"
34490   else
34491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34492 $as_echo "no" >&6; }
34493     curl_cv_func_inet_ntop="no"
34494   fi
34495
34496
34497         #
34498   tst_links_inet_pton="unknown"
34499   tst_proto_inet_pton="unknown"
34500   tst_compi_inet_pton="unknown"
34501   tst_works_inet_pton="unknown"
34502   tst_allow_inet_pton="unknown"
34503   #
34504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
34505 $as_echo_n "checking if inet_pton can be linked... " >&6; }
34506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34507 /* end confdefs.h.  */
34508
34509
34510 #define inet_pton innocuous_inet_pton
34511 #ifdef __STDC__
34512 # include <limits.h>
34513 #else
34514 # include <assert.h>
34515 #endif
34516 #undef inet_pton
34517 #ifdef __cplusplus
34518 extern "C"
34519 #endif
34520 char inet_pton ();
34521 #if defined __stub_inet_pton || defined __stub___inet_pton
34522 choke me
34523 #endif
34524
34525 int main (void)
34526 {
34527 return inet_pton ();
34528  ;
34529  return 0;
34530 }
34531
34532 _ACEOF
34533 if ac_fn_c_try_link "$LINENO"; then :
34534
34535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34536 $as_echo "yes" >&6; }
34537     tst_links_inet_pton="yes"
34538
34539 else
34540
34541     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34542 $as_echo "no" >&6; }
34543     tst_links_inet_pton="no"
34544
34545 fi
34546 rm -f core conftest.err conftest.$ac_objext \
34547     conftest$ac_exeext conftest.$ac_ext
34548   #
34549   if test "$tst_links_inet_pton" = "yes"; then
34550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
34551 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
34552     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34553 /* end confdefs.h.  */
34554
34555       $curl_includes_arpa_inet
34556
34557 _ACEOF
34558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34559   $EGREP "inet_pton" >/dev/null 2>&1; then :
34560
34561       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34562 $as_echo "yes" >&6; }
34563       tst_proto_inet_pton="yes"
34564
34565 else
34566
34567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34568 $as_echo "no" >&6; }
34569       tst_proto_inet_pton="no"
34570
34571 fi
34572 rm -f conftest*
34573
34574   fi
34575   #
34576   if test "$tst_proto_inet_pton" = "yes"; then
34577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
34578 $as_echo_n "checking if inet_pton is compilable... " >&6; }
34579     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34580 /* end confdefs.h.  */
34581
34582
34583         $curl_includes_arpa_inet
34584
34585 int main (void)
34586 {
34587
34588         if(0 != inet_pton(0, 0, 0))
34589           return 1;
34590
34591  ;
34592  return 0;
34593 }
34594
34595 _ACEOF
34596 if ac_fn_c_try_compile "$LINENO"; then :
34597
34598       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34599 $as_echo "yes" >&6; }
34600       tst_compi_inet_pton="yes"
34601
34602 else
34603
34604       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34605 $as_echo "no" >&6; }
34606       tst_compi_inet_pton="no"
34607
34608 fi
34609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34610   fi
34611   #
34612     if test "x$cross_compiling" != "xyes" &&
34613     test "$tst_compi_inet_pton" = "yes"; then
34614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
34615 $as_echo_n "checking if inet_pton seems to work... " >&6; }
34616     if test "$cross_compiling" = yes; then :
34617   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34619 as_fn_error $? "cannot run test program while cross compiling
34620 See \`config.log' for more details" "$LINENO" 5; }
34621 else
34622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34623 /* end confdefs.h.  */
34624
34625
34626         $curl_includes_stdlib
34627         $curl_includes_arpa_inet
34628         $curl_includes_string
34629
34630 int main (void)
34631 {
34632
34633         unsigned char ipv6a[16+1];
34634         unsigned char ipv4a[4+1];
34635         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
34636         const char *ipv4src = "192.168.100.1";
34637         /* - */
34638         memset(ipv4a, 1, sizeof(ipv4a));
34639         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
34640           exit(1); /* fail */
34641         /* - */
34642         if( (ipv4a[0] != 0xc0) ||
34643             (ipv4a[1] != 0xa8) ||
34644             (ipv4a[2] != 0x64) ||
34645             (ipv4a[3] != 0x01) ||
34646             (ipv4a[4] != 0x01) )
34647           exit(1); /* fail */
34648         /* - */
34649         memset(ipv6a, 1, sizeof(ipv6a));
34650         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
34651           exit(1); /* fail */
34652         /* - */
34653         if( (ipv6a[0]  != 0xfe) ||
34654             (ipv6a[1]  != 0x80) ||
34655             (ipv6a[8]  != 0x02) ||
34656             (ipv6a[9]  != 0x14) ||
34657             (ipv6a[10] != 0x4f) ||
34658             (ipv6a[11] != 0xff) ||
34659             (ipv6a[12] != 0xfe) ||
34660             (ipv6a[13] != 0x0b) ||
34661             (ipv6a[14] != 0x76) ||
34662             (ipv6a[15] != 0xc8) ||
34663             (ipv6a[16] != 0x01) )
34664           exit(1); /* fail */
34665         /* - */
34666         if( (ipv6a[2]  != 0x0) ||
34667             (ipv6a[3]  != 0x0) ||
34668             (ipv6a[4]  != 0x0) ||
34669             (ipv6a[5]  != 0x0) ||
34670             (ipv6a[6]  != 0x0) ||
34671             (ipv6a[7]  != 0x0) )
34672           exit(1); /* fail */
34673         /* - */
34674         exit(0);
34675
34676  ;
34677  return 0;
34678 }
34679
34680 _ACEOF
34681 if ac_fn_c_try_run "$LINENO"; then :
34682
34683       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34684 $as_echo "yes" >&6; }
34685       tst_works_inet_pton="yes"
34686
34687 else
34688
34689       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34690 $as_echo "no" >&6; }
34691       tst_works_inet_pton="no"
34692
34693 fi
34694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34695   conftest.$ac_objext conftest.beam conftest.$ac_ext
34696 fi
34697
34698   fi
34699   #
34700   if test "$tst_compi_inet_pton" = "yes" &&
34701     test "$tst_works_inet_pton" != "no"; then
34702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
34703 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
34704     if test "x$curl_disallow_inet_pton" != "xyes"; then
34705       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34706 $as_echo "yes" >&6; }
34707       tst_allow_inet_pton="yes"
34708     else
34709       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34710 $as_echo "no" >&6; }
34711       tst_allow_inet_pton="no"
34712     fi
34713   fi
34714   #
34715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
34716 $as_echo_n "checking if inet_pton might be used... " >&6; }
34717   if test "$tst_links_inet_pton" = "yes" &&
34718      test "$tst_proto_inet_pton" = "yes" &&
34719      test "$tst_compi_inet_pton" = "yes" &&
34720      test "$tst_allow_inet_pton" = "yes" &&
34721      test "$tst_works_inet_pton" != "no"; then
34722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34723 $as_echo "yes" >&6; }
34724
34725 cat >>confdefs.h <<_ACEOF
34726 #define HAVE_INET_PTON 1
34727 _ACEOF
34728
34729     curl_cv_func_inet_pton="yes"
34730   else
34731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34732 $as_echo "no" >&6; }
34733     curl_cv_func_inet_pton="no"
34734   fi
34735
34736
34737 curl_includes_stropts="\
34738 /* includes start */
34739 #ifdef HAVE_SYS_TYPES_H
34740 #  include <sys/types.h>
34741 #endif
34742 #ifdef HAVE_UNISTD_H
34743 #  include <unistd.h>
34744 #endif
34745 #ifdef HAVE_SYS_SOCKET_H
34746 #  include <sys/socket.h>
34747 #endif
34748 #ifdef HAVE_SYS_IOCTL_H
34749 #  include <sys/ioctl.h>
34750 #endif
34751 #ifdef HAVE_STROPTS_H
34752 #  include <stropts.h>
34753 #endif
34754 /* includes end */"
34755   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
34756 do :
34757   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34758 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
34759 "
34760 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34761   cat >>confdefs.h <<_ACEOF
34762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34763 _ACEOF
34764
34765 fi
34766
34767 done
34768
34769
34770
34771     #
34772   tst_links_ioctl="unknown"
34773   tst_proto_ioctl="unknown"
34774   tst_compi_ioctl="unknown"
34775   tst_allow_ioctl="unknown"
34776   #
34777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
34778 $as_echo_n "checking if ioctl can be linked... " >&6; }
34779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34780 /* end confdefs.h.  */
34781
34782
34783 #define ioctl innocuous_ioctl
34784 #ifdef __STDC__
34785 # include <limits.h>
34786 #else
34787 # include <assert.h>
34788 #endif
34789 #undef ioctl
34790 #ifdef __cplusplus
34791 extern "C"
34792 #endif
34793 char ioctl ();
34794 #if defined __stub_ioctl || defined __stub___ioctl
34795 choke me
34796 #endif
34797
34798 int main (void)
34799 {
34800 return ioctl ();
34801  ;
34802  return 0;
34803 }
34804
34805 _ACEOF
34806 if ac_fn_c_try_link "$LINENO"; then :
34807
34808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34809 $as_echo "yes" >&6; }
34810     tst_links_ioctl="yes"
34811
34812 else
34813
34814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34815 $as_echo "no" >&6; }
34816     tst_links_ioctl="no"
34817
34818 fi
34819 rm -f core conftest.err conftest.$ac_objext \
34820     conftest$ac_exeext conftest.$ac_ext
34821   #
34822   if test "$tst_links_ioctl" = "yes"; then
34823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
34824 $as_echo_n "checking if ioctl is prototyped... " >&6; }
34825     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34826 /* end confdefs.h.  */
34827
34828       $curl_includes_stropts
34829
34830 _ACEOF
34831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34832   $EGREP "ioctl" >/dev/null 2>&1; then :
34833
34834       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34835 $as_echo "yes" >&6; }
34836       tst_proto_ioctl="yes"
34837
34838 else
34839
34840       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34841 $as_echo "no" >&6; }
34842       tst_proto_ioctl="no"
34843
34844 fi
34845 rm -f conftest*
34846
34847   fi
34848   #
34849   if test "$tst_proto_ioctl" = "yes"; then
34850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
34851 $as_echo_n "checking if ioctl is compilable... " >&6; }
34852     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34853 /* end confdefs.h.  */
34854
34855
34856         $curl_includes_stropts
34857
34858 int main (void)
34859 {
34860
34861         if(0 != ioctl(0, 0, 0))
34862           return 1;
34863
34864  ;
34865  return 0;
34866 }
34867
34868 _ACEOF
34869 if ac_fn_c_try_compile "$LINENO"; then :
34870
34871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34872 $as_echo "yes" >&6; }
34873       tst_compi_ioctl="yes"
34874
34875 else
34876
34877       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34878 $as_echo "no" >&6; }
34879       tst_compi_ioctl="no"
34880
34881 fi
34882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34883   fi
34884   #
34885   if test "$tst_compi_ioctl" = "yes"; then
34886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
34887 $as_echo_n "checking if ioctl usage allowed... " >&6; }
34888     if test "x$curl_disallow_ioctl" != "xyes"; then
34889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34890 $as_echo "yes" >&6; }
34891       tst_allow_ioctl="yes"
34892     else
34893       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34894 $as_echo "no" >&6; }
34895       tst_allow_ioctl="no"
34896     fi
34897   fi
34898   #
34899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
34900 $as_echo_n "checking if ioctl might be used... " >&6; }
34901   if test "$tst_links_ioctl" = "yes" &&
34902      test "$tst_proto_ioctl" = "yes" &&
34903      test "$tst_compi_ioctl" = "yes" &&
34904      test "$tst_allow_ioctl" = "yes"; then
34905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34906 $as_echo "yes" >&6; }
34907
34908 cat >>confdefs.h <<_ACEOF
34909 #define HAVE_IOCTL 1
34910 _ACEOF
34911
34912     curl_cv_func_ioctl="yes"
34913
34914   #
34915   tst_compi_ioctl_fionbio="unknown"
34916   tst_allow_ioctl_fionbio="unknown"
34917   #
34918   if test "$curl_cv_func_ioctl" = "yes"; then
34919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
34920 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
34921     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34922 /* end confdefs.h.  */
34923
34924
34925         $curl_includes_stropts
34926
34927 int main (void)
34928 {
34929
34930         int flags = 0;
34931         if(0 != ioctl(0, FIONBIO, &flags))
34932           return 1;
34933
34934  ;
34935  return 0;
34936 }
34937
34938 _ACEOF
34939 if ac_fn_c_try_compile "$LINENO"; then :
34940
34941       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34942 $as_echo "yes" >&6; }
34943       tst_compi_ioctl_fionbio="yes"
34944
34945 else
34946
34947       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34948 $as_echo "no" >&6; }
34949       tst_compi_ioctl_fionbio="no"
34950
34951 fi
34952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34953   fi
34954   #
34955   if test "$tst_compi_ioctl_fionbio" = "yes"; then
34956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
34957 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
34958     if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
34959       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34960 $as_echo "yes" >&6; }
34961       tst_allow_ioctl_fionbio="yes"
34962     else
34963       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34964 $as_echo "no" >&6; }
34965       tst_allow_ioctl_fionbio="no"
34966     fi
34967   fi
34968   #
34969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
34970 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
34971   if test "$tst_compi_ioctl_fionbio" = "yes" &&
34972      test "$tst_allow_ioctl_fionbio" = "yes"; then
34973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34974 $as_echo "yes" >&6; }
34975
34976 cat >>confdefs.h <<_ACEOF
34977 #define HAVE_IOCTL_FIONBIO 1
34978 _ACEOF
34979
34980     curl_cv_func_ioctl_fionbio="yes"
34981   else
34982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34983 $as_echo "no" >&6; }
34984     curl_cv_func_ioctl_fionbio="no"
34985   fi
34986
34987
34988   #
34989   tst_compi_ioctl_siocgifaddr="unknown"
34990   tst_allow_ioctl_siocgifaddr="unknown"
34991   #
34992   if test "$curl_cv_func_ioctl" = "yes"; then
34993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
34994 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
34995     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34996 /* end confdefs.h.  */
34997
34998
34999         $curl_includes_stropts
35000         #include <net/if.h>
35001
35002 int main (void)
35003 {
35004
35005         struct ifreq ifr;
35006         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35007           return 1;
35008
35009  ;
35010  return 0;
35011 }
35012
35013 _ACEOF
35014 if ac_fn_c_try_compile "$LINENO"; then :
35015
35016       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35017 $as_echo "yes" >&6; }
35018       tst_compi_ioctl_siocgifaddr="yes"
35019
35020 else
35021
35022       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35023 $as_echo "no" >&6; }
35024       tst_compi_ioctl_siocgifaddr="no"
35025
35026 fi
35027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35028   fi
35029   #
35030   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35032 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35033     if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35034       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35035 $as_echo "yes" >&6; }
35036       tst_allow_ioctl_siocgifaddr="yes"
35037     else
35038       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35039 $as_echo "no" >&6; }
35040       tst_allow_ioctl_siocgifaddr="no"
35041     fi
35042   fi
35043   #
35044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35045 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35046   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35047      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35049 $as_echo "yes" >&6; }
35050
35051 cat >>confdefs.h <<_ACEOF
35052 #define HAVE_IOCTL_SIOCGIFADDR 1
35053 _ACEOF
35054
35055     curl_cv_func_ioctl_siocgifaddr="yes"
35056   else
35057     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35058 $as_echo "no" >&6; }
35059     curl_cv_func_ioctl_siocgifaddr="no"
35060   fi
35061
35062   else
35063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35064 $as_echo "no" >&6; }
35065     curl_cv_func_ioctl="no"
35066   fi
35067
35068
35069     #
35070   tst_links_ioctlsocket="unknown"
35071   tst_proto_ioctlsocket="unknown"
35072   tst_compi_ioctlsocket="unknown"
35073   tst_allow_ioctlsocket="unknown"
35074   #
35075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35076 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35078 /* end confdefs.h.  */
35079
35080
35081       $curl_includes_winsock2
35082
35083 int main (void)
35084 {
35085
35086       if(0 != ioctlsocket(0, 0, 0))
35087         return 1;
35088
35089  ;
35090  return 0;
35091 }
35092
35093 _ACEOF
35094 if ac_fn_c_try_link "$LINENO"; then :
35095
35096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35097 $as_echo "yes" >&6; }
35098     tst_links_ioctlsocket="yes"
35099
35100 else
35101
35102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35103 $as_echo "no" >&6; }
35104     tst_links_ioctlsocket="no"
35105
35106 fi
35107 rm -f core conftest.err conftest.$ac_objext \
35108     conftest$ac_exeext conftest.$ac_ext
35109   #
35110   if test "$tst_links_ioctlsocket" = "yes"; then
35111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35112 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35113     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35114 /* end confdefs.h.  */
35115
35116       $curl_includes_winsock2
35117
35118 _ACEOF
35119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35120   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35121
35122       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35123 $as_echo "yes" >&6; }
35124       tst_proto_ioctlsocket="yes"
35125
35126 else
35127
35128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35129 $as_echo "no" >&6; }
35130       tst_proto_ioctlsocket="no"
35131
35132 fi
35133 rm -f conftest*
35134
35135   fi
35136   #
35137   if test "$tst_proto_ioctlsocket" = "yes"; then
35138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35139 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35140     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35141 /* end confdefs.h.  */
35142
35143
35144         $curl_includes_winsock2
35145
35146 int main (void)
35147 {
35148
35149         if(0 != ioctlsocket(0, 0, 0))
35150           return 1;
35151
35152  ;
35153  return 0;
35154 }
35155
35156 _ACEOF
35157 if ac_fn_c_try_compile "$LINENO"; then :
35158
35159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35160 $as_echo "yes" >&6; }
35161       tst_compi_ioctlsocket="yes"
35162
35163 else
35164
35165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35166 $as_echo "no" >&6; }
35167       tst_compi_ioctlsocket="no"
35168
35169 fi
35170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35171   fi
35172   #
35173   if test "$tst_compi_ioctlsocket" = "yes"; then
35174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35175 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35176     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35178 $as_echo "yes" >&6; }
35179       tst_allow_ioctlsocket="yes"
35180     else
35181       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35182 $as_echo "no" >&6; }
35183       tst_allow_ioctlsocket="no"
35184     fi
35185   fi
35186   #
35187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35188 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
35189   if test "$tst_links_ioctlsocket" = "yes" &&
35190      test "$tst_proto_ioctlsocket" = "yes" &&
35191      test "$tst_compi_ioctlsocket" = "yes" &&
35192      test "$tst_allow_ioctlsocket" = "yes"; then
35193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35194 $as_echo "yes" >&6; }
35195
35196 cat >>confdefs.h <<_ACEOF
35197 #define HAVE_IOCTLSOCKET 1
35198 _ACEOF
35199
35200     curl_cv_func_ioctlsocket="yes"
35201
35202   #
35203   tst_compi_ioctlsocket_fionbio="unknown"
35204   tst_allow_ioctlsocket_fionbio="unknown"
35205   #
35206   if test "$curl_cv_func_ioctlsocket" = "yes"; then
35207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35208 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35210 /* end confdefs.h.  */
35211
35212
35213         $curl_includes_winsock2
35214
35215 int main (void)
35216 {
35217
35218         int flags = 0;
35219         if(0 != ioctlsocket(0, FIONBIO, &flags))
35220           return 1;
35221
35222  ;
35223  return 0;
35224 }
35225
35226 _ACEOF
35227 if ac_fn_c_try_compile "$LINENO"; then :
35228
35229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35230 $as_echo "yes" >&6; }
35231       tst_compi_ioctlsocket_fionbio="yes"
35232
35233 else
35234
35235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35236 $as_echo "no" >&6; }
35237       tst_compi_ioctlsocket_fionbio="no"
35238
35239 fi
35240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35241   fi
35242   #
35243   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35245 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35246     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35247       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35248 $as_echo "yes" >&6; }
35249       tst_allow_ioctlsocket_fionbio="yes"
35250     else
35251       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35252 $as_echo "no" >&6; }
35253       tst_allow_ioctlsocket_fionbio="no"
35254     fi
35255   fi
35256   #
35257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35258 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35259   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35260      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35262 $as_echo "yes" >&6; }
35263
35264 cat >>confdefs.h <<_ACEOF
35265 #define HAVE_IOCTLSOCKET_FIONBIO 1
35266 _ACEOF
35267
35268     curl_cv_func_ioctlsocket_fionbio="yes"
35269   else
35270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35271 $as_echo "no" >&6; }
35272     curl_cv_func_ioctlsocket_fionbio="no"
35273   fi
35274
35275   else
35276     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35277 $as_echo "no" >&6; }
35278     curl_cv_func_ioctlsocket="no"
35279   fi
35280
35281
35282     #
35283   tst_links_ioctlsocket_camel="unknown"
35284   tst_proto_ioctlsocket_camel="unknown"
35285   tst_compi_ioctlsocket_camel="unknown"
35286   tst_allow_ioctlsocket_camel="unknown"
35287   #
35288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35289 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35291 /* end confdefs.h.  */
35292
35293
35294 #define IoctlSocket innocuous_IoctlSocket
35295 #ifdef __STDC__
35296 # include <limits.h>
35297 #else
35298 # include <assert.h>
35299 #endif
35300 #undef IoctlSocket
35301 #ifdef __cplusplus
35302 extern "C"
35303 #endif
35304 char IoctlSocket ();
35305 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35306 choke me
35307 #endif
35308
35309 int main (void)
35310 {
35311 return IoctlSocket ();
35312  ;
35313  return 0;
35314 }
35315
35316 _ACEOF
35317 if ac_fn_c_try_link "$LINENO"; then :
35318
35319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35320 $as_echo "yes" >&6; }
35321     tst_links_ioctlsocket_camel="yes"
35322
35323 else
35324
35325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35326 $as_echo "no" >&6; }
35327     tst_links_ioctlsocket_camel="no"
35328
35329 fi
35330 rm -f core conftest.err conftest.$ac_objext \
35331     conftest$ac_exeext conftest.$ac_ext
35332   #
35333   if test "$tst_links_ioctlsocket_camel" = "yes"; then
35334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35335 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35336     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35337 /* end confdefs.h.  */
35338
35339       $curl_includes_stropts
35340
35341 _ACEOF
35342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35343   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35344
35345       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35346 $as_echo "yes" >&6; }
35347       tst_proto_ioctlsocket_camel="yes"
35348
35349 else
35350
35351       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35352 $as_echo "no" >&6; }
35353       tst_proto_ioctlsocket_camel="no"
35354
35355 fi
35356 rm -f conftest*
35357
35358   fi
35359   #
35360   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35362 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35363     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35364 /* end confdefs.h.  */
35365
35366
35367         $curl_includes_stropts
35368
35369 int main (void)
35370 {
35371
35372         if(0 != IoctlSocket(0, 0, 0))
35373           return 1;
35374
35375  ;
35376  return 0;
35377 }
35378
35379 _ACEOF
35380 if ac_fn_c_try_compile "$LINENO"; then :
35381
35382       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35383 $as_echo "yes" >&6; }
35384       tst_compi_ioctlsocket_camel="yes"
35385
35386 else
35387
35388       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35389 $as_echo "no" >&6; }
35390       tst_compi_ioctlsocket_camel="no"
35391
35392 fi
35393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35394   fi
35395   #
35396   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35398 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35399     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35401 $as_echo "yes" >&6; }
35402       tst_allow_ioctlsocket_camel="yes"
35403     else
35404       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35405 $as_echo "no" >&6; }
35406       tst_allow_ioctlsocket_camel="no"
35407     fi
35408   fi
35409   #
35410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35411 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
35412   if test "$tst_links_ioctlsocket_camel" = "yes" &&
35413      test "$tst_proto_ioctlsocket_camel" = "yes" &&
35414      test "$tst_compi_ioctlsocket_camel" = "yes" &&
35415      test "$tst_allow_ioctlsocket_camel" = "yes"; then
35416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35417 $as_echo "yes" >&6; }
35418
35419 cat >>confdefs.h <<_ACEOF
35420 #define HAVE_IOCTLSOCKET_CAMEL 1
35421 _ACEOF
35422
35423     curl_cv_func_ioctlsocket_camel="yes"
35424
35425   #
35426   tst_compi_ioctlsocket_camel_fionbio="unknown"
35427   tst_allow_ioctlsocket_camel_fionbio="unknown"
35428   #
35429   if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
35430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35431 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35432     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35433 /* end confdefs.h.  */
35434
35435
35436         $curl_includes_stropts
35437
35438 int main (void)
35439 {
35440
35441         long flags = 0;
35442         if(0 != ioctlsocket(0, FIONBIO, &flags))
35443           return 1;
35444
35445  ;
35446  return 0;
35447 }
35448
35449 _ACEOF
35450 if ac_fn_c_try_compile "$LINENO"; then :
35451
35452       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35453 $as_echo "yes" >&6; }
35454       tst_compi_ioctlsocket_camel_fionbio="yes"
35455
35456 else
35457
35458       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35459 $as_echo "no" >&6; }
35460       tst_compi_ioctlsocket_camel_fionbio="no"
35461
35462 fi
35463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35464   fi
35465   #
35466   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
35467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
35468 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
35469     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
35470       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35471 $as_echo "yes" >&6; }
35472       tst_allow_ioctlsocket_camel_fionbio="yes"
35473     else
35474       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35475 $as_echo "no" >&6; }
35476       tst_allow_ioctlsocket_camel_fionbio="no"
35477     fi
35478   fi
35479   #
35480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
35481 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
35482   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
35483      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
35484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35485 $as_echo "yes" >&6; }
35486
35487 cat >>confdefs.h <<_ACEOF
35488 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
35489 _ACEOF
35490
35491     curl_cv_func_ioctlsocket_camel_fionbio="yes"
35492   else
35493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35494 $as_echo "no" >&6; }
35495     curl_cv_func_ioctlsocket_camel_fionbio="no"
35496   fi
35497
35498   else
35499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35500 $as_echo "no" >&6; }
35501     curl_cv_func_ioctlsocket_camel="no"
35502   fi
35503
35504
35505       #
35506   tst_links_localtime_r="unknown"
35507   tst_proto_localtime_r="unknown"
35508   tst_compi_localtime_r="unknown"
35509   tst_works_localtime_r="unknown"
35510   tst_allow_localtime_r="unknown"
35511   #
35512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
35513 $as_echo_n "checking if localtime_r can be linked... " >&6; }
35514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35515 /* end confdefs.h.  */
35516
35517
35518 #define localtime_r innocuous_localtime_r
35519 #ifdef __STDC__
35520 # include <limits.h>
35521 #else
35522 # include <assert.h>
35523 #endif
35524 #undef localtime_r
35525 #ifdef __cplusplus
35526 extern "C"
35527 #endif
35528 char localtime_r ();
35529 #if defined __stub_localtime_r || defined __stub___localtime_r
35530 choke me
35531 #endif
35532
35533 int main (void)
35534 {
35535 return localtime_r ();
35536  ;
35537  return 0;
35538 }
35539
35540 _ACEOF
35541 if ac_fn_c_try_link "$LINENO"; then :
35542
35543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35544 $as_echo "yes" >&6; }
35545     tst_links_localtime_r="yes"
35546
35547 else
35548
35549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35550 $as_echo "no" >&6; }
35551     tst_links_localtime_r="no"
35552
35553 fi
35554 rm -f core conftest.err conftest.$ac_objext \
35555     conftest$ac_exeext conftest.$ac_ext
35556   #
35557   if test "$tst_links_localtime_r" = "yes"; then
35558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
35559 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
35560     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35561 /* end confdefs.h.  */
35562
35563       $curl_includes_time
35564
35565 _ACEOF
35566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35567   $EGREP "localtime_r" >/dev/null 2>&1; then :
35568
35569       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35570 $as_echo "yes" >&6; }
35571       tst_proto_localtime_r="yes"
35572
35573 else
35574
35575       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35576 $as_echo "no" >&6; }
35577       tst_proto_localtime_r="no"
35578
35579 fi
35580 rm -f conftest*
35581
35582   fi
35583   #
35584   if test "$tst_proto_localtime_r" = "yes"; then
35585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
35586 $as_echo_n "checking if localtime_r is compilable... " >&6; }
35587     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35588 /* end confdefs.h.  */
35589
35590
35591         $curl_includes_time
35592
35593 int main (void)
35594 {
35595
35596         if(0 != localtime_r(0, 0))
35597           return 1;
35598
35599  ;
35600  return 0;
35601 }
35602
35603 _ACEOF
35604 if ac_fn_c_try_compile "$LINENO"; then :
35605
35606       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35607 $as_echo "yes" >&6; }
35608       tst_compi_localtime_r="yes"
35609
35610 else
35611
35612       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35613 $as_echo "no" >&6; }
35614       tst_compi_localtime_r="no"
35615
35616 fi
35617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35618   fi
35619   #
35620     if test "x$cross_compiling" != "xyes" &&
35621     test "$tst_compi_localtime_r" = "yes"; then
35622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
35623 $as_echo_n "checking if localtime_r seems to work... " >&6; }
35624     if test "$cross_compiling" = yes; then :
35625   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35627 as_fn_error $? "cannot run test program while cross compiling
35628 See \`config.log' for more details" "$LINENO" 5; }
35629 else
35630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35631 /* end confdefs.h.  */
35632
35633
35634         $curl_includes_stdlib
35635         $curl_includes_time
35636
35637 int main (void)
35638 {
35639
35640         time_t clock = 1170352587;
35641         struct tm *tmp = 0;
35642         struct tm result;
35643         tmp = localtime_r(&clock, &result);
35644         if(tmp)
35645           exit(0);
35646         else
35647           exit(1);
35648
35649  ;
35650  return 0;
35651 }
35652
35653 _ACEOF
35654 if ac_fn_c_try_run "$LINENO"; then :
35655
35656       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35657 $as_echo "yes" >&6; }
35658       tst_works_localtime_r="yes"
35659
35660 else
35661
35662       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35663 $as_echo "no" >&6; }
35664       tst_works_localtime_r="no"
35665
35666 fi
35667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35668   conftest.$ac_objext conftest.beam conftest.$ac_ext
35669 fi
35670
35671   fi
35672   #
35673   if test "$tst_compi_localtime_r" = "yes" &&
35674     test "$tst_works_localtime_r" != "no"; then
35675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
35676 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
35677     if test "x$curl_disallow_localtime_r" != "xyes"; then
35678       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35679 $as_echo "yes" >&6; }
35680       tst_allow_localtime_r="yes"
35681     else
35682       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35683 $as_echo "no" >&6; }
35684       tst_allow_localtime_r="no"
35685     fi
35686   fi
35687   #
35688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
35689 $as_echo_n "checking if localtime_r might be used... " >&6; }
35690   if test "$tst_links_localtime_r" = "yes" &&
35691      test "$tst_proto_localtime_r" = "yes" &&
35692      test "$tst_compi_localtime_r" = "yes" &&
35693      test "$tst_allow_localtime_r" = "yes" &&
35694      test "$tst_works_localtime_r" != "no"; then
35695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35696 $as_echo "yes" >&6; }
35697
35698 cat >>confdefs.h <<_ACEOF
35699 #define HAVE_LOCALTIME_R 1
35700 _ACEOF
35701
35702     curl_cv_func_localtime_r="yes"
35703   else
35704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35705 $as_echo "no" >&6; }
35706     curl_cv_func_localtime_r="no"
35707   fi
35708
35709
35710     #
35711   tst_links_memrchr="unknown"
35712   tst_macro_memrchr="unknown"
35713   tst_proto_memrchr="unknown"
35714   tst_compi_memrchr="unknown"
35715   tst_allow_memrchr="unknown"
35716   #
35717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
35718 $as_echo_n "checking if memrchr can be linked... " >&6; }
35719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35720 /* end confdefs.h.  */
35721
35722
35723 #define memrchr innocuous_memrchr
35724 #ifdef __STDC__
35725 # include <limits.h>
35726 #else
35727 # include <assert.h>
35728 #endif
35729 #undef memrchr
35730 #ifdef __cplusplus
35731 extern "C"
35732 #endif
35733 char memrchr ();
35734 #if defined __stub_memrchr || defined __stub___memrchr
35735 choke me
35736 #endif
35737
35738 int main (void)
35739 {
35740 return memrchr ();
35741  ;
35742  return 0;
35743 }
35744
35745 _ACEOF
35746 if ac_fn_c_try_link "$LINENO"; then :
35747
35748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35749 $as_echo "yes" >&6; }
35750     tst_links_memrchr="yes"
35751
35752 else
35753
35754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35755 $as_echo "no" >&6; }
35756     tst_links_memrchr="no"
35757
35758 fi
35759 rm -f core conftest.err conftest.$ac_objext \
35760     conftest$ac_exeext conftest.$ac_ext
35761   #
35762   if test "$tst_links_memrchr" = "no"; then
35763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
35764 $as_echo_n "checking if memrchr seems a macro... " >&6; }
35765     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35766 /* end confdefs.h.  */
35767
35768
35769         $curl_includes_string
35770
35771 int main (void)
35772 {
35773
35774         if(0 != memrchr(0, 0, 0))
35775           return 1;
35776
35777  ;
35778  return 0;
35779 }
35780
35781 _ACEOF
35782 if ac_fn_c_try_link "$LINENO"; then :
35783
35784       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35785 $as_echo "yes" >&6; }
35786       tst_macro_memrchr="yes"
35787
35788 else
35789
35790       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35791 $as_echo "no" >&6; }
35792       tst_macro_memrchr="no"
35793
35794 fi
35795 rm -f core conftest.err conftest.$ac_objext \
35796     conftest$ac_exeext conftest.$ac_ext
35797   fi
35798   #
35799   if test "$tst_links_memrchr" = "yes"; then
35800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
35801 $as_echo_n "checking if memrchr is prototyped... " >&6; }
35802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35803 /* end confdefs.h.  */
35804
35805       $curl_includes_string
35806
35807 _ACEOF
35808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35809   $EGREP "memrchr" >/dev/null 2>&1; then :
35810
35811       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35812 $as_echo "yes" >&6; }
35813       tst_proto_memrchr="yes"
35814
35815 else
35816
35817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35818 $as_echo "no" >&6; }
35819       tst_proto_memrchr="no"
35820
35821 fi
35822 rm -f conftest*
35823
35824   fi
35825   #
35826   if test "$tst_proto_memrchr" = "yes" ||
35827      test "$tst_macro_memrchr" = "yes"; then
35828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
35829 $as_echo_n "checking if memrchr is compilable... " >&6; }
35830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35831 /* end confdefs.h.  */
35832
35833
35834         $curl_includes_string
35835
35836 int main (void)
35837 {
35838
35839         if(0 != memrchr(0, 0, 0))
35840           return 1;
35841
35842  ;
35843  return 0;
35844 }
35845
35846 _ACEOF
35847 if ac_fn_c_try_compile "$LINENO"; then :
35848
35849       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35850 $as_echo "yes" >&6; }
35851       tst_compi_memrchr="yes"
35852
35853 else
35854
35855       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35856 $as_echo "no" >&6; }
35857       tst_compi_memrchr="no"
35858
35859 fi
35860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35861   fi
35862   #
35863   if test "$tst_compi_memrchr" = "yes"; then
35864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
35865 $as_echo_n "checking if memrchr usage allowed... " >&6; }
35866     if test "x$curl_disallow_memrchr" != "xyes"; then
35867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35868 $as_echo "yes" >&6; }
35869       tst_allow_memrchr="yes"
35870     else
35871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35872 $as_echo "no" >&6; }
35873       tst_allow_memrchr="no"
35874     fi
35875   fi
35876   #
35877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
35878 $as_echo_n "checking if memrchr might be used... " >&6; }
35879   if (test "$tst_proto_memrchr" = "yes" ||
35880       test "$tst_macro_memrchr" = "yes") &&
35881      test "$tst_compi_memrchr" = "yes" &&
35882      test "$tst_allow_memrchr" = "yes"; then
35883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35884 $as_echo "yes" >&6; }
35885
35886 cat >>confdefs.h <<_ACEOF
35887 #define HAVE_MEMRCHR 1
35888 _ACEOF
35889
35890     curl_cv_func_memrchr="yes"
35891   else
35892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35893 $as_echo "no" >&6; }
35894     curl_cv_func_memrchr="no"
35895   fi
35896
35897
35898       #
35899   tst_links_poll="unknown"
35900   tst_proto_poll="unknown"
35901   tst_compi_poll="unknown"
35902   tst_works_poll="unknown"
35903   tst_allow_poll="unknown"
35904   #
35905   case $host_os in
35906     darwin*|interix*)
35907                                           curl_disallow_poll="yes"
35908       tst_compi_poll="no"
35909       ;;
35910   esac
35911   #
35912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
35913 $as_echo_n "checking if poll can be linked... " >&6; }
35914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35915 /* end confdefs.h.  */
35916
35917
35918       $curl_includes_poll
35919
35920 int main (void)
35921 {
35922
35923       if(0 != poll(0, 0, 0))
35924         return 1;
35925
35926  ;
35927  return 0;
35928 }
35929
35930 _ACEOF
35931 if ac_fn_c_try_link "$LINENO"; then :
35932
35933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35934 $as_echo "yes" >&6; }
35935     tst_links_poll="yes"
35936
35937 else
35938
35939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35940 $as_echo "no" >&6; }
35941     tst_links_poll="no"
35942
35943 fi
35944 rm -f core conftest.err conftest.$ac_objext \
35945     conftest$ac_exeext conftest.$ac_ext
35946   #
35947   if test "$tst_links_poll" = "yes"; then
35948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
35949 $as_echo_n "checking if poll is prototyped... " >&6; }
35950     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35951 /* end confdefs.h.  */
35952
35953       $curl_includes_poll
35954
35955 _ACEOF
35956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35957   $EGREP "poll" >/dev/null 2>&1; then :
35958
35959       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35960 $as_echo "yes" >&6; }
35961       tst_proto_poll="yes"
35962
35963 else
35964
35965       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35966 $as_echo "no" >&6; }
35967       tst_proto_poll="no"
35968
35969 fi
35970 rm -f conftest*
35971
35972   fi
35973   #
35974   if test "$tst_proto_poll" = "yes"; then
35975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
35976 $as_echo_n "checking if poll is compilable... " >&6; }
35977     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35978 /* end confdefs.h.  */
35979
35980
35981         $curl_includes_poll
35982
35983 int main (void)
35984 {
35985
35986         if(0 != poll(0, 0, 0))
35987           return 1;
35988
35989  ;
35990  return 0;
35991 }
35992
35993 _ACEOF
35994 if ac_fn_c_try_compile "$LINENO"; then :
35995
35996       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35997 $as_echo "yes" >&6; }
35998       tst_compi_poll="yes"
35999
36000 else
36001
36002       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36003 $as_echo "no" >&6; }
36004       tst_compi_poll="no"
36005
36006 fi
36007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36008   fi
36009   #
36010     if test "x$cross_compiling" != "xyes" &&
36011     test "$tst_compi_poll" = "yes"; then
36012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36013 $as_echo_n "checking if poll seems to work... " >&6; }
36014     if test "$cross_compiling" = yes; then :
36015   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36017 as_fn_error $? "cannot run test program while cross compiling
36018 See \`config.log' for more details" "$LINENO" 5; }
36019 else
36020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36021 /* end confdefs.h.  */
36022
36023
36024         $curl_includes_stdlib
36025         $curl_includes_poll
36026         $curl_includes_time
36027
36028 int main (void)
36029 {
36030
36031         /* detect the original poll() breakage */
36032         if(0 != poll(0, 0, 10))
36033           exit(1); /* fail */
36034         else {
36035           /* detect the 10.12 poll() breakage */
36036           struct timeval before, after;
36037           int rc;
36038           size_t us;
36039
36040           gettimeofday(&before, NULL);
36041           rc = poll(NULL, 0, 500);
36042           gettimeofday(&after, NULL);
36043
36044           us = (after.tv_sec - before.tv_sec) * 1000000 +
36045             (after.tv_usec - before.tv_usec);
36046
36047           if(us < 400000)
36048             exit(1);
36049         }
36050
36051  ;
36052  return 0;
36053 }
36054
36055 _ACEOF
36056 if ac_fn_c_try_run "$LINENO"; then :
36057
36058       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36059 $as_echo "yes" >&6; }
36060       tst_works_poll="yes"
36061
36062 else
36063
36064       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36065 $as_echo "no" >&6; }
36066       tst_works_poll="no"
36067
36068 fi
36069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36070   conftest.$ac_objext conftest.beam conftest.$ac_ext
36071 fi
36072
36073   fi
36074   #
36075   if test "$tst_compi_poll" = "yes" &&
36076     test "$tst_works_poll" != "no"; then
36077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36078 $as_echo_n "checking if poll usage allowed... " >&6; }
36079     if test "x$curl_disallow_poll" != "xyes"; then
36080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36081 $as_echo "yes" >&6; }
36082       tst_allow_poll="yes"
36083     else
36084       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36085 $as_echo "no" >&6; }
36086       tst_allow_poll="no"
36087     fi
36088   fi
36089   #
36090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36091 $as_echo_n "checking if poll might be used... " >&6; }
36092   if test "$tst_links_poll" = "yes" &&
36093      test "$tst_proto_poll" = "yes" &&
36094      test "$tst_compi_poll" = "yes" &&
36095      test "$tst_allow_poll" = "yes" &&
36096      test "$tst_works_poll" != "no"; then
36097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36098 $as_echo "yes" >&6; }
36099
36100 cat >>confdefs.h <<_ACEOF
36101 #define HAVE_POLL 1
36102 _ACEOF
36103
36104
36105 cat >>confdefs.h <<_ACEOF
36106 #define HAVE_POLL_FINE 1
36107 _ACEOF
36108
36109     curl_cv_func_poll="yes"
36110   else
36111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36112 $as_echo "no" >&6; }
36113     curl_cv_func_poll="no"
36114   fi
36115
36116
36117       #
36118   tst_links_setsockopt="unknown"
36119   tst_proto_setsockopt="unknown"
36120   tst_compi_setsockopt="unknown"
36121   tst_allow_setsockopt="unknown"
36122   #
36123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36124 $as_echo_n "checking if setsockopt can be linked... " >&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_link "$LINENO"; then :
36144
36145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36146 $as_echo "yes" >&6; }
36147     tst_links_setsockopt="yes"
36148
36149 else
36150
36151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36152 $as_echo "no" >&6; }
36153     tst_links_setsockopt="no"
36154
36155 fi
36156 rm -f core conftest.err conftest.$ac_objext \
36157     conftest$ac_exeext conftest.$ac_ext
36158   #
36159   if test "$tst_links_setsockopt" = "yes"; then
36160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36161 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
36162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36163 /* end confdefs.h.  */
36164
36165       $curl_includes_winsock2
36166       $curl_includes_sys_socket
36167
36168 _ACEOF
36169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36170   $EGREP "setsockopt" >/dev/null 2>&1; then :
36171
36172       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36173 $as_echo "yes" >&6; }
36174       tst_proto_setsockopt="yes"
36175
36176 else
36177
36178       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36179 $as_echo "no" >&6; }
36180       tst_proto_setsockopt="no"
36181
36182 fi
36183 rm -f conftest*
36184
36185   fi
36186   #
36187   if test "$tst_proto_setsockopt" = "yes"; then
36188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36189 $as_echo_n "checking if setsockopt is compilable... " >&6; }
36190     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36191 /* end confdefs.h.  */
36192
36193
36194         $curl_includes_winsock2
36195         $curl_includes_sys_socket
36196
36197 int main (void)
36198 {
36199
36200         if(0 != setsockopt(0, 0, 0, 0, 0))
36201           return 1;
36202
36203  ;
36204  return 0;
36205 }
36206
36207 _ACEOF
36208 if ac_fn_c_try_compile "$LINENO"; then :
36209
36210       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36211 $as_echo "yes" >&6; }
36212       tst_compi_setsockopt="yes"
36213
36214 else
36215
36216       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36217 $as_echo "no" >&6; }
36218       tst_compi_setsockopt="no"
36219
36220 fi
36221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36222   fi
36223   #
36224   if test "$tst_compi_setsockopt" = "yes"; then
36225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36226 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
36227     if test "x$curl_disallow_setsockopt" != "xyes"; then
36228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36229 $as_echo "yes" >&6; }
36230       tst_allow_setsockopt="yes"
36231     else
36232       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36233 $as_echo "no" >&6; }
36234       tst_allow_setsockopt="no"
36235     fi
36236   fi
36237   #
36238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36239 $as_echo_n "checking if setsockopt might be used... " >&6; }
36240   if test "$tst_links_setsockopt" = "yes" &&
36241      test "$tst_proto_setsockopt" = "yes" &&
36242      test "$tst_compi_setsockopt" = "yes" &&
36243      test "$tst_allow_setsockopt" = "yes"; then
36244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36245 $as_echo "yes" >&6; }
36246
36247 cat >>confdefs.h <<_ACEOF
36248 #define HAVE_SETSOCKOPT 1
36249 _ACEOF
36250
36251     curl_cv_func_setsockopt="yes"
36252
36253   #
36254   tst_compi_setsockopt_so_nonblock="unknown"
36255   tst_allow_setsockopt_so_nonblock="unknown"
36256   #
36257   if test "$curl_cv_func_setsockopt" = "yes"; then
36258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36259 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36260     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36261 /* end confdefs.h.  */
36262
36263
36264         $curl_includes_winsock2
36265         $curl_includes_sys_socket
36266
36267 int main (void)
36268 {
36269
36270         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36271           return 1;
36272
36273  ;
36274  return 0;
36275 }
36276
36277 _ACEOF
36278 if ac_fn_c_try_compile "$LINENO"; then :
36279
36280       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36281 $as_echo "yes" >&6; }
36282       tst_compi_setsockopt_so_nonblock="yes"
36283
36284 else
36285
36286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36287 $as_echo "no" >&6; }
36288       tst_compi_setsockopt_so_nonblock="no"
36289
36290 fi
36291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36292   fi
36293   #
36294   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36296 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36297     if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36298       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36299 $as_echo "yes" >&6; }
36300       tst_allow_setsockopt_so_nonblock="yes"
36301     else
36302       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36303 $as_echo "no" >&6; }
36304       tst_allow_setsockopt_so_nonblock="no"
36305     fi
36306   fi
36307   #
36308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36309 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36310   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36311      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36313 $as_echo "yes" >&6; }
36314
36315 cat >>confdefs.h <<_ACEOF
36316 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36317 _ACEOF
36318
36319     curl_cv_func_setsockopt_so_nonblock="yes"
36320   else
36321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36322 $as_echo "no" >&6; }
36323     curl_cv_func_setsockopt_so_nonblock="no"
36324   fi
36325
36326   else
36327     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36328 $as_echo "no" >&6; }
36329     curl_cv_func_setsockopt="no"
36330   fi
36331
36332
36333 curl_includes_signal="\
36334 /* includes start */
36335 #ifdef HAVE_SYS_TYPES_H
36336 #  include <sys/types.h>
36337 #endif
36338 #ifdef HAVE_SIGNAL_H
36339 #  include <signal.h>
36340 #endif
36341 /* includes end */"
36342   for ac_header in sys/types.h signal.h
36343 do :
36344   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36345 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36346 "
36347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36348   cat >>confdefs.h <<_ACEOF
36349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36350 _ACEOF
36351
36352 fi
36353
36354 done
36355
36356
36357
36358     #
36359   tst_links_sigaction="unknown"
36360   tst_proto_sigaction="unknown"
36361   tst_compi_sigaction="unknown"
36362   tst_allow_sigaction="unknown"
36363   #
36364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36365 $as_echo_n "checking if sigaction can be linked... " >&6; }
36366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36367 /* end confdefs.h.  */
36368
36369
36370 #define sigaction innocuous_sigaction
36371 #ifdef __STDC__
36372 # include <limits.h>
36373 #else
36374 # include <assert.h>
36375 #endif
36376 #undef sigaction
36377 #ifdef __cplusplus
36378 extern "C"
36379 #endif
36380 char sigaction ();
36381 #if defined __stub_sigaction || defined __stub___sigaction
36382 choke me
36383 #endif
36384
36385 int main (void)
36386 {
36387 return sigaction ();
36388  ;
36389  return 0;
36390 }
36391
36392 _ACEOF
36393 if ac_fn_c_try_link "$LINENO"; then :
36394
36395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36396 $as_echo "yes" >&6; }
36397     tst_links_sigaction="yes"
36398
36399 else
36400
36401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36402 $as_echo "no" >&6; }
36403     tst_links_sigaction="no"
36404
36405 fi
36406 rm -f core conftest.err conftest.$ac_objext \
36407     conftest$ac_exeext conftest.$ac_ext
36408   #
36409   if test "$tst_links_sigaction" = "yes"; then
36410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36411 $as_echo_n "checking if sigaction is prototyped... " >&6; }
36412     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36413 /* end confdefs.h.  */
36414
36415       $curl_includes_signal
36416
36417 _ACEOF
36418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36419   $EGREP "sigaction" >/dev/null 2>&1; then :
36420
36421       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36422 $as_echo "yes" >&6; }
36423       tst_proto_sigaction="yes"
36424
36425 else
36426
36427       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36428 $as_echo "no" >&6; }
36429       tst_proto_sigaction="no"
36430
36431 fi
36432 rm -f conftest*
36433
36434   fi
36435   #
36436   if test "$tst_proto_sigaction" = "yes"; then
36437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
36438 $as_echo_n "checking if sigaction is compilable... " >&6; }
36439     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36440 /* end confdefs.h.  */
36441
36442
36443         $curl_includes_signal
36444
36445 int main (void)
36446 {
36447
36448         if(0 != sigaction(0, 0, 0))
36449           return 1;
36450
36451  ;
36452  return 0;
36453 }
36454
36455 _ACEOF
36456 if ac_fn_c_try_compile "$LINENO"; then :
36457
36458       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36459 $as_echo "yes" >&6; }
36460       tst_compi_sigaction="yes"
36461
36462 else
36463
36464       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36465 $as_echo "no" >&6; }
36466       tst_compi_sigaction="no"
36467
36468 fi
36469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36470   fi
36471   #
36472   if test "$tst_compi_sigaction" = "yes"; then
36473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
36474 $as_echo_n "checking if sigaction usage allowed... " >&6; }
36475     if test "x$curl_disallow_sigaction" != "xyes"; then
36476       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36477 $as_echo "yes" >&6; }
36478       tst_allow_sigaction="yes"
36479     else
36480       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36481 $as_echo "no" >&6; }
36482       tst_allow_sigaction="no"
36483     fi
36484   fi
36485   #
36486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
36487 $as_echo_n "checking if sigaction might be used... " >&6; }
36488   if test "$tst_links_sigaction" = "yes" &&
36489      test "$tst_proto_sigaction" = "yes" &&
36490      test "$tst_compi_sigaction" = "yes" &&
36491      test "$tst_allow_sigaction" = "yes"; then
36492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36493 $as_echo "yes" >&6; }
36494
36495 cat >>confdefs.h <<_ACEOF
36496 #define HAVE_SIGACTION 1
36497 _ACEOF
36498
36499     curl_cv_func_sigaction="yes"
36500   else
36501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36502 $as_echo "no" >&6; }
36503     curl_cv_func_sigaction="no"
36504   fi
36505
36506
36507     #
36508   tst_links_siginterrupt="unknown"
36509   tst_proto_siginterrupt="unknown"
36510   tst_compi_siginterrupt="unknown"
36511   tst_allow_siginterrupt="unknown"
36512   #
36513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
36514 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
36515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36516 /* end confdefs.h.  */
36517
36518
36519 #define siginterrupt innocuous_siginterrupt
36520 #ifdef __STDC__
36521 # include <limits.h>
36522 #else
36523 # include <assert.h>
36524 #endif
36525 #undef siginterrupt
36526 #ifdef __cplusplus
36527 extern "C"
36528 #endif
36529 char siginterrupt ();
36530 #if defined __stub_siginterrupt || defined __stub___siginterrupt
36531 choke me
36532 #endif
36533
36534 int main (void)
36535 {
36536 return siginterrupt ();
36537  ;
36538  return 0;
36539 }
36540
36541 _ACEOF
36542 if ac_fn_c_try_link "$LINENO"; then :
36543
36544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36545 $as_echo "yes" >&6; }
36546     tst_links_siginterrupt="yes"
36547
36548 else
36549
36550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36551 $as_echo "no" >&6; }
36552     tst_links_siginterrupt="no"
36553
36554 fi
36555 rm -f core conftest.err conftest.$ac_objext \
36556     conftest$ac_exeext conftest.$ac_ext
36557   #
36558   if test "$tst_links_siginterrupt" = "yes"; then
36559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
36560 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
36561     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36562 /* end confdefs.h.  */
36563
36564       $curl_includes_signal
36565
36566 _ACEOF
36567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36568   $EGREP "siginterrupt" >/dev/null 2>&1; then :
36569
36570       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36571 $as_echo "yes" >&6; }
36572       tst_proto_siginterrupt="yes"
36573
36574 else
36575
36576       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36577 $as_echo "no" >&6; }
36578       tst_proto_siginterrupt="no"
36579
36580 fi
36581 rm -f conftest*
36582
36583   fi
36584   #
36585   if test "$tst_proto_siginterrupt" = "yes"; then
36586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
36587 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
36588     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36589 /* end confdefs.h.  */
36590
36591
36592         $curl_includes_signal
36593
36594 int main (void)
36595 {
36596
36597         if(0 != siginterrupt(0, 0))
36598           return 1;
36599
36600  ;
36601  return 0;
36602 }
36603
36604 _ACEOF
36605 if ac_fn_c_try_compile "$LINENO"; then :
36606
36607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36608 $as_echo "yes" >&6; }
36609       tst_compi_siginterrupt="yes"
36610
36611 else
36612
36613       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36614 $as_echo "no" >&6; }
36615       tst_compi_siginterrupt="no"
36616
36617 fi
36618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36619   fi
36620   #
36621   if test "$tst_compi_siginterrupt" = "yes"; then
36622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
36623 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
36624     if test "x$curl_disallow_siginterrupt" != "xyes"; then
36625       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36626 $as_echo "yes" >&6; }
36627       tst_allow_siginterrupt="yes"
36628     else
36629       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36630 $as_echo "no" >&6; }
36631       tst_allow_siginterrupt="no"
36632     fi
36633   fi
36634   #
36635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
36636 $as_echo_n "checking if siginterrupt might be used... " >&6; }
36637   if test "$tst_links_siginterrupt" = "yes" &&
36638      test "$tst_proto_siginterrupt" = "yes" &&
36639      test "$tst_compi_siginterrupt" = "yes" &&
36640      test "$tst_allow_siginterrupt" = "yes"; then
36641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36642 $as_echo "yes" >&6; }
36643
36644 cat >>confdefs.h <<_ACEOF
36645 #define HAVE_SIGINTERRUPT 1
36646 _ACEOF
36647
36648     curl_cv_func_siginterrupt="yes"
36649   else
36650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36651 $as_echo "no" >&6; }
36652     curl_cv_func_siginterrupt="no"
36653   fi
36654
36655
36656     #
36657   tst_links_signal="unknown"
36658   tst_proto_signal="unknown"
36659   tst_compi_signal="unknown"
36660   tst_allow_signal="unknown"
36661   #
36662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
36663 $as_echo_n "checking if signal can be linked... " >&6; }
36664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36665 /* end confdefs.h.  */
36666
36667
36668 #define signal innocuous_signal
36669 #ifdef __STDC__
36670 # include <limits.h>
36671 #else
36672 # include <assert.h>
36673 #endif
36674 #undef signal
36675 #ifdef __cplusplus
36676 extern "C"
36677 #endif
36678 char signal ();
36679 #if defined __stub_signal || defined __stub___signal
36680 choke me
36681 #endif
36682
36683 int main (void)
36684 {
36685 return signal ();
36686  ;
36687  return 0;
36688 }
36689
36690 _ACEOF
36691 if ac_fn_c_try_link "$LINENO"; then :
36692
36693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36694 $as_echo "yes" >&6; }
36695     tst_links_signal="yes"
36696
36697 else
36698
36699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36700 $as_echo "no" >&6; }
36701     tst_links_signal="no"
36702
36703 fi
36704 rm -f core conftest.err conftest.$ac_objext \
36705     conftest$ac_exeext conftest.$ac_ext
36706   #
36707   if test "$tst_links_signal" = "yes"; then
36708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
36709 $as_echo_n "checking if signal is prototyped... " >&6; }
36710     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36711 /* end confdefs.h.  */
36712
36713       $curl_includes_signal
36714
36715 _ACEOF
36716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36717   $EGREP "signal" >/dev/null 2>&1; then :
36718
36719       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36720 $as_echo "yes" >&6; }
36721       tst_proto_signal="yes"
36722
36723 else
36724
36725       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36726 $as_echo "no" >&6; }
36727       tst_proto_signal="no"
36728
36729 fi
36730 rm -f conftest*
36731
36732   fi
36733   #
36734   if test "$tst_proto_signal" = "yes"; then
36735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
36736 $as_echo_n "checking if signal is compilable... " >&6; }
36737     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36738 /* end confdefs.h.  */
36739
36740
36741         $curl_includes_signal
36742
36743 int main (void)
36744 {
36745
36746         if(0 != signal(0, 0))
36747           return 1;
36748
36749  ;
36750  return 0;
36751 }
36752
36753 _ACEOF
36754 if ac_fn_c_try_compile "$LINENO"; then :
36755
36756       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36757 $as_echo "yes" >&6; }
36758       tst_compi_signal="yes"
36759
36760 else
36761
36762       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36763 $as_echo "no" >&6; }
36764       tst_compi_signal="no"
36765
36766 fi
36767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36768   fi
36769   #
36770   if test "$tst_compi_signal" = "yes"; then
36771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
36772 $as_echo_n "checking if signal usage allowed... " >&6; }
36773     if test "x$curl_disallow_signal" != "xyes"; then
36774       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36775 $as_echo "yes" >&6; }
36776       tst_allow_signal="yes"
36777     else
36778       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36779 $as_echo "no" >&6; }
36780       tst_allow_signal="no"
36781     fi
36782   fi
36783   #
36784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
36785 $as_echo_n "checking if signal might be used... " >&6; }
36786   if test "$tst_links_signal" = "yes" &&
36787      test "$tst_proto_signal" = "yes" &&
36788      test "$tst_compi_signal" = "yes" &&
36789      test "$tst_allow_signal" = "yes"; then
36790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36791 $as_echo "yes" >&6; }
36792
36793 cat >>confdefs.h <<_ACEOF
36794 #define HAVE_SIGNAL 1
36795 _ACEOF
36796
36797     curl_cv_func_signal="yes"
36798   else
36799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36800 $as_echo "no" >&6; }
36801     curl_cv_func_signal="no"
36802   fi
36803
36804
36805 curl_includes_setjmp="\
36806 /* includes start */
36807 #ifdef HAVE_SYS_TYPES_H
36808 #  include <sys/types.h>
36809 #endif
36810 #ifdef HAVE_SETJMP_H
36811 #  include <setjmp.h>
36812 #endif
36813 /* includes end */"
36814   for ac_header in sys/types.h setjmp.h
36815 do :
36816   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36817 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
36818 "
36819 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36820   cat >>confdefs.h <<_ACEOF
36821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36822 _ACEOF
36823
36824 fi
36825
36826 done
36827
36828
36829
36830     #
36831   tst_links_sigsetjmp="unknown"
36832   tst_macro_sigsetjmp="unknown"
36833   tst_proto_sigsetjmp="unknown"
36834   tst_compi_sigsetjmp="unknown"
36835   tst_allow_sigsetjmp="unknown"
36836   #
36837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
36838 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
36839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36840 /* end confdefs.h.  */
36841
36842
36843 #define sigsetjmp innocuous_sigsetjmp
36844 #ifdef __STDC__
36845 # include <limits.h>
36846 #else
36847 # include <assert.h>
36848 #endif
36849 #undef sigsetjmp
36850 #ifdef __cplusplus
36851 extern "C"
36852 #endif
36853 char sigsetjmp ();
36854 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
36855 choke me
36856 #endif
36857
36858 int main (void)
36859 {
36860 return sigsetjmp ();
36861  ;
36862  return 0;
36863 }
36864
36865 _ACEOF
36866 if ac_fn_c_try_link "$LINENO"; then :
36867
36868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36869 $as_echo "yes" >&6; }
36870     tst_links_sigsetjmp="yes"
36871
36872 else
36873
36874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36875 $as_echo "no" >&6; }
36876     tst_links_sigsetjmp="no"
36877
36878 fi
36879 rm -f core conftest.err conftest.$ac_objext \
36880     conftest$ac_exeext conftest.$ac_ext
36881   #
36882   if test "$tst_links_sigsetjmp" = "no"; then
36883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
36884 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
36885     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36886 /* end confdefs.h.  */
36887
36888
36889         $curl_includes_setjmp
36890
36891 int main (void)
36892 {
36893
36894         sigjmp_buf env;
36895         if(0 != sigsetjmp(env, 0))
36896           return 1;
36897
36898  ;
36899  return 0;
36900 }
36901
36902 _ACEOF
36903 if ac_fn_c_try_link "$LINENO"; then :
36904
36905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36906 $as_echo "yes" >&6; }
36907       tst_macro_sigsetjmp="yes"
36908
36909 else
36910
36911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36912 $as_echo "no" >&6; }
36913       tst_macro_sigsetjmp="no"
36914
36915 fi
36916 rm -f core conftest.err conftest.$ac_objext \
36917     conftest$ac_exeext conftest.$ac_ext
36918   fi
36919   #
36920   if test "$tst_links_sigsetjmp" = "yes"; then
36921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
36922 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
36923     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36924 /* end confdefs.h.  */
36925
36926       $curl_includes_setjmp
36927
36928 _ACEOF
36929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36930   $EGREP "sigsetjmp" >/dev/null 2>&1; then :
36931
36932       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36933 $as_echo "yes" >&6; }
36934       tst_proto_sigsetjmp="yes"
36935
36936 else
36937
36938       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36939 $as_echo "no" >&6; }
36940       tst_proto_sigsetjmp="no"
36941
36942 fi
36943 rm -f conftest*
36944
36945   fi
36946   #
36947   if test "$tst_proto_sigsetjmp" = "yes" ||
36948      test "$tst_macro_sigsetjmp" = "yes"; then
36949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
36950 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
36951     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36952 /* end confdefs.h.  */
36953
36954
36955         $curl_includes_setjmp
36956
36957 int main (void)
36958 {
36959
36960         sigjmp_buf env;
36961         if(0 != sigsetjmp(env, 0))
36962           return 1;
36963
36964  ;
36965  return 0;
36966 }
36967
36968 _ACEOF
36969 if ac_fn_c_try_compile "$LINENO"; then :
36970
36971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36972 $as_echo "yes" >&6; }
36973       tst_compi_sigsetjmp="yes"
36974
36975 else
36976
36977       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36978 $as_echo "no" >&6; }
36979       tst_compi_sigsetjmp="no"
36980
36981 fi
36982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36983   fi
36984   #
36985   if test "$tst_compi_sigsetjmp" = "yes"; then
36986     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
36987 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
36988     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
36989       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36990 $as_echo "yes" >&6; }
36991       tst_allow_sigsetjmp="yes"
36992     else
36993       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36994 $as_echo "no" >&6; }
36995       tst_allow_sigsetjmp="no"
36996     fi
36997   fi
36998   #
36999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37000 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
37001   if (test "$tst_proto_sigsetjmp" = "yes" ||
37002       test "$tst_macro_sigsetjmp" = "yes") &&
37003      test "$tst_compi_sigsetjmp" = "yes" &&
37004      test "$tst_allow_sigsetjmp" = "yes"; then
37005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37006 $as_echo "yes" >&6; }
37007
37008 cat >>confdefs.h <<_ACEOF
37009 #define HAVE_SIGSETJMP 1
37010 _ACEOF
37011
37012     curl_cv_func_sigsetjmp="yes"
37013   else
37014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37015 $as_echo "no" >&6; }
37016     curl_cv_func_sigsetjmp="no"
37017   fi
37018
37019
37020         #
37021   tst_links_socket="unknown"
37022   tst_proto_socket="unknown"
37023   tst_compi_socket="unknown"
37024   tst_allow_socket="unknown"
37025   #
37026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37027 $as_echo_n "checking if socket can be linked... " >&6; }
37028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37029 /* end confdefs.h.  */
37030
37031
37032       $curl_includes_winsock2
37033       $curl_includes_sys_socket
37034       $curl_includes_socket
37035
37036 int main (void)
37037 {
37038
37039       if(0 != socket(0, 0, 0))
37040         return 1;
37041
37042  ;
37043  return 0;
37044 }
37045
37046 _ACEOF
37047 if ac_fn_c_try_link "$LINENO"; then :
37048
37049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37050 $as_echo "yes" >&6; }
37051     tst_links_socket="yes"
37052
37053 else
37054
37055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37056 $as_echo "no" >&6; }
37057     tst_links_socket="no"
37058
37059 fi
37060 rm -f core conftest.err conftest.$ac_objext \
37061     conftest$ac_exeext conftest.$ac_ext
37062   #
37063   if test "$tst_links_socket" = "yes"; then
37064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37065 $as_echo_n "checking if socket is prototyped... " >&6; }
37066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37067 /* end confdefs.h.  */
37068
37069       $curl_includes_winsock2
37070       $curl_includes_sys_socket
37071       $curl_includes_socket
37072
37073 _ACEOF
37074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37075   $EGREP "socket" >/dev/null 2>&1; then :
37076
37077       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37078 $as_echo "yes" >&6; }
37079       tst_proto_socket="yes"
37080
37081 else
37082
37083       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37084 $as_echo "no" >&6; }
37085       tst_proto_socket="no"
37086
37087 fi
37088 rm -f conftest*
37089
37090   fi
37091   #
37092   if test "$tst_proto_socket" = "yes"; then
37093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37094 $as_echo_n "checking if socket is compilable... " >&6; }
37095     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37096 /* end confdefs.h.  */
37097
37098
37099         $curl_includes_winsock2
37100         $curl_includes_sys_socket
37101         $curl_includes_socket
37102
37103 int main (void)
37104 {
37105
37106         if(0 != socket(0, 0, 0))
37107           return 1;
37108
37109  ;
37110  return 0;
37111 }
37112
37113 _ACEOF
37114 if ac_fn_c_try_compile "$LINENO"; then :
37115
37116       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37117 $as_echo "yes" >&6; }
37118       tst_compi_socket="yes"
37119
37120 else
37121
37122       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37123 $as_echo "no" >&6; }
37124       tst_compi_socket="no"
37125
37126 fi
37127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37128   fi
37129   #
37130   if test "$tst_compi_socket" = "yes"; then
37131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37132 $as_echo_n "checking if socket usage allowed... " >&6; }
37133     if test "x$curl_disallow_socket" != "xyes"; then
37134       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37135 $as_echo "yes" >&6; }
37136       tst_allow_socket="yes"
37137     else
37138       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37139 $as_echo "no" >&6; }
37140       tst_allow_socket="no"
37141     fi
37142   fi
37143   #
37144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37145 $as_echo_n "checking if socket might be used... " >&6; }
37146   if test "$tst_links_socket" = "yes" &&
37147      test "$tst_proto_socket" = "yes" &&
37148      test "$tst_compi_socket" = "yes" &&
37149      test "$tst_allow_socket" = "yes"; then
37150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37151 $as_echo "yes" >&6; }
37152
37153 cat >>confdefs.h <<_ACEOF
37154 #define HAVE_SOCKET 1
37155 _ACEOF
37156
37157     curl_cv_func_socket="yes"
37158   else
37159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37160 $as_echo "no" >&6; }
37161     curl_cv_func_socket="no"
37162   fi
37163
37164
37165       #
37166   tst_links_socketpair="unknown"
37167   tst_proto_socketpair="unknown"
37168   tst_compi_socketpair="unknown"
37169   tst_allow_socketpair="unknown"
37170   #
37171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37172 $as_echo_n "checking if socketpair can be linked... " >&6; }
37173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37174 /* end confdefs.h.  */
37175
37176
37177 #define socketpair innocuous_socketpair
37178 #ifdef __STDC__
37179 # include <limits.h>
37180 #else
37181 # include <assert.h>
37182 #endif
37183 #undef socketpair
37184 #ifdef __cplusplus
37185 extern "C"
37186 #endif
37187 char socketpair ();
37188 #if defined __stub_socketpair || defined __stub___socketpair
37189 choke me
37190 #endif
37191
37192 int main (void)
37193 {
37194 return socketpair ();
37195  ;
37196  return 0;
37197 }
37198
37199 _ACEOF
37200 if ac_fn_c_try_link "$LINENO"; then :
37201
37202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37203 $as_echo "yes" >&6; }
37204     tst_links_socketpair="yes"
37205
37206 else
37207
37208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37209 $as_echo "no" >&6; }
37210     tst_links_socketpair="no"
37211
37212 fi
37213 rm -f core conftest.err conftest.$ac_objext \
37214     conftest$ac_exeext conftest.$ac_ext
37215   #
37216   if test "$tst_links_socketpair" = "yes"; then
37217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37218 $as_echo_n "checking if socketpair is prototyped... " >&6; }
37219     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37220 /* end confdefs.h.  */
37221
37222       $curl_includes_sys_socket
37223       $curl_includes_socket
37224
37225 _ACEOF
37226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37227   $EGREP "socketpair" >/dev/null 2>&1; then :
37228
37229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37230 $as_echo "yes" >&6; }
37231       tst_proto_socketpair="yes"
37232
37233 else
37234
37235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37236 $as_echo "no" >&6; }
37237       tst_proto_socketpair="no"
37238
37239 fi
37240 rm -f conftest*
37241
37242   fi
37243   #
37244   if test "$tst_proto_socketpair" = "yes"; then
37245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37246 $as_echo_n "checking if socketpair is compilable... " >&6; }
37247     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37248 /* end confdefs.h.  */
37249
37250
37251         $curl_includes_sys_socket
37252         $curl_includes_socket
37253
37254 int main (void)
37255 {
37256
37257         int sv[2];
37258         if(0 != socketpair(0, 0, 0, sv))
37259           return 1;
37260
37261  ;
37262  return 0;
37263 }
37264
37265 _ACEOF
37266 if ac_fn_c_try_compile "$LINENO"; then :
37267
37268       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37269 $as_echo "yes" >&6; }
37270       tst_compi_socketpair="yes"
37271
37272 else
37273
37274       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37275 $as_echo "no" >&6; }
37276       tst_compi_socketpair="no"
37277
37278 fi
37279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37280   fi
37281   #
37282   if test "$tst_compi_socketpair" = "yes"; then
37283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37284 $as_echo_n "checking if socketpair usage allowed... " >&6; }
37285     if test "x$curl_disallow_socketpair" != "xyes"; then
37286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37287 $as_echo "yes" >&6; }
37288       tst_allow_socketpair="yes"
37289     else
37290       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37291 $as_echo "no" >&6; }
37292       tst_allow_socketpair="no"
37293     fi
37294   fi
37295   #
37296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37297 $as_echo_n "checking if socketpair might be used... " >&6; }
37298   if test "$tst_links_socketpair" = "yes" &&
37299      test "$tst_proto_socketpair" = "yes" &&
37300      test "$tst_compi_socketpair" = "yes" &&
37301      test "$tst_allow_socketpair" = "yes"; then
37302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37303 $as_echo "yes" >&6; }
37304
37305 cat >>confdefs.h <<_ACEOF
37306 #define HAVE_SOCKETPAIR 1
37307 _ACEOF
37308
37309     curl_cv_func_socketpair="yes"
37310   else
37311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37312 $as_echo "no" >&6; }
37313     curl_cv_func_socketpair="no"
37314   fi
37315
37316
37317     #
37318   tst_links_strcasecmp="unknown"
37319   tst_proto_strcasecmp="unknown"
37320   tst_compi_strcasecmp="unknown"
37321   tst_allow_strcasecmp="unknown"
37322   #
37323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37324 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
37325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37326 /* end confdefs.h.  */
37327
37328
37329 #define strcasecmp innocuous_strcasecmp
37330 #ifdef __STDC__
37331 # include <limits.h>
37332 #else
37333 # include <assert.h>
37334 #endif
37335 #undef strcasecmp
37336 #ifdef __cplusplus
37337 extern "C"
37338 #endif
37339 char strcasecmp ();
37340 #if defined __stub_strcasecmp || defined __stub___strcasecmp
37341 choke me
37342 #endif
37343
37344 int main (void)
37345 {
37346 return strcasecmp ();
37347  ;
37348  return 0;
37349 }
37350
37351 _ACEOF
37352 if ac_fn_c_try_link "$LINENO"; then :
37353
37354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37355 $as_echo "yes" >&6; }
37356     tst_links_strcasecmp="yes"
37357
37358 else
37359
37360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37361 $as_echo "no" >&6; }
37362     tst_links_strcasecmp="no"
37363
37364 fi
37365 rm -f core conftest.err conftest.$ac_objext \
37366     conftest$ac_exeext conftest.$ac_ext
37367   #
37368   if test "$tst_links_strcasecmp" = "yes"; then
37369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37370 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37371     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37372 /* end confdefs.h.  */
37373
37374       $curl_includes_string
37375
37376 _ACEOF
37377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37378   $EGREP "strcasecmp" >/dev/null 2>&1; then :
37379
37380       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37381 $as_echo "yes" >&6; }
37382       tst_proto_strcasecmp="yes"
37383
37384 else
37385
37386       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37387 $as_echo "no" >&6; }
37388       tst_proto_strcasecmp="no"
37389
37390 fi
37391 rm -f conftest*
37392
37393   fi
37394   #
37395   if test "$tst_proto_strcasecmp" = "yes"; then
37396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37397 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
37398     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37399 /* end confdefs.h.  */
37400
37401
37402         $curl_includes_string
37403
37404 int main (void)
37405 {
37406
37407         if(0 != strcasecmp(0, 0))
37408           return 1;
37409
37410  ;
37411  return 0;
37412 }
37413
37414 _ACEOF
37415 if ac_fn_c_try_compile "$LINENO"; then :
37416
37417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37418 $as_echo "yes" >&6; }
37419       tst_compi_strcasecmp="yes"
37420
37421 else
37422
37423       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37424 $as_echo "no" >&6; }
37425       tst_compi_strcasecmp="no"
37426
37427 fi
37428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37429   fi
37430   #
37431   if test "$tst_compi_strcasecmp" = "yes"; then
37432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
37433 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
37434     if test "x$curl_disallow_strcasecmp" != "xyes"; then
37435       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37436 $as_echo "yes" >&6; }
37437       tst_allow_strcasecmp="yes"
37438     else
37439       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37440 $as_echo "no" >&6; }
37441       tst_allow_strcasecmp="no"
37442     fi
37443   fi
37444   #
37445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
37446 $as_echo_n "checking if strcasecmp might be used... " >&6; }
37447   if test "$tst_links_strcasecmp" = "yes" &&
37448      test "$tst_proto_strcasecmp" = "yes" &&
37449      test "$tst_compi_strcasecmp" = "yes" &&
37450      test "$tst_allow_strcasecmp" = "yes"; then
37451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37452 $as_echo "yes" >&6; }
37453
37454 cat >>confdefs.h <<_ACEOF
37455 #define HAVE_STRCASECMP 1
37456 _ACEOF
37457
37458     curl_cv_func_strcasecmp="yes"
37459   else
37460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37461 $as_echo "no" >&6; }
37462     curl_cv_func_strcasecmp="no"
37463   fi
37464
37465
37466     #
37467   tst_links_strcmpi="unknown"
37468   tst_proto_strcmpi="unknown"
37469   tst_compi_strcmpi="unknown"
37470   tst_allow_strcmpi="unknown"
37471   #
37472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
37473 $as_echo_n "checking if strcmpi can be linked... " >&6; }
37474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37475 /* end confdefs.h.  */
37476
37477
37478 #define strcmpi innocuous_strcmpi
37479 #ifdef __STDC__
37480 # include <limits.h>
37481 #else
37482 # include <assert.h>
37483 #endif
37484 #undef strcmpi
37485 #ifdef __cplusplus
37486 extern "C"
37487 #endif
37488 char strcmpi ();
37489 #if defined __stub_strcmpi || defined __stub___strcmpi
37490 choke me
37491 #endif
37492
37493 int main (void)
37494 {
37495 return strcmpi ();
37496  ;
37497  return 0;
37498 }
37499
37500 _ACEOF
37501 if ac_fn_c_try_link "$LINENO"; then :
37502
37503     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37504 $as_echo "yes" >&6; }
37505     tst_links_strcmpi="yes"
37506
37507 else
37508
37509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37510 $as_echo "no" >&6; }
37511     tst_links_strcmpi="no"
37512
37513 fi
37514 rm -f core conftest.err conftest.$ac_objext \
37515     conftest$ac_exeext conftest.$ac_ext
37516   #
37517   if test "$tst_links_strcmpi" = "yes"; then
37518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
37519 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
37520     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37521 /* end confdefs.h.  */
37522
37523       $curl_includes_string
37524
37525 _ACEOF
37526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37527   $EGREP "strcmpi" >/dev/null 2>&1; then :
37528
37529       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37530 $as_echo "yes" >&6; }
37531       tst_proto_strcmpi="yes"
37532
37533 else
37534
37535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37536 $as_echo "no" >&6; }
37537       tst_proto_strcmpi="no"
37538
37539 fi
37540 rm -f conftest*
37541
37542   fi
37543   #
37544   if test "$tst_proto_strcmpi" = "yes"; then
37545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
37546 $as_echo_n "checking if strcmpi is compilable... " >&6; }
37547     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37548 /* end confdefs.h.  */
37549
37550
37551         $curl_includes_string
37552
37553 int main (void)
37554 {
37555
37556         if(0 != strcmpi(0, 0))
37557           return 1;
37558
37559  ;
37560  return 0;
37561 }
37562
37563 _ACEOF
37564 if ac_fn_c_try_compile "$LINENO"; then :
37565
37566       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37567 $as_echo "yes" >&6; }
37568       tst_compi_strcmpi="yes"
37569
37570 else
37571
37572       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37573 $as_echo "no" >&6; }
37574       tst_compi_strcmpi="no"
37575
37576 fi
37577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37578   fi
37579   #
37580   if test "$tst_compi_strcmpi" = "yes"; then
37581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
37582 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
37583     if test "x$curl_disallow_strcmpi" != "xyes"; then
37584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37585 $as_echo "yes" >&6; }
37586       tst_allow_strcmpi="yes"
37587     else
37588       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37589 $as_echo "no" >&6; }
37590       tst_allow_strcmpi="no"
37591     fi
37592   fi
37593   #
37594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
37595 $as_echo_n "checking if strcmpi might be used... " >&6; }
37596   if test "$tst_links_strcmpi" = "yes" &&
37597      test "$tst_proto_strcmpi" = "yes" &&
37598      test "$tst_compi_strcmpi" = "yes" &&
37599      test "$tst_allow_strcmpi" = "yes"; then
37600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37601 $as_echo "yes" >&6; }
37602
37603 cat >>confdefs.h <<_ACEOF
37604 #define HAVE_STRCMPI 1
37605 _ACEOF
37606
37607     curl_cv_func_strcmpi="yes"
37608   else
37609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37610 $as_echo "no" >&6; }
37611     curl_cv_func_strcmpi="no"
37612   fi
37613
37614
37615     #
37616   tst_links_strdup="unknown"
37617   tst_proto_strdup="unknown"
37618   tst_compi_strdup="unknown"
37619   tst_allow_strdup="unknown"
37620   #
37621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
37622 $as_echo_n "checking if strdup can be linked... " >&6; }
37623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37624 /* end confdefs.h.  */
37625
37626
37627 #define strdup innocuous_strdup
37628 #ifdef __STDC__
37629 # include <limits.h>
37630 #else
37631 # include <assert.h>
37632 #endif
37633 #undef strdup
37634 #ifdef __cplusplus
37635 extern "C"
37636 #endif
37637 char strdup ();
37638 #if defined __stub_strdup || defined __stub___strdup
37639 choke me
37640 #endif
37641
37642 int main (void)
37643 {
37644 return strdup ();
37645  ;
37646  return 0;
37647 }
37648
37649 _ACEOF
37650 if ac_fn_c_try_link "$LINENO"; then :
37651
37652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37653 $as_echo "yes" >&6; }
37654     tst_links_strdup="yes"
37655
37656 else
37657
37658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37659 $as_echo "no" >&6; }
37660     tst_links_strdup="no"
37661
37662 fi
37663 rm -f core conftest.err conftest.$ac_objext \
37664     conftest$ac_exeext conftest.$ac_ext
37665   #
37666   if test "$tst_links_strdup" = "yes"; then
37667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
37668 $as_echo_n "checking if strdup is prototyped... " >&6; }
37669     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37670 /* end confdefs.h.  */
37671
37672       $curl_includes_string
37673
37674 _ACEOF
37675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37676   $EGREP "strdup" >/dev/null 2>&1; then :
37677
37678       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37679 $as_echo "yes" >&6; }
37680       tst_proto_strdup="yes"
37681
37682 else
37683
37684       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37685 $as_echo "no" >&6; }
37686       tst_proto_strdup="no"
37687
37688 fi
37689 rm -f conftest*
37690
37691   fi
37692   #
37693   if test "$tst_proto_strdup" = "yes"; then
37694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
37695 $as_echo_n "checking if strdup is compilable... " >&6; }
37696     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37697 /* end confdefs.h.  */
37698
37699
37700         $curl_includes_string
37701
37702 int main (void)
37703 {
37704
37705         if(0 != strdup(0))
37706           return 1;
37707
37708  ;
37709  return 0;
37710 }
37711
37712 _ACEOF
37713 if ac_fn_c_try_compile "$LINENO"; then :
37714
37715       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37716 $as_echo "yes" >&6; }
37717       tst_compi_strdup="yes"
37718
37719 else
37720
37721       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37722 $as_echo "no" >&6; }
37723       tst_compi_strdup="no"
37724
37725 fi
37726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37727   fi
37728   #
37729   if test "$tst_compi_strdup" = "yes"; then
37730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
37731 $as_echo_n "checking if strdup usage allowed... " >&6; }
37732     if test "x$curl_disallow_strdup" != "xyes"; then
37733       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37734 $as_echo "yes" >&6; }
37735       tst_allow_strdup="yes"
37736     else
37737       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37738 $as_echo "no" >&6; }
37739       tst_allow_strdup="no"
37740     fi
37741   fi
37742   #
37743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
37744 $as_echo_n "checking if strdup might be used... " >&6; }
37745   if test "$tst_links_strdup" = "yes" &&
37746      test "$tst_proto_strdup" = "yes" &&
37747      test "$tst_compi_strdup" = "yes" &&
37748      test "$tst_allow_strdup" = "yes"; then
37749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37750 $as_echo "yes" >&6; }
37751
37752 cat >>confdefs.h <<_ACEOF
37753 #define HAVE_STRDUP 1
37754 _ACEOF
37755
37756     curl_cv_func_strdup="yes"
37757   else
37758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37759 $as_echo "no" >&6; }
37760     curl_cv_func_strdup="no"
37761   fi
37762
37763
37764       #
37765   tst_links_strerror_r="unknown"
37766   tst_proto_strerror_r="unknown"
37767   tst_compi_strerror_r="unknown"
37768   tst_glibc_strerror_r="unknown"
37769   tst_posix_strerror_r="unknown"
37770   tst_allow_strerror_r="unknown"
37771   tst_works_glibc_strerror_r="unknown"
37772   tst_works_posix_strerror_r="unknown"
37773   tst_glibc_strerror_r_type_arg3="unknown"
37774   tst_posix_strerror_r_type_arg3="unknown"
37775   #
37776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
37777 $as_echo_n "checking if strerror_r can be linked... " >&6; }
37778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37779 /* end confdefs.h.  */
37780
37781
37782 #define strerror_r innocuous_strerror_r
37783 #ifdef __STDC__
37784 # include <limits.h>
37785 #else
37786 # include <assert.h>
37787 #endif
37788 #undef strerror_r
37789 #ifdef __cplusplus
37790 extern "C"
37791 #endif
37792 char strerror_r ();
37793 #if defined __stub_strerror_r || defined __stub___strerror_r
37794 choke me
37795 #endif
37796
37797 int main (void)
37798 {
37799 return strerror_r ();
37800  ;
37801  return 0;
37802 }
37803
37804 _ACEOF
37805 if ac_fn_c_try_link "$LINENO"; then :
37806
37807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37808 $as_echo "yes" >&6; }
37809     tst_links_strerror_r="yes"
37810
37811 else
37812
37813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37814 $as_echo "no" >&6; }
37815     tst_links_strerror_r="no"
37816
37817 fi
37818 rm -f core conftest.err conftest.$ac_objext \
37819     conftest$ac_exeext conftest.$ac_ext
37820   #
37821   if test "$tst_links_strerror_r" = "yes"; then
37822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
37823 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
37824     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37825 /* end confdefs.h.  */
37826
37827       $curl_includes_string
37828
37829 _ACEOF
37830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37831   $EGREP "strerror_r" >/dev/null 2>&1; then :
37832
37833       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37834 $as_echo "yes" >&6; }
37835       tst_proto_strerror_r="yes"
37836
37837 else
37838
37839       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37840 $as_echo "no" >&6; }
37841       tst_proto_strerror_r="no"
37842
37843 fi
37844 rm -f conftest*
37845
37846   fi
37847   #
37848   if test "$tst_proto_strerror_r" = "yes"; then
37849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
37850 $as_echo_n "checking if strerror_r is compilable... " >&6; }
37851     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37852 /* end confdefs.h.  */
37853
37854
37855         $curl_includes_string
37856
37857 int main (void)
37858 {
37859
37860         if(0 != strerror_r(0, 0, 0))
37861           return 1;
37862
37863  ;
37864  return 0;
37865 }
37866
37867 _ACEOF
37868 if ac_fn_c_try_compile "$LINENO"; then :
37869
37870       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37871 $as_echo "yes" >&6; }
37872       tst_compi_strerror_r="yes"
37873
37874 else
37875
37876       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37877 $as_echo "no" >&6; }
37878       tst_compi_strerror_r="no"
37879
37880 fi
37881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37882   fi
37883   #
37884   if test "$tst_compi_strerror_r" = "yes"; then
37885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
37886 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
37887     tst_glibc_strerror_r_type_arg3="unknown"
37888     for arg3 in 'size_t' 'int' 'unsigned int'; do
37889       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
37890         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37891 /* end confdefs.h.  */
37892
37893
37894             $curl_includes_string
37895             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
37896
37897 int main (void)
37898 {
37899
37900             if(0 != strerror_r(0, 0, 0))
37901               return 1;
37902
37903  ;
37904  return 0;
37905 }
37906
37907 _ACEOF
37908 if ac_fn_c_try_compile "$LINENO"; then :
37909
37910           tst_glibc_strerror_r_type_arg3="$arg3"
37911
37912 fi
37913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37914       fi
37915     done
37916     case "$tst_glibc_strerror_r_type_arg3" in
37917       unknown)
37918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37919 $as_echo "no" >&6; }
37920         tst_glibc_strerror_r="no"
37921         ;;
37922       *)
37923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37924 $as_echo "yes" >&6; }
37925         tst_glibc_strerror_r="yes"
37926         ;;
37927     esac
37928   fi
37929   #
37930     if test "x$cross_compiling" != "xyes" &&
37931     test "$tst_glibc_strerror_r" = "yes"; then
37932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
37933 $as_echo_n "checking if strerror_r seems to work... " >&6; }
37934     if test "$cross_compiling" = yes; then :
37935   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37937 as_fn_error $? "cannot run test program while cross compiling
37938 See \`config.log' for more details" "$LINENO" 5; }
37939 else
37940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37941 /* end confdefs.h.  */
37942
37943
37944         $curl_includes_stdlib
37945         $curl_includes_string
37946 #       include <errno.h>
37947
37948 int main (void)
37949 {
37950
37951         char buffer[1024];
37952         char *string = 0;
37953         buffer[0] = '\0';
37954         string = strerror_r(EACCES, buffer, sizeof(buffer));
37955         if(!string)
37956           exit(1); /* fail */
37957         if(!string[0])
37958           exit(1); /* fail */
37959         else
37960           exit(0);
37961
37962  ;
37963  return 0;
37964 }
37965
37966 _ACEOF
37967 if ac_fn_c_try_run "$LINENO"; then :
37968
37969       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37970 $as_echo "yes" >&6; }
37971       tst_works_glibc_strerror_r="yes"
37972
37973 else
37974
37975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37976 $as_echo "no" >&6; }
37977       tst_works_glibc_strerror_r="no"
37978
37979 fi
37980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37981   conftest.$ac_objext conftest.beam conftest.$ac_ext
37982 fi
37983
37984   fi
37985   #
37986   if test "$tst_compi_strerror_r" = "yes" &&
37987     test "$tst_works_glibc_strerror_r" != "yes"; then
37988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
37989 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
37990     tst_posix_strerror_r_type_arg3="unknown"
37991     for arg3 in 'size_t' 'int' 'unsigned int'; do
37992       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
37993         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37994 /* end confdefs.h.  */
37995
37996
37997             $curl_includes_string
37998             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
37999
38000 int main (void)
38001 {
38002
38003             if(0 != strerror_r(0, 0, 0))
38004               return 1;
38005
38006  ;
38007  return 0;
38008 }
38009
38010 _ACEOF
38011 if ac_fn_c_try_compile "$LINENO"; then :
38012
38013           tst_posix_strerror_r_type_arg3="$arg3"
38014
38015 fi
38016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38017       fi
38018     done
38019     case "$tst_posix_strerror_r_type_arg3" in
38020       unknown)
38021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38022 $as_echo "no" >&6; }
38023         tst_posix_strerror_r="no"
38024         ;;
38025       *)
38026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38027 $as_echo "yes" >&6; }
38028         tst_posix_strerror_r="yes"
38029         ;;
38030     esac
38031   fi
38032   #
38033     if test "x$cross_compiling" != "xyes" &&
38034     test "$tst_posix_strerror_r" = "yes"; then
38035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38036 $as_echo_n "checking if strerror_r seems to work... " >&6; }
38037     if test "$cross_compiling" = yes; then :
38038   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38040 as_fn_error $? "cannot run test program while cross compiling
38041 See \`config.log' for more details" "$LINENO" 5; }
38042 else
38043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38044 /* end confdefs.h.  */
38045
38046
38047         $curl_includes_stdlib
38048         $curl_includes_string
38049 #       include <errno.h>
38050
38051 int main (void)
38052 {
38053
38054         char buffer[1024];
38055         int error = 1;
38056         buffer[0] = '\0';
38057         error = strerror_r(EACCES, buffer, sizeof(buffer));
38058         if(error)
38059           exit(1); /* fail */
38060         if(buffer[0] == '\0')
38061           exit(1); /* fail */
38062         else
38063           exit(0);
38064
38065  ;
38066  return 0;
38067 }
38068
38069 _ACEOF
38070 if ac_fn_c_try_run "$LINENO"; then :
38071
38072       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38073 $as_echo "yes" >&6; }
38074       tst_works_posix_strerror_r="yes"
38075
38076 else
38077
38078       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38079 $as_echo "no" >&6; }
38080       tst_works_posix_strerror_r="no"
38081
38082 fi
38083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38084   conftest.$ac_objext conftest.beam conftest.$ac_ext
38085 fi
38086
38087   fi
38088   #
38089   if test "$tst_works_glibc_strerror_r" = "yes"; then
38090     tst_posix_strerror_r="no"
38091   fi
38092   if test "$tst_works_posix_strerror_r" = "yes"; then
38093     tst_glibc_strerror_r="no"
38094   fi
38095   if test "$tst_glibc_strerror_r" = "yes" &&
38096     test "$tst_works_glibc_strerror_r" != "no" &&
38097     test "$tst_posix_strerror_r" != "yes"; then
38098     tst_allow_strerror_r="check"
38099   fi
38100   if test "$tst_posix_strerror_r" = "yes" &&
38101     test "$tst_works_posix_strerror_r" != "no" &&
38102     test "$tst_glibc_strerror_r" != "yes"; then
38103     tst_allow_strerror_r="check"
38104   fi
38105   if test "$tst_allow_strerror_r" = "check"; then
38106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38107 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
38108     if test "x$curl_disallow_strerror_r" != "xyes"; then
38109       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38110 $as_echo "yes" >&6; }
38111       tst_allow_strerror_r="yes"
38112     else
38113       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38114 $as_echo "no" >&6; }
38115       tst_allow_strerror_r="no"
38116     fi
38117   fi
38118   #
38119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38120 $as_echo_n "checking if strerror_r might be used... " >&6; }
38121   if test "$tst_links_strerror_r" = "yes" &&
38122      test "$tst_proto_strerror_r" = "yes" &&
38123      test "$tst_compi_strerror_r" = "yes" &&
38124      test "$tst_allow_strerror_r" = "yes"; then
38125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38126 $as_echo "yes" >&6; }
38127     if test "$tst_glibc_strerror_r" = "yes"; then
38128
38129 cat >>confdefs.h <<_ACEOF
38130 #define HAVE_STRERROR_R 1
38131 _ACEOF
38132
38133
38134 cat >>confdefs.h <<_ACEOF
38135 #define HAVE_GLIBC_STRERROR_R 1
38136 _ACEOF
38137
38138
38139 cat >>confdefs.h <<_ACEOF
38140 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38141 _ACEOF
38142
38143     fi
38144     if test "$tst_posix_strerror_r" = "yes"; then
38145
38146 cat >>confdefs.h <<_ACEOF
38147 #define HAVE_STRERROR_R 1
38148 _ACEOF
38149
38150
38151 cat >>confdefs.h <<_ACEOF
38152 #define HAVE_POSIX_STRERROR_R 1
38153 _ACEOF
38154
38155
38156 cat >>confdefs.h <<_ACEOF
38157 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38158 _ACEOF
38159
38160     fi
38161     curl_cv_func_strerror_r="yes"
38162   else
38163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38164 $as_echo "no" >&6; }
38165     curl_cv_func_strerror_r="no"
38166   fi
38167   #
38168   if test "$tst_compi_strerror_r" = "yes" &&
38169      test "$tst_allow_strerror_r" = "unknown"; then
38170     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38171 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38172   fi
38173   #
38174
38175
38176     #
38177   tst_links_stricmp="unknown"
38178   tst_proto_stricmp="unknown"
38179   tst_compi_stricmp="unknown"
38180   tst_allow_stricmp="unknown"
38181   #
38182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38183 $as_echo_n "checking if stricmp can be linked... " >&6; }
38184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38185 /* end confdefs.h.  */
38186
38187
38188 #define stricmp innocuous_stricmp
38189 #ifdef __STDC__
38190 # include <limits.h>
38191 #else
38192 # include <assert.h>
38193 #endif
38194 #undef stricmp
38195 #ifdef __cplusplus
38196 extern "C"
38197 #endif
38198 char stricmp ();
38199 #if defined __stub_stricmp || defined __stub___stricmp
38200 choke me
38201 #endif
38202
38203 int main (void)
38204 {
38205 return stricmp ();
38206  ;
38207  return 0;
38208 }
38209
38210 _ACEOF
38211 if ac_fn_c_try_link "$LINENO"; then :
38212
38213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38214 $as_echo "yes" >&6; }
38215     tst_links_stricmp="yes"
38216
38217 else
38218
38219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38220 $as_echo "no" >&6; }
38221     tst_links_stricmp="no"
38222
38223 fi
38224 rm -f core conftest.err conftest.$ac_objext \
38225     conftest$ac_exeext conftest.$ac_ext
38226   #
38227   if test "$tst_links_stricmp" = "yes"; then
38228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38229 $as_echo_n "checking if stricmp is prototyped... " >&6; }
38230     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38231 /* end confdefs.h.  */
38232
38233       $curl_includes_string
38234
38235 _ACEOF
38236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38237   $EGREP "stricmp" >/dev/null 2>&1; then :
38238
38239       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38240 $as_echo "yes" >&6; }
38241       tst_proto_stricmp="yes"
38242
38243 else
38244
38245       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38246 $as_echo "no" >&6; }
38247       tst_proto_stricmp="no"
38248
38249 fi
38250 rm -f conftest*
38251
38252   fi
38253   #
38254   if test "$tst_proto_stricmp" = "yes"; then
38255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38256 $as_echo_n "checking if stricmp is compilable... " >&6; }
38257     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38258 /* end confdefs.h.  */
38259
38260
38261         $curl_includes_string
38262
38263 int main (void)
38264 {
38265
38266         if(0 != stricmp(0, 0))
38267           return 1;
38268
38269  ;
38270  return 0;
38271 }
38272
38273 _ACEOF
38274 if ac_fn_c_try_compile "$LINENO"; then :
38275
38276       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38277 $as_echo "yes" >&6; }
38278       tst_compi_stricmp="yes"
38279
38280 else
38281
38282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38283 $as_echo "no" >&6; }
38284       tst_compi_stricmp="no"
38285
38286 fi
38287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38288   fi
38289   #
38290   if test "$tst_compi_stricmp" = "yes"; then
38291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38292 $as_echo_n "checking if stricmp usage allowed... " >&6; }
38293     if test "x$curl_disallow_stricmp" != "xyes"; then
38294       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38295 $as_echo "yes" >&6; }
38296       tst_allow_stricmp="yes"
38297     else
38298       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38299 $as_echo "no" >&6; }
38300       tst_allow_stricmp="no"
38301     fi
38302   fi
38303   #
38304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38305 $as_echo_n "checking if stricmp might be used... " >&6; }
38306   if test "$tst_links_stricmp" = "yes" &&
38307      test "$tst_proto_stricmp" = "yes" &&
38308      test "$tst_compi_stricmp" = "yes" &&
38309      test "$tst_allow_stricmp" = "yes"; then
38310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38311 $as_echo "yes" >&6; }
38312
38313 cat >>confdefs.h <<_ACEOF
38314 #define HAVE_STRICMP 1
38315 _ACEOF
38316
38317     curl_cv_func_stricmp="yes"
38318   else
38319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38320 $as_echo "no" >&6; }
38321     curl_cv_func_stricmp="no"
38322   fi
38323
38324
38325     #
38326   tst_links_strncasecmp="unknown"
38327   tst_proto_strncasecmp="unknown"
38328   tst_compi_strncasecmp="unknown"
38329   tst_allow_strncasecmp="unknown"
38330   #
38331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38332 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
38333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38334 /* end confdefs.h.  */
38335
38336
38337 #define strncasecmp innocuous_strncasecmp
38338 #ifdef __STDC__
38339 # include <limits.h>
38340 #else
38341 # include <assert.h>
38342 #endif
38343 #undef strncasecmp
38344 #ifdef __cplusplus
38345 extern "C"
38346 #endif
38347 char strncasecmp ();
38348 #if defined __stub_strncasecmp || defined __stub___strncasecmp
38349 choke me
38350 #endif
38351
38352 int main (void)
38353 {
38354 return strncasecmp ();
38355  ;
38356  return 0;
38357 }
38358
38359 _ACEOF
38360 if ac_fn_c_try_link "$LINENO"; then :
38361
38362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38363 $as_echo "yes" >&6; }
38364     tst_links_strncasecmp="yes"
38365
38366 else
38367
38368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38369 $as_echo "no" >&6; }
38370     tst_links_strncasecmp="no"
38371
38372 fi
38373 rm -f core conftest.err conftest.$ac_objext \
38374     conftest$ac_exeext conftest.$ac_ext
38375   #
38376   if test "$tst_links_strncasecmp" = "yes"; then
38377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38378 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38380 /* end confdefs.h.  */
38381
38382       $curl_includes_string
38383
38384 _ACEOF
38385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38386   $EGREP "strncasecmp" >/dev/null 2>&1; then :
38387
38388       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38389 $as_echo "yes" >&6; }
38390       tst_proto_strncasecmp="yes"
38391
38392 else
38393
38394       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38395 $as_echo "no" >&6; }
38396       tst_proto_strncasecmp="no"
38397
38398 fi
38399 rm -f conftest*
38400
38401   fi
38402   #
38403   if test "$tst_proto_strncasecmp" = "yes"; then
38404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38405 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
38406     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38407 /* end confdefs.h.  */
38408
38409
38410         $curl_includes_string
38411
38412 int main (void)
38413 {
38414
38415         if(0 != strncasecmp(0, 0, 0))
38416           return 1;
38417
38418  ;
38419  return 0;
38420 }
38421
38422 _ACEOF
38423 if ac_fn_c_try_compile "$LINENO"; then :
38424
38425       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38426 $as_echo "yes" >&6; }
38427       tst_compi_strncasecmp="yes"
38428
38429 else
38430
38431       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38432 $as_echo "no" >&6; }
38433       tst_compi_strncasecmp="no"
38434
38435 fi
38436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38437   fi
38438   #
38439   if test "$tst_compi_strncasecmp" = "yes"; then
38440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
38441 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
38442     if test "x$curl_disallow_strncasecmp" != "xyes"; then
38443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38444 $as_echo "yes" >&6; }
38445       tst_allow_strncasecmp="yes"
38446     else
38447       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38448 $as_echo "no" >&6; }
38449       tst_allow_strncasecmp="no"
38450     fi
38451   fi
38452   #
38453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
38454 $as_echo_n "checking if strncasecmp might be used... " >&6; }
38455   if test "$tst_links_strncasecmp" = "yes" &&
38456      test "$tst_proto_strncasecmp" = "yes" &&
38457      test "$tst_compi_strncasecmp" = "yes" &&
38458      test "$tst_allow_strncasecmp" = "yes"; then
38459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38460 $as_echo "yes" >&6; }
38461
38462 cat >>confdefs.h <<_ACEOF
38463 #define HAVE_STRNCASECMP 1
38464 _ACEOF
38465
38466     curl_cv_func_strncasecmp="yes"
38467   else
38468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38469 $as_echo "no" >&6; }
38470     curl_cv_func_strncasecmp="no"
38471   fi
38472
38473
38474     #
38475   tst_links_strncmpi="unknown"
38476   tst_proto_strncmpi="unknown"
38477   tst_compi_strncmpi="unknown"
38478   tst_allow_strncmpi="unknown"
38479   #
38480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
38481 $as_echo_n "checking if strncmpi can be linked... " >&6; }
38482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38483 /* end confdefs.h.  */
38484
38485
38486 #define strncmpi innocuous_strncmpi
38487 #ifdef __STDC__
38488 # include <limits.h>
38489 #else
38490 # include <assert.h>
38491 #endif
38492 #undef strncmpi
38493 #ifdef __cplusplus
38494 extern "C"
38495 #endif
38496 char strncmpi ();
38497 #if defined __stub_strncmpi || defined __stub___strncmpi
38498 choke me
38499 #endif
38500
38501 int main (void)
38502 {
38503 return strncmpi ();
38504  ;
38505  return 0;
38506 }
38507
38508 _ACEOF
38509 if ac_fn_c_try_link "$LINENO"; then :
38510
38511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38512 $as_echo "yes" >&6; }
38513     tst_links_strncmpi="yes"
38514
38515 else
38516
38517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38518 $as_echo "no" >&6; }
38519     tst_links_strncmpi="no"
38520
38521 fi
38522 rm -f core conftest.err conftest.$ac_objext \
38523     conftest$ac_exeext conftest.$ac_ext
38524   #
38525   if test "$tst_links_strncmpi" = "yes"; then
38526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
38527 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
38528     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38529 /* end confdefs.h.  */
38530
38531       $curl_includes_string
38532
38533 _ACEOF
38534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38535   $EGREP "strncmpi" >/dev/null 2>&1; then :
38536
38537       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38538 $as_echo "yes" >&6; }
38539       tst_proto_strncmpi="yes"
38540
38541 else
38542
38543       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38544 $as_echo "no" >&6; }
38545       tst_proto_strncmpi="no"
38546
38547 fi
38548 rm -f conftest*
38549
38550   fi
38551   #
38552   if test "$tst_proto_strncmpi" = "yes"; then
38553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
38554 $as_echo_n "checking if strncmpi is compilable... " >&6; }
38555     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38556 /* end confdefs.h.  */
38557
38558
38559         $curl_includes_string
38560
38561 int main (void)
38562 {
38563
38564         if(0 != strncmpi(0, 0))
38565           return 1;
38566
38567  ;
38568  return 0;
38569 }
38570
38571 _ACEOF
38572 if ac_fn_c_try_compile "$LINENO"; then :
38573
38574       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38575 $as_echo "yes" >&6; }
38576       tst_compi_strncmpi="yes"
38577
38578 else
38579
38580       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38581 $as_echo "no" >&6; }
38582       tst_compi_strncmpi="no"
38583
38584 fi
38585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38586   fi
38587   #
38588   if test "$tst_compi_strncmpi" = "yes"; then
38589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
38590 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
38591     if test "x$curl_disallow_strncmpi" != "xyes"; then
38592       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38593 $as_echo "yes" >&6; }
38594       tst_allow_strncmpi="yes"
38595     else
38596       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38597 $as_echo "no" >&6; }
38598       tst_allow_strncmpi="no"
38599     fi
38600   fi
38601   #
38602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
38603 $as_echo_n "checking if strncmpi might be used... " >&6; }
38604   if test "$tst_links_strncmpi" = "yes" &&
38605      test "$tst_proto_strncmpi" = "yes" &&
38606      test "$tst_compi_strncmpi" = "yes" &&
38607      test "$tst_allow_strncmpi" = "yes"; then
38608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38609 $as_echo "yes" >&6; }
38610
38611 cat >>confdefs.h <<_ACEOF
38612 #define HAVE_STRNCMPI 1
38613 _ACEOF
38614
38615     curl_cv_func_strncmpi="yes"
38616   else
38617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38618 $as_echo "no" >&6; }
38619     curl_cv_func_strncmpi="no"
38620   fi
38621
38622
38623     #
38624   tst_links_strnicmp="unknown"
38625   tst_proto_strnicmp="unknown"
38626   tst_compi_strnicmp="unknown"
38627   tst_allow_strnicmp="unknown"
38628   #
38629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
38630 $as_echo_n "checking if strnicmp can be linked... " >&6; }
38631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38632 /* end confdefs.h.  */
38633
38634
38635 #define strnicmp innocuous_strnicmp
38636 #ifdef __STDC__
38637 # include <limits.h>
38638 #else
38639 # include <assert.h>
38640 #endif
38641 #undef strnicmp
38642 #ifdef __cplusplus
38643 extern "C"
38644 #endif
38645 char strnicmp ();
38646 #if defined __stub_strnicmp || defined __stub___strnicmp
38647 choke me
38648 #endif
38649
38650 int main (void)
38651 {
38652 return strnicmp ();
38653  ;
38654  return 0;
38655 }
38656
38657 _ACEOF
38658 if ac_fn_c_try_link "$LINENO"; then :
38659
38660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38661 $as_echo "yes" >&6; }
38662     tst_links_strnicmp="yes"
38663
38664 else
38665
38666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38667 $as_echo "no" >&6; }
38668     tst_links_strnicmp="no"
38669
38670 fi
38671 rm -f core conftest.err conftest.$ac_objext \
38672     conftest$ac_exeext conftest.$ac_ext
38673   #
38674   if test "$tst_links_strnicmp" = "yes"; then
38675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
38676 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
38677     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38678 /* end confdefs.h.  */
38679
38680       $curl_includes_string
38681
38682 _ACEOF
38683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38684   $EGREP "strnicmp" >/dev/null 2>&1; then :
38685
38686       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38687 $as_echo "yes" >&6; }
38688       tst_proto_strnicmp="yes"
38689
38690 else
38691
38692       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38693 $as_echo "no" >&6; }
38694       tst_proto_strnicmp="no"
38695
38696 fi
38697 rm -f conftest*
38698
38699   fi
38700   #
38701   if test "$tst_proto_strnicmp" = "yes"; then
38702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
38703 $as_echo_n "checking if strnicmp is compilable... " >&6; }
38704     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38705 /* end confdefs.h.  */
38706
38707
38708         $curl_includes_string
38709
38710 int main (void)
38711 {
38712
38713         if(0 != strnicmp(0, 0))
38714           return 1;
38715
38716  ;
38717  return 0;
38718 }
38719
38720 _ACEOF
38721 if ac_fn_c_try_compile "$LINENO"; then :
38722
38723       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38724 $as_echo "yes" >&6; }
38725       tst_compi_strnicmp="yes"
38726
38727 else
38728
38729       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38730 $as_echo "no" >&6; }
38731       tst_compi_strnicmp="no"
38732
38733 fi
38734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38735   fi
38736   #
38737   if test "$tst_compi_strnicmp" = "yes"; then
38738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
38739 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
38740     if test "x$curl_disallow_strnicmp" != "xyes"; then
38741       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38742 $as_echo "yes" >&6; }
38743       tst_allow_strnicmp="yes"
38744     else
38745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38746 $as_echo "no" >&6; }
38747       tst_allow_strnicmp="no"
38748     fi
38749   fi
38750   #
38751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
38752 $as_echo_n "checking if strnicmp might be used... " >&6; }
38753   if test "$tst_links_strnicmp" = "yes" &&
38754      test "$tst_proto_strnicmp" = "yes" &&
38755      test "$tst_compi_strnicmp" = "yes" &&
38756      test "$tst_allow_strnicmp" = "yes"; then
38757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38758 $as_echo "yes" >&6; }
38759
38760 cat >>confdefs.h <<_ACEOF
38761 #define HAVE_STRNICMP 1
38762 _ACEOF
38763
38764     curl_cv_func_strnicmp="yes"
38765   else
38766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38767 $as_echo "no" >&6; }
38768     curl_cv_func_strnicmp="no"
38769   fi
38770
38771
38772     #
38773   tst_links_strstr="unknown"
38774   tst_proto_strstr="unknown"
38775   tst_compi_strstr="unknown"
38776   tst_allow_strstr="unknown"
38777   #
38778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
38779 $as_echo_n "checking if strstr can be linked... " >&6; }
38780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38781 /* end confdefs.h.  */
38782
38783
38784 #define strstr innocuous_strstr
38785 #ifdef __STDC__
38786 # include <limits.h>
38787 #else
38788 # include <assert.h>
38789 #endif
38790 #undef strstr
38791 #ifdef __cplusplus
38792 extern "C"
38793 #endif
38794 char strstr ();
38795 #if defined __stub_strstr || defined __stub___strstr
38796 choke me
38797 #endif
38798
38799 int main (void)
38800 {
38801 return strstr ();
38802  ;
38803  return 0;
38804 }
38805
38806 _ACEOF
38807 if ac_fn_c_try_link "$LINENO"; then :
38808
38809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38810 $as_echo "yes" >&6; }
38811     tst_links_strstr="yes"
38812
38813 else
38814
38815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38816 $as_echo "no" >&6; }
38817     tst_links_strstr="no"
38818
38819 fi
38820 rm -f core conftest.err conftest.$ac_objext \
38821     conftest$ac_exeext conftest.$ac_ext
38822   #
38823   if test "$tst_links_strstr" = "yes"; then
38824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
38825 $as_echo_n "checking if strstr is prototyped... " >&6; }
38826     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38827 /* end confdefs.h.  */
38828
38829       $curl_includes_string
38830
38831 _ACEOF
38832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38833   $EGREP "strstr" >/dev/null 2>&1; then :
38834
38835       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38836 $as_echo "yes" >&6; }
38837       tst_proto_strstr="yes"
38838
38839 else
38840
38841       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38842 $as_echo "no" >&6; }
38843       tst_proto_strstr="no"
38844
38845 fi
38846 rm -f conftest*
38847
38848   fi
38849   #
38850   if test "$tst_proto_strstr" = "yes"; then
38851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
38852 $as_echo_n "checking if strstr is compilable... " >&6; }
38853     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38854 /* end confdefs.h.  */
38855
38856
38857         $curl_includes_string
38858
38859 int main (void)
38860 {
38861
38862         if(0 != strstr(0, 0))
38863           return 1;
38864
38865  ;
38866  return 0;
38867 }
38868
38869 _ACEOF
38870 if ac_fn_c_try_compile "$LINENO"; then :
38871
38872       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38873 $as_echo "yes" >&6; }
38874       tst_compi_strstr="yes"
38875
38876 else
38877
38878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38879 $as_echo "no" >&6; }
38880       tst_compi_strstr="no"
38881
38882 fi
38883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38884   fi
38885   #
38886   if test "$tst_compi_strstr" = "yes"; then
38887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
38888 $as_echo_n "checking if strstr usage allowed... " >&6; }
38889     if test "x$curl_disallow_strstr" != "xyes"; then
38890       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38891 $as_echo "yes" >&6; }
38892       tst_allow_strstr="yes"
38893     else
38894       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38895 $as_echo "no" >&6; }
38896       tst_allow_strstr="no"
38897     fi
38898   fi
38899   #
38900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
38901 $as_echo_n "checking if strstr might be used... " >&6; }
38902   if test "$tst_links_strstr" = "yes" &&
38903      test "$tst_proto_strstr" = "yes" &&
38904      test "$tst_compi_strstr" = "yes" &&
38905      test "$tst_allow_strstr" = "yes"; then
38906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38907 $as_echo "yes" >&6; }
38908
38909 cat >>confdefs.h <<_ACEOF
38910 #define HAVE_STRSTR 1
38911 _ACEOF
38912
38913     curl_cv_func_strstr="yes"
38914   else
38915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38916 $as_echo "no" >&6; }
38917     curl_cv_func_strstr="no"
38918   fi
38919
38920
38921     #
38922   tst_links_strtok_r="unknown"
38923   tst_proto_strtok_r="unknown"
38924   tst_compi_strtok_r="unknown"
38925   tst_allow_strtok_r="unknown"
38926   #
38927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
38928 $as_echo_n "checking if strtok_r can be linked... " >&6; }
38929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38930 /* end confdefs.h.  */
38931
38932
38933 #define strtok_r innocuous_strtok_r
38934 #ifdef __STDC__
38935 # include <limits.h>
38936 #else
38937 # include <assert.h>
38938 #endif
38939 #undef strtok_r
38940 #ifdef __cplusplus
38941 extern "C"
38942 #endif
38943 char strtok_r ();
38944 #if defined __stub_strtok_r || defined __stub___strtok_r
38945 choke me
38946 #endif
38947
38948 int main (void)
38949 {
38950 return strtok_r ();
38951  ;
38952  return 0;
38953 }
38954
38955 _ACEOF
38956 if ac_fn_c_try_link "$LINENO"; then :
38957
38958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38959 $as_echo "yes" >&6; }
38960     tst_links_strtok_r="yes"
38961
38962 else
38963
38964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38965 $as_echo "no" >&6; }
38966     tst_links_strtok_r="no"
38967
38968 fi
38969 rm -f core conftest.err conftest.$ac_objext \
38970     conftest$ac_exeext conftest.$ac_ext
38971   #
38972   if test "$tst_links_strtok_r" = "yes"; then
38973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
38974 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
38975     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38976 /* end confdefs.h.  */
38977
38978       $curl_includes_string
38979
38980 _ACEOF
38981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38982   $EGREP "strtok_r" >/dev/null 2>&1; then :
38983
38984       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38985 $as_echo "yes" >&6; }
38986       tst_proto_strtok_r="yes"
38987
38988 else
38989
38990       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38991 $as_echo "no" >&6; }
38992       tst_proto_strtok_r="no"
38993
38994 fi
38995 rm -f conftest*
38996
38997   fi
38998   #
38999   if test "$tst_proto_strtok_r" = "yes"; then
39000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39001 $as_echo_n "checking if strtok_r is compilable... " >&6; }
39002     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39003 /* end confdefs.h.  */
39004
39005
39006         $curl_includes_string
39007
39008 int main (void)
39009 {
39010
39011         if(0 != strtok_r(0, 0, 0))
39012           return 1;
39013
39014  ;
39015  return 0;
39016 }
39017
39018 _ACEOF
39019 if ac_fn_c_try_compile "$LINENO"; then :
39020
39021       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39022 $as_echo "yes" >&6; }
39023       tst_compi_strtok_r="yes"
39024
39025 else
39026
39027       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39028 $as_echo "no" >&6; }
39029       tst_compi_strtok_r="no"
39030
39031 fi
39032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39033   fi
39034   #
39035   if test "$tst_compi_strtok_r" = "yes"; then
39036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39037 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
39038     if test "x$curl_disallow_strtok_r" != "xyes"; then
39039       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39040 $as_echo "yes" >&6; }
39041       tst_allow_strtok_r="yes"
39042     else
39043       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39044 $as_echo "no" >&6; }
39045       tst_allow_strtok_r="no"
39046     fi
39047   fi
39048   #
39049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39050 $as_echo_n "checking if strtok_r might be used... " >&6; }
39051   if test "$tst_links_strtok_r" = "yes" &&
39052      test "$tst_proto_strtok_r" = "yes" &&
39053      test "$tst_compi_strtok_r" = "yes" &&
39054      test "$tst_allow_strtok_r" = "yes"; then
39055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39056 $as_echo "yes" >&6; }
39057
39058 cat >>confdefs.h <<_ACEOF
39059 #define HAVE_STRTOK_R 1
39060 _ACEOF
39061
39062     curl_cv_func_strtok_r="yes"
39063   else
39064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39065 $as_echo "no" >&6; }
39066     curl_cv_func_strtok_r="no"
39067   fi
39068
39069
39070     #
39071   tst_links_strtoll="unknown"
39072   tst_proto_strtoll="unknown"
39073   tst_compi_strtoll="unknown"
39074   tst_allow_strtoll="unknown"
39075   #
39076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39077 $as_echo_n "checking if strtoll can be linked... " >&6; }
39078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39079 /* end confdefs.h.  */
39080
39081
39082 #define strtoll innocuous_strtoll
39083 #ifdef __STDC__
39084 # include <limits.h>
39085 #else
39086 # include <assert.h>
39087 #endif
39088 #undef strtoll
39089 #ifdef __cplusplus
39090 extern "C"
39091 #endif
39092 char strtoll ();
39093 #if defined __stub_strtoll || defined __stub___strtoll
39094 choke me
39095 #endif
39096
39097 int main (void)
39098 {
39099 return strtoll ();
39100  ;
39101  return 0;
39102 }
39103
39104 _ACEOF
39105 if ac_fn_c_try_link "$LINENO"; then :
39106
39107     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39108 $as_echo "yes" >&6; }
39109     tst_links_strtoll="yes"
39110
39111 else
39112
39113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39114 $as_echo "no" >&6; }
39115     tst_links_strtoll="no"
39116
39117 fi
39118 rm -f core conftest.err conftest.$ac_objext \
39119     conftest$ac_exeext conftest.$ac_ext
39120   #
39121   if test "$tst_links_strtoll" = "yes"; then
39122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39123 $as_echo_n "checking if strtoll is prototyped... " >&6; }
39124     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39125 /* end confdefs.h.  */
39126
39127       $curl_includes_stdlib
39128
39129 _ACEOF
39130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39131   $EGREP "strtoll" >/dev/null 2>&1; then :
39132
39133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39134 $as_echo "yes" >&6; }
39135       tst_proto_strtoll="yes"
39136
39137 else
39138
39139       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39140 $as_echo "no" >&6; }
39141       tst_proto_strtoll="no"
39142
39143 fi
39144 rm -f conftest*
39145
39146   fi
39147   #
39148   if test "$tst_proto_strtoll" = "yes"; then
39149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39150 $as_echo_n "checking if strtoll is compilable... " >&6; }
39151     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39152 /* end confdefs.h.  */
39153
39154
39155         $curl_includes_stdlib
39156
39157 int main (void)
39158 {
39159
39160         if(0 != strtoll(0, 0, 0))
39161           return 1;
39162
39163  ;
39164  return 0;
39165 }
39166
39167 _ACEOF
39168 if ac_fn_c_try_compile "$LINENO"; then :
39169
39170       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39171 $as_echo "yes" >&6; }
39172       tst_compi_strtoll="yes"
39173
39174 else
39175
39176       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39177 $as_echo "no" >&6; }
39178       tst_compi_strtoll="no"
39179
39180 fi
39181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39182   fi
39183   #
39184   if test "$tst_compi_strtoll" = "yes"; then
39185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39186 $as_echo_n "checking if strtoll usage allowed... " >&6; }
39187     if test "x$curl_disallow_strtoll" != "xyes"; then
39188       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39189 $as_echo "yes" >&6; }
39190       tst_allow_strtoll="yes"
39191     else
39192       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39193 $as_echo "no" >&6; }
39194       tst_allow_strtoll="no"
39195     fi
39196   fi
39197   #
39198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39199 $as_echo_n "checking if strtoll might be used... " >&6; }
39200   if test "$tst_links_strtoll" = "yes" &&
39201      test "$tst_proto_strtoll" = "yes" &&
39202      test "$tst_compi_strtoll" = "yes" &&
39203      test "$tst_allow_strtoll" = "yes"; then
39204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39205 $as_echo "yes" >&6; }
39206
39207 cat >>confdefs.h <<_ACEOF
39208 #define HAVE_STRTOLL 1
39209 _ACEOF
39210
39211     curl_cv_func_strtoll="yes"
39212   else
39213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39214 $as_echo "no" >&6; }
39215     curl_cv_func_strtoll="no"
39216   fi
39217
39218
39219 curl_includes_sys_uio="\
39220 /* includes start */
39221 #ifdef HAVE_SYS_TYPES_H
39222 #  include <sys/types.h>
39223 #endif
39224 #ifdef HAVE_SYS_UIO_H
39225 #  include <sys/uio.h>
39226 #endif
39227 /* includes end */"
39228   for ac_header in sys/types.h sys/uio.h
39229 do :
39230   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39231 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39232 "
39233 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39234   cat >>confdefs.h <<_ACEOF
39235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39236 _ACEOF
39237
39238 fi
39239
39240 done
39241
39242
39243
39244     #
39245   tst_links_writev="unknown"
39246   tst_proto_writev="unknown"
39247   tst_compi_writev="unknown"
39248   tst_allow_writev="unknown"
39249   #
39250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39251 $as_echo_n "checking if writev can be linked... " >&6; }
39252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39253 /* end confdefs.h.  */
39254
39255
39256 #define writev innocuous_writev
39257 #ifdef __STDC__
39258 # include <limits.h>
39259 #else
39260 # include <assert.h>
39261 #endif
39262 #undef writev
39263 #ifdef __cplusplus
39264 extern "C"
39265 #endif
39266 char writev ();
39267 #if defined __stub_writev || defined __stub___writev
39268 choke me
39269 #endif
39270
39271 int main (void)
39272 {
39273 return writev ();
39274  ;
39275  return 0;
39276 }
39277
39278 _ACEOF
39279 if ac_fn_c_try_link "$LINENO"; then :
39280
39281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39282 $as_echo "yes" >&6; }
39283     tst_links_writev="yes"
39284
39285 else
39286
39287     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39288 $as_echo "no" >&6; }
39289     tst_links_writev="no"
39290
39291 fi
39292 rm -f core conftest.err conftest.$ac_objext \
39293     conftest$ac_exeext conftest.$ac_ext
39294   #
39295   if test "$tst_links_writev" = "yes"; then
39296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39297 $as_echo_n "checking if writev is prototyped... " >&6; }
39298     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39299 /* end confdefs.h.  */
39300
39301       $curl_includes_sys_uio
39302
39303 _ACEOF
39304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39305   $EGREP "writev" >/dev/null 2>&1; then :
39306
39307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39308 $as_echo "yes" >&6; }
39309       tst_proto_writev="yes"
39310
39311 else
39312
39313       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39314 $as_echo "no" >&6; }
39315       tst_proto_writev="no"
39316
39317 fi
39318 rm -f conftest*
39319
39320   fi
39321   #
39322   if test "$tst_proto_writev" = "yes"; then
39323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39324 $as_echo_n "checking if writev is compilable... " >&6; }
39325     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39326 /* end confdefs.h.  */
39327
39328
39329         $curl_includes_sys_uio
39330
39331 int main (void)
39332 {
39333
39334         if(0 != writev(0, 0, 0))
39335           return 1;
39336
39337  ;
39338  return 0;
39339 }
39340
39341 _ACEOF
39342 if ac_fn_c_try_compile "$LINENO"; then :
39343
39344       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39345 $as_echo "yes" >&6; }
39346       tst_compi_writev="yes"
39347
39348 else
39349
39350       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39351 $as_echo "no" >&6; }
39352       tst_compi_writev="no"
39353
39354 fi
39355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39356   fi
39357   #
39358   if test "$tst_compi_writev" = "yes"; then
39359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39360 $as_echo_n "checking if writev usage allowed... " >&6; }
39361     if test "x$curl_disallow_writev" != "xyes"; then
39362       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39363 $as_echo "yes" >&6; }
39364       tst_allow_writev="yes"
39365     else
39366       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39367 $as_echo "no" >&6; }
39368       tst_allow_writev="no"
39369     fi
39370   fi
39371   #
39372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39373 $as_echo_n "checking if writev might be used... " >&6; }
39374   if test "$tst_links_writev" = "yes" &&
39375      test "$tst_proto_writev" = "yes" &&
39376      test "$tst_compi_writev" = "yes" &&
39377      test "$tst_allow_writev" = "yes"; then
39378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39379 $as_echo "yes" >&6; }
39380
39381 cat >>confdefs.h <<_ACEOF
39382 #define HAVE_WRITEV 1
39383 _ACEOF
39384
39385     curl_cv_func_writev="yes"
39386   else
39387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39388 $as_echo "no" >&6; }
39389     curl_cv_func_writev="no"
39390   fi
39391
39392
39393 case $host in
39394   *msdosdjgpp)
39395      ac_cv_func_pipe=no
39396      skipcheck_pipe=yes
39397      { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39398 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39399     ;;
39400 esac
39401
39402 for ac_func in geteuid \
39403   getpass_r \
39404   getppid \
39405   getpwuid \
39406   getpwuid_r \
39407   getrlimit \
39408   gettimeofday \
39409   if_nametoindex \
39410   pipe \
39411   setlocale \
39412   setmode \
39413   setrlimit \
39414   utime \
39415   utimes
39416
39417 do :
39418   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39419 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39420 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39421   cat >>confdefs.h <<_ACEOF
39422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39423 _ACEOF
39424
39425
39426 else
39427
39428   func="$ac_func"
39429   eval skipcheck=\$skipcheck_$func
39430   if test "x$skipcheck" != "xyes"; then
39431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
39432 $as_echo_n "checking deeper for $func... " >&6; }
39433     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39434 /* end confdefs.h.  */
39435
39436
39437
39438 int main (void)
39439 {
39440
39441         $func ();
39442
39443  ;
39444  return 0;
39445 }
39446
39447 _ACEOF
39448 if ac_fn_c_try_link "$LINENO"; then :
39449
39450       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39451 $as_echo "yes" >&6; }
39452       eval "ac_cv_func_$func=yes"
39453
39454 cat >>confdefs.h <<_ACEOF
39455 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
39456 _ACEOF
39457
39458
39459 else
39460
39461       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39462 $as_echo "but still no" >&6; }
39463
39464 fi
39465 rm -f core conftest.err conftest.$ac_objext \
39466     conftest$ac_exeext conftest.$ac_ext
39467   fi
39468
39469 fi
39470 done
39471
39472
39473
39474     for ac_header in sys/types.h sys/socket.h netdb.h
39475 do :
39476   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39477 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39479   cat >>confdefs.h <<_ACEOF
39480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39481 _ACEOF
39482
39483 fi
39484
39485 done
39486
39487   #
39488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
39489 $as_echo_n "checking for getnameinfo... " >&6; }
39490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39491 /* end confdefs.h.  */
39492
39493
39494 #define getnameinfo innocuous_getnameinfo
39495 #ifdef __STDC__
39496 # include <limits.h>
39497 #else
39498 # include <assert.h>
39499 #endif
39500 #undef getnameinfo
39501 #ifdef __cplusplus
39502 extern "C"
39503 #endif
39504 char getnameinfo ();
39505 #if defined __stub_getnameinfo || defined __stub___getnameinfo
39506 choke me
39507 #endif
39508
39509 int main (void)
39510 {
39511 return getnameinfo ();
39512  ;
39513  return 0;
39514 }
39515
39516 _ACEOF
39517 if ac_fn_c_try_link "$LINENO"; then :
39518
39519     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39520 $as_echo "yes" >&6; }
39521     curl_cv_getnameinfo="yes"
39522
39523 else
39524
39525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39526 $as_echo "no" >&6; }
39527     curl_cv_getnameinfo="no"
39528
39529 fi
39530 rm -f core conftest.err conftest.$ac_objext \
39531     conftest$ac_exeext conftest.$ac_ext
39532   #
39533   if test "$curl_cv_getnameinfo" != "yes"; then
39534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
39535 $as_echo_n "checking deeper for getnameinfo... " >&6; }
39536     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39537 /* end confdefs.h.  */
39538
39539
39540
39541 int main (void)
39542 {
39543
39544         getnameinfo();
39545
39546  ;
39547  return 0;
39548 }
39549
39550 _ACEOF
39551 if ac_fn_c_try_link "$LINENO"; then :
39552
39553       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39554 $as_echo "yes" >&6; }
39555       curl_cv_getnameinfo="yes"
39556
39557 else
39558
39559       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39560 $as_echo "but still no" >&6; }
39561       curl_cv_getnameinfo="no"
39562
39563 fi
39564 rm -f core conftest.err conftest.$ac_objext \
39565     conftest$ac_exeext conftest.$ac_ext
39566   fi
39567   #
39568   if test "$curl_cv_getnameinfo" != "yes"; then
39569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
39570 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
39571     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39572 /* end confdefs.h.  */
39573
39574
39575 #undef inline
39576 #ifdef HAVE_WINDOWS_H
39577 #ifndef WIN32_LEAN_AND_MEAN
39578 #define WIN32_LEAN_AND_MEAN
39579 #endif
39580 #include <windows.h>
39581 #ifdef HAVE_WINSOCK2_H
39582 #include <winsock2.h>
39583 #ifdef HAVE_WS2TCPIP_H
39584 #include <ws2tcpip.h>
39585 #endif
39586 #endif
39587 #else
39588 #ifdef HAVE_SYS_TYPES_H
39589 #include <sys/types.h>
39590 #endif
39591 #ifdef HAVE_SYS_SOCKET_H
39592 #include <sys/socket.h>
39593 #endif
39594 #ifdef HAVE_NETDB_H
39595 #include <netdb.h>
39596 #endif
39597 #endif
39598
39599 int main (void)
39600 {
39601
39602         getnameinfo(0, 0, 0, 0, 0, 0, 0);
39603
39604  ;
39605  return 0;
39606 }
39607
39608 _ACEOF
39609 if ac_fn_c_try_link "$LINENO"; then :
39610
39611       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39612 $as_echo "yes" >&6; }
39613       curl_cv_getnameinfo="yes"
39614
39615 else
39616
39617       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39618 $as_echo "but still no" >&6; }
39619       curl_cv_getnameinfo="no"
39620
39621 fi
39622 rm -f core conftest.err conftest.$ac_objext \
39623     conftest$ac_exeext conftest.$ac_ext
39624   fi
39625   #
39626   if test "$curl_cv_getnameinfo" = "yes"; then
39627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
39628 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
39629 if ${curl_cv_func_getnameinfo_args+:} false; then :
39630   $as_echo_n "(cached) " >&6
39631 else
39632
39633       curl_cv_func_getnameinfo_args="unknown"
39634       for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
39635         for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
39636           for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
39637             for gni_arg7 in 'int' 'unsigned int'; do
39638               if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39639                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39640 /* end confdefs.h.  */
39641
39642
39643 #undef inline
39644 #ifdef HAVE_WINDOWS_H
39645 #ifndef WIN32_LEAN_AND_MEAN
39646 #define WIN32_LEAN_AND_MEAN
39647 #endif
39648 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
39649 #undef _WIN32_WINNT
39650 #define _WIN32_WINNT 0x0501
39651 #endif
39652 #include <windows.h>
39653 #ifdef HAVE_WINSOCK2_H
39654 #include <winsock2.h>
39655 #ifdef HAVE_WS2TCPIP_H
39656 #include <ws2tcpip.h>
39657 #endif
39658 #endif
39659 #define GNICALLCONV WSAAPI
39660 #else
39661 #ifdef HAVE_SYS_TYPES_H
39662 #include <sys/types.h>
39663 #endif
39664 #ifdef HAVE_SYS_SOCKET_H
39665 #include <sys/socket.h>
39666 #endif
39667 #ifdef HAVE_NETDB_H
39668 #include <netdb.h>
39669 #endif
39670 #define GNICALLCONV
39671 #endif
39672                     extern int GNICALLCONV
39673 #ifdef __ANDROID__
39674 __attribute__((overloadable))
39675 #endif
39676                                 getnameinfo($gni_arg1, $gni_arg2,
39677                                            char *, $gni_arg46,
39678                                            char *, $gni_arg46,
39679                                            $gni_arg7);
39680
39681 int main (void)
39682 {
39683
39684                     $gni_arg2 salen=0;
39685                     $gni_arg46 hostlen=0;
39686                     $gni_arg46 servlen=0;
39687                     $gni_arg7 flags=0;
39688                     int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
39689
39690  ;
39691  return 0;
39692 }
39693
39694 _ACEOF
39695 if ac_fn_c_try_compile "$LINENO"; then :
39696
39697                   curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
39698
39699 fi
39700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39701               fi
39702             done
39703           done
39704         done
39705       done
39706
39707 fi
39708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
39709 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
39710     if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
39711       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
39712 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
39713       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
39714 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
39715     else
39716       gni_prev_IFS=$IFS; IFS=','
39717       set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
39718       IFS=$gni_prev_IFS
39719       shift
39720       #
39721       gni_qual_type_arg1=$1
39722       #
39723
39724 cat >>confdefs.h <<_ACEOF
39725 #define GETNAMEINFO_TYPE_ARG2 $2
39726 _ACEOF
39727
39728
39729 cat >>confdefs.h <<_ACEOF
39730 #define GETNAMEINFO_TYPE_ARG46 $3
39731 _ACEOF
39732
39733
39734 cat >>confdefs.h <<_ACEOF
39735 #define GETNAMEINFO_TYPE_ARG7 $4
39736 _ACEOF
39737
39738       #
39739       prev_sh_opts=$-
39740       #
39741       case $prev_sh_opts in
39742         *f*)
39743           ;;
39744         *)
39745           set -f
39746           ;;
39747       esac
39748       #
39749       case "$gni_qual_type_arg1" in
39750         const*)
39751           gni_qual_arg1=const
39752           gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
39753         ;;
39754         *)
39755           gni_qual_arg1=
39756           gni_type_arg1=$gni_qual_type_arg1
39757         ;;
39758       esac
39759       #
39760
39761 cat >>confdefs.h <<_ACEOF
39762 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
39763 _ACEOF
39764
39765
39766 cat >>confdefs.h <<_ACEOF
39767 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
39768 _ACEOF
39769
39770       #
39771       case $prev_sh_opts in
39772         *f*)
39773           ;;
39774         *)
39775           set +f
39776           ;;
39777       esac
39778       #
39779
39780 cat >>confdefs.h <<_ACEOF
39781 #define HAVE_GETNAMEINFO 1
39782 _ACEOF
39783
39784       curl_cv_func_getnameinfo="yes"
39785     fi
39786   fi
39787
39788
39789 if test "$ipv6" = "yes"; then
39790   if test "$curl_cv_func_getaddrinfo" = "yes"; then
39791
39792 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
39793
39794     IPV6_ENABLED=1
39795
39796   fi
39797
39798       for ac_header in stdio.h sys/types.h sys/socket.h \
39799                    netdb.h netinet/in.h arpa/inet.h
39800 do :
39801   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39802 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
39803 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39804   cat >>confdefs.h <<_ACEOF
39805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39806 _ACEOF
39807
39808 fi
39809
39810 done
39811
39812   #
39813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
39814 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
39815 if ${curl_cv_working_ni_withscopeid+:} false; then :
39816   $as_echo_n "(cached) " >&6
39817 else
39818
39819     if test "$cross_compiling" = yes; then :
39820
39821       # Program is not run when cross-compiling. So we assume
39822       # NI_WITHSCOPEID will work if we are able to compile it.
39823       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39824 /* end confdefs.h.  */
39825
39826
39827 #include <sys/types.h>
39828 #include <sys/socket.h>
39829 #include <netdb.h>
39830
39831 int main (void)
39832 {
39833
39834           unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39835
39836  ;
39837  return 0;
39838 }
39839
39840 _ACEOF
39841 if ac_fn_c_try_compile "$LINENO"; then :
39842
39843         curl_cv_working_ni_withscopeid="yes"
39844
39845 else
39846
39847         curl_cv_working_ni_withscopeid="no"
39848
39849 fi
39850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
39851
39852 else
39853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39854 /* end confdefs.h.  */
39855
39856
39857 #ifdef HAVE_STDLIB_H
39858 #include <stdlib.h>
39859 #endif
39860 #ifdef HAVE_STDIO_H
39861 #include <stdio.h>
39862 #endif
39863 #ifdef HAVE_SYS_TYPES_H
39864 #include <sys/types.h>
39865 #endif
39866 #ifdef HAVE_SYS_SOCKET_H
39867 #include <sys/socket.h>
39868 #endif
39869 #ifdef HAVE_NETDB_H
39870 #include <netdb.h>
39871 #endif
39872 #ifdef HAVE_NETINET_IN_H
39873 #include <netinet/in.h>
39874 #endif
39875 #ifdef HAVE_ARPA_INET_H
39876 #include <arpa/inet.h>
39877 #endif
39878
39879 int main (void)
39880 {
39881
39882 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
39883 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
39884         struct sockaddr_storage sa;
39885 #else
39886         unsigned char sa[256];
39887 #endif
39888         char hostbuf[NI_MAXHOST];
39889         int rc;
39890         GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
39891         GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
39892         GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
39893         int fd = socket(AF_INET6, SOCK_STREAM, 0);
39894         if(fd < 0) {
39895           perror("socket()");
39896           return 1; /* Error creating socket */
39897         }
39898         rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
39899         if(rc) {
39900           perror("getsockname()");
39901           return 2; /* Error retrieving socket name */
39902         }
39903         rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
39904         if(rc) {
39905           printf("rc = %s\n", gai_strerror(rc));
39906           return 3; /* Error translating socket address */
39907         }
39908         return 0; /* Ok, NI_WITHSCOPEID works */
39909 #else
39910         return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
39911 #endif
39912
39913  ;
39914  return 0;
39915 } # AC-LANG-PROGRAM
39916
39917 _ACEOF
39918 if ac_fn_c_try_run "$LINENO"; then :
39919
39920       # Exit code == 0. Program worked.
39921       curl_cv_working_ni_withscopeid="yes"
39922
39923 else
39924
39925       # Exit code != 0. Program failed.
39926       curl_cv_working_ni_withscopeid="no"
39927
39928 fi
39929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39930   conftest.$ac_objext conftest.beam conftest.$ac_ext
39931 fi
39932  # AC-RUN-IFELSE
39933
39934 fi
39935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5
39936 $as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
39937   case "$curl_cv_working_ni_withscopeid" in
39938     yes)
39939
39940 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
39941
39942       ;;
39943   esac
39944
39945 fi
39946
39947
39948             #
39949   tst_method="unknown"
39950
39951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
39952 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
39953   if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
39954     tst_method="fcntl O_NONBLOCK"
39955   elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
39956     tst_method="ioctl FIONBIO"
39957   elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
39958     tst_method="ioctlsocket FIONBIO"
39959   elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
39960     tst_method="IoctlSocket FIONBIO"
39961   elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
39962     tst_method="setsockopt SO_NONBLOCK"
39963   fi
39964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
39965 $as_echo "$tst_method" >&6; }
39966   if test "$tst_method" = "unknown"; then
39967     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
39968 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
39969   fi
39970
39971
39972
39973 # Extract the first word of "perl", so it can be a program name with args.
39974 set dummy perl; ac_word=$2
39975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39976 $as_echo_n "checking for $ac_word... " >&6; }
39977 if ${ac_cv_path_PERL+:} false; then :
39978   $as_echo_n "(cached) " >&6
39979 else
39980   case $PERL in
39981   [\\/]* | ?:[\\/]*)
39982   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
39983   ;;
39984   *)
39985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39986 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
39987 for as_dir in $as_dummy
39988 do
39989   IFS=$as_save_IFS
39990   test -z "$as_dir" && as_dir=.
39991     for ac_exec_ext in '' $ac_executable_extensions; do
39992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39993     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
39994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39995     break 2
39996   fi
39997 done
39998   done
39999 IFS=$as_save_IFS
40000
40001   ;;
40002 esac
40003 fi
40004 PERL=$ac_cv_path_PERL
40005 if test -n "$PERL"; then
40006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40007 $as_echo "$PERL" >&6; }
40008 else
40009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40010 $as_echo "no" >&6; }
40011 fi
40012
40013
40014
40015
40016 for ac_prog in gnroff nroff
40017 do
40018   # Extract the first word of "$ac_prog", so it can be a program name with args.
40019 set dummy $ac_prog; ac_word=$2
40020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40021 $as_echo_n "checking for $ac_word... " >&6; }
40022 if ${ac_cv_path_NROFF+:} false; then :
40023   $as_echo_n "(cached) " >&6
40024 else
40025   case $NROFF in
40026   [\\/]* | ?:[\\/]*)
40027   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40028   ;;
40029   *)
40030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40031 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40032 for as_dir in $as_dummy
40033 do
40034   IFS=$as_save_IFS
40035   test -z "$as_dir" && as_dir=.
40036     for ac_exec_ext in '' $ac_executable_extensions; do
40037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40038     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40040     break 2
40041   fi
40042 done
40043   done
40044 IFS=$as_save_IFS
40045
40046   ;;
40047 esac
40048 fi
40049 NROFF=$ac_cv_path_NROFF
40050 if test -n "$NROFF"; then
40051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40052 $as_echo "$NROFF" >&6; }
40053 else
40054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40055 $as_echo "no" >&6; }
40056 fi
40057
40058
40059   test -n "$NROFF" && break
40060 done
40061
40062
40063
40064 if test -n "$NROFF"; then
40065
40066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40067 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40068   MANOPT="-man"
40069   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40070   if test -z "$mancheck"; then
40071     MANOPT="-mandoc"
40072    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40073     if test -z "$mancheck"; then
40074       MANOPT=""
40075       { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40076 $as_echo "failed" >&6; }
40077       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40078 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40079     else
40080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40081 $as_echo "$MANOPT" >&6; }
40082     fi
40083   else
40084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40085 $as_echo "$MANOPT" >&6; }
40086   fi
40087
40088 fi
40089
40090 if test -z "$MANOPT"
40091 then
40092       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40093 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40094   USE_MANUAL="no";
40095 fi
40096
40097
40098 if test "$USE_MANUAL" = "1"; then
40099
40100 $as_echo "#define USE_MANUAL 1" >>confdefs.h
40101
40102   curl_manual_msg="enabled"
40103 fi
40104
40105  if test x"$USE_MANUAL" = x1; then
40106   USE_MANUAL_TRUE=
40107   USE_MANUAL_FALSE='#'
40108 else
40109   USE_MANUAL_TRUE='#'
40110   USE_MANUAL_FALSE=
40111 fi
40112
40113
40114
40115
40116
40117   #
40118   if test "$want_ares" = "yes"; then
40119         clean_CPPFLAGS="$CPPFLAGS"
40120     clean_LDFLAGS="$LDFLAGS"
40121     clean_LIBS="$LIBS"
40122     embedded_ares="unknown"
40123     configure_runpath=`pwd`
40124     embedded_ares_builddir="$configure_runpath/ares"
40125     if test -n "$want_ares_path"; then
40126             ares_CPPFLAGS="-I$want_ares_path/include"
40127       ares_LDFLAGS="-L$want_ares_path/lib"
40128       ares_LIBS="-lcares"
40129     else
40130             if test -d "$srcdir/ares"; then
40131                 embedded_ares="yes"
40132         subdirs="$subdirs ares"
40133
40134                         ares_CPPFLAGS=""
40135         ares_LDFLAGS="-L$embedded_ares_builddir"
40136         ares_LIBS="-lcares"
40137       else
40138                 ares_CPPFLAGS=""
40139         ares_LDFLAGS=""
40140         ares_LIBS="-lcares"
40141       fi
40142     fi
40143     #
40144     CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40145     LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40146     LIBS="$ares_LIBS $clean_LIBS"
40147     #
40148     if test "$embedded_ares" != "yes"; then
40149                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40150 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40151       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40152 /* end confdefs.h.  */
40153
40154
40155 #include <ares.h>
40156           /* set of dummy functions in case c-ares was built with debug */
40157           void curl_dofree() { }
40158           void curl_sclose() { }
40159           void curl_domalloc() { }
40160           void curl_docalloc() { }
40161           void curl_socket() { }
40162
40163 int main (void)
40164 {
40165
40166           ares_channel channel;
40167           ares_cancel(channel); /* added in 1.2.0 */
40168           ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40169           ares_dup(&channel, channel); /* added in 1.6.0 */
40170
40171  ;
40172  return 0;
40173 }
40174
40175 _ACEOF
40176 if ac_fn_c_try_link "$LINENO"; then :
40177
40178         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40179 $as_echo "yes" >&6; }
40180
40181 else
40182
40183         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40184 $as_echo "no" >&6; }
40185         as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40186                 CPPFLAGS="$clean_CPPFLAGS"
40187         LDFLAGS="$clean_LDFLAGS"
40188         LIBS="$clean_LIBS"
40189         # prevent usage
40190         want_ares="no"
40191
40192 fi
40193 rm -f core conftest.err conftest.$ac_objext \
40194     conftest$ac_exeext conftest.$ac_ext
40195     fi
40196     if test "$want_ares" = "yes"; then
40197
40198 $as_echo "#define USE_ARES 1" >>confdefs.h
40199
40200       USE_ARES=1
40201
40202       curl_res_msg="c-ares"
40203     fi
40204   fi
40205
40206  if test x$embedded_ares = xyes; then
40207   USE_EMBEDDED_ARES_TRUE=
40208   USE_EMBEDDED_ARES_FALSE='#'
40209 else
40210   USE_EMBEDDED_ARES_TRUE='#'
40211   USE_EMBEDDED_ARES_FALSE=
40212 fi
40213
40214
40215 if test "x$curl_cv_native_windows" != "xyes" &&
40216    test "x$enable_shared" = "xyes"; then
40217   build_libhostname=yes
40218 else
40219   build_libhostname=no
40220 fi
40221  if test x$build_libhostname = xyes; then
40222   BUILD_LIBHOSTNAME_TRUE=
40223   BUILD_LIBHOSTNAME_FALSE='#'
40224 else
40225   BUILD_LIBHOSTNAME_TRUE='#'
40226   BUILD_LIBHOSTNAME_FALSE=
40227 fi
40228
40229
40230 if test "x$want_ares" != xyes; then
40231
40232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40233 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40234   OPT_THRES="default"
40235   # Check whether --enable-threaded_resolver was given.
40236 if test "${enable_threaded_resolver+set}" = set; then :
40237   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40238 fi
40239
40240   case "$OPT_THRES" in
40241     no)
40242             want_thres="no"
40243       ;;
40244     *)
40245             want_thres="yes"
40246       ;;
40247   esac
40248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40249 $as_echo "$want_thres" >&6; }
40250
40251 fi
40252
40253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40254 $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40255 # Check whether --enable-pthreads was given.
40256 if test "${enable_pthreads+set}" = set; then :
40257   enableval=$enable_pthreads;  case "$enableval" in
40258   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40259 $as_echo "no" >&6; }
40260        want_pthreads=no
40261        ;;
40262   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40263 $as_echo "yes" >&6; }
40264        want_pthreads=yes
40265        ;;
40266   esac
40267 else
40268
40269        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40270 $as_echo "auto" >&6; }
40271        want_pthreads=auto
40272
40273
40274 fi
40275
40276
40277 if test "$want_pthreads" != "no"; then
40278   if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40279     as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40280   fi
40281   if test "$dontwant_rt" != "no"; then
40282         if test "$want_pthreads" = "yes"; then
40283       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40284 $as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40285     fi
40286     want_pthreads=no
40287   fi
40288 fi
40289
40290 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40291   want_pthreads=no
40292 fi
40293
40294 if test "$want_pthreads" != "no"; then
40295   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40296 if test "x$ac_cv_header_pthread_h" = xyes; then :
40297
40298 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40299
40300       save_CFLAGS="$CFLAGS"
40301
40302             ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40303 if test "x$ac_cv_func_pthread_create" = xyes; then :
40304   USE_THREADS_POSIX=1
40305 fi
40306
40307
40308             if test "$USE_THREADS_POSIX" != "1"
40309       then
40310         CFLAGS="$CFLAGS -pthread"
40311         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40312 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40313 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40314   $as_echo_n "(cached) " >&6
40315 else
40316   ac_check_lib_save_LIBS=$LIBS
40317 LIBS="-lpthread  $LIBS"
40318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40319 /* end confdefs.h.  */
40320
40321
40322 #ifdef __cplusplus
40323 extern "C"
40324 #endif
40325 char pthread_create ();
40326 int main (void)
40327 {
40328 return pthread_create ();
40329  ;
40330  return 0;
40331 }
40332 _ACEOF
40333 if ac_fn_c_try_link "$LINENO"; then :
40334   ac_cv_lib_pthread_pthread_create=yes
40335 else
40336   ac_cv_lib_pthread_pthread_create=no
40337 fi
40338 rm -f core conftest.err conftest.$ac_objext \
40339     conftest$ac_exeext conftest.$ac_ext
40340 LIBS=$ac_check_lib_save_LIBS
40341 fi
40342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40343 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40344 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40345   USE_THREADS_POSIX=1
40346 else
40347    CFLAGS="$save_CFLAGS"
40348 fi
40349
40350       fi
40351
40352       if test "x$USE_THREADS_POSIX" = "x1"
40353       then
40354
40355 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40356
40357         curl_res_msg="POSIX threaded"
40358       fi
40359
40360 fi
40361
40362
40363 fi
40364
40365 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40366   if test "$want_pthreads" = "yes"; then
40367     as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40368   fi
40369     if test "$curl_cv_native_windows" = "yes"; then
40370     USE_THREADS_WIN32=1
40371
40372 $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40373
40374     curl_res_msg="Win32 threaded"
40375   else
40376     as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40377   fi
40378 fi
40379
40380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40381 $as_echo_n "checking whether to enable verbose strings... " >&6; }
40382 # Check whether --enable-verbose was given.
40383 if test "${enable_verbose+set}" = set; then :
40384   enableval=$enable_verbose;  case "$enableval" in
40385   no)
40386        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40387 $as_echo "no" >&6; }
40388
40389 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40390
40391        curl_verbose_msg="no"
40392        ;;
40393   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40394 $as_echo "yes" >&6; }
40395        ;;
40396   esac
40397 else
40398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40399 $as_echo "yes" >&6; }
40400
40401 fi
40402
40403
40404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40405 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40406 # Check whether --enable-sspi was given.
40407 if test "${enable_sspi+set}" = set; then :
40408   enableval=$enable_sspi;  case "$enableval" in
40409   yes)
40410        if test "$curl_cv_native_windows" = "yes"; then
40411          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40412 $as_echo "yes" >&6; }
40413
40414 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40415
40416          USE_WINDOWS_SSPI=1
40417
40418          curl_sspi_msg="enabled"
40419        else
40420          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40421 $as_echo "no" >&6; }
40422          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40423 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40424        fi
40425        ;;
40426   *)
40427        if test "x$WINSSL_ENABLED" = "x1"; then
40428          # --with-winssl implies --enable-sspi
40429          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40430 $as_echo "yes" >&6; }
40431        else
40432          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40433 $as_echo "no" >&6; }
40434        fi
40435        ;;
40436   esac
40437 else
40438   if test "x$WINSSL_ENABLED" = "x1"; then
40439          # --with-winssl implies --enable-sspi
40440          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40441 $as_echo "yes" >&6; }
40442        else
40443          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40444 $as_echo "no" >&6; }
40445        fi
40446
40447 fi
40448
40449
40450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40451 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40452 # Check whether --enable-crypto-auth was given.
40453 if test "${enable_crypto_auth+set}" = set; then :
40454   enableval=$enable_crypto_auth;  case "$enableval" in
40455   no)
40456        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40457 $as_echo "no" >&6; }
40458
40459 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40460
40461        CURL_DISABLE_CRYPTO_AUTH=1
40462        ;;
40463   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40464 $as_echo "yes" >&6; }
40465        ;;
40466   esac
40467 else
40468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40469 $as_echo "yes" >&6; }
40470
40471 fi
40472
40473
40474
40475     OPT_NTLM_WB="default"
40476   # Check whether --enable-ntlm-wb was given.
40477 if test "${enable_ntlm_wb+set}" = set; then :
40478   enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40479 fi
40480
40481   want_ntlm_wb_file="/usr/bin/ntlm_auth"
40482   case "$OPT_NTLM_WB" in
40483     no)
40484             want_ntlm_wb="no"
40485       ;;
40486     default)
40487             want_ntlm_wb="yes"
40488       ;;
40489     *)
40490             want_ntlm_wb="yes"
40491       if test -n "$enableval" && test "$enableval" != "yes"; then
40492         want_ntlm_wb_file="$enableval"
40493       fi
40494       ;;
40495   esac
40496
40497
40498
40499       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40500 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40501   if test "$curl_cv_native_windows" = "yes" ||
40502     test "x$SSL_ENABLED" = "x"; then
40503     want_ntlm_wb_file=""
40504     want_ntlm_wb="no"
40505   fi
40506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40507 $as_echo "$want_ntlm_wb" >&6; }
40508   if test "$want_ntlm_wb" = "yes"; then
40509
40510 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40511
40512
40513 cat >>confdefs.h <<_ACEOF
40514 #define NTLM_WB_FILE "$want_ntlm_wb_file"
40515 _ACEOF
40516
40517     NTLM_WB_ENABLED=1
40518   fi
40519
40520
40521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40522 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40523 # Check whether --enable-tls-srp was given.
40524 if test "${enable_tls_srp+set}" = set; then :
40525   enableval=$enable_tls_srp;  case "$enableval" in
40526   no)
40527        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40528 $as_echo "no" >&6; }
40529
40530 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40531
40532        want_tls_srp=no
40533        ;;
40534   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40535 $as_echo "yes" >&6; }
40536        want_tls_srp=yes
40537        ;;
40538   esac
40539 else
40540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40541 $as_echo "yes" >&6; }
40542        want_tls_srp=yes
40543
40544 fi
40545
40546
40547 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40548
40549 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
40550
40551    USE_TLS_SRP=1
40552    curl_tls_srp_msg="enabled"
40553 fi
40554
40555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
40556 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
40557 # Check whether --enable-unix-sockets was given.
40558 if test "${enable_unix_sockets+set}" = set; then :
40559   enableval=$enable_unix_sockets;  case "$enableval" in
40560   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40561 $as_echo "no" >&6; }
40562        want_unix_sockets=no
40563        ;;
40564   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40565 $as_echo "yes" >&6; }
40566        want_unix_sockets=yes
40567        ;;
40568   esac
40569 else
40570
40571        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40572 $as_echo "auto" >&6; }
40573        want_unix_sockets=auto
40574
40575
40576 fi
40577
40578 if test "x$want_unix_sockets" != "xno"; then
40579   ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
40580     #include <sys/un.h>
40581
40582 "
40583 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
40584
40585
40586 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
40587
40588     USE_UNIX_SOCKETS=1
40589
40590     curl_unix_sockets_msg="enabled"
40591
40592 else
40593
40594     if test "x$want_unix_sockets" = "xyes"; then
40595       as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
40596     fi
40597
40598 fi
40599
40600 fi
40601
40602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
40603 $as_echo_n "checking whether to enable support for cookies... " >&6; }
40604 # Check whether --enable-cookies was given.
40605 if test "${enable_cookies+set}" = set; then :
40606   enableval=$enable_cookies;  case "$enableval" in
40607   no)
40608        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40609 $as_echo "no" >&6; }
40610
40611 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
40612
40613        ;;
40614   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40615 $as_echo "yes" >&6; }
40616        ;;
40617   esac
40618 else
40619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40620 $as_echo "yes" >&6; }
40621
40622 fi
40623
40624
40625
40626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
40627 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
40628   CFLAG_CURL_SYMBOL_HIDING=""
40629   doing_symbol_hiding="no"
40630   if test x"$curl_cv_native_windows" != "xyes" &&
40631     test "$want_symbol_hiding" = "yes" &&
40632     test "$supports_symbol_hiding" = "yes"; then
40633     doing_symbol_hiding="yes"
40634     CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
40635
40636 cat >>confdefs.h <<_ACEOF
40637 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
40638 _ACEOF
40639
40640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40641 $as_echo "yes" >&6; }
40642   else
40643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40644 $as_echo "no" >&6; }
40645   fi
40646    if test x$doing_symbol_hiding = xyes; then
40647   DOING_CURL_SYMBOL_HIDING_TRUE=
40648   DOING_CURL_SYMBOL_HIDING_FALSE='#'
40649 else
40650   DOING_CURL_SYMBOL_HIDING_TRUE='#'
40651   DOING_CURL_SYMBOL_HIDING_FALSE=
40652 fi
40653
40654
40655
40656
40657 LIBCURL_LIBS=$LIBS
40658
40659
40660
40661
40662
40663 BLANK_AT_MAKETIME=
40664
40665
40666  if test x$cross_compiling = xyes; then
40667   CROSSCOMPILING_TRUE=
40668   CROSSCOMPILING_FALSE='#'
40669 else
40670   CROSSCOMPILING_TRUE='#'
40671   CROSSCOMPILING_FALSE=
40672 fi
40673
40674
40675 ENABLE_SHARED="$enable_shared"
40676
40677
40678 ENABLE_STATIC="$enable_static"
40679
40680
40681
40682
40683 if test "x$OPENSSL_ENABLED" = "x1"; then
40684   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40685 elif test -n "$SSL_ENABLED"; then
40686   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40687 fi
40688 if test "x$IPV6_ENABLED" = "x1"; then
40689   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
40690 fi
40691 if test "x$USE_UNIX_SOCKETS" = "x1"; then
40692   SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
40693 fi
40694 if test "x$HAVE_LIBZ" = "x1"; then
40695   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
40696 fi
40697 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
40698                             -o "x$USE_THREADS_WIN32" = "x1"; then
40699   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
40700 fi
40701 if test "x$IDN_ENABLED" = "x1"; then
40702   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
40703 fi
40704 if test "x$USE_WINDOWS_SSPI" = "x1"; then
40705   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
40706 fi
40707
40708 if test "x$HAVE_GSSAPI" = "x1"; then
40709   SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
40710 fi
40711
40712 if test "x$curl_psl_msg" = "xyes"; then
40713   SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
40714 fi
40715
40716 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40717     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40718   SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
40719 fi
40720
40721 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
40722     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
40723   SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
40724 fi
40725
40726 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
40727   if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40728       -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
40729       -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
40730     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
40731
40732     if test "x$CURL_DISABLE_HTTP" != "x1" -a \
40733         "x$NTLM_WB_ENABLED" = "x1"; then
40734       SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
40735     fi
40736   fi
40737 fi
40738
40739 if test "x$USE_TLS_SRP" = "x1"; then
40740   SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
40741 fi
40742
40743 if test "x$USE_NGHTTP2" = "x1"; then
40744   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
40745 fi
40746
40747 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
40748   SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
40749 fi
40750
40751 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
40752     -o "x$NSS_ENABLED" = "x1"; then
40753   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
40754 fi
40755
40756
40757
40758 if test "x$CURL_DISABLE_HTTP" != "x1"; then
40759   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
40760   if test "x$SSL_ENABLED" = "x1"; then
40761     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
40762   fi
40763 fi
40764 if test "x$CURL_DISABLE_FTP" != "x1"; then
40765   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
40766   if test "x$SSL_ENABLED" = "x1"; then
40767     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
40768   fi
40769 fi
40770 if test "x$CURL_DISABLE_FILE" != "x1"; then
40771   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
40772 fi
40773 if test "x$CURL_DISABLE_TELNET" != "x1"; then
40774   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
40775 fi
40776 if test "x$CURL_DISABLE_LDAP" != "x1"; then
40777   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
40778   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
40779     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
40780       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
40781       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
40782     fi
40783   fi
40784 fi
40785 if test "x$CURL_DISABLE_DICT" != "x1"; then
40786   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
40787 fi
40788 if test "x$CURL_DISABLE_TFTP" != "x1"; then
40789   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
40790 fi
40791 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
40792   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
40793 fi
40794 if test "x$CURL_DISABLE_POP3" != "x1"; then
40795   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
40796   if test "x$SSL_ENABLED" = "x1"; then
40797     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
40798   fi
40799 fi
40800 if test "x$CURL_DISABLE_IMAP" != "x1"; then
40801   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
40802   if test "x$SSL_ENABLED" = "x1"; then
40803     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
40804   fi
40805 fi
40806 if test "x$CURL_DISABLE_SMB" != "x1" \
40807     -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
40808     -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
40809       -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
40810       -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
40811   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
40812   if test "x$SSL_ENABLED" = "x1"; then
40813     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
40814   fi
40815 fi
40816 if test "x$CURL_DISABLE_SMTP" != "x1"; then
40817   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
40818   if test "x$SSL_ENABLED" = "x1"; then
40819     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
40820   fi
40821 fi
40822 if test "x$USE_LIBSSH2" = "x1"; then
40823   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
40824   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
40825 fi
40826 if test "x$CURL_DISABLE_RTSP" != "x1"; then
40827   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
40828 fi
40829 if test "x$USE_LIBRTMP" = "x1"; then
40830   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
40831 fi
40832
40833 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
40834
40835
40836
40837
40838 squeeze CFLAGS
40839 squeeze CPPFLAGS
40840 squeeze DEFS
40841 squeeze LDFLAGS
40842 squeeze LIBS
40843
40844 squeeze LIBCURL_LIBS
40845 squeeze CURL_NETWORK_LIBS
40846 squeeze CURL_NETWORK_AND_TIME_LIBS
40847
40848 squeeze SUPPORT_FEATURES
40849 squeeze SUPPORT_PROTOCOLS
40850
40851
40852
40853   xc_bad_var_libs=no
40854   for xc_word in $LIBS; do
40855     case "$xc_word" in
40856       -l* | --library=*)
40857         :
40858         ;;
40859       *)
40860         xc_bad_var_libs=yes
40861         ;;
40862     esac
40863   done
40864   if test $xc_bad_var_libs = yes; then
40865     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
40866 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
40867     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
40868 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
40869   fi
40870
40871
40872   xc_bad_var_ldflags=no
40873   for xc_word in $LDFLAGS; do
40874     case "$xc_word" in
40875       -D*)
40876         xc_bad_var_ldflags=yes
40877         ;;
40878       -U*)
40879         xc_bad_var_ldflags=yes
40880         ;;
40881       -I*)
40882         xc_bad_var_ldflags=yes
40883         ;;
40884       -l* | --library=*)
40885         xc_bad_var_ldflags=yes
40886         ;;
40887     esac
40888   done
40889   if test $xc_bad_var_ldflags = yes; then
40890     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
40891 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
40892     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
40893     for xc_word in $LDFLAGS; do
40894       case "$xc_word" in
40895         -D*)
40896           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40897 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40898           ;;
40899         -U*)
40900           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40901 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40902           ;;
40903         -I*)
40904           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40905 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40906           ;;
40907         -l* | --library=*)
40908           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40909 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40910           ;;
40911       esac
40912     done
40913   fi
40914
40915
40916   xc_bad_var_cppflags=no
40917   for xc_word in $CPPFLAGS; do
40918     case "$xc_word" in
40919       -rpath*)
40920         xc_bad_var_cppflags=yes
40921         ;;
40922       -L* | --library-path=*)
40923         xc_bad_var_cppflags=yes
40924         ;;
40925       -l* | --library=*)
40926         xc_bad_var_cppflags=yes
40927         ;;
40928     esac
40929   done
40930   if test $xc_bad_var_cppflags = yes; then
40931     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
40932 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
40933     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
40934     for xc_word in $CPPFLAGS; do
40935       case "$xc_word" in
40936         -rpath*)
40937           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40938 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40939           ;;
40940         -L* | --library-path=*)
40941           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
40942 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
40943           ;;
40944         -l* | --library=*)
40945           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
40946 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
40947           ;;
40948       esac
40949     done
40950   fi
40951
40952
40953   xc_bad_var_cflags=no
40954   for xc_word in $CFLAGS; do
40955     case "$xc_word" in
40956       -D*)
40957         xc_bad_var_cflags=yes
40958         ;;
40959       -U*)
40960         xc_bad_var_cflags=yes
40961         ;;
40962       -I*)
40963         xc_bad_var_cflags=yes
40964         ;;
40965       -rpath*)
40966         xc_bad_var_cflags=yes
40967         ;;
40968       -L* | --library-path=*)
40969         xc_bad_var_cflags=yes
40970         ;;
40971       -l* | --library=*)
40972         xc_bad_var_cflags=yes
40973         ;;
40974     esac
40975   done
40976   if test $xc_bad_var_cflags = yes; then
40977     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
40978 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
40979     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
40980     for xc_word in $CFLAGS; do
40981       case "$xc_word" in
40982         -D*)
40983           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
40984 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
40985           ;;
40986         -U*)
40987           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
40988 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
40989           ;;
40990         -I*)
40991           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
40992 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
40993           ;;
40994         -rpath*)
40995           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
40996 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
40997           ;;
40998         -L* | --library-path=*)
40999           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41000 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41001           ;;
41002         -l* | --library=*)
41003           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41004 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41005           ;;
41006       esac
41007     done
41008   fi
41009
41010   if test $xc_bad_var_libs = yes ||
41011      test $xc_bad_var_cflags = yes ||
41012      test $xc_bad_var_ldflags = yes ||
41013      test $xc_bad_var_cppflags = yes; then
41014      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41015 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41016   fi
41017
41018
41019 if test "x$want_curldebug_assumed" = "xyes" &&
41020   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41021   ac_configure_args="$ac_configure_args --enable-curldebug"
41022 fi
41023
41024 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/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"
41025
41026 cat >confcache <<\_ACEOF
41027 # This file is a shell script that caches the results of configure
41028 # tests run on this system so they can be shared between configure
41029 # scripts and configure runs, see configure's option --config-cache.
41030 # It is not useful on other systems.  If it contains results you don't
41031 # want to keep, you may remove or edit it.
41032 #
41033 # config.status only pays attention to the cache file if you give it
41034 # the --recheck option to rerun configure.
41035 #
41036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41038 # following values.
41039
41040 _ACEOF
41041
41042 # The following way of writing the cache mishandles newlines in values,
41043 # but we know of no workaround that is simple, portable, and efficient.
41044 # So, we kill variables containing newlines.
41045 # Ultrix sh set writes to stderr and can't be redirected directly,
41046 # and sets the high bit in the cache file unless we assign to the vars.
41047 (
41048   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41049     eval ac_val=\$$ac_var
41050     case $ac_val in #(
41051     *${as_nl}*)
41052       case $ac_var in #(
41053       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41055       esac
41056       case $ac_var in #(
41057       _ | IFS | as_nl) ;; #(
41058       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41059       *) { eval $ac_var=; unset $ac_var;} ;;
41060       esac ;;
41061     esac
41062   done
41063
41064   (set) 2>&1 |
41065     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41066     *${as_nl}ac_space=\ *)
41067       # `set' does not quote correctly, so add quotes: double-quote
41068       # substitution turns \\\\ into \\, and sed turns \\ into \.
41069       sed -n \
41070         "s/'/'\\\\''/g;
41071           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41072       ;; #(
41073     *)
41074       # `set' quotes correctly as required by POSIX, so do not add quotes.
41075       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41076       ;;
41077     esac |
41078     sort
41079 ) |
41080   sed '
41081      /^ac_cv_env_/b end
41082      t clear
41083      :clear
41084      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41085      t end
41086      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41087      :end' >>confcache
41088 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41089   if test -w "$cache_file"; then
41090     if test "x$cache_file" != "x/dev/null"; then
41091       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41092 $as_echo "$as_me: updating cache $cache_file" >&6;}
41093       if test ! -f "$cache_file" || test -h "$cache_file"; then
41094         cat confcache >"$cache_file"
41095       else
41096         case $cache_file in #(
41097         */* | ?:*)
41098           mv -f confcache "$cache_file"$$ &&
41099           mv -f "$cache_file"$$ "$cache_file" ;; #(
41100         *)
41101           mv -f confcache "$cache_file" ;;
41102         esac
41103       fi
41104     fi
41105   else
41106     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41107 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41108   fi
41109 fi
41110 rm -f confcache
41111
41112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41113 # Let make expand exec_prefix.
41114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41115
41116 DEFS=-DHAVE_CONFIG_H
41117
41118 ac_libobjs=
41119 ac_ltlibobjs=
41120 U=
41121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41122   # 1. Remove the extension, and $U if already installed.
41123   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41124   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41125   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
41126   #    will be set to the directory where LIBOBJS objects are built.
41127   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41128   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41129 done
41130 LIBOBJS=$ac_libobjs
41131
41132 LTLIBOBJS=$ac_ltlibobjs
41133
41134
41135 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41136   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41138 fi
41139 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41140   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41142 fi
41143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41144 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41145    if test -n "$am_sleep_pid"; then
41146      # Hide warnings about reused PIDs.
41147      wait $am_sleep_pid 2>/dev/null
41148    fi
41149    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41150 $as_echo "done" >&6; }
41151 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41152   as_fn_error $? "conditional \"AMDEP\" was never defined.
41153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41154 fi
41155 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41156   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41158 fi
41159  if test -n "$EXEEXT"; then
41160   am__EXEEXT_TRUE=
41161   am__EXEEXT_FALSE='#'
41162 else
41163   am__EXEEXT_TRUE='#'
41164   am__EXEEXT_FALSE=
41165 fi
41166
41167 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41168   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41170 fi
41171 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41172   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41174 fi
41175 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41176   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41178 fi
41179 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41180   as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41182 fi
41183 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41184   as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41186 fi
41187 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41188   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41190 fi
41191 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41192   as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41194 fi
41195 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41196   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41198 fi
41199 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41200   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41202 fi
41203 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41204   as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41206 fi
41207 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41208   as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41210 fi
41211 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41212   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41214 fi
41215 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41216   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41218 fi
41219 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41220   as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41222 fi
41223 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41224   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41226 fi
41227 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41228   as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41230 fi
41231 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41232   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41234 fi
41235
41236 : "${CONFIG_STATUS=./config.status}"
41237 ac_write_fail=0
41238 ac_clean_files_save=$ac_clean_files
41239 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41241 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41242 as_write_fail=0
41243 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41244 #! $SHELL
41245 # Generated by $as_me.
41246 # Run this file to recreate the current configuration.
41247 # Compiler output produced by configure, useful for debugging
41248 # configure, is in config.log if it exists.
41249
41250 debug=false
41251 ac_cs_recheck=false
41252 ac_cs_silent=false
41253
41254 SHELL=\${CONFIG_SHELL-$SHELL}
41255 export SHELL
41256 _ASEOF
41257 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41258 ## -------------------- ##
41259 ## M4sh Initialization. ##
41260 ## -------------------- ##
41261
41262 # Be more Bourne compatible
41263 DUALCASE=1; export DUALCASE # for MKS sh
41264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41265   emulate sh
41266   NULLCMD=:
41267   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41268   # is contrary to our usage.  Disable this feature.
41269   alias -g '${1+"$@"}'='"$@"'
41270   setopt NO_GLOB_SUBST
41271 else
41272   case `(set -o) 2>/dev/null` in #(
41273   *posix*) :
41274     set -o posix ;; #(
41275   *) :
41276      ;;
41277 esac
41278 fi
41279
41280
41281 as_nl='
41282 '
41283 export as_nl
41284 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41285 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41286 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41288 # Prefer a ksh shell builtin over an external printf program on Solaris,
41289 # but without wasting forks for bash or zsh.
41290 if test -z "$BASH_VERSION$ZSH_VERSION" \
41291     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41292   as_echo='print -r --'
41293   as_echo_n='print -rn --'
41294 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41295   as_echo='printf %s\n'
41296   as_echo_n='printf %s'
41297 else
41298   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41299     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41300     as_echo_n='/usr/ucb/echo -n'
41301   else
41302     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41303     as_echo_n_body='eval
41304       arg=$1;
41305       case $arg in #(
41306       *"$as_nl"*)
41307         expr "X$arg" : "X\\(.*\\)$as_nl";
41308         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41309       esac;
41310       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41311     '
41312     export as_echo_n_body
41313     as_echo_n='sh -c $as_echo_n_body as_echo'
41314   fi
41315   export as_echo_body
41316   as_echo='sh -c $as_echo_body as_echo'
41317 fi
41318
41319
41320
41321 # IFS
41322 # We need space, tab and new line, in precisely that order.  Quoting is
41323 # there to prevent editors from complaining about space-tab.
41324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41325 # splitting by setting IFS to empty value.)
41326 IFS=" ""        $as_nl"
41327
41328 # Find who we are.  Look in the path if we contain no directory separator.
41329 as_myself=
41330 case $0 in #((
41331   *[\\/]* ) as_myself=$0 ;;
41332   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41333 for as_dir in $PATH
41334 do
41335   IFS=$as_save_IFS
41336   test -z "$as_dir" && as_dir=.
41337     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41338   done
41339 IFS=$as_save_IFS
41340
41341      ;;
41342 esac
41343 # We did not find ourselves, most probably we were run as `sh COMMAND'
41344 # in which case we are not to be found in the path.
41345 if test "x$as_myself" = x; then
41346   as_myself=$0
41347 fi
41348 if test ! -f "$as_myself"; then
41349   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41350   exit 1
41351 fi
41352
41353 # Unset variables that we do not need and which cause bugs (e.g. in
41354 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
41355 # suppresses any "Segmentation fault" message there.  '((' could
41356 # trigger a bug in pdksh 5.2.14.
41357 for as_var in BASH_ENV ENV MAIL MAILPATH
41358 do eval test x\${$as_var+set} = xset \
41359   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41360 done
41361 PS1='$ '
41362 PS2='> '
41363 PS4='+ '
41364
41365 # NLS nuisances.
41366 LC_ALL=C
41367 export LC_ALL
41368 LANGUAGE=C
41369 export LANGUAGE
41370
41371 # CDPATH.
41372 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41373
41374
41375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41376 # ----------------------------------------
41377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41379 # script with STATUS, using 1 if that was 0.
41380 as_fn_error ()
41381 {
41382   as_status=$1; test $as_status -eq 0 && as_status=1
41383   if test "$4"; then
41384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41386   fi
41387   $as_echo "$as_me: error: $2" >&2
41388   as_fn_exit $as_status
41389 } # as_fn_error
41390
41391
41392 # as_fn_set_status STATUS
41393 # -----------------------
41394 # Set $? to STATUS, without forking.
41395 as_fn_set_status ()
41396 {
41397   return $1
41398 } # as_fn_set_status
41399
41400 # as_fn_exit STATUS
41401 # -----------------
41402 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41403 as_fn_exit ()
41404 {
41405   set +e
41406   as_fn_set_status $1
41407   exit $1
41408 } # as_fn_exit
41409
41410 # as_fn_unset VAR
41411 # ---------------
41412 # Portably unset VAR.
41413 as_fn_unset ()
41414 {
41415   { eval $1=; unset $1;}
41416 }
41417 as_unset=as_fn_unset
41418 # as_fn_append VAR VALUE
41419 # ----------------------
41420 # Append the text in VALUE to the end of the definition contained in VAR. Take
41421 # advantage of any shell optimizations that allow amortized linear growth over
41422 # repeated appends, instead of the typical quadratic growth present in naive
41423 # implementations.
41424 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41425   eval 'as_fn_append ()
41426   {
41427     eval $1+=\$2
41428   }'
41429 else
41430   as_fn_append ()
41431   {
41432     eval $1=\$$1\$2
41433   }
41434 fi # as_fn_append
41435
41436 # as_fn_arith ARG...
41437 # ------------------
41438 # Perform arithmetic evaluation on the ARGs, and store the result in the
41439 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41440 # must be portable across $(()) and expr.
41441 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41442   eval 'as_fn_arith ()
41443   {
41444     as_val=$(( $* ))
41445   }'
41446 else
41447   as_fn_arith ()
41448   {
41449     as_val=`expr "$@" || test $? -eq 1`
41450   }
41451 fi # as_fn_arith
41452
41453
41454 if expr a : '\(a\)' >/dev/null 2>&1 &&
41455    test "X`expr 00001 : '.*\(...\)'`" = X001; then
41456   as_expr=expr
41457 else
41458   as_expr=false
41459 fi
41460
41461 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41462   as_basename=basename
41463 else
41464   as_basename=false
41465 fi
41466
41467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41468   as_dirname=dirname
41469 else
41470   as_dirname=false
41471 fi
41472
41473 as_me=`$as_basename -- "$0" ||
41474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41475          X"$0" : 'X\(//\)$' \| \
41476          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41477 $as_echo X/"$0" |
41478     sed '/^.*\/\([^/][^/]*\)\/*$/{
41479             s//\1/
41480             q
41481           }
41482           /^X\/\(\/\/\)$/{
41483             s//\1/
41484             q
41485           }
41486           /^X\/\(\/\).*/{
41487             s//\1/
41488             q
41489           }
41490           s/.*/./; q'`
41491
41492 # Avoid depending upon Character Ranges.
41493 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41494 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41495 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41496 as_cr_digits='0123456789'
41497 as_cr_alnum=$as_cr_Letters$as_cr_digits
41498
41499 ECHO_C= ECHO_N= ECHO_T=
41500 case `echo -n x` in #(((((
41501 -n*)
41502   case `echo 'xy\c'` in
41503   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
41504   xy)  ECHO_C='\c';;
41505   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
41506        ECHO_T=' ';;
41507   esac;;
41508 *)
41509   ECHO_N='-n';;
41510 esac
41511
41512 rm -f conf$$ conf$$.exe conf$$.file
41513 if test -d conf$$.dir; then
41514   rm -f conf$$.dir/conf$$.file
41515 else
41516   rm -f conf$$.dir
41517   mkdir conf$$.dir 2>/dev/null
41518 fi
41519 if (echo >conf$$.file) 2>/dev/null; then
41520   if ln -s conf$$.file conf$$ 2>/dev/null; then
41521     as_ln_s='ln -s'
41522     # ... but there are two gotchas:
41523     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41524     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41525     # In both cases, we have to default to `cp -pR'.
41526     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41527       as_ln_s='cp -pR'
41528   elif ln conf$$.file conf$$ 2>/dev/null; then
41529     as_ln_s=ln
41530   else
41531     as_ln_s='cp -pR'
41532   fi
41533 else
41534   as_ln_s='cp -pR'
41535 fi
41536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41537 rmdir conf$$.dir 2>/dev/null
41538
41539
41540 # as_fn_mkdir_p
41541 # -------------
41542 # Create "$as_dir" as a directory, including parents if necessary.
41543 as_fn_mkdir_p ()
41544 {
41545
41546   case $as_dir in #(
41547   -*) as_dir=./$as_dir;;
41548   esac
41549   test -d "$as_dir" || eval $as_mkdir_p || {
41550     as_dirs=
41551     while :; do
41552       case $as_dir in #(
41553       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41554       *) as_qdir=$as_dir;;
41555       esac
41556       as_dirs="'$as_qdir' $as_dirs"
41557       as_dir=`$as_dirname -- "$as_dir" ||
41558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41559          X"$as_dir" : 'X\(//\)[^/]' \| \
41560          X"$as_dir" : 'X\(//\)$' \| \
41561          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41562 $as_echo X"$as_dir" |
41563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41564             s//\1/
41565             q
41566           }
41567           /^X\(\/\/\)[^/].*/{
41568             s//\1/
41569             q
41570           }
41571           /^X\(\/\/\)$/{
41572             s//\1/
41573             q
41574           }
41575           /^X\(\/\).*/{
41576             s//\1/
41577             q
41578           }
41579           s/.*/./; q'`
41580       test -d "$as_dir" && break
41581     done
41582     test -z "$as_dirs" || eval "mkdir $as_dirs"
41583   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41584
41585
41586 } # as_fn_mkdir_p
41587 if mkdir -p . 2>/dev/null; then
41588   as_mkdir_p='mkdir -p "$as_dir"'
41589 else
41590   test -d ./-p && rmdir ./-p
41591   as_mkdir_p=false
41592 fi
41593
41594
41595 # as_fn_executable_p FILE
41596 # -----------------------
41597 # Test if FILE is an executable regular file.
41598 as_fn_executable_p ()
41599 {
41600   test -f "$1" && test -x "$1"
41601 } # as_fn_executable_p
41602 as_test_x='test -x'
41603 as_executable_p=as_fn_executable_p
41604
41605 # Sed expression to map a string onto a valid CPP name.
41606 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41607
41608 # Sed expression to map a string onto a valid variable name.
41609 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41610
41611
41612 exec 6>&1
41613 ## ----------------------------------- ##
41614 ## Main body of $CONFIG_STATUS script. ##
41615 ## ----------------------------------- ##
41616 _ASEOF
41617 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41618
41619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41620 # Save the log message, to keep $0 and so on meaningful, and to
41621 # report actual input values of CONFIG_FILES etc. instead of their
41622 # values after options handling.
41623 ac_log="
41624 This file was extended by curl $as_me -, which was
41625 generated by GNU Autoconf 2.69.  Invocation command line was
41626
41627   CONFIG_FILES    = $CONFIG_FILES
41628   CONFIG_HEADERS  = $CONFIG_HEADERS
41629   CONFIG_LINKS    = $CONFIG_LINKS
41630   CONFIG_COMMANDS = $CONFIG_COMMANDS
41631   $ $0 $@
41632
41633 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41634 "
41635
41636 _ACEOF
41637
41638 case $ac_config_files in *"
41639 "*) set x $ac_config_files; shift; ac_config_files=$*;;
41640 esac
41641
41642 case $ac_config_headers in *"
41643 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41644 esac
41645
41646
41647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41648 # Files that config.status was made for.
41649 config_files="$ac_config_files"
41650 config_headers="$ac_config_headers"
41651 config_commands="$ac_config_commands"
41652
41653 _ACEOF
41654
41655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41656 ac_cs_usage="\
41657 \`$as_me' instantiates files and other configuration actions
41658 from templates according to the current configuration.  Unless the files
41659 and actions are specified as TAGs, all are instantiated by default.
41660
41661 Usage: $0 [OPTION]... [TAG]...
41662
41663   -h, --help       print this help, then exit
41664   -V, --version    print version number and configuration settings, then exit
41665       --config     print configuration, then exit
41666   -q, --quiet, --silent
41667                    do not print progress messages
41668   -d, --debug      don't remove temporary files
41669       --recheck    update $as_me by reconfiguring in the same conditions
41670       --file=FILE[:TEMPLATE]
41671                    instantiate the configuration file FILE
41672       --header=FILE[:TEMPLATE]
41673                    instantiate the configuration header FILE
41674
41675 Configuration files:
41676 $config_files
41677
41678 Configuration headers:
41679 $config_headers
41680
41681 Configuration commands:
41682 $config_commands
41683
41684 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
41685
41686 _ACEOF
41687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41688 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41689 ac_cs_version="\\
41690 curl config.status -
41691 configured by $0, generated by GNU Autoconf 2.69,
41692   with options \\"\$ac_cs_config\\"
41693
41694 Copyright (C) 2012 Free Software Foundation, Inc.
41695 This config.status script is free software; the Free Software Foundation
41696 gives unlimited permission to copy, distribute and modify it."
41697
41698 ac_pwd='$ac_pwd'
41699 srcdir='$srcdir'
41700 INSTALL='$INSTALL'
41701 MKDIR_P='$MKDIR_P'
41702 AWK='$AWK'
41703 test -n "\$AWK" || AWK=awk
41704 _ACEOF
41705
41706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41707 # The default lists apply if the user does not specify any file.
41708 ac_need_defaults=:
41709 while test $# != 0
41710 do
41711   case $1 in
41712   --*=?*)
41713     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41714     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41715     ac_shift=:
41716     ;;
41717   --*=)
41718     ac_option=`expr "X$1" : 'X\([^=]*\)='`
41719     ac_optarg=
41720     ac_shift=:
41721     ;;
41722   *)
41723     ac_option=$1
41724     ac_optarg=$2
41725     ac_shift=shift
41726     ;;
41727   esac
41728
41729   case $ac_option in
41730   # Handling of the options.
41731   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41732     ac_cs_recheck=: ;;
41733   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41734     $as_echo "$ac_cs_version"; exit ;;
41735   --config | --confi | --conf | --con | --co | --c )
41736     $as_echo "$ac_cs_config"; exit ;;
41737   --debug | --debu | --deb | --de | --d | -d )
41738     debug=: ;;
41739   --file | --fil | --fi | --f )
41740     $ac_shift
41741     case $ac_optarg in
41742     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41743     '') as_fn_error $? "missing file argument" ;;
41744     esac
41745     as_fn_append CONFIG_FILES " '$ac_optarg'"
41746     ac_need_defaults=false;;
41747   --header | --heade | --head | --hea )
41748     $ac_shift
41749     case $ac_optarg in
41750     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41751     esac
41752     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
41753     ac_need_defaults=false;;
41754   --he | --h)
41755     # Conflict between --help and --header
41756     as_fn_error $? "ambiguous option: \`$1'
41757 Try \`$0 --help' for more information.";;
41758   --help | --hel | -h )
41759     $as_echo "$ac_cs_usage"; exit ;;
41760   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41761   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41762     ac_cs_silent=: ;;
41763
41764   # This is an error.
41765   -*) as_fn_error $? "unrecognized option: \`$1'
41766 Try \`$0 --help' for more information." ;;
41767
41768   *) as_fn_append ac_config_targets " $1"
41769      ac_need_defaults=false ;;
41770
41771   esac
41772   shift
41773 done
41774
41775 ac_configure_extra_args=
41776
41777 if $ac_cs_silent; then
41778   exec 6>/dev/null
41779   ac_configure_extra_args="$ac_configure_extra_args --silent"
41780 fi
41781
41782 _ACEOF
41783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41784 if \$ac_cs_recheck; then
41785   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41786   shift
41787   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41788   CONFIG_SHELL='$SHELL'
41789   export CONFIG_SHELL
41790   exec "\$@"
41791 fi
41792
41793 _ACEOF
41794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41795 exec 5>>config.log
41796 {
41797   echo
41798   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41799 ## Running $as_me. ##
41800 _ASBOX
41801   $as_echo "$ac_log"
41802 } >&5
41803
41804 _ACEOF
41805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41806 #
41807 # INIT-COMMANDS
41808 #
41809 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41810
41811
41812 # The HP-UX ksh and POSIX shell print the target directory to stdout
41813 # if CDPATH is set.
41814 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41815
41816 sed_quote_subst='$sed_quote_subst'
41817 double_quote_subst='$double_quote_subst'
41818 delay_variable_subst='$delay_variable_subst'
41819 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41820 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41821 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
41822 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41823 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41824 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41825 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41826 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41827 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41828 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41829 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41830 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41831 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41832 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41833 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41834 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41835 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41836 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41837 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41838 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41839 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41840 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41841 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41842 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41843 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41844 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41845 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41846 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41847 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41848 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41849 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41850 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41851 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41852 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41853 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41854 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41855 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41856 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41857 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41858 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41859 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41860 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41861 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41862 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41863 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41864 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41865 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41866 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41867 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41868 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41869 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41870 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41871 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41872 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41873 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41874 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41875 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41876 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41877 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41878 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"`'
41879 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41880 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41881 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41882 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41883 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41884 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41885 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41886 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41887 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41888 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41889 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41890 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41891 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41892 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41893 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41894 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41895 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41896 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41897 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41898 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41899 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41900 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41901 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41902 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41903 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41904 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41905 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41906 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41907 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41908 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41909 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41910 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41911 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41912 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41913 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41914 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41915 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41916 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41917 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41918 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41919 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41920 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41921 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41922 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41923 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41924 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41925 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41926 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41927 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41928 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41929 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41930 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41931 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41932 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41933 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41934 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41935 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41936 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41937 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41938 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41939 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41940 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41941 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41942 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41943 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41944 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41945 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41946 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41947 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41948 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41949 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41950 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41951 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41952 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41953 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41954 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41955
41956 LTCC='$LTCC'
41957 LTCFLAGS='$LTCFLAGS'
41958 compiler='$compiler_DEFAULT'
41959
41960 # A function that is used when there is no print builtin or printf.
41961 func_fallback_echo ()
41962 {
41963   eval 'cat <<_LTECHO_EOF
41964 \$1
41965 _LTECHO_EOF'
41966 }
41967
41968 # Quote evaled strings.
41969 for var in AS \
41970 DLLTOOL \
41971 OBJDUMP \
41972 SHELL \
41973 ECHO \
41974 PATH_SEPARATOR \
41975 SED \
41976 GREP \
41977 EGREP \
41978 FGREP \
41979 LD \
41980 NM \
41981 LN_S \
41982 lt_SP2NL \
41983 lt_NL2SP \
41984 reload_flag \
41985 deplibs_check_method \
41986 file_magic_cmd \
41987 file_magic_glob \
41988 want_nocaseglob \
41989 sharedlib_from_linklib_cmd \
41990 AR \
41991 AR_FLAGS \
41992 archiver_list_spec \
41993 STRIP \
41994 RANLIB \
41995 CC \
41996 CFLAGS \
41997 compiler \
41998 lt_cv_sys_global_symbol_pipe \
41999 lt_cv_sys_global_symbol_to_cdecl \
42000 lt_cv_sys_global_symbol_to_import \
42001 lt_cv_sys_global_symbol_to_c_name_address \
42002 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42003 lt_cv_nm_interface \
42004 nm_file_list_spec \
42005 lt_cv_truncate_bin \
42006 lt_prog_compiler_no_builtin_flag \
42007 lt_prog_compiler_pic \
42008 lt_prog_compiler_wl \
42009 lt_prog_compiler_static \
42010 lt_cv_prog_compiler_c_o \
42011 need_locks \
42012 MANIFEST_TOOL \
42013 DSYMUTIL \
42014 NMEDIT \
42015 LIPO \
42016 OTOOL \
42017 OTOOL64 \
42018 shrext_cmds \
42019 export_dynamic_flag_spec \
42020 whole_archive_flag_spec \
42021 compiler_needs_object \
42022 with_gnu_ld \
42023 allow_undefined_flag \
42024 no_undefined_flag \
42025 hardcode_libdir_flag_spec \
42026 hardcode_libdir_separator \
42027 exclude_expsyms \
42028 include_expsyms \
42029 file_list_spec \
42030 variables_saved_for_relink \
42031 libname_spec \
42032 library_names_spec \
42033 soname_spec \
42034 install_override_mode \
42035 finish_eval \
42036 old_striplib \
42037 striplib; do
42038     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42039     *[\\\\\\\`\\"\\\$]*)
42040       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42041       ;;
42042     *)
42043       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42044       ;;
42045     esac
42046 done
42047
42048 # Double-quote double-evaled strings.
42049 for var in reload_cmds \
42050 old_postinstall_cmds \
42051 old_postuninstall_cmds \
42052 old_archive_cmds \
42053 extract_expsyms_cmds \
42054 old_archive_from_new_cmds \
42055 old_archive_from_expsyms_cmds \
42056 archive_cmds \
42057 archive_expsym_cmds \
42058 module_cmds \
42059 module_expsym_cmds \
42060 export_symbols_cmds \
42061 prelink_cmds \
42062 postlink_cmds \
42063 postinstall_cmds \
42064 postuninstall_cmds \
42065 finish_cmds \
42066 sys_lib_search_path_spec \
42067 configure_time_dlsearch_path \
42068 configure_time_lt_sys_library_path; do
42069     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42070     *[\\\\\\\`\\"\\\$]*)
42071       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42072       ;;
42073     *)
42074       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42075       ;;
42076     esac
42077 done
42078
42079 ac_aux_dir='$ac_aux_dir'
42080
42081 # See if we are running on zsh, and set the options that allow our
42082 # commands through without removal of \ escapes INIT.
42083 if test -n "\${ZSH_VERSION+set}"; then
42084    setopt NO_GLOB_SUBST
42085 fi
42086
42087
42088     PACKAGE='$PACKAGE'
42089     VERSION='$VERSION'
42090     RM='$RM'
42091     ofile='$ofile'
42092
42093
42094
42095
42096 _ACEOF
42097
42098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42099
42100 # Handling of arguments.
42101 for ac_config_target in $ac_config_targets
42102 do
42103   case $ac_config_target in
42104     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42105     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42106     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42107     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42108     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42109     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42110     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42111     "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42112     "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42113     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42114     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42115     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42116     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42117     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42118     "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42119     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42120     "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42121     "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42122     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42123     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42124     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42125     "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
42126     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42127     "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42128     "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42129     "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42130     "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42131     "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42132     "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42133     "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42134     "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42135     "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42136     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42137     "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42138     "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42139     "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42140     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42141     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42142
42143   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42144   esac
42145 done
42146
42147
42148 # If the user did not use the arguments to specify the items to instantiate,
42149 # then the envvar interface is used.  Set only those that are not.
42150 # We use the long form for the default assignment because of an extremely
42151 # bizarre bug on SunOS 4.1.3.
42152 if $ac_need_defaults; then
42153   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42154   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42155   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42156 fi
42157
42158 # Have a temporary directory for convenience.  Make it in the build tree
42159 # simply because there is no reason against having it here, and in addition,
42160 # creating and moving files from /tmp can sometimes cause problems.
42161 # Hook for its removal unless debugging.
42162 # Note that there is a small window in which the directory will not be cleaned:
42163 # after its creation but before its name has been assigned to `$tmp'.
42164 $debug ||
42165 {
42166   tmp= ac_tmp=
42167   trap 'exit_status=$?
42168   : "${ac_tmp:=$tmp}"
42169   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42170 ' 0
42171   trap 'as_fn_exit 1' 1 2 13 15
42172 }
42173 # Create a (secure) tmp directory for tmp files.
42174
42175 {
42176   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42177   test -d "$tmp"
42178 }  ||
42179 {
42180   tmp=./conf$$-$RANDOM
42181   (umask 077 && mkdir "$tmp")
42182 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42183 ac_tmp=$tmp
42184
42185 # Set up the scripts for CONFIG_FILES section.
42186 # No need to generate them if there are no CONFIG_FILES.
42187 # This happens for instance with `./config.status config.h'.
42188 if test -n "$CONFIG_FILES"; then
42189
42190
42191 ac_cr=`echo X | tr X '\015'`
42192 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42193 # But we know of no other shell where ac_cr would be empty at this
42194 # point, so we can use a bashism as a fallback.
42195 if test "x$ac_cr" = x; then
42196   eval ac_cr=\$\'\\r\'
42197 fi
42198 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42199 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42200   ac_cs_awk_cr='\\r'
42201 else
42202   ac_cs_awk_cr=$ac_cr
42203 fi
42204
42205 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42206 _ACEOF
42207
42208
42209 {
42210   echo "cat >conf$$subs.awk <<_ACEOF" &&
42211   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42212   echo "_ACEOF"
42213 } >conf$$subs.sh ||
42214   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42215 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42216 ac_delim='%!_!# '
42217 for ac_last_try in false false false false false :; do
42218   . ./conf$$subs.sh ||
42219     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42220
42221   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42222   if test $ac_delim_n = $ac_delim_num; then
42223     break
42224   elif $ac_last_try; then
42225     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42226   else
42227     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42228   fi
42229 done
42230 rm -f conf$$subs.sh
42231
42232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42233 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42234 _ACEOF
42235 sed -n '
42236 h
42237 s/^/S["/; s/!.*/"]=/
42238 p
42239 g
42240 s/^[^!]*!//
42241 :repl
42242 t repl
42243 s/'"$ac_delim"'$//
42244 t delim
42245 :nl
42246 h
42247 s/\(.\{148\}\)..*/\1/
42248 t more1
42249 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42250 p
42251 n
42252 b repl
42253 :more1
42254 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42255 p
42256 g
42257 s/.\{148\}//
42258 t nl
42259 :delim
42260 h
42261 s/\(.\{148\}\)..*/\1/
42262 t more2
42263 s/["\\]/\\&/g; s/^/"/; s/$/"/
42264 p
42265 b
42266 :more2
42267 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42268 p
42269 g
42270 s/.\{148\}//
42271 t delim
42272 ' <conf$$subs.awk | sed '
42273 /^[^""]/{
42274   N
42275   s/\n//
42276 }
42277 ' >>$CONFIG_STATUS || ac_write_fail=1
42278 rm -f conf$$subs.awk
42279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42280 _ACAWK
42281 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42282   for (key in S) S_is_set[key] = 1
42283   FS = "\a"
42284
42285 }
42286 {
42287   line = $ 0
42288   nfields = split(line, field, "@")
42289   substed = 0
42290   len = length(field[1])
42291   for (i = 2; i < nfields; i++) {
42292     key = field[i]
42293     keylen = length(key)
42294     if (S_is_set[key]) {
42295       value = S[key]
42296       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42297       len += length(value) + length(field[++i])
42298       substed = 1
42299     } else
42300       len += 1 + keylen
42301   }
42302
42303   print line
42304 }
42305
42306 _ACAWK
42307 _ACEOF
42308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42309 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42310   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42311 else
42312   cat
42313 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42314   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42315 _ACEOF
42316
42317 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42318 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42319 # trailing colons and then remove the whole line if VPATH becomes empty
42320 # (actually we leave an empty line to preserve line numbers).
42321 if test "x$srcdir" = x.; then
42322   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
42323 h
42324 s///
42325 s/^/:/
42326 s/[      ]*$/:/
42327 s/:\$(srcdir):/:/g
42328 s/:\${srcdir}:/:/g
42329 s/:@srcdir@:/:/g
42330 s/^:*//
42331 s/:*$//
42332 x
42333 s/\(=[   ]*\).*/\1/
42334 G
42335 s/\n//
42336 s/^[^=]*=[       ]*$//
42337 }'
42338 fi
42339
42340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42341 fi # test -n "$CONFIG_FILES"
42342
42343 # Set up the scripts for CONFIG_HEADERS section.
42344 # No need to generate them if there are no CONFIG_HEADERS.
42345 # This happens for instance with `./config.status Makefile'.
42346 if test -n "$CONFIG_HEADERS"; then
42347 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42348 BEGIN {
42349 _ACEOF
42350
42351 # Transform confdefs.h into an awk script `defines.awk', embedded as
42352 # here-document in config.status, that substitutes the proper values into
42353 # config.h.in to produce config.h.
42354
42355 # Create a delimiter string that does not exist in confdefs.h, to ease
42356 # handling of long lines.
42357 ac_delim='%!_!# '
42358 for ac_last_try in false false :; do
42359   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42360   if test -z "$ac_tt"; then
42361     break
42362   elif $ac_last_try; then
42363     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42364   else
42365     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42366   fi
42367 done
42368
42369 # For the awk script, D is an array of macro values keyed by name,
42370 # likewise P contains macro parameters if any.  Preserve backslash
42371 # newline sequences.
42372
42373 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42374 sed -n '
42375 s/.\{148\}/&'"$ac_delim"'/g
42376 t rset
42377 :rset
42378 s/^[     ]*#[    ]*define[       ][      ]*/ /
42379 t def
42380 d
42381 :def
42382 s/\\$//
42383 t bsnl
42384 s/["\\]/\\&/g
42385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
42386 D["\1"]=" \3"/p
42387 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
42388 d
42389 :bsnl
42390 s/["\\]/\\&/g
42391 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
42392 D["\1"]=" \3\\\\\\n"\\/p
42393 t cont
42394 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42395 t cont
42396 d
42397 :cont
42398 n
42399 s/.\{148\}/&'"$ac_delim"'/g
42400 t clear
42401 :clear
42402 s/\\$//
42403 t bsnlc
42404 s/["\\]/\\&/g; s/^/"/; s/$/"/p
42405 d
42406 :bsnlc
42407 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42408 b cont
42409 ' <confdefs.h | sed '
42410 s/'"$ac_delim"'/"\\\
42411 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42412
42413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42414   for (key in D) D_is_set[key] = 1
42415   FS = "\a"
42416 }
42417 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42418   line = \$ 0
42419   split(line, arg, " ")
42420   if (arg[1] == "#") {
42421     defundef = arg[2]
42422     mac1 = arg[3]
42423   } else {
42424     defundef = substr(arg[1], 2)
42425     mac1 = arg[2]
42426   }
42427   split(mac1, mac2, "(") #)
42428   macro = mac2[1]
42429   prefix = substr(line, 1, index(line, defundef) - 1)
42430   if (D_is_set[macro]) {
42431     # Preserve the white space surrounding the "#".
42432     print prefix "define", macro P[macro] D[macro]
42433     next
42434   } else {
42435     # Replace #undef with comments.  This is necessary, for example,
42436     # in the case of _POSIX_SOURCE, which is predefined and required
42437     # on some systems where configure will not decide to define it.
42438     if (defundef == "undef") {
42439       print "/*", prefix defundef, macro, "*/"
42440       next
42441     }
42442   }
42443 }
42444 { print }
42445 _ACAWK
42446 _ACEOF
42447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42448   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42449 fi # test -n "$CONFIG_HEADERS"
42450
42451
42452 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
42453 shift
42454 for ac_tag
42455 do
42456   case $ac_tag in
42457   :[FHLC]) ac_mode=$ac_tag; continue;;
42458   esac
42459   case $ac_mode$ac_tag in
42460   :[FHL]*:*);;
42461   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42462   :[FH]-) ac_tag=-:-;;
42463   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42464   esac
42465   ac_save_IFS=$IFS
42466   IFS=:
42467   set x $ac_tag
42468   IFS=$ac_save_IFS
42469   shift
42470   ac_file=$1
42471   shift
42472
42473   case $ac_mode in
42474   :L) ac_source=$1;;
42475   :[FH])
42476     ac_file_inputs=
42477     for ac_f
42478     do
42479       case $ac_f in
42480       -) ac_f="$ac_tmp/stdin";;
42481       *) # Look for the file first in the build tree, then in the source tree
42482          # (if the path is not absolute).  The absolute path cannot be DOS-style,
42483          # because $ac_f cannot contain `:'.
42484          test -f "$ac_f" ||
42485            case $ac_f in
42486            [\\/$]*) false;;
42487            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42488            esac ||
42489            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42490       esac
42491       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42492       as_fn_append ac_file_inputs " '$ac_f'"
42493     done
42494
42495     # Let's still pretend it is `configure' which instantiates (i.e., don't
42496     # use $as_me), people would be surprised to read:
42497     #    /* config.h.  Generated by config.status.  */
42498     configure_input='Generated from '`
42499           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42500         `' by configure.'
42501     if test x"$ac_file" != x-; then
42502       configure_input="$ac_file.  $configure_input"
42503       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42504 $as_echo "$as_me: creating $ac_file" >&6;}
42505     fi
42506     # Neutralize special characters interpreted by sed in replacement strings.
42507     case $configure_input in #(
42508     *\&* | *\|* | *\\* )
42509        ac_sed_conf_input=`$as_echo "$configure_input" |
42510        sed 's/[\\\\&|]/\\\\&/g'`;; #(
42511     *) ac_sed_conf_input=$configure_input;;
42512     esac
42513
42514     case $ac_tag in
42515     *:-:* | *:-) cat >"$ac_tmp/stdin" \
42516       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42517     esac
42518     ;;
42519   esac
42520
42521   ac_dir=`$as_dirname -- "$ac_file" ||
42522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42523          X"$ac_file" : 'X\(//\)[^/]' \| \
42524          X"$ac_file" : 'X\(//\)$' \| \
42525          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42526 $as_echo X"$ac_file" |
42527     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42528             s//\1/
42529             q
42530           }
42531           /^X\(\/\/\)[^/].*/{
42532             s//\1/
42533             q
42534           }
42535           /^X\(\/\/\)$/{
42536             s//\1/
42537             q
42538           }
42539           /^X\(\/\).*/{
42540             s//\1/
42541             q
42542           }
42543           s/.*/./; q'`
42544   as_dir="$ac_dir"; as_fn_mkdir_p
42545   ac_builddir=.
42546
42547 case "$ac_dir" in
42548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42549 *)
42550   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42551   # A ".." for each directory in $ac_dir_suffix.
42552   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42553   case $ac_top_builddir_sub in
42554   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42555   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42556   esac ;;
42557 esac
42558 ac_abs_top_builddir=$ac_pwd
42559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42560 # for backward compatibility:
42561 ac_top_builddir=$ac_top_build_prefix
42562
42563 case $srcdir in
42564   .)  # We are building in place.
42565     ac_srcdir=.
42566     ac_top_srcdir=$ac_top_builddir_sub
42567     ac_abs_top_srcdir=$ac_pwd ;;
42568   [\\/]* | ?:[\\/]* )  # Absolute name.
42569     ac_srcdir=$srcdir$ac_dir_suffix;
42570     ac_top_srcdir=$srcdir
42571     ac_abs_top_srcdir=$srcdir ;;
42572   *) # Relative name.
42573     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42574     ac_top_srcdir=$ac_top_build_prefix$srcdir
42575     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42576 esac
42577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42578
42579
42580   case $ac_mode in
42581   :F)
42582   #
42583   # CONFIG_FILE
42584   #
42585
42586   case $INSTALL in
42587   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42588   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42589   esac
42590   ac_MKDIR_P=$MKDIR_P
42591   case $MKDIR_P in
42592   [\\/$]* | ?:[\\/]* ) ;;
42593   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42594   esac
42595 _ACEOF
42596
42597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42598 # If the template does not know about datarootdir, expand it.
42599 # FIXME: This hack should be removed a few years after 2.60.
42600 ac_datarootdir_hack=; ac_datarootdir_seen=
42601 ac_sed_dataroot='
42602 /datarootdir/ {
42603   p
42604   q
42605 }
42606 /@datadir@/p
42607 /@docdir@/p
42608 /@infodir@/p
42609 /@localedir@/p
42610 /@mandir@/p'
42611 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42612 *datarootdir*) ac_datarootdir_seen=yes;;
42613 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42614   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42615 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42616 _ACEOF
42617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42618   ac_datarootdir_hack='
42619   s&@datadir@&$datadir&g
42620   s&@docdir@&$docdir&g
42621   s&@infodir@&$infodir&g
42622   s&@localedir@&$localedir&g
42623   s&@mandir@&$mandir&g
42624   s&\\\${datarootdir}&$datarootdir&g' ;;
42625 esac
42626 _ACEOF
42627
42628 # Neutralize VPATH when `$srcdir' = `.'.
42629 # Shell code in configure.ac might set extrasub.
42630 # FIXME: do we really want to maintain this feature?
42631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42632 ac_sed_extra="$ac_vpsub
42633 $extrasub
42634 _ACEOF
42635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42636 :t
42637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42638 s|@configure_input@|$ac_sed_conf_input|;t t
42639 s&@top_builddir@&$ac_top_builddir_sub&;t t
42640 s&@top_build_prefix@&$ac_top_build_prefix&;t t
42641 s&@srcdir@&$ac_srcdir&;t t
42642 s&@abs_srcdir@&$ac_abs_srcdir&;t t
42643 s&@top_srcdir@&$ac_top_srcdir&;t t
42644 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42645 s&@builddir@&$ac_builddir&;t t
42646 s&@abs_builddir@&$ac_abs_builddir&;t t
42647 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42648 s&@INSTALL@&$ac_INSTALL&;t t
42649 s&@MKDIR_P@&$ac_MKDIR_P&;t t
42650 $ac_datarootdir_hack
42651 "
42652 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42653   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42654
42655 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42656   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42657   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
42658       "$ac_tmp/out"`; test -z "$ac_out"; } &&
42659   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42660 which seems to be undefined.  Please make sure it is defined" >&5
42661 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42662 which seems to be undefined.  Please make sure it is defined" >&2;}
42663
42664   rm -f "$ac_tmp/stdin"
42665   case $ac_file in
42666   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42667   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42668   esac \
42669   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42670  ;;
42671   :H)
42672   #
42673   # CONFIG_HEADER
42674   #
42675   if test x"$ac_file" != x-; then
42676     {
42677       $as_echo "/* $configure_input  */" \
42678       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42679     } >"$ac_tmp/config.h" \
42680       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42681     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42682       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42683 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42684     else
42685       rm -f "$ac_file"
42686       mv "$ac_tmp/config.h" "$ac_file" \
42687         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42688     fi
42689   else
42690     $as_echo "/* $configure_input  */" \
42691       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42692       || as_fn_error $? "could not create -" "$LINENO" 5
42693   fi
42694 # Compute "$ac_file"'s index in $config_headers.
42695 _am_arg="$ac_file"
42696 _am_stamp_count=1
42697 for _am_header in $config_headers :; do
42698   case $_am_header in
42699     $_am_arg | $_am_arg:* )
42700       break ;;
42701     * )
42702       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42703   esac
42704 done
42705 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42706 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42707          X"$_am_arg" : 'X\(//\)[^/]' \| \
42708          X"$_am_arg" : 'X\(//\)$' \| \
42709          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42710 $as_echo X"$_am_arg" |
42711     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42712             s//\1/
42713             q
42714           }
42715           /^X\(\/\/\)[^/].*/{
42716             s//\1/
42717             q
42718           }
42719           /^X\(\/\/\)$/{
42720             s//\1/
42721             q
42722           }
42723           /^X\(\/\).*/{
42724             s//\1/
42725             q
42726           }
42727           s/.*/./; q'`/stamp-h$_am_stamp_count
42728  ;;
42729
42730   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42731 $as_echo "$as_me: executing $ac_file commands" >&6;}
42732  ;;
42733   esac
42734
42735
42736   case $ac_file$ac_mode in
42737     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
42738   # Older Autoconf quotes --file arguments for eval, but not when files
42739   # are listed without --file.  Let's play safe and only enable the eval
42740   # if we detect the quoting.
42741   case $CONFIG_FILES in
42742   *\'*) eval set x "$CONFIG_FILES" ;;
42743   *)   set x $CONFIG_FILES ;;
42744   esac
42745   shift
42746   for mf
42747   do
42748     # Strip MF so we end up with the name of the file.
42749     mf=`echo "$mf" | sed -e 's/:.*$//'`
42750     # Check whether this is an Automake generated Makefile or not.
42751     # We used to match only the files named 'Makefile.in', but
42752     # some people rename them; so instead we look at the file content.
42753     # Grep'ing the first line is not enough: some people post-process
42754     # each Makefile.in and add a new line on top of each file to say so.
42755     # Grep'ing the whole file is not good either: AIX grep has a line
42756     # limit of 2048, but all sed's we know have understand at least 4000.
42757     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
42758       dirpart=`$as_dirname -- "$mf" ||
42759 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42760          X"$mf" : 'X\(//\)[^/]' \| \
42761          X"$mf" : 'X\(//\)$' \| \
42762          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42763 $as_echo X"$mf" |
42764     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42765             s//\1/
42766             q
42767           }
42768           /^X\(\/\/\)[^/].*/{
42769             s//\1/
42770             q
42771           }
42772           /^X\(\/\/\)$/{
42773             s//\1/
42774             q
42775           }
42776           /^X\(\/\).*/{
42777             s//\1/
42778             q
42779           }
42780           s/.*/./; q'`
42781     else
42782       continue
42783     fi
42784     # Extract the definition of DEPDIR, am__include, and am__quote
42785     # from the Makefile without running 'make'.
42786     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42787     test -z "$DEPDIR" && continue
42788     am__include=`sed -n 's/^am__include = //p' < "$mf"`
42789     test -z "$am__include" && continue
42790     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42791     # Find all dependency output files, they are included files with
42792     # $(DEPDIR) in their names.  We invoke sed twice because it is the
42793     # simplest approach to changing $(DEPDIR) to its actual value in the
42794     # expansion.
42795     for file in `sed -n "
42796       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42797          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42798       # Make sure the directory exists.
42799       test -f "$dirpart/$file" && continue
42800       fdir=`$as_dirname -- "$file" ||
42801 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42802          X"$file" : 'X\(//\)[^/]' \| \
42803          X"$file" : 'X\(//\)$' \| \
42804          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42805 $as_echo X"$file" |
42806     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42807             s//\1/
42808             q
42809           }
42810           /^X\(\/\/\)[^/].*/{
42811             s//\1/
42812             q
42813           }
42814           /^X\(\/\/\)$/{
42815             s//\1/
42816             q
42817           }
42818           /^X\(\/\).*/{
42819             s//\1/
42820             q
42821           }
42822           s/.*/./; q'`
42823       as_dir=$dirpart/$fdir; as_fn_mkdir_p
42824       # echo "creating $dirpart/$file"
42825       echo '# dummy' > "$dirpart/$file"
42826     done
42827   done
42828 }
42829  ;;
42830     "libtool":C)
42831
42832     # See if we are running on zsh, and set the options that allow our
42833     # commands through without removal of \ escapes.
42834     if test -n "${ZSH_VERSION+set}"; then
42835       setopt NO_GLOB_SUBST
42836     fi
42837
42838     cfgfile=${ofile}T
42839     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42840     $RM "$cfgfile"
42841
42842     cat <<_LT_EOF >> "$cfgfile"
42843 #! $SHELL
42844 # Generated automatically by $as_me ($PACKAGE) $VERSION
42845 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42846
42847 # Provide generalized library-building support services.
42848 # Written by Gordon Matzigkeit, 1996
42849
42850 # Copyright (C) 2014 Free Software Foundation, Inc.
42851 # This is free software; see the source for copying conditions.  There is NO
42852 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42853
42854 # GNU Libtool is free software; you can redistribute it and/or modify
42855 # it under the terms of the GNU General Public License as published by
42856 # the Free Software Foundation; either version 2 of of the License, or
42857 # (at your option) any later version.
42858 #
42859 # As a special exception to the GNU General Public License, if you
42860 # distribute this file as part of a program or library that is built
42861 # using GNU Libtool, you may include this file under the  same
42862 # distribution terms that you use for the rest of that program.
42863 #
42864 # GNU Libtool is distributed in the hope that it will be useful, but
42865 # WITHOUT ANY WARRANTY; without even the implied warranty of
42866 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
42867 # GNU General Public License for more details.
42868 #
42869 # You should have received a copy of the GNU General Public License
42870 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
42871
42872
42873 # The names of the tagged configurations supported by this script.
42874 available_tags=''
42875
42876 # Configured defaults for sys_lib_dlsearch_path munging.
42877 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42878
42879 # ### BEGIN LIBTOOL CONFIG
42880
42881 # Which release of libtool.m4 was used?
42882 macro_version=$macro_version
42883 macro_revision=$macro_revision
42884
42885 # Assembler program.
42886 AS=$lt_AS
42887
42888 # DLL creation program.
42889 DLLTOOL=$lt_DLLTOOL
42890
42891 # Object dumper program.
42892 OBJDUMP=$lt_OBJDUMP
42893
42894 # Whether or not to build shared libraries.
42895 build_libtool_libs=$enable_shared
42896
42897 # Whether or not to build static libraries.
42898 build_old_libs=$enable_static
42899
42900 # What type of objects to build.
42901 pic_mode=$pic_mode
42902
42903 # Whether or not to optimize for fast installation.
42904 fast_install=$enable_fast_install
42905
42906 # Shared archive member basename,for filename based shared library versioning on AIX.
42907 shared_archive_member_spec=$shared_archive_member_spec
42908
42909 # Shell to use when invoking shell scripts.
42910 SHELL=$lt_SHELL
42911
42912 # An echo program that protects backslashes.
42913 ECHO=$lt_ECHO
42914
42915 # The PATH separator for the build system.
42916 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42917
42918 # The host system.
42919 host_alias=$host_alias
42920 host=$host
42921 host_os=$host_os
42922
42923 # The build system.
42924 build_alias=$build_alias
42925 build=$build
42926 build_os=$build_os
42927
42928 # A sed program that does not truncate output.
42929 SED=$lt_SED
42930
42931 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42932 Xsed="\$SED -e 1s/^X//"
42933
42934 # A grep program that handles long lines.
42935 GREP=$lt_GREP
42936
42937 # An ERE matcher.
42938 EGREP=$lt_EGREP
42939
42940 # A literal string matcher.
42941 FGREP=$lt_FGREP
42942
42943 # A BSD- or MS-compatible name lister.
42944 NM=$lt_NM
42945
42946 # Whether we need soft or hard links.
42947 LN_S=$lt_LN_S
42948
42949 # What is the maximum length of a command?
42950 max_cmd_len=$max_cmd_len
42951
42952 # Object file suffix (normally "o").
42953 objext=$ac_objext
42954
42955 # Executable file suffix (normally "").
42956 exeext=$exeext
42957
42958 # whether the shell understands "unset".
42959 lt_unset=$lt_unset
42960
42961 # turn spaces into newlines.
42962 SP2NL=$lt_lt_SP2NL
42963
42964 # turn newlines into spaces.
42965 NL2SP=$lt_lt_NL2SP
42966
42967 # convert \$build file names to \$host format.
42968 to_host_file_cmd=$lt_cv_to_host_file_cmd
42969
42970 # convert \$build files to toolchain format.
42971 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42972
42973 # Method to check whether dependent libraries are shared objects.
42974 deplibs_check_method=$lt_deplibs_check_method
42975
42976 # Command to use when deplibs_check_method = "file_magic".
42977 file_magic_cmd=$lt_file_magic_cmd
42978
42979 # How to find potential files when deplibs_check_method = "file_magic".
42980 file_magic_glob=$lt_file_magic_glob
42981
42982 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42983 want_nocaseglob=$lt_want_nocaseglob
42984
42985 # Command to associate shared and link libraries.
42986 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42987
42988 # The archiver.
42989 AR=$lt_AR
42990
42991 # Flags to create an archive.
42992 AR_FLAGS=$lt_AR_FLAGS
42993
42994 # How to feed a file listing to the archiver.
42995 archiver_list_spec=$lt_archiver_list_spec
42996
42997 # A symbol stripping program.
42998 STRIP=$lt_STRIP
42999
43000 # Commands used to install an old-style archive.
43001 RANLIB=$lt_RANLIB
43002 old_postinstall_cmds=$lt_old_postinstall_cmds
43003 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43004
43005 # Whether to use a lock for old archive extraction.
43006 lock_old_archive_extraction=$lock_old_archive_extraction
43007
43008 # A C compiler.
43009 LTCC=$lt_CC
43010
43011 # LTCC compiler flags.
43012 LTCFLAGS=$lt_CFLAGS
43013
43014 # Take the output of nm and produce a listing of raw symbols and C names.
43015 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43016
43017 # Transform the output of nm in a proper C declaration.
43018 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43019
43020 # Transform the output of nm into a list of symbols to manually relocate.
43021 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43022
43023 # Transform the output of nm in a C name address pair.
43024 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43025
43026 # Transform the output of nm in a C name address pair when lib prefix is needed.
43027 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43028
43029 # The name lister interface.
43030 nm_interface=$lt_lt_cv_nm_interface
43031
43032 # Specify filename containing input files for \$NM.
43033 nm_file_list_spec=$lt_nm_file_list_spec
43034
43035 # The root where to search for dependent libraries,and where our libraries should be installed.
43036 lt_sysroot=$lt_sysroot
43037
43038 # Command to truncate a binary pipe.
43039 lt_truncate_bin=$lt_lt_cv_truncate_bin
43040
43041 # The name of the directory that contains temporary libtool files.
43042 objdir=$objdir
43043
43044 # Used to examine libraries when file_magic_cmd begins with "file".
43045 MAGIC_CMD=$MAGIC_CMD
43046
43047 # Must we lock files when doing compilation?
43048 need_locks=$lt_need_locks
43049
43050 # Manifest tool.
43051 MANIFEST_TOOL=$lt_MANIFEST_TOOL
43052
43053 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43054 DSYMUTIL=$lt_DSYMUTIL
43055
43056 # Tool to change global to local symbols on Mac OS X.
43057 NMEDIT=$lt_NMEDIT
43058
43059 # Tool to manipulate fat objects and archives on Mac OS X.
43060 LIPO=$lt_LIPO
43061
43062 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43063 OTOOL=$lt_OTOOL
43064
43065 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43066 OTOOL64=$lt_OTOOL64
43067
43068 # Old archive suffix (normally "a").
43069 libext=$libext
43070
43071 # Shared library suffix (normally ".so").
43072 shrext_cmds=$lt_shrext_cmds
43073
43074 # The commands to extract the exported symbol list from a shared archive.
43075 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43076
43077 # Variables whose values should be saved in libtool wrapper scripts and
43078 # restored at link time.
43079 variables_saved_for_relink=$lt_variables_saved_for_relink
43080
43081 # Do we need the "lib" prefix for modules?
43082 need_lib_prefix=$need_lib_prefix
43083
43084 # Do we need a version for libraries?
43085 need_version=$need_version
43086
43087 # Library versioning type.
43088 version_type=$version_type
43089
43090 # Shared library runtime path variable.
43091 runpath_var=$runpath_var
43092
43093 # Shared library path variable.
43094 shlibpath_var=$shlibpath_var
43095
43096 # Is shlibpath searched before the hard-coded library search path?
43097 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43098
43099 # Format of library name prefix.
43100 libname_spec=$lt_libname_spec
43101
43102 # List of archive names.  First name is the real one, the rest are links.
43103 # The last name is the one that the linker finds with -lNAME
43104 library_names_spec=$lt_library_names_spec
43105
43106 # The coded name of the library, if different from the real name.
43107 soname_spec=$lt_soname_spec
43108
43109 # Permission mode override for installation of shared libraries.
43110 install_override_mode=$lt_install_override_mode
43111
43112 # Command to use after installation of a shared archive.
43113 postinstall_cmds=$lt_postinstall_cmds
43114
43115 # Command to use after uninstallation of a shared archive.
43116 postuninstall_cmds=$lt_postuninstall_cmds
43117
43118 # Commands used to finish a libtool library installation in a directory.
43119 finish_cmds=$lt_finish_cmds
43120
43121 # As "finish_cmds", except a single script fragment to be evaled but
43122 # not shown.
43123 finish_eval=$lt_finish_eval
43124
43125 # Whether we should hardcode library paths into libraries.
43126 hardcode_into_libs=$hardcode_into_libs
43127
43128 # Compile-time system search path for libraries.
43129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43130
43131 # Detected run-time system search path for libraries.
43132 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43133
43134 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43135 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43136
43137 # Whether dlopen is supported.
43138 dlopen_support=$enable_dlopen
43139
43140 # Whether dlopen of programs is supported.
43141 dlopen_self=$enable_dlopen_self
43142
43143 # Whether dlopen of statically linked programs is supported.
43144 dlopen_self_static=$enable_dlopen_self_static
43145
43146 # Commands to strip libraries.
43147 old_striplib=$lt_old_striplib
43148 striplib=$lt_striplib
43149
43150
43151 # The linker used to build libraries.
43152 LD=$lt_LD
43153
43154 # How to create reloadable object files.
43155 reload_flag=$lt_reload_flag
43156 reload_cmds=$lt_reload_cmds
43157
43158 # Commands used to build an old-style archive.
43159 old_archive_cmds=$lt_old_archive_cmds
43160
43161 # A language specific compiler.
43162 CC=$lt_compiler
43163
43164 # Is the compiler the GNU compiler?
43165 with_gcc=$GCC
43166
43167 # Compiler flag to turn off builtin functions.
43168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43169
43170 # Additional compiler flags for building library objects.
43171 pic_flag=$lt_lt_prog_compiler_pic
43172
43173 # How to pass a linker flag through the compiler.
43174 wl=$lt_lt_prog_compiler_wl
43175
43176 # Compiler flag to prevent dynamic linking.
43177 link_static_flag=$lt_lt_prog_compiler_static
43178
43179 # Does compiler simultaneously support -c and -o options?
43180 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43181
43182 # Whether or not to add -lc for building shared libraries.
43183 build_libtool_need_lc=$archive_cmds_need_lc
43184
43185 # Whether or not to disallow shared libs when runtime libs are static.
43186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43187
43188 # Compiler flag to allow reflexive dlopens.
43189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43190
43191 # Compiler flag to generate shared objects directly from archives.
43192 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43193
43194 # Whether the compiler copes with passing no objects directly.
43195 compiler_needs_object=$lt_compiler_needs_object
43196
43197 # Create an old-style archive from a shared archive.
43198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43199
43200 # Create a temporary old-style archive to link instead of a shared archive.
43201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43202
43203 # Commands used to build a shared archive.
43204 archive_cmds=$lt_archive_cmds
43205 archive_expsym_cmds=$lt_archive_expsym_cmds
43206
43207 # Commands used to build a loadable module if different from building
43208 # a shared archive.
43209 module_cmds=$lt_module_cmds
43210 module_expsym_cmds=$lt_module_expsym_cmds
43211
43212 # Whether we are building with GNU ld or not.
43213 with_gnu_ld=$lt_with_gnu_ld
43214
43215 # Flag that allows shared libraries with undefined symbols to be built.
43216 allow_undefined_flag=$lt_allow_undefined_flag
43217
43218 # Flag that enforces no undefined symbols.
43219 no_undefined_flag=$lt_no_undefined_flag
43220
43221 # Flag to hardcode \$libdir into a binary during linking.
43222 # This must work even if \$libdir does not exist
43223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43224
43225 # Whether we need a single "-rpath" flag with a separated argument.
43226 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43227
43228 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43229 # DIR into the resulting binary.
43230 hardcode_direct=$hardcode_direct
43231
43232 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43233 # DIR into the resulting binary and the resulting library dependency is
43234 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43235 # library is relocated.
43236 hardcode_direct_absolute=$hardcode_direct_absolute
43237
43238 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43239 # into the resulting binary.
43240 hardcode_minus_L=$hardcode_minus_L
43241
43242 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43243 # into the resulting binary.
43244 hardcode_shlibpath_var=$hardcode_shlibpath_var
43245
43246 # Set to "yes" if building a shared library automatically hardcodes DIR
43247 # into the library and all subsequent libraries and executables linked
43248 # against it.
43249 hardcode_automatic=$hardcode_automatic
43250
43251 # Set to yes if linker adds runtime paths of dependent libraries
43252 # to runtime path list.
43253 inherit_rpath=$inherit_rpath
43254
43255 # Whether libtool must link a program against all its dependency libraries.
43256 link_all_deplibs=$link_all_deplibs
43257
43258 # Set to "yes" if exported symbols are required.
43259 always_export_symbols=$always_export_symbols
43260
43261 # The commands to list exported symbols.
43262 export_symbols_cmds=$lt_export_symbols_cmds
43263
43264 # Symbols that should not be listed in the preloaded symbols.
43265 exclude_expsyms=$lt_exclude_expsyms
43266
43267 # Symbols that must always be exported.
43268 include_expsyms=$lt_include_expsyms
43269
43270 # Commands necessary for linking programs (against libraries) with templates.
43271 prelink_cmds=$lt_prelink_cmds
43272
43273 # Commands necessary for finishing linking programs.
43274 postlink_cmds=$lt_postlink_cmds
43275
43276 # Specify filename containing input files.
43277 file_list_spec=$lt_file_list_spec
43278
43279 # How to hardcode a shared library path into an executable.
43280 hardcode_action=$hardcode_action
43281
43282 # ### END LIBTOOL CONFIG
43283
43284 _LT_EOF
43285
43286     cat <<'_LT_EOF' >> "$cfgfile"
43287
43288 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43289
43290 # func_munge_path_list VARIABLE PATH
43291 # -----------------------------------
43292 # VARIABLE is name of variable containing _space_ separated list of
43293 # directories to be munged by the contents of PATH, which is string
43294 # having a format:
43295 # "DIR[:DIR]:"
43296 #       string "DIR[ DIR]" will be prepended to VARIABLE
43297 # ":DIR[:DIR]"
43298 #       string "DIR[ DIR]" will be appended to VARIABLE
43299 # "DIRP[:DIRP]::[DIRA:]DIRA"
43300 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43301 #       "DIRA[ DIRA]" will be appended to VARIABLE
43302 # "DIR[:DIR]"
43303 #       VARIABLE will be replaced by "DIR[ DIR]"
43304 func_munge_path_list ()
43305 {
43306     case x$2 in
43307     x)
43308         ;;
43309     *:)
43310         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43311         ;;
43312     x:*)
43313         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43314         ;;
43315     *::*)
43316         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43317         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43318         ;;
43319     *)
43320         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43321         ;;
43322     esac
43323 }
43324
43325
43326 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
43327 func_cc_basename ()
43328 {
43329     for cc_temp in $*""; do
43330       case $cc_temp in
43331         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43332         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43333         \-*) ;;
43334         *) break;;
43335       esac
43336     done
43337     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43338 }
43339
43340
43341 # ### END FUNCTIONS SHARED WITH CONFIGURE
43342
43343 _LT_EOF
43344
43345   case $host_os in
43346   aix3*)
43347     cat <<\_LT_EOF >> "$cfgfile"
43348 # AIX sometimes has problems with the GCC collect2 program.  For some
43349 # reason, if we set the COLLECT_NAMES environment variable, the problems
43350 # vanish in a puff of smoke.
43351 if test set != "${COLLECT_NAMES+set}"; then
43352   COLLECT_NAMES=
43353   export COLLECT_NAMES
43354 fi
43355 _LT_EOF
43356     ;;
43357   esac
43358
43359
43360 ltmain=$ac_aux_dir/ltmain.sh
43361
43362
43363   # We use sed instead of cat because bash on DJGPP gets confused if
43364   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
43365   # text mode, it properly converts lines to CR/LF.  This bash problem
43366   # is reportedly fixed, but why not run on old versions too?
43367   sed '$q' "$ltmain" >> "$cfgfile" \
43368      || (rm -f "$cfgfile"; exit 1)
43369
43370    mv -f "$cfgfile" "$ofile" ||
43371     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43372   chmod +x "$ofile"
43373
43374  ;;
43375
43376   esac
43377 done # for ac_tag
43378
43379
43380 as_fn_exit 0
43381 _ACEOF
43382 ac_clean_files=$ac_clean_files_save
43383
43384 test $ac_write_fail = 0 ||
43385   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43386
43387
43388 # configure is writing to config.log, and then calls config.status.
43389 # config.status does its own redirection, appending to config.log.
43390 # Unfortunately, on DOS this fails, as config.log is still kept open
43391 # by configure, so config.status won't be able to write to it; its
43392 # output is simply discarded.  So we exec the FD to /dev/null,
43393 # effectively closing config.log, so it can be properly (re)opened and
43394 # appended to by config.status.  When coming back to configure, we
43395 # need to make the FD available again.
43396 if test "$no_create" != yes; then
43397   ac_cs_success=:
43398   ac_config_status_args=
43399   test "$silent" = yes &&
43400     ac_config_status_args="$ac_config_status_args --quiet"
43401   exec 5>/dev/null
43402   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43403   exec 5>>config.log
43404   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43405   # would make configure fail if this is the last instruction.
43406   $ac_cs_success || as_fn_exit 1
43407 fi
43408
43409 #
43410 # CONFIG_SUBDIRS section.
43411 #
43412 if test "$no_recursion" != yes; then
43413
43414   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43415   # so they do not pile up.
43416   ac_sub_configure_args=
43417   ac_prev=
43418   eval "set x $ac_configure_args"
43419   shift
43420   for ac_arg
43421   do
43422     if test -n "$ac_prev"; then
43423       ac_prev=
43424       continue
43425     fi
43426     case $ac_arg in
43427     -cache-file | --cache-file | --cache-fil | --cache-fi \
43428     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43429       ac_prev=cache_file ;;
43430     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43431     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43432     | --c=*)
43433       ;;
43434     --config-cache | -C)
43435       ;;
43436     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43437       ac_prev=srcdir ;;
43438     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43439       ;;
43440     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43441       ac_prev=prefix ;;
43442     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43443       ;;
43444     --disable-option-checking)
43445       ;;
43446     *)
43447       case $ac_arg in
43448       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43449       esac
43450       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43451     esac
43452   done
43453
43454   # Always prepend --prefix to ensure using the same prefix
43455   # in subdir configurations.
43456   ac_arg="--prefix=$prefix"
43457   case $ac_arg in
43458   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43459   esac
43460   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43461
43462   # Pass --silent
43463   if test "$silent" = yes; then
43464     ac_sub_configure_args="--silent $ac_sub_configure_args"
43465   fi
43466
43467   # Always prepend --disable-option-checking to silence warnings, since
43468   # different subdirs can have different --enable and --with options.
43469   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43470
43471   ac_popdir=`pwd`
43472   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43473
43474     # Do not complain, so a configure script can configure whichever
43475     # parts of a large source tree are present.
43476     test -d "$srcdir/$ac_dir" || continue
43477
43478     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43479     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43480     $as_echo "$ac_msg" >&6
43481     as_dir="$ac_dir"; as_fn_mkdir_p
43482     ac_builddir=.
43483
43484 case "$ac_dir" in
43485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43486 *)
43487   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43488   # A ".." for each directory in $ac_dir_suffix.
43489   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43490   case $ac_top_builddir_sub in
43491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43493   esac ;;
43494 esac
43495 ac_abs_top_builddir=$ac_pwd
43496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43497 # for backward compatibility:
43498 ac_top_builddir=$ac_top_build_prefix
43499
43500 case $srcdir in
43501   .)  # We are building in place.
43502     ac_srcdir=.
43503     ac_top_srcdir=$ac_top_builddir_sub
43504     ac_abs_top_srcdir=$ac_pwd ;;
43505   [\\/]* | ?:[\\/]* )  # Absolute name.
43506     ac_srcdir=$srcdir$ac_dir_suffix;
43507     ac_top_srcdir=$srcdir
43508     ac_abs_top_srcdir=$srcdir ;;
43509   *) # Relative name.
43510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43511     ac_top_srcdir=$ac_top_build_prefix$srcdir
43512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43513 esac
43514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43515
43516
43517     cd "$ac_dir"
43518
43519     # Check for guested configure; otherwise get Cygnus style configure.
43520     if test -f "$ac_srcdir/configure.gnu"; then
43521       ac_sub_configure=$ac_srcdir/configure.gnu
43522     elif test -f "$ac_srcdir/configure"; then
43523       ac_sub_configure=$ac_srcdir/configure
43524     elif test -f "$ac_srcdir/configure.in"; then
43525       # This should be Cygnus configure.
43526       ac_sub_configure=$ac_aux_dir/configure
43527     else
43528       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43530       ac_sub_configure=
43531     fi
43532
43533     # The recursion is here.
43534     if test -n "$ac_sub_configure"; then
43535       # Make the cache file name correct relative to the subdirectory.
43536       case $cache_file in
43537       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43538       *) # Relative name.
43539         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43540       esac
43541
43542       { $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
43543 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43544       # The eval makes quoting arguments work.
43545       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43546            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43547         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43548     fi
43549
43550     cd "$ac_popdir"
43551   done
43552 fi
43553 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43554   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43555 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43556 fi
43557
43558
43559
43560     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
43561   if test -z "$tmp_cpp"; then
43562     tmp_cpp='cpp'
43563   fi
43564   cat >./tests/configurehelp.pm <<_EOF
43565 # This is a generated file.  Do not edit.
43566
43567 package configurehelp;
43568
43569 use strict;
43570 use warnings;
43571 use Exporter;
43572
43573 use vars qw(
43574     @ISA
43575     @EXPORT_OK
43576     \$Cpreprocessor
43577     );
43578
43579 @ISA = qw(Exporter);
43580
43581 @EXPORT_OK = qw(
43582     \$Cpreprocessor
43583     );
43584
43585 \$Cpreprocessor = '$tmp_cpp';
43586
43587 1;
43588 _EOF
43589
43590
43591
43592 ## ---------------------------------- ##
43593 ##  Start of distclean amending code  ##
43594 ## ---------------------------------- ##
43595
43596 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
43597 do
43598
43599 if test ! -f "$xc_subdir/Makefile"; then
43600   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
43601   exit 1
43602 fi
43603
43604 # Fetch dependency tracking file list from Makefile include lines.
43605
43606 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
43607 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
43608
43609 # --disable-dependency-tracking might have been used, consequently
43610 # there is nothing to amend without a dependency tracking file list.
43611
43612 if test $xc_cnt_words -gt 0; then
43613
43614 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
43615 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
43616
43617 # Build Makefile specific patch hunk.
43618
43619 xc_p="$xc_subdir/xc_patch.tmp"
43620
43621 xc_rm_depfiles=`echo "$xc_inc_lines" \
43622   | $SED 's%include%    -rm -f%' 2>/dev/null`
43623
43624 xc_dep_subdirs=`echo "$xc_inc_lines" \
43625   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
43626   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
43627   | sort | uniq`
43628
43629 echo "$xc_rm_depfiles" >$xc_p
43630
43631 for xc_dep_dir in $xc_dep_subdirs; do
43632   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
43633   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
43634   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
43635   echo "${xc_tab}fi"                                                                >>$xc_p
43636 done
43637
43638 # Build Makefile patching sed scripts.
43639
43640 xc_s1="$xc_subdir/xc_script_1.tmp"
43641 xc_s2="$xc_subdir/xc_script_2.tmp"
43642 xc_s3="$xc_subdir/xc_script_3.tmp"
43643
43644 cat >$xc_s1 <<\_EOT
43645 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
43646   s/^.*(DEPDIR)/___xc_depdir_line___/
43647 }
43648 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
43649   s/^.*(DEPDIR)/___xc_depdir_line___/
43650 }
43651 _EOT
43652
43653 cat >$xc_s2 <<\_EOT
43654 /___xc_depdir_line___$/{
43655   N
43656   /___xc_depdir_line___$/D
43657 }
43658 _EOT
43659
43660 cat >$xc_s3 <<_EOT
43661 /^___xc_depdir_line___/{
43662   r $xc_p
43663   d
43664 }
43665 _EOT
43666
43667 # Apply patch to Makefile and cleanup.
43668
43669 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
43670 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
43671 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
43672
43673 if test -f "$xc_subdir/Makefile.tmp3"; then
43674   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
43675 fi
43676
43677 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
43678 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
43679 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
43680
43681 test -f "$xc_p"  && rm -f "$xc_p"
43682 test -f "$xc_s1" && rm -f "$xc_s1"
43683 test -f "$xc_s2" && rm -f "$xc_s2"
43684 test -f "$xc_s3" && rm -f "$xc_s3"
43685
43686 fi
43687
43688 done
43689
43690 ## -------------------------------- ##
43691 ##  End of distclean amending code  ##
43692 ## -------------------------------- ##
43693
43694
43695
43696 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
43697
43698   curl version:     ${CURLVERSION}
43699   Host setup:       ${host}
43700   Install prefix:   ${prefix}
43701   Compiler:         ${CC}
43702   SSL support:      ${curl_ssl_msg}
43703   SSH support:      ${curl_ssh_msg}
43704   zlib support:     ${curl_zlib_msg}
43705   GSS-API support:  ${curl_gss_msg}
43706   TLS-SRP support:  ${curl_tls_srp_msg}
43707   resolver:         ${curl_res_msg}
43708   IPv6 support:     ${curl_ipv6_msg}
43709   Unix sockets support: ${curl_unix_sockets_msg}
43710   IDN support:      ${curl_idn_msg}
43711   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
43712   Built-in manual:  ${curl_manual_msg}
43713   --libcurl option: ${curl_libcurl_msg}
43714   Verbose errors:   ${curl_verbose_msg}
43715   SSPI support:     ${curl_sspi_msg}
43716   ca cert bundle:   ${ca}${ca_warning}
43717   ca cert path:     ${capath}${capath_warning}
43718   ca fallback:      ${with_ca_fallback}
43719   LDAP support:     ${curl_ldap_msg}
43720   LDAPS support:    ${curl_ldaps_msg}
43721   RTSP support:     ${curl_rtsp_msg}
43722   RTMP support:     ${curl_rtmp_msg}
43723   metalink support: ${curl_mtlnk_msg}
43724   PSL support:      ${curl_psl_msg}
43725   HTTP2 support:    ${curl_h2_msg}
43726   Protocols:        ${SUPPORT_PROTOCOLS}
43727 " >&5
43728 $as_echo "$as_me: Configured to build curl/libcurl:
43729
43730   curl version:     ${CURLVERSION}
43731   Host setup:       ${host}
43732   Install prefix:   ${prefix}
43733   Compiler:         ${CC}
43734   SSL support:      ${curl_ssl_msg}
43735   SSH support:      ${curl_ssh_msg}
43736   zlib support:     ${curl_zlib_msg}
43737   GSS-API support:  ${curl_gss_msg}
43738   TLS-SRP support:  ${curl_tls_srp_msg}
43739   resolver:         ${curl_res_msg}
43740   IPv6 support:     ${curl_ipv6_msg}
43741   Unix sockets support: ${curl_unix_sockets_msg}
43742   IDN support:      ${curl_idn_msg}
43743   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
43744   Built-in manual:  ${curl_manual_msg}
43745   --libcurl option: ${curl_libcurl_msg}
43746   Verbose errors:   ${curl_verbose_msg}
43747   SSPI support:     ${curl_sspi_msg}
43748   ca cert bundle:   ${ca}${ca_warning}
43749   ca cert path:     ${capath}${capath_warning}
43750   ca fallback:      ${with_ca_fallback}
43751   LDAP support:     ${curl_ldap_msg}
43752   LDAPS support:    ${curl_ldaps_msg}
43753   RTSP support:     ${curl_rtsp_msg}
43754   RTMP support:     ${curl_rtmp_msg}
43755   metalink support: ${curl_mtlnk_msg}
43756   PSL support:      ${curl_psl_msg}
43757   HTTP2 support:    ${curl_h2_msg}
43758   Protocols:        ${SUPPORT_PROTOCOLS}
43759 " >&6;}