blob: ba6bf003c2b66002262344130ad59364fe7092ae [file] [log] [blame]
Elliott Hughes82be86d2017-09-20 17:00:17 -07001#! /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#
Haibo Huang51d9d882019-02-06 01:36:06 -080014# Copyright (c) 1998 - 2019 Daniel Stenberg, <daniel@haxx.se>
Elliott Hughes82be86d2017-09-20 17:00:17 -070015# 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
22xc_configure_preamble_ver_major='1'
23xc_configure_preamble_ver_minor='0'
24
25#
26# Set IFS to space, tab and newline.
27#
28
29xc_space=' '
30xc_tab=' '
31xc_newline='
32'
33IFS="$xc_space$xc_tab$xc_newline"
34
35#
36# Set internationalization behavior variables.
37#
38
39LANG='C'
40LC_ALL='C'
41LANGUAGE='C'
42export LANG
43export LC_ALL
44export LANGUAGE
45
46#
47# Some useful variables.
48#
49
50xc_msg_warn='configure: WARNING:'
51xc_msg_abrt='Can not continue.'
52xc_msg_err='configure: error:'
53
54#
55# Verify that 'echo' command is available, otherwise abort.
56#
57
58xc_tst_str='unknown'
59(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60case "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 ;;
69esac
70
71#
72# Verify that 'test' command is available, otherwise abort.
73#
74
75xc_tst_str='unknown'
76(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77case "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 ;;
85esac
86
87#
88# Verify that 'PATH' variable is set, otherwise abort.
89#
90
91xc_tst_str='unknown'
92(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93case "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 ;;
101esac
102
103#
104# Verify that 'expr' command is available, otherwise abort.
105#
106
107xc_tst_str='unknown'
108xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109case "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 ;;
117esac
118
119#
120# Verify that 'sed' utility is found within 'PATH', otherwise abort.
121#
122
123xc_tst_str='unknown'
124xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125 | sed -e 's:unknown:success:' 2>/dev/null`
126case "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 ;;
134esac
135
136#
137# Verify that 'grep' utility is found within 'PATH', otherwise abort.
138#
139
140xc_tst_str='unknown'
141(`echo "$xc_tst_str" 2>/dev/null \
142 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143case "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 ;;
151esac
152
153#
154# Verify that 'tr' utility is found within 'PATH', otherwise abort.
155#
156
157xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159 | tr -d "0123456789$xc_tab" 2>/dev/null`
160case "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 ;;
168esac
169
170#
171# Verify that 'wc' utility is found within 'PATH', otherwise abort.
172#
173
174xc_tst_str='unknown unknown unknown unknown'
175xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177case "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 ;;
185esac
186
187#
188# Verify that 'cat' utility is found within 'PATH', otherwise abort.
189#
190
191xc_tst_str='unknown'
192xc_tst_str=`cat <<_EOT 2>/dev/null \
193 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194unknown
195unknown
196unknown
197_EOT`
198case "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 ;;
206esac
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.
213xc_tst_dirs_col='x'
214xc_tst_prev_IFS=$IFS; IFS=':'
215for xc_tst_dir in $PATH; do
216 IFS=$xc_tst_prev_IFS
217 xc_tst_dirs_col="x$xc_tst_dirs_col"
218done
219IFS=$xc_tst_prev_IFS
220xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
221
222# Directory count in 'PATH' when using a semicolon separator.
223xc_tst_dirs_sem='x'
224xc_tst_prev_IFS=$IFS; IFS=';'
225for xc_tst_dir in $PATH; do
226 IFS=$xc_tst_prev_IFS
227 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
228done
229IFS=$xc_tst_prev_IFS
230xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
231
232if 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
Elliott Hughescac39802018-04-27 16:19:43 -0700236 # User should provide the correct 'PATH_SEPARATOR' definition.
237 # Until then, guess that it is colon!
238 echo "$xc_msg_warn path separator not determined, guessing colon" >&2
239 PATH_SEPARATOR=':'
Elliott Hughes82be86d2017-09-20 17:00:17 -0700240 fi
241else
242 # Separator with the greater directory count is the auto-detected one.
243 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
244 xc_tst_auto_separator=';'
245 else
246 xc_tst_auto_separator=':'
247 fi
248 if test -z "$PATH_SEPARATOR"; then
249 # Simply use the auto-detected one when not already set.
250 PATH_SEPARATOR=$xc_tst_auto_separator
251 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
252 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
253 fi
254fi
255xc_PATH_SEPARATOR=$PATH_SEPARATOR
256
257xc_configure_preamble_result='yes'
258
259
260## -------------------- ##
261## M4sh Initialization. ##
262## -------------------- ##
263
264# Be more Bourne compatible
265DUALCASE=1; export DUALCASE # for MKS sh
266if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
267 emulate sh
268 NULLCMD=:
269 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
272 setopt NO_GLOB_SUBST
273else
274 case `(set -o) 2>/dev/null` in #(
275 *posix*) :
276 set -o posix ;; #(
277 *) :
278 ;;
279esac
280fi
281
282
283as_nl='
284'
285export as_nl
286# Printing a long string crashes Solaris 7 /usr/bin/printf.
287as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
289as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
290# Prefer a ksh shell builtin over an external printf program on Solaris,
291# but without wasting forks for bash or zsh.
292if test -z "$BASH_VERSION$ZSH_VERSION" \
293 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
294 as_echo='print -r --'
295 as_echo_n='print -rn --'
296elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
297 as_echo='printf %s\n'
298 as_echo_n='printf %s'
299else
300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
302 as_echo_n='/usr/ucb/echo -n'
303 else
304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
305 as_echo_n_body='eval
306 arg=$1;
307 case $arg in #(
308 *"$as_nl"*)
309 expr "X$arg" : "X\\(.*\\)$as_nl";
310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
311 esac;
312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
313 '
314 export as_echo_n_body
315 as_echo_n='sh -c $as_echo_n_body as_echo'
316 fi
317 export as_echo_body
318 as_echo='sh -c $as_echo_body as_echo'
319fi
320
321
322
323# IFS
324# We need space, tab and new line, in precisely that order. Quoting is
325# there to prevent editors from complaining about space-tab.
326# (If _AS_PATH_WALK were called with IFS unset, it would disable word
327# splitting by setting IFS to empty value.)
328IFS=" "" $as_nl"
329
330# Find who we are. Look in the path if we contain no directory separator.
331as_myself=
332case $0 in #((
333 *[\\/]* ) as_myself=$0 ;;
334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
335for as_dir in $PATH
336do
337 IFS=$as_save_IFS
338 test -z "$as_dir" && as_dir=.
339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
340 done
341IFS=$as_save_IFS
342
343 ;;
344esac
345# We did not find ourselves, most probably we were run as `sh COMMAND'
346# in which case we are not to be found in the path.
347if test "x$as_myself" = x; then
348 as_myself=$0
349fi
350if test ! -f "$as_myself"; then
351 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352 exit 1
353fi
354
355# Unset variables that we do not need and which cause bugs (e.g. in
356# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
357# suppresses any "Segmentation fault" message there. '((' could
358# trigger a bug in pdksh 5.2.14.
359for as_var in BASH_ENV ENV MAIL MAILPATH
360do eval test x\${$as_var+set} = xset \
361 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
362done
363PS1='$ '
364PS2='> '
365PS4='+ '
366
367# NLS nuisances.
368LC_ALL=C
369export LC_ALL
370LANGUAGE=C
371export LANGUAGE
372
373# CDPATH.
374(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
375
376# Use a proper internal environment variable to ensure we don't fall
377 # into an infinite loop, continuously re-executing ourselves.
378 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
379 _as_can_reexec=no; export _as_can_reexec;
380 # We cannot yet assume a decent shell, so we have to provide a
381# neutralization value for shells without unset; and this also
382# works around shells that cannot unset nonexistent variables.
383# Preserve -v and -x to the replacement shell.
384BASH_ENV=/dev/null
385ENV=/dev/null
386(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
387case $- in # ((((
388 *v*x* | *x*v* ) as_opts=-vx ;;
389 *v* ) as_opts=-v ;;
390 *x* ) as_opts=-x ;;
391 * ) as_opts= ;;
392esac
393exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
394# Admittedly, this is quite paranoid, since all the known shells bail
395# out after a failed `exec'.
396$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
397as_fn_exit 255
398 fi
399 # We don't want this to propagate to other subprocesses.
400 { _as_can_reexec=; unset _as_can_reexec;}
401if test "x$CONFIG_SHELL" = x; then
402 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
403 emulate sh
404 NULLCMD=:
405 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
406 # is contrary to our usage. Disable this feature.
407 alias -g '\${1+\"\$@\"}'='\"\$@\"'
408 setopt NO_GLOB_SUBST
409else
410 case \`(set -o) 2>/dev/null\` in #(
411 *posix*) :
412 set -o posix ;; #(
413 *) :
414 ;;
415esac
416fi
417"
418 as_required="as_fn_return () { (exit \$1); }
419as_fn_success () { as_fn_return 0; }
420as_fn_failure () { as_fn_return 1; }
421as_fn_ret_success () { return 0; }
422as_fn_ret_failure () { return 1; }
423
424exitcode=0
425as_fn_success || { exitcode=1; echo as_fn_success failed.; }
426as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
427as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
428as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
429if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
430
431else
432 exitcode=1; echo positional parameters were not saved.
433fi
434test x\$exitcode = x0 || exit 1
435test -x / || exit 1"
436 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
437 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
438 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
439 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
440test \$(( 1 + 1 )) = 2 || exit 1
441
442 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
443 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
446 PATH=/empty FPATH=/empty; export PATH FPATH
447 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
448 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
449 if (eval "$as_required") 2>/dev/null; then :
450 as_have_required=yes
451else
452 as_have_required=no
453fi
454 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
455
456else
457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
458as_found=false
459for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
460do
461 IFS=$as_save_IFS
462 test -z "$as_dir" && as_dir=.
463 as_found=:
464 case $as_dir in #(
465 /*)
466 for as_base in sh bash ksh sh5; do
467 # Try only shells that exist, to save several forks.
468 as_shell=$as_dir/$as_base
469 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
470 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
471 CONFIG_SHELL=$as_shell as_have_required=yes
472 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
473 break 2
474fi
475fi
476 done;;
477 esac
478 as_found=false
479done
480$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
481 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
482 CONFIG_SHELL=$SHELL as_have_required=yes
483fi; }
484IFS=$as_save_IFS
485
486
487 if test "x$CONFIG_SHELL" != x; then :
488 export CONFIG_SHELL
489 # We cannot yet assume a decent shell, so we have to provide a
490# neutralization value for shells without unset; and this also
491# works around shells that cannot unset nonexistent variables.
492# Preserve -v and -x to the replacement shell.
493BASH_ENV=/dev/null
494ENV=/dev/null
495(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
496case $- in # ((((
497 *v*x* | *x*v* ) as_opts=-vx ;;
498 *v* ) as_opts=-v ;;
499 *x* ) as_opts=-x ;;
500 * ) as_opts= ;;
501esac
502exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
503# Admittedly, this is quite paranoid, since all the known shells bail
504# out after a failed `exec'.
505$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
506exit 255
507fi
508
509 if test x$as_have_required = xno; then :
510 $as_echo "$0: This script requires a shell more modern than all"
511 $as_echo "$0: the shells that I found on your system."
512 if test x${ZSH_VERSION+set} = xset ; then
513 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
514 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
515 else
516 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
517$0: mailing list: https://curl.haxx.se/mail/ about your
518$0: system, including any error possibly output before this
519$0: message. Then install a modern shell, or manually run
520$0: the script under such a shell if you do have one."
521 fi
522 exit 1
523fi
524fi
525fi
526SHELL=${CONFIG_SHELL-/bin/sh}
527export SHELL
528# Unset more variables known to interfere with behavior of common tools.
529CLICOLOR_FORCE= GREP_OPTIONS=
530unset CLICOLOR_FORCE GREP_OPTIONS
531
532## --------------------- ##
533## M4sh Shell Functions. ##
534## --------------------- ##
535# as_fn_unset VAR
536# ---------------
537# Portably unset VAR.
538as_fn_unset ()
539{
540 { eval $1=; unset $1;}
541}
542as_unset=as_fn_unset
543
544# as_fn_set_status STATUS
545# -----------------------
546# Set $? to STATUS, without forking.
547as_fn_set_status ()
548{
549 return $1
550} # as_fn_set_status
551
552# as_fn_exit STATUS
553# -----------------
554# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
555as_fn_exit ()
556{
557 set +e
558 as_fn_set_status $1
559 exit $1
560} # as_fn_exit
561
562# as_fn_mkdir_p
563# -------------
564# Create "$as_dir" as a directory, including parents if necessary.
565as_fn_mkdir_p ()
566{
567
568 case $as_dir in #(
569 -*) as_dir=./$as_dir;;
570 esac
571 test -d "$as_dir" || eval $as_mkdir_p || {
572 as_dirs=
573 while :; do
574 case $as_dir in #(
575 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
576 *) as_qdir=$as_dir;;
577 esac
578 as_dirs="'$as_qdir' $as_dirs"
579 as_dir=`$as_dirname -- "$as_dir" ||
580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
581 X"$as_dir" : 'X\(//\)[^/]' \| \
582 X"$as_dir" : 'X\(//\)$' \| \
583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
584$as_echo X"$as_dir" |
585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
586 s//\1/
587 q
588 }
589 /^X\(\/\/\)[^/].*/{
590 s//\1/
591 q
592 }
593 /^X\(\/\/\)$/{
594 s//\1/
595 q
596 }
597 /^X\(\/\).*/{
598 s//\1/
599 q
600 }
601 s/.*/./; q'`
602 test -d "$as_dir" && break
603 done
604 test -z "$as_dirs" || eval "mkdir $as_dirs"
605 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
606
607
608} # as_fn_mkdir_p
609
610# as_fn_executable_p FILE
611# -----------------------
612# Test if FILE is an executable regular file.
613as_fn_executable_p ()
614{
615 test -f "$1" && test -x "$1"
616} # as_fn_executable_p
617# as_fn_append VAR VALUE
618# ----------------------
619# Append the text in VALUE to the end of the definition contained in VAR. Take
620# advantage of any shell optimizations that allow amortized linear growth over
621# repeated appends, instead of the typical quadratic growth present in naive
622# implementations.
623if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
624 eval 'as_fn_append ()
625 {
626 eval $1+=\$2
627 }'
628else
629 as_fn_append ()
630 {
631 eval $1=\$$1\$2
632 }
633fi # as_fn_append
634
635# as_fn_arith ARG...
636# ------------------
637# Perform arithmetic evaluation on the ARGs, and store the result in the
638# global $as_val. Take advantage of shells that can avoid forks. The arguments
639# must be portable across $(()) and expr.
640if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
641 eval 'as_fn_arith ()
642 {
643 as_val=$(( $* ))
644 }'
645else
646 as_fn_arith ()
647 {
648 as_val=`expr "$@" || test $? -eq 1`
649 }
650fi # as_fn_arith
651
652
653# as_fn_error STATUS ERROR [LINENO LOG_FD]
654# ----------------------------------------
655# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
656# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
657# script with STATUS, using 1 if that was 0.
658as_fn_error ()
659{
660 as_status=$1; test $as_status -eq 0 && as_status=1
661 if test "$4"; then
662 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
663 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
664 fi
665 $as_echo "$as_me: error: $2" >&2
666 as_fn_exit $as_status
667} # as_fn_error
668
669if expr a : '\(a\)' >/dev/null 2>&1 &&
670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
671 as_expr=expr
672else
673 as_expr=false
674fi
675
676if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
677 as_basename=basename
678else
679 as_basename=false
680fi
681
682if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
683 as_dirname=dirname
684else
685 as_dirname=false
686fi
687
688as_me=`$as_basename -- "$0" ||
689$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
690 X"$0" : 'X\(//\)$' \| \
691 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
692$as_echo X/"$0" |
693 sed '/^.*\/\([^/][^/]*\)\/*$/{
694 s//\1/
695 q
696 }
697 /^X\/\(\/\/\)$/{
698 s//\1/
699 q
700 }
701 /^X\/\(\/\).*/{
702 s//\1/
703 q
704 }
705 s/.*/./; q'`
706
707# Avoid depending upon Character Ranges.
708as_cr_letters='abcdefghijklmnopqrstuvwxyz'
709as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
710as_cr_Letters=$as_cr_letters$as_cr_LETTERS
711as_cr_digits='0123456789'
712as_cr_alnum=$as_cr_Letters$as_cr_digits
713
714
715 as_lineno_1=$LINENO as_lineno_1a=$LINENO
716 as_lineno_2=$LINENO as_lineno_2a=$LINENO
717 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
718 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
719 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
720 sed -n '
721 p
722 /[$]LINENO/=
723 ' <$as_myself |
724 sed '
725 s/[$]LINENO.*/&-/
726 t lineno
727 b
728 :lineno
729 N
730 :loop
731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
732 t loop
733 s/-\n.*//
734 ' >$as_me.lineno &&
735 chmod +x "$as_me.lineno" ||
736 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
737
738 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
739 # already done that, so ensure we don't try to do so again and fall
740 # in an infinite loop. This has already happened in practice.
741 _as_can_reexec=no; export _as_can_reexec
742 # Don't try to exec as it changes $[0], causing all sort of problems
743 # (the dirname of $[0] is not the place where we might find the
744 # original and so on. Autoconf is especially sensitive to this).
745 . "./$as_me.lineno"
746 # Exit status is that of the last command.
747 exit
748}
749
750ECHO_C= ECHO_N= ECHO_T=
751case `echo -n x` in #(((((
752-n*)
753 case `echo 'xy\c'` in
754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
755 xy) ECHO_C='\c';;
756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
757 ECHO_T=' ';;
758 esac;;
759*)
760 ECHO_N='-n';;
761esac
762
763rm -f conf$$ conf$$.exe conf$$.file
764if test -d conf$$.dir; then
765 rm -f conf$$.dir/conf$$.file
766else
767 rm -f conf$$.dir
768 mkdir conf$$.dir 2>/dev/null
769fi
770if (echo >conf$$.file) 2>/dev/null; then
771 if ln -s conf$$.file conf$$ 2>/dev/null; then
772 as_ln_s='ln -s'
773 # ... but there are two gotchas:
774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
776 # In both cases, we have to default to `cp -pR'.
777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
778 as_ln_s='cp -pR'
779 elif ln conf$$.file conf$$ 2>/dev/null; then
780 as_ln_s=ln
781 else
782 as_ln_s='cp -pR'
783 fi
784else
785 as_ln_s='cp -pR'
786fi
787rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
788rmdir conf$$.dir 2>/dev/null
789
790if mkdir -p . 2>/dev/null; then
791 as_mkdir_p='mkdir -p "$as_dir"'
792else
793 test -d ./-p && rmdir ./-p
794 as_mkdir_p=false
795fi
796
797as_test_x='test -x'
798as_executable_p=as_fn_executable_p
799
800# Sed expression to map a string onto a valid CPP name.
801as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
802
803# Sed expression to map a string onto a valid variable name.
804as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
805
806SHELL=${CONFIG_SHELL-/bin/sh}
807
808
809test -n "$DJDIR" || exec 7<&0 </dev/null
810exec 6>&1
811
812# Name of the host.
813# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
814# so uname gets run too.
815ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
816
817#
818# Initializations.
819#
820ac_default_prefix=/usr/local
821ac_clean_files=
822ac_config_libobj_dir=.
823LIBOBJS=
824cross_compiling=no
825subdirs=
826MFLAGS=
827MAKEFLAGS=
828
829# Identity of this package.
830PACKAGE_NAME='curl'
831PACKAGE_TARNAME='curl'
832PACKAGE_VERSION='-'
833PACKAGE_STRING='curl -'
834PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
835PACKAGE_URL=''
836
837ac_unique_file="lib/urldata.h"
838# Factoring default headers for most tests.
839ac_includes_default="\
840#include <stdio.h>
841#ifdef HAVE_SYS_TYPES_H
842# include <sys/types.h>
843#endif
844#ifdef HAVE_SYS_STAT_H
845# include <sys/stat.h>
846#endif
847#ifdef STDC_HEADERS
848# include <stdlib.h>
849# include <stddef.h>
850#else
851# ifdef HAVE_STDLIB_H
852# include <stdlib.h>
853# endif
854#endif
855#ifdef HAVE_STRING_H
856# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
857# include <memory.h>
858# endif
859# include <string.h>
860#endif
861#ifdef HAVE_STRINGS_H
862# include <strings.h>
863#endif
864#ifdef HAVE_INTTYPES_H
865# include <inttypes.h>
866#endif
867#ifdef HAVE_STDINT_H
868# include <stdint.h>
869#endif
870#ifdef HAVE_UNISTD_H
871# include <unistd.h>
872#endif"
873
874enable_option_checking=no
875ac_subst_vars='am__EXEEXT_FALSE
876am__EXEEXT_TRUE
877LTLIBOBJS
878LIBOBJS
Elliott Hughes0128fe42018-02-27 14:57:55 -0800879SSL_BACKENDS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700880SUPPORT_PROTOCOLS
881SUPPORT_FEATURES
882ENABLE_STATIC
883ENABLE_SHARED
884CROSSCOMPILING_FALSE
885CROSSCOMPILING_TRUE
886BLANK_AT_MAKETIME
887CURL_NETWORK_AND_TIME_LIBS
888CURL_NETWORK_LIBS
889LIBCURL_LIBS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700890CFLAG_CURL_SYMBOL_HIDING
891DOING_CURL_SYMBOL_HIDING_FALSE
892DOING_CURL_SYMBOL_HIDING_TRUE
893USE_UNIX_SOCKETS
894BUILD_LIBHOSTNAME_FALSE
895BUILD_LIBHOSTNAME_TRUE
896USE_EMBEDDED_ARES_FALSE
897USE_EMBEDDED_ARES_TRUE
898USE_ARES
899subdirs
900USE_MANUAL_FALSE
901USE_MANUAL_TRUE
902MANOPT
903NROFF
904PERL
905IPV6_ENABLED
906ZSH_FUNCTIONS_DIR
907USE_NGHTTP2
908IDN_ENABLED
909CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
910CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
911CURL_LT_SHLIB_VERSIONED_FLAVOUR
912USE_LIBRTMP
Elliott Hughes0128fe42018-02-27 14:57:55 -0800913USE_LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -0700914USE_LIBSSH2
915LIBMETALINK_CPPFLAGS
916LIBMETALINK_LDFLAGS
917LIBMETALINK_LIBS
918USE_LIBPSL_FALSE
919USE_LIBPSL_TRUE
920CURL_CA_BUNDLE
Alex Deymo486467e2017-12-19 19:04:07 +0100921CURL_WITH_MULTI_SSL
Elliott Hughes82be86d2017-09-20 17:00:17 -0700922SSL_ENABLED
Elliott Hughes82be86d2017-09-20 17:00:17 -0700923NSS_LIBS
924USE_NSS
Elliott Hughesa93fb052018-12-12 14:22:48 -0800925USE_MESALINK
Elliott Hughes82be86d2017-09-20 17:00:17 -0700926USE_CYASSL
927USE_MBEDTLS
928USE_POLARSSL
929HAVE_GNUTLS_SRP
930USE_GNUTLS_NETTLE
931USE_GNUTLS
932HAVE_OPENSSL_SRP
933RANDOM_FILE
934SSL_LIBS
935USE_DARWINSSL
936USE_WINDOWS_SSPI
937USE_SCHANNEL
Alex Deymo486467e2017-12-19 19:04:07 +0100938DEFAULT_SSL_BACKEND
939BUILD_STUB_GSS_FALSE
940BUILD_STUB_GSS_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -0700941USE_OPENLDAP
Alex Deymo486467e2017-12-19 19:04:07 +0100942HAVE_BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -0700943ZLIB_LIBS
944HAVE_LIBZ_FALSE
945HAVE_LIBZ_TRUE
946HAVE_LIBZ
947PKGCONFIG
948CURL_DISABLE_GOPHER
949CURL_DISABLE_SMTP
950CURL_DISABLE_SMB
951CURL_DISABLE_IMAP
952CURL_DISABLE_POP3
953CURL_DISABLE_TFTP
954CURL_DISABLE_TELNET
955CURL_DISABLE_DICT
956CURL_DISABLE_PROXY
957HAVE_LDAP_SSL
958CURL_DISABLE_LDAPS
959CURL_DISABLE_LDAP
960CURL_DISABLE_FILE
961CURL_DISABLE_FTP
962CURL_DISABLE_RTSP
963CURL_DISABLE_HTTP
964DOING_NATIVE_WINDOWS_FALSE
965DOING_NATIVE_WINDOWS_TRUE
966BUILD_UNITTESTS_FALSE
967BUILD_UNITTESTS_TRUE
968CURLDEBUG_FALSE
969CURLDEBUG_TRUE
970USE_EXPLICIT_LIB_DEPS_FALSE
971USE_EXPLICIT_LIB_DEPS_TRUE
972REQUIRE_LIB_DEPS
973CPPFLAG_CURL_STATICLIB
974USE_CPPFLAG_CURL_STATICLIB_FALSE
975USE_CPPFLAG_CURL_STATICLIB_TRUE
976CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
977CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
978CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
979CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
980CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
981CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
982LT_SYS_LIBRARY_PATH
983OTOOL64
984OTOOL
985LIPO
986NMEDIT
987DSYMUTIL
988MANIFEST_TOOL
989RANLIB
990ac_ct_AR
991LN_S
992NM
993ac_ct_DUMPBIN
994DUMPBIN
995LD
996FGREP
997LIBTOOL
998OBJDUMP
999DLLTOOL
1000AS
Elliott Hughes72d948d2018-08-03 14:37:21 -07001001AR_FLAGS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001002host_os
1003host_vendor
1004host_cpu
1005host
1006build_os
1007build_vendor
1008build_cpu
1009build
1010PKGADD_VENDOR
1011PKGADD_NAME
1012PKGADD_PKG
1013VERSIONNUM
1014CURLVERSION
1015am__fastdepCC_FALSE
1016am__fastdepCC_TRUE
1017CCDEPMODE
1018am__nodep
1019AMDEPBACKSLASH
1020AMDEP_FALSE
1021AMDEP_TRUE
1022am__quote
1023am__include
1024DEPDIR
1025am__untar
1026am__tar
1027AMTAR
1028am__leading_dot
1029SET_MAKE
1030AWK
1031mkdir_p
1032MKDIR_P
1033INSTALL_STRIP_PROGRAM
1034STRIP
1035install_sh
1036MAKEINFO
1037AUTOHEADER
1038AUTOMAKE
1039AUTOCONF
1040ACLOCAL
1041VERSION
1042PACKAGE
1043CYGPATH_W
1044am__isrc
Elliott Hughes0128fe42018-02-27 14:57:55 -08001045LCOV
1046GCOV
Elliott Hughes82be86d2017-09-20 17:00:17 -07001047CPP
1048OBJEXT
1049EXEEXT
1050ac_ct_CC
1051CPPFLAGS
1052LDFLAGS
1053CFLAGS
1054CC
1055INSTALL_DATA
1056INSTALL_SCRIPT
1057INSTALL_PROGRAM
1058libext
1059AR
1060EGREP
1061GREP
Elliott Hughes0128fe42018-02-27 14:57:55 -08001062SED
Elliott Hughes82be86d2017-09-20 17:00:17 -07001063CURL_CFLAG_EXTRAS
1064CONFIGURE_OPTIONS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001065AM_BACKSLASH
1066AM_DEFAULT_VERBOSITY
1067AM_DEFAULT_V
1068AM_V
1069MAINT
1070MAINTAINER_MODE_FALSE
1071MAINTAINER_MODE_TRUE
1072target_alias
1073host_alias
1074build_alias
1075LIBS
1076ECHO_T
1077ECHO_N
1078ECHO_C
1079DEFS
1080mandir
1081localedir
1082libdir
1083psdir
1084pdfdir
1085dvidir
1086htmldir
1087infodir
1088docdir
1089oldincludedir
1090includedir
1091runstatedir
1092localstatedir
1093sharedstatedir
1094sysconfdir
1095datadir
1096datarootdir
1097libexecdir
1098sbindir
1099bindir
1100program_transform_name
1101prefix
1102exec_prefix
1103PACKAGE_URL
1104PACKAGE_BUGREPORT
1105PACKAGE_STRING
1106PACKAGE_VERSION
1107PACKAGE_TARNAME
1108PACKAGE_NAME
1109SHELL
1110PATH_SEPARATOR'
1111ac_subst_files=''
1112ac_user_opts='
1113enable_option_checking
1114enable_maintainer_mode
1115enable_silent_rules
1116enable_debug
1117enable_optimize
1118enable_warnings
1119enable_werror
1120enable_curldebug
1121enable_symbol_hiding
1122enable_hidden_symbols
1123enable_ares
1124enable_rt
Elliott Hughes82be86d2017-09-20 17:00:17 -07001125enable_code_coverage
1126enable_dependency_tracking
1127enable_largefile
1128enable_shared
1129enable_static
1130with_pic
1131enable_fast_install
1132with_aix_soname
1133with_gnu_ld
1134with_sysroot
1135enable_libtool_lock
1136enable_http
1137enable_ftp
1138enable_file
1139enable_ldap
1140enable_ldaps
1141enable_rtsp
1142enable_proxy
1143enable_dict
1144enable_telnet
1145enable_tftp
1146enable_pop3
1147enable_imap
1148enable_smb
1149enable_smtp
1150enable_gopher
1151enable_manual
1152enable_libcurl_option
1153enable_libgcc
1154with_zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001155with_brotli
Elliott Hughes82be86d2017-09-20 17:00:17 -07001156with_ldap_lib
1157with_lber_lib
1158enable_ipv6
1159with_gssapi_includes
1160with_gssapi_libs
1161with_gssapi
Alex Deymo486467e2017-12-19 19:04:07 +01001162with_default_ssl_backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001163with_winssl
Haibo Huang51d9d882019-02-06 01:36:06 -08001164with_schannel
Elliott Hughes82be86d2017-09-20 17:00:17 -07001165with_darwinssl
1166with_ssl
1167with_egd_socket
1168with_random
Elliott Hughesa93fb052018-12-12 14:22:48 -08001169enable_openssl_auto_load_config
Elliott Hughes82be86d2017-09-20 17:00:17 -07001170with_gnutls
1171with_polarssl
1172with_mbedtls
1173with_cyassl
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07001174with_wolfssl
Elliott Hughesa93fb052018-12-12 14:22:48 -08001175with_mesalink
Elliott Hughes82be86d2017-09-20 17:00:17 -07001176with_nss
Elliott Hughes82be86d2017-09-20 17:00:17 -07001177with_ca_bundle
1178with_ca_path
1179with_ca_fallback
1180with_libpsl
1181with_libmetalink
1182with_libssh2
Elliott Hughes0128fe42018-02-27 14:57:55 -08001183with_libssh
Elliott Hughes82be86d2017-09-20 17:00:17 -07001184with_librtmp
1185enable_versioned_symbols
1186with_winidn
1187with_libidn2
1188with_nghttp2
1189with_zsh_functions_dir
1190enable_threaded_resolver
1191enable_pthreads
1192enable_verbose
1193enable_sspi
1194enable_crypto_auth
1195enable_ntlm_wb
1196enable_tls_srp
1197enable_unix_sockets
1198enable_cookies
Elliott Hughes82be86d2017-09-20 17:00:17 -07001199'
1200 ac_precious_vars='build_alias
1201host_alias
1202target_alias
1203CC
1204CFLAGS
1205LDFLAGS
1206LIBS
1207CPPFLAGS
1208CPP
1209LT_SYS_LIBRARY_PATH'
1210ac_subdirs_all='ares'
1211
1212# Initialize some variables set by options.
1213ac_init_help=
1214ac_init_version=false
1215ac_unrecognized_opts=
1216ac_unrecognized_sep=
1217# The variables have the same names as the options, with
1218# dashes changed to underlines.
1219cache_file=/dev/null
1220exec_prefix=NONE
1221no_create=
1222no_recursion=
1223prefix=NONE
1224program_prefix=NONE
1225program_suffix=NONE
1226program_transform_name=s,x,x,
1227silent=
1228site=
1229srcdir=
1230verbose=
1231x_includes=NONE
1232x_libraries=NONE
1233
1234# Installation directory options.
1235# These are left unexpanded so users can "make install exec_prefix=/foo"
1236# and all the variables that are supposed to be based on exec_prefix
1237# by default will actually change.
1238# Use braces instead of parens because sh, perl, etc. also accept them.
1239# (The list follows the same order as the GNU Coding Standards.)
1240bindir='${exec_prefix}/bin'
1241sbindir='${exec_prefix}/sbin'
1242libexecdir='${exec_prefix}/libexec'
1243datarootdir='${prefix}/share'
1244datadir='${datarootdir}'
1245sysconfdir='${prefix}/etc'
1246sharedstatedir='${prefix}/com'
1247localstatedir='${prefix}/var'
1248runstatedir='${localstatedir}/run'
1249includedir='${prefix}/include'
1250oldincludedir='/usr/include'
1251docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1252infodir='${datarootdir}/info'
1253htmldir='${docdir}'
1254dvidir='${docdir}'
1255pdfdir='${docdir}'
1256psdir='${docdir}'
1257libdir='${exec_prefix}/lib'
1258localedir='${datarootdir}/locale'
1259mandir='${datarootdir}/man'
1260
1261ac_prev=
1262ac_dashdash=
1263for ac_option
1264do
1265 # If the previous option needs an argument, assign it.
1266 if test -n "$ac_prev"; then
1267 eval $ac_prev=\$ac_option
1268 ac_prev=
1269 continue
1270 fi
1271
1272 case $ac_option in
1273 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1274 *=) ac_optarg= ;;
1275 *) ac_optarg=yes ;;
1276 esac
1277
1278 # Accept the important Cygnus configure options, so we can diagnose typos.
1279
1280 case $ac_dashdash$ac_option in
1281 --)
1282 ac_dashdash=yes ;;
1283
1284 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1285 ac_prev=bindir ;;
1286 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1287 bindir=$ac_optarg ;;
1288
1289 -build | --build | --buil | --bui | --bu)
1290 ac_prev=build_alias ;;
1291 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1292 build_alias=$ac_optarg ;;
1293
1294 -cache-file | --cache-file | --cache-fil | --cache-fi \
1295 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1296 ac_prev=cache_file ;;
1297 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1298 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1299 cache_file=$ac_optarg ;;
1300
1301 --config-cache | -C)
1302 cache_file=config.cache ;;
1303
1304 -datadir | --datadir | --datadi | --datad)
1305 ac_prev=datadir ;;
1306 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1307 datadir=$ac_optarg ;;
1308
1309 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1310 | --dataroo | --dataro | --datar)
1311 ac_prev=datarootdir ;;
1312 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1313 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1314 datarootdir=$ac_optarg ;;
1315
1316 -disable-* | --disable-*)
1317 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320 as_fn_error $? "invalid feature name: $ac_useropt"
1321 ac_useropt_orig=$ac_useropt
1322 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323 case $ac_user_opts in
1324 *"
1325"enable_$ac_useropt"
1326"*) ;;
1327 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1328 ac_unrecognized_sep=', ';;
1329 esac
1330 eval enable_$ac_useropt=no ;;
1331
1332 -docdir | --docdir | --docdi | --doc | --do)
1333 ac_prev=docdir ;;
1334 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1335 docdir=$ac_optarg ;;
1336
1337 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1338 ac_prev=dvidir ;;
1339 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1340 dvidir=$ac_optarg ;;
1341
1342 -enable-* | --enable-*)
1343 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346 as_fn_error $? "invalid feature name: $ac_useropt"
1347 ac_useropt_orig=$ac_useropt
1348 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349 case $ac_user_opts in
1350 *"
1351"enable_$ac_useropt"
1352"*) ;;
1353 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1354 ac_unrecognized_sep=', ';;
1355 esac
1356 eval enable_$ac_useropt=\$ac_optarg ;;
1357
1358 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1359 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1360 | --exec | --exe | --ex)
1361 ac_prev=exec_prefix ;;
1362 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1363 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1364 | --exec=* | --exe=* | --ex=*)
1365 exec_prefix=$ac_optarg ;;
1366
1367 -gas | --gas | --ga | --g)
1368 # Obsolete; use --with-gas.
1369 with_gas=yes ;;
1370
1371 -help | --help | --hel | --he | -h)
1372 ac_init_help=long ;;
1373 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1374 ac_init_help=recursive ;;
1375 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1376 ac_init_help=short ;;
1377
1378 -host | --host | --hos | --ho)
1379 ac_prev=host_alias ;;
1380 -host=* | --host=* | --hos=* | --ho=*)
1381 host_alias=$ac_optarg ;;
1382
1383 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1384 ac_prev=htmldir ;;
1385 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1386 | --ht=*)
1387 htmldir=$ac_optarg ;;
1388
1389 -includedir | --includedir | --includedi | --included | --include \
1390 | --includ | --inclu | --incl | --inc)
1391 ac_prev=includedir ;;
1392 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1393 | --includ=* | --inclu=* | --incl=* | --inc=*)
1394 includedir=$ac_optarg ;;
1395
1396 -infodir | --infodir | --infodi | --infod | --info | --inf)
1397 ac_prev=infodir ;;
1398 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1399 infodir=$ac_optarg ;;
1400
1401 -libdir | --libdir | --libdi | --libd)
1402 ac_prev=libdir ;;
1403 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1404 libdir=$ac_optarg ;;
1405
1406 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1407 | --libexe | --libex | --libe)
1408 ac_prev=libexecdir ;;
1409 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1410 | --libexe=* | --libex=* | --libe=*)
1411 libexecdir=$ac_optarg ;;
1412
1413 -localedir | --localedir | --localedi | --localed | --locale)
1414 ac_prev=localedir ;;
1415 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1416 localedir=$ac_optarg ;;
1417
1418 -localstatedir | --localstatedir | --localstatedi | --localstated \
1419 | --localstate | --localstat | --localsta | --localst | --locals)
1420 ac_prev=localstatedir ;;
1421 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1422 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1423 localstatedir=$ac_optarg ;;
1424
1425 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1426 ac_prev=mandir ;;
1427 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1428 mandir=$ac_optarg ;;
1429
1430 -nfp | --nfp | --nf)
1431 # Obsolete; use --without-fp.
1432 with_fp=no ;;
1433
1434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1435 | --no-cr | --no-c | -n)
1436 no_create=yes ;;
1437
1438 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1439 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1440 no_recursion=yes ;;
1441
1442 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1443 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1444 | --oldin | --oldi | --old | --ol | --o)
1445 ac_prev=oldincludedir ;;
1446 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1447 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1448 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1449 oldincludedir=$ac_optarg ;;
1450
1451 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1452 ac_prev=prefix ;;
1453 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1454 prefix=$ac_optarg ;;
1455
1456 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1457 | --program-pre | --program-pr | --program-p)
1458 ac_prev=program_prefix ;;
1459 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1460 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1461 program_prefix=$ac_optarg ;;
1462
1463 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1464 | --program-suf | --program-su | --program-s)
1465 ac_prev=program_suffix ;;
1466 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1467 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1468 program_suffix=$ac_optarg ;;
1469
1470 -program-transform-name | --program-transform-name \
1471 | --program-transform-nam | --program-transform-na \
1472 | --program-transform-n | --program-transform- \
1473 | --program-transform | --program-transfor \
1474 | --program-transfo | --program-transf \
1475 | --program-trans | --program-tran \
1476 | --progr-tra | --program-tr | --program-t)
1477 ac_prev=program_transform_name ;;
1478 -program-transform-name=* | --program-transform-name=* \
1479 | --program-transform-nam=* | --program-transform-na=* \
1480 | --program-transform-n=* | --program-transform-=* \
1481 | --program-transform=* | --program-transfor=* \
1482 | --program-transfo=* | --program-transf=* \
1483 | --program-trans=* | --program-tran=* \
1484 | --progr-tra=* | --program-tr=* | --program-t=*)
1485 program_transform_name=$ac_optarg ;;
1486
1487 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1488 ac_prev=pdfdir ;;
1489 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1490 pdfdir=$ac_optarg ;;
1491
1492 -psdir | --psdir | --psdi | --psd | --ps)
1493 ac_prev=psdir ;;
1494 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1495 psdir=$ac_optarg ;;
1496
1497 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1498 | -silent | --silent | --silen | --sile | --sil)
1499 silent=yes ;;
1500
1501 -runstatedir | --runstatedir | --runstatedi | --runstated \
1502 | --runstate | --runstat | --runsta | --runst | --runs \
1503 | --run | --ru | --r)
1504 ac_prev=runstatedir ;;
1505 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1506 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1507 | --run=* | --ru=* | --r=*)
1508 runstatedir=$ac_optarg ;;
1509
1510 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1511 ac_prev=sbindir ;;
1512 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1513 | --sbi=* | --sb=*)
1514 sbindir=$ac_optarg ;;
1515
1516 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1517 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1518 | --sharedst | --shareds | --shared | --share | --shar \
1519 | --sha | --sh)
1520 ac_prev=sharedstatedir ;;
1521 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1522 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1523 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1524 | --sha=* | --sh=*)
1525 sharedstatedir=$ac_optarg ;;
1526
1527 -site | --site | --sit)
1528 ac_prev=site ;;
1529 -site=* | --site=* | --sit=*)
1530 site=$ac_optarg ;;
1531
1532 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1533 ac_prev=srcdir ;;
1534 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1535 srcdir=$ac_optarg ;;
1536
1537 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1538 | --syscon | --sysco | --sysc | --sys | --sy)
1539 ac_prev=sysconfdir ;;
1540 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1541 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1542 sysconfdir=$ac_optarg ;;
1543
1544 -target | --target | --targe | --targ | --tar | --ta | --t)
1545 ac_prev=target_alias ;;
1546 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1547 target_alias=$ac_optarg ;;
1548
1549 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1550 verbose=yes ;;
1551
1552 -version | --version | --versio | --versi | --vers | -V)
1553 ac_init_version=: ;;
1554
1555 -with-* | --with-*)
1556 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1557 # Reject names that are not valid shell variable names.
1558 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1559 as_fn_error $? "invalid package name: $ac_useropt"
1560 ac_useropt_orig=$ac_useropt
1561 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1562 case $ac_user_opts in
1563 *"
1564"with_$ac_useropt"
1565"*) ;;
1566 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1567 ac_unrecognized_sep=', ';;
1568 esac
1569 eval with_$ac_useropt=\$ac_optarg ;;
1570
1571 -without-* | --without-*)
1572 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1573 # Reject names that are not valid shell variable names.
1574 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1575 as_fn_error $? "invalid package name: $ac_useropt"
1576 ac_useropt_orig=$ac_useropt
1577 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1578 case $ac_user_opts in
1579 *"
1580"with_$ac_useropt"
1581"*) ;;
1582 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1583 ac_unrecognized_sep=', ';;
1584 esac
1585 eval with_$ac_useropt=no ;;
1586
1587 --x)
1588 # Obsolete; use --with-x.
1589 with_x=yes ;;
1590
1591 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1592 | --x-incl | --x-inc | --x-in | --x-i)
1593 ac_prev=x_includes ;;
1594 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1595 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1596 x_includes=$ac_optarg ;;
1597
1598 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1599 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1600 ac_prev=x_libraries ;;
1601 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1602 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1603 x_libraries=$ac_optarg ;;
1604
1605 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1606Try \`$0 --help' for more information"
1607 ;;
1608
1609 *=*)
1610 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1611 # Reject names that are not valid shell variable names.
1612 case $ac_envvar in #(
1613 '' | [0-9]* | *[!_$as_cr_alnum]* )
1614 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1615 esac
1616 eval $ac_envvar=\$ac_optarg
1617 export $ac_envvar ;;
1618
1619 *)
1620 # FIXME: should be removed in autoconf 3.0.
1621 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1622 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1623 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1624 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1625 ;;
1626
1627 esac
1628done
1629
1630if test -n "$ac_prev"; then
1631 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1632 as_fn_error $? "missing argument to $ac_option"
1633fi
1634
1635if test -n "$ac_unrecognized_opts"; then
1636 case $enable_option_checking in
1637 no) ;;
1638 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1639 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1640 esac
1641fi
1642
1643# Check all directory arguments for consistency.
1644for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1645 datadir sysconfdir sharedstatedir localstatedir includedir \
1646 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1647 libdir localedir mandir runstatedir
1648do
1649 eval ac_val=\$$ac_var
1650 # Remove trailing slashes.
1651 case $ac_val in
1652 */ )
1653 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1654 eval $ac_var=\$ac_val;;
1655 esac
1656 # Be sure to have absolute directory names.
1657 case $ac_val in
1658 [\\/$]* | ?:[\\/]* ) continue;;
1659 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1660 esac
1661 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1662done
1663
1664# There might be people who depend on the old broken behavior: `$host'
1665# used to hold the argument of --host etc.
1666# FIXME: To remove some day.
1667build=$build_alias
1668host=$host_alias
1669target=$target_alias
1670
1671# FIXME: To remove some day.
1672if test "x$host_alias" != x; then
1673 if test "x$build_alias" = x; then
1674 cross_compiling=maybe
1675 elif test "x$build_alias" != "x$host_alias"; then
1676 cross_compiling=yes
1677 fi
1678fi
1679
1680ac_tool_prefix=
1681test -n "$host_alias" && ac_tool_prefix=$host_alias-
1682
1683test "$silent" = yes && exec 6>/dev/null
1684
1685
1686ac_pwd=`pwd` && test -n "$ac_pwd" &&
1687ac_ls_di=`ls -di .` &&
1688ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1689 as_fn_error $? "working directory cannot be determined"
1690test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1691 as_fn_error $? "pwd does not report name of working directory"
1692
1693
1694# Find the source files, if location was not specified.
1695if test -z "$srcdir"; then
1696 ac_srcdir_defaulted=yes
1697 # Try the directory containing this script, then the parent directory.
1698 ac_confdir=`$as_dirname -- "$as_myself" ||
1699$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1700 X"$as_myself" : 'X\(//\)[^/]' \| \
1701 X"$as_myself" : 'X\(//\)$' \| \
1702 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1703$as_echo X"$as_myself" |
1704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1705 s//\1/
1706 q
1707 }
1708 /^X\(\/\/\)[^/].*/{
1709 s//\1/
1710 q
1711 }
1712 /^X\(\/\/\)$/{
1713 s//\1/
1714 q
1715 }
1716 /^X\(\/\).*/{
1717 s//\1/
1718 q
1719 }
1720 s/.*/./; q'`
1721 srcdir=$ac_confdir
1722 if test ! -r "$srcdir/$ac_unique_file"; then
1723 srcdir=..
1724 fi
1725else
1726 ac_srcdir_defaulted=no
1727fi
1728if test ! -r "$srcdir/$ac_unique_file"; then
1729 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1730 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1731fi
1732ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1733ac_abs_confdir=`(
1734 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1735 pwd)`
1736# When building in place, set srcdir=.
1737if test "$ac_abs_confdir" = "$ac_pwd"; then
1738 srcdir=.
1739fi
1740# Remove unnecessary trailing slashes from srcdir.
1741# Double slashes in file names in object file debugging info
1742# mess up M-x gdb in Emacs.
1743case $srcdir in
1744*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1745esac
1746for ac_var in $ac_precious_vars; do
1747 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1748 eval ac_env_${ac_var}_value=\$${ac_var}
1749 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1750 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1751done
1752
1753#
1754# Report the --help message.
1755#
1756if test "$ac_init_help" = "long"; then
1757 # Omit some internal or obsolete options to make the list less imposing.
1758 # This message is too long to be a string in the A/UX 3.1 sh.
1759 cat <<_ACEOF
1760\`configure' configures curl - to adapt to many kinds of systems.
1761
1762Usage: $0 [OPTION]... [VAR=VALUE]...
1763
1764To assign environment variables (e.g., CC, CFLAGS...), specify them as
1765VAR=VALUE. See below for descriptions of some of the useful variables.
1766
1767Defaults for the options are specified in brackets.
1768
1769Configuration:
1770 -h, --help display this help and exit
1771 --help=short display options specific to this package
1772 --help=recursive display the short help of all the included packages
1773 -V, --version display version information and exit
1774 -q, --quiet, --silent do not print \`checking ...' messages
1775 --cache-file=FILE cache test results in FILE [disabled]
1776 -C, --config-cache alias for \`--cache-file=config.cache'
1777 -n, --no-create do not create output files
1778 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1779
1780Installation directories:
1781 --prefix=PREFIX install architecture-independent files in PREFIX
1782 [$ac_default_prefix]
1783 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1784 [PREFIX]
1785
1786By default, \`make install' will install all the files in
1787\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1788an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1789for instance \`--prefix=\$HOME'.
1790
1791For better control, use the options below.
1792
1793Fine tuning of the installation directories:
1794 --bindir=DIR user executables [EPREFIX/bin]
1795 --sbindir=DIR system admin executables [EPREFIX/sbin]
1796 --libexecdir=DIR program executables [EPREFIX/libexec]
1797 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1798 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1799 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1800 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1801 --libdir=DIR object code libraries [EPREFIX/lib]
1802 --includedir=DIR C header files [PREFIX/include]
1803 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1804 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1805 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1806 --infodir=DIR info documentation [DATAROOTDIR/info]
1807 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1808 --mandir=DIR man documentation [DATAROOTDIR/man]
1809 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1810 --htmldir=DIR html documentation [DOCDIR]
1811 --dvidir=DIR dvi documentation [DOCDIR]
1812 --pdfdir=DIR pdf documentation [DOCDIR]
1813 --psdir=DIR ps documentation [DOCDIR]
1814_ACEOF
1815
1816 cat <<\_ACEOF
1817
1818Program names:
1819 --program-prefix=PREFIX prepend PREFIX to installed program names
1820 --program-suffix=SUFFIX append SUFFIX to installed program names
1821 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1822
1823System types:
1824 --build=BUILD configure for building on BUILD [guessed]
1825 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1826_ACEOF
1827fi
1828
1829if test -n "$ac_init_help"; then
1830 case $ac_init_help in
1831 short | recursive ) echo "Configuration of curl -:";;
1832 esac
1833 cat <<\_ACEOF
1834
1835Optional Features:
1836 --disable-option-checking ignore unrecognized --enable/--with options
1837 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1838 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1839 --enable-maintainer-mode
1840 enable make rules and dependencies not useful (and
1841 sometimes confusing) to the casual installer
1842 --enable-silent-rules less verbose build output (undo: "make V=1")
1843 --disable-silent-rules verbose build output (undo: "make V=0")
1844 --enable-debug Enable debug build options
1845 --disable-debug Disable debug build options
1846 --enable-optimize Enable compiler optimizations
1847 --disable-optimize Disable compiler optimizations
1848 --enable-warnings Enable strict compiler warnings
1849 --disable-warnings Disable strict compiler warnings
1850 --enable-werror Enable compiler warnings as errors
1851 --disable-werror Disable compiler warnings as errors
1852 --enable-curldebug Enable curl debug memory tracking
1853 --disable-curldebug Disable curl debug memory tracking
1854 --enable-symbol-hiding Enable hiding of library internal symbols
1855 --disable-symbol-hiding Disable hiding of library internal symbols
1856 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1857 --disable-hidden-symbols
1858 To be deprecated, use --disable-symbol-hiding
1859 --enable-ares[=PATH] Enable c-ares for DNS lookups
1860 --disable-ares Disable c-ares for DNS lookups
1861 --disable-rt disable dependency on -lrt
Haibo Huang51d9d882019-02-06 01:36:06 -08001862 --enable-code-coverage Provide code coverage
Elliott Hughes82be86d2017-09-20 17:00:17 -07001863 --enable-dependency-tracking
1864 do not reject slow dependency extractors
1865 --disable-dependency-tracking
1866 speeds up one-time build
1867 --disable-largefile omit support for large files
1868 --enable-shared[=PKGS] build shared libraries [default=yes]
1869 --enable-static[=PKGS] build static libraries [default=yes]
1870 --enable-fast-install[=PKGS]
1871 optimize for fast installation [default=yes]
1872 --disable-libtool-lock avoid locking (might break parallel builds)
1873 --enable-http Enable HTTP support
1874 --disable-http Disable HTTP support
1875 --enable-ftp Enable FTP support
1876 --disable-ftp Disable FTP support
1877 --enable-file Enable FILE support
1878 --disable-file Disable FILE support
1879 --enable-ldap Enable LDAP support
1880 --disable-ldap Disable LDAP support
1881 --enable-ldaps Enable LDAPS support
1882 --disable-ldaps Disable LDAPS support
1883 --enable-rtsp Enable RTSP support
1884 --disable-rtsp Disable RTSP support
1885 --enable-proxy Enable proxy support
1886 --disable-proxy Disable proxy support
1887 --enable-dict Enable DICT support
1888 --disable-dict Disable DICT support
1889 --enable-telnet Enable TELNET support
1890 --disable-telnet Disable TELNET support
1891 --enable-tftp Enable TFTP support
1892 --disable-tftp Disable TFTP support
1893 --enable-pop3 Enable POP3 support
1894 --disable-pop3 Disable POP3 support
1895 --enable-imap Enable IMAP support
1896 --disable-imap Disable IMAP support
1897 --enable-smb Enable SMB/CIFS support
1898 --disable-smb Disable SMB/CIFS support
1899 --enable-smtp Enable SMTP support
1900 --disable-smtp Disable SMTP support
1901 --enable-gopher Enable Gopher support
1902 --disable-gopher Disable Gopher support
1903 --enable-manual Enable built-in manual
1904 --disable-manual Disable built-in manual
1905 --enable-libcurl-option Enable --libcurl C code generation support
1906 --disable-libcurl-option
1907 Disable --libcurl C code generation support
1908 --enable-libgcc use libgcc when linking
1909 --enable-ipv6 Enable IPv6 (with IPv4) support
1910 --disable-ipv6 Disable IPv6 support
Elliott Hughesa93fb052018-12-12 14:22:48 -08001911 --enable-openssl-auto-load-config
1912 Enable automatic loading of OpenSSL configuration
1913 --disable-openssl-auto-load-config
1914 Disable automatic loading of OpenSSL configuration
Elliott Hughes82be86d2017-09-20 17:00:17 -07001915 --enable-versioned-symbols
1916 Enable versioned symbols in shared library
1917 --disable-versioned-symbols
1918 Disable versioned symbols in shared library
1919 --enable-threaded-resolver
1920 Enable threaded resolver
1921 --disable-threaded-resolver
1922 Disable threaded resolver
1923 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1924 --disable-pthreads Disable POSIX threads
1925 --enable-verbose Enable verbose strings
1926 --disable-verbose Disable verbose strings
1927 --enable-sspi Enable SSPI
1928 --disable-sspi Disable SSPI
1929 --enable-crypto-auth Enable cryptographic authentication
1930 --disable-crypto-auth Disable cryptographic authentication
1931 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1932 helper, where FILE is ntlm_auth's absolute filename
1933 (default: /usr/bin/ntlm_auth)
1934 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1935 helper
1936 --enable-tls-srp Enable TLS-SRP authentication
1937 --disable-tls-srp Disable TLS-SRP authentication
1938 --enable-unix-sockets Enable Unix domain sockets
1939 --disable-unix-sockets Disable Unix domain sockets
1940 --enable-cookies Enable cookies support
1941 --disable-cookies Disable cookies support
Elliott Hughes82be86d2017-09-20 17:00:17 -07001942
1943Optional Packages:
1944 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1945 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Elliott Hughes82be86d2017-09-20 17:00:17 -07001946 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1947 both]
1948 --with-aix-soname=aix|svr4|both
1949 shared library versioning (aka "SONAME") variant to
1950 provide on AIX, [default=aix].
1951 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1952 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1953 compiler's sysroot if not specified).
1954 --with-zlib=PATH search for zlib in PATH
1955 --without-zlib disable use of zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001956 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1957 installation; when possible, set the PKG_CONFIG_PATH
1958 environment variable instead of using this option
1959 --without-brotli disable BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -07001960 --with-ldap-lib=libname Specify name of ldap lib file
1961 --with-lber-lib=libname Specify name of lber lib file
1962 --with-gssapi-includes=DIR
1963 Specify location of GSS-API headers
1964 --with-gssapi-libs=DIR Specify location of GSS-API libs
1965 --with-gssapi=DIR Where to look for GSS-API
Alex Deymo486467e2017-12-19 19:04:07 +01001966 --with-default-ssl-backend=NAME
1967 Use NAME as default SSL backend
1968 --without-default-ssl-backend
1969 Use implicit default SSL backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001970 --with-winssl enable Windows native SSL/TLS
1971 --without-winssl disable Windows native SSL/TLS
Haibo Huang51d9d882019-02-06 01:36:06 -08001972 --with-schannel enable Windows native SSL/TLS
1973 --without-schannel disable Windows native SSL/TLS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001974 --with-darwinssl enable Apple OS native SSL/TLS
1975 --without-darwinssl disable Apple OS native SSL/TLS
1976 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1977 installation (default: /usr/local/ssl); when
1978 possible, set the PKG_CONFIG_PATH environment
1979 variable instead of using this option
1980 --without-ssl disable OpenSSL
1981 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1982 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1983 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1984 installation root
1985 --without-gnutls disable GnuTLS detection
1986 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1987 installation root
1988 --without-polarssl disable PolarSSL detection
1989 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
1990 installation root
1991 --without-mbedtls disable mbedTLS detection
1992 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
1993 installation root (default: system lib default)
1994 --without-cyassl disable CyaSSL detection
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07001995 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
1996 installation root (default: system lib default)
1997 --without-wolfssl disable WolfSSL detection
Elliott Hughesa93fb052018-12-12 14:22:48 -08001998 --with-mesalink=PATH where to look for MesaLink, PATH points to the
1999 installation root
2000 --without-mesalink disable MesaLink detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07002001 --with-nss=PATH where to look for NSS, PATH points to the
2002 installation root
2003 --without-nss disable NSS detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07002004 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2005 /etc/ca-bundle.crt)
2006 --without-ca-bundle Don't use a default CA bundle
2007 --with-ca-path=DIRECTORY
2008 Path to a directory containing CA certificates
2009 stored individually, with their filenames in a hash
2010 format. This option can be used with OpenSSL, GnuTLS
2011 and PolarSSL backends. Refer to OpenSSL c_rehash for
2012 details. (example: /etc/certificates)
2013 --without-ca-path Don't use a default CA path
2014 --with-ca-fallback Use the built in CA store of the SSL library
2015 --without-ca-fallback Don't use the built in CA store of the SSL library
2016 --without-libpsl disable support for libpsl cookie checking
2017 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2018 installation root
2019 --without-libmetalink disable libmetalink detection
2020 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2021 LIBSSH2 installation; when possible, set the
2022 PKG_CONFIG_PATH environment variable instead of
2023 using this option
Elliott Hughes0128fe42018-02-27 14:57:55 -08002024 --with-libssh2 enable LIBSSH2
2025 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
2026 installation; when possible, set the PKG_CONFIG_PATH
2027 environment variable instead of using this option
2028 --with-libssh enable LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -07002029 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2030 LIBRTMP installation; when possible, set the
2031 PKG_CONFIG_PATH environment variable instead of
2032 using this option
2033 --without-librtmp disable LIBRTMP
2034 --with-winidn=PATH enable Windows native IDN
2035 --without-winidn disable Windows native IDN
2036 --with-libidn2=PATH Enable libidn2 usage
2037 --without-libidn2 Disable libidn2 usage
2038 --with-nghttp2=PATH Enable nghttp2 usage
2039 --without-nghttp2 Disable nghttp2 usage
2040 --with-zsh-functions-dir=PATH
2041 Install zsh completions to PATH
2042 --without-zsh-functions-dir
2043 Do not install zsh completions
2044
2045Some influential environment variables:
2046 CC C compiler command
2047 CFLAGS C compiler flags
2048 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2049 nonstandard directory <lib dir>
2050 LIBS libraries to pass to the linker, e.g. -l<library>
2051 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2052 you have headers in a nonstandard directory <include dir>
2053 CPP C preprocessor
2054 LT_SYS_LIBRARY_PATH
2055 User-defined run-time library search path.
2056
2057Use these variables to override the choices made by `configure' or to help
2058it to find libraries and programs with nonstandard names/locations.
2059
2060Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2061_ACEOF
2062ac_status=$?
2063fi
2064
2065if test "$ac_init_help" = "recursive"; then
2066 # If there are subdirs, report their specific --help.
2067 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2068 test -d "$ac_dir" ||
2069 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2070 continue
2071 ac_builddir=.
2072
2073case "$ac_dir" in
2074.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2075*)
2076 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2077 # A ".." for each directory in $ac_dir_suffix.
2078 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2079 case $ac_top_builddir_sub in
2080 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2081 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2082 esac ;;
2083esac
2084ac_abs_top_builddir=$ac_pwd
2085ac_abs_builddir=$ac_pwd$ac_dir_suffix
2086# for backward compatibility:
2087ac_top_builddir=$ac_top_build_prefix
2088
2089case $srcdir in
2090 .) # We are building in place.
2091 ac_srcdir=.
2092 ac_top_srcdir=$ac_top_builddir_sub
2093 ac_abs_top_srcdir=$ac_pwd ;;
2094 [\\/]* | ?:[\\/]* ) # Absolute name.
2095 ac_srcdir=$srcdir$ac_dir_suffix;
2096 ac_top_srcdir=$srcdir
2097 ac_abs_top_srcdir=$srcdir ;;
2098 *) # Relative name.
2099 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2100 ac_top_srcdir=$ac_top_build_prefix$srcdir
2101 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2102esac
2103ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2104
2105 cd "$ac_dir" || { ac_status=$?; continue; }
2106 # Check for guested configure.
2107 if test -f "$ac_srcdir/configure.gnu"; then
2108 echo &&
2109 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2110 elif test -f "$ac_srcdir/configure"; then
2111 echo &&
2112 $SHELL "$ac_srcdir/configure" --help=recursive
2113 else
2114 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2115 fi || ac_status=$?
2116 cd "$ac_pwd" || { ac_status=$?; break; }
2117 done
2118fi
2119
2120test -n "$ac_init_help" && exit $ac_status
2121if $ac_init_version; then
2122 cat <<\_ACEOF
2123curl configure -
2124generated by GNU Autoconf 2.69
2125
2126Copyright (C) 2012 Free Software Foundation, Inc.
2127This configure script is free software; the Free Software Foundation
2128gives unlimited permission to copy, distribute and modify it.
2129
Haibo Huang51d9d882019-02-06 01:36:06 -08002130Copyright (c) 1998 - 2019 Daniel Stenberg, <daniel@haxx.se>
Elliott Hughes82be86d2017-09-20 17:00:17 -07002131This configure script may be copied, distributed and modified under the
2132terms of the curl license; see COPYING for more details
2133_ACEOF
2134 exit
2135fi
2136
2137## ------------------------ ##
2138## Autoconf initialization. ##
2139## ------------------------ ##
2140
2141# ac_fn_c_try_compile LINENO
2142# --------------------------
2143# Try to compile conftest.$ac_ext, and return whether this succeeded.
2144ac_fn_c_try_compile ()
2145{
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 rm -f conftest.$ac_objext
2148 if { { ac_try="$ac_compile"
2149case "(($ac_try" in
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2152esac
2153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154$as_echo "$ac_try_echo"; } >&5
2155 (eval "$ac_compile") 2>conftest.err
2156 ac_status=$?
2157 if test -s conftest.err; then
2158 grep -v '^ *+' conftest.err >conftest.er1
2159 cat conftest.er1 >&5
2160 mv -f conftest.er1 conftest.err
2161 fi
2162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163 test $ac_status = 0; } && {
2164 test -z "$ac_c_werror_flag" ||
2165 test ! -s conftest.err
2166 } && test -s conftest.$ac_objext; then :
2167 ac_retval=0
2168else
2169 $as_echo "$as_me: failed program was:" >&5
2170sed 's/^/| /' conftest.$ac_ext >&5
2171
2172 ac_retval=1
2173fi
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 as_fn_set_status $ac_retval
2176
2177} # ac_fn_c_try_compile
2178
2179# ac_fn_c_try_cpp LINENO
2180# ----------------------
2181# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2182ac_fn_c_try_cpp ()
2183{
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if { { ac_try="$ac_cpp conftest.$ac_ext"
2186case "(($ac_try" in
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2189esac
2190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191$as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2193 ac_status=$?
2194 if test -s conftest.err; then
2195 grep -v '^ *+' conftest.err >conftest.er1
2196 cat conftest.er1 >&5
2197 mv -f conftest.er1 conftest.err
2198 fi
2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200 test $ac_status = 0; } > conftest.i && {
2201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2202 test ! -s conftest.err
2203 }; then :
2204 ac_retval=0
2205else
2206 $as_echo "$as_me: failed program was:" >&5
2207sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 ac_retval=1
2210fi
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status $ac_retval
2213
2214} # ac_fn_c_try_cpp
2215
Alex Deymo486467e2017-12-19 19:04:07 +01002216# ac_fn_c_try_link LINENO
2217# -----------------------
2218# Try to link conftest.$ac_ext, and return whether this succeeded.
2219ac_fn_c_try_link ()
2220{
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 rm -f conftest.$ac_objext conftest$ac_exeext
2223 if { { ac_try="$ac_link"
2224case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227esac
2228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229$as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_link") 2>conftest.err
2231 ac_status=$?
2232 if test -s conftest.err; then
2233 grep -v '^ *+' conftest.err >conftest.er1
2234 cat conftest.er1 >&5
2235 mv -f conftest.er1 conftest.err
2236 fi
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } && {
2239 test -z "$ac_c_werror_flag" ||
2240 test ! -s conftest.err
2241 } && test -s conftest$ac_exeext && {
2242 test "$cross_compiling" = yes ||
2243 test -x conftest$ac_exeext
2244 }; then :
2245 ac_retval=0
2246else
2247 $as_echo "$as_me: failed program was:" >&5
2248sed 's/^/| /' conftest.$ac_ext >&5
2249
2250 ac_retval=1
2251fi
2252 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2253 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2254 # interfere with the next link command; also delete a directory that is
2255 # left behind by Apple's compiler. We do this before executing the actions.
2256 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 as_fn_set_status $ac_retval
2259
2260} # ac_fn_c_try_link
2261
Elliott Hughes82be86d2017-09-20 17:00:17 -07002262# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2263# -------------------------------------------------------
2264# Tests whether HEADER exists and can be compiled using the include files in
2265# INCLUDES, setting the cache variable VAR accordingly.
2266ac_fn_c_check_header_compile ()
2267{
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270$as_echo_n "checking for $2... " >&6; }
2271if eval \${$3+:} false; then :
2272 $as_echo_n "(cached) " >&6
2273else
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275/* end confdefs.h. */
2276$4
2277#include <$2>
2278_ACEOF
2279if ac_fn_c_try_compile "$LINENO"; then :
2280 eval "$3=yes"
2281else
2282 eval "$3=no"
2283fi
2284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285fi
2286eval ac_res=\$$3
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288$as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290
2291} # ac_fn_c_check_header_compile
2292
2293# ac_fn_c_try_run LINENO
2294# ----------------------
2295# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2296# that executables *can* be run.
2297ac_fn_c_try_run ()
2298{
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 if { { ac_try="$ac_link"
2301case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2304esac
2305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306$as_echo "$ac_try_echo"; } >&5
2307 (eval "$ac_link") 2>&5
2308 ac_status=$?
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2311 { { case "(($ac_try" in
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2314esac
2315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2316$as_echo "$ac_try_echo"; } >&5
2317 (eval "$ac_try") 2>&5
2318 ac_status=$?
2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; }; }; then :
2321 ac_retval=0
2322else
2323 $as_echo "$as_me: program exited with status $ac_status" >&5
2324 $as_echo "$as_me: failed program was:" >&5
2325sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 ac_retval=$ac_status
2328fi
2329 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331 as_fn_set_status $ac_retval
2332
2333} # ac_fn_c_try_run
2334
Alex Deymo486467e2017-12-19 19:04:07 +01002335# ac_fn_c_check_func LINENO FUNC VAR
2336# ----------------------------------
2337# Tests whether FUNC exists, setting the cache variable VAR accordingly
2338ac_fn_c_check_func ()
2339{
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342$as_echo_n "checking for $2... " >&6; }
2343if eval \${$3+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345else
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347/* end confdefs.h. */
2348
2349#define $2 innocuous_$2
2350#ifdef __STDC__
2351# include <limits.h>
2352#else
2353# include <assert.h>
2354#endif
2355#undef $2
2356#ifdef __cplusplus
2357extern "C"
2358#endif
2359char $2 ();
2360#if defined __stub_$2 || defined __stub___$2
2361choke me
2362#endif
2363
2364int main (void)
2365{
2366return $2 ();
2367 ;
2368 return 0;
2369}
2370_ACEOF
2371if ac_fn_c_try_link "$LINENO"; then :
2372 eval "$3=yes"
2373else
2374 eval "$3=no"
2375fi
2376rm -f core conftest.err conftest.$ac_objext \
2377 conftest$ac_exeext conftest.$ac_ext
2378fi
2379eval ac_res=\$$3
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381$as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2383
2384} # ac_fn_c_check_func
2385
2386# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2387# -------------------------------------------------------
2388# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2389# the include files in INCLUDES and setting the cache variable VAR
2390# accordingly.
2391ac_fn_c_check_header_mongrel ()
2392{
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 if eval \${$3+:} false; then :
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396$as_echo_n "checking for $2... " >&6; }
2397if eval \${$3+:} false; then :
2398 $as_echo_n "(cached) " >&6
2399fi
2400eval ac_res=\$$3
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402$as_echo "$ac_res" >&6; }
2403else
2404 # Is the header compilable?
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2406$as_echo_n "checking $2 usability... " >&6; }
2407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408/* end confdefs.h. */
2409$4
2410#include <$2>
2411_ACEOF
2412if ac_fn_c_try_compile "$LINENO"; then :
2413 ac_header_compiler=yes
2414else
2415 ac_header_compiler=no
2416fi
2417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2419$as_echo "$ac_header_compiler" >&6; }
2420
2421# Is the header present?
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2423$as_echo_n "checking $2 presence... " >&6; }
2424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425/* end confdefs.h. */
2426#include <$2>
2427_ACEOF
2428if ac_fn_c_try_cpp "$LINENO"; then :
2429 ac_header_preproc=yes
2430else
2431 ac_header_preproc=no
2432fi
2433rm -f conftest.err conftest.i conftest.$ac_ext
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2435$as_echo "$ac_header_preproc" >&6; }
2436
2437# So? What about this header?
2438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2439 yes:no: )
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2441$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2443$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2444 ;;
2445 no:yes:* )
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2447$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2449$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2451$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2453$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2455$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2456( $as_echo "## ----------------------------------------------------------------------- ##
2457## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2458## ----------------------------------------------------------------------- ##"
2459 ) | sed "s/^/$as_me: WARNING: /" >&2
2460 ;;
2461esac
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463$as_echo_n "checking for $2... " >&6; }
2464if eval \${$3+:} false; then :
2465 $as_echo_n "(cached) " >&6
2466else
2467 eval "$3=\$ac_header_compiler"
2468fi
2469eval ac_res=\$$3
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471$as_echo "$ac_res" >&6; }
2472fi
2473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474
2475} # ac_fn_c_check_header_mongrel
2476
Elliott Hughes82be86d2017-09-20 17:00:17 -07002477# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2478# -------------------------------------------
2479# Tests whether TYPE exists after having included INCLUDES, setting cache
2480# variable VAR accordingly.
2481ac_fn_c_check_type ()
2482{
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2485$as_echo_n "checking for $2... " >&6; }
2486if eval \${$3+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488else
2489 eval "$3=no"
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491/* end confdefs.h. */
2492$4
2493int main (void)
2494{
2495if (sizeof ($2))
2496 return 0;
2497 ;
2498 return 0;
2499}
2500_ACEOF
2501if ac_fn_c_try_compile "$LINENO"; then :
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503/* end confdefs.h. */
2504$4
2505int main (void)
2506{
2507if (sizeof (($2)))
2508 return 0;
2509 ;
2510 return 0;
2511}
2512_ACEOF
2513if ac_fn_c_try_compile "$LINENO"; then :
2514
2515else
2516 eval "$3=yes"
2517fi
2518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519fi
2520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521fi
2522eval ac_res=\$$3
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2524$as_echo "$ac_res" >&6; }
2525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2526
2527} # ac_fn_c_check_type
2528
Elliott Hughes72d948d2018-08-03 14:37:21 -07002529# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2530# ---------------------------------------------
2531# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2532# accordingly.
2533ac_fn_c_check_decl ()
2534{
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 as_decl_name=`echo $2|sed 's/ *(.*//'`
2537 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2539$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2540if eval \${$3+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542else
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544/* end confdefs.h. */
2545$4
2546int main (void)
2547{
2548#ifndef $as_decl_name
2549#ifdef __cplusplus
2550 (void) $as_decl_use;
2551#else
2552 (void) $as_decl_name;
2553#endif
2554#endif
2555
2556 ;
2557 return 0;
2558}
2559_ACEOF
2560if ac_fn_c_try_compile "$LINENO"; then :
2561 eval "$3=yes"
2562else
2563 eval "$3=no"
2564fi
2565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566fi
2567eval ac_res=\$$3
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2569$as_echo "$ac_res" >&6; }
2570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2571
2572} # ac_fn_c_check_decl
2573
Elliott Hughes82be86d2017-09-20 17:00:17 -07002574# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2575# ----------------------------------------------------
2576# Tries to find if the field MEMBER exists in type AGGR, after including
2577# INCLUDES, setting cache variable VAR accordingly.
2578ac_fn_c_check_member ()
2579{
2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2582$as_echo_n "checking for $2.$3... " >&6; }
2583if eval \${$4+:} false; then :
2584 $as_echo_n "(cached) " >&6
2585else
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587/* end confdefs.h. */
2588$5
2589int main (void)
2590{
2591static $2 ac_aggr;
2592if (ac_aggr.$3)
2593return 0;
2594 ;
2595 return 0;
2596}
2597_ACEOF
2598if ac_fn_c_try_compile "$LINENO"; then :
2599 eval "$4=yes"
2600else
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602/* end confdefs.h. */
2603$5
2604int main (void)
2605{
2606static $2 ac_aggr;
2607if (sizeof ac_aggr.$3)
2608return 0;
2609 ;
2610 return 0;
2611}
2612_ACEOF
2613if ac_fn_c_try_compile "$LINENO"; then :
2614 eval "$4=yes"
2615else
2616 eval "$4=no"
2617fi
2618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619fi
2620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621fi
2622eval ac_res=\$$4
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624$as_echo "$ac_res" >&6; }
2625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2626
2627} # ac_fn_c_check_member
2628cat >config.log <<_ACEOF
2629This file contains any messages produced by compilers while
2630running configure, to aid debugging if configure makes a mistake.
2631
2632It was created by curl $as_me -, which was
2633generated by GNU Autoconf 2.69. Invocation command line was
2634
2635 $ $0 $@
2636
2637_ACEOF
2638exec 5>>config.log
2639{
2640cat <<_ASUNAME
2641## --------- ##
2642## Platform. ##
2643## --------- ##
2644
2645hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2646uname -m = `(uname -m) 2>/dev/null || echo unknown`
2647uname -r = `(uname -r) 2>/dev/null || echo unknown`
2648uname -s = `(uname -s) 2>/dev/null || echo unknown`
2649uname -v = `(uname -v) 2>/dev/null || echo unknown`
2650
2651/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2652/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2653
2654/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2655/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2656/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2657/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2658/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2659/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2660/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2661
2662_ASUNAME
2663
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 $as_echo "PATH: $as_dir"
2670 done
2671IFS=$as_save_IFS
2672
2673} >&5
2674
2675cat >&5 <<_ACEOF
2676
2677
2678## ----------- ##
2679## Core tests. ##
2680## ----------- ##
2681
2682_ACEOF
2683
2684
2685# Keep a trace of the command line.
2686# Strip out --no-create and --no-recursion so they do not pile up.
2687# Strip out --silent because we don't want to record it for future runs.
2688# Also quote any args containing shell meta-characters.
2689# Make two passes to allow for proper duplicate-argument suppression.
2690ac_configure_args=
2691ac_configure_args0=
2692ac_configure_args1=
2693ac_must_keep_next=false
2694for ac_pass in 1 2
2695do
2696 for ac_arg
2697 do
2698 case $ac_arg in
2699 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2701 | -silent | --silent | --silen | --sile | --sil)
2702 continue ;;
2703 *\'*)
2704 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2705 esac
2706 case $ac_pass in
2707 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2708 2)
2709 as_fn_append ac_configure_args1 " '$ac_arg'"
2710 if test $ac_must_keep_next = true; then
2711 ac_must_keep_next=false # Got value, back to normal.
2712 else
2713 case $ac_arg in
2714 *=* | --config-cache | -C | -disable-* | --disable-* \
2715 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2716 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2717 | -with-* | --with-* | -without-* | --without-* | --x)
2718 case "$ac_configure_args0 " in
2719 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2720 esac
2721 ;;
2722 -* ) ac_must_keep_next=true ;;
2723 esac
2724 fi
2725 as_fn_append ac_configure_args " '$ac_arg'"
2726 ;;
2727 esac
2728 done
2729done
2730{ ac_configure_args0=; unset ac_configure_args0;}
2731{ ac_configure_args1=; unset ac_configure_args1;}
2732
2733# When interrupted or exit'd, cleanup temporary files, and complete
2734# config.log. We remove comments because anyway the quotes in there
2735# would cause problems or look ugly.
2736# WARNING: Use '\'' to represent an apostrophe within the trap.
2737# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2738trap 'exit_status=$?
2739 # Save into config.log some information that might help in debugging.
2740 {
2741 echo
2742
2743 $as_echo "## ---------------- ##
2744## Cache variables. ##
2745## ---------------- ##"
2746 echo
2747 # The following way of writing the cache mishandles newlines in values,
2748(
2749 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2750 eval ac_val=\$$ac_var
2751 case $ac_val in #(
2752 *${as_nl}*)
2753 case $ac_var in #(
2754 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2755$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2756 esac
2757 case $ac_var in #(
2758 _ | IFS | as_nl) ;; #(
2759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2760 *) { eval $ac_var=; unset $ac_var;} ;;
2761 esac ;;
2762 esac
2763 done
2764 (set) 2>&1 |
2765 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2766 *${as_nl}ac_space=\ *)
2767 sed -n \
2768 "s/'\''/'\''\\\\'\'''\''/g;
2769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2770 ;; #(
2771 *)
2772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2773 ;;
2774 esac |
2775 sort
2776)
2777 echo
2778
2779 $as_echo "## ----------------- ##
2780## Output variables. ##
2781## ----------------- ##"
2782 echo
2783 for ac_var in $ac_subst_vars
2784 do
2785 eval ac_val=\$$ac_var
2786 case $ac_val in
2787 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2788 esac
2789 $as_echo "$ac_var='\''$ac_val'\''"
2790 done | sort
2791 echo
2792
2793 if test -n "$ac_subst_files"; then
2794 $as_echo "## ------------------- ##
2795## File substitutions. ##
2796## ------------------- ##"
2797 echo
2798 for ac_var in $ac_subst_files
2799 do
2800 eval ac_val=\$$ac_var
2801 case $ac_val in
2802 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2803 esac
2804 $as_echo "$ac_var='\''$ac_val'\''"
2805 done | sort
2806 echo
2807 fi
2808
2809 if test -s confdefs.h; then
2810 $as_echo "## ----------- ##
2811## confdefs.h. ##
2812## ----------- ##"
2813 echo
2814 cat confdefs.h
2815 echo
2816 fi
2817 test "$ac_signal" != 0 &&
2818 $as_echo "$as_me: caught signal $ac_signal"
2819 $as_echo "$as_me: exit $exit_status"
2820 } >&5
2821 rm -f core *.core core.conftest.* &&
2822 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2823 exit $exit_status
2824' 0
2825for ac_signal in 1 2 13 15; do
2826 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2827done
2828ac_signal=0
2829
2830# confdefs.h avoids OS command line length limits that DEFS can exceed.
2831rm -f -r conftest* confdefs.h
2832
2833$as_echo "/* confdefs.h */" > confdefs.h
2834
2835# Predefined preprocessor variables.
2836
2837cat >>confdefs.h <<_ACEOF
2838#define PACKAGE_NAME "$PACKAGE_NAME"
2839_ACEOF
2840
2841cat >>confdefs.h <<_ACEOF
2842#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2843_ACEOF
2844
2845cat >>confdefs.h <<_ACEOF
2846#define PACKAGE_VERSION "$PACKAGE_VERSION"
2847_ACEOF
2848
2849cat >>confdefs.h <<_ACEOF
2850#define PACKAGE_STRING "$PACKAGE_STRING"
2851_ACEOF
2852
2853cat >>confdefs.h <<_ACEOF
2854#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2855_ACEOF
2856
2857cat >>confdefs.h <<_ACEOF
2858#define PACKAGE_URL "$PACKAGE_URL"
2859_ACEOF
2860
2861
2862# Let the site file select an alternate cache file if it wants to.
2863# Prefer an explicitly selected file to automatically selected ones.
2864ac_site_file1=NONE
2865ac_site_file2=NONE
2866if test -n "$CONFIG_SITE"; then
2867 # We do not want a PATH search for config.site.
2868 case $CONFIG_SITE in #((
2869 -*) ac_site_file1=./$CONFIG_SITE;;
2870 */*) ac_site_file1=$CONFIG_SITE;;
2871 *) ac_site_file1=./$CONFIG_SITE;;
2872 esac
2873elif test "x$prefix" != xNONE; then
2874 ac_site_file1=$prefix/share/config.site
2875 ac_site_file2=$prefix/etc/config.site
2876else
2877 ac_site_file1=$ac_default_prefix/share/config.site
2878 ac_site_file2=$ac_default_prefix/etc/config.site
2879fi
2880for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2881do
2882 test "x$ac_site_file" = xNONE && continue
2883 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2885$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2886 sed 's/^/| /' "$ac_site_file" >&5
2887 . "$ac_site_file" \
2888 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2890as_fn_error $? "failed to load site script $ac_site_file
2891See \`config.log' for more details" "$LINENO" 5; }
2892 fi
2893done
2894
2895if test -r "$cache_file"; then
2896 # Some versions of bash will fail to source /dev/null (special files
2897 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2898 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2900$as_echo "$as_me: loading cache $cache_file" >&6;}
2901 case $cache_file in
2902 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2903 *) . "./$cache_file";;
2904 esac
2905 fi
2906else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2908$as_echo "$as_me: creating cache $cache_file" >&6;}
2909 >$cache_file
2910fi
2911
2912# Check that the precious variables saved in the cache have kept the same
2913# value.
2914ac_cache_corrupted=false
2915for ac_var in $ac_precious_vars; do
2916 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2917 eval ac_new_set=\$ac_env_${ac_var}_set
2918 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2919 eval ac_new_val=\$ac_env_${ac_var}_value
2920 case $ac_old_set,$ac_new_set in
2921 set,)
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2923$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2924 ac_cache_corrupted=: ;;
2925 ,set)
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2927$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2928 ac_cache_corrupted=: ;;
2929 ,);;
2930 *)
2931 if test "x$ac_old_val" != "x$ac_new_val"; then
2932 # differences in whitespace do not lead to failure.
2933 ac_old_val_w=`echo x $ac_old_val`
2934 ac_new_val_w=`echo x $ac_new_val`
2935 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2937$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2938 ac_cache_corrupted=:
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2941$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2942 eval $ac_var=\$ac_old_val
2943 fi
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2945$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2947$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2948 fi;;
2949 esac
2950 # Pass precious variables to config.status.
2951 if test "$ac_new_set" = set; then
2952 case $ac_new_val in
2953 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2954 *) ac_arg=$ac_var=$ac_new_val ;;
2955 esac
2956 case " $ac_configure_args " in
2957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2958 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2959 esac
2960 fi
2961done
2962if $ac_cache_corrupted; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2966$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2967 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2968fi
2969## -------------------- ##
2970## Main body of script. ##
2971## -------------------- ##
2972
2973ac_ext=c
2974ac_cpp='$CPP $CPPFLAGS'
2975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978
2979
2980
2981
2982
2983
2984
2985# using curl-override.m4
2986
2987
2988
2989
2990
2991ac_config_headers="$ac_config_headers lib/curl_config.h"
2992
2993
2994
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2996$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2997 # Check whether --enable-maintainer-mode was given.
2998if test "${enable_maintainer_mode+set}" = set; then :
2999 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3000else
3001 USE_MAINTAINER_MODE=no
3002fi
3003
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3005$as_echo "$USE_MAINTAINER_MODE" >&6; }
3006 if test $USE_MAINTAINER_MODE = yes; then
3007 MAINTAINER_MODE_TRUE=
3008 MAINTAINER_MODE_FALSE='#'
3009else
3010 MAINTAINER_MODE_TRUE='#'
3011 MAINTAINER_MODE_FALSE=
3012fi
3013
3014 MAINT=$MAINTAINER_MODE_TRUE
3015
3016
3017# Check whether --enable-silent-rules was given.
3018if test "${enable_silent_rules+set}" = set; then :
3019 enableval=$enable_silent_rules;
3020fi
3021
3022case $enable_silent_rules in # (((
3023 yes) AM_DEFAULT_VERBOSITY=0;;
3024 no) AM_DEFAULT_VERBOSITY=1;;
3025 *) AM_DEFAULT_VERBOSITY=0;;
3026esac
3027am_make=${MAKE-make}
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3029$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3030if ${am_cv_make_support_nested_variables+:} false; then :
3031 $as_echo_n "(cached) " >&6
3032else
3033 if $as_echo 'TRUE=$(BAR$(V))
3034BAR0=false
3035BAR1=true
3036V=1
3037am__doit:
3038 @$(TRUE)
3039.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3040 am_cv_make_support_nested_variables=yes
3041else
3042 am_cv_make_support_nested_variables=no
3043fi
3044fi
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3046$as_echo "$am_cv_make_support_nested_variables" >&6; }
3047if test $am_cv_make_support_nested_variables = yes; then
3048 AM_V='$(V)'
3049 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3050else
3051 AM_V=$AM_DEFAULT_VERBOSITY
3052 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3053fi
3054AM_BACKSLASH='\'
3055
3056
3057
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3059$as_echo_n "checking whether to enable debug build options... " >&6; }
3060 OPT_DEBUG_BUILD="default"
3061 # Check whether --enable-debug was given.
3062if test "${enable_debug+set}" = set; then :
3063 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3064fi
3065
3066 case "$OPT_DEBUG_BUILD" in
3067 no)
3068 want_debug="no"
3069 ;;
3070 default)
3071 want_debug="no"
3072 ;;
3073 *)
3074 want_debug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003075
3076$as_echo "#define DEBUGBUILD 1" >>confdefs.h
3077
Elliott Hughes82be86d2017-09-20 17:00:17 -07003078 ;;
3079 esac
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3081$as_echo "$want_debug" >&6; }
3082
3083
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3085$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3086 OPT_COMPILER_OPTIMIZE="default"
3087 # Check whether --enable-optimize was given.
3088if test "${enable_optimize+set}" = set; then :
3089 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3090fi
3091
3092 case "$OPT_COMPILER_OPTIMIZE" in
3093 no)
3094 want_optimize="no"
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096$as_echo "no" >&6; }
3097 ;;
3098 default)
3099 if test "$want_debug" = "yes"; then
3100 want_optimize="assume_no"
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3102$as_echo "(assumed) no" >&6; }
3103 else
3104 want_optimize="assume_yes"
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3106$as_echo "(assumed) yes" >&6; }
3107 fi
3108 ;;
3109 *)
3110 want_optimize="yes"
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112$as_echo "yes" >&6; }
3113 ;;
3114 esac
3115
3116
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3118$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3119 OPT_COMPILER_WARNINGS="default"
3120 # Check whether --enable-warnings was given.
3121if test "${enable_warnings+set}" = set; then :
3122 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3123fi
3124
3125 case "$OPT_COMPILER_WARNINGS" in
3126 no)
3127 want_warnings="no"
3128 ;;
3129 default)
3130 want_warnings="$want_debug"
3131 ;;
3132 *)
3133 want_warnings="yes"
3134 ;;
3135 esac
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3137$as_echo "$want_warnings" >&6; }
3138
3139
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3141$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3142 OPT_COMPILER_WERROR="default"
3143 # Check whether --enable-werror was given.
3144if test "${enable_werror+set}" = set; then :
3145 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3146fi
3147
3148 case "$OPT_COMPILER_WERROR" in
3149 no)
3150 want_werror="no"
3151 ;;
3152 default)
3153 want_werror="no"
3154 ;;
3155 *)
3156 want_werror="yes"
3157 ;;
3158 esac
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3160$as_echo "$want_werror" >&6; }
3161
3162
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3164$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3165 OPT_CURLDEBUG_BUILD="default"
3166 # Check whether --enable-curldebug was given.
3167if test "${enable_curldebug+set}" = set; then :
3168 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3169fi
3170
3171 case "$OPT_CURLDEBUG_BUILD" in
3172 no)
3173 want_curldebug="no"
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175$as_echo "no" >&6; }
3176 ;;
3177 default)
3178 if test "$want_debug" = "yes"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3180$as_echo "(assumed) yes" >&6; }
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003181
3182$as_echo "#define CURLDEBUG 1" >>confdefs.h
3183
Elliott Hughes82be86d2017-09-20 17:00:17 -07003184 else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186$as_echo "no" >&6; }
3187 fi
3188 want_curldebug_assumed="yes"
3189 want_curldebug="$want_debug"
3190 ;;
3191 *)
3192 want_curldebug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003193
3194$as_echo "#define CURLDEBUG 1" >>confdefs.h
3195
Elliott Hughes82be86d2017-09-20 17:00:17 -07003196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3197$as_echo "yes" >&6; }
3198 ;;
3199 esac
3200
3201
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3203$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3204 OPT_SYMBOL_HIDING="default"
3205 # Check whether --enable-symbol-hiding was given.
3206if test "${enable_symbol_hiding+set}" = set; then :
3207 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3208fi
3209
3210 # Check whether --enable-hidden-symbols was given.
3211if test "${enable_hidden_symbols+set}" = set; then :
3212 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3213fi
3214
3215 case "$OPT_SYMBOL_HIDING" in
3216 no)
3217 want_symbol_hiding="no"
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220 ;;
3221 default)
3222 want_symbol_hiding="yes"
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3224$as_echo "yes" >&6; }
3225 ;;
3226 *)
3227 want_symbol_hiding="yes"
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3229$as_echo "yes" >&6; }
3230 ;;
3231 esac
3232
3233
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3235$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3236 OPT_ARES="default"
3237 # Check whether --enable-ares was given.
3238if test "${enable_ares+set}" = set; then :
3239 enableval=$enable_ares; OPT_ARES=$enableval
3240fi
3241
3242 case "$OPT_ARES" in
3243 no)
3244 want_ares="no"
3245 ;;
3246 default)
3247 want_ares="no"
3248 ;;
3249 *)
3250 want_ares="yes"
3251 if test -n "$enableval" && test "$enableval" != "yes"; then
3252 want_ares_path="$enableval"
3253 fi
3254 ;;
3255 esac
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3257$as_echo "$want_ares" >&6; }
3258
3259
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3261$as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3262 OPT_RT="default"
3263 # Check whether --enable-rt was given.
3264if test "${enable_rt+set}" = set; then :
3265 enableval=$enable_rt; OPT_RT=$enableval
3266fi
3267
3268 case "$OPT_RT" in
3269 no)
3270 dontwant_rt="yes"
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3272$as_echo "yes" >&6; }
3273 ;;
3274 default)
3275 dontwant_rt="no"
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3277$as_echo "(assumed no)" >&6; }
3278 ;;
3279 *)
3280 dontwant_rt="no"
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283 ;;
3284 esac
3285
3286
3287#
3288# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3289#
3290
3291if test -z "$xc_configure_preamble_result"; then
3292 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3293fi
3294
3295#
3296# Check that 'PATH_SEPARATOR' has already been set.
3297#
3298
3299if test -z "$xc_PATH_SEPARATOR"; then
3300 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3301fi
3302if test -z "$PATH_SEPARATOR"; then
3303 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3304fi
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3306$as_echo_n "checking for path separator... " >&6; }
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3308$as_echo "$PATH_SEPARATOR" >&6; }
3309if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3311$as_echo_n "checking for initial path separator... " >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3313$as_echo "$xc_PATH_SEPARATOR" >&6; }
3314 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3315fi
3316
Elliott Hughes82be86d2017-09-20 17:00:17 -07003317
3318#
3319# save the configure arguments
3320#
3321CONFIGURE_OPTIONS="\"$ac_configure_args\""
3322
3323
3324CURL_CFLAG_EXTRAS=""
3325if test X"$want_werror" = Xyes; then
3326 CURL_CFLAG_EXTRAS="-Werror"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -07003327 if test "$compiler_id" = "GNU_C"; then
3328 if test "$compiler_num" -ge "500"; then
3329 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
3330 fi
3331 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -07003332fi
3333
3334
3335if test -z "$SED"; then
3336 # Extract the first word of "sed", so it can be a program name with args.
3337set dummy sed; ac_word=$2
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339$as_echo_n "checking for $ac_word... " >&6; }
3340if ${ac_cv_path_SED+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342else
3343 case $SED in
3344 [\\/]* | ?:[\\/]*)
3345 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3346 ;;
3347 *)
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349as_dummy="$PATH:/usr/bin:/usr/local/bin"
3350for as_dir in $as_dummy
3351do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360done
3361 done
3362IFS=$as_save_IFS
3363
3364 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3365 ;;
3366esac
3367fi
3368SED=$ac_cv_path_SED
3369if test -n "$SED"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3371$as_echo "$SED" >&6; }
3372else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374$as_echo "no" >&6; }
3375fi
3376
3377
3378 if test -z "$SED" || test "$SED" = "not_found"; then
3379 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3380 fi
3381fi
3382
3383
3384if test -z "$GREP"; then
3385 # Extract the first word of "grep", so it can be a program name with args.
3386set dummy grep; ac_word=$2
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388$as_echo_n "checking for $ac_word... " >&6; }
3389if ${ac_cv_path_GREP+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391else
3392 case $GREP in
3393 [\\/]* | ?:[\\/]*)
3394 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3395 ;;
3396 *)
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398as_dummy="$PATH:/usr/bin:/usr/local/bin"
3399for as_dir in $as_dummy
3400do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409done
3410 done
3411IFS=$as_save_IFS
3412
3413 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3414 ;;
3415esac
3416fi
3417GREP=$ac_cv_path_GREP
3418if test -n "$GREP"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3420$as_echo "$GREP" >&6; }
3421else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423$as_echo "no" >&6; }
3424fi
3425
3426
3427 if test -z "$GREP" || test "$GREP" = "not_found"; then
3428 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3429 fi
3430fi
3431
3432
3433if test -z "$EGREP"; then
3434 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3436$as_echo_n "checking for egrep... " >&6; }
3437 EGREP="$GREP -E"
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3439$as_echo "$EGREP" >&6; }
3440 else
3441 # Extract the first word of "egrep", so it can be a program name with args.
3442set dummy egrep; ac_word=$2
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444$as_echo_n "checking for $ac_word... " >&6; }
3445if ${ac_cv_path_EGREP+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447else
3448 case $EGREP in
3449 [\\/]* | ?:[\\/]*)
3450 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3451 ;;
3452 *)
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454as_dummy="$PATH:/usr/bin:/usr/local/bin"
3455for as_dir in $as_dummy
3456do
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3461 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 break 2
3464 fi
3465done
3466 done
3467IFS=$as_save_IFS
3468
3469 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3470 ;;
3471esac
3472fi
3473EGREP=$ac_cv_path_EGREP
3474if test -n "$EGREP"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3476$as_echo "$EGREP" >&6; }
3477else
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479$as_echo "no" >&6; }
3480fi
3481
3482
3483 fi
3484fi
3485if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3486 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3487fi
3488
3489
3490if test -z "$AR"; then
3491 if test -n "$ac_tool_prefix"; then
3492 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3493set dummy ${ac_tool_prefix}ar; ac_word=$2
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495$as_echo_n "checking for $ac_word... " >&6; }
3496if ${ac_cv_path_AR+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498else
3499 case $AR in
3500 [\\/]* | ?:[\\/]*)
3501 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3502 ;;
3503 *)
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505as_dummy="$PATH:/usr/bin:/usr/local/bin"
3506for as_dir in $as_dummy
3507do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516done
3517 done
3518IFS=$as_save_IFS
3519
3520 ;;
3521esac
3522fi
3523AR=$ac_cv_path_AR
3524if test -n "$AR"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3526$as_echo "$AR" >&6; }
3527else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529$as_echo "no" >&6; }
3530fi
3531
3532
3533fi
3534if test -z "$ac_cv_path_AR"; then
3535 ac_pt_AR=$AR
3536 # Extract the first word of "ar", so it can be a program name with args.
3537set dummy ar; ac_word=$2
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539$as_echo_n "checking for $ac_word... " >&6; }
3540if ${ac_cv_path_ac_pt_AR+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542else
3543 case $ac_pt_AR in
3544 [\\/]* | ?:[\\/]*)
3545 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3546 ;;
3547 *)
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549as_dummy="$PATH:/usr/bin:/usr/local/bin"
3550for as_dir in $as_dummy
3551do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3559 fi
3560done
3561 done
3562IFS=$as_save_IFS
3563
3564 ;;
3565esac
3566fi
3567ac_pt_AR=$ac_cv_path_ac_pt_AR
3568if test -n "$ac_pt_AR"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3570$as_echo "$ac_pt_AR" >&6; }
3571else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573$as_echo "no" >&6; }
3574fi
3575
3576 if test "x$ac_pt_AR" = x; then
3577 AR="not_found"
3578 else
3579 case $cross_compiling:$ac_tool_warned in
3580yes:)
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3583ac_tool_warned=yes ;;
3584esac
3585 AR=$ac_pt_AR
3586 fi
3587else
3588 AR="$ac_cv_path_AR"
3589fi
3590
3591 if test -z "$AR" || test "$AR" = "not_found"; then
3592 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3593 fi
3594fi
3595
3596
3597
3598
3599CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3600
3601 xc_prog_cc_prev_IFS=$IFS
3602 xc_prog_cc_prev_LIBS=$LIBS
3603 xc_prog_cc_prev_CFLAGS=$CFLAGS
3604 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3605 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3606
3607
3608
3609 xc_bad_var_libs=no
3610 for xc_word in $LIBS; do
3611 case "$xc_word" in
3612 -l* | --library=*)
3613 :
3614 ;;
3615 *)
3616 xc_bad_var_libs=yes
3617 ;;
3618 esac
3619 done
3620 if test $xc_bad_var_libs = yes; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3622$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3624$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3625 fi
3626
3627
3628 xc_bad_var_ldflags=no
3629 for xc_word in $LDFLAGS; do
3630 case "$xc_word" in
3631 -D*)
3632 xc_bad_var_ldflags=yes
3633 ;;
3634 -U*)
3635 xc_bad_var_ldflags=yes
3636 ;;
3637 -I*)
3638 xc_bad_var_ldflags=yes
3639 ;;
3640 -l* | --library=*)
3641 xc_bad_var_ldflags=yes
3642 ;;
3643 esac
3644 done
3645 if test $xc_bad_var_ldflags = yes; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3647$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3648 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3649 for xc_word in $LDFLAGS; do
3650 case "$xc_word" in
3651 -D*)
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3653$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3654 ;;
3655 -U*)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3657$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3658 ;;
3659 -I*)
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3661$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3662 ;;
3663 -l* | --library=*)
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3665$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3666 ;;
3667 esac
3668 done
3669 fi
3670
3671
3672 xc_bad_var_cppflags=no
3673 for xc_word in $CPPFLAGS; do
3674 case "$xc_word" in
3675 -rpath*)
3676 xc_bad_var_cppflags=yes
3677 ;;
3678 -L* | --library-path=*)
3679 xc_bad_var_cppflags=yes
3680 ;;
3681 -l* | --library=*)
3682 xc_bad_var_cppflags=yes
3683 ;;
3684 esac
3685 done
3686 if test $xc_bad_var_cppflags = yes; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3688$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3689 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3690 for xc_word in $CPPFLAGS; do
3691 case "$xc_word" in
3692 -rpath*)
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3694$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3695 ;;
3696 -L* | --library-path=*)
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3698$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3699 ;;
3700 -l* | --library=*)
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3702$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3703 ;;
3704 esac
3705 done
3706 fi
3707
3708
3709 xc_bad_var_cflags=no
3710 for xc_word in $CFLAGS; do
3711 case "$xc_word" in
3712 -D*)
3713 xc_bad_var_cflags=yes
3714 ;;
3715 -U*)
3716 xc_bad_var_cflags=yes
3717 ;;
3718 -I*)
3719 xc_bad_var_cflags=yes
3720 ;;
3721 -rpath*)
3722 xc_bad_var_cflags=yes
3723 ;;
3724 -L* | --library-path=*)
3725 xc_bad_var_cflags=yes
3726 ;;
3727 -l* | --library=*)
3728 xc_bad_var_cflags=yes
3729 ;;
3730 esac
3731 done
3732 if test $xc_bad_var_cflags = yes; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3734$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3735 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3736 for xc_word in $CFLAGS; do
3737 case "$xc_word" in
3738 -D*)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3740$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3741 ;;
3742 -U*)
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3744$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3745 ;;
3746 -I*)
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3748$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3749 ;;
3750 -rpath*)
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3752$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3753 ;;
3754 -L* | --library-path=*)
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3756$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3757 ;;
3758 -l* | --library=*)
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3760$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3761 ;;
3762 esac
3763 done
3764 fi
3765
3766 if test $xc_bad_var_libs = yes ||
3767 test $xc_bad_var_cflags = yes ||
3768 test $xc_bad_var_ldflags = yes ||
3769 test $xc_bad_var_cppflags = yes; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3771$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3772 fi
3773
3774ac_aux_dir=
3775for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3776 if test -f "$ac_dir/install-sh"; then
3777 ac_aux_dir=$ac_dir
3778 ac_install_sh="$ac_aux_dir/install-sh -c"
3779 break
3780 elif test -f "$ac_dir/install.sh"; then
3781 ac_aux_dir=$ac_dir
3782 ac_install_sh="$ac_aux_dir/install.sh -c"
3783 break
3784 elif test -f "$ac_dir/shtool"; then
3785 ac_aux_dir=$ac_dir
3786 ac_install_sh="$ac_aux_dir/shtool install -c"
3787 break
3788 fi
3789done
3790if test -z "$ac_aux_dir"; then
3791 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3792fi
3793
3794# These three variables are undocumented and unsupported,
3795# and are intended to be withdrawn in a future Autoconf release.
3796# They can cause serious problems if a builder's source tree is in a directory
3797# whose full name contains unusual characters.
3798ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3799ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3800ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3801
3802
3803# Find a good install program. We prefer a C program (faster),
3804# so one script is as good as another. But avoid the broken or
3805# incompatible versions:
3806# SysV /etc/install, /usr/sbin/install
3807# SunOS /usr/etc/install
3808# IRIX /sbin/install
3809# AIX /bin/install
3810# AmigaOS /C/install, which installs bootblocks on floppy discs
3811# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3812# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3813# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3814# OS/2's system install, which has a completely different semantic
3815# ./install, which can be erroneously created by make from ./install.sh.
3816# Reject install programs that cannot install multiple files.
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3818$as_echo_n "checking for a BSD-compatible install... " >&6; }
3819if test -z "$INSTALL"; then
3820if ${ac_cv_path_install+:} false; then :
3821 $as_echo_n "(cached) " >&6
3822else
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
3828 # Account for people who put trailing slashes in PATH elements.
3829case $as_dir/ in #((
3830 ./ | .// | /[cC]/* | \
3831 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3832 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3833 /usr/ucb/* ) ;;
3834 *)
3835 # OSF1 and SCO ODT 3.0 have their own names for install.
3836 # Don't use installbsd from OSF since it installs stuff as root
3837 # by default.
3838 for ac_prog in ginstall scoinst install; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3841 if test $ac_prog = install &&
3842 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3843 # AIX install. It has an incompatible calling convention.
3844 :
3845 elif test $ac_prog = install &&
3846 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3847 # program-specific install script used by HP pwplus--don't use.
3848 :
3849 else
3850 rm -rf conftest.one conftest.two conftest.dir
3851 echo one > conftest.one
3852 echo two > conftest.two
3853 mkdir conftest.dir
3854 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3855 test -s conftest.one && test -s conftest.two &&
3856 test -s conftest.dir/conftest.one &&
3857 test -s conftest.dir/conftest.two
3858 then
3859 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3860 break 3
3861 fi
3862 fi
3863 fi
3864 done
3865 done
3866 ;;
3867esac
3868
3869 done
3870IFS=$as_save_IFS
3871
3872rm -rf conftest.one conftest.two conftest.dir
3873
3874fi
3875 if test "${ac_cv_path_install+set}" = set; then
3876 INSTALL=$ac_cv_path_install
3877 else
3878 # As a last resort, use the slow shell script. Don't cache a
3879 # value for INSTALL within a source directory, because that will
3880 # break other packages using the cache if that directory is
3881 # removed, or if the value is a relative name.
3882 INSTALL=$ac_install_sh
3883 fi
3884fi
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3886$as_echo "$INSTALL" >&6; }
3887
3888# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3889# It thinks the first close brace ends the variable substitution.
3890test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3891
3892test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3893
3894test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3895
3896# Expand $ac_aux_dir to an absolute path.
3897am_aux_dir=`cd "$ac_aux_dir" && pwd`
3898
3899ac_ext=c
3900ac_cpp='$CPP $CPPFLAGS'
3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904if test -n "$ac_tool_prefix"; then
3905 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3906set dummy ${ac_tool_prefix}gcc; ac_word=$2
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908$as_echo_n "checking for $ac_word... " >&6; }
3909if ${ac_cv_prog_CC+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911else
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC="$CC" # Let the user override the test.
3914else
3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 break 2
3925 fi
3926done
3927 done
3928IFS=$as_save_IFS
3929
3930fi
3931fi
3932CC=$ac_cv_prog_CC
3933if test -n "$CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935$as_echo "$CC" >&6; }
3936else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938$as_echo "no" >&6; }
3939fi
3940
3941
3942fi
3943if test -z "$ac_cv_prog_CC"; then
3944 ac_ct_CC=$CC
3945 # Extract the first word of "gcc", so it can be a program name with args.
3946set dummy gcc; ac_word=$2
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948$as_echo_n "checking for $ac_word... " >&6; }
3949if ${ac_cv_prog_ac_ct_CC+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951else
3952 if test -n "$ac_ct_CC"; then
3953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3954else
3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_ac_ct_CC="gcc"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3965 fi
3966done
3967 done
3968IFS=$as_save_IFS
3969
3970fi
3971fi
3972ac_ct_CC=$ac_cv_prog_ac_ct_CC
3973if test -n "$ac_ct_CC"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3975$as_echo "$ac_ct_CC" >&6; }
3976else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978$as_echo "no" >&6; }
3979fi
3980
3981 if test "x$ac_ct_CC" = x; then
3982 CC=""
3983 else
3984 case $cross_compiling:$ac_tool_warned in
3985yes:)
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3988ac_tool_warned=yes ;;
3989esac
3990 CC=$ac_ct_CC
3991 fi
3992else
3993 CC="$ac_cv_prog_CC"
3994fi
3995
3996if test -z "$CC"; then
3997 if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3999set dummy ${ac_tool_prefix}cc; ac_word=$2
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001$as_echo_n "checking for $ac_word... " >&6; }
4002if ${ac_cv_prog_CC+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004else
4005 if test -n "$CC"; then
4006 ac_cv_prog_CC="$CC" # Let the user override the test.
4007else
4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015 ac_cv_prog_CC="${ac_tool_prefix}cc"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4018 fi
4019done
4020 done
4021IFS=$as_save_IFS
4022
4023fi
4024fi
4025CC=$ac_cv_prog_CC
4026if test -n "$CC"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4028$as_echo "$CC" >&6; }
4029else
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031$as_echo "no" >&6; }
4032fi
4033
4034
4035 fi
4036fi
4037if test -z "$CC"; then
4038 # Extract the first word of "cc", so it can be a program name with args.
4039set dummy cc; ac_word=$2
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041$as_echo_n "checking for $ac_word... " >&6; }
4042if ${ac_cv_prog_CC+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044else
4045 if test -n "$CC"; then
4046 ac_cv_prog_CC="$CC" # Let the user override the test.
4047else
4048 ac_prog_rejected=no
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4057 ac_prog_rejected=yes
4058 continue
4059 fi
4060 ac_cv_prog_CC="cc"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4063 fi
4064done
4065 done
4066IFS=$as_save_IFS
4067
4068if test $ac_prog_rejected = yes; then
4069 # We found a bogon in the path, so make sure we never use it.
4070 set dummy $ac_cv_prog_CC
4071 shift
4072 if test $# != 0; then
4073 # We chose a different compiler from the bogus one.
4074 # However, it has the same basename, so the bogon will be chosen
4075 # first if we set CC to just the basename; use the full file name.
4076 shift
4077 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4078 fi
4079fi
4080fi
4081fi
4082CC=$ac_cv_prog_CC
4083if test -n "$CC"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4085$as_echo "$CC" >&6; }
4086else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088$as_echo "no" >&6; }
4089fi
4090
4091
4092fi
4093if test -z "$CC"; then
4094 if test -n "$ac_tool_prefix"; then
4095 for ac_prog in cl.exe
4096 do
4097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4098set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100$as_echo_n "checking for $ac_word... " >&6; }
4101if ${ac_cv_prog_CC+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103else
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4106else
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4117 fi
4118done
4119 done
4120IFS=$as_save_IFS
4121
4122fi
4123fi
4124CC=$ac_cv_prog_CC
4125if test -n "$CC"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4127$as_echo "$CC" >&6; }
4128else
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130$as_echo "no" >&6; }
4131fi
4132
4133
4134 test -n "$CC" && break
4135 done
4136fi
4137if test -z "$CC"; then
4138 ac_ct_CC=$CC
4139 for ac_prog in cl.exe
4140do
4141 # Extract the first word of "$ac_prog", so it can be a program name with args.
4142set dummy $ac_prog; ac_word=$2
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144$as_echo_n "checking for $ac_word... " >&6; }
4145if ${ac_cv_prog_ac_ct_CC+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147else
4148 if test -n "$ac_ct_CC"; then
4149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4150else
4151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_ac_ct_CC="$ac_prog"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162done
4163 done
4164IFS=$as_save_IFS
4165
4166fi
4167fi
4168ac_ct_CC=$ac_cv_prog_ac_ct_CC
4169if test -n "$ac_ct_CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4171$as_echo "$ac_ct_CC" >&6; }
4172else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174$as_echo "no" >&6; }
4175fi
4176
4177
4178 test -n "$ac_ct_CC" && break
4179done
4180
4181 if test "x$ac_ct_CC" = x; then
4182 CC=""
4183 else
4184 case $cross_compiling:$ac_tool_warned in
4185yes:)
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188ac_tool_warned=yes ;;
4189esac
4190 CC=$ac_ct_CC
4191 fi
4192fi
4193
4194fi
4195
4196
4197test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4199as_fn_error $? "no acceptable C compiler found in \$PATH
4200See \`config.log' for more details" "$LINENO" 5; }
4201
4202# Provide some information about the compiler.
4203$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4204set X $ac_compile
4205ac_compiler=$2
4206for ac_option in --version -v -V -qversion; do
4207 { { ac_try="$ac_compiler $ac_option >&5"
4208case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
4212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213$as_echo "$ac_try_echo"; } >&5
4214 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4215 ac_status=$?
4216 if test -s conftest.err; then
4217 sed '10a\
4218... rest of stderr output deleted ...
4219 10q' conftest.err >conftest.er1
4220 cat conftest.er1 >&5
4221 fi
4222 rm -f conftest.er1 conftest.err
4223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224 test $ac_status = 0; }
4225done
4226
4227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228/* end confdefs.h. */
4229
4230int main (void)
4231{
4232
4233 ;
4234 return 0;
4235}
4236_ACEOF
4237ac_clean_files_save=$ac_clean_files
4238ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4239# Try to create an executable without -o first, disregard a.out.
4240# It will help us diagnose broken compilers, and finding out an intuition
4241# of exeext.
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4243$as_echo_n "checking whether the C compiler works... " >&6; }
4244ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4245
4246# The possible output files:
4247ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4248
4249ac_rmfiles=
4250for ac_file in $ac_files
4251do
4252 case $ac_file in
4253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4254 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4255 esac
4256done
4257rm -f $ac_rmfiles
4258
4259if { { ac_try="$ac_link_default"
4260case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263esac
4264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4265$as_echo "$ac_try_echo"; } >&5
4266 (eval "$ac_link_default") 2>&5
4267 ac_status=$?
4268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4269 test $ac_status = 0; }; then :
4270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4271# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4272# in a Makefile. We should not override ac_cv_exeext if it was cached,
4273# so that the user can short-circuit this test for compilers unknown to
4274# Autoconf.
4275for ac_file in $ac_files ''
4276do
4277 test -f "$ac_file" || continue
4278 case $ac_file in
4279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4280 ;;
4281 [ab].out )
4282 # We found the default executable, but exeext='' is most
4283 # certainly right.
4284 break;;
4285 *.* )
4286 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4287 then :; else
4288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4289 fi
4290 # We set ac_cv_exeext here because the later test for it is not
4291 # safe: cross compilers may not add the suffix if given an `-o'
4292 # argument, so we may need to know it at that point already.
4293 # Even if this section looks crufty: it has the advantage of
4294 # actually working.
4295 break;;
4296 * )
4297 break;;
4298 esac
4299done
4300test "$ac_cv_exeext" = no && ac_cv_exeext=
4301
4302else
4303 ac_file=''
4304fi
4305if test -z "$ac_file"; then :
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307$as_echo "no" >&6; }
4308$as_echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
4311{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4313as_fn_error 77 "C compiler cannot create executables
4314See \`config.log' for more details" "$LINENO" 5; }
4315else
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4317$as_echo "yes" >&6; }
4318fi
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4320$as_echo_n "checking for C compiler default output file name... " >&6; }
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4322$as_echo "$ac_file" >&6; }
4323ac_exeext=$ac_cv_exeext
4324
4325rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4326ac_clean_files=$ac_clean_files_save
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4328$as_echo_n "checking for suffix of executables... " >&6; }
4329if { { ac_try="$ac_link"
4330case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333esac
4334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335$as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_link") 2>&5
4337 ac_status=$?
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; }; then :
4340 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4341# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4342# work properly (i.e., refer to `conftest.exe'), while it won't with
4343# `rm'.
4344for ac_file in conftest.exe conftest conftest.*; do
4345 test -f "$ac_file" || continue
4346 case $ac_file in
4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4349 break;;
4350 * ) break;;
4351 esac
4352done
4353else
4354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4356as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4357See \`config.log' for more details" "$LINENO" 5; }
4358fi
4359rm -f conftest conftest$ac_cv_exeext
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4361$as_echo "$ac_cv_exeext" >&6; }
4362
4363rm -f conftest.$ac_ext
4364EXEEXT=$ac_cv_exeext
4365ac_exeext=$EXEEXT
4366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367/* end confdefs.h. */
4368#include <stdio.h>
4369int main (void)
4370{
4371FILE *f = fopen ("conftest.out", "w");
4372 return ferror (f) || fclose (f) != 0;
4373
4374 ;
4375 return 0;
4376}
4377_ACEOF
4378ac_clean_files="$ac_clean_files conftest.out"
4379# Check that the compiler produces executables we can run. If not, either
4380# the compiler is broken, or we cross compile.
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4382$as_echo_n "checking whether we are cross compiling... " >&6; }
4383if test "$cross_compiling" != yes; then
4384 { { ac_try="$ac_link"
4385case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388esac
4389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390$as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_link") 2>&5
4392 ac_status=$?
4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394 test $ac_status = 0; }
4395 if { ac_try='./conftest$ac_cv_exeext'
4396 { { case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4399esac
4400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4401$as_echo "$ac_try_echo"; } >&5
4402 (eval "$ac_try") 2>&5
4403 ac_status=$?
4404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4405 test $ac_status = 0; }; }; then
4406 cross_compiling=no
4407 else
4408 if test "$cross_compiling" = maybe; then
4409 cross_compiling=yes
4410 else
4411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4413as_fn_error $? "cannot run C compiled programs.
4414If you meant to cross compile, use \`--host'.
4415See \`config.log' for more details" "$LINENO" 5; }
4416 fi
4417 fi
4418fi
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4420$as_echo "$cross_compiling" >&6; }
4421
4422rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4423ac_clean_files=$ac_clean_files_save
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4425$as_echo_n "checking for suffix of object files... " >&6; }
4426if ${ac_cv_objext+:} false; then :
4427 $as_echo_n "(cached) " >&6
4428else
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430/* end confdefs.h. */
4431
4432int main (void)
4433{
4434
4435 ;
4436 return 0;
4437}
4438_ACEOF
4439rm -f conftest.o conftest.obj
4440if { { ac_try="$ac_compile"
4441case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444esac
4445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446$as_echo "$ac_try_echo"; } >&5
4447 (eval "$ac_compile") 2>&5
4448 ac_status=$?
4449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4450 test $ac_status = 0; }; then :
4451 for ac_file in conftest.o conftest.obj conftest.*; do
4452 test -f "$ac_file" || continue;
4453 case $ac_file in
4454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4456 break;;
4457 esac
4458done
4459else
4460 $as_echo "$as_me: failed program was:" >&5
4461sed 's/^/| /' conftest.$ac_ext >&5
4462
4463{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465as_fn_error $? "cannot compute suffix of object files: cannot compile
4466See \`config.log' for more details" "$LINENO" 5; }
4467fi
4468rm -f conftest.$ac_cv_objext conftest.$ac_ext
4469fi
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4471$as_echo "$ac_cv_objext" >&6; }
4472OBJEXT=$ac_cv_objext
4473ac_objext=$OBJEXT
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4475$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4476if ${ac_cv_c_compiler_gnu+:} false; then :
4477 $as_echo_n "(cached) " >&6
4478else
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480/* end confdefs.h. */
4481
4482int main (void)
4483{
4484#ifndef __GNUC__
4485 choke me
4486#endif
4487
4488 ;
4489 return 0;
4490}
4491_ACEOF
4492if ac_fn_c_try_compile "$LINENO"; then :
4493 ac_compiler_gnu=yes
4494else
4495 ac_compiler_gnu=no
4496fi
4497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498ac_cv_c_compiler_gnu=$ac_compiler_gnu
4499
4500fi
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4502$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4503if test $ac_compiler_gnu = yes; then
4504 GCC=yes
4505else
4506 GCC=
4507fi
4508ac_test_CFLAGS=${CFLAGS+set}
4509ac_save_CFLAGS=$CFLAGS
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4511$as_echo_n "checking whether $CC accepts -g... " >&6; }
4512if ${ac_cv_prog_cc_g+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514else
4515 ac_save_c_werror_flag=$ac_c_werror_flag
4516 ac_c_werror_flag=yes
4517 ac_cv_prog_cc_g=no
4518 CFLAGS="-g"
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520/* end confdefs.h. */
4521
4522int main (void)
4523{
4524
4525 ;
4526 return 0;
4527}
4528_ACEOF
4529if ac_fn_c_try_compile "$LINENO"; then :
4530 ac_cv_prog_cc_g=yes
4531else
4532 CFLAGS=""
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h. */
4535
4536int main (void)
4537{
4538
4539 ;
4540 return 0;
4541}
4542_ACEOF
4543if ac_fn_c_try_compile "$LINENO"; then :
4544
4545else
4546 ac_c_werror_flag=$ac_save_c_werror_flag
4547 CFLAGS="-g"
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h. */
4550
4551int main (void)
4552{
4553
4554 ;
4555 return 0;
4556}
4557_ACEOF
4558if ac_fn_c_try_compile "$LINENO"; then :
4559 ac_cv_prog_cc_g=yes
4560fi
4561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562fi
4563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564fi
4565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 ac_c_werror_flag=$ac_save_c_werror_flag
4567fi
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4569$as_echo "$ac_cv_prog_cc_g" >&6; }
4570if test "$ac_test_CFLAGS" = set; then
4571 CFLAGS=$ac_save_CFLAGS
4572elif test $ac_cv_prog_cc_g = yes; then
4573 if test "$GCC" = yes; then
4574 CFLAGS="-g -O2"
4575 else
4576 CFLAGS="-g"
4577 fi
4578else
4579 if test "$GCC" = yes; then
4580 CFLAGS="-O2"
4581 else
4582 CFLAGS=
4583 fi
4584fi
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4586$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4587if ${ac_cv_prog_cc_c89+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589else
4590 ac_cv_prog_cc_c89=no
4591ac_save_CC=$CC
4592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593/* end confdefs.h. */
4594#include <stdarg.h>
4595#include <stdio.h>
4596struct stat;
4597/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4598struct buf { int x; };
4599FILE * (*rcsopen) (struct buf *, struct stat *, int);
4600static char *e (p, i)
4601 char **p;
4602 int i;
4603{
4604 return p[i];
4605}
4606static char *f (char * (*g) (char **, int), char **p, ...)
4607{
4608 char *s;
4609 va_list v;
4610 va_start (v,p);
4611 s = g (p, va_arg (v,int));
4612 va_end (v);
4613 return s;
4614}
4615
4616/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4617 function prototypes and stuff, but not '\xHH' hex character constants.
4618 These don't provoke an error unfortunately, instead are silently treated
4619 as 'x'. The following induces an error, until -std is added to get
4620 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4621 array size at least. It's necessary to write '\x00'==0 to get something
4622 that's true only with -std. */
4623int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4624
4625/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4626 inside strings and character constants. */
4627#define FOO(x) 'x'
4628int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4629
4630int test (int i, double x);
4631struct s1 {int (*f) (int a);};
4632struct s2 {int (*f) (double a);};
4633int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4634int argc;
4635char **argv;
4636int main (void)
4637{
4638return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4639 ;
4640 return 0;
4641}
4642_ACEOF
4643for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4645do
4646 CC="$ac_save_CC $ac_arg"
4647 if ac_fn_c_try_compile "$LINENO"; then :
4648 ac_cv_prog_cc_c89=$ac_arg
4649fi
4650rm -f core conftest.err conftest.$ac_objext
4651 test "x$ac_cv_prog_cc_c89" != "xno" && break
4652done
4653rm -f conftest.$ac_ext
4654CC=$ac_save_CC
4655
4656fi
4657# AC_CACHE_VAL
4658case "x$ac_cv_prog_cc_c89" in
4659 x)
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4661$as_echo "none needed" >&6; } ;;
4662 xno)
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4664$as_echo "unsupported" >&6; } ;;
4665 *)
4666 CC="$CC $ac_cv_prog_cc_c89"
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4668$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4669esac
4670if test "x$ac_cv_prog_cc_c89" != xno; then :
4671
4672fi
4673
4674ac_ext=c
4675ac_cpp='$CPP $CPPFLAGS'
4676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4678ac_compiler_gnu=$ac_cv_c_compiler_gnu
4679
4680ac_ext=c
4681ac_cpp='$CPP $CPPFLAGS'
4682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4684ac_compiler_gnu=$ac_cv_c_compiler_gnu
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4686$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4687if ${am_cv_prog_cc_c_o+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689else
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h. */
4692
4693int main (void)
4694{
4695
4696 ;
4697 return 0;
4698}
4699_ACEOF
4700 # Make sure it works both with $CC and with simple cc.
4701 # Following AC_PROG_CC_C_O, we do the test twice because some
4702 # compilers refuse to overwrite an existing .o file with -o,
4703 # though they will create one.
4704 am_cv_prog_cc_c_o=yes
4705 for am_i in 1 2; do
4706 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4707 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } \
4711 && test -f conftest2.$ac_objext; then
4712 : OK
4713 else
4714 am_cv_prog_cc_c_o=no
4715 break
4716 fi
4717 done
4718 rm -f core conftest*
4719 unset am_i
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4722$as_echo "$am_cv_prog_cc_c_o" >&6; }
4723if test "$am_cv_prog_cc_c_o" != yes; then
4724 # Losing compiler, so override with the script.
4725 # FIXME: It is wrong to rewrite CC.
4726 # But if we don't then we get into trouble of one sort or another.
4727 # A longer-term fix would be to have automake use am__CC in this case,
4728 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4729 CC="$am_aux_dir/compile $CC"
4730fi
4731ac_ext=c
4732ac_cpp='$CPP $CPPFLAGS'
4733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736
4737
4738
4739ac_ext=c
4740ac_cpp='$CPP $CPPFLAGS'
4741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4745$as_echo_n "checking how to run the C preprocessor... " >&6; }
4746# On Suns, sometimes $CPP names a directory.
4747if test -n "$CPP" && test -d "$CPP"; then
4748 CPP=
4749fi
4750if test -z "$CPP"; then
4751 if ${ac_cv_prog_CPP+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753else
4754 # Double quotes because CPP needs to be expanded
4755 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4756 do
4757 ac_preproc_ok=false
4758for ac_c_preproc_warn_flag in '' yes
4759do
4760 # Use a header file that comes with gcc, so configuring glibc
4761 # with a fresh cross-compiler works.
4762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4763 # <limits.h> exists even on freestanding compilers.
4764 # On the NeXT, cc -E runs the code through the compiler's parser,
4765 # not just through cpp. "Syntax error" is here to catch this case.
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767/* end confdefs.h. */
4768#ifdef __STDC__
4769# include <limits.h>
4770#else
4771# include <assert.h>
4772#endif
4773 Syntax error
4774_ACEOF
4775if ac_fn_c_try_cpp "$LINENO"; then :
4776
4777else
4778 # Broken: fails on valid input.
4779continue
4780fi
4781rm -f conftest.err conftest.i conftest.$ac_ext
4782
4783 # OK, works on sane cases. Now check whether nonexistent headers
4784 # can be detected and how.
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h. */
4787#include <ac_nonexistent.h>
4788_ACEOF
4789if ac_fn_c_try_cpp "$LINENO"; then :
4790 # Broken: success on invalid input.
4791continue
4792else
4793 # Passes both tests.
4794ac_preproc_ok=:
4795break
4796fi
4797rm -f conftest.err conftest.i conftest.$ac_ext
4798
4799done
4800# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4801rm -f conftest.i conftest.err conftest.$ac_ext
4802if $ac_preproc_ok; then :
4803 break
4804fi
4805
4806 done
4807 ac_cv_prog_CPP=$CPP
4808
4809fi
4810 CPP=$ac_cv_prog_CPP
4811else
4812 ac_cv_prog_CPP=$CPP
4813fi
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4815$as_echo "$CPP" >&6; }
4816ac_preproc_ok=false
4817for ac_c_preproc_warn_flag in '' yes
4818do
4819 # Use a header file that comes with gcc, so configuring glibc
4820 # with a fresh cross-compiler works.
4821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4822 # <limits.h> exists even on freestanding compilers.
4823 # On the NeXT, cc -E runs the code through the compiler's parser,
4824 # not just through cpp. "Syntax error" is here to catch this case.
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h. */
4827#ifdef __STDC__
4828# include <limits.h>
4829#else
4830# include <assert.h>
4831#endif
4832 Syntax error
4833_ACEOF
4834if ac_fn_c_try_cpp "$LINENO"; then :
4835
4836else
4837 # Broken: fails on valid input.
4838continue
4839fi
4840rm -f conftest.err conftest.i conftest.$ac_ext
4841
4842 # OK, works on sane cases. Now check whether nonexistent headers
4843 # can be detected and how.
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845/* end confdefs.h. */
4846#include <ac_nonexistent.h>
4847_ACEOF
4848if ac_fn_c_try_cpp "$LINENO"; then :
4849 # Broken: success on invalid input.
4850continue
4851else
4852 # Passes both tests.
4853ac_preproc_ok=:
4854break
4855fi
4856rm -f conftest.err conftest.i conftest.$ac_ext
4857
4858done
4859# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4860rm -f conftest.i conftest.err conftest.$ac_ext
4861if $ac_preproc_ok; then :
4862
4863else
4864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4866as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4867See \`config.log' for more details" "$LINENO" 5; }
4868fi
4869
4870ac_ext=c
4871ac_cpp='$CPP $CPPFLAGS'
4872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875
4876
4877 IFS=$xc_prog_cc_prev_IFS
4878 LIBS=$xc_prog_cc_prev_LIBS
4879 CFLAGS=$xc_prog_cc_prev_CFLAGS
4880 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4881 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4882
4883
4884
4885
4886
Elliott Hughes0128fe42018-02-27 14:57:55 -08004887
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4889$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4890if ${ac_cv_path_SED+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892else
4893 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4894 for ac_i in 1 2 3 4 5 6 7; do
4895 ac_script="$ac_script$as_nl$ac_script"
4896 done
4897 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4898 { ac_script=; unset ac_script;}
4899 if test -z "$SED"; then
4900 ac_path_SED_found=false
4901 # Loop through the user's path and test for each of PROGNAME-LIST
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_prog in sed gsed; do
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4910 as_fn_executable_p "$ac_path_SED" || continue
4911# Check for GNU ac_path_SED and select it if it is found.
4912 # Check for GNU $ac_path_SED
4913case `"$ac_path_SED" --version 2>&1` in
4914*GNU*)
4915 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4916*)
4917 ac_count=0
4918 $as_echo_n 0123456789 >"conftest.in"
4919 while :
4920 do
4921 cat "conftest.in" "conftest.in" >"conftest.tmp"
4922 mv "conftest.tmp" "conftest.in"
4923 cp "conftest.in" "conftest.nl"
4924 $as_echo '' >> "conftest.nl"
4925 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4927 as_fn_arith $ac_count + 1 && ac_count=$as_val
4928 if test $ac_count -gt ${ac_path_SED_max-0}; then
4929 # Best one so far, save it but keep looking for a better one
4930 ac_cv_path_SED="$ac_path_SED"
4931 ac_path_SED_max=$ac_count
4932 fi
4933 # 10*(2^10) chars as input seems more than enough
4934 test $ac_count -gt 10 && break
4935 done
4936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4937esac
4938
4939 $ac_path_SED_found && break 3
4940 done
4941 done
4942 done
4943IFS=$as_save_IFS
4944 if test -z "$ac_cv_path_SED"; then
4945 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4946 fi
4947else
4948 ac_cv_path_SED=$SED
4949fi
4950
4951fi
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4953$as_echo "$ac_cv_path_SED" >&6; }
4954 SED="$ac_cv_path_SED"
4955 rm -f conftest.sed
4956
Elliott Hughes0128fe42018-02-27 14:57:55 -08004957
4958
4959
Haibo Huang51d9d882019-02-06 01:36:06 -08004960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
4961$as_echo_n "checking for code coverage support... " >&6; }
4962 coverage="no"
4963 curl_coverage_msg="disabled"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004964
Haibo Huang51d9d882019-02-06 01:36:06 -08004965 # Check whether --enable-code-coverage was given.
Elliott Hughes0128fe42018-02-27 14:57:55 -08004966if test "${enable_code_coverage+set}" = set; then :
Haibo Huang51d9d882019-02-06 01:36:06 -08004967 enableval=$enable_code_coverage; coverage="yes"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004968else
Haibo Huang51d9d882019-02-06 01:36:06 -08004969 coverage="no"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004970fi
4971
4972
Haibo Huang51d9d882019-02-06 01:36:06 -08004973 if test "$GCC" != "yes" ; then :
4974 coverage="no"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004975fi
Haibo Huang51d9d882019-02-06 01:36:06 -08004976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
4977$as_echo "$coverage" >&6; }
Elliott Hughes0128fe42018-02-27 14:57:55 -08004978
Haibo Huang51d9d882019-02-06 01:36:06 -08004979 if test "x$coverage" = "xyes"; then
4980 curl_coverage_msg="enabled"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004981
Haibo Huang51d9d882019-02-06 01:36:06 -08004982 if test -n "$ac_tool_prefix"; then
4983 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
4984set dummy ${ac_tool_prefix}gcov; ac_word=$2
Elliott Hughes0128fe42018-02-27 14:57:55 -08004985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986$as_echo_n "checking for $ac_word... " >&6; }
4987if ${ac_cv_prog_GCOV+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989else
4990 if test -n "$GCOV"; then
4991 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
4992else
4993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Haibo Huang51d9d882019-02-06 01:36:06 -08005000 ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5003 fi
5004done
5005 done
5006IFS=$as_save_IFS
5007
5008fi
5009fi
5010GCOV=$ac_cv_prog_GCOV
5011if test -n "$GCOV"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5013$as_echo "$GCOV" >&6; }
5014else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016$as_echo "no" >&6; }
5017fi
5018
5019
5020fi
5021if test -z "$ac_cv_prog_GCOV"; then
5022 ac_ct_GCOV=$GCOV
Haibo Huang51d9d882019-02-06 01:36:06 -08005023 # Extract the first word of "gcov", so it can be a program name with args.
5024set dummy gcov; ac_word=$2
Elliott Hughes0128fe42018-02-27 14:57:55 -08005025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026$as_echo_n "checking for $ac_word... " >&6; }
5027if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029else
5030 if test -n "$ac_ct_GCOV"; then
5031 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5032else
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Haibo Huang51d9d882019-02-06 01:36:06 -08005040 ac_cv_prog_ac_ct_GCOV="gcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044done
5045 done
5046IFS=$as_save_IFS
5047
5048fi
5049fi
5050ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5051if test -n "$ac_ct_GCOV"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5053$as_echo "$ac_ct_GCOV" >&6; }
5054else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056$as_echo "no" >&6; }
5057fi
5058
5059 if test "x$ac_ct_GCOV" = x; then
Haibo Huang51d9d882019-02-06 01:36:06 -08005060 GCOV="gcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005061 else
5062 case $cross_compiling:$ac_tool_warned in
5063yes:)
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5066ac_tool_warned=yes ;;
5067esac
5068 GCOV=$ac_ct_GCOV
5069 fi
5070else
5071 GCOV="$ac_cv_prog_GCOV"
5072fi
5073
Haibo Huang51d9d882019-02-06 01:36:06 -08005074 if test -z "$GCOV"; then
5075 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5076 fi
5077 # Extract the first word of "lcov", so it can be a program name with args.
Elliott Hughes0128fe42018-02-27 14:57:55 -08005078set dummy lcov; ac_word=$2
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080$as_echo_n "checking for $ac_word... " >&6; }
5081if ${ac_cv_prog_LCOV+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083else
5084 if test -n "$LCOV"; then
5085 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5086else
5087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088for as_dir in $PATH
5089do
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094 ac_cv_prog_LCOV="lcov"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5097 fi
5098done
5099 done
5100IFS=$as_save_IFS
5101
5102fi
5103fi
5104LCOV=$ac_cv_prog_LCOV
5105if test -n "$LCOV"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5107$as_echo "$LCOV" >&6; }
5108else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110$as_echo "no" >&6; }
5111fi
5112
5113
Haibo Huang51d9d882019-02-06 01:36:06 -08005114 if test -z "$LCOV"; then
5115 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5116 fi
5117
5118 CPPFLAGS="$CPPFLAGS -DNDEBUG"
5119 CFLAGS="$CLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5120 LIBS="$LIBS -lgcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005121 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -08005122
Elliott Hughes0128fe42018-02-27 14:57:55 -08005123
Elliott Hughes82be86d2017-09-20 17:00:17 -07005124am__api_version='1.15'
5125
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5127$as_echo_n "checking whether build environment is sane... " >&6; }
5128# Reject unsafe characters in $srcdir or the absolute working directory
5129# name. Accept space and tab only in the latter.
5130am_lf='
5131'
5132case `pwd` in
5133 *[\\\"\#\$\&\'\`$am_lf]*)
5134 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5135esac
5136case $srcdir in
5137 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5138 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5139esac
5140
5141# Do 'set' in a subshell so we don't clobber the current shell's
5142# arguments. Must try -L first in case configure is actually a
5143# symlink; some systems play weird games with the mod time of symlinks
5144# (eg FreeBSD returns the mod time of the symlink's containing
5145# directory).
5146if (
5147 am_has_slept=no
5148 for am_try in 1 2; do
5149 echo "timestamp, slept: $am_has_slept" > conftest.file
5150 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5151 if test "$*" = "X"; then
5152 # -L didn't work.
5153 set X `ls -t "$srcdir/configure" conftest.file`
5154 fi
5155 if test "$*" != "X $srcdir/configure conftest.file" \
5156 && test "$*" != "X conftest.file $srcdir/configure"; then
5157
5158 # If neither matched, then we have a broken ls. This can happen
5159 # if, for instance, CONFIG_SHELL is bash and it inherits a
5160 # broken ls alias from the environment. This has actually
5161 # happened. Such a system could not be considered "sane".
5162 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5163 alias in your environment" "$LINENO" 5
5164 fi
5165 if test "$2" = conftest.file || test $am_try -eq 2; then
5166 break
5167 fi
5168 # Just in case.
5169 sleep 1
5170 am_has_slept=yes
5171 done
5172 test "$2" = conftest.file
5173 )
5174then
5175 # Ok.
5176 :
5177else
5178 as_fn_error $? "newly created file is older than distributed files!
5179Check your system clock" "$LINENO" 5
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5182$as_echo "yes" >&6; }
5183# If we didn't sleep, we still need to ensure time stamps of config.status and
5184# generated files are strictly newer.
5185am_sleep_pid=
5186if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5187 ( sleep 1 ) &
5188 am_sleep_pid=$!
5189fi
5190
5191rm -f conftest.file
5192
5193test "$program_prefix" != NONE &&
5194 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5195# Use a double $ so make ignores it.
5196test "$program_suffix" != NONE &&
5197 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5198# Double any \ or $.
5199# By default was `s,x,x', remove it if useless.
5200ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5201program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5202
5203if test x"${MISSING+set}" != xset; then
5204 case $am_aux_dir in
5205 *\ * | *\ *)
5206 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5207 *)
5208 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5209 esac
5210fi
5211# Use eval to expand $SHELL
5212if eval "$MISSING --is-lightweight"; then
5213 am_missing_run="$MISSING "
5214else
5215 am_missing_run=
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5217$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5218fi
5219
5220if test x"${install_sh+set}" != xset; then
5221 case $am_aux_dir in
5222 *\ * | *\ *)
5223 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5224 *)
5225 install_sh="\${SHELL} $am_aux_dir/install-sh"
5226 esac
5227fi
5228
5229# Installed binaries are usually stripped using 'strip' when the user
5230# run "make install-strip". However 'strip' might not be the right
5231# tool to use in cross-compilation environments, therefore Automake
5232# will honor the 'STRIP' environment variable to overrule this program.
5233if test "$cross_compiling" != no; then
5234 if test -n "$ac_tool_prefix"; then
5235 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5236set dummy ${ac_tool_prefix}strip; ac_word=$2
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238$as_echo_n "checking for $ac_word... " >&6; }
5239if ${ac_cv_prog_STRIP+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241else
5242 if test -n "$STRIP"; then
5243 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5244else
5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256done
5257 done
5258IFS=$as_save_IFS
5259
5260fi
5261fi
5262STRIP=$ac_cv_prog_STRIP
5263if test -n "$STRIP"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5265$as_echo "$STRIP" >&6; }
5266else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268$as_echo "no" >&6; }
5269fi
5270
5271
5272fi
5273if test -z "$ac_cv_prog_STRIP"; then
5274 ac_ct_STRIP=$STRIP
5275 # Extract the first word of "strip", so it can be a program name with args.
5276set dummy strip; ac_word=$2
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278$as_echo_n "checking for $ac_word... " >&6; }
5279if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281else
5282 if test -n "$ac_ct_STRIP"; then
5283 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5284else
5285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286for as_dir in $PATH
5287do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 ac_cv_prog_ac_ct_STRIP="strip"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5295 fi
5296done
5297 done
5298IFS=$as_save_IFS
5299
5300fi
5301fi
5302ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5303if test -n "$ac_ct_STRIP"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5305$as_echo "$ac_ct_STRIP" >&6; }
5306else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308$as_echo "no" >&6; }
5309fi
5310
5311 if test "x$ac_ct_STRIP" = x; then
5312 STRIP=":"
5313 else
5314 case $cross_compiling:$ac_tool_warned in
5315yes:)
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5318ac_tool_warned=yes ;;
5319esac
5320 STRIP=$ac_ct_STRIP
5321 fi
5322else
5323 STRIP="$ac_cv_prog_STRIP"
5324fi
5325
5326fi
5327INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5328
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5330$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5331if test -z "$MKDIR_P"; then
5332 if ${ac_cv_path_mkdir+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5337do
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_prog in mkdir gmkdir; do
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5343 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5344 'mkdir (GNU coreutils) '* | \
5345 'mkdir (coreutils) '* | \
5346 'mkdir (fileutils) '4.1*)
5347 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5348 break 3;;
5349 esac
5350 done
5351 done
5352 done
5353IFS=$as_save_IFS
5354
5355fi
5356
5357 test -d ./--version && rmdir ./--version
5358 if test "${ac_cv_path_mkdir+set}" = set; then
5359 MKDIR_P="$ac_cv_path_mkdir -p"
5360 else
5361 # As a last resort, use the slow shell script. Don't cache a
5362 # value for MKDIR_P within a source directory, because that will
5363 # break other packages using the cache if that directory is
5364 # removed, or if the value is a relative name.
5365 MKDIR_P="$ac_install_sh -d"
5366 fi
5367fi
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5369$as_echo "$MKDIR_P" >&6; }
5370
5371for ac_prog in gawk mawk nawk awk
5372do
5373 # Extract the first word of "$ac_prog", so it can be a program name with args.
5374set dummy $ac_prog; ac_word=$2
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376$as_echo_n "checking for $ac_word... " >&6; }
5377if ${ac_cv_prog_AWK+:} false; then :
5378 $as_echo_n "(cached) " >&6
5379else
5380 if test -n "$AWK"; then
5381 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5382else
5383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384for as_dir in $PATH
5385do
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5390 ac_cv_prog_AWK="$ac_prog"
5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392 break 2
5393 fi
5394done
5395 done
5396IFS=$as_save_IFS
5397
5398fi
5399fi
5400AWK=$ac_cv_prog_AWK
5401if test -n "$AWK"; then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5403$as_echo "$AWK" >&6; }
5404else
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406$as_echo "no" >&6; }
5407fi
5408
5409
5410 test -n "$AWK" && break
5411done
5412
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5414$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5415set x ${MAKE-make}
5416ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5417if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419else
5420 cat >conftest.make <<\_ACEOF
5421SHELL = /bin/sh
5422all:
5423 @echo '@@@%%%=$(MAKE)=@@@%%%'
5424_ACEOF
5425# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5426case `${MAKE-make} -f conftest.make 2>/dev/null` in
5427 *@@@%%%=?*=@@@%%%*)
5428 eval ac_cv_prog_make_${ac_make}_set=yes;;
5429 *)
5430 eval ac_cv_prog_make_${ac_make}_set=no;;
5431esac
5432rm -f conftest.make
5433fi
5434if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5436$as_echo "yes" >&6; }
5437 SET_MAKE=
5438else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440$as_echo "no" >&6; }
5441 SET_MAKE="MAKE=${MAKE-make}"
5442fi
5443
5444rm -rf .tst 2>/dev/null
5445mkdir .tst 2>/dev/null
5446if test -d .tst; then
5447 am__leading_dot=.
5448else
5449 am__leading_dot=_
5450fi
5451rmdir .tst 2>/dev/null
5452
5453DEPDIR="${am__leading_dot}deps"
5454
5455ac_config_commands="$ac_config_commands depfiles"
5456
5457
5458am_make=${MAKE-make}
5459cat > confinc << 'END'
5460am__doit:
5461 @echo this is the am__doit target
5462.PHONY: am__doit
5463END
5464# If we don't find an include directive, just comment out the code.
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5466$as_echo_n "checking for style of include used by $am_make... " >&6; }
5467am__include="#"
5468am__quote=
5469_am_result=none
5470# First try GNU make style include.
5471echo "include confinc" > confmf
5472# Ignore all kinds of additional output from 'make'.
5473case `$am_make -s -f confmf 2> /dev/null` in #(
5474*the\ am__doit\ target*)
5475 am__include=include
5476 am__quote=
5477 _am_result=GNU
5478 ;;
5479esac
5480# Now try BSD make style include.
5481if test "$am__include" = "#"; then
5482 echo '.include "confinc"' > confmf
5483 case `$am_make -s -f confmf 2> /dev/null` in #(
5484 *the\ am__doit\ target*)
5485 am__include=.include
5486 am__quote="\""
5487 _am_result=BSD
5488 ;;
5489 esac
5490fi
5491
5492
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5494$as_echo "$_am_result" >&6; }
5495rm -f confinc confmf
5496
5497# Check whether --enable-dependency-tracking was given.
5498if test "${enable_dependency_tracking+set}" = set; then :
5499 enableval=$enable_dependency_tracking;
5500fi
5501
5502if test "x$enable_dependency_tracking" != xno; then
5503 am_depcomp="$ac_aux_dir/depcomp"
5504 AMDEPBACKSLASH='\'
5505 am__nodep='_no'
5506fi
5507 if test "x$enable_dependency_tracking" != xno; then
5508 AMDEP_TRUE=
5509 AMDEP_FALSE='#'
5510else
5511 AMDEP_TRUE='#'
5512 AMDEP_FALSE=
5513fi
5514
5515
5516## --------------------------------------- ##
5517## Start of automake initialization code ##
5518## --------------------------------------- ##
5519
5520if test "`cd $srcdir && pwd`" != "`pwd`"; then
5521 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5522 # is not polluted with repeated "-I."
5523 am__isrc=' -I$(srcdir)'
5524 # test to see if srcdir already configured
5525 if test -f $srcdir/config.status; then
5526 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5527 fi
5528fi
5529
5530# test whether we have cygpath
5531if test -z "$CYGPATH_W"; then
5532 if (cygpath --version) >/dev/null 2>/dev/null; then
5533 CYGPATH_W='cygpath -w'
5534 else
5535 CYGPATH_W=echo
5536 fi
5537fi
5538
5539
5540# Define the identity of the package.
5541 PACKAGE='curl'
5542 VERSION='-'
5543
5544
5545cat >>confdefs.h <<_ACEOF
5546#define PACKAGE "$PACKAGE"
5547_ACEOF
5548
5549
5550cat >>confdefs.h <<_ACEOF
5551#define VERSION "$VERSION"
5552_ACEOF
5553
5554# Some tools Automake needs.
5555
5556ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5557
5558
5559AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5560
5561
5562AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5563
5564
5565AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5566
5567
5568MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5569
5570# For better backward compatibility. To be removed once Automake 1.9.x
5571# dies out for good. For more background, see:
5572# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5573# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5574mkdir_p='$(MKDIR_P)'
5575
5576# We need awk for the "check" target (and possibly the TAP driver). The
5577# system "awk" is bad on some platforms.
5578# Always define AMTAR for backward compatibility. Yes, it's still used
5579# in the wild :-( We should find a proper way to deprecate it ...
5580AMTAR='$${TAR-tar}'
5581
5582
5583# We'll loop over all known methods to create a tar archive until one works.
5584_am_tools='gnutar pax cpio none'
5585
5586am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5587
5588
5589
5590
5591
5592depcc="$CC" am_compiler_list=
5593
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5595$as_echo_n "checking dependency style of $depcc... " >&6; }
5596if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598else
5599 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5600 # We make a subdir and do the tests there. Otherwise we can end up
5601 # making bogus files that we don't know about and never remove. For
5602 # instance it was reported that on HP-UX the gcc test will end up
5603 # making a dummy file named 'D' -- because '-MD' means "put the output
5604 # in D".
5605 rm -rf conftest.dir
5606 mkdir conftest.dir
5607 # Copy depcomp to subdir because otherwise we won't find it if we're
5608 # using a relative directory.
5609 cp "$am_depcomp" conftest.dir
5610 cd conftest.dir
5611 # We will build objects and dependencies in a subdirectory because
5612 # it helps to detect inapplicable dependency modes. For instance
5613 # both Tru64's cc and ICC support -MD to output dependencies as a
5614 # side effect of compilation, but ICC will put the dependencies in
5615 # the current directory while Tru64 will put them in the object
5616 # directory.
5617 mkdir sub
5618
5619 am_cv_CC_dependencies_compiler_type=none
5620 if test "$am_compiler_list" = ""; then
5621 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5622 fi
5623 am__universal=false
5624 case " $depcc " in #(
5625 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5626 esac
5627
5628 for depmode in $am_compiler_list; do
5629 # Setup a source with many dependencies, because some compilers
5630 # like to wrap large dependency lists on column 80 (with \), and
5631 # we should not choose a depcomp mode which is confused by this.
5632 #
5633 # We need to recreate these files for each test, as the compiler may
5634 # overwrite some of them when testing with obscure command lines.
5635 # This happens at least with the AIX C compiler.
5636 : > sub/conftest.c
5637 for i in 1 2 3 4 5 6; do
5638 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5639 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5640 # Solaris 10 /bin/sh.
5641 echo '/* dummy */' > sub/conftst$i.h
5642 done
5643 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5644
5645 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5646 # mode. It turns out that the SunPro C++ compiler does not properly
5647 # handle '-M -o', and we need to detect this. Also, some Intel
5648 # versions had trouble with output in subdirs.
5649 am__obj=sub/conftest.${OBJEXT-o}
5650 am__minus_obj="-o $am__obj"
5651 case $depmode in
5652 gcc)
5653 # This depmode causes a compiler race in universal mode.
5654 test "$am__universal" = false || continue
5655 ;;
5656 nosideeffect)
5657 # After this tag, mechanisms are not by side-effect, so they'll
5658 # only be used when explicitly requested.
5659 if test "x$enable_dependency_tracking" = xyes; then
5660 continue
5661 else
5662 break
5663 fi
5664 ;;
5665 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5666 # This compiler won't grok '-c -o', but also, the minuso test has
5667 # not run yet. These depmodes are late enough in the game, and
5668 # so weak that their functioning should not be impacted.
5669 am__obj=conftest.${OBJEXT-o}
5670 am__minus_obj=
5671 ;;
5672 none) break ;;
5673 esac
5674 if depmode=$depmode \
5675 source=sub/conftest.c object=$am__obj \
5676 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5677 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5678 >/dev/null 2>conftest.err &&
5679 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5680 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5681 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5682 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5683 # icc doesn't choke on unknown options, it will just issue warnings
5684 # or remarks (even with -Werror). So we grep stderr for any message
5685 # that says an option was ignored or not supported.
5686 # When given -MP, icc 7.0 and 7.1 complain thusly:
5687 # icc: Command line warning: ignoring option '-M'; no argument required
5688 # The diagnosis changed in icc 8.0:
5689 # icc: Command line remark: option '-MP' not supported
5690 if (grep 'ignoring option' conftest.err ||
5691 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5692 am_cv_CC_dependencies_compiler_type=$depmode
5693 break
5694 fi
5695 fi
5696 done
5697
5698 cd ..
5699 rm -rf conftest.dir
5700else
5701 am_cv_CC_dependencies_compiler_type=none
5702fi
5703
5704fi
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5706$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5707CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5708
5709 if
5710 test "x$enable_dependency_tracking" != xno \
5711 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5712 am__fastdepCC_TRUE=
5713 am__fastdepCC_FALSE='#'
5714else
5715 am__fastdepCC_TRUE='#'
5716 am__fastdepCC_FALSE=
5717fi
5718
5719
5720
5721# POSIX will say in a future version that running "rm -f" with no argument
5722# is OK; and we want to be able to make that assumption in our Makefile
5723# recipes. So use an aggressive probe to check that the usage we want is
5724# actually supported "in the wild" to an acceptable degree.
5725# See automake bug#10828.
5726# To make any issue more visible, cause the running configure to be aborted
5727# by default if the 'rm' program in use doesn't match our expectations; the
5728# user can still override this though.
5729if rm -f && rm -fr && rm -rf; then : OK; else
5730 cat >&2 <<'END'
5731Oops!
5732
5733Your 'rm' program seems unable to run without file operands specified
5734on the command line, even when the '-f' option is present. This is contrary
5735to the behaviour of most rm programs out there, and not conforming with
5736the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5737
5738Please tell bug-automake@gnu.org about your system, including the value
5739of your $PATH and any error possibly output before this message. This
5740can help us improve future automake versions.
5741
5742END
5743 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5744 echo 'Configuration will proceed anyway, since you have set the' >&2
5745 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5746 echo >&2
5747 else
5748 cat >&2 <<'END'
5749Aborting the configuration process, to ensure you take notice of the issue.
5750
5751You can download and install GNU coreutils to get an 'rm' implementation
5752that behaves properly: <http://www.gnu.org/software/coreutils/>.
5753
5754If you want to complete the configuration process using your problematic
5755'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5756to "yes", and re-run configure.
5757
5758END
5759 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5760 fi
5761fi
5762
5763## ------------------------------------- ##
5764## End of automake initialization code ##
5765## ------------------------------------- ##
5766
5767
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5769$as_echo_n "checking curl version... " >&6; }
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5771$as_echo "$CURLVERSION" >&6; }
5772
5773
5774
5775VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
5776
5777
5778PKGADD_PKG="HAXXcurl"
5779PKGADD_NAME="curl - a client that groks URLs"
5780PKGADD_VENDOR="curl.haxx.se"
5781
5782
5783
5784
Haibo Huang21926d52019-01-08 14:27:10 -08005785 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,winssl,darwinssl,mesalink} )"
Elliott Hughes82be86d2017-09-20 17:00:17 -07005786 curl_ssh_msg="no (--with-libssh2)"
5787 curl_zlib_msg="no (--with-zlib)"
Alex Deymo486467e2017-12-19 19:04:07 +01005788 curl_brotli_msg="no (--with-brotli)"
Elliott Hughes82be86d2017-09-20 17:00:17 -07005789 curl_gss_msg="no (--with-gssapi)"
5790curl_tls_srp_msg="no (--enable-tls-srp)"
5791 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5792 curl_ipv6_msg="no (--enable-ipv6)"
5793curl_unix_sockets_msg="no (--enable-unix-sockets)"
5794 curl_idn_msg="no (--with-{libidn2,winidn})"
5795 curl_manual_msg="no (--enable-manual)"
5796curl_libcurl_msg="enabled (--disable-libcurl-option)"
5797curl_verbose_msg="enabled (--disable-verbose)"
5798 curl_sspi_msg="no (--enable-sspi)"
5799 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5800 curl_ldaps_msg="no (--enable-ldaps)"
5801 curl_rtsp_msg="no (--enable-rtsp)"
5802 curl_rtmp_msg="no (--with-librtmp)"
5803 curl_mtlnk_msg="no (--with-libmetalink)"
5804 curl_psl_msg="no (--with-libpsl)"
5805
Alex Deymo486467e2017-12-19 19:04:07 +01005806 ssl_backends=
Elliott Hughes82be86d2017-09-20 17:00:17 -07005807
5808INITIAL_LDFLAGS=$LDFLAGS
5809INITIAL_LIBS=$LIBS
5810
5811
5812# Make sure we can run config.sub.
5813$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5814 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5815
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5817$as_echo_n "checking build system type... " >&6; }
5818if ${ac_cv_build+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820else
5821 ac_build_alias=$build_alias
5822test "x$ac_build_alias" = x &&
5823 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5824test "x$ac_build_alias" = x &&
5825 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5826ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5827 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5828
5829fi
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5831$as_echo "$ac_cv_build" >&6; }
5832case $ac_cv_build in
5833*-*-*) ;;
5834*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5835esac
5836build=$ac_cv_build
5837ac_save_IFS=$IFS; IFS='-'
5838set x $ac_cv_build
5839shift
5840build_cpu=$1
5841build_vendor=$2
5842shift; shift
5843# Remember, the first character of IFS is used to create $*,
5844# except with old shells:
5845build_os=$*
5846IFS=$ac_save_IFS
5847case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5848
5849
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5851$as_echo_n "checking host system type... " >&6; }
5852if ${ac_cv_host+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854else
5855 if test "x$host_alias" = x; then
5856 ac_cv_host=$ac_cv_build
5857else
5858 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5859 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5860fi
5861
5862fi
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5864$as_echo "$ac_cv_host" >&6; }
5865case $ac_cv_host in
5866*-*-*) ;;
5867*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5868esac
5869host=$ac_cv_host
5870ac_save_IFS=$IFS; IFS='-'
5871set x $ac_cv_host
5872shift
5873host_cpu=$1
5874host_vendor=$2
5875shift; shift
5876# Remember, the first character of IFS is used to create $*,
5877# except with old shells:
5878host_os=$*
5879IFS=$ac_save_IFS
5880case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5881
5882
5883
5884cat >>confdefs.h <<_ACEOF
5885#define OS "${host}"
5886_ACEOF
5887
5888
Elliott Hughes72d948d2018-08-03 14:37:21 -07005889# Silence warning: ar: 'u' modifier ignored since 'D' is the default
5890AR_FLAGS=cr
5891
Elliott Hughes82be86d2017-09-20 17:00:17 -07005892
5893
5894
Elliott Hughes82be86d2017-09-20 17:00:17 -07005895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5896$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5897if ${ac_cv_path_GREP+:} false; then :
5898 $as_echo_n "(cached) " >&6
5899else
5900 if test -z "$GREP"; then
5901 ac_path_GREP_found=false
5902 # Loop through the user's path and test for each of PROGNAME-LIST
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5905do
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_prog in grep ggrep; do
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5911 as_fn_executable_p "$ac_path_GREP" || continue
5912# Check for GNU ac_path_GREP and select it if it is found.
5913 # Check for GNU $ac_path_GREP
5914case `"$ac_path_GREP" --version 2>&1` in
5915*GNU*)
5916 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5917*)
5918 ac_count=0
5919 $as_echo_n 0123456789 >"conftest.in"
5920 while :
5921 do
5922 cat "conftest.in" "conftest.in" >"conftest.tmp"
5923 mv "conftest.tmp" "conftest.in"
5924 cp "conftest.in" "conftest.nl"
5925 $as_echo 'GREP' >> "conftest.nl"
5926 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5928 as_fn_arith $ac_count + 1 && ac_count=$as_val
5929 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5930 # Best one so far, save it but keep looking for a better one
5931 ac_cv_path_GREP="$ac_path_GREP"
5932 ac_path_GREP_max=$ac_count
5933 fi
5934 # 10*(2^10) chars as input seems more than enough
5935 test $ac_count -gt 10 && break
5936 done
5937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5938esac
5939
5940 $ac_path_GREP_found && break 3
5941 done
5942 done
5943 done
5944IFS=$as_save_IFS
5945 if test -z "$ac_cv_path_GREP"; then
5946 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5947 fi
5948else
5949 ac_cv_path_GREP=$GREP
5950fi
5951
5952fi
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5954$as_echo "$ac_cv_path_GREP" >&6; }
5955 GREP="$ac_cv_path_GREP"
5956
5957
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5959$as_echo_n "checking for egrep... " >&6; }
5960if ${ac_cv_path_EGREP+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962else
5963 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5964 then ac_cv_path_EGREP="$GREP -E"
5965 else
5966 if test -z "$EGREP"; then
5967 ac_path_EGREP_found=false
5968 # Loop through the user's path and test for each of PROGNAME-LIST
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5971do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_prog in egrep; do
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5977 as_fn_executable_p "$ac_path_EGREP" || continue
5978# Check for GNU ac_path_EGREP and select it if it is found.
5979 # Check for GNU $ac_path_EGREP
5980case `"$ac_path_EGREP" --version 2>&1` in
5981*GNU*)
5982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5983*)
5984 ac_count=0
5985 $as_echo_n 0123456789 >"conftest.in"
5986 while :
5987 do
5988 cat "conftest.in" "conftest.in" >"conftest.tmp"
5989 mv "conftest.tmp" "conftest.in"
5990 cp "conftest.in" "conftest.nl"
5991 $as_echo 'EGREP' >> "conftest.nl"
5992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5994 as_fn_arith $ac_count + 1 && ac_count=$as_val
5995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5996 # Best one so far, save it but keep looking for a better one
5997 ac_cv_path_EGREP="$ac_path_EGREP"
5998 ac_path_EGREP_max=$ac_count
5999 fi
6000 # 10*(2^10) chars as input seems more than enough
6001 test $ac_count -gt 10 && break
6002 done
6003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6004esac
6005
6006 $ac_path_EGREP_found && break 3
6007 done
6008 done
6009 done
6010IFS=$as_save_IFS
6011 if test -z "$ac_cv_path_EGREP"; then
6012 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6013 fi
6014else
6015 ac_cv_path_EGREP=$EGREP
6016fi
6017
6018 fi
6019fi
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6021$as_echo "$ac_cv_path_EGREP" >&6; }
6022 EGREP="$ac_cv_path_EGREP"
6023
6024
Elliott Hughes82be86d2017-09-20 17:00:17 -07006025
6026
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6028$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030/* end confdefs.h. */
6031
6032#ifdef _AIX
6033 yes_this_is_aix
6034#endif
6035
6036_ACEOF
6037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6038 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6039
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6041$as_echo "yes" >&6; }
6042 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6043
6044
6045else
6046
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048$as_echo "no" >&6; }
6049
6050fi
6051rm -f conftest*
6052
6053
6054
6055
6056 #
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6058$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060/* end confdefs.h. */
6061
6062
6063
6064int main (void)
6065{
6066
6067#ifdef _THREAD_SAFE
6068 int dummy=1;
6069#else
6070 force compilation error
6071#endif
6072
6073 ;
6074 return 0;
6075}
6076
6077_ACEOF
6078if ac_fn_c_try_compile "$LINENO"; then :
6079
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6081$as_echo "yes" >&6; }
6082 tmp_thread_safe_initially_defined="yes"
6083
6084else
6085
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087$as_echo "no" >&6; }
6088 tmp_thread_safe_initially_defined="no"
6089
6090fi
6091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 #
6093 if test "$tmp_thread_safe_initially_defined" = "no"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6095$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6096
6097 case $host_os in
6098 aix[123].* | aix4.[012].*)
6099 tmp_need_thread_safe="no"
6100 ;;
6101 aix*)
6102 tmp_need_thread_safe="yes"
6103 ;;
6104 *)
6105 tmp_need_thread_safe="no"
6106 ;;
6107 esac
6108
6109 if test "$tmp_need_thread_safe" = "yes"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6111$as_echo "yes" >&6; }
6112 else
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114$as_echo "no" >&6; }
6115 fi
6116 fi
6117 #
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6119$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6120 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6121 test "$tmp_need_thread_safe" = "yes"; then
6122
6123
6124$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6125
6126cat >>confdefs.h <<_EOF
6127#ifndef _THREAD_SAFE
6128# define _THREAD_SAFE
6129#endif
6130_EOF
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6133$as_echo "yes" >&6; }
6134 else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136$as_echo "no" >&6; }
6137 fi
6138 #
6139
6140
6141 #
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6143$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145/* end confdefs.h. */
6146
6147
6148
6149int main (void)
6150{
6151
6152#ifdef _REENTRANT
6153 int dummy=1;
6154#else
6155 force compilation error
6156#endif
6157
6158 ;
6159 return 0;
6160}
6161
6162_ACEOF
6163if ac_fn_c_try_compile "$LINENO"; then :
6164
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6166$as_echo "yes" >&6; }
6167 tmp_reentrant_initially_defined="yes"
6168
6169else
6170
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172$as_echo "no" >&6; }
6173 tmp_reentrant_initially_defined="no"
6174
6175fi
6176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 #
6178 if test "$tmp_reentrant_initially_defined" = "no"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6180$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6181
6182 case $host_os in
6183 solaris*)
6184 tmp_need_reentrant="yes"
6185 ;;
6186 *)
6187 tmp_need_reentrant="no"
6188 ;;
6189 esac
6190
6191 if test "$tmp_need_reentrant" = "no"; then
6192
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194/* end confdefs.h. */
6195
6196
6197#include <errno.h>
6198
6199int main (void)
6200{
6201
6202 if(0 != errno)
6203 return 1;
6204
6205 ;
6206 return 0;
6207}
6208
6209_ACEOF
6210if ac_fn_c_try_compile "$LINENO"; then :
6211
6212 tmp_errno="yes"
6213
6214else
6215
6216 tmp_errno="no"
6217
6218fi
6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 if test "$tmp_errno" = "yes"; then
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222/* end confdefs.h. */
6223
6224
6225#include <errno.h>
6226
6227int main (void)
6228{
6229
6230#ifdef errno
6231 int dummy=1;
6232#else
6233 force compilation error
6234#endif
6235
6236 ;
6237 return 0;
6238}
6239
6240_ACEOF
6241if ac_fn_c_try_compile "$LINENO"; then :
6242
6243 tmp_errno="errno_macro_defined"
6244
6245else
6246
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248/* end confdefs.h. */
6249
6250
6251#define _REENTRANT
6252#include <errno.h>
6253
6254int main (void)
6255{
6256
6257#ifdef errno
6258 int dummy=1;
6259#else
6260 force compilation error
6261#endif
6262
6263 ;
6264 return 0;
6265}
6266
6267_ACEOF
6268if ac_fn_c_try_compile "$LINENO"; then :
6269
6270 tmp_errno="errno_macro_needs_reentrant"
6271 tmp_need_reentrant="yes"
6272
6273fi
6274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275
6276fi
6277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 fi
6279
6280 fi
6281 if test "$tmp_need_reentrant" = "no"; then
6282
6283 if test "$tmp_need_reentrant" = "no"; then
6284
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286/* end confdefs.h. */
6287
6288
6289#define gmtime_r innocuous_gmtime_r
6290#ifdef __STDC__
6291# include <limits.h>
6292#else
6293# include <assert.h>
6294#endif
6295#undef gmtime_r
6296#ifdef __cplusplus
6297extern "C"
6298#endif
6299char gmtime_r ();
6300#if defined __stub_gmtime_r || defined __stub___gmtime_r
6301choke me
6302#endif
6303
6304int main (void)
6305{
6306return gmtime_r ();
6307 ;
6308 return 0;
6309}
6310
6311_ACEOF
6312if ac_fn_c_try_link "$LINENO"; then :
6313
6314 tmp_gmtime_r="yes"
6315
6316else
6317
6318 tmp_gmtime_r="no"
6319
6320fi
6321rm -f core conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
6323 if test "$tmp_gmtime_r" = "yes"; then
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h. */
6326
6327#include <sys/types.h>
6328#include <time.h>
6329
6330_ACEOF
6331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6332 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6333
6334 tmp_gmtime_r="proto_declared"
6335
6336else
6337
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h. */
6340
6341#define _REENTRANT
6342#include <sys/types.h>
6343#include <time.h>
6344
6345_ACEOF
6346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6348
6349 tmp_gmtime_r="proto_needs_reentrant"
6350 tmp_need_reentrant="yes"
6351
6352fi
6353rm -f conftest*
6354
6355
6356fi
6357rm -f conftest*
6358
6359 fi
6360
6361 fi
6362 if test "$tmp_need_reentrant" = "no"; then
6363
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365/* end confdefs.h. */
6366
6367
6368#define localtime_r innocuous_localtime_r
6369#ifdef __STDC__
6370# include <limits.h>
6371#else
6372# include <assert.h>
6373#endif
6374#undef localtime_r
6375#ifdef __cplusplus
6376extern "C"
6377#endif
6378char localtime_r ();
6379#if defined __stub_localtime_r || defined __stub___localtime_r
6380choke me
6381#endif
6382
6383int main (void)
6384{
6385return localtime_r ();
6386 ;
6387 return 0;
6388}
6389
6390_ACEOF
6391if ac_fn_c_try_link "$LINENO"; then :
6392
6393 tmp_localtime_r="yes"
6394
6395else
6396
6397 tmp_localtime_r="no"
6398
6399fi
6400rm -f core conftest.err conftest.$ac_objext \
6401 conftest$ac_exeext conftest.$ac_ext
6402 if test "$tmp_localtime_r" = "yes"; then
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h. */
6405
6406#include <sys/types.h>
6407#include <time.h>
6408
6409_ACEOF
6410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6411 $EGREP "localtime_r" >/dev/null 2>&1; then :
6412
6413 tmp_localtime_r="proto_declared"
6414
6415else
6416
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418/* end confdefs.h. */
6419
6420#define _REENTRANT
6421#include <sys/types.h>
6422#include <time.h>
6423
6424_ACEOF
6425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6426 $EGREP "localtime_r" >/dev/null 2>&1; then :
6427
6428 tmp_localtime_r="proto_needs_reentrant"
6429 tmp_need_reentrant="yes"
6430
6431fi
6432rm -f conftest*
6433
6434
6435fi
6436rm -f conftest*
6437
6438 fi
6439
6440 fi
6441 if test "$tmp_need_reentrant" = "no"; then
6442
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444/* end confdefs.h. */
6445
6446
6447#define strerror_r innocuous_strerror_r
6448#ifdef __STDC__
6449# include <limits.h>
6450#else
6451# include <assert.h>
6452#endif
6453#undef strerror_r
6454#ifdef __cplusplus
6455extern "C"
6456#endif
6457char strerror_r ();
6458#if defined __stub_strerror_r || defined __stub___strerror_r
6459choke me
6460#endif
6461
6462int main (void)
6463{
6464return strerror_r ();
6465 ;
6466 return 0;
6467}
6468
6469_ACEOF
6470if ac_fn_c_try_link "$LINENO"; then :
6471
6472 tmp_strerror_r="yes"
6473
6474else
6475
6476 tmp_strerror_r="no"
6477
6478fi
6479rm -f core conftest.err conftest.$ac_objext \
6480 conftest$ac_exeext conftest.$ac_ext
6481 if test "$tmp_strerror_r" = "yes"; then
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h. */
6484
6485#include <sys/types.h>
6486#include <string.h>
6487
6488_ACEOF
6489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6490 $EGREP "strerror_r" >/dev/null 2>&1; then :
6491
6492 tmp_strerror_r="proto_declared"
6493
6494else
6495
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497/* end confdefs.h. */
6498
6499#define _REENTRANT
6500#include <sys/types.h>
6501#include <string.h>
6502
6503_ACEOF
6504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6505 $EGREP "strerror_r" >/dev/null 2>&1; then :
6506
6507 tmp_strerror_r="proto_needs_reentrant"
6508 tmp_need_reentrant="yes"
6509
6510fi
6511rm -f conftest*
6512
6513
6514fi
6515rm -f conftest*
6516
6517 fi
6518
6519 fi
6520 if test "$tmp_need_reentrant" = "no"; then
6521
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523/* end confdefs.h. */
6524
6525
6526#define strtok_r innocuous_strtok_r
6527#ifdef __STDC__
6528# include <limits.h>
6529#else
6530# include <assert.h>
6531#endif
6532#undef strtok_r
6533#ifdef __cplusplus
6534extern "C"
6535#endif
6536char strtok_r ();
6537#if defined __stub_strtok_r || defined __stub___strtok_r
6538choke me
6539#endif
6540
6541int main (void)
6542{
6543return strtok_r ();
6544 ;
6545 return 0;
6546}
6547
6548_ACEOF
6549if ac_fn_c_try_link "$LINENO"; then :
6550
6551 tmp_strtok_r="yes"
6552
6553else
6554
6555 tmp_strtok_r="no"
6556
6557fi
6558rm -f core conftest.err conftest.$ac_objext \
6559 conftest$ac_exeext conftest.$ac_ext
6560 if test "$tmp_strtok_r" = "yes"; then
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562/* end confdefs.h. */
6563
6564#include <sys/types.h>
6565#include <string.h>
6566
6567_ACEOF
6568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 $EGREP "strtok_r" >/dev/null 2>&1; then :
6570
6571 tmp_strtok_r="proto_declared"
6572
6573else
6574
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576/* end confdefs.h. */
6577
6578#define _REENTRANT
6579#include <sys/types.h>
6580#include <string.h>
6581
6582_ACEOF
6583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6584 $EGREP "strtok_r" >/dev/null 2>&1; then :
6585
6586 tmp_strtok_r="proto_needs_reentrant"
6587 tmp_need_reentrant="yes"
6588
6589fi
6590rm -f conftest*
6591
6592
6593fi
6594rm -f conftest*
6595
6596 fi
6597
6598 fi
6599 if test "$tmp_need_reentrant" = "no"; then
6600
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602/* end confdefs.h. */
6603
6604
6605#define inet_ntoa_r innocuous_inet_ntoa_r
6606#ifdef __STDC__
6607# include <limits.h>
6608#else
6609# include <assert.h>
6610#endif
6611#undef inet_ntoa_r
6612#ifdef __cplusplus
6613extern "C"
6614#endif
6615char inet_ntoa_r ();
6616#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6617choke me
6618#endif
6619
6620int main (void)
6621{
6622return inet_ntoa_r ();
6623 ;
6624 return 0;
6625}
6626
6627_ACEOF
6628if ac_fn_c_try_link "$LINENO"; then :
6629
6630 tmp_inet_ntoa_r="yes"
6631
6632else
6633
6634 tmp_inet_ntoa_r="no"
6635
6636fi
6637rm -f core conftest.err conftest.$ac_objext \
6638 conftest$ac_exeext conftest.$ac_ext
6639 if test "$tmp_inet_ntoa_r" = "yes"; then
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641/* end confdefs.h. */
6642
6643#include <sys/types.h>
6644#include <sys/socket.h>
6645#include <netinet/in.h>
6646#include <arpa/inet.h>
6647
6648_ACEOF
6649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6650 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6651
6652 tmp_inet_ntoa_r="proto_declared"
6653
6654else
6655
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657/* end confdefs.h. */
6658
6659#define _REENTRANT
6660#include <sys/types.h>
6661#include <sys/socket.h>
6662#include <netinet/in.h>
6663#include <arpa/inet.h>
6664
6665_ACEOF
6666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6667 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6668
6669 tmp_inet_ntoa_r="proto_needs_reentrant"
6670 tmp_need_reentrant="yes"
6671
6672fi
6673rm -f conftest*
6674
6675
6676fi
6677rm -f conftest*
6678
6679 fi
6680
6681 fi
6682 if test "$tmp_need_reentrant" = "no"; then
6683
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685/* end confdefs.h. */
6686
6687
6688#define gethostbyaddr_r innocuous_gethostbyaddr_r
6689#ifdef __STDC__
6690# include <limits.h>
6691#else
6692# include <assert.h>
6693#endif
6694#undef gethostbyaddr_r
6695#ifdef __cplusplus
6696extern "C"
6697#endif
6698char gethostbyaddr_r ();
6699#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6700choke me
6701#endif
6702
6703int main (void)
6704{
6705return gethostbyaddr_r ();
6706 ;
6707 return 0;
6708}
6709
6710_ACEOF
6711if ac_fn_c_try_link "$LINENO"; then :
6712
6713 tmp_gethostbyaddr_r="yes"
6714
6715else
6716
6717 tmp_gethostbyaddr_r="no"
6718
6719fi
6720rm -f core conftest.err conftest.$ac_objext \
6721 conftest$ac_exeext conftest.$ac_ext
6722 if test "$tmp_gethostbyaddr_r" = "yes"; then
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724/* end confdefs.h. */
6725
6726#include <sys/types.h>
6727#include <netdb.h>
6728
6729_ACEOF
6730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6731 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6732
6733 tmp_gethostbyaddr_r="proto_declared"
6734
6735else
6736
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738/* end confdefs.h. */
6739
6740#define _REENTRANT
6741#include <sys/types.h>
6742#include <netdb.h>
6743
6744_ACEOF
6745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6746 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6747
6748 tmp_gethostbyaddr_r="proto_needs_reentrant"
6749 tmp_need_reentrant="yes"
6750
6751fi
6752rm -f conftest*
6753
6754
6755fi
6756rm -f conftest*
6757
6758 fi
6759
6760 fi
6761 if test "$tmp_need_reentrant" = "no"; then
6762
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h. */
6765
6766
6767#define gethostbyname_r innocuous_gethostbyname_r
6768#ifdef __STDC__
6769# include <limits.h>
6770#else
6771# include <assert.h>
6772#endif
6773#undef gethostbyname_r
6774#ifdef __cplusplus
6775extern "C"
6776#endif
6777char gethostbyname_r ();
6778#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6779choke me
6780#endif
6781
6782int main (void)
6783{
6784return gethostbyname_r ();
6785 ;
6786 return 0;
6787}
6788
6789_ACEOF
6790if ac_fn_c_try_link "$LINENO"; then :
6791
6792 tmp_gethostbyname_r="yes"
6793
6794else
6795
6796 tmp_gethostbyname_r="no"
6797
6798fi
6799rm -f core conftest.err conftest.$ac_objext \
6800 conftest$ac_exeext conftest.$ac_ext
6801 if test "$tmp_gethostbyname_r" = "yes"; then
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803/* end confdefs.h. */
6804
6805#include <sys/types.h>
6806#include <netdb.h>
6807
6808_ACEOF
6809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6810 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6811
6812 tmp_gethostbyname_r="proto_declared"
6813
6814else
6815
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817/* end confdefs.h. */
6818
6819#define _REENTRANT
6820#include <sys/types.h>
6821#include <netdb.h>
6822
6823_ACEOF
6824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6825 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6826
6827 tmp_gethostbyname_r="proto_needs_reentrant"
6828 tmp_need_reentrant="yes"
6829
6830fi
6831rm -f conftest*
6832
6833
6834fi
6835rm -f conftest*
6836
6837 fi
6838
6839 fi
6840 if test "$tmp_need_reentrant" = "no"; then
6841
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843/* end confdefs.h. */
6844
6845
6846#define getprotobyname_r innocuous_getprotobyname_r
6847#ifdef __STDC__
6848# include <limits.h>
6849#else
6850# include <assert.h>
6851#endif
6852#undef getprotobyname_r
6853#ifdef __cplusplus
6854extern "C"
6855#endif
6856char getprotobyname_r ();
6857#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6858choke me
6859#endif
6860
6861int main (void)
6862{
6863return getprotobyname_r ();
6864 ;
6865 return 0;
6866}
6867
6868_ACEOF
6869if ac_fn_c_try_link "$LINENO"; then :
6870
6871 tmp_getprotobyname_r="yes"
6872
6873else
6874
6875 tmp_getprotobyname_r="no"
6876
6877fi
6878rm -f core conftest.err conftest.$ac_objext \
6879 conftest$ac_exeext conftest.$ac_ext
6880 if test "$tmp_getprotobyname_r" = "yes"; then
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882/* end confdefs.h. */
6883
6884#include <sys/types.h>
6885#include <netdb.h>
6886
6887_ACEOF
6888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6889 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6890
6891 tmp_getprotobyname_r="proto_declared"
6892
6893else
6894
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896/* end confdefs.h. */
6897
6898#define _REENTRANT
6899#include <sys/types.h>
6900#include <netdb.h>
6901
6902_ACEOF
6903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6904 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6905
6906 tmp_getprotobyname_r="proto_needs_reentrant"
6907 tmp_need_reentrant="yes"
6908
6909fi
6910rm -f conftest*
6911
6912
6913fi
6914rm -f conftest*
6915
6916 fi
6917
6918 fi
6919 if test "$tmp_need_reentrant" = "no"; then
6920
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922/* end confdefs.h. */
6923
6924
6925#define getservbyport_r innocuous_getservbyport_r
6926#ifdef __STDC__
6927# include <limits.h>
6928#else
6929# include <assert.h>
6930#endif
6931#undef getservbyport_r
6932#ifdef __cplusplus
6933extern "C"
6934#endif
6935char getservbyport_r ();
6936#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
6937choke me
6938#endif
6939
6940int main (void)
6941{
6942return getservbyport_r ();
6943 ;
6944 return 0;
6945}
6946
6947_ACEOF
6948if ac_fn_c_try_link "$LINENO"; then :
6949
6950 tmp_getservbyport_r="yes"
6951
6952else
6953
6954 tmp_getservbyport_r="no"
6955
6956fi
6957rm -f core conftest.err conftest.$ac_objext \
6958 conftest$ac_exeext conftest.$ac_ext
6959 if test "$tmp_getservbyport_r" = "yes"; then
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961/* end confdefs.h. */
6962
6963#include <sys/types.h>
6964#include <netdb.h>
6965
6966_ACEOF
6967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6968 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6969
6970 tmp_getservbyport_r="proto_declared"
6971
6972else
6973
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975/* end confdefs.h. */
6976
6977#define _REENTRANT
6978#include <sys/types.h>
6979#include <netdb.h>
6980
6981_ACEOF
6982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6983 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6984
6985 tmp_getservbyport_r="proto_needs_reentrant"
6986 tmp_need_reentrant="yes"
6987
6988fi
6989rm -f conftest*
6990
6991
6992fi
6993rm -f conftest*
6994
6995 fi
6996
6997 fi
6998
6999 fi
7000 if test "$tmp_need_reentrant" = "yes"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7002$as_echo "yes" >&6; }
7003 else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005$as_echo "no" >&6; }
7006 fi
7007 fi
7008 #
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7010$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7011 if test "$tmp_reentrant_initially_defined" = "yes" ||
7012 test "$tmp_need_reentrant" = "yes"; then
7013
7014
7015$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7016
7017cat >>confdefs.h <<_EOF
7018#ifndef _REENTRANT
7019# define _REENTRANT
7020#endif
7021_EOF
7022
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7024$as_echo "yes" >&6; }
7025 else
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027$as_echo "no" >&6; }
7028 fi
7029 #
7030
7031
7032# Check whether --enable-largefile was given.
7033if test "${enable_largefile+set}" = set; then :
7034 enableval=$enable_largefile;
7035fi
7036
7037if test "$enable_largefile" != no; then
7038
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7040$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7041if ${ac_cv_sys_largefile_CC+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043else
7044 ac_cv_sys_largefile_CC=no
7045 if test "$GCC" != yes; then
7046 ac_save_CC=$CC
7047 while :; do
7048 # IRIX 6.2 and later do not support large files by default,
7049 # so use the C compiler's -n32 option if that helps.
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h. */
7052#include <sys/types.h>
7053 /* Check that off_t can represent 2**63 - 1 correctly.
7054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7055 since some C++ compilers masquerading as C compilers
7056 incorrectly reject 9223372036854775807. */
7057#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7059 && LARGE_OFF_T % 2147483647 == 1)
7060 ? 1 : -1];
7061int main (void)
7062{
7063
7064 ;
7065 return 0;
7066}
7067_ACEOF
7068 if ac_fn_c_try_compile "$LINENO"; then :
7069 break
7070fi
7071rm -f core conftest.err conftest.$ac_objext
7072 CC="$CC -n32"
7073 if ac_fn_c_try_compile "$LINENO"; then :
7074 ac_cv_sys_largefile_CC=' -n32'; break
7075fi
7076rm -f core conftest.err conftest.$ac_objext
7077 break
7078 done
7079 CC=$ac_save_CC
7080 rm -f conftest.$ac_ext
7081 fi
7082fi
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7084$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7085 if test "$ac_cv_sys_largefile_CC" != no; then
7086 CC=$CC$ac_cv_sys_largefile_CC
7087 fi
7088
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7090$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7091if ${ac_cv_sys_file_offset_bits+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093else
7094 while :; do
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096/* end confdefs.h. */
7097#include <sys/types.h>
7098 /* Check that off_t can represent 2**63 - 1 correctly.
7099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7100 since some C++ compilers masquerading as C compilers
7101 incorrectly reject 9223372036854775807. */
7102#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7104 && LARGE_OFF_T % 2147483647 == 1)
7105 ? 1 : -1];
7106int main (void)
7107{
7108
7109 ;
7110 return 0;
7111}
7112_ACEOF
7113if ac_fn_c_try_compile "$LINENO"; then :
7114 ac_cv_sys_file_offset_bits=no; break
7115fi
7116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118/* end confdefs.h. */
7119#define _FILE_OFFSET_BITS 64
7120#include <sys/types.h>
7121 /* Check that off_t can represent 2**63 - 1 correctly.
7122 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7123 since some C++ compilers masquerading as C compilers
7124 incorrectly reject 9223372036854775807. */
7125#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7126 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7127 && LARGE_OFF_T % 2147483647 == 1)
7128 ? 1 : -1];
7129int main (void)
7130{
7131
7132 ;
7133 return 0;
7134}
7135_ACEOF
7136if ac_fn_c_try_compile "$LINENO"; then :
7137 ac_cv_sys_file_offset_bits=64; break
7138fi
7139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 ac_cv_sys_file_offset_bits=unknown
7141 break
7142done
7143fi
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7145$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7146case $ac_cv_sys_file_offset_bits in #(
7147 no | unknown) ;;
7148 *)
7149cat >>confdefs.h <<_ACEOF
7150#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7151_ACEOF
7152;;
7153esac
7154rm -rf conftest*
7155 if test $ac_cv_sys_file_offset_bits = unknown; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7157$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7158if ${ac_cv_sys_large_files+:} false; then :
7159 $as_echo_n "(cached) " >&6
7160else
7161 while :; do
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h. */
7164#include <sys/types.h>
7165 /* Check that off_t can represent 2**63 - 1 correctly.
7166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7167 since some C++ compilers masquerading as C compilers
7168 incorrectly reject 9223372036854775807. */
7169#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7171 && LARGE_OFF_T % 2147483647 == 1)
7172 ? 1 : -1];
7173int main (void)
7174{
7175
7176 ;
7177 return 0;
7178}
7179_ACEOF
7180if ac_fn_c_try_compile "$LINENO"; then :
7181 ac_cv_sys_large_files=no; break
7182fi
7183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185/* end confdefs.h. */
7186#define _LARGE_FILES 1
7187#include <sys/types.h>
7188 /* Check that off_t can represent 2**63 - 1 correctly.
7189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7190 since some C++ compilers masquerading as C compilers
7191 incorrectly reject 9223372036854775807. */
7192#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7194 && LARGE_OFF_T % 2147483647 == 1)
7195 ? 1 : -1];
7196int main (void)
7197{
7198
7199 ;
7200 return 0;
7201}
7202_ACEOF
7203if ac_fn_c_try_compile "$LINENO"; then :
7204 ac_cv_sys_large_files=1; break
7205fi
7206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 ac_cv_sys_large_files=unknown
7208 break
7209done
7210fi
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7212$as_echo "$ac_cv_sys_large_files" >&6; }
7213case $ac_cv_sys_large_files in #(
7214 no | unknown) ;;
7215 *)
7216cat >>confdefs.h <<_ACEOF
7217#define _LARGE_FILES $ac_cv_sys_large_files
7218_ACEOF
7219;;
7220esac
7221rm -rf conftest*
7222 fi
7223
7224
7225fi
7226
7227
7228case `pwd` in
7229 *\ * | *\ *)
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7231$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7232esac
7233
7234
7235
7236macro_version='2.4.6'
7237macro_revision='2.4.6'
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251ltmain=$ac_aux_dir/ltmain.sh
7252
7253# Backslashify metacharacters that are still active within
7254# double-quoted strings.
7255sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7256
7257# Same as above, but do not quote variable references.
7258double_quote_subst='s/\(["`\\]\)/\\\1/g'
7259
7260# Sed substitution to delay expansion of an escaped shell variable in a
7261# double_quote_subst'ed string.
7262delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7263
7264# Sed substitution to delay expansion of an escaped single quote.
7265delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7266
7267# Sed substitution to avoid accidental globbing in evaled expressions
7268no_glob_subst='s/\*/\\\*/g'
7269
7270ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7271ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7272ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7273
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7275$as_echo_n "checking how to print strings... " >&6; }
7276# Test print first, because it will be a builtin if present.
7277if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7278 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7279 ECHO='print -r --'
7280elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7281 ECHO='printf %s\n'
7282else
7283 # Use this function as a fallback that always works.
7284 func_fallback_echo ()
7285 {
7286 eval 'cat <<_LTECHO_EOF
7287$1
7288_LTECHO_EOF'
7289 }
7290 ECHO='func_fallback_echo'
7291fi
7292
7293# func_echo_all arg...
7294# Invoke $ECHO with all args, space-separated.
7295func_echo_all ()
7296{
7297 $ECHO ""
7298}
7299
7300case $ECHO in
7301 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7302$as_echo "printf" >&6; } ;;
7303 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7304$as_echo "print -r" >&6; } ;;
7305 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7306$as_echo "cat" >&6; } ;;
7307esac
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7323$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7324if ${ac_cv_path_SED+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326else
7327 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7328 for ac_i in 1 2 3 4 5 6 7; do
7329 ac_script="$ac_script$as_nl$ac_script"
7330 done
7331 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7332 { ac_script=; unset ac_script;}
7333 if test -z "$SED"; then
7334 ac_path_SED_found=false
7335 # Loop through the user's path and test for each of PROGNAME-LIST
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_prog in sed gsed; do
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7344 as_fn_executable_p "$ac_path_SED" || continue
7345# Check for GNU ac_path_SED and select it if it is found.
7346 # Check for GNU $ac_path_SED
7347case `"$ac_path_SED" --version 2>&1` in
7348*GNU*)
7349 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7350*)
7351 ac_count=0
7352 $as_echo_n 0123456789 >"conftest.in"
7353 while :
7354 do
7355 cat "conftest.in" "conftest.in" >"conftest.tmp"
7356 mv "conftest.tmp" "conftest.in"
7357 cp "conftest.in" "conftest.nl"
7358 $as_echo '' >> "conftest.nl"
7359 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7361 as_fn_arith $ac_count + 1 && ac_count=$as_val
7362 if test $ac_count -gt ${ac_path_SED_max-0}; then
7363 # Best one so far, save it but keep looking for a better one
7364 ac_cv_path_SED="$ac_path_SED"
7365 ac_path_SED_max=$ac_count
7366 fi
7367 # 10*(2^10) chars as input seems more than enough
7368 test $ac_count -gt 10 && break
7369 done
7370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7371esac
7372
7373 $ac_path_SED_found && break 3
7374 done
7375 done
7376 done
7377IFS=$as_save_IFS
7378 if test -z "$ac_cv_path_SED"; then
7379 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7380 fi
7381else
7382 ac_cv_path_SED=$SED
7383fi
7384
7385fi
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7387$as_echo "$ac_cv_path_SED" >&6; }
7388 SED="$ac_cv_path_SED"
7389 rm -f conftest.sed
7390
7391test -z "$SED" && SED=sed
7392Xsed="$SED -e 1s/^X//"
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7405$as_echo_n "checking for fgrep... " >&6; }
7406if ${ac_cv_path_FGREP+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408else
7409 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7410 then ac_cv_path_FGREP="$GREP -F"
7411 else
7412 if test -z "$FGREP"; then
7413 ac_path_FGREP_found=false
7414 # Loop through the user's path and test for each of PROGNAME-LIST
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7417do
7418 IFS=$as_save_IFS
7419 test -z "$as_dir" && as_dir=.
7420 for ac_prog in fgrep; do
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7423 as_fn_executable_p "$ac_path_FGREP" || continue
7424# Check for GNU ac_path_FGREP and select it if it is found.
7425 # Check for GNU $ac_path_FGREP
7426case `"$ac_path_FGREP" --version 2>&1` in
7427*GNU*)
7428 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7429*)
7430 ac_count=0
7431 $as_echo_n 0123456789 >"conftest.in"
7432 while :
7433 do
7434 cat "conftest.in" "conftest.in" >"conftest.tmp"
7435 mv "conftest.tmp" "conftest.in"
7436 cp "conftest.in" "conftest.nl"
7437 $as_echo 'FGREP' >> "conftest.nl"
7438 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7440 as_fn_arith $ac_count + 1 && ac_count=$as_val
7441 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7442 # Best one so far, save it but keep looking for a better one
7443 ac_cv_path_FGREP="$ac_path_FGREP"
7444 ac_path_FGREP_max=$ac_count
7445 fi
7446 # 10*(2^10) chars as input seems more than enough
7447 test $ac_count -gt 10 && break
7448 done
7449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7450esac
7451
7452 $ac_path_FGREP_found && break 3
7453 done
7454 done
7455 done
7456IFS=$as_save_IFS
7457 if test -z "$ac_cv_path_FGREP"; then
7458 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7459 fi
7460else
7461 ac_cv_path_FGREP=$FGREP
7462fi
7463
7464 fi
7465fi
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7467$as_echo "$ac_cv_path_FGREP" >&6; }
7468 FGREP="$ac_cv_path_FGREP"
7469
7470
7471test -z "$GREP" && GREP=grep
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491# Check whether --with-gnu-ld was given.
7492if test "${with_gnu_ld+set}" = set; then :
7493 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7494else
7495 with_gnu_ld=no
7496fi
7497
7498ac_prog=ld
7499if test yes = "$GCC"; then
7500 # Check if gcc -print-prog-name=ld gives a path.
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7502$as_echo_n "checking for ld used by $CC... " >&6; }
7503 case $host in
7504 *-*-mingw*)
7505 # gcc leaves a trailing carriage return, which upsets mingw
7506 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7507 *)
7508 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7509 esac
7510 case $ac_prog in
7511 # Accept absolute paths.
7512 [\\/]* | ?:[\\/]*)
7513 re_direlt='/[^/][^/]*/\.\./'
7514 # Canonicalize the pathname of ld
7515 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7516 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7517 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7518 done
7519 test -z "$LD" && LD=$ac_prog
7520 ;;
7521 "")
7522 # If it fails, then pretend we aren't using GCC.
7523 ac_prog=ld
7524 ;;
7525 *)
7526 # If it is relative, then search for the first ld in PATH.
7527 with_gnu_ld=unknown
7528 ;;
7529 esac
7530elif test yes = "$with_gnu_ld"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7532$as_echo_n "checking for GNU ld... " >&6; }
7533else
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7535$as_echo_n "checking for non-GNU ld... " >&6; }
7536fi
7537if ${lt_cv_path_LD+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539else
7540 if test -z "$LD"; then
7541 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7542 for ac_dir in $PATH; do
7543 IFS=$lt_save_ifs
7544 test -z "$ac_dir" && ac_dir=.
7545 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7546 lt_cv_path_LD=$ac_dir/$ac_prog
7547 # Check to see if the program is GNU ld. I'd rather use --version,
7548 # but apparently some variants of GNU ld only accept -v.
7549 # Break only if it was the GNU/non-GNU ld that we prefer.
7550 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7551 *GNU* | *'with BFD'*)
7552 test no != "$with_gnu_ld" && break
7553 ;;
7554 *)
7555 test yes != "$with_gnu_ld" && break
7556 ;;
7557 esac
7558 fi
7559 done
7560 IFS=$lt_save_ifs
7561else
7562 lt_cv_path_LD=$LD # Let the user override the test with a path.
7563fi
7564fi
7565
7566LD=$lt_cv_path_LD
7567if test -n "$LD"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7569$as_echo "$LD" >&6; }
7570else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572$as_echo "no" >&6; }
7573fi
7574test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7576$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7577if ${lt_cv_prog_gnu_ld+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579else
7580 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7581case `$LD -v 2>&1 </dev/null` in
7582*GNU* | *'with BFD'*)
7583 lt_cv_prog_gnu_ld=yes
7584 ;;
7585*)
7586 lt_cv_prog_gnu_ld=no
7587 ;;
7588esac
7589fi
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7591$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7592with_gnu_ld=$lt_cv_prog_gnu_ld
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7603$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7604if ${lt_cv_path_NM+:} false; then :
7605 $as_echo_n "(cached) " >&6
7606else
7607 if test -n "$NM"; then
7608 # Let the user override the test.
7609 lt_cv_path_NM=$NM
7610else
7611 lt_nm_to_check=${ac_tool_prefix}nm
7612 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7613 lt_nm_to_check="$lt_nm_to_check nm"
7614 fi
7615 for lt_tmp_nm in $lt_nm_to_check; do
7616 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7617 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7618 IFS=$lt_save_ifs
7619 test -z "$ac_dir" && ac_dir=.
7620 tmp_nm=$ac_dir/$lt_tmp_nm
7621 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7622 # Check to see if the nm accepts a BSD-compat flag.
7623 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7624 # nm: unknown option "B" ignored
7625 # Tru64's nm complains that /dev/null is an invalid object file
7626 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7627 case $build_os in
7628 mingw*) lt_bad_file=conftest.nm/nofile ;;
7629 *) lt_bad_file=/dev/null ;;
7630 esac
7631 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7632 *$lt_bad_file* | *'Invalid file or object type'*)
7633 lt_cv_path_NM="$tmp_nm -B"
7634 break 2
7635 ;;
7636 *)
7637 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7638 */dev/null*)
7639 lt_cv_path_NM="$tmp_nm -p"
7640 break 2
7641 ;;
7642 *)
7643 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7644 continue # so that we can try to find one that supports BSD flags
7645 ;;
7646 esac
7647 ;;
7648 esac
7649 fi
7650 done
7651 IFS=$lt_save_ifs
7652 done
7653 : ${lt_cv_path_NM=no}
7654fi
7655fi
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7657$as_echo "$lt_cv_path_NM" >&6; }
7658if test no != "$lt_cv_path_NM"; then
7659 NM=$lt_cv_path_NM
7660else
7661 # Didn't find any BSD compatible name lister, look for dumpbin.
7662 if test -n "$DUMPBIN"; then :
7663 # Let the user override the test.
7664 else
7665 if test -n "$ac_tool_prefix"; then
7666 for ac_prog in dumpbin "link -dump"
7667 do
7668 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7669set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671$as_echo_n "checking for $ac_word... " >&6; }
7672if ${ac_cv_prog_DUMPBIN+:} false; then :
7673 $as_echo_n "(cached) " >&6
7674else
7675 if test -n "$DUMPBIN"; then
7676 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7677else
7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 break 2
7688 fi
7689done
7690 done
7691IFS=$as_save_IFS
7692
7693fi
7694fi
7695DUMPBIN=$ac_cv_prog_DUMPBIN
7696if test -n "$DUMPBIN"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7698$as_echo "$DUMPBIN" >&6; }
7699else
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701$as_echo "no" >&6; }
7702fi
7703
7704
7705 test -n "$DUMPBIN" && break
7706 done
7707fi
7708if test -z "$DUMPBIN"; then
7709 ac_ct_DUMPBIN=$DUMPBIN
7710 for ac_prog in dumpbin "link -dump"
7711do
7712 # Extract the first word of "$ac_prog", so it can be a program name with args.
7713set dummy $ac_prog; ac_word=$2
7714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715$as_echo_n "checking for $ac_word... " >&6; }
7716if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7717 $as_echo_n "(cached) " >&6
7718else
7719 if test -n "$ac_ct_DUMPBIN"; then
7720 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7721else
7722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723for as_dir in $PATH
7724do
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7729 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733done
7734 done
7735IFS=$as_save_IFS
7736
7737fi
7738fi
7739ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7740if test -n "$ac_ct_DUMPBIN"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7742$as_echo "$ac_ct_DUMPBIN" >&6; }
7743else
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745$as_echo "no" >&6; }
7746fi
7747
7748
7749 test -n "$ac_ct_DUMPBIN" && break
7750done
7751
7752 if test "x$ac_ct_DUMPBIN" = x; then
7753 DUMPBIN=":"
7754 else
7755 case $cross_compiling:$ac_tool_warned in
7756yes:)
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7759ac_tool_warned=yes ;;
7760esac
7761 DUMPBIN=$ac_ct_DUMPBIN
7762 fi
7763fi
7764
7765 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7766 *COFF*)
7767 DUMPBIN="$DUMPBIN -symbols -headers"
7768 ;;
7769 *)
7770 DUMPBIN=:
7771 ;;
7772 esac
7773 fi
7774
7775 if test : != "$DUMPBIN"; then
7776 NM=$DUMPBIN
7777 fi
7778fi
7779test -z "$NM" && NM=nm
7780
7781
7782
7783
7784
7785
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7787$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7788if ${lt_cv_nm_interface+:} false; then :
7789 $as_echo_n "(cached) " >&6
7790else
7791 lt_cv_nm_interface="BSD nm"
7792 echo "int some_variable = 0;" > conftest.$ac_ext
7793 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7794 (eval "$ac_compile" 2>conftest.err)
7795 cat conftest.err >&5
7796 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7797 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7798 cat conftest.err >&5
7799 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7800 cat conftest.out >&5
7801 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7802 lt_cv_nm_interface="MS dumpbin"
7803 fi
7804 rm -f conftest*
7805fi
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7807$as_echo "$lt_cv_nm_interface" >&6; }
7808
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7810$as_echo_n "checking whether ln -s works... " >&6; }
7811LN_S=$as_ln_s
7812if test "$LN_S" = "ln -s"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7814$as_echo "yes" >&6; }
7815else
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7817$as_echo "no, using $LN_S" >&6; }
7818fi
7819
7820# find the maximum length of command line arguments
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7822$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7823if ${lt_cv_sys_max_cmd_len+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825else
7826 i=0
7827 teststring=ABCD
7828
7829 case $build_os in
7830 msdosdjgpp*)
7831 # On DJGPP, this test can blow up pretty badly due to problems in libc
7832 # (any single argument exceeding 2000 bytes causes a buffer overrun
7833 # during glob expansion). Even if it were fixed, the result of this
7834 # check would be larger than it should be.
7835 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7836 ;;
7837
7838 gnu*)
7839 # Under GNU Hurd, this test is not required because there is
7840 # no limit to the length of command line arguments.
7841 # Libtool will interpret -1 as no limit whatsoever
7842 lt_cv_sys_max_cmd_len=-1;
7843 ;;
7844
7845 cygwin* | mingw* | cegcc*)
7846 # On Win9x/ME, this test blows up -- it succeeds, but takes
7847 # about 5 minutes as the teststring grows exponentially.
7848 # Worse, since 9x/ME are not pre-emptively multitasking,
7849 # you end up with a "frozen" computer, even though with patience
7850 # the test eventually succeeds (with a max line length of 256k).
7851 # Instead, let's just punt: use the minimum linelength reported by
7852 # all of the supported platforms: 8192 (on NT/2K/XP).
7853 lt_cv_sys_max_cmd_len=8192;
7854 ;;
7855
7856 mint*)
7857 # On MiNT this can take a long time and run out of memory.
7858 lt_cv_sys_max_cmd_len=8192;
7859 ;;
7860
7861 amigaos*)
7862 # On AmigaOS with pdksh, this test takes hours, literally.
7863 # So we just punt and use a minimum line length of 8192.
7864 lt_cv_sys_max_cmd_len=8192;
7865 ;;
7866
7867 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7868 # This has been around since 386BSD, at least. Likely further.
7869 if test -x /sbin/sysctl; then
7870 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7871 elif test -x /usr/sbin/sysctl; then
7872 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7873 else
7874 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7875 fi
7876 # And add a safety zone
7877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7879 ;;
7880
7881 interix*)
7882 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7883 lt_cv_sys_max_cmd_len=196608
7884 ;;
7885
7886 os2*)
7887 # The test takes a long time on OS/2.
7888 lt_cv_sys_max_cmd_len=8192
7889 ;;
7890
7891 osf*)
7892 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7893 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7894 # nice to cause kernel panics so lets avoid the loop below.
7895 # First set a reasonable default.
7896 lt_cv_sys_max_cmd_len=16384
7897 #
7898 if test -x /sbin/sysconfig; then
7899 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7900 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7901 esac
7902 fi
7903 ;;
7904 sco3.2v5*)
7905 lt_cv_sys_max_cmd_len=102400
7906 ;;
7907 sysv5* | sco5v6* | sysv4.2uw2*)
7908 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7909 if test -n "$kargmax"; then
7910 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7911 else
7912 lt_cv_sys_max_cmd_len=32768
7913 fi
7914 ;;
7915 *)
7916 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7917 if test -n "$lt_cv_sys_max_cmd_len" && \
7918 test undefined != "$lt_cv_sys_max_cmd_len"; then
7919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7921 else
7922 # Make teststring a little bigger before we do anything with it.
7923 # a 1K string should be a reasonable start.
7924 for i in 1 2 3 4 5 6 7 8; do
7925 teststring=$teststring$teststring
7926 done
7927 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7928 # If test is not a shell built-in, we'll probably end up computing a
7929 # maximum length that is only half of the actual maximum length, but
7930 # we can't tell.
7931 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7932 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7933 test 17 != "$i" # 1/2 MB should be enough
7934 do
7935 i=`expr $i + 1`
7936 teststring=$teststring$teststring
7937 done
7938 # Only check the string length outside the loop.
7939 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7940 teststring=
7941 # Add a significant safety factor because C++ compilers can tack on
7942 # massive amounts of additional arguments before passing them to the
7943 # linker. It appears as though 1/2 is a usable value.
7944 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7945 fi
7946 ;;
7947 esac
7948
7949fi
7950
7951if test -n "$lt_cv_sys_max_cmd_len"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7953$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7954else
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7956$as_echo "none" >&6; }
7957fi
7958max_cmd_len=$lt_cv_sys_max_cmd_len
7959
7960
7961
7962
7963
7964
7965: ${CP="cp -f"}
7966: ${MV="mv -f"}
7967: ${RM="rm -f"}
7968
7969if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7970 lt_unset=unset
7971else
7972 lt_unset=false
7973fi
7974
7975
7976
7977
7978
7979# test EBCDIC or ASCII
7980case `echo X|tr X '\101'` in
7981 A) # ASCII based system
7982 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7983 lt_SP2NL='tr \040 \012'
7984 lt_NL2SP='tr \015\012 \040\040'
7985 ;;
7986 *) # EBCDIC based system
7987 lt_SP2NL='tr \100 \n'
7988 lt_NL2SP='tr \r\n \100\100'
7989 ;;
7990esac
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8001$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8002if ${lt_cv_to_host_file_cmd+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004else
8005 case $host in
8006 *-*-mingw* )
8007 case $build in
8008 *-*-mingw* ) # actually msys
8009 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8010 ;;
8011 *-*-cygwin* )
8012 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8013 ;;
8014 * ) # otherwise, assume *nix
8015 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8016 ;;
8017 esac
8018 ;;
8019 *-*-cygwin* )
8020 case $build in
8021 *-*-mingw* ) # actually msys
8022 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8023 ;;
8024 *-*-cygwin* )
8025 lt_cv_to_host_file_cmd=func_convert_file_noop
8026 ;;
8027 * ) # otherwise, assume *nix
8028 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8029 ;;
8030 esac
8031 ;;
8032 * ) # unhandled hosts (and "normal" native builds)
8033 lt_cv_to_host_file_cmd=func_convert_file_noop
8034 ;;
8035esac
8036
8037fi
8038
8039to_host_file_cmd=$lt_cv_to_host_file_cmd
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8041$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8042
8043
8044
8045
8046
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8048$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8049if ${lt_cv_to_tool_file_cmd+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051else
8052 #assume ordinary cross tools, or native build.
8053lt_cv_to_tool_file_cmd=func_convert_file_noop
8054case $host in
8055 *-*-mingw* )
8056 case $build in
8057 *-*-mingw* ) # actually msys
8058 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8059 ;;
8060 esac
8061 ;;
8062esac
8063
8064fi
8065
8066to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8068$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8069
8070
8071
8072
8073
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8075$as_echo_n "checking for $LD option to reload object files... " >&6; }
8076if ${lt_cv_ld_reload_flag+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078else
8079 lt_cv_ld_reload_flag='-r'
8080fi
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8082$as_echo "$lt_cv_ld_reload_flag" >&6; }
8083reload_flag=$lt_cv_ld_reload_flag
8084case $reload_flag in
8085"" | " "*) ;;
8086*) reload_flag=" $reload_flag" ;;
8087esac
8088reload_cmds='$LD$reload_flag -o $output$reload_objs'
8089case $host_os in
8090 cygwin* | mingw* | pw32* | cegcc*)
8091 if test yes != "$GCC"; then
8092 reload_cmds=false
8093 fi
8094 ;;
8095 darwin*)
8096 if test yes = "$GCC"; then
8097 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8098 else
8099 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8100 fi
8101 ;;
8102esac
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112if test -n "$ac_tool_prefix"; then
8113 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8114set dummy ${ac_tool_prefix}objdump; ac_word=$2
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116$as_echo_n "checking for $ac_word... " >&6; }
8117if ${ac_cv_prog_OBJDUMP+:} false; then :
8118 $as_echo_n "(cached) " >&6
8119else
8120 if test -n "$OBJDUMP"; then
8121 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8122else
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8133 fi
8134done
8135 done
8136IFS=$as_save_IFS
8137
8138fi
8139fi
8140OBJDUMP=$ac_cv_prog_OBJDUMP
8141if test -n "$OBJDUMP"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8143$as_echo "$OBJDUMP" >&6; }
8144else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146$as_echo "no" >&6; }
8147fi
8148
8149
8150fi
8151if test -z "$ac_cv_prog_OBJDUMP"; then
8152 ac_ct_OBJDUMP=$OBJDUMP
8153 # Extract the first word of "objdump", so it can be a program name with args.
8154set dummy objdump; ac_word=$2
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156$as_echo_n "checking for $ac_word... " >&6; }
8157if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8158 $as_echo_n "(cached) " >&6
8159else
8160 if test -n "$ac_ct_OBJDUMP"; then
8161 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8162else
8163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164for as_dir in $PATH
8165do
8166 IFS=$as_save_IFS
8167 test -z "$as_dir" && as_dir=.
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8170 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 break 2
8173 fi
8174done
8175 done
8176IFS=$as_save_IFS
8177
8178fi
8179fi
8180ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8181if test -n "$ac_ct_OBJDUMP"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8183$as_echo "$ac_ct_OBJDUMP" >&6; }
8184else
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186$as_echo "no" >&6; }
8187fi
8188
8189 if test "x$ac_ct_OBJDUMP" = x; then
8190 OBJDUMP="false"
8191 else
8192 case $cross_compiling:$ac_tool_warned in
8193yes:)
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8196ac_tool_warned=yes ;;
8197esac
8198 OBJDUMP=$ac_ct_OBJDUMP
8199 fi
8200else
8201 OBJDUMP="$ac_cv_prog_OBJDUMP"
8202fi
8203
8204test -z "$OBJDUMP" && OBJDUMP=objdump
8205
8206
8207
8208
8209
8210
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8212$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8213if ${lt_cv_deplibs_check_method+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215else
8216 lt_cv_file_magic_cmd='$MAGIC_CMD'
8217lt_cv_file_magic_test_file=
8218lt_cv_deplibs_check_method='unknown'
8219# Need to set the preceding variable on all platforms that support
8220# interlibrary dependencies.
8221# 'none' -- dependencies not supported.
8222# 'unknown' -- same as none, but documents that we really don't know.
8223# 'pass_all' -- all dependencies passed with no checks.
8224# 'test_compile' -- check by making test program.
8225# 'file_magic [[regex]]' -- check by looking for files in library path
8226# that responds to the $file_magic_cmd with a given extended regex.
8227# If you have 'file' or equivalent on your system and you're not sure
8228# whether 'pass_all' will *always* work, you probably want this one.
8229
8230case $host_os in
8231aix[4-9]*)
8232 lt_cv_deplibs_check_method=pass_all
8233 ;;
8234
8235beos*)
8236 lt_cv_deplibs_check_method=pass_all
8237 ;;
8238
8239bsdi[45]*)
8240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8241 lt_cv_file_magic_cmd='/usr/bin/file -L'
8242 lt_cv_file_magic_test_file=/shlib/libc.so
8243 ;;
8244
8245cygwin*)
8246 # func_win32_libid is a shell function defined in ltmain.sh
8247 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8248 lt_cv_file_magic_cmd='func_win32_libid'
8249 ;;
8250
8251mingw* | pw32*)
8252 # Base MSYS/MinGW do not provide the 'file' command needed by
8253 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8254 # unless we find 'file', for example because we are cross-compiling.
8255 if ( file / ) >/dev/null 2>&1; then
8256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8257 lt_cv_file_magic_cmd='func_win32_libid'
8258 else
8259 # Keep this pattern in sync with the one in func_win32_libid.
8260 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8261 lt_cv_file_magic_cmd='$OBJDUMP -f'
8262 fi
8263 ;;
8264
8265cegcc*)
8266 # use the weaker test based on 'objdump'. See mingw*.
8267 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8268 lt_cv_file_magic_cmd='$OBJDUMP -f'
8269 ;;
8270
8271darwin* | rhapsody*)
8272 lt_cv_deplibs_check_method=pass_all
8273 ;;
8274
8275freebsd* | dragonfly*)
8276 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8277 case $host_cpu in
8278 i*86 )
8279 # Not sure whether the presence of OpenBSD here was a mistake.
8280 # Let's accept both of them until this is cleared up.
8281 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8282 lt_cv_file_magic_cmd=/usr/bin/file
8283 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8284 ;;
8285 esac
8286 else
8287 lt_cv_deplibs_check_method=pass_all
8288 fi
8289 ;;
8290
8291haiku*)
8292 lt_cv_deplibs_check_method=pass_all
8293 ;;
8294
8295hpux10.20* | hpux11*)
8296 lt_cv_file_magic_cmd=/usr/bin/file
8297 case $host_cpu in
8298 ia64*)
8299 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8300 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8301 ;;
8302 hppa*64*)
8303 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]'
8304 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8305 ;;
8306 *)
8307 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8308 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8309 ;;
8310 esac
8311 ;;
8312
8313interix[3-9]*)
8314 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8316 ;;
8317
8318irix5* | irix6* | nonstopux*)
8319 case $LD in
8320 *-32|*"-32 ") libmagic=32-bit;;
8321 *-n32|*"-n32 ") libmagic=N32;;
8322 *-64|*"-64 ") libmagic=64-bit;;
8323 *) libmagic=never-match;;
8324 esac
8325 lt_cv_deplibs_check_method=pass_all
8326 ;;
8327
8328# This must be glibc/ELF.
8329linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8330 lt_cv_deplibs_check_method=pass_all
8331 ;;
8332
8333netbsd* | netbsdelf*-gnu)
8334 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8336 else
8337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8338 fi
8339 ;;
8340
8341newos6*)
8342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8343 lt_cv_file_magic_cmd=/usr/bin/file
8344 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8345 ;;
8346
8347*nto* | *qnx*)
8348 lt_cv_deplibs_check_method=pass_all
8349 ;;
8350
8351openbsd* | bitrig*)
8352 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8354 else
8355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8356 fi
8357 ;;
8358
8359osf3* | osf4* | osf5*)
8360 lt_cv_deplibs_check_method=pass_all
8361 ;;
8362
8363rdos*)
8364 lt_cv_deplibs_check_method=pass_all
8365 ;;
8366
8367solaris*)
8368 lt_cv_deplibs_check_method=pass_all
8369 ;;
8370
8371sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8372 lt_cv_deplibs_check_method=pass_all
8373 ;;
8374
8375sysv4 | sysv4.3*)
8376 case $host_vendor in
8377 motorola)
8378 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]'
8379 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8380 ;;
8381 ncr)
8382 lt_cv_deplibs_check_method=pass_all
8383 ;;
8384 sequent)
8385 lt_cv_file_magic_cmd='/bin/file'
8386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8387 ;;
8388 sni)
8389 lt_cv_file_magic_cmd='/bin/file'
8390 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8391 lt_cv_file_magic_test_file=/lib/libc.so
8392 ;;
8393 siemens)
8394 lt_cv_deplibs_check_method=pass_all
8395 ;;
8396 pc)
8397 lt_cv_deplibs_check_method=pass_all
8398 ;;
8399 esac
8400 ;;
8401
8402tpf*)
8403 lt_cv_deplibs_check_method=pass_all
8404 ;;
8405os2*)
8406 lt_cv_deplibs_check_method=pass_all
8407 ;;
8408esac
8409
8410fi
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8412$as_echo "$lt_cv_deplibs_check_method" >&6; }
8413
8414file_magic_glob=
8415want_nocaseglob=no
8416if test "$build" = "$host"; then
8417 case $host_os in
8418 mingw* | pw32*)
8419 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8420 want_nocaseglob=yes
8421 else
8422 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8423 fi
8424 ;;
8425 esac
8426fi
8427
8428file_magic_cmd=$lt_cv_file_magic_cmd
8429deplibs_check_method=$lt_cv_deplibs_check_method
8430test -z "$deplibs_check_method" && deplibs_check_method=unknown
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453if test -n "$ac_tool_prefix"; then
8454 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8455set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457$as_echo_n "checking for $ac_word... " >&6; }
8458if ${ac_cv_prog_DLLTOOL+:} false; then :
8459 $as_echo_n "(cached) " >&6
8460else
8461 if test -n "$DLLTOOL"; then
8462 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8463else
8464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465for as_dir in $PATH
8466do
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8471 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 break 2
8474 fi
8475done
8476 done
8477IFS=$as_save_IFS
8478
8479fi
8480fi
8481DLLTOOL=$ac_cv_prog_DLLTOOL
8482if test -n "$DLLTOOL"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8484$as_echo "$DLLTOOL" >&6; }
8485else
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487$as_echo "no" >&6; }
8488fi
8489
8490
8491fi
8492if test -z "$ac_cv_prog_DLLTOOL"; then
8493 ac_ct_DLLTOOL=$DLLTOOL
8494 # Extract the first word of "dlltool", so it can be a program name with args.
8495set dummy dlltool; ac_word=$2
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497$as_echo_n "checking for $ac_word... " >&6; }
8498if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8499 $as_echo_n "(cached) " >&6
8500else
8501 if test -n "$ac_ct_DLLTOOL"; then
8502 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8503else
8504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8514 fi
8515done
8516 done
8517IFS=$as_save_IFS
8518
8519fi
8520fi
8521ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8522if test -n "$ac_ct_DLLTOOL"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8524$as_echo "$ac_ct_DLLTOOL" >&6; }
8525else
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527$as_echo "no" >&6; }
8528fi
8529
8530 if test "x$ac_ct_DLLTOOL" = x; then
8531 DLLTOOL="false"
8532 else
8533 case $cross_compiling:$ac_tool_warned in
8534yes:)
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8537ac_tool_warned=yes ;;
8538esac
8539 DLLTOOL=$ac_ct_DLLTOOL
8540 fi
8541else
8542 DLLTOOL="$ac_cv_prog_DLLTOOL"
8543fi
8544
8545test -z "$DLLTOOL" && DLLTOOL=dlltool
8546
8547
8548
8549
8550
8551
8552
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8554$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8555if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557else
8558 lt_cv_sharedlib_from_linklib_cmd='unknown'
8559
8560case $host_os in
8561cygwin* | mingw* | pw32* | cegcc*)
8562 # two different shell functions defined in ltmain.sh;
8563 # decide which one to use based on capabilities of $DLLTOOL
8564 case `$DLLTOOL --help 2>&1` in
8565 *--identify-strict*)
8566 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8567 ;;
8568 *)
8569 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8570 ;;
8571 esac
8572 ;;
8573*)
8574 # fallback: assume linklib IS sharedlib
8575 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8576 ;;
8577esac
8578
8579fi
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8581$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8582sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8583test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8584
8585
8586
8587
8588
8589
8590
8591if test -n "$ac_tool_prefix"; then
8592 for ac_prog in ar
8593 do
8594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8595set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597$as_echo_n "checking for $ac_word... " >&6; }
8598if ${ac_cv_prog_AR+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600else
8601 if test -n "$AR"; then
8602 ac_cv_prog_AR="$AR" # Let the user override the test.
8603else
8604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605for as_dir in $PATH
8606do
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8611 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8614 fi
8615done
8616 done
8617IFS=$as_save_IFS
8618
8619fi
8620fi
8621AR=$ac_cv_prog_AR
8622if test -n "$AR"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8624$as_echo "$AR" >&6; }
8625else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627$as_echo "no" >&6; }
8628fi
8629
8630
8631 test -n "$AR" && break
8632 done
8633fi
8634if test -z "$AR"; then
8635 ac_ct_AR=$AR
8636 for ac_prog in ar
8637do
8638 # Extract the first word of "$ac_prog", so it can be a program name with args.
8639set dummy $ac_prog; ac_word=$2
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641$as_echo_n "checking for $ac_word... " >&6; }
8642if ${ac_cv_prog_ac_ct_AR+:} false; then :
8643 $as_echo_n "(cached) " >&6
8644else
8645 if test -n "$ac_ct_AR"; then
8646 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8647else
8648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $PATH
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655 ac_cv_prog_ac_ct_AR="$ac_prog"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 break 2
8658 fi
8659done
8660 done
8661IFS=$as_save_IFS
8662
8663fi
8664fi
8665ac_ct_AR=$ac_cv_prog_ac_ct_AR
8666if test -n "$ac_ct_AR"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8668$as_echo "$ac_ct_AR" >&6; }
8669else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671$as_echo "no" >&6; }
8672fi
8673
8674
8675 test -n "$ac_ct_AR" && break
8676done
8677
8678 if test "x$ac_ct_AR" = x; then
8679 AR="false"
8680 else
8681 case $cross_compiling:$ac_tool_warned in
8682yes:)
8683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8685ac_tool_warned=yes ;;
8686esac
8687 AR=$ac_ct_AR
8688 fi
8689fi
8690
8691: ${AR=ar}
8692: ${AR_FLAGS=cru}
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8705$as_echo_n "checking for archiver @FILE support... " >&6; }
8706if ${lt_cv_ar_at_file+:} false; then :
8707 $as_echo_n "(cached) " >&6
8708else
8709 lt_cv_ar_at_file=no
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711/* end confdefs.h. */
8712
8713int main (void)
8714{
8715
8716 ;
8717 return 0;
8718}
8719_ACEOF
8720if ac_fn_c_try_compile "$LINENO"; then :
8721 echo conftest.$ac_objext > conftest.lst
8722 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8724 (eval $lt_ar_try) 2>&5
8725 ac_status=$?
8726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8727 test $ac_status = 0; }
8728 if test 0 -eq "$ac_status"; then
8729 # Ensure the archiver fails upon bogus file names.
8730 rm -f conftest.$ac_objext libconftest.a
8731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8732 (eval $lt_ar_try) 2>&5
8733 ac_status=$?
8734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8735 test $ac_status = 0; }
8736 if test 0 -ne "$ac_status"; then
8737 lt_cv_ar_at_file=@
8738 fi
8739 fi
8740 rm -f conftest.* libconftest.a
8741
8742fi
8743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744
8745fi
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8747$as_echo "$lt_cv_ar_at_file" >&6; }
8748
8749if test no = "$lt_cv_ar_at_file"; then
8750 archiver_list_spec=
8751else
8752 archiver_list_spec=$lt_cv_ar_at_file
8753fi
8754
8755
8756
8757
8758
8759
8760
8761if test -n "$ac_tool_prefix"; then
8762 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8763set dummy ${ac_tool_prefix}strip; ac_word=$2
8764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765$as_echo_n "checking for $ac_word... " >&6; }
8766if ${ac_cv_prog_STRIP+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768else
8769 if test -n "$STRIP"; then
8770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8771else
8772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773for as_dir in $PATH
8774do
8775 IFS=$as_save_IFS
8776 test -z "$as_dir" && as_dir=.
8777 for ac_exec_ext in '' $ac_executable_extensions; do
8778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8779 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8781 break 2
8782 fi
8783done
8784 done
8785IFS=$as_save_IFS
8786
8787fi
8788fi
8789STRIP=$ac_cv_prog_STRIP
8790if test -n "$STRIP"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8792$as_echo "$STRIP" >&6; }
8793else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795$as_echo "no" >&6; }
8796fi
8797
8798
8799fi
8800if test -z "$ac_cv_prog_STRIP"; then
8801 ac_ct_STRIP=$STRIP
8802 # Extract the first word of "strip", so it can be a program name with args.
8803set dummy strip; ac_word=$2
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805$as_echo_n "checking for $ac_word... " >&6; }
8806if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808else
8809 if test -n "$ac_ct_STRIP"; then
8810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8811else
8812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813for as_dir in $PATH
8814do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8819 ac_cv_prog_ac_ct_STRIP="strip"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8822 fi
8823done
8824 done
8825IFS=$as_save_IFS
8826
8827fi
8828fi
8829ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8830if test -n "$ac_ct_STRIP"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8832$as_echo "$ac_ct_STRIP" >&6; }
8833else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835$as_echo "no" >&6; }
8836fi
8837
8838 if test "x$ac_ct_STRIP" = x; then
8839 STRIP=":"
8840 else
8841 case $cross_compiling:$ac_tool_warned in
8842yes:)
8843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8845ac_tool_warned=yes ;;
8846esac
8847 STRIP=$ac_ct_STRIP
8848 fi
8849else
8850 STRIP="$ac_cv_prog_STRIP"
8851fi
8852
8853test -z "$STRIP" && STRIP=:
8854
8855
8856
8857
8858
8859
8860if test -n "$ac_tool_prefix"; then
8861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8862set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8864$as_echo_n "checking for $ac_word... " >&6; }
8865if ${ac_cv_prog_RANLIB+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867else
8868 if test -n "$RANLIB"; then
8869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8870else
8871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872for as_dir in $PATH
8873do
8874 IFS=$as_save_IFS
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 break 2
8881 fi
8882done
8883 done
8884IFS=$as_save_IFS
8885
8886fi
8887fi
8888RANLIB=$ac_cv_prog_RANLIB
8889if test -n "$RANLIB"; then
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8891$as_echo "$RANLIB" >&6; }
8892else
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894$as_echo "no" >&6; }
8895fi
8896
8897
8898fi
8899if test -z "$ac_cv_prog_RANLIB"; then
8900 ac_ct_RANLIB=$RANLIB
8901 # Extract the first word of "ranlib", so it can be a program name with args.
8902set dummy ranlib; ac_word=$2
8903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8904$as_echo_n "checking for $ac_word... " >&6; }
8905if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8906 $as_echo_n "(cached) " >&6
8907else
8908 if test -n "$ac_ct_RANLIB"; then
8909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8910else
8911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912for as_dir in $PATH
8913do
8914 IFS=$as_save_IFS
8915 test -z "$as_dir" && as_dir=.
8916 for ac_exec_ext in '' $ac_executable_extensions; do
8917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8918 ac_cv_prog_ac_ct_RANLIB="ranlib"
8919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920 break 2
8921 fi
8922done
8923 done
8924IFS=$as_save_IFS
8925
8926fi
8927fi
8928ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8929if test -n "$ac_ct_RANLIB"; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8931$as_echo "$ac_ct_RANLIB" >&6; }
8932else
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934$as_echo "no" >&6; }
8935fi
8936
8937 if test "x$ac_ct_RANLIB" = x; then
8938 RANLIB=":"
8939 else
8940 case $cross_compiling:$ac_tool_warned in
8941yes:)
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8944ac_tool_warned=yes ;;
8945esac
8946 RANLIB=$ac_ct_RANLIB
8947 fi
8948else
8949 RANLIB="$ac_cv_prog_RANLIB"
8950fi
8951
8952test -z "$RANLIB" && RANLIB=:
8953
8954
8955
8956
8957
8958
8959# Determine commands to create old-style static archives.
8960old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8961old_postinstall_cmds='chmod 644 $oldlib'
8962old_postuninstall_cmds=
8963
8964if test -n "$RANLIB"; then
8965 case $host_os in
8966 bitrig* | openbsd*)
8967 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8968 ;;
8969 *)
8970 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8971 ;;
8972 esac
8973 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8974fi
8975
8976case $host_os in
8977 darwin*)
8978 lock_old_archive_extraction=yes ;;
8979 *)
8980 lock_old_archive_extraction=no ;;
8981esac
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021# If no C compiler was specified, use CC.
9022LTCC=${LTCC-"$CC"}
9023
9024# If no C compiler flags were specified, use CFLAGS.
9025LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9026
9027# Allow CC to be a program name with arguments.
9028compiler=$CC
9029
9030
9031# Check for command to grab the raw symbol name followed by C symbol from nm.
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9033$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9034if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9035 $as_echo_n "(cached) " >&6
9036else
9037
9038# These are sane defaults that work on at least a few old systems.
9039# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9040
9041# Character class describing NM global symbol codes.
9042symcode='[BCDEGRST]'
9043
9044# Regexp to match symbols that can be accessed directly from C.
9045sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9046
9047# Define system-specific variables.
9048case $host_os in
9049aix*)
9050 symcode='[BCDT]'
9051 ;;
9052cygwin* | mingw* | pw32* | cegcc*)
9053 symcode='[ABCDGISTW]'
9054 ;;
9055hpux*)
9056 if test ia64 = "$host_cpu"; then
9057 symcode='[ABCDEGRST]'
9058 fi
9059 ;;
9060irix* | nonstopux*)
9061 symcode='[BCDEGRST]'
9062 ;;
9063osf*)
9064 symcode='[BCDEGQRST]'
9065 ;;
9066solaris*)
9067 symcode='[BDRT]'
9068 ;;
9069sco3.2v5*)
9070 symcode='[DT]'
9071 ;;
9072sysv4.2uw2*)
9073 symcode='[DT]'
9074 ;;
9075sysv5* | sco5v6* | unixware* | OpenUNIX*)
9076 symcode='[ABDT]'
9077 ;;
9078sysv4)
9079 symcode='[DFNSTU]'
9080 ;;
9081esac
9082
9083# If we're using GNU nm, then use its standard symbol codes.
9084case `$NM -V 2>&1` in
9085*GNU* | *'with BFD'*)
9086 symcode='[ABCDGIRSTW]' ;;
9087esac
9088
9089if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9090 # Gets list of data symbols to import.
9091 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9092 # Adjust the below global symbol transforms to fixup imported variables.
9093 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9094 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9095 lt_c_name_lib_hook="\
9096 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9097 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9098else
9099 # Disable hooks by default.
9100 lt_cv_sys_global_symbol_to_import=
9101 lt_cdecl_hook=
9102 lt_c_name_hook=
9103 lt_c_name_lib_hook=
9104fi
9105
9106# Transform an extracted symbol line into a proper C declaration.
9107# Some systems (esp. on ia64) link data and code symbols differently,
9108# so use this general approach.
9109lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9110$lt_cdecl_hook\
9111" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9112" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9113
9114# Transform an extracted symbol line into symbol name and symbol address
9115lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9116$lt_c_name_hook\
9117" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9118" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9119
9120# Transform an extracted symbol line into symbol name with lib prefix and
9121# symbol address.
9122lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9123$lt_c_name_lib_hook\
9124" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9125" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9126" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9127
9128# Handle CRLF in mingw tool chain
9129opt_cr=
9130case $build_os in
9131mingw*)
9132 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9133 ;;
9134esac
9135
9136# Try without a prefix underscore, then with it.
9137for ac_symprfx in "" "_"; do
9138
9139 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9140 symxfrm="\\1 $ac_symprfx\\2 \\2"
9141
9142 # Write the raw and C identifiers.
9143 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9144 # Fake it for dumpbin and say T for any non-static function,
9145 # D for any global variable and I for any imported variable.
9146 # Also find C++ and __fastcall symbols from MSVC++,
9147 # which start with @ or ?.
9148 lt_cv_sys_global_symbol_pipe="$AWK '"\
9149" {last_section=section; section=\$ 3};"\
9150" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9151" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9152" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9153" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9154" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9155" \$ 0!~/External *\|/{next};"\
9156" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9157" {if(hide[section]) next};"\
9158" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9159" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9160" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9161" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9162" ' prfx=^$ac_symprfx"
9163 else
9164 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9165 fi
9166 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9167
9168 # Check to see that the pipe works correctly.
9169 pipe_works=no
9170
9171 rm -f conftest*
9172 cat > conftest.$ac_ext <<_LT_EOF
9173#ifdef __cplusplus
9174extern "C" {
9175#endif
9176char nm_test_var;
9177void nm_test_func(void);
9178void nm_test_func(void){}
9179#ifdef __cplusplus
9180}
9181#endif
9182int main(){nm_test_var='a';nm_test_func();return(0);}
9183_LT_EOF
9184
9185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9186 (eval $ac_compile) 2>&5
9187 ac_status=$?
9188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9189 test $ac_status = 0; }; then
9190 # Now try to grab the symbols.
9191 nlist=conftest.nm
9192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9193 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9194 ac_status=$?
9195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9196 test $ac_status = 0; } && test -s "$nlist"; then
9197 # Try sorting and uniquifying the output.
9198 if sort "$nlist" | uniq > "$nlist"T; then
9199 mv -f "$nlist"T "$nlist"
9200 else
9201 rm -f "$nlist"T
9202 fi
9203
9204 # Make sure that we snagged all the symbols we need.
9205 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9206 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9207 cat <<_LT_EOF > conftest.$ac_ext
9208/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9209#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9210/* DATA imports from DLLs on WIN32 can't be const, because runtime
9211 relocations are performed -- see ld's documentation on pseudo-relocs. */
9212# define LT_DLSYM_CONST
9213#elif defined __osf__
9214/* This system does not cope well with relocations in const data. */
9215# define LT_DLSYM_CONST
9216#else
9217# define LT_DLSYM_CONST const
9218#endif
9219
9220#ifdef __cplusplus
9221extern "C" {
9222#endif
9223
9224_LT_EOF
9225 # Now generate the symbol file.
9226 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9227
9228 cat <<_LT_EOF >> conftest.$ac_ext
9229
9230/* The mapping between symbol names and symbols. */
9231LT_DLSYM_CONST struct {
9232 const char *name;
9233 void *address;
9234}
9235lt__PROGRAM__LTX_preloaded_symbols[] =
9236{
9237 { "@PROGRAM@", (void *) 0 },
9238_LT_EOF
9239 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9240 cat <<\_LT_EOF >> conftest.$ac_ext
9241 {0, (void *) 0}
9242};
9243
9244/* This works around a problem in FreeBSD linker */
9245#ifdef FREEBSD_WORKAROUND
9246static const void *lt_preloaded_setup() {
9247 return lt__PROGRAM__LTX_preloaded_symbols;
9248}
9249#endif
9250
9251#ifdef __cplusplus
9252}
9253#endif
9254_LT_EOF
9255 # Now try linking the two files.
9256 mv -f conftest.$ac_objext conftstm.$ac_objext
9257 lt_globsym_save_LIBS=$LIBS
9258 lt_globsym_save_CFLAGS=$CFLAGS
9259 LIBS=conftstm.$ac_objext
9260 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9262 (eval $ac_link) 2>&5
9263 ac_status=$?
9264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9265 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9266 pipe_works=yes
9267 fi
9268 LIBS=$lt_globsym_save_LIBS
9269 CFLAGS=$lt_globsym_save_CFLAGS
9270 else
9271 echo "cannot find nm_test_func in $nlist" >&5
9272 fi
9273 else
9274 echo "cannot find nm_test_var in $nlist" >&5
9275 fi
9276 else
9277 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9278 fi
9279 else
9280 echo "$progname: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9282 fi
9283 rm -rf conftest* conftst*
9284
9285 # Do not use the global_symbol_pipe unless it works.
9286 if test yes = "$pipe_works"; then
9287 break
9288 else
9289 lt_cv_sys_global_symbol_pipe=
9290 fi
9291done
9292
9293fi
9294
9295if test -z "$lt_cv_sys_global_symbol_pipe"; then
9296 lt_cv_sys_global_symbol_to_cdecl=
9297fi
9298if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9300$as_echo "failed" >&6; }
9301else
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9303$as_echo "ok" >&6; }
9304fi
9305
9306# Response file support.
9307if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9308 nm_file_list_spec='@'
9309elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9310 nm_file_list_spec='@'
9311fi
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9350$as_echo_n "checking for sysroot... " >&6; }
9351
9352# Check whether --with-sysroot was given.
9353if test "${with_sysroot+set}" = set; then :
9354 withval=$with_sysroot;
9355else
9356 with_sysroot=no
9357fi
9358
9359
9360lt_sysroot=
9361case $with_sysroot in #(
9362 yes)
9363 if test yes = "$GCC"; then
9364 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9365 fi
9366 ;; #(
9367 /*)
9368 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9369 ;; #(
9370 no|'')
9371 ;; #(
9372 *)
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9374$as_echo "$with_sysroot" >&6; }
9375 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9376 ;;
9377esac
9378
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9380$as_echo "${lt_sysroot:-no}" >&6; }
9381
9382
9383
9384
9385
9386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9387$as_echo_n "checking for a working dd... " >&6; }
9388if ${ac_cv_path_lt_DD+:} false; then :
9389 $as_echo_n "(cached) " >&6
9390else
9391 printf 0123456789abcdef0123456789abcdef >conftest.i
9392cat conftest.i conftest.i >conftest2.i
9393: ${lt_DD:=$DD}
9394if test -z "$lt_DD"; then
9395 ac_path_lt_DD_found=false
9396 # Loop through the user's path and test for each of PROGNAME-LIST
9397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398for as_dir in $PATH
9399do
9400 IFS=$as_save_IFS
9401 test -z "$as_dir" && as_dir=.
9402 for ac_prog in dd; do
9403 for ac_exec_ext in '' $ac_executable_extensions; do
9404 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9405 as_fn_executable_p "$ac_path_lt_DD" || continue
9406if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9407 cmp -s conftest.i conftest.out \
9408 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9409fi
9410 $ac_path_lt_DD_found && break 3
9411 done
9412 done
9413 done
9414IFS=$as_save_IFS
9415 if test -z "$ac_cv_path_lt_DD"; then
9416 :
9417 fi
9418else
9419 ac_cv_path_lt_DD=$lt_DD
9420fi
9421
9422rm -f conftest.i conftest2.i conftest.out
9423fi
9424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9425$as_echo "$ac_cv_path_lt_DD" >&6; }
9426
9427
9428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9429$as_echo_n "checking how to truncate binary pipes... " >&6; }
9430if ${lt_cv_truncate_bin+:} false; then :
9431 $as_echo_n "(cached) " >&6
9432else
9433 printf 0123456789abcdef0123456789abcdef >conftest.i
9434cat conftest.i conftest.i >conftest2.i
9435lt_cv_truncate_bin=
9436if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9437 cmp -s conftest.i conftest.out \
9438 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9439fi
9440rm -f conftest.i conftest2.i conftest.out
9441test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9442fi
9443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9444$as_echo "$lt_cv_truncate_bin" >&6; }
9445
9446
9447
9448
9449
9450
9451
9452# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9453func_cc_basename ()
9454{
9455 for cc_temp in $*""; do
9456 case $cc_temp in
9457 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9458 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9459 \-*) ;;
9460 *) break;;
9461 esac
9462 done
9463 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9464}
9465
9466# Check whether --enable-libtool-lock was given.
9467if test "${enable_libtool_lock+set}" = set; then :
9468 enableval=$enable_libtool_lock;
9469fi
9470
9471test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9472
9473# Some flags need to be propagated to the compiler or linker for good
9474# libtool support.
9475case $host in
9476ia64-*-hpux*)
9477 # Find out what ABI is being produced by ac_compile, and set mode
9478 # options accordingly.
9479 echo 'int i;' > conftest.$ac_ext
9480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9481 (eval $ac_compile) 2>&5
9482 ac_status=$?
9483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484 test $ac_status = 0; }; then
9485 case `/usr/bin/file conftest.$ac_objext` in
9486 *ELF-32*)
9487 HPUX_IA64_MODE=32
9488 ;;
9489 *ELF-64*)
9490 HPUX_IA64_MODE=64
9491 ;;
9492 esac
9493 fi
9494 rm -rf conftest*
9495 ;;
9496*-*-irix6*)
9497 # Find out what ABI is being produced by ac_compile, and set linker
9498 # options accordingly.
9499 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9501 (eval $ac_compile) 2>&5
9502 ac_status=$?
9503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9504 test $ac_status = 0; }; then
9505 if test yes = "$lt_cv_prog_gnu_ld"; then
9506 case `/usr/bin/file conftest.$ac_objext` in
9507 *32-bit*)
9508 LD="${LD-ld} -melf32bsmip"
9509 ;;
9510 *N32*)
9511 LD="${LD-ld} -melf32bmipn32"
9512 ;;
9513 *64-bit*)
9514 LD="${LD-ld} -melf64bmip"
9515 ;;
9516 esac
9517 else
9518 case `/usr/bin/file conftest.$ac_objext` in
9519 *32-bit*)
9520 LD="${LD-ld} -32"
9521 ;;
9522 *N32*)
9523 LD="${LD-ld} -n32"
9524 ;;
9525 *64-bit*)
9526 LD="${LD-ld} -64"
9527 ;;
9528 esac
9529 fi
9530 fi
9531 rm -rf conftest*
9532 ;;
9533
9534mips64*-*linux*)
9535 # Find out what ABI is being produced by ac_compile, and set linker
9536 # options accordingly.
9537 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9539 (eval $ac_compile) 2>&5
9540 ac_status=$?
9541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9542 test $ac_status = 0; }; then
9543 emul=elf
9544 case `/usr/bin/file conftest.$ac_objext` in
9545 *32-bit*)
9546 emul="${emul}32"
9547 ;;
9548 *64-bit*)
9549 emul="${emul}64"
9550 ;;
9551 esac
9552 case `/usr/bin/file conftest.$ac_objext` in
9553 *MSB*)
9554 emul="${emul}btsmip"
9555 ;;
9556 *LSB*)
9557 emul="${emul}ltsmip"
9558 ;;
9559 esac
9560 case `/usr/bin/file conftest.$ac_objext` in
9561 *N32*)
9562 emul="${emul}n32"
9563 ;;
9564 esac
9565 LD="${LD-ld} -m $emul"
9566 fi
9567 rm -rf conftest*
9568 ;;
9569
9570x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9571s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9572 # Find out what ABI is being produced by ac_compile, and set linker
9573 # options accordingly. Note that the listed cases only cover the
9574 # situations where additional linker options are needed (such as when
9575 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9576 # vice versa); the common cases where no linker options are needed do
9577 # not appear in the list.
9578 echo 'int i;' > conftest.$ac_ext
9579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9580 (eval $ac_compile) 2>&5
9581 ac_status=$?
9582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9583 test $ac_status = 0; }; then
9584 case `/usr/bin/file conftest.o` in
9585 *32-bit*)
9586 case $host in
9587 x86_64-*kfreebsd*-gnu)
9588 LD="${LD-ld} -m elf_i386_fbsd"
9589 ;;
9590 x86_64-*linux*)
9591 case `/usr/bin/file conftest.o` in
9592 *x86-64*)
9593 LD="${LD-ld} -m elf32_x86_64"
9594 ;;
9595 *)
9596 LD="${LD-ld} -m elf_i386"
9597 ;;
9598 esac
9599 ;;
9600 powerpc64le-*linux*)
9601 LD="${LD-ld} -m elf32lppclinux"
9602 ;;
9603 powerpc64-*linux*)
9604 LD="${LD-ld} -m elf32ppclinux"
9605 ;;
9606 s390x-*linux*)
9607 LD="${LD-ld} -m elf_s390"
9608 ;;
9609 sparc64-*linux*)
9610 LD="${LD-ld} -m elf32_sparc"
9611 ;;
9612 esac
9613 ;;
9614 *64-bit*)
9615 case $host in
9616 x86_64-*kfreebsd*-gnu)
9617 LD="${LD-ld} -m elf_x86_64_fbsd"
9618 ;;
9619 x86_64-*linux*)
9620 LD="${LD-ld} -m elf_x86_64"
9621 ;;
9622 powerpcle-*linux*)
9623 LD="${LD-ld} -m elf64lppc"
9624 ;;
9625 powerpc-*linux*)
9626 LD="${LD-ld} -m elf64ppc"
9627 ;;
9628 s390*-*linux*|s390*-*tpf*)
9629 LD="${LD-ld} -m elf64_s390"
9630 ;;
9631 sparc*-*linux*)
9632 LD="${LD-ld} -m elf64_sparc"
9633 ;;
9634 esac
9635 ;;
9636 esac
9637 fi
9638 rm -rf conftest*
9639 ;;
9640
9641*-*-sco3.2v5*)
9642 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9643 SAVE_CFLAGS=$CFLAGS
9644 CFLAGS="$CFLAGS -belf"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9646$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9647if ${lt_cv_cc_needs_belf+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649else
9650 ac_ext=c
9651ac_cpp='$CPP $CPPFLAGS'
9652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9654ac_compiler_gnu=$ac_cv_c_compiler_gnu
9655
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657/* end confdefs.h. */
9658
9659int main (void)
9660{
9661
9662 ;
9663 return 0;
9664}
9665_ACEOF
9666if ac_fn_c_try_link "$LINENO"; then :
9667 lt_cv_cc_needs_belf=yes
9668else
9669 lt_cv_cc_needs_belf=no
9670fi
9671rm -f core conftest.err conftest.$ac_objext \
9672 conftest$ac_exeext conftest.$ac_ext
9673 ac_ext=c
9674ac_cpp='$CPP $CPPFLAGS'
9675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9677ac_compiler_gnu=$ac_cv_c_compiler_gnu
9678
9679fi
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9681$as_echo "$lt_cv_cc_needs_belf" >&6; }
9682 if test yes != "$lt_cv_cc_needs_belf"; then
9683 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9684 CFLAGS=$SAVE_CFLAGS
9685 fi
9686 ;;
9687*-*solaris*)
9688 # Find out what ABI is being produced by ac_compile, and set linker
9689 # options accordingly.
9690 echo 'int i;' > conftest.$ac_ext
9691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9692 (eval $ac_compile) 2>&5
9693 ac_status=$?
9694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9695 test $ac_status = 0; }; then
9696 case `/usr/bin/file conftest.o` in
9697 *64-bit*)
9698 case $lt_cv_prog_gnu_ld in
9699 yes*)
9700 case $host in
9701 i?86-*-solaris*|x86_64-*-solaris*)
9702 LD="${LD-ld} -m elf_x86_64"
9703 ;;
9704 sparc*-*-solaris*)
9705 LD="${LD-ld} -m elf64_sparc"
9706 ;;
9707 esac
9708 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9709 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9710 LD=${LD-ld}_sol2
9711 fi
9712 ;;
9713 *)
9714 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9715 LD="${LD-ld} -64"
9716 fi
9717 ;;
9718 esac
9719 ;;
9720 esac
9721 fi
9722 rm -rf conftest*
9723 ;;
9724esac
9725
9726need_locks=$enable_libtool_lock
9727
9728if test -n "$ac_tool_prefix"; then
9729 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9730set dummy ${ac_tool_prefix}mt; ac_word=$2
9731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732$as_echo_n "checking for $ac_word... " >&6; }
9733if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9734 $as_echo_n "(cached) " >&6
9735else
9736 if test -n "$MANIFEST_TOOL"; then
9737 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9738else
9739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740for as_dir in $PATH
9741do
9742 IFS=$as_save_IFS
9743 test -z "$as_dir" && as_dir=.
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9746 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9748 break 2
9749 fi
9750done
9751 done
9752IFS=$as_save_IFS
9753
9754fi
9755fi
9756MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9757if test -n "$MANIFEST_TOOL"; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9759$as_echo "$MANIFEST_TOOL" >&6; }
9760else
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762$as_echo "no" >&6; }
9763fi
9764
9765
9766fi
9767if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9768 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9769 # Extract the first word of "mt", so it can be a program name with args.
9770set dummy mt; ac_word=$2
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772$as_echo_n "checking for $ac_word... " >&6; }
9773if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9774 $as_echo_n "(cached) " >&6
9775else
9776 if test -n "$ac_ct_MANIFEST_TOOL"; then
9777 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9778else
9779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780for as_dir in $PATH
9781do
9782 IFS=$as_save_IFS
9783 test -z "$as_dir" && as_dir=.
9784 for ac_exec_ext in '' $ac_executable_extensions; do
9785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9786 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9788 break 2
9789 fi
9790done
9791 done
9792IFS=$as_save_IFS
9793
9794fi
9795fi
9796ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9797if test -n "$ac_ct_MANIFEST_TOOL"; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9799$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9800else
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802$as_echo "no" >&6; }
9803fi
9804
9805 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9806 MANIFEST_TOOL=":"
9807 else
9808 case $cross_compiling:$ac_tool_warned in
9809yes:)
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9812ac_tool_warned=yes ;;
9813esac
9814 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9815 fi
9816else
9817 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9818fi
9819
9820test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9822$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9823if ${lt_cv_path_mainfest_tool+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825else
9826 lt_cv_path_mainfest_tool=no
9827 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9828 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9829 cat conftest.err >&5
9830 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9831 lt_cv_path_mainfest_tool=yes
9832 fi
9833 rm -f conftest*
9834fi
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9836$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9837if test yes != "$lt_cv_path_mainfest_tool"; then
9838 MANIFEST_TOOL=:
9839fi
9840
9841
9842
9843
9844
9845
9846 case $host_os in
9847 rhapsody* | darwin*)
9848 if test -n "$ac_tool_prefix"; then
9849 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9850set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9852$as_echo_n "checking for $ac_word... " >&6; }
9853if ${ac_cv_prog_DSYMUTIL+:} false; then :
9854 $as_echo_n "(cached) " >&6
9855else
9856 if test -n "$DSYMUTIL"; then
9857 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9858else
9859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860for as_dir in $PATH
9861do
9862 IFS=$as_save_IFS
9863 test -z "$as_dir" && as_dir=.
9864 for ac_exec_ext in '' $ac_executable_extensions; do
9865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9866 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 break 2
9869 fi
9870done
9871 done
9872IFS=$as_save_IFS
9873
9874fi
9875fi
9876DSYMUTIL=$ac_cv_prog_DSYMUTIL
9877if test -n "$DSYMUTIL"; then
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9879$as_echo "$DSYMUTIL" >&6; }
9880else
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882$as_echo "no" >&6; }
9883fi
9884
9885
9886fi
9887if test -z "$ac_cv_prog_DSYMUTIL"; then
9888 ac_ct_DSYMUTIL=$DSYMUTIL
9889 # Extract the first word of "dsymutil", so it can be a program name with args.
9890set dummy dsymutil; ac_word=$2
9891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9892$as_echo_n "checking for $ac_word... " >&6; }
9893if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895else
9896 if test -n "$ac_ct_DSYMUTIL"; then
9897 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9898else
9899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900for as_dir in $PATH
9901do
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
9904 for ac_exec_ext in '' $ac_executable_extensions; do
9905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9906 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9908 break 2
9909 fi
9910done
9911 done
9912IFS=$as_save_IFS
9913
9914fi
9915fi
9916ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9917if test -n "$ac_ct_DSYMUTIL"; then
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9919$as_echo "$ac_ct_DSYMUTIL" >&6; }
9920else
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9922$as_echo "no" >&6; }
9923fi
9924
9925 if test "x$ac_ct_DSYMUTIL" = x; then
9926 DSYMUTIL=":"
9927 else
9928 case $cross_compiling:$ac_tool_warned in
9929yes:)
9930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9932ac_tool_warned=yes ;;
9933esac
9934 DSYMUTIL=$ac_ct_DSYMUTIL
9935 fi
9936else
9937 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9938fi
9939
9940 if test -n "$ac_tool_prefix"; then
9941 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9942set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944$as_echo_n "checking for $ac_word... " >&6; }
9945if ${ac_cv_prog_NMEDIT+:} false; then :
9946 $as_echo_n "(cached) " >&6
9947else
9948 if test -n "$NMEDIT"; then
9949 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9950else
9951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952for as_dir in $PATH
9953do
9954 IFS=$as_save_IFS
9955 test -z "$as_dir" && as_dir=.
9956 for ac_exec_ext in '' $ac_executable_extensions; do
9957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9958 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9960 break 2
9961 fi
9962done
9963 done
9964IFS=$as_save_IFS
9965
9966fi
9967fi
9968NMEDIT=$ac_cv_prog_NMEDIT
9969if test -n "$NMEDIT"; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9971$as_echo "$NMEDIT" >&6; }
9972else
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974$as_echo "no" >&6; }
9975fi
9976
9977
9978fi
9979if test -z "$ac_cv_prog_NMEDIT"; then
9980 ac_ct_NMEDIT=$NMEDIT
9981 # Extract the first word of "nmedit", so it can be a program name with args.
9982set dummy nmedit; ac_word=$2
9983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984$as_echo_n "checking for $ac_word... " >&6; }
9985if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9986 $as_echo_n "(cached) " >&6
9987else
9988 if test -n "$ac_ct_NMEDIT"; then
9989 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9990else
9991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992for as_dir in $PATH
9993do
9994 IFS=$as_save_IFS
9995 test -z "$as_dir" && as_dir=.
9996 for ac_exec_ext in '' $ac_executable_extensions; do
9997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9998 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10000 break 2
10001 fi
10002done
10003 done
10004IFS=$as_save_IFS
10005
10006fi
10007fi
10008ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10009if test -n "$ac_ct_NMEDIT"; then
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10011$as_echo "$ac_ct_NMEDIT" >&6; }
10012else
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014$as_echo "no" >&6; }
10015fi
10016
10017 if test "x$ac_ct_NMEDIT" = x; then
10018 NMEDIT=":"
10019 else
10020 case $cross_compiling:$ac_tool_warned in
10021yes:)
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10024ac_tool_warned=yes ;;
10025esac
10026 NMEDIT=$ac_ct_NMEDIT
10027 fi
10028else
10029 NMEDIT="$ac_cv_prog_NMEDIT"
10030fi
10031
10032 if test -n "$ac_tool_prefix"; then
10033 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10034set dummy ${ac_tool_prefix}lipo; ac_word=$2
10035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10036$as_echo_n "checking for $ac_word... " >&6; }
10037if ${ac_cv_prog_LIPO+:} false; then :
10038 $as_echo_n "(cached) " >&6
10039else
10040 if test -n "$LIPO"; then
10041 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10042else
10043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044for as_dir in $PATH
10045do
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 break 2
10053 fi
10054done
10055 done
10056IFS=$as_save_IFS
10057
10058fi
10059fi
10060LIPO=$ac_cv_prog_LIPO
10061if test -n "$LIPO"; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10063$as_echo "$LIPO" >&6; }
10064else
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066$as_echo "no" >&6; }
10067fi
10068
10069
10070fi
10071if test -z "$ac_cv_prog_LIPO"; then
10072 ac_ct_LIPO=$LIPO
10073 # Extract the first word of "lipo", so it can be a program name with args.
10074set dummy lipo; ac_word=$2
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076$as_echo_n "checking for $ac_word... " >&6; }
10077if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079else
10080 if test -n "$ac_ct_LIPO"; then
10081 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10082else
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10090 ac_cv_prog_ac_ct_LIPO="lipo"
10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10093 fi
10094done
10095 done
10096IFS=$as_save_IFS
10097
10098fi
10099fi
10100ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10101if test -n "$ac_ct_LIPO"; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10103$as_echo "$ac_ct_LIPO" >&6; }
10104else
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106$as_echo "no" >&6; }
10107fi
10108
10109 if test "x$ac_ct_LIPO" = x; then
10110 LIPO=":"
10111 else
10112 case $cross_compiling:$ac_tool_warned in
10113yes:)
10114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10116ac_tool_warned=yes ;;
10117esac
10118 LIPO=$ac_ct_LIPO
10119 fi
10120else
10121 LIPO="$ac_cv_prog_LIPO"
10122fi
10123
10124 if test -n "$ac_tool_prefix"; then
10125 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10126set dummy ${ac_tool_prefix}otool; ac_word=$2
10127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128$as_echo_n "checking for $ac_word... " >&6; }
10129if ${ac_cv_prog_OTOOL+:} false; then :
10130 $as_echo_n "(cached) " >&6
10131else
10132 if test -n "$OTOOL"; then
10133 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10134else
10135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136for as_dir in $PATH
10137do
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 break 2
10145 fi
10146done
10147 done
10148IFS=$as_save_IFS
10149
10150fi
10151fi
10152OTOOL=$ac_cv_prog_OTOOL
10153if test -n "$OTOOL"; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10155$as_echo "$OTOOL" >&6; }
10156else
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158$as_echo "no" >&6; }
10159fi
10160
10161
10162fi
10163if test -z "$ac_cv_prog_OTOOL"; then
10164 ac_ct_OTOOL=$OTOOL
10165 # Extract the first word of "otool", so it can be a program name with args.
10166set dummy otool; ac_word=$2
10167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168$as_echo_n "checking for $ac_word... " >&6; }
10169if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10170 $as_echo_n "(cached) " >&6
10171else
10172 if test -n "$ac_ct_OTOOL"; then
10173 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10174else
10175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176for as_dir in $PATH
10177do
10178 IFS=$as_save_IFS
10179 test -z "$as_dir" && as_dir=.
10180 for ac_exec_ext in '' $ac_executable_extensions; do
10181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10182 ac_cv_prog_ac_ct_OTOOL="otool"
10183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10184 break 2
10185 fi
10186done
10187 done
10188IFS=$as_save_IFS
10189
10190fi
10191fi
10192ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10193if test -n "$ac_ct_OTOOL"; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10195$as_echo "$ac_ct_OTOOL" >&6; }
10196else
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198$as_echo "no" >&6; }
10199fi
10200
10201 if test "x$ac_ct_OTOOL" = x; then
10202 OTOOL=":"
10203 else
10204 case $cross_compiling:$ac_tool_warned in
10205yes:)
10206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10208ac_tool_warned=yes ;;
10209esac
10210 OTOOL=$ac_ct_OTOOL
10211 fi
10212else
10213 OTOOL="$ac_cv_prog_OTOOL"
10214fi
10215
10216 if test -n "$ac_tool_prefix"; then
10217 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10218set dummy ${ac_tool_prefix}otool64; ac_word=$2
10219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220$as_echo_n "checking for $ac_word... " >&6; }
10221if ${ac_cv_prog_OTOOL64+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223else
10224 if test -n "$OTOOL64"; then
10225 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10226else
10227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228for as_dir in $PATH
10229do
10230 IFS=$as_save_IFS
10231 test -z "$as_dir" && as_dir=.
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10234 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10236 break 2
10237 fi
10238done
10239 done
10240IFS=$as_save_IFS
10241
10242fi
10243fi
10244OTOOL64=$ac_cv_prog_OTOOL64
10245if test -n "$OTOOL64"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10247$as_echo "$OTOOL64" >&6; }
10248else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250$as_echo "no" >&6; }
10251fi
10252
10253
10254fi
10255if test -z "$ac_cv_prog_OTOOL64"; then
10256 ac_ct_OTOOL64=$OTOOL64
10257 # Extract the first word of "otool64", so it can be a program name with args.
10258set dummy otool64; ac_word=$2
10259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260$as_echo_n "checking for $ac_word... " >&6; }
10261if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10262 $as_echo_n "(cached) " >&6
10263else
10264 if test -n "$ac_ct_OTOOL64"; then
10265 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10266else
10267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268for as_dir in $PATH
10269do
10270 IFS=$as_save_IFS
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10274 ac_cv_prog_ac_ct_OTOOL64="otool64"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 break 2
10277 fi
10278done
10279 done
10280IFS=$as_save_IFS
10281
10282fi
10283fi
10284ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10285if test -n "$ac_ct_OTOOL64"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10287$as_echo "$ac_ct_OTOOL64" >&6; }
10288else
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290$as_echo "no" >&6; }
10291fi
10292
10293 if test "x$ac_ct_OTOOL64" = x; then
10294 OTOOL64=":"
10295 else
10296 case $cross_compiling:$ac_tool_warned in
10297yes:)
10298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10300ac_tool_warned=yes ;;
10301esac
10302 OTOOL64=$ac_ct_OTOOL64
10303 fi
10304else
10305 OTOOL64="$ac_cv_prog_OTOOL64"
10306fi
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10335$as_echo_n "checking for -single_module linker flag... " >&6; }
10336if ${lt_cv_apple_cc_single_mod+:} false; then :
10337 $as_echo_n "(cached) " >&6
10338else
10339 lt_cv_apple_cc_single_mod=no
10340 if test -z "$LT_MULTI_MODULE"; then
10341 # By default we will add the -single_module flag. You can override
10342 # by either setting the environment variable LT_MULTI_MODULE
10343 # non-empty at configure time, or by adding -multi_module to the
10344 # link flags.
10345 rm -rf libconftest.dylib*
10346 echo "int foo(void){return 1;}" > conftest.c
10347 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10348-dynamiclib -Wl,-single_module conftest.c" >&5
10349 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10350 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10351 _lt_result=$?
10352 # If there is a non-empty error log, and "single_module"
10353 # appears in it, assume the flag caused a linker warning
10354 if test -s conftest.err && $GREP single_module conftest.err; then
10355 cat conftest.err >&5
10356 # Otherwise, if the output was created with a 0 exit code from
10357 # the compiler, it worked.
10358 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10359 lt_cv_apple_cc_single_mod=yes
10360 else
10361 cat conftest.err >&5
10362 fi
10363 rm -rf libconftest.dylib*
10364 rm -f conftest.*
10365 fi
10366fi
10367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10368$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10369
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10371$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10372if ${lt_cv_ld_exported_symbols_list+:} false; then :
10373 $as_echo_n "(cached) " >&6
10374else
10375 lt_cv_ld_exported_symbols_list=no
10376 save_LDFLAGS=$LDFLAGS
10377 echo "_main" > conftest.sym
10378 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380/* end confdefs.h. */
10381
10382int main (void)
10383{
10384
10385 ;
10386 return 0;
10387}
10388_ACEOF
10389if ac_fn_c_try_link "$LINENO"; then :
10390 lt_cv_ld_exported_symbols_list=yes
10391else
10392 lt_cv_ld_exported_symbols_list=no
10393fi
10394rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396 LDFLAGS=$save_LDFLAGS
10397
10398fi
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10400$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10401
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10403$as_echo_n "checking for -force_load linker flag... " >&6; }
10404if ${lt_cv_ld_force_load+:} false; then :
10405 $as_echo_n "(cached) " >&6
10406else
10407 lt_cv_ld_force_load=no
10408 cat > conftest.c << _LT_EOF
10409int forced_loaded() { return 2;}
10410_LT_EOF
10411 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10412 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10413 echo "$AR cru libconftest.a conftest.o" >&5
10414 $AR cru libconftest.a conftest.o 2>&5
10415 echo "$RANLIB libconftest.a" >&5
10416 $RANLIB libconftest.a 2>&5
10417 cat > conftest.c << _LT_EOF
10418int main() { return 0;}
10419_LT_EOF
10420 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10421 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10422 _lt_result=$?
10423 if test -s conftest.err && $GREP force_load conftest.err; then
10424 cat conftest.err >&5
10425 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10426 lt_cv_ld_force_load=yes
10427 else
10428 cat conftest.err >&5
10429 fi
10430 rm -f conftest.err libconftest.a conftest conftest.c
10431 rm -rf conftest.dSYM
10432
10433fi
10434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10435$as_echo "$lt_cv_ld_force_load" >&6; }
10436 case $host_os in
10437 rhapsody* | darwin1.[012])
10438 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10439 darwin1.*)
10440 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10441 darwin*) # darwin 5.x on
10442 # if running on 10.5 or later, the deployment target defaults
10443 # to the OS version, if on x86, and 10.4, the deployment
10444 # target defaults to 10.4. Don't you love it?
10445 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10446 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10447 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10448 10.[012][,.]*)
10449 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10450 10.*)
10451 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10452 esac
10453 ;;
10454 esac
10455 if test yes = "$lt_cv_apple_cc_single_mod"; then
10456 _lt_dar_single_mod='$single_module'
10457 fi
10458 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10459 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10460 else
10461 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10462 fi
10463 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10464 _lt_dsymutil='~$DSYMUTIL $lib || :'
10465 else
10466 _lt_dsymutil=
10467 fi
10468 ;;
10469 esac
10470
10471# func_munge_path_list VARIABLE PATH
10472# -----------------------------------
10473# VARIABLE is name of variable containing _space_ separated list of
10474# directories to be munged by the contents of PATH, which is string
10475# having a format:
10476# "DIR[:DIR]:"
10477# string "DIR[ DIR]" will be prepended to VARIABLE
10478# ":DIR[:DIR]"
10479# string "DIR[ DIR]" will be appended to VARIABLE
10480# "DIRP[:DIRP]::[DIRA:]DIRA"
10481# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10482# "DIRA[ DIRA]" will be appended to VARIABLE
10483# "DIR[:DIR]"
10484# VARIABLE will be replaced by "DIR[ DIR]"
10485func_munge_path_list ()
10486{
10487 case x$2 in
10488 x)
10489 ;;
10490 *:)
10491 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10492 ;;
10493 x:*)
10494 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10495 ;;
10496 *::*)
10497 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10498 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10499 ;;
10500 *)
10501 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10502 ;;
10503 esac
10504}
10505
Alex Deymo486467e2017-12-19 19:04:07 +010010506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10507$as_echo_n "checking for ANSI C header files... " >&6; }
10508if ${ac_cv_header_stdc+:} false; then :
10509 $as_echo_n "(cached) " >&6
10510else
10511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10512/* end confdefs.h. */
10513#include <stdlib.h>
10514#include <stdarg.h>
10515#include <string.h>
10516#include <float.h>
10517
10518int main (void)
10519{
10520
10521 ;
10522 return 0;
10523}
10524_ACEOF
10525if ac_fn_c_try_compile "$LINENO"; then :
10526 ac_cv_header_stdc=yes
10527else
10528 ac_cv_header_stdc=no
10529fi
10530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10531
10532if test $ac_cv_header_stdc = yes; then
10533 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535/* end confdefs.h. */
10536#include <string.h>
10537
10538_ACEOF
10539if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10540 $EGREP "memchr" >/dev/null 2>&1; then :
10541
10542else
10543 ac_cv_header_stdc=no
10544fi
10545rm -f conftest*
10546
10547fi
10548
10549if test $ac_cv_header_stdc = yes; then
10550 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552/* end confdefs.h. */
10553#include <stdlib.h>
10554
10555_ACEOF
10556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10557 $EGREP "free" >/dev/null 2>&1; then :
10558
10559else
10560 ac_cv_header_stdc=no
10561fi
10562rm -f conftest*
10563
10564fi
10565
10566if test $ac_cv_header_stdc = yes; then
10567 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10568 if test "$cross_compiling" = yes; then :
10569 :
10570else
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572/* end confdefs.h. */
10573#include <ctype.h>
10574#include <stdlib.h>
10575#if ((' ' & 0x0FF) == 0x020)
10576# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10577# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10578#else
10579# define ISLOWER(c) \
10580 (('a' <= (c) && (c) <= 'i') \
10581 || ('j' <= (c) && (c) <= 'r') \
10582 || ('s' <= (c) && (c) <= 'z'))
10583# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10584#endif
10585
10586#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10587int
10588main ()
10589{
10590 int i;
10591 for (i = 0; i < 256; i++)
10592 if (XOR (islower (i), ISLOWER (i))
10593 || toupper (i) != TOUPPER (i))
10594 return 2;
10595 return 0;
10596}
10597_ACEOF
10598if ac_fn_c_try_run "$LINENO"; then :
10599
10600else
10601 ac_cv_header_stdc=no
10602fi
10603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10604 conftest.$ac_objext conftest.beam conftest.$ac_ext
10605fi
10606
10607fi
10608fi
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10610$as_echo "$ac_cv_header_stdc" >&6; }
10611if test $ac_cv_header_stdc = yes; then
10612
10613$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10614
10615fi
10616
10617# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10618for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10619 inttypes.h stdint.h unistd.h
10620do :
10621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10622ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10623"
10624if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10625 cat >>confdefs.h <<_ACEOF
10626#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10627_ACEOF
10628
10629fi
10630
10631done
10632
10633
Elliott Hughes82be86d2017-09-20 17:00:17 -070010634for ac_header in dlfcn.h
10635do :
10636 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10637"
10638if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10639 cat >>confdefs.h <<_ACEOF
10640#define HAVE_DLFCN_H 1
10641_ACEOF
10642
10643fi
10644
10645done
10646
10647# ------------------------------------ #
10648# Determine libtool default behavior #
10649# ------------------------------------ #
10650
10651#
10652# Default behavior is to enable shared and static libraries on systems
10653# where libtool knows how to build both library versions, and does not
10654# require separate configuration and build runs for each flavor.
10655#
10656
10657xc_lt_want_enable_shared='yes'
10658xc_lt_want_enable_static='yes'
10659
10660#
10661# User may have disabled shared or static libraries.
10662#
10663case "x$enable_shared" in # (
10664 xno)
10665 xc_lt_want_enable_shared='no'
10666 ;;
10667esac
10668case "x$enable_static" in # (
10669 xno)
10670 xc_lt_want_enable_static='no'
10671 ;;
10672esac
10673if test "x$xc_lt_want_enable_shared" = 'xno' &&
10674 test "x$xc_lt_want_enable_static" = 'xno'; then
10675 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10676fi
10677
10678#
10679# Default behavior on systems that require independent configuration
10680# and build runs for shared and static is to enable shared libraries
10681# and disable static ones. On these systems option '--disable-shared'
10682# must be used in order to build a proper static library.
10683#
10684
10685if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10686 test "x$xc_lt_want_enable_static" = 'xyes'; then
10687 case $host_os in # (
10688 pw32* | cegcc* | os2* | aix*)
10689 xc_lt_want_enable_static='no'
10690 ;;
10691 esac
10692fi
10693
10694#
10695# Make libtool aware of current shared and static library preferences
10696# taking in account that, depending on host characteristics, libtool
10697# may modify these option preferences later in this configure script.
10698#
10699
10700enable_shared=$xc_lt_want_enable_shared
10701enable_static=$xc_lt_want_enable_static
10702
10703#
10704# Default behavior is to build PIC objects for shared libraries and
10705# non-PIC objects for static libraries.
10706#
10707
10708xc_lt_want_with_pic='default'
10709
10710#
10711# User may have specified PIC preference.
10712#
10713
10714case "x$with_pic" in # ((
10715 xno)
10716 xc_lt_want_with_pic='no'
10717 ;;
10718 xyes)
10719 xc_lt_want_with_pic='yes'
10720 ;;
10721esac
10722
10723#
10724# Default behavior on some systems where building a shared library out
10725# of non-PIC compiled objects will fail with following linker error
10726# "relocation R_X86_64_32 can not be used when making a shared object"
10727# is to build PIC objects even for static libraries. This behavior may
10728# be overridden using 'configure --disable-shared --without-pic'.
10729#
10730
10731if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10732 case $host_cpu in # (
10733 x86_64 | amd64 | ia64)
10734 case $host_os in # (
10735 linux* | freebsd*)
10736 xc_lt_want_with_pic='yes'
10737 ;;
10738 esac
10739 ;;
10740 esac
10741fi
10742
10743#
10744# Make libtool aware of current PIC preference taking in account that,
10745# depending on host characteristics, libtool may modify PIC default
10746# behavior to fit host system idiosyncrasies later in this script.
10747#
10748
10749with_pic=$xc_lt_want_with_pic
10750
10751## ----------------------- ##
10752## Start of libtool code ##
10753## ----------------------- ##
10754
10755
10756
10757
10758# Set options
10759enable_win32_dll=yes
10760
10761case $host in
10762*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10763 if test -n "$ac_tool_prefix"; then
10764 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10765set dummy ${ac_tool_prefix}as; ac_word=$2
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10767$as_echo_n "checking for $ac_word... " >&6; }
10768if ${ac_cv_prog_AS+:} false; then :
10769 $as_echo_n "(cached) " >&6
10770else
10771 if test -n "$AS"; then
10772 ac_cv_prog_AS="$AS" # Let the user override the test.
10773else
10774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775for as_dir in $PATH
10776do
10777 IFS=$as_save_IFS
10778 test -z "$as_dir" && as_dir=.
10779 for ac_exec_ext in '' $ac_executable_extensions; do
10780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10781 ac_cv_prog_AS="${ac_tool_prefix}as"
10782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10783 break 2
10784 fi
10785done
10786 done
10787IFS=$as_save_IFS
10788
10789fi
10790fi
10791AS=$ac_cv_prog_AS
10792if test -n "$AS"; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10794$as_echo "$AS" >&6; }
10795else
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797$as_echo "no" >&6; }
10798fi
10799
10800
10801fi
10802if test -z "$ac_cv_prog_AS"; then
10803 ac_ct_AS=$AS
10804 # Extract the first word of "as", so it can be a program name with args.
10805set dummy as; ac_word=$2
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10807$as_echo_n "checking for $ac_word... " >&6; }
10808if ${ac_cv_prog_ac_ct_AS+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810else
10811 if test -n "$ac_ct_AS"; then
10812 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10813else
10814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10815for as_dir in $PATH
10816do
10817 IFS=$as_save_IFS
10818 test -z "$as_dir" && as_dir=.
10819 for ac_exec_ext in '' $ac_executable_extensions; do
10820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10821 ac_cv_prog_ac_ct_AS="as"
10822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10823 break 2
10824 fi
10825done
10826 done
10827IFS=$as_save_IFS
10828
10829fi
10830fi
10831ac_ct_AS=$ac_cv_prog_ac_ct_AS
10832if test -n "$ac_ct_AS"; then
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10834$as_echo "$ac_ct_AS" >&6; }
10835else
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837$as_echo "no" >&6; }
10838fi
10839
10840 if test "x$ac_ct_AS" = x; then
10841 AS="false"
10842 else
10843 case $cross_compiling:$ac_tool_warned in
10844yes:)
10845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10847ac_tool_warned=yes ;;
10848esac
10849 AS=$ac_ct_AS
10850 fi
10851else
10852 AS="$ac_cv_prog_AS"
10853fi
10854
10855 if test -n "$ac_tool_prefix"; then
10856 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10857set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859$as_echo_n "checking for $ac_word... " >&6; }
10860if ${ac_cv_prog_DLLTOOL+:} false; then :
10861 $as_echo_n "(cached) " >&6
10862else
10863 if test -n "$DLLTOOL"; then
10864 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10865else
10866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867for as_dir in $PATH
10868do
10869 IFS=$as_save_IFS
10870 test -z "$as_dir" && as_dir=.
10871 for ac_exec_ext in '' $ac_executable_extensions; do
10872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10873 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10875 break 2
10876 fi
10877done
10878 done
10879IFS=$as_save_IFS
10880
10881fi
10882fi
10883DLLTOOL=$ac_cv_prog_DLLTOOL
10884if test -n "$DLLTOOL"; then
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10886$as_echo "$DLLTOOL" >&6; }
10887else
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10889$as_echo "no" >&6; }
10890fi
10891
10892
10893fi
10894if test -z "$ac_cv_prog_DLLTOOL"; then
10895 ac_ct_DLLTOOL=$DLLTOOL
10896 # Extract the first word of "dlltool", so it can be a program name with args.
10897set dummy dlltool; ac_word=$2
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10899$as_echo_n "checking for $ac_word... " >&6; }
10900if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10901 $as_echo_n "(cached) " >&6
10902else
10903 if test -n "$ac_ct_DLLTOOL"; then
10904 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10905else
10906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10907for as_dir in $PATH
10908do
10909 IFS=$as_save_IFS
10910 test -z "$as_dir" && as_dir=.
10911 for ac_exec_ext in '' $ac_executable_extensions; do
10912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10913 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10915 break 2
10916 fi
10917done
10918 done
10919IFS=$as_save_IFS
10920
10921fi
10922fi
10923ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10924if test -n "$ac_ct_DLLTOOL"; then
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10926$as_echo "$ac_ct_DLLTOOL" >&6; }
10927else
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929$as_echo "no" >&6; }
10930fi
10931
10932 if test "x$ac_ct_DLLTOOL" = x; then
10933 DLLTOOL="false"
10934 else
10935 case $cross_compiling:$ac_tool_warned in
10936yes:)
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10939ac_tool_warned=yes ;;
10940esac
10941 DLLTOOL=$ac_ct_DLLTOOL
10942 fi
10943else
10944 DLLTOOL="$ac_cv_prog_DLLTOOL"
10945fi
10946
10947 if test -n "$ac_tool_prefix"; then
10948 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10949set dummy ${ac_tool_prefix}objdump; ac_word=$2
10950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10951$as_echo_n "checking for $ac_word... " >&6; }
10952if ${ac_cv_prog_OBJDUMP+:} false; then :
10953 $as_echo_n "(cached) " >&6
10954else
10955 if test -n "$OBJDUMP"; then
10956 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10957else
10958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10959for as_dir in $PATH
10960do
10961 IFS=$as_save_IFS
10962 test -z "$as_dir" && as_dir=.
10963 for ac_exec_ext in '' $ac_executable_extensions; do
10964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10965 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10967 break 2
10968 fi
10969done
10970 done
10971IFS=$as_save_IFS
10972
10973fi
10974fi
10975OBJDUMP=$ac_cv_prog_OBJDUMP
10976if test -n "$OBJDUMP"; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10978$as_echo "$OBJDUMP" >&6; }
10979else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981$as_echo "no" >&6; }
10982fi
10983
10984
10985fi
10986if test -z "$ac_cv_prog_OBJDUMP"; then
10987 ac_ct_OBJDUMP=$OBJDUMP
10988 # Extract the first word of "objdump", so it can be a program name with args.
10989set dummy objdump; ac_word=$2
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10991$as_echo_n "checking for $ac_word... " >&6; }
10992if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10993 $as_echo_n "(cached) " >&6
10994else
10995 if test -n "$ac_ct_OBJDUMP"; then
10996 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10997else
10998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999for as_dir in $PATH
11000do
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11005 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11008 fi
11009done
11010 done
11011IFS=$as_save_IFS
11012
11013fi
11014fi
11015ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11016if test -n "$ac_ct_OBJDUMP"; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11018$as_echo "$ac_ct_OBJDUMP" >&6; }
11019else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021$as_echo "no" >&6; }
11022fi
11023
11024 if test "x$ac_ct_OBJDUMP" = x; then
11025 OBJDUMP="false"
11026 else
11027 case $cross_compiling:$ac_tool_warned in
11028yes:)
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11031ac_tool_warned=yes ;;
11032esac
11033 OBJDUMP=$ac_ct_OBJDUMP
11034 fi
11035else
11036 OBJDUMP="$ac_cv_prog_OBJDUMP"
11037fi
11038
11039 ;;
11040esac
11041
11042test -z "$AS" && AS=as
11043
11044
11045
11046
11047
11048test -z "$DLLTOOL" && DLLTOOL=dlltool
11049
11050
11051
11052
11053
11054test -z "$OBJDUMP" && OBJDUMP=objdump
11055
11056
11057
11058
11059
11060
11061
11062 enable_dlopen=no
11063
11064
11065
11066 # Check whether --enable-shared was given.
11067if test "${enable_shared+set}" = set; then :
11068 enableval=$enable_shared; p=${PACKAGE-default}
11069 case $enableval in
11070 yes) enable_shared=yes ;;
11071 no) enable_shared=no ;;
11072 *)
11073 enable_shared=no
11074 # Look at the argument we got. We use all the common list separators.
11075 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11076 for pkg in $enableval; do
11077 IFS=$lt_save_ifs
11078 if test "X$pkg" = "X$p"; then
11079 enable_shared=yes
11080 fi
11081 done
11082 IFS=$lt_save_ifs
11083 ;;
11084 esac
11085else
11086 enable_shared=yes
11087fi
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097 # Check whether --enable-static was given.
11098if test "${enable_static+set}" = set; then :
11099 enableval=$enable_static; p=${PACKAGE-default}
11100 case $enableval in
11101 yes) enable_static=yes ;;
11102 no) enable_static=no ;;
11103 *)
11104 enable_static=no
11105 # Look at the argument we got. We use all the common list separators.
11106 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11107 for pkg in $enableval; do
11108 IFS=$lt_save_ifs
11109 if test "X$pkg" = "X$p"; then
11110 enable_static=yes
11111 fi
11112 done
11113 IFS=$lt_save_ifs
11114 ;;
11115 esac
11116else
11117 enable_static=yes
11118fi
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129# Check whether --with-pic was given.
11130if test "${with_pic+set}" = set; then :
11131 withval=$with_pic; lt_p=${PACKAGE-default}
11132 case $withval in
11133 yes|no) pic_mode=$withval ;;
11134 *)
11135 pic_mode=default
11136 # Look at the argument we got. We use all the common list separators.
11137 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11138 for lt_pkg in $withval; do
11139 IFS=$lt_save_ifs
11140 if test "X$lt_pkg" = "X$lt_p"; then
11141 pic_mode=yes
11142 fi
11143 done
11144 IFS=$lt_save_ifs
11145 ;;
11146 esac
11147else
11148 pic_mode=default
11149fi
11150
11151
11152
11153
11154
11155
11156
11157
11158 # Check whether --enable-fast-install was given.
11159if test "${enable_fast_install+set}" = set; then :
11160 enableval=$enable_fast_install; p=${PACKAGE-default}
11161 case $enableval in
11162 yes) enable_fast_install=yes ;;
11163 no) enable_fast_install=no ;;
11164 *)
11165 enable_fast_install=no
11166 # Look at the argument we got. We use all the common list separators.
11167 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11168 for pkg in $enableval; do
11169 IFS=$lt_save_ifs
11170 if test "X$pkg" = "X$p"; then
11171 enable_fast_install=yes
11172 fi
11173 done
11174 IFS=$lt_save_ifs
11175 ;;
11176 esac
11177else
11178 enable_fast_install=yes
11179fi
11180
11181
11182
11183
11184
11185
11186
11187
11188 shared_archive_member_spec=
11189case $host,$enable_shared in
11190power*-*-aix[5-9]*,yes)
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11192$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11193
11194# Check whether --with-aix-soname was given.
11195if test "${with_aix_soname+set}" = set; then :
11196 withval=$with_aix_soname; case $withval in
11197 aix|svr4|both)
11198 ;;
11199 *)
11200 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11201 ;;
11202 esac
11203 lt_cv_with_aix_soname=$with_aix_soname
11204else
11205 if ${lt_cv_with_aix_soname+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207else
11208 lt_cv_with_aix_soname=aix
11209fi
11210
11211 with_aix_soname=$lt_cv_with_aix_soname
11212fi
11213
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11215$as_echo "$with_aix_soname" >&6; }
11216 if test aix != "$with_aix_soname"; then
11217 # For the AIX way of multilib, we name the shared archive member
11218 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11219 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11220 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11221 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11222 if test 64 = "${OBJECT_MODE-32}"; then
11223 shared_archive_member_spec=shr_64
11224 else
11225 shared_archive_member_spec=shr
11226 fi
11227 fi
11228 ;;
11229*)
11230 with_aix_soname=aix
11231 ;;
11232esac
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243# This can be used to rebuild libtool when needed
11244LIBTOOL_DEPS=$ltmain
11245
11246# Always use our own libtool.
11247LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278test -z "$LN_S" && LN_S="ln -s"
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293if test -n "${ZSH_VERSION+set}"; then
11294 setopt NO_GLOB_SUBST
11295fi
11296
11297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11298$as_echo_n "checking for objdir... " >&6; }
11299if ${lt_cv_objdir+:} false; then :
11300 $as_echo_n "(cached) " >&6
11301else
11302 rm -f .libs 2>/dev/null
11303mkdir .libs 2>/dev/null
11304if test -d .libs; then
11305 lt_cv_objdir=.libs
11306else
11307 # MS-DOS does not allow filenames that begin with a dot.
11308 lt_cv_objdir=_libs
11309fi
11310rmdir .libs 2>/dev/null
11311fi
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11313$as_echo "$lt_cv_objdir" >&6; }
11314objdir=$lt_cv_objdir
11315
11316
11317
11318
11319
11320cat >>confdefs.h <<_ACEOF
11321#define LT_OBJDIR "$lt_cv_objdir/"
11322_ACEOF
11323
11324
11325
11326
11327case $host_os in
11328aix3*)
11329 # AIX sometimes has problems with the GCC collect2 program. For some
11330 # reason, if we set the COLLECT_NAMES environment variable, the problems
11331 # vanish in a puff of smoke.
11332 if test set != "${COLLECT_NAMES+set}"; then
11333 COLLECT_NAMES=
11334 export COLLECT_NAMES
11335 fi
11336 ;;
11337esac
11338
11339# Global variables:
11340ofile=libtool
11341can_build_shared=yes
11342
11343# All known linkers require a '.a' archive for static linking (except MSVC,
11344# which needs '.lib').
11345libext=a
11346
11347with_gnu_ld=$lt_cv_prog_gnu_ld
11348
11349old_CC=$CC
11350old_CFLAGS=$CFLAGS
11351
11352# Set sane defaults for various variables
11353test -z "$CC" && CC=cc
11354test -z "$LTCC" && LTCC=$CC
11355test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11356test -z "$LD" && LD=ld
11357test -z "$ac_objext" && ac_objext=o
11358
11359func_cc_basename $compiler
11360cc_basename=$func_cc_basename_result
11361
11362
11363# Only perform the check for file, if the check method requires it
11364test -z "$MAGIC_CMD" && MAGIC_CMD=file
11365case $deplibs_check_method in
11366file_magic*)
11367 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11369$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11370if ${lt_cv_path_MAGIC_CMD+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372else
11373 case $MAGIC_CMD in
11374[\\/*] | ?:[\\/]*)
11375 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11376 ;;
11377*)
11378 lt_save_MAGIC_CMD=$MAGIC_CMD
11379 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11380 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11381 for ac_dir in $ac_dummy; do
11382 IFS=$lt_save_ifs
11383 test -z "$ac_dir" && ac_dir=.
11384 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11385 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11386 if test -n "$file_magic_test_file"; then
11387 case $deplibs_check_method in
11388 "file_magic "*)
11389 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11390 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11391 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11392 $EGREP "$file_magic_regex" > /dev/null; then
11393 :
11394 else
11395 cat <<_LT_EOF 1>&2
11396
11397*** Warning: the command libtool uses to detect shared libraries,
11398*** $file_magic_cmd, produces output that libtool cannot recognize.
11399*** The result is that libtool may fail to recognize shared libraries
11400*** as such. This will affect the creation of libtool libraries that
11401*** depend on shared libraries, but programs linked with such libtool
11402*** libraries will work regardless of this problem. Nevertheless, you
11403*** may want to report the problem to your system manager and/or to
11404*** bug-libtool@gnu.org
11405
11406_LT_EOF
11407 fi ;;
11408 esac
11409 fi
11410 break
11411 fi
11412 done
11413 IFS=$lt_save_ifs
11414 MAGIC_CMD=$lt_save_MAGIC_CMD
11415 ;;
11416esac
11417fi
11418
11419MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11420if test -n "$MAGIC_CMD"; then
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11422$as_echo "$MAGIC_CMD" >&6; }
11423else
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425$as_echo "no" >&6; }
11426fi
11427
11428
11429
11430
11431
11432if test -z "$lt_cv_path_MAGIC_CMD"; then
11433 if test -n "$ac_tool_prefix"; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11435$as_echo_n "checking for file... " >&6; }
11436if ${lt_cv_path_MAGIC_CMD+:} false; then :
11437 $as_echo_n "(cached) " >&6
11438else
11439 case $MAGIC_CMD in
11440[\\/*] | ?:[\\/]*)
11441 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11442 ;;
11443*)
11444 lt_save_MAGIC_CMD=$MAGIC_CMD
11445 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11447 for ac_dir in $ac_dummy; do
11448 IFS=$lt_save_ifs
11449 test -z "$ac_dir" && ac_dir=.
11450 if test -f "$ac_dir/file"; then
11451 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11452 if test -n "$file_magic_test_file"; then
11453 case $deplibs_check_method in
11454 "file_magic "*)
11455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11456 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11458 $EGREP "$file_magic_regex" > /dev/null; then
11459 :
11460 else
11461 cat <<_LT_EOF 1>&2
11462
11463*** Warning: the command libtool uses to detect shared libraries,
11464*** $file_magic_cmd, produces output that libtool cannot recognize.
11465*** The result is that libtool may fail to recognize shared libraries
11466*** as such. This will affect the creation of libtool libraries that
11467*** depend on shared libraries, but programs linked with such libtool
11468*** libraries will work regardless of this problem. Nevertheless, you
11469*** may want to report the problem to your system manager and/or to
11470*** bug-libtool@gnu.org
11471
11472_LT_EOF
11473 fi ;;
11474 esac
11475 fi
11476 break
11477 fi
11478 done
11479 IFS=$lt_save_ifs
11480 MAGIC_CMD=$lt_save_MAGIC_CMD
11481 ;;
11482esac
11483fi
11484
11485MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11486if test -n "$MAGIC_CMD"; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11488$as_echo "$MAGIC_CMD" >&6; }
11489else
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491$as_echo "no" >&6; }
11492fi
11493
11494
11495 else
11496 MAGIC_CMD=:
11497 fi
11498fi
11499
11500 fi
11501 ;;
11502esac
11503
11504# Use C for the default configuration in the libtool script
11505
11506lt_save_CC=$CC
11507ac_ext=c
11508ac_cpp='$CPP $CPPFLAGS'
11509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511ac_compiler_gnu=$ac_cv_c_compiler_gnu
11512
11513
11514# Source file extension for C test sources.
11515ac_ext=c
11516
11517# Object file extension for compiled C test sources.
11518objext=o
11519objext=$objext
11520
11521# Code to be used in simple compile tests
11522lt_simple_compile_test_code="int some_variable = 0;"
11523
11524# Code to be used in simple link tests
11525lt_simple_link_test_code='int main(){return(0);}'
11526
11527
11528
11529
11530
11531
11532
11533# If no C compiler was specified, use CC.
11534LTCC=${LTCC-"$CC"}
11535
11536# If no C compiler flags were specified, use CFLAGS.
11537LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11538
11539# Allow CC to be a program name with arguments.
11540compiler=$CC
11541
11542# Save the default compiler, since it gets overwritten when the other
11543# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11544compiler_DEFAULT=$CC
11545
11546# save warnings/boilerplate of simple test code
11547ac_outfile=conftest.$ac_objext
11548echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11549eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11550_lt_compiler_boilerplate=`cat conftest.err`
11551$RM conftest*
11552
11553ac_outfile=conftest.$ac_objext
11554echo "$lt_simple_link_test_code" >conftest.$ac_ext
11555eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11556_lt_linker_boilerplate=`cat conftest.err`
11557$RM -r conftest*
11558
11559
11560## CAVEAT EMPTOR:
11561## There is no encapsulation within the following macros, do not change
11562## the running order or otherwise move them around unless you know exactly
11563## what you are doing...
11564if test -n "$compiler"; then
11565
11566lt_prog_compiler_no_builtin_flag=
11567
11568if test yes = "$GCC"; then
11569 case $cc_basename in
11570 nvcc*)
11571 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11572 *)
11573 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11574 esac
11575
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11577$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11578if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11579 $as_echo_n "(cached) " >&6
11580else
11581 lt_cv_prog_compiler_rtti_exceptions=no
11582 ac_outfile=conftest.$ac_objext
11583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11584 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11585 # Insert the option either (1) after the last *FLAGS variable, or
11586 # (2) before a word containing "conftest.", or (3) at the end.
11587 # Note that $ac_compile itself does not contain backslashes and begins
11588 # with a dollar sign (not a hyphen), so the echo should work correctly.
11589 # The option is referenced via a variable to avoid confusing sed.
11590 lt_compile=`echo "$ac_compile" | $SED \
11591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11593 -e 's:$: $lt_compiler_flag:'`
11594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11595 (eval "$lt_compile" 2>conftest.err)
11596 ac_status=$?
11597 cat conftest.err >&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 if (exit $ac_status) && test -s "$ac_outfile"; then
11600 # The compiler can only warn and ignore the option if not recognized
11601 # So say no if there are warnings other than the usual output.
11602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11605 lt_cv_prog_compiler_rtti_exceptions=yes
11606 fi
11607 fi
11608 $RM conftest*
11609
11610fi
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11612$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11613
11614if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11615 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11616else
11617 :
11618fi
11619
11620fi
11621
11622
11623
11624
11625
11626
11627 lt_prog_compiler_wl=
11628lt_prog_compiler_pic=
11629lt_prog_compiler_static=
11630
11631
11632 if test yes = "$GCC"; then
11633 lt_prog_compiler_wl='-Wl,'
11634 lt_prog_compiler_static='-static'
11635
11636 case $host_os in
11637 aix*)
11638 # All AIX code is PIC.
11639 if test ia64 = "$host_cpu"; then
11640 # AIX 5 now supports IA64 processor
11641 lt_prog_compiler_static='-Bstatic'
11642 fi
11643 lt_prog_compiler_pic='-fPIC'
11644 ;;
11645
11646 amigaos*)
11647 case $host_cpu in
11648 powerpc)
11649 # see comment about AmigaOS4 .so support
11650 lt_prog_compiler_pic='-fPIC'
11651 ;;
11652 m68k)
11653 # FIXME: we need at least 68020 code to build shared libraries, but
11654 # adding the '-m68020' flag to GCC prevents building anything better,
11655 # like '-m68040'.
11656 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11657 ;;
11658 esac
11659 ;;
11660
11661 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11662 # PIC is the default for these OSes.
11663 ;;
11664
11665 mingw* | cygwin* | pw32* | os2* | cegcc*)
11666 # This hack is so that the source file can tell whether it is being
11667 # built for inclusion in a dll (and should export symbols for example).
11668 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11669 # (--disable-auto-import) libraries
11670 lt_prog_compiler_pic='-DDLL_EXPORT'
11671 case $host_os in
11672 os2*)
11673 lt_prog_compiler_static='$wl-static'
11674 ;;
11675 esac
11676 ;;
11677
11678 darwin* | rhapsody*)
11679 # PIC is the default on this platform
11680 # Common symbols not allowed in MH_DYLIB files
11681 lt_prog_compiler_pic='-fno-common'
11682 ;;
11683
11684 haiku*)
11685 # PIC is the default for Haiku.
11686 # The "-static" flag exists, but is broken.
11687 lt_prog_compiler_static=
11688 ;;
11689
11690 hpux*)
11691 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11692 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11693 # sets the default TLS model and affects inlining.
11694 case $host_cpu in
11695 hppa*64*)
11696 # +Z the default
11697 ;;
11698 *)
11699 lt_prog_compiler_pic='-fPIC'
11700 ;;
11701 esac
11702 ;;
11703
11704 interix[3-9]*)
11705 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11706 # Instead, we relocate shared libraries at runtime.
11707 ;;
11708
11709 msdosdjgpp*)
11710 # Just because we use GCC doesn't mean we suddenly get shared libraries
11711 # on systems that don't support them.
11712 lt_prog_compiler_can_build_shared=no
11713 enable_shared=no
11714 ;;
11715
11716 *nto* | *qnx*)
11717 # QNX uses GNU C++, but need to define -shared option too, otherwise
11718 # it will coredump.
11719 lt_prog_compiler_pic='-fPIC -shared'
11720 ;;
11721
11722 sysv4*MP*)
11723 if test -d /usr/nec; then
11724 lt_prog_compiler_pic=-Kconform_pic
11725 fi
11726 ;;
11727
11728 *)
11729 lt_prog_compiler_pic='-fPIC'
11730 ;;
11731 esac
11732
11733 case $cc_basename in
11734 nvcc*) # Cuda Compiler Driver 2.2
11735 lt_prog_compiler_wl='-Xlinker '
11736 if test -n "$lt_prog_compiler_pic"; then
11737 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11738 fi
11739 ;;
11740 esac
11741 else
11742 # PORTME Check for flag to pass linker flags through the system compiler.
11743 case $host_os in
11744 aix*)
11745 lt_prog_compiler_wl='-Wl,'
11746 if test ia64 = "$host_cpu"; then
11747 # AIX 5 now supports IA64 processor
11748 lt_prog_compiler_static='-Bstatic'
11749 else
11750 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11751 fi
11752 ;;
11753
11754 darwin* | rhapsody*)
11755 # PIC is the default on this platform
11756 # Common symbols not allowed in MH_DYLIB files
11757 lt_prog_compiler_pic='-fno-common'
11758 case $cc_basename in
11759 nagfor*)
11760 # NAG Fortran compiler
11761 lt_prog_compiler_wl='-Wl,-Wl,,'
11762 lt_prog_compiler_pic='-PIC'
11763 lt_prog_compiler_static='-Bstatic'
11764 ;;
11765 esac
11766 ;;
11767
11768 mingw* | cygwin* | pw32* | os2* | cegcc*)
11769 # This hack is so that the source file can tell whether it is being
11770 # built for inclusion in a dll (and should export symbols for example).
11771 lt_prog_compiler_pic='-DDLL_EXPORT'
11772 case $host_os in
11773 os2*)
11774 lt_prog_compiler_static='$wl-static'
11775 ;;
11776 esac
11777 ;;
11778
11779 hpux9* | hpux10* | hpux11*)
11780 lt_prog_compiler_wl='-Wl,'
11781 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11782 # not for PA HP-UX.
11783 case $host_cpu in
11784 hppa*64*|ia64*)
11785 # +Z the default
11786 ;;
11787 *)
11788 lt_prog_compiler_pic='+Z'
11789 ;;
11790 esac
11791 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11792 lt_prog_compiler_static='$wl-a ${wl}archive'
11793 ;;
11794
11795 irix5* | irix6* | nonstopux*)
11796 lt_prog_compiler_wl='-Wl,'
11797 # PIC (with -KPIC) is the default.
11798 lt_prog_compiler_static='-non_shared'
11799 ;;
11800
11801 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11802 case $cc_basename in
11803 # old Intel for x86_64, which still supported -KPIC.
11804 ecc*)
11805 lt_prog_compiler_wl='-Wl,'
11806 lt_prog_compiler_pic='-KPIC'
11807 lt_prog_compiler_static='-static'
11808 ;;
11809 # icc used to be incompatible with GCC.
11810 # ICC 10 doesn't accept -KPIC any more.
11811 icc* | ifort*)
11812 lt_prog_compiler_wl='-Wl,'
11813 lt_prog_compiler_pic='-fPIC'
11814 lt_prog_compiler_static='-static'
11815 ;;
11816 # Lahey Fortran 8.1.
11817 lf95*)
11818 lt_prog_compiler_wl='-Wl,'
11819 lt_prog_compiler_pic='--shared'
11820 lt_prog_compiler_static='--static'
11821 ;;
11822 nagfor*)
11823 # NAG Fortran compiler
11824 lt_prog_compiler_wl='-Wl,-Wl,,'
11825 lt_prog_compiler_pic='-PIC'
11826 lt_prog_compiler_static='-Bstatic'
11827 ;;
11828 tcc*)
11829 # Fabrice Bellard et al's Tiny C Compiler
11830 lt_prog_compiler_wl='-Wl,'
11831 lt_prog_compiler_pic='-fPIC'
11832 lt_prog_compiler_static='-static'
11833 ;;
11834 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11835 # Portland Group compilers (*not* the Pentium gcc compiler,
11836 # which looks to be a dead project)
11837 lt_prog_compiler_wl='-Wl,'
11838 lt_prog_compiler_pic='-fpic'
11839 lt_prog_compiler_static='-Bstatic'
11840 ;;
11841 ccc*)
11842 lt_prog_compiler_wl='-Wl,'
11843 # All Alpha code is PIC.
11844 lt_prog_compiler_static='-non_shared'
11845 ;;
11846 xl* | bgxl* | bgf* | mpixl*)
11847 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11848 lt_prog_compiler_wl='-Wl,'
11849 lt_prog_compiler_pic='-qpic'
11850 lt_prog_compiler_static='-qstaticlink'
11851 ;;
11852 *)
11853 case `$CC -V 2>&1 | sed 5q` in
11854 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11855 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11856 lt_prog_compiler_pic='-KPIC'
11857 lt_prog_compiler_static='-Bstatic'
11858 lt_prog_compiler_wl=''
11859 ;;
11860 *Sun\ F* | *Sun*Fortran*)
11861 lt_prog_compiler_pic='-KPIC'
11862 lt_prog_compiler_static='-Bstatic'
11863 lt_prog_compiler_wl='-Qoption ld '
11864 ;;
11865 *Sun\ C*)
11866 # Sun C 5.9
11867 lt_prog_compiler_pic='-KPIC'
11868 lt_prog_compiler_static='-Bstatic'
11869 lt_prog_compiler_wl='-Wl,'
11870 ;;
11871 *Intel*\ [CF]*Compiler*)
11872 lt_prog_compiler_wl='-Wl,'
11873 lt_prog_compiler_pic='-fPIC'
11874 lt_prog_compiler_static='-static'
11875 ;;
11876 *Portland\ Group*)
11877 lt_prog_compiler_wl='-Wl,'
11878 lt_prog_compiler_pic='-fpic'
11879 lt_prog_compiler_static='-Bstatic'
11880 ;;
11881 esac
11882 ;;
11883 esac
11884 ;;
11885
11886 newsos6)
11887 lt_prog_compiler_pic='-KPIC'
11888 lt_prog_compiler_static='-Bstatic'
11889 ;;
11890
11891 *nto* | *qnx*)
11892 # QNX uses GNU C++, but need to define -shared option too, otherwise
11893 # it will coredump.
11894 lt_prog_compiler_pic='-fPIC -shared'
11895 ;;
11896
11897 osf3* | osf4* | osf5*)
11898 lt_prog_compiler_wl='-Wl,'
11899 # All OSF/1 code is PIC.
11900 lt_prog_compiler_static='-non_shared'
11901 ;;
11902
11903 rdos*)
11904 lt_prog_compiler_static='-non_shared'
11905 ;;
11906
11907 solaris*)
11908 lt_prog_compiler_pic='-KPIC'
11909 lt_prog_compiler_static='-Bstatic'
11910 case $cc_basename in
11911 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11912 lt_prog_compiler_wl='-Qoption ld ';;
11913 *)
11914 lt_prog_compiler_wl='-Wl,';;
11915 esac
11916 ;;
11917
11918 sunos4*)
11919 lt_prog_compiler_wl='-Qoption ld '
11920 lt_prog_compiler_pic='-PIC'
11921 lt_prog_compiler_static='-Bstatic'
11922 ;;
11923
11924 sysv4 | sysv4.2uw2* | sysv4.3*)
11925 lt_prog_compiler_wl='-Wl,'
11926 lt_prog_compiler_pic='-KPIC'
11927 lt_prog_compiler_static='-Bstatic'
11928 ;;
11929
11930 sysv4*MP*)
11931 if test -d /usr/nec; then
11932 lt_prog_compiler_pic='-Kconform_pic'
11933 lt_prog_compiler_static='-Bstatic'
11934 fi
11935 ;;
11936
11937 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11938 lt_prog_compiler_wl='-Wl,'
11939 lt_prog_compiler_pic='-KPIC'
11940 lt_prog_compiler_static='-Bstatic'
11941 ;;
11942
11943 unicos*)
11944 lt_prog_compiler_wl='-Wl,'
11945 lt_prog_compiler_can_build_shared=no
11946 ;;
11947
11948 uts4*)
11949 lt_prog_compiler_pic='-pic'
11950 lt_prog_compiler_static='-Bstatic'
11951 ;;
11952
11953 *)
11954 lt_prog_compiler_can_build_shared=no
11955 ;;
11956 esac
11957 fi
11958
11959case $host_os in
11960 # For platforms that do not support PIC, -DPIC is meaningless:
11961 *djgpp*)
11962 lt_prog_compiler_pic=
11963 ;;
11964 *)
11965 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11966 ;;
11967esac
11968
11969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11970$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11971if ${lt_cv_prog_compiler_pic+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973else
11974 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11975fi
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11977$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11978lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11979
11980#
11981# Check to make sure the PIC flag actually works.
11982#
11983if test -n "$lt_prog_compiler_pic"; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11985$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11986if ${lt_cv_prog_compiler_pic_works+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988else
11989 lt_cv_prog_compiler_pic_works=no
11990 ac_outfile=conftest.$ac_objext
11991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11992 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11993 # Insert the option either (1) after the last *FLAGS variable, or
11994 # (2) before a word containing "conftest.", or (3) at the end.
11995 # Note that $ac_compile itself does not contain backslashes and begins
11996 # with a dollar sign (not a hyphen), so the echo should work correctly.
11997 # The option is referenced via a variable to avoid confusing sed.
11998 lt_compile=`echo "$ac_compile" | $SED \
11999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12001 -e 's:$: $lt_compiler_flag:'`
12002 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12003 (eval "$lt_compile" 2>conftest.err)
12004 ac_status=$?
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 if (exit $ac_status) && test -s "$ac_outfile"; then
12008 # The compiler can only warn and ignore the option if not recognized
12009 # So say no if there are warnings other than the usual output.
12010 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12013 lt_cv_prog_compiler_pic_works=yes
12014 fi
12015 fi
12016 $RM conftest*
12017
12018fi
12019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12020$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12021
12022if test yes = "$lt_cv_prog_compiler_pic_works"; then
12023 case $lt_prog_compiler_pic in
12024 "" | " "*) ;;
12025 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12026 esac
12027else
12028 lt_prog_compiler_pic=
12029 lt_prog_compiler_can_build_shared=no
12030fi
12031
12032fi
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044#
12045# Check to make sure the static flag actually works.
12046#
12047wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12049$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12050if ${lt_cv_prog_compiler_static_works+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052else
12053 lt_cv_prog_compiler_static_works=no
12054 save_LDFLAGS=$LDFLAGS
12055 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12056 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12058 # The linker can only warn and ignore the option if not recognized
12059 # So say no if there are warnings
12060 if test -s conftest.err; then
12061 # Append any errors to the config.log.
12062 cat conftest.err 1>&5
12063 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12065 if diff conftest.exp conftest.er2 >/dev/null; then
12066 lt_cv_prog_compiler_static_works=yes
12067 fi
12068 else
12069 lt_cv_prog_compiler_static_works=yes
12070 fi
12071 fi
12072 $RM -r conftest*
12073 LDFLAGS=$save_LDFLAGS
12074
12075fi
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12077$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12078
12079if test yes = "$lt_cv_prog_compiler_static_works"; then
12080 :
12081else
12082 lt_prog_compiler_static=
12083fi
12084
12085
12086
12087
12088
12089
12090
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12092$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12093if ${lt_cv_prog_compiler_c_o+:} false; then :
12094 $as_echo_n "(cached) " >&6
12095else
12096 lt_cv_prog_compiler_c_o=no
12097 $RM -r conftest 2>/dev/null
12098 mkdir conftest
12099 cd conftest
12100 mkdir out
12101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12102
12103 lt_compiler_flag="-o out/conftest2.$ac_objext"
12104 # Insert the option either (1) after the last *FLAGS variable, or
12105 # (2) before a word containing "conftest.", or (3) at the end.
12106 # Note that $ac_compile itself does not contain backslashes and begins
12107 # with a dollar sign (not a hyphen), so the echo should work correctly.
12108 lt_compile=`echo "$ac_compile" | $SED \
12109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12111 -e 's:$: $lt_compiler_flag:'`
12112 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12113 (eval "$lt_compile" 2>out/conftest.err)
12114 ac_status=$?
12115 cat out/conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12118 then
12119 # The compiler can only warn and ignore the option if not recognized
12120 # So say no if there are warnings
12121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12124 lt_cv_prog_compiler_c_o=yes
12125 fi
12126 fi
12127 chmod u+w . 2>&5
12128 $RM conftest*
12129 # SGI C++ compiler will create directory out/ii_files/ for
12130 # template instantiation
12131 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12132 $RM out/* && rmdir out
12133 cd ..
12134 $RM -r conftest
12135 $RM conftest*
12136
12137fi
12138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12139$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12140
12141
12142
12143
12144
12145
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12147$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12148if ${lt_cv_prog_compiler_c_o+:} false; then :
12149 $as_echo_n "(cached) " >&6
12150else
12151 lt_cv_prog_compiler_c_o=no
12152 $RM -r conftest 2>/dev/null
12153 mkdir conftest
12154 cd conftest
12155 mkdir out
12156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12157
12158 lt_compiler_flag="-o out/conftest2.$ac_objext"
12159 # Insert the option either (1) after the last *FLAGS variable, or
12160 # (2) before a word containing "conftest.", or (3) at the end.
12161 # Note that $ac_compile itself does not contain backslashes and begins
12162 # with a dollar sign (not a hyphen), so the echo should work correctly.
12163 lt_compile=`echo "$ac_compile" | $SED \
12164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12166 -e 's:$: $lt_compiler_flag:'`
12167 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12168 (eval "$lt_compile" 2>out/conftest.err)
12169 ac_status=$?
12170 cat out/conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12173 then
12174 # The compiler can only warn and ignore the option if not recognized
12175 # So say no if there are warnings
12176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12177 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12178 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12179 lt_cv_prog_compiler_c_o=yes
12180 fi
12181 fi
12182 chmod u+w . 2>&5
12183 $RM conftest*
12184 # SGI C++ compiler will create directory out/ii_files/ for
12185 # template instantiation
12186 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12187 $RM out/* && rmdir out
12188 cd ..
12189 $RM -r conftest
12190 $RM conftest*
12191
12192fi
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12194$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12195
12196
12197
12198
12199hard_links=nottested
12200if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12201 # do not overwrite the value of need_locks provided by the user
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12203$as_echo_n "checking if we can lock with hard links... " >&6; }
12204 hard_links=yes
12205 $RM conftest*
12206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12207 touch conftest.a
12208 ln conftest.a conftest.b 2>&5 || hard_links=no
12209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12211$as_echo "$hard_links" >&6; }
12212 if test no = "$hard_links"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12214$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12215 need_locks=warn
12216 fi
12217else
12218 need_locks=no
12219fi
12220
12221
12222
12223
12224
12225
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12227$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12228
12229 runpath_var=
12230 allow_undefined_flag=
12231 always_export_symbols=no
12232 archive_cmds=
12233 archive_expsym_cmds=
12234 compiler_needs_object=no
12235 enable_shared_with_static_runtimes=no
12236 export_dynamic_flag_spec=
12237 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12238 hardcode_automatic=no
12239 hardcode_direct=no
12240 hardcode_direct_absolute=no
12241 hardcode_libdir_flag_spec=
12242 hardcode_libdir_separator=
12243 hardcode_minus_L=no
12244 hardcode_shlibpath_var=unsupported
12245 inherit_rpath=no
12246 link_all_deplibs=unknown
12247 module_cmds=
12248 module_expsym_cmds=
12249 old_archive_from_new_cmds=
12250 old_archive_from_expsyms_cmds=
12251 thread_safe_flag_spec=
12252 whole_archive_flag_spec=
12253 # include_expsyms should be a list of space-separated symbols to be *always*
12254 # included in the symbol list
12255 include_expsyms=
12256 # exclude_expsyms can be an extended regexp of symbols to exclude
12257 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12258 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12259 # as well as any symbol that contains 'd'.
12260 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12261 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12262 # platforms (ab)use it in PIC code, but their linkers get confused if
12263 # the symbol is explicitly referenced. Since portable code cannot
12264 # rely on this symbol name, it's probably fine to never include it in
12265 # preloaded symbol tables.
12266 # Exclude shared library initialization/finalization symbols.
12267 extract_expsyms_cmds=
12268
12269 case $host_os in
12270 cygwin* | mingw* | pw32* | cegcc*)
12271 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12272 # When not using gcc, we currently assume that we are using
12273 # Microsoft Visual C++.
12274 if test yes != "$GCC"; then
12275 with_gnu_ld=no
12276 fi
12277 ;;
12278 interix*)
12279 # we just hope/assume this is gcc and not c89 (= MSVC++)
12280 with_gnu_ld=yes
12281 ;;
12282 openbsd* | bitrig*)
12283 with_gnu_ld=no
12284 ;;
12285 linux* | k*bsd*-gnu | gnu*)
12286 link_all_deplibs=no
12287 ;;
12288 esac
12289
12290 ld_shlibs=yes
12291
12292 # On some targets, GNU ld is compatible enough with the native linker
12293 # that we're better off using the native interface for both.
12294 lt_use_gnu_ld_interface=no
12295 if test yes = "$with_gnu_ld"; then
12296 case $host_os in
12297 aix*)
12298 # The AIX port of GNU ld has always aspired to compatibility
12299 # with the native linker. However, as the warning in the GNU ld
12300 # block says, versions before 2.19.5* couldn't really create working
12301 # shared libraries, regardless of the interface used.
12302 case `$LD -v 2>&1` in
12303 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12304 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12305 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12306 *)
12307 lt_use_gnu_ld_interface=yes
12308 ;;
12309 esac
12310 ;;
12311 *)
12312 lt_use_gnu_ld_interface=yes
12313 ;;
12314 esac
12315 fi
12316
12317 if test yes = "$lt_use_gnu_ld_interface"; then
12318 # If archive_cmds runs LD, not CC, wlarc should be empty
12319 wlarc='$wl'
12320
12321 # Set some defaults for GNU ld with shared library support. These
12322 # are reset later if shared libraries are not supported. Putting them
12323 # here allows them to be overridden if necessary.
12324 runpath_var=LD_RUN_PATH
12325 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12326 export_dynamic_flag_spec='$wl--export-dynamic'
12327 # ancient GNU ld didn't support --whole-archive et. al.
12328 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12329 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12330 else
12331 whole_archive_flag_spec=
12332 fi
12333 supports_anon_versioning=no
12334 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12335 *GNU\ gold*) supports_anon_versioning=yes ;;
12336 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12337 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12338 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12339 *\ 2.11.*) ;; # other 2.11 versions
12340 *) supports_anon_versioning=yes ;;
12341 esac
12342
12343 # See if GNU ld supports shared libraries.
12344 case $host_os in
12345 aix[3-9]*)
12346 # On AIX/PPC, the GNU linker is very broken
12347 if test ia64 != "$host_cpu"; then
12348 ld_shlibs=no
12349 cat <<_LT_EOF 1>&2
12350
12351*** Warning: the GNU linker, at least up to release 2.19, is reported
12352*** to be unable to reliably create shared libraries on AIX.
12353*** Therefore, libtool is disabling shared libraries support. If you
12354*** really care for shared libraries, you may want to install binutils
12355*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12356*** You will then need to restart the configuration process.
12357
12358_LT_EOF
12359 fi
12360 ;;
12361
12362 amigaos*)
12363 case $host_cpu in
12364 powerpc)
12365 # see comment about AmigaOS4 .so support
12366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12367 archive_expsym_cmds=''
12368 ;;
12369 m68k)
12370 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)'
12371 hardcode_libdir_flag_spec='-L$libdir'
12372 hardcode_minus_L=yes
12373 ;;
12374 esac
12375 ;;
12376
12377 beos*)
12378 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12379 allow_undefined_flag=unsupported
12380 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12381 # support --undefined. This deserves some investigation. FIXME
12382 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12383 else
12384 ld_shlibs=no
12385 fi
12386 ;;
12387
12388 cygwin* | mingw* | pw32* | cegcc*)
12389 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12390 # as there is no search path for DLLs.
12391 hardcode_libdir_flag_spec='-L$libdir'
12392 export_dynamic_flag_spec='$wl--export-all-symbols'
12393 allow_undefined_flag=unsupported
12394 always_export_symbols=no
12395 enable_shared_with_static_runtimes=yes
12396 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'
12397 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12398
12399 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12401 # If the export-symbols file already is a .def file, use it as
12402 # is; otherwise, prepend EXPORTS...
12403 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12404 cp $export_symbols $output_objdir/$soname.def;
12405 else
12406 echo EXPORTS > $output_objdir/$soname.def;
12407 cat $export_symbols >> $output_objdir/$soname.def;
12408 fi~
12409 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12410 else
12411 ld_shlibs=no
12412 fi
12413 ;;
12414
12415 haiku*)
12416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12417 link_all_deplibs=yes
12418 ;;
12419
12420 os2*)
12421 hardcode_libdir_flag_spec='-L$libdir'
12422 hardcode_minus_L=yes
12423 allow_undefined_flag=unsupported
12424 shrext_cmds=.dll
12425 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12426 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12427 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12428 $ECHO EXPORTS >> $output_objdir/$libname.def~
12429 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12430 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12431 emximp -o $lib $output_objdir/$libname.def'
12432 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12433 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12434 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12435 $ECHO EXPORTS >> $output_objdir/$libname.def~
12436 prefix_cmds="$SED"~
12437 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12438 prefix_cmds="$prefix_cmds -e 1d";
12439 fi~
12440 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12441 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12442 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12443 emximp -o $lib $output_objdir/$libname.def'
12444 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12445 enable_shared_with_static_runtimes=yes
12446 ;;
12447
12448 interix[3-9]*)
12449 hardcode_direct=no
12450 hardcode_shlibpath_var=no
12451 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12452 export_dynamic_flag_spec='$wl-E'
12453 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12454 # Instead, shared libraries are loaded at an image base (0x10000000 by
12455 # default) and relocated if they conflict, which is a slow very memory
12456 # consuming and fragmenting process. To avoid this, we pick a random,
12457 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12458 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12459 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12460 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'
12461 ;;
12462
12463 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12464 tmp_diet=no
12465 if test linux-dietlibc = "$host_os"; then
12466 case $cc_basename in
12467 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12468 esac
12469 fi
12470 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12471 && test no = "$tmp_diet"
12472 then
12473 tmp_addflag=' $pic_flag'
12474 tmp_sharedflag='-shared'
12475 case $cc_basename,$host_cpu in
12476 pgcc*) # Portland Group C compiler
12477 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'
12478 tmp_addflag=' $pic_flag'
12479 ;;
12480 pgf77* | pgf90* | pgf95* | pgfortran*)
12481 # Portland Group f77 and f90 compilers
12482 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'
12483 tmp_addflag=' $pic_flag -Mnomain' ;;
12484 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12485 tmp_addflag=' -i_dynamic' ;;
12486 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12487 tmp_addflag=' -i_dynamic -nofor_main' ;;
12488 ifc* | ifort*) # Intel Fortran compiler
12489 tmp_addflag=' -nofor_main' ;;
12490 lf95*) # Lahey Fortran 8.1
12491 whole_archive_flag_spec=
12492 tmp_sharedflag='--shared' ;;
12493 nagfor*) # NAGFOR 5.3
12494 tmp_sharedflag='-Wl,-shared' ;;
12495 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12496 tmp_sharedflag='-qmkshrobj'
12497 tmp_addflag= ;;
12498 nvcc*) # Cuda Compiler Driver 2.2
12499 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'
12500 compiler_needs_object=yes
12501 ;;
12502 esac
12503 case `$CC -V 2>&1 | sed 5q` in
12504 *Sun\ C*) # Sun C 5.9
12505 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'
12506 compiler_needs_object=yes
12507 tmp_sharedflag='-G' ;;
12508 *Sun\ F*) # Sun Fortran 8.3
12509 tmp_sharedflag='-G' ;;
12510 esac
12511 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12512
12513 if test yes = "$supports_anon_versioning"; then
12514 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12515 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12516 echo "local: *; };" >> $output_objdir/$libname.ver~
12517 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12518 fi
12519
12520 case $cc_basename in
12521 tcc*)
12522 export_dynamic_flag_spec='-rdynamic'
12523 ;;
12524 xlf* | bgf* | bgxlf* | mpixlf*)
12525 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12526 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12527 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12528 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12529 if test yes = "$supports_anon_versioning"; then
12530 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12532 echo "local: *; };" >> $output_objdir/$libname.ver~
12533 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12534 fi
12535 ;;
12536 esac
12537 else
12538 ld_shlibs=no
12539 fi
12540 ;;
12541
12542 netbsd* | netbsdelf*-gnu)
12543 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12544 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12545 wlarc=
12546 else
12547 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12548 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12549 fi
12550 ;;
12551
12552 solaris*)
12553 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12554 ld_shlibs=no
12555 cat <<_LT_EOF 1>&2
12556
12557*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12558*** create shared libraries on Solaris systems. Therefore, libtool
12559*** is disabling shared libraries support. We urge you to upgrade GNU
12560*** binutils to release 2.9.1 or newer. Another option is to modify
12561*** your PATH or compiler configuration so that the native linker is
12562*** used, and then restart.
12563
12564_LT_EOF
12565 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12566 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12567 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12568 else
12569 ld_shlibs=no
12570 fi
12571 ;;
12572
12573 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12574 case `$LD -v 2>&1` in
12575 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12576 ld_shlibs=no
12577 cat <<_LT_EOF 1>&2
12578
12579*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12580*** reliably create shared libraries on SCO systems. Therefore, libtool
12581*** is disabling shared libraries support. We urge you to upgrade GNU
12582*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12583*** your PATH or compiler configuration so that the native linker is
12584*** used, and then restart.
12585
12586_LT_EOF
12587 ;;
12588 *)
12589 # For security reasons, it is highly recommended that you always
12590 # use absolute paths for naming shared libraries, and exclude the
12591 # DT_RUNPATH tag from executables and libraries. But doing so
12592 # requires that you compile everything twice, which is a pain.
12593 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12594 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12596 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12597 else
12598 ld_shlibs=no
12599 fi
12600 ;;
12601 esac
12602 ;;
12603
12604 sunos4*)
12605 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12606 wlarc=
12607 hardcode_direct=yes
12608 hardcode_shlibpath_var=no
12609 ;;
12610
12611 *)
12612 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12613 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12614 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12615 else
12616 ld_shlibs=no
12617 fi
12618 ;;
12619 esac
12620
12621 if test no = "$ld_shlibs"; then
12622 runpath_var=
12623 hardcode_libdir_flag_spec=
12624 export_dynamic_flag_spec=
12625 whole_archive_flag_spec=
12626 fi
12627 else
12628 # PORTME fill in a description of your system's linker (not GNU ld)
12629 case $host_os in
12630 aix3*)
12631 allow_undefined_flag=unsupported
12632 always_export_symbols=yes
12633 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'
12634 # Note: this linker hardcodes the directories in LIBPATH if there
12635 # are no directories specified by -L.
12636 hardcode_minus_L=yes
12637 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12638 # Neither direct hardcoding nor static linking is supported with a
12639 # broken collect2.
12640 hardcode_direct=unsupported
12641 fi
12642 ;;
12643
12644 aix[4-9]*)
12645 if test ia64 = "$host_cpu"; then
12646 # On IA64, the linker does run time linking by default, so we don't
12647 # have to do anything special.
12648 aix_use_runtimelinking=no
12649 exp_sym_flag='-Bexport'
12650 no_entry_flag=
12651 else
12652 # If we're using GNU nm, then we don't want the "-C" option.
12653 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12654 # Without the "-l" option, or with the "-B" option, AIX nm treats
12655 # weak defined symbols like other global defined symbols, whereas
12656 # GNU nm marks them as "W".
12657 # While the 'weak' keyword is ignored in the Export File, we need
12658 # it in the Import File for the 'aix-soname' feature, so we have
12659 # to replace the "-B" option with "-P" for AIX nm.
12660 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12661 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'
12662 else
12663 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'
12664 fi
12665 aix_use_runtimelinking=no
12666
12667 # Test if we are trying to use run time linking or normal
12668 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12669 # have runtime linking enabled, and use it for executables.
12670 # For shared libraries, we enable/disable runtime linking
12671 # depending on the kind of the shared library created -
12672 # when "with_aix_soname,aix_use_runtimelinking" is:
12673 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12674 # "aix,yes" lib.so shared, rtl:yes, for executables
12675 # lib.a static archive
12676 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12677 # lib.a(lib.so.V) shared, rtl:no, for executables
12678 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12679 # lib.a(lib.so.V) shared, rtl:no
12680 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12681 # lib.a static archive
12682 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12683 for ld_flag in $LDFLAGS; do
12684 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12685 aix_use_runtimelinking=yes
12686 break
12687 fi
12688 done
12689 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12690 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12691 # so we don't have lib.a shared libs to link our executables.
12692 # We have to force runtime linking in this case.
12693 aix_use_runtimelinking=yes
12694 LDFLAGS="$LDFLAGS -Wl,-brtl"
12695 fi
12696 ;;
12697 esac
12698
12699 exp_sym_flag='-bexport'
12700 no_entry_flag='-bnoentry'
12701 fi
12702
12703 # When large executables or shared objects are built, AIX ld can
12704 # have problems creating the table of contents. If linking a library
12705 # or program results in "error TOC overflow" add -mminimal-toc to
12706 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12707 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12708
12709 archive_cmds=''
12710 hardcode_direct=yes
12711 hardcode_direct_absolute=yes
12712 hardcode_libdir_separator=':'
12713 link_all_deplibs=yes
12714 file_list_spec='$wl-f,'
12715 case $with_aix_soname,$aix_use_runtimelinking in
12716 aix,*) ;; # traditional, no import file
12717 svr4,* | *,yes) # use import file
12718 # The Import File defines what to hardcode.
12719 hardcode_direct=no
12720 hardcode_direct_absolute=no
12721 ;;
12722 esac
12723
12724 if test yes = "$GCC"; then
12725 case $host_os in aix4.[012]|aix4.[012].*)
12726 # We only want to do this on AIX 4.2 and lower, the check
12727 # below for broken collect2 doesn't work under 4.3+
12728 collect2name=`$CC -print-prog-name=collect2`
12729 if test -f "$collect2name" &&
12730 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12731 then
12732 # We have reworked collect2
12733 :
12734 else
12735 # We have old collect2
12736 hardcode_direct=unsupported
12737 # It fails to find uninstalled libraries when the uninstalled
12738 # path is not listed in the libpath. Setting hardcode_minus_L
12739 # to unsupported forces relinking
12740 hardcode_minus_L=yes
12741 hardcode_libdir_flag_spec='-L$libdir'
12742 hardcode_libdir_separator=
12743 fi
12744 ;;
12745 esac
12746 shared_flag='-shared'
12747 if test yes = "$aix_use_runtimelinking"; then
12748 shared_flag="$shared_flag "'$wl-G'
12749 fi
12750 # Need to ensure runtime linking is disabled for the traditional
12751 # shared library, or the linker may eventually find shared libraries
12752 # /with/ Import File - we do not want to mix them.
12753 shared_flag_aix='-shared'
12754 shared_flag_svr4='-shared $wl-G'
12755 else
12756 # not using gcc
12757 if test ia64 = "$host_cpu"; then
12758 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12759 # chokes on -Wl,-G. The following line is correct:
12760 shared_flag='-G'
12761 else
12762 if test yes = "$aix_use_runtimelinking"; then
12763 shared_flag='$wl-G'
12764 else
12765 shared_flag='$wl-bM:SRE'
12766 fi
12767 shared_flag_aix='$wl-bM:SRE'
12768 shared_flag_svr4='$wl-G'
12769 fi
12770 fi
12771
12772 export_dynamic_flag_spec='$wl-bexpall'
12773 # It seems that -bexpall does not export symbols beginning with
12774 # underscore (_), so it is better to generate a list of symbols to export.
12775 always_export_symbols=yes
12776 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12777 # Warning - without using the other runtime loading flags (-brtl),
12778 # -berok will link without error, but may produce a broken library.
12779 allow_undefined_flag='-berok'
12780 # Determine the default libpath from the value encoded in an
12781 # empty executable.
12782 if test set = "${lt_cv_aix_libpath+set}"; then
12783 aix_libpath=$lt_cv_aix_libpath
12784else
12785 if ${lt_cv_aix_libpath_+:} false; then :
12786 $as_echo_n "(cached) " >&6
12787else
12788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12789/* end confdefs.h. */
12790
12791int main (void)
12792{
12793
12794 ;
12795 return 0;
12796}
12797_ACEOF
12798if ac_fn_c_try_link "$LINENO"; then :
12799
12800 lt_aix_libpath_sed='
12801 /Import File Strings/,/^$/ {
12802 /^0/ {
12803 s/^0 *\([^ ]*\) *$/\1/
12804 p
12805 }
12806 }'
12807 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12808 # Check for a 64-bit object if we didn't find anything.
12809 if test -z "$lt_cv_aix_libpath_"; then
12810 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12811 fi
12812fi
12813rm -f core conftest.err conftest.$ac_objext \
12814 conftest$ac_exeext conftest.$ac_ext
12815 if test -z "$lt_cv_aix_libpath_"; then
12816 lt_cv_aix_libpath_=/usr/lib:/lib
12817 fi
12818
12819fi
12820
12821 aix_libpath=$lt_cv_aix_libpath_
12822fi
12823
12824 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12825 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
12826 else
12827 if test ia64 = "$host_cpu"; then
12828 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12829 allow_undefined_flag="-z nodefs"
12830 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"
12831 else
12832 # Determine the default libpath from the value encoded in an
12833 # empty executable.
12834 if test set = "${lt_cv_aix_libpath+set}"; then
12835 aix_libpath=$lt_cv_aix_libpath
12836else
12837 if ${lt_cv_aix_libpath_+:} false; then :
12838 $as_echo_n "(cached) " >&6
12839else
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841/* end confdefs.h. */
12842
12843int main (void)
12844{
12845
12846 ;
12847 return 0;
12848}
12849_ACEOF
12850if ac_fn_c_try_link "$LINENO"; then :
12851
12852 lt_aix_libpath_sed='
12853 /Import File Strings/,/^$/ {
12854 /^0/ {
12855 s/^0 *\([^ ]*\) *$/\1/
12856 p
12857 }
12858 }'
12859 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12860 # Check for a 64-bit object if we didn't find anything.
12861 if test -z "$lt_cv_aix_libpath_"; then
12862 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12863 fi
12864fi
12865rm -f core conftest.err conftest.$ac_objext \
12866 conftest$ac_exeext conftest.$ac_ext
12867 if test -z "$lt_cv_aix_libpath_"; then
12868 lt_cv_aix_libpath_=/usr/lib:/lib
12869 fi
12870
12871fi
12872
12873 aix_libpath=$lt_cv_aix_libpath_
12874fi
12875
12876 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12877 # Warning - without using the other run time loading flags,
12878 # -berok will link without error, but may produce a broken library.
12879 no_undefined_flag=' $wl-bernotok'
12880 allow_undefined_flag=' $wl-berok'
12881 if test yes = "$with_gnu_ld"; then
12882 # We only use this code for GNU lds that support --whole-archive.
12883 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12884 else
12885 # Exported symbols can be pulled into shared objects from archives
12886 whole_archive_flag_spec='$convenience'
12887 fi
12888 archive_cmds_need_lc=yes
12889 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12890 # -brtl affects multiple linker settings, -berok does not and is overridden later
12891 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12892 if test svr4 != "$with_aix_soname"; then
12893 # This is similar to how AIX traditionally builds its shared libraries.
12894 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'
12895 fi
12896 if test aix != "$with_aix_soname"; then
12897 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'
12898 else
12899 # used by -dlpreopen to get the symbols
12900 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12901 fi
12902 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12903 fi
12904 fi
12905 ;;
12906
12907 amigaos*)
12908 case $host_cpu in
12909 powerpc)
12910 # see comment about AmigaOS4 .so support
12911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12912 archive_expsym_cmds=''
12913 ;;
12914 m68k)
12915 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)'
12916 hardcode_libdir_flag_spec='-L$libdir'
12917 hardcode_minus_L=yes
12918 ;;
12919 esac
12920 ;;
12921
12922 bsdi[45]*)
12923 export_dynamic_flag_spec=-rdynamic
12924 ;;
12925
12926 cygwin* | mingw* | pw32* | cegcc*)
12927 # When not using gcc, we currently assume that we are using
12928 # Microsoft Visual C++.
12929 # hardcode_libdir_flag_spec is actually meaningless, as there is
12930 # no search path for DLLs.
12931 case $cc_basename in
12932 cl*)
12933 # Native MSVC
12934 hardcode_libdir_flag_spec=' '
12935 allow_undefined_flag=unsupported
12936 always_export_symbols=yes
12937 file_list_spec='@'
12938 # Tell ltmain to make .lib files, not .a files.
12939 libext=lib
12940 # Tell ltmain to make .dll files, not .so files.
12941 shrext_cmds=.dll
12942 # FIXME: Setting linknames here is a bad hack.
12943 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12944 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12945 cp "$export_symbols" "$output_objdir/$soname.def";
12946 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12947 else
12948 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12949 fi~
12950 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12951 linknames='
12952 # The linker will not automatically build a static lib if we build a DLL.
12953 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12954 enable_shared_with_static_runtimes=yes
12955 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12956 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12957 # Don't use ranlib
12958 old_postinstall_cmds='chmod 644 $oldlib'
12959 postlink_cmds='lt_outputfile="@OUTPUT@"~
12960 lt_tool_outputfile="@TOOL_OUTPUT@"~
12961 case $lt_outputfile in
12962 *.exe|*.EXE) ;;
12963 *)
12964 lt_outputfile=$lt_outputfile.exe
12965 lt_tool_outputfile=$lt_tool_outputfile.exe
12966 ;;
12967 esac~
12968 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12969 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12970 $RM "$lt_outputfile.manifest";
12971 fi'
12972 ;;
12973 *)
12974 # Assume MSVC wrapper
12975 hardcode_libdir_flag_spec=' '
12976 allow_undefined_flag=unsupported
12977 # Tell ltmain to make .lib files, not .a files.
12978 libext=lib
12979 # Tell ltmain to make .dll files, not .so files.
12980 shrext_cmds=.dll
12981 # FIXME: Setting linknames here is a bad hack.
12982 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12983 # The linker will automatically build a .lib file if we build a DLL.
12984 old_archive_from_new_cmds='true'
12985 # FIXME: Should let the user specify the lib program.
12986 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12987 enable_shared_with_static_runtimes=yes
12988 ;;
12989 esac
12990 ;;
12991
12992 darwin* | rhapsody*)
12993
12994
12995 archive_cmds_need_lc=no
12996 hardcode_direct=no
12997 hardcode_automatic=yes
12998 hardcode_shlibpath_var=unsupported
12999 if test yes = "$lt_cv_ld_force_load"; then
13000 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\"`'
13001
13002 else
13003 whole_archive_flag_spec=''
13004 fi
13005 link_all_deplibs=yes
13006 allow_undefined_flag=$_lt_dar_allow_undefined
13007 case $cc_basename in
13008 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13009 *) _lt_dar_can_shared=$GCC ;;
13010 esac
13011 if test yes = "$_lt_dar_can_shared"; then
13012 output_verbose_link_cmd=func_echo_all
13013 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13014 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13015 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"
13016 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"
13017
13018 else
13019 ld_shlibs=no
13020 fi
13021
13022 ;;
13023
13024 dgux*)
13025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13026 hardcode_libdir_flag_spec='-L$libdir'
13027 hardcode_shlibpath_var=no
13028 ;;
13029
13030 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13031 # support. Future versions do this automatically, but an explicit c++rt0.o
13032 # does not break anything, and helps significantly (at the cost of a little
13033 # extra space).
13034 freebsd2.2*)
13035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13036 hardcode_libdir_flag_spec='-R$libdir'
13037 hardcode_direct=yes
13038 hardcode_shlibpath_var=no
13039 ;;
13040
13041 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13042 freebsd2.*)
13043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13044 hardcode_direct=yes
13045 hardcode_minus_L=yes
13046 hardcode_shlibpath_var=no
13047 ;;
13048
13049 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13050 freebsd* | dragonfly*)
13051 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13052 hardcode_libdir_flag_spec='-R$libdir'
13053 hardcode_direct=yes
13054 hardcode_shlibpath_var=no
13055 ;;
13056
13057 hpux9*)
13058 if test yes = "$GCC"; then
13059 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'
13060 else
13061 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'
13062 fi
13063 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13064 hardcode_libdir_separator=:
13065 hardcode_direct=yes
13066
13067 # hardcode_minus_L: Not really in the search PATH,
13068 # but as the default location of the library.
13069 hardcode_minus_L=yes
13070 export_dynamic_flag_spec='$wl-E'
13071 ;;
13072
13073 hpux10*)
13074 if test yes,no = "$GCC,$with_gnu_ld"; then
13075 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13076 else
13077 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13078 fi
13079 if test no = "$with_gnu_ld"; then
13080 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13081 hardcode_libdir_separator=:
13082 hardcode_direct=yes
13083 hardcode_direct_absolute=yes
13084 export_dynamic_flag_spec='$wl-E'
13085 # hardcode_minus_L: Not really in the search PATH,
13086 # but as the default location of the library.
13087 hardcode_minus_L=yes
13088 fi
13089 ;;
13090
13091 hpux11*)
13092 if test yes,no = "$GCC,$with_gnu_ld"; then
13093 case $host_cpu in
13094 hppa*64*)
13095 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13096 ;;
13097 ia64*)
13098 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13099 ;;
13100 *)
13101 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13102 ;;
13103 esac
13104 else
13105 case $host_cpu in
13106 hppa*64*)
13107 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13108 ;;
13109 ia64*)
13110 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13111 ;;
13112 *)
13113
13114 # Older versions of the 11.00 compiler do not understand -b yet
13115 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13117$as_echo_n "checking if $CC understands -b... " >&6; }
13118if ${lt_cv_prog_compiler__b+:} false; then :
13119 $as_echo_n "(cached) " >&6
13120else
13121 lt_cv_prog_compiler__b=no
13122 save_LDFLAGS=$LDFLAGS
13123 LDFLAGS="$LDFLAGS -b"
13124 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13126 # The linker can only warn and ignore the option if not recognized
13127 # So say no if there are warnings
13128 if test -s conftest.err; then
13129 # Append any errors to the config.log.
13130 cat conftest.err 1>&5
13131 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13133 if diff conftest.exp conftest.er2 >/dev/null; then
13134 lt_cv_prog_compiler__b=yes
13135 fi
13136 else
13137 lt_cv_prog_compiler__b=yes
13138 fi
13139 fi
13140 $RM -r conftest*
13141 LDFLAGS=$save_LDFLAGS
13142
13143fi
13144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13145$as_echo "$lt_cv_prog_compiler__b" >&6; }
13146
13147if test yes = "$lt_cv_prog_compiler__b"; then
13148 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13149else
13150 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13151fi
13152
13153 ;;
13154 esac
13155 fi
13156 if test no = "$with_gnu_ld"; then
13157 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13158 hardcode_libdir_separator=:
13159
13160 case $host_cpu in
13161 hppa*64*|ia64*)
13162 hardcode_direct=no
13163 hardcode_shlibpath_var=no
13164 ;;
13165 *)
13166 hardcode_direct=yes
13167 hardcode_direct_absolute=yes
13168 export_dynamic_flag_spec='$wl-E'
13169
13170 # hardcode_minus_L: Not really in the search PATH,
13171 # but as the default location of the library.
13172 hardcode_minus_L=yes
13173 ;;
13174 esac
13175 fi
13176 ;;
13177
13178 irix5* | irix6* | nonstopux*)
13179 if test yes = "$GCC"; then
13180 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'
13181 # Try to use the -exported_symbol ld option, if it does not
13182 # work, assume that -exports_file does not work either and
13183 # implicitly export all symbols.
13184 # This should be the same for all languages, so no per-tag cache variable.
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13186$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13187if ${lt_cv_irix_exported_symbol+:} false; then :
13188 $as_echo_n "(cached) " >&6
13189else
13190 save_LDFLAGS=$LDFLAGS
13191 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193/* end confdefs.h. */
13194int foo (void) { return 0; }
13195_ACEOF
13196if ac_fn_c_try_link "$LINENO"; then :
13197 lt_cv_irix_exported_symbol=yes
13198else
13199 lt_cv_irix_exported_symbol=no
13200fi
13201rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 LDFLAGS=$save_LDFLAGS
13204fi
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13206$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13207 if test yes = "$lt_cv_irix_exported_symbol"; then
13208 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'
13209 fi
13210 link_all_deplibs=no
13211 else
13212 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'
13213 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'
13214 fi
13215 archive_cmds_need_lc='no'
13216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13217 hardcode_libdir_separator=:
13218 inherit_rpath=yes
13219 link_all_deplibs=yes
13220 ;;
13221
13222 linux*)
13223 case $cc_basename in
13224 tcc*)
13225 # Fabrice Bellard et al's Tiny C Compiler
13226 ld_shlibs=yes
13227 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13228 ;;
13229 esac
13230 ;;
13231
13232 netbsd* | netbsdelf*-gnu)
13233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13235 else
13236 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13237 fi
13238 hardcode_libdir_flag_spec='-R$libdir'
13239 hardcode_direct=yes
13240 hardcode_shlibpath_var=no
13241 ;;
13242
13243 newsos6)
13244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13245 hardcode_direct=yes
13246 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13247 hardcode_libdir_separator=:
13248 hardcode_shlibpath_var=no
13249 ;;
13250
13251 *nto* | *qnx*)
13252 ;;
13253
13254 openbsd* | bitrig*)
13255 if test -f /usr/libexec/ld.so; then
13256 hardcode_direct=yes
13257 hardcode_shlibpath_var=no
13258 hardcode_direct_absolute=yes
13259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13261 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13262 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13263 export_dynamic_flag_spec='$wl-E'
13264 else
13265 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13266 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13267 fi
13268 else
13269 ld_shlibs=no
13270 fi
13271 ;;
13272
13273 os2*)
13274 hardcode_libdir_flag_spec='-L$libdir'
13275 hardcode_minus_L=yes
13276 allow_undefined_flag=unsupported
13277 shrext_cmds=.dll
13278 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13279 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13280 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13281 $ECHO EXPORTS >> $output_objdir/$libname.def~
13282 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13283 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13284 emximp -o $lib $output_objdir/$libname.def'
13285 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13286 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13287 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13288 $ECHO EXPORTS >> $output_objdir/$libname.def~
13289 prefix_cmds="$SED"~
13290 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13291 prefix_cmds="$prefix_cmds -e 1d";
13292 fi~
13293 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13294 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13295 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13296 emximp -o $lib $output_objdir/$libname.def'
13297 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13298 enable_shared_with_static_runtimes=yes
13299 ;;
13300
13301 osf3*)
13302 if test yes = "$GCC"; then
13303 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13304 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'
13305 else
13306 allow_undefined_flag=' -expect_unresolved \*'
13307 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'
13308 fi
13309 archive_cmds_need_lc='no'
13310 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13311 hardcode_libdir_separator=:
13312 ;;
13313
13314 osf4* | osf5*) # as osf3* with the addition of -msym flag
13315 if test yes = "$GCC"; then
13316 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13317 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'
13318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13319 else
13320 allow_undefined_flag=' -expect_unresolved \*'
13321 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'
13322 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~
13323 $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'
13324
13325 # Both c and cxx compiler support -rpath directly
13326 hardcode_libdir_flag_spec='-rpath $libdir'
13327 fi
13328 archive_cmds_need_lc='no'
13329 hardcode_libdir_separator=:
13330 ;;
13331
13332 solaris*)
13333 no_undefined_flag=' -z defs'
13334 if test yes = "$GCC"; then
13335 wlarc='$wl'
13336 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13337 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13338 $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'
13339 else
13340 case `$CC -V 2>&1` in
13341 *"Compilers 5.0"*)
13342 wlarc=''
13343 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13344 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13345 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13346 ;;
13347 *)
13348 wlarc='$wl'
13349 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13350 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13351 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13352 ;;
13353 esac
13354 fi
13355 hardcode_libdir_flag_spec='-R$libdir'
13356 hardcode_shlibpath_var=no
13357 case $host_os in
13358 solaris2.[0-5] | solaris2.[0-5].*) ;;
13359 *)
13360 # The compiler driver will combine and reorder linker options,
13361 # but understands '-z linker_flag'. GCC discards it without '$wl',
13362 # but is careful enough not to reorder.
13363 # Supported since Solaris 2.6 (maybe 2.5.1?)
13364 if test yes = "$GCC"; then
13365 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13366 else
13367 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13368 fi
13369 ;;
13370 esac
13371 link_all_deplibs=yes
13372 ;;
13373
13374 sunos4*)
13375 if test sequent = "$host_vendor"; then
13376 # Use $CC to link under sequent, because it throws in some extra .o
13377 # files that make .init and .fini sections work.
13378 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13379 else
13380 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13381 fi
13382 hardcode_libdir_flag_spec='-L$libdir'
13383 hardcode_direct=yes
13384 hardcode_minus_L=yes
13385 hardcode_shlibpath_var=no
13386 ;;
13387
13388 sysv4)
13389 case $host_vendor in
13390 sni)
13391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13392 hardcode_direct=yes # is this really true???
13393 ;;
13394 siemens)
13395 ## LD is ld it makes a PLAMLIB
13396 ## CC just makes a GrossModule.
13397 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13398 reload_cmds='$CC -r -o $output$reload_objs'
13399 hardcode_direct=no
13400 ;;
13401 motorola)
13402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13403 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13404 ;;
13405 esac
13406 runpath_var='LD_RUN_PATH'
13407 hardcode_shlibpath_var=no
13408 ;;
13409
13410 sysv4.3*)
13411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13412 hardcode_shlibpath_var=no
13413 export_dynamic_flag_spec='-Bexport'
13414 ;;
13415
13416 sysv4*MP*)
13417 if test -d /usr/nec; then
13418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13419 hardcode_shlibpath_var=no
13420 runpath_var=LD_RUN_PATH
13421 hardcode_runpath_var=yes
13422 ld_shlibs=yes
13423 fi
13424 ;;
13425
13426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13427 no_undefined_flag='$wl-z,text'
13428 archive_cmds_need_lc=no
13429 hardcode_shlibpath_var=no
13430 runpath_var='LD_RUN_PATH'
13431
13432 if test yes = "$GCC"; then
13433 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13434 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13435 else
13436 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13437 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13438 fi
13439 ;;
13440
13441 sysv5* | sco3.2v5* | sco5v6*)
13442 # Note: We CANNOT use -z defs as we might desire, because we do not
13443 # link with -lc, and that would cause any symbols used from libc to
13444 # always be unresolved, which means just about no library would
13445 # ever link correctly. If we're not using GNU ld we use -z text
13446 # though, which does catch some bad symbols but isn't as heavy-handed
13447 # as -z defs.
13448 no_undefined_flag='$wl-z,text'
13449 allow_undefined_flag='$wl-z,nodefs'
13450 archive_cmds_need_lc=no
13451 hardcode_shlibpath_var=no
13452 hardcode_libdir_flag_spec='$wl-R,$libdir'
13453 hardcode_libdir_separator=':'
13454 link_all_deplibs=yes
13455 export_dynamic_flag_spec='$wl-Bexport'
13456 runpath_var='LD_RUN_PATH'
13457
13458 if test yes = "$GCC"; then
13459 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13460 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13461 else
13462 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464 fi
13465 ;;
13466
13467 uts4*)
13468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13469 hardcode_libdir_flag_spec='-L$libdir'
13470 hardcode_shlibpath_var=no
13471 ;;
13472
13473 *)
13474 ld_shlibs=no
13475 ;;
13476 esac
13477
13478 if test sni = "$host_vendor"; then
13479 case $host in
13480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13481 export_dynamic_flag_spec='$wl-Blargedynsym'
13482 ;;
13483 esac
13484 fi
13485 fi
13486
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13488$as_echo "$ld_shlibs" >&6; }
13489test no = "$ld_shlibs" && can_build_shared=no
13490
13491with_gnu_ld=$with_gnu_ld
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507#
13508# Do we need to explicitly link libc?
13509#
13510case "x$archive_cmds_need_lc" in
13511x|xyes)
13512 # Assume -lc should be added
13513 archive_cmds_need_lc=yes
13514
13515 if test yes,yes = "$GCC,$enable_shared"; then
13516 case $archive_cmds in
13517 *'~'*)
13518 # FIXME: we may have to deal with multi-command sequences.
13519 ;;
13520 '$CC '*)
13521 # Test whether the compiler implicitly links with -lc since on some
13522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13523 # to ld, don't add -lc before -lgcc.
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13525$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13526if ${lt_cv_archive_cmds_need_lc+:} false; then :
13527 $as_echo_n "(cached) " >&6
13528else
13529 $RM conftest*
13530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13531
13532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13533 (eval $ac_compile) 2>&5
13534 ac_status=$?
13535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13536 test $ac_status = 0; } 2>conftest.err; then
13537 soname=conftest
13538 lib=conftest
13539 libobjs=conftest.$ac_objext
13540 deplibs=
13541 wl=$lt_prog_compiler_wl
13542 pic_flag=$lt_prog_compiler_pic
13543 compiler_flags=-v
13544 linker_flags=-v
13545 verstring=
13546 output_objdir=.
13547 libname=conftest
13548 lt_save_allow_undefined_flag=$allow_undefined_flag
13549 allow_undefined_flag=
13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13551 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13552 ac_status=$?
13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13554 test $ac_status = 0; }
13555 then
13556 lt_cv_archive_cmds_need_lc=no
13557 else
13558 lt_cv_archive_cmds_need_lc=yes
13559 fi
13560 allow_undefined_flag=$lt_save_allow_undefined_flag
13561 else
13562 cat conftest.err 1>&5
13563 fi
13564 $RM conftest*
13565
13566fi
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13568$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13569 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13570 ;;
13571 esac
13572 fi
13573 ;;
13574esac
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13728$as_echo_n "checking dynamic linker characteristics... " >&6; }
13729
13730if test yes = "$GCC"; then
13731 case $host_os in
13732 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13733 *) lt_awk_arg='/^libraries:/' ;;
13734 esac
13735 case $host_os in
13736 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13737 *) lt_sed_strip_eq='s|=/|/|g' ;;
13738 esac
13739 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13740 case $lt_search_path_spec in
13741 *\;*)
13742 # if the path contains ";" then we assume it to be the separator
13743 # otherwise default to the standard path separator (i.e. ":") - it is
13744 # assumed that no part of a normal pathname contains ";" but that should
13745 # okay in the real world where ";" in dirpaths is itself problematic.
13746 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13747 ;;
13748 *)
13749 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13750 ;;
13751 esac
13752 # Ok, now we have the path, separated by spaces, we can step through it
13753 # and add multilib dir if necessary...
13754 lt_tmp_lt_search_path_spec=
13755 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13756 # ...but if some path component already ends with the multilib dir we assume
13757 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13758 case "$lt_multi_os_dir; $lt_search_path_spec " in
13759 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13760 lt_multi_os_dir=
13761 ;;
13762 esac
13763 for lt_sys_path in $lt_search_path_spec; do
13764 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13765 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13766 elif test -n "$lt_multi_os_dir"; then
13767 test -d "$lt_sys_path" && \
13768 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13769 fi
13770 done
13771 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13772BEGIN {RS = " "; FS = "/|\n";} {
13773 lt_foo = "";
13774 lt_count = 0;
13775 for (lt_i = NF; lt_i > 0; lt_i--) {
13776 if ($lt_i != "" && $lt_i != ".") {
13777 if ($lt_i == "..") {
13778 lt_count++;
13779 } else {
13780 if (lt_count == 0) {
13781 lt_foo = "/" $lt_i lt_foo;
13782 } else {
13783 lt_count--;
13784 }
13785 }
13786 }
13787 }
13788 if (lt_foo != "") { lt_freq[lt_foo]++; }
13789 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13790}'`
13791 # AWK program above erroneously prepends '/' to C:/dos/paths
13792 # for these hosts.
13793 case $host_os in
13794 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13795 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13796 esac
13797 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13798else
13799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13800fi
13801library_names_spec=
13802libname_spec='lib$name'
13803soname_spec=
13804shrext_cmds=.so
13805postinstall_cmds=
13806postuninstall_cmds=
13807finish_cmds=
13808finish_eval=
13809shlibpath_var=
13810shlibpath_overrides_runpath=unknown
13811version_type=none
13812dynamic_linker="$host_os ld.so"
13813sys_lib_dlsearch_path_spec="/lib /usr/lib"
13814need_lib_prefix=unknown
13815hardcode_into_libs=no
13816
13817# when you set need_version to no, make sure it does not cause -set_version
13818# flags to be left without arguments
13819need_version=unknown
13820
13821
13822
13823case $host_os in
13824aix3*)
13825 version_type=linux # correct to gnu/linux during the next big refactor
13826 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13827 shlibpath_var=LIBPATH
13828
13829 # AIX 3 has no versioning support, so we append a major version to the name.
13830 soname_spec='$libname$release$shared_ext$major'
13831 ;;
13832
13833aix[4-9]*)
13834 version_type=linux # correct to gnu/linux during the next big refactor
13835 need_lib_prefix=no
13836 need_version=no
13837 hardcode_into_libs=yes
13838 if test ia64 = "$host_cpu"; then
13839 # AIX 5 supports IA64
13840 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13841 shlibpath_var=LD_LIBRARY_PATH
13842 else
13843 # With GCC up to 2.95.x, collect2 would create an import file
13844 # for dependence libraries. The import file would start with
13845 # the line '#! .'. This would cause the generated library to
13846 # depend on '.', always an invalid library. This was fixed in
13847 # development snapshots of GCC prior to 3.0.
13848 case $host_os in
13849 aix4 | aix4.[01] | aix4.[01].*)
13850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13851 echo ' yes '
13852 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13853 :
13854 else
13855 can_build_shared=no
13856 fi
13857 ;;
13858 esac
13859 # Using Import Files as archive members, it is possible to support
13860 # filename-based versioning of shared library archives on AIX. While
13861 # this would work for both with and without runtime linking, it will
13862 # prevent static linking of such archives. So we do filename-based
13863 # shared library versioning with .so extension only, which is used
13864 # when both runtime linking and shared linking is enabled.
13865 # Unfortunately, runtime linking may impact performance, so we do
13866 # not want this to be the default eventually. Also, we use the
13867 # versioned .so libs for executables only if there is the -brtl
13868 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13869 # To allow for filename-based versioning support, we need to create
13870 # libNAME.so.V as an archive file, containing:
13871 # *) an Import File, referring to the versioned filename of the
13872 # archive as well as the shared archive member, telling the
13873 # bitwidth (32 or 64) of that shared object, and providing the
13874 # list of exported symbols of that shared object, eventually
13875 # decorated with the 'weak' keyword
13876 # *) the shared object with the F_LOADONLY flag set, to really avoid
13877 # it being seen by the linker.
13878 # At run time we better use the real file rather than another symlink,
13879 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13880
13881 case $with_aix_soname,$aix_use_runtimelinking in
13882 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13883 # soname into executable. Probably we can add versioning support to
13884 # collect2, so additional links can be useful in future.
13885 aix,yes) # traditional libtool
13886 dynamic_linker='AIX unversionable lib.so'
13887 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13888 # instead of lib<name>.a to let people know that these are not
13889 # typical AIX shared libraries.
13890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13891 ;;
13892 aix,no) # traditional AIX only
13893 dynamic_linker='AIX lib.a(lib.so.V)'
13894 # We preserve .a as extension for shared libraries through AIX4.2
13895 # and later when we are not doing run time linking.
13896 library_names_spec='$libname$release.a $libname.a'
13897 soname_spec='$libname$release$shared_ext$major'
13898 ;;
13899 svr4,*) # full svr4 only
13900 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13901 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13902 # We do not specify a path in Import Files, so LIBPATH fires.
13903 shlibpath_overrides_runpath=yes
13904 ;;
13905 *,yes) # both, prefer svr4
13906 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13907 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13908 # unpreferred sharedlib libNAME.a needs extra handling
13909 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"'
13910 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"'
13911 # We do not specify a path in Import Files, so LIBPATH fires.
13912 shlibpath_overrides_runpath=yes
13913 ;;
13914 *,no) # both, prefer aix
13915 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13916 library_names_spec='$libname$release.a $libname.a'
13917 soname_spec='$libname$release$shared_ext$major'
13918 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13919 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)'
13920 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"'
13921 ;;
13922 esac
13923 shlibpath_var=LIBPATH
13924 fi
13925 ;;
13926
13927amigaos*)
13928 case $host_cpu in
13929 powerpc)
13930 # Since July 2007 AmigaOS4 officially supports .so libraries.
13931 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13933 ;;
13934 m68k)
13935 library_names_spec='$libname.ixlibrary $libname.a'
13936 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13937 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'
13938 ;;
13939 esac
13940 ;;
13941
13942beos*)
13943 library_names_spec='$libname$shared_ext'
13944 dynamic_linker="$host_os ld.so"
13945 shlibpath_var=LIBRARY_PATH
13946 ;;
13947
13948bsdi[45]*)
13949 version_type=linux # correct to gnu/linux during the next big refactor
13950 need_version=no
13951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13952 soname_spec='$libname$release$shared_ext$major'
13953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13954 shlibpath_var=LD_LIBRARY_PATH
13955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13957 # the default ld.so.conf also contains /usr/contrib/lib and
13958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13959 # libtool to hard-code these into programs
13960 ;;
13961
13962cygwin* | mingw* | pw32* | cegcc*)
13963 version_type=windows
13964 shrext_cmds=.dll
13965 need_version=no
13966 need_lib_prefix=no
13967
13968 case $GCC,$cc_basename in
13969 yes,*)
13970 # gcc
13971 library_names_spec='$libname.dll.a'
13972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13973 postinstall_cmds='base_file=`basename \$file`~
13974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13975 dldir=$destdir/`dirname \$dlpath`~
13976 test -d \$dldir || mkdir -p \$dldir~
13977 $install_prog $dir/$dlname \$dldir/$dlname~
13978 chmod a+x \$dldir/$dlname~
13979 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13980 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13981 fi'
13982 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13983 dlpath=$dir/\$dldll~
13984 $RM \$dlpath'
13985 shlibpath_overrides_runpath=yes
13986
13987 case $host_os in
13988 cygwin*)
13989 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13990 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13991
13992 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13993 ;;
13994 mingw* | cegcc*)
13995 # MinGW DLLs use traditional 'lib' prefix
13996 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13997 ;;
13998 pw32*)
13999 # pw32 DLLs use 'pw' prefix rather than 'lib'
14000 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14001 ;;
14002 esac
14003 dynamic_linker='Win32 ld.exe'
14004 ;;
14005
14006 *,cl*)
14007 # Native MSVC
14008 libname_spec='$name'
14009 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14010 library_names_spec='$libname.dll.lib'
14011
14012 case $build_os in
14013 mingw*)
14014 sys_lib_search_path_spec=
14015 lt_save_ifs=$IFS
14016 IFS=';'
14017 for lt_path in $LIB
14018 do
14019 IFS=$lt_save_ifs
14020 # Let DOS variable expansion print the short 8.3 style file name.
14021 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14022 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14023 done
14024 IFS=$lt_save_ifs
14025 # Convert to MSYS style.
14026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14027 ;;
14028 cygwin*)
14029 # Convert to unix form, then to dos form, then back to unix form
14030 # but this time dos style (no spaces!) so that the unix form looks
14031 # like /cygdrive/c/PROGRA~1:/cygdr...
14032 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14033 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14034 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14035 ;;
14036 *)
14037 sys_lib_search_path_spec=$LIB
14038 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14039 # It is most probably a Windows format PATH.
14040 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14041 else
14042 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14043 fi
14044 # FIXME: find the short name or the path components, as spaces are
14045 # common. (e.g. "Program Files" -> "PROGRA~1")
14046 ;;
14047 esac
14048
14049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14050 postinstall_cmds='base_file=`basename \$file`~
14051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14052 dldir=$destdir/`dirname \$dlpath`~
14053 test -d \$dldir || mkdir -p \$dldir~
14054 $install_prog $dir/$dlname \$dldir/$dlname'
14055 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14056 dlpath=$dir/\$dldll~
14057 $RM \$dlpath'
14058 shlibpath_overrides_runpath=yes
14059 dynamic_linker='Win32 link.exe'
14060 ;;
14061
14062 *)
14063 # Assume MSVC wrapper
14064 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14065 dynamic_linker='Win32 ld.exe'
14066 ;;
14067 esac
14068 # FIXME: first we should search . and the directory the executable is in
14069 shlibpath_var=PATH
14070 ;;
14071
14072darwin* | rhapsody*)
14073 dynamic_linker="$host_os dyld"
14074 version_type=darwin
14075 need_lib_prefix=no
14076 need_version=no
14077 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14078 soname_spec='$libname$release$major$shared_ext'
14079 shlibpath_overrides_runpath=yes
14080 shlibpath_var=DYLD_LIBRARY_PATH
14081 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14082
14083 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14084 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14085 ;;
14086
14087dgux*)
14088 version_type=linux # correct to gnu/linux during the next big refactor
14089 need_lib_prefix=no
14090 need_version=no
14091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14092 soname_spec='$libname$release$shared_ext$major'
14093 shlibpath_var=LD_LIBRARY_PATH
14094 ;;
14095
14096freebsd* | dragonfly*)
14097 # DragonFly does not have aout. When/if they implement a new
14098 # versioning mechanism, adjust this.
14099 if test -x /usr/bin/objformat; then
14100 objformat=`/usr/bin/objformat`
14101 else
14102 case $host_os in
14103 freebsd[23].*) objformat=aout ;;
14104 *) objformat=elf ;;
14105 esac
14106 fi
14107 version_type=freebsd-$objformat
14108 case $version_type in
14109 freebsd-elf*)
14110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14111 soname_spec='$libname$release$shared_ext$major'
14112 need_version=no
14113 need_lib_prefix=no
14114 ;;
14115 freebsd-*)
14116 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14117 need_version=yes
14118 ;;
14119 esac
14120 shlibpath_var=LD_LIBRARY_PATH
14121 case $host_os in
14122 freebsd2.*)
14123 shlibpath_overrides_runpath=yes
14124 ;;
14125 freebsd3.[01]* | freebsdelf3.[01]*)
14126 shlibpath_overrides_runpath=yes
14127 hardcode_into_libs=yes
14128 ;;
14129 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14130 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14131 shlibpath_overrides_runpath=no
14132 hardcode_into_libs=yes
14133 ;;
14134 *) # from 4.6 on, and DragonFly
14135 shlibpath_overrides_runpath=yes
14136 hardcode_into_libs=yes
14137 ;;
14138 esac
14139 ;;
14140
14141haiku*)
14142 version_type=linux # correct to gnu/linux during the next big refactor
14143 need_lib_prefix=no
14144 need_version=no
14145 dynamic_linker="$host_os runtime_loader"
14146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14147 soname_spec='$libname$release$shared_ext$major'
14148 shlibpath_var=LIBRARY_PATH
14149 shlibpath_overrides_runpath=no
14150 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14151 hardcode_into_libs=yes
14152 ;;
14153
14154hpux9* | hpux10* | hpux11*)
14155 # Give a soname corresponding to the major version so that dld.sl refuses to
14156 # link against other versions.
14157 version_type=sunos
14158 need_lib_prefix=no
14159 need_version=no
14160 case $host_cpu in
14161 ia64*)
14162 shrext_cmds='.so'
14163 hardcode_into_libs=yes
14164 dynamic_linker="$host_os dld.so"
14165 shlibpath_var=LD_LIBRARY_PATH
14166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14168 soname_spec='$libname$release$shared_ext$major'
14169 if test 32 = "$HPUX_IA64_MODE"; then
14170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14171 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14172 else
14173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14174 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14175 fi
14176 ;;
14177 hppa*64*)
14178 shrext_cmds='.sl'
14179 hardcode_into_libs=yes
14180 dynamic_linker="$host_os dld.sl"
14181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14184 soname_spec='$libname$release$shared_ext$major'
14185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14187 ;;
14188 *)
14189 shrext_cmds='.sl'
14190 dynamic_linker="$host_os dld.sl"
14191 shlibpath_var=SHLIB_PATH
14192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14194 soname_spec='$libname$release$shared_ext$major'
14195 ;;
14196 esac
14197 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14198 postinstall_cmds='chmod 555 $lib'
14199 # or fails outright, so override atomically:
14200 install_override_mode=555
14201 ;;
14202
14203interix[3-9]*)
14204 version_type=linux # correct to gnu/linux during the next big refactor
14205 need_lib_prefix=no
14206 need_version=no
14207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14208 soname_spec='$libname$release$shared_ext$major'
14209 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14210 shlibpath_var=LD_LIBRARY_PATH
14211 shlibpath_overrides_runpath=no
14212 hardcode_into_libs=yes
14213 ;;
14214
14215irix5* | irix6* | nonstopux*)
14216 case $host_os in
14217 nonstopux*) version_type=nonstopux ;;
14218 *)
14219 if test yes = "$lt_cv_prog_gnu_ld"; then
14220 version_type=linux # correct to gnu/linux during the next big refactor
14221 else
14222 version_type=irix
14223 fi ;;
14224 esac
14225 need_lib_prefix=no
14226 need_version=no
14227 soname_spec='$libname$release$shared_ext$major'
14228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14229 case $host_os in
14230 irix5* | nonstopux*)
14231 libsuff= shlibsuff=
14232 ;;
14233 *)
14234 case $LD in # libtool.m4 will add one of these switches to LD
14235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14236 libsuff= shlibsuff= libmagic=32-bit;;
14237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14238 libsuff=32 shlibsuff=N32 libmagic=N32;;
14239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14240 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14241 *) libsuff= shlibsuff= libmagic=never-match;;
14242 esac
14243 ;;
14244 esac
14245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14246 shlibpath_overrides_runpath=no
14247 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14248 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14249 hardcode_into_libs=yes
14250 ;;
14251
14252# No shared lib support for Linux oldld, aout, or coff.
14253linux*oldld* | linux*aout* | linux*coff*)
14254 dynamic_linker=no
14255 ;;
14256
14257linux*android*)
14258 version_type=none # Android doesn't support versioned libraries.
14259 need_lib_prefix=no
14260 need_version=no
14261 library_names_spec='$libname$release$shared_ext'
14262 soname_spec='$libname$release$shared_ext'
14263 finish_cmds=
14264 shlibpath_var=LD_LIBRARY_PATH
14265 shlibpath_overrides_runpath=yes
14266
14267 # This implies no fast_install, which is unacceptable.
14268 # Some rework will be needed to allow for fast_install
14269 # before this can be enabled.
14270 hardcode_into_libs=yes
14271
14272 dynamic_linker='Android linker'
14273 # Don't embed -rpath directories since the linker doesn't support them.
14274 hardcode_libdir_flag_spec='-L$libdir'
14275 ;;
14276
14277# This must be glibc/ELF.
14278linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14279 version_type=linux # correct to gnu/linux during the next big refactor
14280 need_lib_prefix=no
14281 need_version=no
14282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14283 soname_spec='$libname$release$shared_ext$major'
14284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14285 shlibpath_var=LD_LIBRARY_PATH
14286 shlibpath_overrides_runpath=no
14287
14288 # Some binutils ld are patched to set DT_RUNPATH
14289 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14290 $as_echo_n "(cached) " >&6
14291else
14292 lt_cv_shlibpath_overrides_runpath=no
14293 save_LDFLAGS=$LDFLAGS
14294 save_libdir=$libdir
14295 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14296 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298/* end confdefs.h. */
14299
14300int main (void)
14301{
14302
14303 ;
14304 return 0;
14305}
14306_ACEOF
14307if ac_fn_c_try_link "$LINENO"; then :
14308 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14309 lt_cv_shlibpath_overrides_runpath=yes
14310fi
14311fi
14312rm -f core conftest.err conftest.$ac_objext \
14313 conftest$ac_exeext conftest.$ac_ext
14314 LDFLAGS=$save_LDFLAGS
14315 libdir=$save_libdir
14316
14317fi
14318
14319 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14320
14321 # This implies no fast_install, which is unacceptable.
14322 # Some rework will be needed to allow for fast_install
14323 # before this can be enabled.
14324 hardcode_into_libs=yes
14325
14326 # Ideally, we could use ldconfig to report *all* directores which are
14327 # searched for libraries, however this is still not possible. Aside from not
14328 # being certain /sbin/ldconfig is available, command
14329 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14330 # even though it is searched at run-time. Try to do the best guess by
14331 # appending ld.so.conf contents (and includes) to the search path.
14332 if test -f /etc/ld.so.conf; then
14333 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' ' '`
14334 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14335 fi
14336
14337 # We used to test for /lib/ld.so.1 and disable shared libraries on
14338 # powerpc, because MkLinux only supported shared libraries with the
14339 # GNU dynamic linker. Since this was broken with cross compilers,
14340 # most powerpc-linux boxes support dynamic linking these days and
14341 # people can always --disable-shared, the test was removed, and we
14342 # assume the GNU/Linux dynamic linker is in use.
14343 dynamic_linker='GNU/Linux ld.so'
14344 ;;
14345
14346netbsdelf*-gnu)
14347 version_type=linux
14348 need_lib_prefix=no
14349 need_version=no
14350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14351 soname_spec='${libname}${release}${shared_ext}$major'
14352 shlibpath_var=LD_LIBRARY_PATH
14353 shlibpath_overrides_runpath=no
14354 hardcode_into_libs=yes
14355 dynamic_linker='NetBSD ld.elf_so'
14356 ;;
14357
14358netbsd*)
14359 version_type=sunos
14360 need_lib_prefix=no
14361 need_version=no
14362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14363 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14365 dynamic_linker='NetBSD (a.out) ld.so'
14366 else
14367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14368 soname_spec='$libname$release$shared_ext$major'
14369 dynamic_linker='NetBSD ld.elf_so'
14370 fi
14371 shlibpath_var=LD_LIBRARY_PATH
14372 shlibpath_overrides_runpath=yes
14373 hardcode_into_libs=yes
14374 ;;
14375
14376newsos6)
14377 version_type=linux # correct to gnu/linux during the next big refactor
14378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14379 shlibpath_var=LD_LIBRARY_PATH
14380 shlibpath_overrides_runpath=yes
14381 ;;
14382
14383*nto* | *qnx*)
14384 version_type=qnx
14385 need_lib_prefix=no
14386 need_version=no
14387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14388 soname_spec='$libname$release$shared_ext$major'
14389 shlibpath_var=LD_LIBRARY_PATH
14390 shlibpath_overrides_runpath=no
14391 hardcode_into_libs=yes
14392 dynamic_linker='ldqnx.so'
14393 ;;
14394
14395openbsd* | bitrig*)
14396 version_type=sunos
14397 sys_lib_dlsearch_path_spec=/usr/lib
14398 need_lib_prefix=no
14399 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14400 need_version=no
14401 else
14402 need_version=yes
14403 fi
14404 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14406 shlibpath_var=LD_LIBRARY_PATH
14407 shlibpath_overrides_runpath=yes
14408 ;;
14409
14410os2*)
14411 libname_spec='$name'
14412 version_type=windows
14413 shrext_cmds=.dll
14414 need_version=no
14415 need_lib_prefix=no
14416 # OS/2 can only load a DLL with a base name of 8 characters or less.
14417 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14418 v=$($ECHO $release$versuffix | tr -d .-);
14419 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14420 $ECHO $n$v`$shared_ext'
14421 library_names_spec='${libname}_dll.$libext'
14422 dynamic_linker='OS/2 ld.exe'
14423 shlibpath_var=BEGINLIBPATH
14424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14426 postinstall_cmds='base_file=`basename \$file`~
14427 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14428 dldir=$destdir/`dirname \$dlpath`~
14429 test -d \$dldir || mkdir -p \$dldir~
14430 $install_prog $dir/$dlname \$dldir/$dlname~
14431 chmod a+x \$dldir/$dlname~
14432 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14433 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14434 fi'
14435 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14436 dlpath=$dir/\$dldll~
14437 $RM \$dlpath'
14438 ;;
14439
14440osf3* | osf4* | osf5*)
14441 version_type=osf
14442 need_lib_prefix=no
14443 need_version=no
14444 soname_spec='$libname$release$shared_ext$major'
14445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14446 shlibpath_var=LD_LIBRARY_PATH
14447 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14449 ;;
14450
14451rdos*)
14452 dynamic_linker=no
14453 ;;
14454
14455solaris*)
14456 version_type=linux # correct to gnu/linux during the next big refactor
14457 need_lib_prefix=no
14458 need_version=no
14459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14460 soname_spec='$libname$release$shared_ext$major'
14461 shlibpath_var=LD_LIBRARY_PATH
14462 shlibpath_overrides_runpath=yes
14463 hardcode_into_libs=yes
14464 # ldd complains unless libraries are executable
14465 postinstall_cmds='chmod +x $lib'
14466 ;;
14467
14468sunos4*)
14469 version_type=sunos
14470 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14471 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14472 shlibpath_var=LD_LIBRARY_PATH
14473 shlibpath_overrides_runpath=yes
14474 if test yes = "$with_gnu_ld"; then
14475 need_lib_prefix=no
14476 fi
14477 need_version=yes
14478 ;;
14479
14480sysv4 | sysv4.3*)
14481 version_type=linux # correct to gnu/linux during the next big refactor
14482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14483 soname_spec='$libname$release$shared_ext$major'
14484 shlibpath_var=LD_LIBRARY_PATH
14485 case $host_vendor in
14486 sni)
14487 shlibpath_overrides_runpath=no
14488 need_lib_prefix=no
14489 runpath_var=LD_RUN_PATH
14490 ;;
14491 siemens)
14492 need_lib_prefix=no
14493 ;;
14494 motorola)
14495 need_lib_prefix=no
14496 need_version=no
14497 shlibpath_overrides_runpath=no
14498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14499 ;;
14500 esac
14501 ;;
14502
14503sysv4*MP*)
14504 if test -d /usr/nec; then
14505 version_type=linux # correct to gnu/linux during the next big refactor
14506 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14507 soname_spec='$libname$shared_ext.$major'
14508 shlibpath_var=LD_LIBRARY_PATH
14509 fi
14510 ;;
14511
14512sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14513 version_type=sco
14514 need_lib_prefix=no
14515 need_version=no
14516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14517 soname_spec='$libname$release$shared_ext$major'
14518 shlibpath_var=LD_LIBRARY_PATH
14519 shlibpath_overrides_runpath=yes
14520 hardcode_into_libs=yes
14521 if test yes = "$with_gnu_ld"; then
14522 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14523 else
14524 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14525 case $host_os in
14526 sco3.2v5*)
14527 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14528 ;;
14529 esac
14530 fi
14531 sys_lib_dlsearch_path_spec='/usr/lib'
14532 ;;
14533
14534tpf*)
14535 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14536 version_type=linux # correct to gnu/linux during the next big refactor
14537 need_lib_prefix=no
14538 need_version=no
14539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 shlibpath_overrides_runpath=no
14542 hardcode_into_libs=yes
14543 ;;
14544
14545uts4*)
14546 version_type=linux # correct to gnu/linux during the next big refactor
14547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14548 soname_spec='$libname$release$shared_ext$major'
14549 shlibpath_var=LD_LIBRARY_PATH
14550 ;;
14551
14552*)
14553 dynamic_linker=no
14554 ;;
14555esac
14556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14557$as_echo "$dynamic_linker" >&6; }
14558test no = "$dynamic_linker" && can_build_shared=no
14559
14560variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14561if test yes = "$GCC"; then
14562 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14563fi
14564
14565if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14566 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14567fi
14568
14569if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14570 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14571fi
14572
14573# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14574configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14575
14576# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14577func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14578
14579# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14580configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14679$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14680hardcode_action=
14681if test -n "$hardcode_libdir_flag_spec" ||
14682 test -n "$runpath_var" ||
14683 test yes = "$hardcode_automatic"; then
14684
14685 # We can hardcode non-existent directories.
14686 if test no != "$hardcode_direct" &&
14687 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14688 # have to relink, otherwise we might link with an installed library
14689 # when we should be linking with a yet-to-be-installed one
14690 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14691 test no != "$hardcode_minus_L"; then
14692 # Linking always hardcodes the temporary library directory.
14693 hardcode_action=relink
14694 else
14695 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14696 hardcode_action=immediate
14697 fi
14698else
14699 # We cannot hardcode anything, or else we can only hardcode existing
14700 # directories.
14701 hardcode_action=unsupported
14702fi
14703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14704$as_echo "$hardcode_action" >&6; }
14705
14706if test relink = "$hardcode_action" ||
14707 test yes = "$inherit_rpath"; then
14708 # Fast installation is not supported
14709 enable_fast_install=no
14710elif test yes = "$shlibpath_overrides_runpath" ||
14711 test no = "$enable_shared"; then
14712 # Fast installation is not necessary
14713 enable_fast_install=needless
14714fi
14715
14716
14717
14718
14719
14720
14721 if test yes != "$enable_dlopen"; then
14722 enable_dlopen=unknown
14723 enable_dlopen_self=unknown
14724 enable_dlopen_self_static=unknown
14725else
14726 lt_cv_dlopen=no
14727 lt_cv_dlopen_libs=
14728
14729 case $host_os in
14730 beos*)
14731 lt_cv_dlopen=load_add_on
14732 lt_cv_dlopen_libs=
14733 lt_cv_dlopen_self=yes
14734 ;;
14735
14736 mingw* | pw32* | cegcc*)
14737 lt_cv_dlopen=LoadLibrary
14738 lt_cv_dlopen_libs=
14739 ;;
14740
14741 cygwin*)
14742 lt_cv_dlopen=dlopen
14743 lt_cv_dlopen_libs=
14744 ;;
14745
14746 darwin*)
14747 # if libdl is installed we need to link against it
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14749$as_echo_n "checking for dlopen in -ldl... " >&6; }
14750if ${ac_cv_lib_dl_dlopen+:} false; then :
14751 $as_echo_n "(cached) " >&6
14752else
14753 ac_check_lib_save_LIBS=$LIBS
14754LIBS="-ldl $LIBS"
14755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756/* end confdefs.h. */
14757
14758
14759#ifdef __cplusplus
14760extern "C"
14761#endif
14762char dlopen ();
14763int main (void)
14764{
14765return dlopen ();
14766 ;
14767 return 0;
14768}
14769_ACEOF
14770if ac_fn_c_try_link "$LINENO"; then :
14771 ac_cv_lib_dl_dlopen=yes
14772else
14773 ac_cv_lib_dl_dlopen=no
14774fi
14775rm -f core conftest.err conftest.$ac_objext \
14776 conftest$ac_exeext conftest.$ac_ext
14777LIBS=$ac_check_lib_save_LIBS
14778fi
14779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14780$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14781if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14782 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14783else
14784
14785 lt_cv_dlopen=dyld
14786 lt_cv_dlopen_libs=
14787 lt_cv_dlopen_self=yes
14788
14789fi
14790
14791 ;;
14792
14793 tpf*)
14794 # Don't try to run any link tests for TPF. We know it's impossible
14795 # because TPF is a cross-compiler, and we know how we open DSOs.
14796 lt_cv_dlopen=dlopen
14797 lt_cv_dlopen_libs=
14798 lt_cv_dlopen_self=no
14799 ;;
14800
14801 *)
14802 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14803if test "x$ac_cv_func_shl_load" = xyes; then :
14804 lt_cv_dlopen=shl_load
14805else
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14807$as_echo_n "checking for shl_load in -ldld... " >&6; }
14808if ${ac_cv_lib_dld_shl_load+:} false; then :
14809 $as_echo_n "(cached) " >&6
14810else
14811 ac_check_lib_save_LIBS=$LIBS
14812LIBS="-ldld $LIBS"
14813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814/* end confdefs.h. */
14815
14816
14817#ifdef __cplusplus
14818extern "C"
14819#endif
14820char shl_load ();
14821int main (void)
14822{
14823return shl_load ();
14824 ;
14825 return 0;
14826}
14827_ACEOF
14828if ac_fn_c_try_link "$LINENO"; then :
14829 ac_cv_lib_dld_shl_load=yes
14830else
14831 ac_cv_lib_dld_shl_load=no
14832fi
14833rm -f core conftest.err conftest.$ac_objext \
14834 conftest$ac_exeext conftest.$ac_ext
14835LIBS=$ac_check_lib_save_LIBS
14836fi
14837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14838$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14839if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14840 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14841else
14842 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14843if test "x$ac_cv_func_dlopen" = xyes; then :
14844 lt_cv_dlopen=dlopen
14845else
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14847$as_echo_n "checking for dlopen in -ldl... " >&6; }
14848if ${ac_cv_lib_dl_dlopen+:} false; then :
14849 $as_echo_n "(cached) " >&6
14850else
14851 ac_check_lib_save_LIBS=$LIBS
14852LIBS="-ldl $LIBS"
14853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854/* end confdefs.h. */
14855
14856
14857#ifdef __cplusplus
14858extern "C"
14859#endif
14860char dlopen ();
14861int main (void)
14862{
14863return dlopen ();
14864 ;
14865 return 0;
14866}
14867_ACEOF
14868if ac_fn_c_try_link "$LINENO"; then :
14869 ac_cv_lib_dl_dlopen=yes
14870else
14871 ac_cv_lib_dl_dlopen=no
14872fi
14873rm -f core conftest.err conftest.$ac_objext \
14874 conftest$ac_exeext conftest.$ac_ext
14875LIBS=$ac_check_lib_save_LIBS
14876fi
14877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14878$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14879if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14880 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14881else
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14883$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14884if ${ac_cv_lib_svld_dlopen+:} false; then :
14885 $as_echo_n "(cached) " >&6
14886else
14887 ac_check_lib_save_LIBS=$LIBS
14888LIBS="-lsvld $LIBS"
14889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890/* end confdefs.h. */
14891
14892
14893#ifdef __cplusplus
14894extern "C"
14895#endif
14896char dlopen ();
14897int main (void)
14898{
14899return dlopen ();
14900 ;
14901 return 0;
14902}
14903_ACEOF
14904if ac_fn_c_try_link "$LINENO"; then :
14905 ac_cv_lib_svld_dlopen=yes
14906else
14907 ac_cv_lib_svld_dlopen=no
14908fi
14909rm -f core conftest.err conftest.$ac_objext \
14910 conftest$ac_exeext conftest.$ac_ext
14911LIBS=$ac_check_lib_save_LIBS
14912fi
14913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14914$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14915if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14916 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14917else
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14919$as_echo_n "checking for dld_link in -ldld... " >&6; }
14920if ${ac_cv_lib_dld_dld_link+:} false; then :
14921 $as_echo_n "(cached) " >&6
14922else
14923 ac_check_lib_save_LIBS=$LIBS
14924LIBS="-ldld $LIBS"
14925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926/* end confdefs.h. */
14927
14928
14929#ifdef __cplusplus
14930extern "C"
14931#endif
14932char dld_link ();
14933int main (void)
14934{
14935return dld_link ();
14936 ;
14937 return 0;
14938}
14939_ACEOF
14940if ac_fn_c_try_link "$LINENO"; then :
14941 ac_cv_lib_dld_dld_link=yes
14942else
14943 ac_cv_lib_dld_dld_link=no
14944fi
14945rm -f core conftest.err conftest.$ac_objext \
14946 conftest$ac_exeext conftest.$ac_ext
14947LIBS=$ac_check_lib_save_LIBS
14948fi
14949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14950$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14951if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14952 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14953fi
14954
14955
14956fi
14957
14958
14959fi
14960
14961
14962fi
14963
14964
14965fi
14966
14967
14968fi
14969
14970 ;;
14971 esac
14972
14973 if test no = "$lt_cv_dlopen"; then
14974 enable_dlopen=no
14975 else
14976 enable_dlopen=yes
14977 fi
14978
14979 case $lt_cv_dlopen in
14980 dlopen)
14981 save_CPPFLAGS=$CPPFLAGS
14982 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14983
14984 save_LDFLAGS=$LDFLAGS
14985 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14986
14987 save_LIBS=$LIBS
14988 LIBS="$lt_cv_dlopen_libs $LIBS"
14989
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14991$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14992if ${lt_cv_dlopen_self+:} false; then :
14993 $as_echo_n "(cached) " >&6
14994else
14995 if test yes = "$cross_compiling"; then :
14996 lt_cv_dlopen_self=cross
14997else
14998 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14999 lt_status=$lt_dlunknown
15000 cat > conftest.$ac_ext <<_LT_EOF
15001#line $LINENO "configure"
15002#include "confdefs.h"
15003
15004#if HAVE_DLFCN_H
15005#include <dlfcn.h>
15006#endif
15007
15008#include <stdio.h>
15009
15010#ifdef RTLD_GLOBAL
15011# define LT_DLGLOBAL RTLD_GLOBAL
15012#else
15013# ifdef DL_GLOBAL
15014# define LT_DLGLOBAL DL_GLOBAL
15015# else
15016# define LT_DLGLOBAL 0
15017# endif
15018#endif
15019
15020/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15021 find out it does not work in some platform. */
15022#ifndef LT_DLLAZY_OR_NOW
15023# ifdef RTLD_LAZY
15024# define LT_DLLAZY_OR_NOW RTLD_LAZY
15025# else
15026# ifdef DL_LAZY
15027# define LT_DLLAZY_OR_NOW DL_LAZY
15028# else
15029# ifdef RTLD_NOW
15030# define LT_DLLAZY_OR_NOW RTLD_NOW
15031# else
15032# ifdef DL_NOW
15033# define LT_DLLAZY_OR_NOW DL_NOW
15034# else
15035# define LT_DLLAZY_OR_NOW 0
15036# endif
15037# endif
15038# endif
15039# endif
15040#endif
15041
15042/* When -fvisibility=hidden is used, assume the code has been annotated
15043 correspondingly for the symbols needed. */
15044#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15045int fnord () __attribute__((visibility("default")));
15046#endif
15047
15048int fnord () { return 42; }
15049int main ()
15050{
15051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15052 int status = $lt_dlunknown;
15053
15054 if (self)
15055 {
15056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15057 else
15058 {
15059 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15060 else puts (dlerror ());
15061 }
15062 /* dlclose (self); */
15063 }
15064 else
15065 puts (dlerror ());
15066
15067 return status;
15068}
15069_LT_EOF
15070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15071 (eval $ac_link) 2>&5
15072 ac_status=$?
15073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15074 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15075 (./conftest; exit; ) >&5 2>/dev/null
15076 lt_status=$?
15077 case x$lt_status in
15078 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15079 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15080 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15081 esac
15082 else :
15083 # compilation failed
15084 lt_cv_dlopen_self=no
15085 fi
15086fi
15087rm -fr conftest*
15088
15089
15090fi
15091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15092$as_echo "$lt_cv_dlopen_self" >&6; }
15093
15094 if test yes = "$lt_cv_dlopen_self"; then
15095 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15097$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15098if ${lt_cv_dlopen_self_static+:} false; then :
15099 $as_echo_n "(cached) " >&6
15100else
15101 if test yes = "$cross_compiling"; then :
15102 lt_cv_dlopen_self_static=cross
15103else
15104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15105 lt_status=$lt_dlunknown
15106 cat > conftest.$ac_ext <<_LT_EOF
15107#line $LINENO "configure"
15108#include "confdefs.h"
15109
15110#if HAVE_DLFCN_H
15111#include <dlfcn.h>
15112#endif
15113
15114#include <stdio.h>
15115
15116#ifdef RTLD_GLOBAL
15117# define LT_DLGLOBAL RTLD_GLOBAL
15118#else
15119# ifdef DL_GLOBAL
15120# define LT_DLGLOBAL DL_GLOBAL
15121# else
15122# define LT_DLGLOBAL 0
15123# endif
15124#endif
15125
15126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15127 find out it does not work in some platform. */
15128#ifndef LT_DLLAZY_OR_NOW
15129# ifdef RTLD_LAZY
15130# define LT_DLLAZY_OR_NOW RTLD_LAZY
15131# else
15132# ifdef DL_LAZY
15133# define LT_DLLAZY_OR_NOW DL_LAZY
15134# else
15135# ifdef RTLD_NOW
15136# define LT_DLLAZY_OR_NOW RTLD_NOW
15137# else
15138# ifdef DL_NOW
15139# define LT_DLLAZY_OR_NOW DL_NOW
15140# else
15141# define LT_DLLAZY_OR_NOW 0
15142# endif
15143# endif
15144# endif
15145# endif
15146#endif
15147
15148/* When -fvisibility=hidden is used, assume the code has been annotated
15149 correspondingly for the symbols needed. */
15150#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15151int fnord () __attribute__((visibility("default")));
15152#endif
15153
15154int fnord () { return 42; }
15155int main ()
15156{
15157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15158 int status = $lt_dlunknown;
15159
15160 if (self)
15161 {
15162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15163 else
15164 {
15165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15166 else puts (dlerror ());
15167 }
15168 /* dlclose (self); */
15169 }
15170 else
15171 puts (dlerror ());
15172
15173 return status;
15174}
15175_LT_EOF
15176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15177 (eval $ac_link) 2>&5
15178 ac_status=$?
15179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15180 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15181 (./conftest; exit; ) >&5 2>/dev/null
15182 lt_status=$?
15183 case x$lt_status in
15184 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15185 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15186 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15187 esac
15188 else :
15189 # compilation failed
15190 lt_cv_dlopen_self_static=no
15191 fi
15192fi
15193rm -fr conftest*
15194
15195
15196fi
15197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15198$as_echo "$lt_cv_dlopen_self_static" >&6; }
15199 fi
15200
15201 CPPFLAGS=$save_CPPFLAGS
15202 LDFLAGS=$save_LDFLAGS
15203 LIBS=$save_LIBS
15204 ;;
15205 esac
15206
15207 case $lt_cv_dlopen_self in
15208 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15209 *) enable_dlopen_self=unknown ;;
15210 esac
15211
15212 case $lt_cv_dlopen_self_static in
15213 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15214 *) enable_dlopen_self_static=unknown ;;
15215 esac
15216fi
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234striplib=
15235old_striplib=
15236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15237$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15238if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15239 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15240 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15242$as_echo "yes" >&6; }
15243else
15244# FIXME - insert some real tests, host_os isn't really good enough
15245 case $host_os in
15246 darwin*)
15247 if test -n "$STRIP"; then
15248 striplib="$STRIP -x"
15249 old_striplib="$STRIP -S"
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15251$as_echo "yes" >&6; }
15252 else
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15254$as_echo "no" >&6; }
15255 fi
15256 ;;
15257 *)
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15259$as_echo "no" >&6; }
15260 ;;
15261 esac
15262fi
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275 # Report what library types will actually be built
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15277$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15279$as_echo "$can_build_shared" >&6; }
15280
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15282$as_echo_n "checking whether to build shared libraries... " >&6; }
15283 test no = "$can_build_shared" && enable_shared=no
15284
15285 # On AIX, shared libraries and static libraries use the same namespace, and
15286 # are all built from PIC.
15287 case $host_os in
15288 aix3*)
15289 test yes = "$enable_shared" && enable_static=no
15290 if test -n "$RANLIB"; then
15291 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15292 postinstall_cmds='$RANLIB $lib'
15293 fi
15294 ;;
15295
15296 aix[4-9]*)
15297 if test ia64 != "$host_cpu"; then
15298 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15299 yes,aix,yes) ;; # shared object as lib.so file only
15300 yes,svr4,*) ;; # shared object as lib.so archive member only
15301 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15302 esac
15303 fi
15304 ;;
15305 esac
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15307$as_echo "$enable_shared" >&6; }
15308
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15310$as_echo_n "checking whether to build static libraries... " >&6; }
15311 # Make sure either enable_shared or enable_static is yes.
15312 test yes = "$enable_shared" || enable_static=yes
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15314$as_echo "$enable_static" >&6; }
15315
15316
15317
15318
15319fi
15320ac_ext=c
15321ac_cpp='$CPP $CPPFLAGS'
15322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15324ac_compiler_gnu=$ac_cv_c_compiler_gnu
15325
15326CC=$lt_save_CC
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342 ac_config_commands="$ac_config_commands libtool"
15343
15344
15345
15346
15347# Only expand once:
15348
15349
15350## --------------------- ##
15351## End of libtool code ##
15352## --------------------- ##
15353
15354#
15355# Verify if finally libtool shared libraries will be built
15356#
15357
15358case "x$enable_shared" in # ((
15359 xyes | xno)
15360 xc_lt_build_shared=$enable_shared
15361 ;;
15362 *)
15363 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15364 ;;
15365esac
15366
15367#
15368# Verify if finally libtool static libraries will be built
15369#
15370
15371case "x$enable_static" in # ((
15372 xyes | xno)
15373 xc_lt_build_static=$enable_static
15374 ;;
15375 *)
15376 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15377 ;;
15378esac
15379
15380#
15381# Verify if libtool shared libraries should be linked using flag -version-info
15382#
15383
15384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15385$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15386xc_lt_shlib_use_version_info='yes'
15387if test "x$version_type" = 'xnone'; then
15388 xc_lt_shlib_use_version_info='no'
15389fi
15390case $host_os in # (
15391 amigaos*)
15392 xc_lt_shlib_use_version_info='yes'
15393 ;;
15394esac
15395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15396$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15397
15398#
15399# Verify if libtool shared libraries should be linked using flag -no-undefined
15400#
15401
15402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15403$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15404xc_lt_shlib_use_no_undefined='no'
15405if test "x$allow_undefined" = 'xno'; then
15406 xc_lt_shlib_use_no_undefined='yes'
15407elif test "x$allow_undefined_flag" = 'xunsupported'; then
15408 xc_lt_shlib_use_no_undefined='yes'
15409fi
15410case $host_os in # (
15411 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15412 xc_lt_shlib_use_no_undefined='yes'
15413 ;;
15414esac
15415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15416$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15417
15418#
15419# Verify if libtool shared libraries should be linked using flag -mimpure-text
15420#
15421
15422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15423$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15424xc_lt_shlib_use_mimpure_text='no'
15425case $host_os in # (
15426 solaris2*)
15427 if test "x$GCC" = 'xyes'; then
15428 xc_lt_shlib_use_mimpure_text='yes'
15429 fi
15430 ;;
15431esac
15432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15433$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15434
15435#
15436# Find out whether libtool libraries would be built wit PIC
15437#
15438
15439case "x$pic_mode" in # ((((
15440 xdefault)
15441 xc_lt_build_shared_with_pic='yes'
15442 xc_lt_build_static_with_pic='no'
15443 ;;
15444 xyes)
15445 xc_lt_build_shared_with_pic='yes'
15446 xc_lt_build_static_with_pic='yes'
15447 ;;
15448 xno)
15449 xc_lt_build_shared_with_pic='no'
15450 xc_lt_build_static_with_pic='no'
15451 ;;
15452 *)
15453 xc_lt_build_shared_with_pic='unknown'
15454 xc_lt_build_static_with_pic='unknown'
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15456$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15457 ;;
15458esac
15459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15460$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15462$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15464$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15466$as_echo "$xc_lt_build_static_with_pic" >&6; }
15467
15468#
15469# Verify if libtool shared libraries will be built while static not built
15470#
15471
15472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15473$as_echo_n "checking whether to build shared libraries only... " >&6; }
15474if test "$xc_lt_build_shared" = 'yes' &&
15475 test "$xc_lt_build_static" = 'no'; then
15476 xc_lt_build_shared_only='yes'
15477else
15478 xc_lt_build_shared_only='no'
15479fi
15480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15481$as_echo "$xc_lt_build_shared_only" >&6; }
15482
15483#
15484# Verify if libtool static libraries will be built while shared not built
15485#
15486
15487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15488$as_echo_n "checking whether to build static libraries only... " >&6; }
15489if test "$xc_lt_build_static" = 'yes' &&
15490 test "$xc_lt_build_shared" = 'no'; then
15491 xc_lt_build_static_only='yes'
15492else
15493 xc_lt_build_static_only='no'
15494fi
15495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15496$as_echo "$xc_lt_build_static_only" >&6; }
15497
15498
15499
15500
15501#
15502# Automake conditionals based on libtool related checks
15503#
15504
15505 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15506 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15507 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15508else
15509 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15510 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15511fi
15512
15513 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15514 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15515 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15516else
15517 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15518 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15519fi
15520
15521 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15522 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15523 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15524else
15525 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15526 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15527fi
15528
15529
15530#
15531# Due to libtool and automake machinery limitations of not allowing
15532# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15533# inclusion of these in shared or static libraries, we are forced to
15534# build using separate configure runs for shared and static libraries
15535# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15536# to compile objects for each kind of library. Notice that relying on
15537# the '-DPIC' CFLAG that libtool provides is not valid given that the
15538# user might for example choose to build static libraries with PIC.
15539#
15540
15541#
15542# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15543# targeting a static library and not building its shared counterpart.
15544#
15545
15546 if test "x$xc_lt_build_static_only" = 'xyes'; then
15547 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15548 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15549else
15550 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15551 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15552fi
15553
15554
15555#
15556# Make staticlib CPPFLAG variable and its definition visible in output
15557# files unconditionally, providing an empty definition unless strictly
15558# targeting a static library and not building its shared counterpart.
15559#
15560
15561CPPFLAG_CURL_STATICLIB=
15562if test "x$xc_lt_build_static_only" = 'xyes'; then
15563 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15564fi
15565
15566
15567
15568# Determine whether all dependent libraries must be specified when linking
15569if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15570then
15571 REQUIRE_LIB_DEPS=no
15572else
15573 REQUIRE_LIB_DEPS=yes
15574fi
15575
15576 if test x$REQUIRE_LIB_DEPS = xyes; then
15577 USE_EXPLICIT_LIB_DEPS_TRUE=
15578 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15579else
15580 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15581 USE_EXPLICIT_LIB_DEPS_FALSE=
15582fi
15583
15584
15585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15586$as_echo_n "checking for inline... " >&6; }
15587if ${ac_cv_c_inline+:} false; then :
15588 $as_echo_n "(cached) " >&6
15589else
15590 ac_cv_c_inline=no
15591for ac_kw in inline __inline__ __inline; do
15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593/* end confdefs.h. */
15594#ifndef __cplusplus
15595typedef int foo_t;
15596static $ac_kw foo_t static_foo () {return 0; }
15597$ac_kw foo_t foo () {return 0; }
15598#endif
15599
15600_ACEOF
15601if ac_fn_c_try_compile "$LINENO"; then :
15602 ac_cv_c_inline=$ac_kw
15603fi
15604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15605 test "$ac_cv_c_inline" != no && break
15606done
15607
15608fi
15609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15610$as_echo "$ac_cv_c_inline" >&6; }
15611
15612case $ac_cv_c_inline in
15613 inline | yes) ;;
15614 *)
15615 case $ac_cv_c_inline in
15616 no) ac_val=;;
15617 *) ac_val=$ac_cv_c_inline;;
15618 esac
15619 cat >>confdefs.h <<_ACEOF
15620#ifndef __cplusplus
15621#define inline $ac_val
15622#endif
15623_ACEOF
15624 ;;
15625esac
15626
15627
15628
15629
Alex Deymo486467e2017-12-19 19:04:07 +010015630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15631$as_echo_n "checking if cpp -P is needed... " >&6; }
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633/* end confdefs.h. */
15634
15635 #include <errno.h>
15636TEST EINVAL TEST
15637
15638_ACEOF
15639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15640 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15641 cpp=no
15642else
15643 cpp=yes
15644fi
15645rm -f conftest*
15646
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15648$as_echo "$cpp" >&6; }
15649
15650 if test "x$cpp" = "xyes"; then
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15652$as_echo_n "checking if cpp -P works... " >&6; }
15653 OLDCPPFLAGS=$CPPFLAGS
15654 CPPFLAGS="$CPPFLAGS -P"
15655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15656/* end confdefs.h. */
15657
15658 #include <errno.h>
15659TEST EINVAL TEST
15660
15661_ACEOF
15662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15663 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15664 cpp_p=yes
15665else
15666 cpp_p=no
15667fi
15668rm -f conftest*
15669
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15671$as_echo "$cpp_p" >&6; }
15672
15673 if test "x$cpp_p" = "xno"; then
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15675$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15676 # without -P
15677 CPPPFLAG=""
15678 else
15679 # with -P
15680 CPPPFLAG="-P"
15681 fi
15682 CPPFLAGS=$OLDCPPFLAGS
15683 else
15684 # without -P
15685 CPPPFLAG=""
15686 fi
15687
15688
Elliott Hughes82be86d2017-09-20 17:00:17 -070015689 #
15690 compiler_id="unknown"
15691 compiler_num="0"
15692 #
15693 flags_dbg_all="unknown"
15694 flags_dbg_yes="unknown"
15695 flags_dbg_off="unknown"
15696 flags_opt_all="unknown"
15697 flags_opt_yes="unknown"
15698 flags_opt_off="unknown"
15699 #
15700 flags_prefer_cppflags="no"
15701 #
15702
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15704$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15705
15706 OLDCPPFLAGS=$CPPFLAGS
15707 # CPPPFLAG comes from CURL_CPP_P
15708 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15709 if test -z "$SED"; then
15710 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15711 fi
15712 if test -z "$GREP"; then
15713 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15714 fi
15715
15716 tmp_exp=""
15717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718/* end confdefs.h. */
15719
15720
15721#ifdef __DECC
15722CURL_DEF_TOKEN __DECC
15723#endif
15724
15725
15726_ACEOF
15727if ac_fn_c_try_cpp "$LINENO"; then :
15728
15729 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15730 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15731 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15732 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15733 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15734 tmp_exp=""
15735 fi
15736
15737fi
15738rm -f conftest.err conftest.i conftest.$ac_ext
15739 if test -z "$tmp_exp"; then
15740 curl_cv_have_def___DECC=no
15741
15742 else
15743 curl_cv_have_def___DECC=yes
15744 curl_cv_def___DECC=$tmp_exp
15745
15746 fi
15747 CPPFLAGS=$OLDCPPFLAGS
15748
15749
15750 OLDCPPFLAGS=$CPPFLAGS
15751 # CPPPFLAG comes from CURL_CPP_P
15752 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15753 if test -z "$SED"; then
15754 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15755 fi
15756 if test -z "$GREP"; then
15757 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15758 fi
15759
15760 tmp_exp=""
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762/* end confdefs.h. */
15763
15764
15765#ifdef __DECC_VER
15766CURL_DEF_TOKEN __DECC_VER
15767#endif
15768
15769
15770_ACEOF
15771if ac_fn_c_try_cpp "$LINENO"; then :
15772
15773 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15774 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15775 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15776 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15777 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15778 tmp_exp=""
15779 fi
15780
15781fi
15782rm -f conftest.err conftest.i conftest.$ac_ext
15783 if test -z "$tmp_exp"; then
15784 curl_cv_have_def___DECC_VER=no
15785
15786 else
15787 curl_cv_have_def___DECC_VER=yes
15788 curl_cv_def___DECC_VER=$tmp_exp
15789
15790 fi
15791 CPPFLAGS=$OLDCPPFLAGS
15792
15793 if test "$curl_cv_have_def___DECC" = "yes" &&
15794 test "$curl_cv_have_def___DECC_VER" = "yes"; then
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15796$as_echo "yes" >&6; }
15797 compiler_id="DEC_C"
15798 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15799 flags_dbg_yes="-g2"
15800 flags_dbg_off=""
15801 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15802 flags_opt_yes="-O1"
15803 flags_opt_off="-O0"
15804 else
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15806$as_echo "no" >&6; }
15807 fi
15808
15809
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15811$as_echo_n "checking if compiler is HP-UX C... " >&6; }
15812
15813 OLDCPPFLAGS=$CPPFLAGS
15814 # CPPPFLAG comes from CURL_CPP_P
15815 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15816 if test -z "$SED"; then
15817 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15818 fi
15819 if test -z "$GREP"; then
15820 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15821 fi
15822
15823 tmp_exp=""
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825/* end confdefs.h. */
15826
15827
15828#ifdef __HP_cc
15829CURL_DEF_TOKEN __HP_cc
15830#endif
15831
15832
15833_ACEOF
15834if ac_fn_c_try_cpp "$LINENO"; then :
15835
15836 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15837 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15838 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15839 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15840 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15841 tmp_exp=""
15842 fi
15843
15844fi
15845rm -f conftest.err conftest.i conftest.$ac_ext
15846 if test -z "$tmp_exp"; then
15847 curl_cv_have_def___HP_cc=no
15848
15849 else
15850 curl_cv_have_def___HP_cc=yes
15851 curl_cv_def___HP_cc=$tmp_exp
15852
15853 fi
15854 CPPFLAGS=$OLDCPPFLAGS
15855
15856 if test "$curl_cv_have_def___HP_cc" = "yes"; then
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15858$as_echo "yes" >&6; }
15859 compiler_id="HP_UX_C"
15860 flags_dbg_all="-g -s"
15861 flags_dbg_yes="-g"
15862 flags_dbg_off="-s"
15863 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15864 flags_opt_yes="+O2"
15865 flags_opt_off="+O0"
15866 else
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15868$as_echo "no" >&6; }
15869 fi
15870
15871
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15873$as_echo_n "checking if compiler is IBM C... " >&6; }
15874
15875 OLDCPPFLAGS=$CPPFLAGS
15876 # CPPPFLAG comes from CURL_CPP_P
15877 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15878 if test -z "$SED"; then
15879 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15880 fi
15881 if test -z "$GREP"; then
15882 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15883 fi
15884
15885 tmp_exp=""
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887/* end confdefs.h. */
15888
15889
15890#ifdef __IBMC__
15891CURL_DEF_TOKEN __IBMC__
15892#endif
15893
15894
15895_ACEOF
15896if ac_fn_c_try_cpp "$LINENO"; then :
15897
15898 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15899 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15900 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15901 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15902 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15903 tmp_exp=""
15904 fi
15905
15906fi
15907rm -f conftest.err conftest.i conftest.$ac_ext
15908 if test -z "$tmp_exp"; then
15909 curl_cv_have_def___IBMC__=no
15910
15911 else
15912 curl_cv_have_def___IBMC__=yes
15913 curl_cv_def___IBMC__=$tmp_exp
15914
15915 fi
15916 CPPFLAGS=$OLDCPPFLAGS
15917
15918 if test "$curl_cv_have_def___IBMC__" = "yes"; then
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15920$as_echo "yes" >&6; }
15921 compiler_id="IBM_C"
15922 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15923 flags_dbg_yes="-g"
15924 flags_dbg_off=""
15925 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15926 flags_opt_all="$flags_opt_all -qnooptimize"
15927 flags_opt_all="$flags_opt_all -qoptimize=0"
15928 flags_opt_all="$flags_opt_all -qoptimize=1"
15929 flags_opt_all="$flags_opt_all -qoptimize=2"
15930 flags_opt_all="$flags_opt_all -qoptimize=3"
15931 flags_opt_all="$flags_opt_all -qoptimize=4"
15932 flags_opt_all="$flags_opt_all -qoptimize=5"
15933 flags_opt_yes="-O2"
15934 flags_opt_off="-qnooptimize"
15935 flags_prefer_cppflags="yes"
15936 else
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15938$as_echo "no" >&6; }
15939 fi
15940
15941
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
15943$as_echo_n "checking if compiler is Intel C... " >&6; }
15944
15945 OLDCPPFLAGS=$CPPFLAGS
15946 # CPPPFLAG comes from CURL_CPP_P
15947 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15948 if test -z "$SED"; then
15949 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15950 fi
15951 if test -z "$GREP"; then
15952 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15953 fi
15954
15955 tmp_exp=""
15956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957/* end confdefs.h. */
15958
15959
15960#ifdef __INTEL_COMPILER
15961CURL_DEF_TOKEN __INTEL_COMPILER
15962#endif
15963
15964
15965_ACEOF
15966if ac_fn_c_try_cpp "$LINENO"; then :
15967
15968 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15969 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15970 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15971 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15972 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15973 tmp_exp=""
15974 fi
15975
15976fi
15977rm -f conftest.err conftest.i conftest.$ac_ext
15978 if test -z "$tmp_exp"; then
15979 curl_cv_have_def___INTEL_COMPILER=no
15980
15981 else
15982 curl_cv_have_def___INTEL_COMPILER=yes
15983 curl_cv_def___INTEL_COMPILER=$tmp_exp
15984
15985 fi
15986 CPPFLAGS=$OLDCPPFLAGS
15987
15988 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15990$as_echo "yes" >&6; }
15991 compiler_num="$curl_cv_def___INTEL_COMPILER"
15992
15993 OLDCPPFLAGS=$CPPFLAGS
15994 # CPPPFLAG comes from CURL_CPP_P
15995 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15996 if test -z "$SED"; then
15997 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15998 fi
15999 if test -z "$GREP"; then
16000 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16001 fi
16002
16003 tmp_exp=""
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005/* end confdefs.h. */
16006
16007
16008#ifdef __unix__
16009CURL_DEF_TOKEN __unix__
16010#endif
16011
16012
16013_ACEOF
16014if ac_fn_c_try_cpp "$LINENO"; then :
16015
16016 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16017 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16018 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16019 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16020 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16021 tmp_exp=""
16022 fi
16023
16024fi
16025rm -f conftest.err conftest.i conftest.$ac_ext
16026 if test -z "$tmp_exp"; then
16027 curl_cv_have_def___unix__=no
16028
16029 else
16030 curl_cv_have_def___unix__=yes
16031 curl_cv_def___unix__=$tmp_exp
16032
16033 fi
16034 CPPFLAGS=$OLDCPPFLAGS
16035
16036 if test "$curl_cv_have_def___unix__" = "yes"; then
16037 compiler_id="INTEL_UNIX_C"
16038 flags_dbg_all="-g -g0"
16039 flags_dbg_yes="-g"
16040 flags_dbg_off=""
16041 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16042 flags_opt_yes="-O2"
16043 flags_opt_off="-O0"
16044 else
16045 compiler_id="INTEL_WINDOWS_C"
16046 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16047 flags_dbg_all="$flags_dbg_all /debug"
16048 flags_dbg_all="$flags_dbg_all /debug:none"
16049 flags_dbg_all="$flags_dbg_all /debug:minimal"
16050 flags_dbg_all="$flags_dbg_all /debug:partial"
16051 flags_dbg_all="$flags_dbg_all /debug:full"
16052 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16053 flags_dbg_all="$flags_dbg_all /debug:extended"
16054 flags_dbg_yes="/Zi /Oy-"
16055 flags_dbg_off="/debug:none /Oy-"
16056 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16057 flags_opt_yes="/O2"
16058 flags_opt_off="/Od"
16059 fi
16060 else
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16062$as_echo "no" >&6; }
16063 fi
16064
16065
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16067$as_echo_n "checking if compiler is clang... " >&6; }
16068
16069 OLDCPPFLAGS=$CPPFLAGS
16070 # CPPPFLAG comes from CURL_CPP_P
16071 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16072 if test -z "$SED"; then
16073 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16074 fi
16075 if test -z "$GREP"; then
16076 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16077 fi
16078
16079 tmp_exp=""
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081/* end confdefs.h. */
16082
16083
16084#ifdef __clang__
16085CURL_DEF_TOKEN __clang__
16086#endif
16087
16088
16089_ACEOF
16090if ac_fn_c_try_cpp "$LINENO"; then :
16091
16092 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16093 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16094 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16095 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16096 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16097 tmp_exp=""
16098 fi
16099
16100fi
16101rm -f conftest.err conftest.i conftest.$ac_ext
16102 if test -z "$tmp_exp"; then
16103 curl_cv_have_def___clang__=no
16104
16105 else
16106 curl_cv_have_def___clang__=yes
16107 curl_cv_def___clang__=$tmp_exp
16108
16109 fi
16110 CPPFLAGS=$OLDCPPFLAGS
16111
16112 if test "$curl_cv_have_def___clang__" = "yes"; then
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16114$as_echo "yes" >&6; }
Haibo Huang51d9d882019-02-06 01:36:06 -080016115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
16116$as_echo_n "checking if compiler is xlclang... " >&6; }
16117
16118 OLDCPPFLAGS=$CPPFLAGS
16119 # CPPPFLAG comes from CURL_CPP_P
16120 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16121 if test -z "$SED"; then
16122 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16123 fi
16124 if test -z "$GREP"; then
16125 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16126 fi
16127
16128 tmp_exp=""
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130/* end confdefs.h. */
16131
16132
16133#ifdef __ibmxl__
16134CURL_DEF_TOKEN __ibmxl__
16135#endif
16136
16137
16138_ACEOF
16139if ac_fn_c_try_cpp "$LINENO"; then :
16140
16141 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16142 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16143 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16144 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16145 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
16146 tmp_exp=""
16147 fi
16148
16149fi
16150rm -f conftest.err conftest.i conftest.$ac_ext
16151 if test -z "$tmp_exp"; then
16152 curl_cv_have_def___ibmxl__=no
16153
16154 else
16155 curl_cv_have_def___ibmxl__=yes
16156 curl_cv_def___ibmxl__=$tmp_exp
16157
16158 fi
16159 CPPFLAGS=$OLDCPPFLAGS
16160
16161 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16163$as_echo "yes" >&6; }
16164 compiler_id="XLCLANG"
16165 else
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16167$as_echo "no" >&6; }
16168 compiler_id="CLANG"
16169 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070016170 fullclangver=`$CC -v 2>&1 | grep version`
16171 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16172 if test -z "$clangver"; then
16173 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
Alex Deymo486467e2017-12-19 19:04:07 +010016174 clangver="3.7"
Elliott Hughes82be86d2017-09-20 17:00:17 -070016175 else
16176 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16177 fi
16178 fi
16179 clangvhi=`echo $clangver | cut -d . -f1`
16180 clangvlo=`echo $clangver | cut -d . -f2`
16181 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16182 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16183 flags_dbg_all="$flags_dbg_all -ggdb"
16184 flags_dbg_all="$flags_dbg_all -gstabs"
16185 flags_dbg_all="$flags_dbg_all -gstabs+"
16186 flags_dbg_all="$flags_dbg_all -gcoff"
16187 flags_dbg_all="$flags_dbg_all -gxcoff"
16188 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16189 flags_dbg_all="$flags_dbg_all -gvms"
16190 flags_dbg_yes="-g"
16191 flags_dbg_off=""
16192 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16193 flags_opt_yes="-Os"
16194 flags_opt_off="-O0"
16195 else
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16197$as_echo "no" >&6; }
16198 fi
16199
16200
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16202$as_echo_n "checking if compiler is GNU C... " >&6; }
16203
16204 OLDCPPFLAGS=$CPPFLAGS
16205 # CPPPFLAG comes from CURL_CPP_P
16206 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16207 if test -z "$SED"; then
16208 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16209 fi
16210 if test -z "$GREP"; then
16211 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16212 fi
16213
16214 tmp_exp=""
16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216/* end confdefs.h. */
16217
16218
16219#ifdef __GNUC__
16220CURL_DEF_TOKEN __GNUC__
16221#endif
16222
16223
16224_ACEOF
16225if ac_fn_c_try_cpp "$LINENO"; then :
16226
16227 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16228 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16229 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16230 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16231 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16232 tmp_exp=""
16233 fi
16234
16235fi
16236rm -f conftest.err conftest.i conftest.$ac_ext
16237 if test -z "$tmp_exp"; then
16238 curl_cv_have_def___GNUC__=no
16239
16240 else
16241 curl_cv_have_def___GNUC__=yes
16242 curl_cv_def___GNUC__=$tmp_exp
16243
16244 fi
16245 CPPFLAGS=$OLDCPPFLAGS
16246
16247 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16248 test "$compiler_id" = "unknown"; then
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16250$as_echo "yes" >&6; }
16251 compiler_id="GNU_C"
16252 gccver=`$CC -dumpversion`
16253 gccvhi=`echo $gccver | cut -d . -f1`
16254 gccvlo=`echo $gccver | cut -d . -f2`
16255 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16256 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16257 flags_dbg_all="$flags_dbg_all -ggdb"
16258 flags_dbg_all="$flags_dbg_all -gstabs"
16259 flags_dbg_all="$flags_dbg_all -gstabs+"
16260 flags_dbg_all="$flags_dbg_all -gcoff"
16261 flags_dbg_all="$flags_dbg_all -gxcoff"
16262 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16263 flags_dbg_all="$flags_dbg_all -gvms"
16264 flags_dbg_yes="-g"
16265 flags_dbg_off=""
16266 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16267 flags_opt_yes="-O2"
16268 flags_opt_off="-O0"
16269
16270 OLDCPPFLAGS=$CPPFLAGS
16271 # CPPPFLAG comes from CURL_CPP_P
16272 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16273 if test -z "$SED"; then
16274 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16275 fi
16276 if test -z "$GREP"; then
16277 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16278 fi
16279
16280 tmp_exp=""
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282/* end confdefs.h. */
16283
16284
16285#ifdef _WIN32
16286CURL_DEF_TOKEN _WIN32
16287#endif
16288
16289
16290_ACEOF
16291if ac_fn_c_try_cpp "$LINENO"; then :
16292
16293 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16294 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16295 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16296 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16297 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16298 tmp_exp=""
16299 fi
16300
16301fi
16302rm -f conftest.err conftest.i conftest.$ac_ext
16303 if test -z "$tmp_exp"; then
16304 curl_cv_have_def__WIN32=no
16305
16306 else
16307 curl_cv_have_def__WIN32=yes
16308 curl_cv_def__WIN32=$tmp_exp
16309
16310 fi
16311 CPPFLAGS=$OLDCPPFLAGS
16312
16313 else
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16315$as_echo "no" >&6; }
16316 fi
16317
16318
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16320$as_echo_n "checking if compiler is LCC... " >&6; }
16321
16322 OLDCPPFLAGS=$CPPFLAGS
16323 # CPPPFLAG comes from CURL_CPP_P
16324 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16325 if test -z "$SED"; then
16326 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16327 fi
16328 if test -z "$GREP"; then
16329 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16330 fi
16331
16332 tmp_exp=""
16333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16334/* end confdefs.h. */
16335
16336
16337#ifdef __LCC__
16338CURL_DEF_TOKEN __LCC__
16339#endif
16340
16341
16342_ACEOF
16343if ac_fn_c_try_cpp "$LINENO"; then :
16344
16345 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16346 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16347 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16348 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16349 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16350 tmp_exp=""
16351 fi
16352
16353fi
16354rm -f conftest.err conftest.i conftest.$ac_ext
16355 if test -z "$tmp_exp"; then
16356 curl_cv_have_def___LCC__=no
16357
16358 else
16359 curl_cv_have_def___LCC__=yes
16360 curl_cv_def___LCC__=$tmp_exp
16361
16362 fi
16363 CPPFLAGS=$OLDCPPFLAGS
16364
16365 if test "$curl_cv_have_def___LCC__" = "yes"; then
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16367$as_echo "yes" >&6; }
16368 compiler_id="LCC"
16369 flags_dbg_all="-g"
16370 flags_dbg_yes="-g"
16371 flags_dbg_off=""
16372 flags_opt_all=""
16373 flags_opt_yes=""
16374 flags_opt_off=""
16375 else
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16377$as_echo "no" >&6; }
16378 fi
16379
16380
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16382$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16383
16384 OLDCPPFLAGS=$CPPFLAGS
16385 # CPPPFLAG comes from CURL_CPP_P
16386 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16387 if test -z "$SED"; then
16388 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16389 fi
16390 if test -z "$GREP"; then
16391 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16392 fi
16393
16394 tmp_exp=""
16395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396/* end confdefs.h. */
16397
16398
16399#ifdef __GNUC__
16400CURL_DEF_TOKEN __GNUC__
16401#endif
16402
16403
16404_ACEOF
16405if ac_fn_c_try_cpp "$LINENO"; then :
16406
16407 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16408 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16409 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16410 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16411 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16412 tmp_exp=""
16413 fi
16414
16415fi
16416rm -f conftest.err conftest.i conftest.$ac_ext
16417 if test -z "$tmp_exp"; then
16418 curl_cv_have_def___GNUC__=no
16419
16420 else
16421 curl_cv_have_def___GNUC__=yes
16422 curl_cv_def___GNUC__=$tmp_exp
16423
16424 fi
16425 CPPFLAGS=$OLDCPPFLAGS
16426
16427
16428 OLDCPPFLAGS=$CPPFLAGS
16429 # CPPPFLAG comes from CURL_CPP_P
16430 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16431 if test -z "$SED"; then
16432 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16433 fi
16434 if test -z "$GREP"; then
16435 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16436 fi
16437
16438 tmp_exp=""
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440/* end confdefs.h. */
16441
16442
16443#ifdef _COMPILER_VERSION
16444CURL_DEF_TOKEN _COMPILER_VERSION
16445#endif
16446
16447
16448_ACEOF
16449if ac_fn_c_try_cpp "$LINENO"; then :
16450
16451 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16452 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16453 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16454 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16455 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16456 tmp_exp=""
16457 fi
16458
16459fi
16460rm -f conftest.err conftest.i conftest.$ac_ext
16461 if test -z "$tmp_exp"; then
16462 curl_cv_have_def__COMPILER_VERSION=no
16463
16464 else
16465 curl_cv_have_def__COMPILER_VERSION=yes
16466 curl_cv_def__COMPILER_VERSION=$tmp_exp
16467
16468 fi
16469 CPPFLAGS=$OLDCPPFLAGS
16470
16471
16472 OLDCPPFLAGS=$CPPFLAGS
16473 # CPPPFLAG comes from CURL_CPP_P
16474 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16475 if test -z "$SED"; then
16476 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16477 fi
16478 if test -z "$GREP"; then
16479 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16480 fi
16481
16482 tmp_exp=""
16483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484/* end confdefs.h. */
16485
16486
16487#ifdef _SGI_COMPILER_VERSION
16488CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16489#endif
16490
16491
16492_ACEOF
16493if ac_fn_c_try_cpp "$LINENO"; then :
16494
16495 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16496 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16497 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16498 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16499 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16500 tmp_exp=""
16501 fi
16502
16503fi
16504rm -f conftest.err conftest.i conftest.$ac_ext
16505 if test -z "$tmp_exp"; then
16506 curl_cv_have_def__SGI_COMPILER_VERSION=no
16507
16508 else
16509 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16510 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16511
16512 fi
16513 CPPFLAGS=$OLDCPPFLAGS
16514
16515 if test "$curl_cv_have_def___GNUC__" = "no" &&
16516 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16517 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16519$as_echo "yes" >&6; }
16520 compiler_id="SGI_MIPSPRO_C"
16521 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16522 flags_dbg_yes="-g"
16523 flags_dbg_off=""
16524 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16525 flags_opt_yes="-O2"
16526 flags_opt_off="-O0"
16527 else
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16529$as_echo "no" >&6; }
16530 fi
16531
16532
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16534$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16535
16536 OLDCPPFLAGS=$CPPFLAGS
16537 # CPPPFLAG comes from CURL_CPP_P
16538 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16539 if test -z "$SED"; then
16540 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16541 fi
16542 if test -z "$GREP"; then
16543 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16544 fi
16545
16546 tmp_exp=""
16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548/* end confdefs.h. */
16549
16550
16551#ifdef __GNUC__
16552CURL_DEF_TOKEN __GNUC__
16553#endif
16554
16555
16556_ACEOF
16557if ac_fn_c_try_cpp "$LINENO"; then :
16558
16559 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16560 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16561 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16562 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16563 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16564 tmp_exp=""
16565 fi
16566
16567fi
16568rm -f conftest.err conftest.i conftest.$ac_ext
16569 if test -z "$tmp_exp"; then
16570 curl_cv_have_def___GNUC__=no
16571
16572 else
16573 curl_cv_have_def___GNUC__=yes
16574 curl_cv_def___GNUC__=$tmp_exp
16575
16576 fi
16577 CPPFLAGS=$OLDCPPFLAGS
16578
16579
16580 OLDCPPFLAGS=$CPPFLAGS
16581 # CPPPFLAG comes from CURL_CPP_P
16582 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16583 if test -z "$SED"; then
16584 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16585 fi
16586 if test -z "$GREP"; then
16587 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16588 fi
16589
16590 tmp_exp=""
16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16592/* end confdefs.h. */
16593
16594
16595#ifdef __sgi
16596CURL_DEF_TOKEN __sgi
16597#endif
16598
16599
16600_ACEOF
16601if ac_fn_c_try_cpp "$LINENO"; then :
16602
16603 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16604 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16605 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16606 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16607 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16608 tmp_exp=""
16609 fi
16610
16611fi
16612rm -f conftest.err conftest.i conftest.$ac_ext
16613 if test -z "$tmp_exp"; then
16614 curl_cv_have_def___sgi=no
16615
16616 else
16617 curl_cv_have_def___sgi=yes
16618 curl_cv_def___sgi=$tmp_exp
16619
16620 fi
16621 CPPFLAGS=$OLDCPPFLAGS
16622
16623 if test "$curl_cv_have_def___GNUC__" = "no" &&
16624 test "$curl_cv_have_def___sgi" = "yes" &&
16625 test "$compiler_id" = "unknown"; then
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16627$as_echo "yes" >&6; }
16628 compiler_id="SGI_MIPS_C"
16629 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16630 flags_dbg_yes="-g"
16631 flags_dbg_off=""
16632 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16633 flags_opt_yes="-O2"
16634 flags_opt_off="-O0"
16635 else
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16637$as_echo "no" >&6; }
16638 fi
16639
16640
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16642$as_echo_n "checking if compiler is SunPro C... " >&6; }
16643
16644 OLDCPPFLAGS=$CPPFLAGS
16645 # CPPPFLAG comes from CURL_CPP_P
16646 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16647 if test -z "$SED"; then
16648 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16649 fi
16650 if test -z "$GREP"; then
16651 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16652 fi
16653
16654 tmp_exp=""
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656/* end confdefs.h. */
16657
16658
16659#ifdef __SUNPRO_C
16660CURL_DEF_TOKEN __SUNPRO_C
16661#endif
16662
16663
16664_ACEOF
16665if ac_fn_c_try_cpp "$LINENO"; then :
16666
16667 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16668 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16669 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16670 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16671 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16672 tmp_exp=""
16673 fi
16674
16675fi
16676rm -f conftest.err conftest.i conftest.$ac_ext
16677 if test -z "$tmp_exp"; then
16678 curl_cv_have_def___SUNPRO_C=no
16679
16680 else
16681 curl_cv_have_def___SUNPRO_C=yes
16682 curl_cv_def___SUNPRO_C=$tmp_exp
16683
16684 fi
16685 CPPFLAGS=$OLDCPPFLAGS
16686
16687 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16689$as_echo "yes" >&6; }
16690 compiler_id="SUNPRO_C"
16691 flags_dbg_all="-g -s"
16692 flags_dbg_yes="-g"
16693 flags_dbg_off="-s"
16694 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16695 flags_opt_yes="-xO2"
16696 flags_opt_off=""
16697 else
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16699$as_echo "no" >&6; }
16700 fi
16701
16702
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16704$as_echo_n "checking if compiler is Tiny C... " >&6; }
16705
16706 OLDCPPFLAGS=$CPPFLAGS
16707 # CPPPFLAG comes from CURL_CPP_P
16708 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16709 if test -z "$SED"; then
16710 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16711 fi
16712 if test -z "$GREP"; then
16713 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16714 fi
16715
16716 tmp_exp=""
16717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16718/* end confdefs.h. */
16719
16720
16721#ifdef __TINYC__
16722CURL_DEF_TOKEN __TINYC__
16723#endif
16724
16725
16726_ACEOF
16727if ac_fn_c_try_cpp "$LINENO"; then :
16728
16729 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16730 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16731 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16732 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16733 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16734 tmp_exp=""
16735 fi
16736
16737fi
16738rm -f conftest.err conftest.i conftest.$ac_ext
16739 if test -z "$tmp_exp"; then
16740 curl_cv_have_def___TINYC__=no
16741
16742 else
16743 curl_cv_have_def___TINYC__=yes
16744 curl_cv_def___TINYC__=$tmp_exp
16745
16746 fi
16747 CPPFLAGS=$OLDCPPFLAGS
16748
16749 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16751$as_echo "yes" >&6; }
16752 compiler_id="TINY_C"
16753 flags_dbg_all="-g -b"
16754 flags_dbg_yes="-g"
16755 flags_dbg_off=""
16756 flags_opt_all=""
16757 flags_opt_yes=""
16758 flags_opt_off=""
16759 else
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16761$as_echo "no" >&6; }
16762 fi
16763
16764
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16766$as_echo_n "checking if compiler is Watcom C... " >&6; }
16767
16768 OLDCPPFLAGS=$CPPFLAGS
16769 # CPPPFLAG comes from CURL_CPP_P
16770 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16771 if test -z "$SED"; then
16772 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16773 fi
16774 if test -z "$GREP"; then
16775 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16776 fi
16777
16778 tmp_exp=""
16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780/* end confdefs.h. */
16781
16782
16783#ifdef __WATCOMC__
16784CURL_DEF_TOKEN __WATCOMC__
16785#endif
16786
16787
16788_ACEOF
16789if ac_fn_c_try_cpp "$LINENO"; then :
16790
16791 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16792 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16793 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16794 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16795 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16796 tmp_exp=""
16797 fi
16798
16799fi
16800rm -f conftest.err conftest.i conftest.$ac_ext
16801 if test -z "$tmp_exp"; then
16802 curl_cv_have_def___WATCOMC__=no
16803
16804 else
16805 curl_cv_have_def___WATCOMC__=yes
16806 curl_cv_def___WATCOMC__=$tmp_exp
16807
16808 fi
16809 CPPFLAGS=$OLDCPPFLAGS
16810
16811 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16813$as_echo "yes" >&6; }
16814
16815 OLDCPPFLAGS=$CPPFLAGS
16816 # CPPPFLAG comes from CURL_CPP_P
16817 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16818 if test -z "$SED"; then
16819 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16820 fi
16821 if test -z "$GREP"; then
16822 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16823 fi
16824
16825 tmp_exp=""
16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827/* end confdefs.h. */
16828
16829
16830#ifdef __UNIX__
16831CURL_DEF_TOKEN __UNIX__
16832#endif
16833
16834
16835_ACEOF
16836if ac_fn_c_try_cpp "$LINENO"; then :
16837
16838 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16839 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16840 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16841 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16842 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16843 tmp_exp=""
16844 fi
16845
16846fi
16847rm -f conftest.err conftest.i conftest.$ac_ext
16848 if test -z "$tmp_exp"; then
16849 curl_cv_have_def___UNIX__=no
16850
16851 else
16852 curl_cv_have_def___UNIX__=yes
16853 curl_cv_def___UNIX__=$tmp_exp
16854
16855 fi
16856 CPPFLAGS=$OLDCPPFLAGS
16857
16858 if test "$curl_cv_have_def___UNIX__" = "yes"; then
16859 compiler_id="WATCOM_UNIX_C"
16860 flags_dbg_all="-g1 -g1+ -g2 -g3"
16861 flags_dbg_yes="-g2"
16862 flags_dbg_off=""
16863 flags_opt_all="-O0 -O1 -O2 -O3"
16864 flags_opt_yes="-O2"
16865 flags_opt_off="-O0"
16866 else
16867 compiler_id="WATCOM_WINDOWS_C"
16868 flags_dbg_all=""
16869 flags_dbg_yes=""
16870 flags_dbg_off=""
16871 flags_opt_all=""
16872 flags_opt_yes=""
16873 flags_opt_off=""
16874 fi
16875 else
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16877$as_echo "no" >&6; }
16878 fi
16879
16880 #
16881 if test "$compiler_id" = "unknown"; then
16882 cat <<_EOF 1>&2
16883***
16884*** Warning: This configure script does not have information about the
16885*** compiler you are using, relative to the flags required to enable or
16886*** disable generation of debug info, optimization options or warnings.
16887***
16888*** Whatever settings are present in CFLAGS will be used for this run.
16889***
16890*** If you wish to help the curl project to better support your compiler
16891*** you can report this and the required info on the libcurl development
16892*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
16893***
16894_EOF
16895 fi
16896
16897
16898squeeze() {
16899 _sqz_result=""
16900 eval _sqz_input=\$$1
16901 for _sqz_token in $_sqz_input; do
16902 if test -z "$_sqz_result"; then
16903 _sqz_result="$_sqz_token"
16904 else
16905 _sqz_result="$_sqz_result $_sqz_token"
16906 fi
16907 done
16908 eval $1=\$_sqz_result
16909 return 0
16910}
16911
16912
16913 #
16914 if test "$compiler_id" != "unknown"; then
16915 #
16916 if test "$compiler_id" = "GNU_C" ||
16917 test "$compiler_id" = "CLANG"; then
16918
16919 if test "$compiler_id" = "GNU_C" ||
16920 test "$compiler_id" = "CLANG"; then
16921 tmp_has_include="no"
16922 tmp_chg_FLAGS="$CFLAGS"
16923 for word1 in $tmp_chg_FLAGS; do
16924 case "$word1" in
16925 -I*)
16926 tmp_has_include="yes"
16927 ;;
16928 esac
16929 done
16930 if test "$tmp_has_include" = "yes"; then
16931 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16932 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16933 CFLAGS="$tmp_chg_FLAGS"
16934 squeeze CFLAGS
16935 fi
16936 tmp_has_include="no"
16937 tmp_chg_FLAGS="$CPPFLAGS"
16938 for word1 in $tmp_chg_FLAGS; do
16939 case "$word1" in
16940 -I*)
16941 tmp_has_include="yes"
16942 ;;
16943 esac
16944 done
16945 if test "$tmp_has_include" = "yes"; then
16946 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16947 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16948 CPPFLAGS="$tmp_chg_FLAGS"
16949 squeeze CPPFLAGS
16950 fi
16951 fi
16952
16953 fi
16954 #
16955 tmp_save_CPPFLAGS="$CPPFLAGS"
16956 tmp_save_CFLAGS="$CFLAGS"
16957 tmp_CPPFLAGS=""
16958 tmp_CFLAGS=""
16959 #
16960 case "$compiler_id" in
16961 #
16962 CLANG)
16963 #
16964 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
16965 ;;
16966 #
16967 DEC_C)
16968 #
16969 tmp_CFLAGS="$tmp_CFLAGS -std1"
16970 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16971 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16972 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16973 ;;
16974 #
16975 GNU_C)
16976 #
16977 if test "$compiler_num" -ge "295"; then
16978 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
16979 fi
16980 ;;
16981 #
16982 HP_UX_C)
16983 #
16984 tmp_CFLAGS="$tmp_CFLAGS -z"
16985 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
16986 ;;
16987 #
16988 IBM_C)
16989 #
16990 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
16991 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
16992 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
16993 ;;
16994 #
16995 INTEL_UNIX_C)
16996 #
16997 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
16998 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
16999 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17000 ;;
17001 #
17002 INTEL_WINDOWS_C)
17003 #
17004 tmp_CFLAGS="$tmp_CFLAGS"
17005 ;;
17006 #
17007 LCC)
17008 #
17009 tmp_CFLAGS="$tmp_CFLAGS -n"
17010 ;;
17011 #
17012 SGI_MIPS_C)
17013 #
17014 tmp_CFLAGS="$tmp_CFLAGS"
17015 ;;
17016 #
17017 SGI_MIPSPRO_C)
17018 #
17019 tmp_CFLAGS="$tmp_CFLAGS"
17020 ;;
17021 #
17022 SUNPRO_C)
17023 #
17024 tmp_CFLAGS="$tmp_CFLAGS"
17025 ;;
17026 #
17027 TINY_C)
17028 #
17029 tmp_CFLAGS="$tmp_CFLAGS"
17030 ;;
17031 #
17032 WATCOM_UNIX_C)
17033 #
17034 tmp_CFLAGS="$tmp_CFLAGS"
17035 ;;
17036 #
17037 WATCOM_WINDOWS_C)
17038 #
17039 tmp_CFLAGS="$tmp_CFLAGS"
17040 ;;
17041 #
17042 esac
17043 #
17044 squeeze tmp_CPPFLAGS
17045 squeeze tmp_CFLAGS
17046 #
17047 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17049$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17050 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17051 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17052 squeeze CPPFLAGS
17053 squeeze CFLAGS
17054
17055 tmp_compiler_works="unknown"
17056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17057/* end confdefs.h. */
17058
17059
17060
17061int main (void)
17062{
17063
17064 int i = 1;
17065 return i;
17066
17067 ;
17068 return 0;
17069}
17070
17071_ACEOF
17072if ac_fn_c_try_compile "$LINENO"; then :
17073
17074 tmp_compiler_works="yes"
17075
17076else
17077
17078 tmp_compiler_works="no"
17079 echo " " >&6
17080 sed 's/^/cc-fail: /' conftest.err >&6
17081 echo " " >&6
17082
17083fi
17084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17085 if test "$tmp_compiler_works" = "yes"; then
17086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17087/* end confdefs.h. */
17088
17089
17090
17091int main (void)
17092{
17093
17094 int i = 1;
17095 return i;
17096
17097 ;
17098 return 0;
17099}
17100
17101_ACEOF
17102if ac_fn_c_try_link "$LINENO"; then :
17103
17104 tmp_compiler_works="yes"
17105
17106else
17107
17108 tmp_compiler_works="no"
17109 echo " " >&6
17110 sed 's/^/link-fail: /' conftest.err >&6
17111 echo " " >&6
17112
17113fi
17114rm -f core conftest.err conftest.$ac_objext \
17115 conftest$ac_exeext conftest.$ac_ext
17116 fi
17117 if test "x$cross_compiling" != "xyes" &&
17118 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017119
17120
17121 old=$LD_LIBRARY_PATH
17122 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17123 export LD_LIBRARY_PATH
17124 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17127as_fn_error $? "cannot run test program while cross compiling
17128See \`config.log' for more details" "$LINENO" 5; }
17129else
17130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17131/* end confdefs.h. */
17132
17133
17134# ifdef __STDC__
17135# include <stdlib.h>
17136# endif
17137
17138int main (void)
17139{
17140
17141 int i = 0;
17142 exit(i);
17143
17144 ;
17145 return 0;
17146}
17147
17148_ACEOF
17149if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017150 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017151
17152else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017153 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017154 echo " " >&6
17155 echo "run-fail: test program exited with status $ac_status" >&6
17156 echo " " >&6
17157
17158fi
17159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17160 conftest.$ac_objext conftest.beam conftest.$ac_ext
17161fi
17162
Elliott Hughesa93fb052018-12-12 14:22:48 -080017163 LD_LIBRARY_PATH=$old # restore
17164
Elliott Hughes82be86d2017-09-20 17:00:17 -070017165 fi
17166 if test "$tmp_compiler_works" = "yes"; then
17167
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17169$as_echo "yes" >&6; }
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17171$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17172
17173 else
17174
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17176$as_echo "no" >&6; }
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17178$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17179 CPPFLAGS="$tmp_save_CPPFLAGS"
17180 CFLAGS="$tmp_save_CFLAGS"
17181
17182 fi
17183
17184 fi
17185 #
17186 fi
17187
17188
17189 #
17190 if test "$compiler_id" != "unknown"; then
17191 #
17192 tmp_save_CFLAGS="$CFLAGS"
17193 tmp_save_CPPFLAGS="$CPPFLAGS"
17194 #
17195 tmp_options=""
17196 tmp_CFLAGS="$CFLAGS"
17197 tmp_CPPFLAGS="$CPPFLAGS"
17198
17199 ac_var_stripped=""
17200 for word1 in $tmp_CFLAGS; do
17201 ac_var_strip_word="no"
17202 for word2 in $flags_dbg_all; do
17203 if test "$word1" = "$word2"; then
17204 ac_var_strip_word="yes"
17205 fi
17206 done
17207 if test "$ac_var_strip_word" = "no"; then
17208 ac_var_stripped="$ac_var_stripped $word1"
17209 fi
17210 done
17211 tmp_CFLAGS="$ac_var_stripped"
17212 squeeze tmp_CFLAGS
17213
17214
17215 ac_var_stripped=""
17216 for word1 in $tmp_CPPFLAGS; do
17217 ac_var_strip_word="no"
17218 for word2 in $flags_dbg_all; do
17219 if test "$word1" = "$word2"; then
17220 ac_var_strip_word="yes"
17221 fi
17222 done
17223 if test "$ac_var_strip_word" = "no"; then
17224 ac_var_stripped="$ac_var_stripped $word1"
17225 fi
17226 done
17227 tmp_CPPFLAGS="$ac_var_stripped"
17228 squeeze tmp_CPPFLAGS
17229
17230 #
17231 if test "$want_debug" = "yes"; then
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17233$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17234 tmp_options="$flags_dbg_yes"
17235 fi
17236 if test "$want_debug" = "no"; then
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17238$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17239 tmp_options="$flags_dbg_off"
17240 fi
17241 #
17242 if test "$flags_prefer_cppflags" = "yes"; then
17243 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17244 CFLAGS="$tmp_CFLAGS"
17245 else
17246 CPPFLAGS="$tmp_CPPFLAGS"
17247 CFLAGS="$tmp_CFLAGS $tmp_options"
17248 fi
17249 squeeze CPPFLAGS
17250 squeeze CFLAGS
17251
17252 tmp_compiler_works="unknown"
17253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254/* end confdefs.h. */
17255
17256
17257
17258int main (void)
17259{
17260
17261 int i = 1;
17262 return i;
17263
17264 ;
17265 return 0;
17266}
17267
17268_ACEOF
17269if ac_fn_c_try_compile "$LINENO"; then :
17270
17271 tmp_compiler_works="yes"
17272
17273else
17274
17275 tmp_compiler_works="no"
17276 echo " " >&6
17277 sed 's/^/cc-fail: /' conftest.err >&6
17278 echo " " >&6
17279
17280fi
17281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17282 if test "$tmp_compiler_works" = "yes"; then
17283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284/* end confdefs.h. */
17285
17286
17287
17288int main (void)
17289{
17290
17291 int i = 1;
17292 return i;
17293
17294 ;
17295 return 0;
17296}
17297
17298_ACEOF
17299if ac_fn_c_try_link "$LINENO"; then :
17300
17301 tmp_compiler_works="yes"
17302
17303else
17304
17305 tmp_compiler_works="no"
17306 echo " " >&6
17307 sed 's/^/link-fail: /' conftest.err >&6
17308 echo " " >&6
17309
17310fi
17311rm -f core conftest.err conftest.$ac_objext \
17312 conftest$ac_exeext conftest.$ac_ext
17313 fi
17314 if test "x$cross_compiling" != "xyes" &&
17315 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017316
17317
17318 old=$LD_LIBRARY_PATH
17319 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17320 export LD_LIBRARY_PATH
17321 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17324as_fn_error $? "cannot run test program while cross compiling
17325See \`config.log' for more details" "$LINENO" 5; }
17326else
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328/* end confdefs.h. */
17329
17330
17331# ifdef __STDC__
17332# include <stdlib.h>
17333# endif
17334
17335int main (void)
17336{
17337
17338 int i = 0;
17339 exit(i);
17340
17341 ;
17342 return 0;
17343}
17344
17345_ACEOF
17346if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017347 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017348
17349else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017350 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017351 echo " " >&6
17352 echo "run-fail: test program exited with status $ac_status" >&6
17353 echo " " >&6
17354
17355fi
17356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17357 conftest.$ac_objext conftest.beam conftest.$ac_ext
17358fi
17359
Elliott Hughesa93fb052018-12-12 14:22:48 -080017360 LD_LIBRARY_PATH=$old # restore
17361
Elliott Hughes82be86d2017-09-20 17:00:17 -070017362 fi
17363 if test "$tmp_compiler_works" = "yes"; then
17364
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17366$as_echo "yes" >&6; }
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17368$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17369
17370 else
17371
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17373$as_echo "no" >&6; }
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17375$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17376 CPPFLAGS="$tmp_save_CPPFLAGS"
17377 CFLAGS="$tmp_save_CFLAGS"
17378
17379 fi
17380
17381 #
17382 fi
17383
17384
17385 #
17386 if test "$compiler_id" != "unknown"; then
17387 #
17388 tmp_save_CFLAGS="$CFLAGS"
17389 tmp_save_CPPFLAGS="$CPPFLAGS"
17390 #
17391 tmp_options=""
17392 tmp_CFLAGS="$CFLAGS"
17393 tmp_CPPFLAGS="$CPPFLAGS"
17394 honor_optimize_option="yes"
17395 #
17396 #
17397 if test "$want_optimize" = "assume_no" ||
17398 test "$want_optimize" = "assume_yes"; then
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17400$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17401
17402
17403 ac_var_match_word="no"
17404 for word1 in $tmp_CFLAGS; do
17405 for word2 in $flags_opt_all; do
17406 if test "$word1" = "$word2"; then
17407 ac_var_match_word="yes"
17408 fi
17409 done
17410 done
17411
17412 if test "$ac_var_match_word" = "yes"; then
17413
17414 honor_optimize_option="no"
17415
17416
17417 fi
17418
17419
17420
17421 ac_var_match_word="no"
17422 for word1 in $tmp_CPPFLAGS; do
17423 for word2 in $flags_opt_all; do
17424 if test "$word1" = "$word2"; then
17425 ac_var_match_word="yes"
17426 fi
17427 done
17428 done
17429
17430 if test "$ac_var_match_word" = "yes"; then
17431
17432 honor_optimize_option="no"
17433
17434
17435 fi
17436
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17438$as_echo "$honor_optimize_option" >&6; }
17439 if test "$honor_optimize_option" = "yes"; then
17440 if test "$want_optimize" = "assume_yes"; then
17441 want_optimize="yes"
17442 fi
17443 if test "$want_optimize" = "assume_no"; then
17444 want_optimize="no"
17445 fi
17446 fi
17447 fi
17448 #
17449 if test "$honor_optimize_option" = "yes"; then
17450
17451 ac_var_stripped=""
17452 for word1 in $tmp_CFLAGS; do
17453 ac_var_strip_word="no"
17454 for word2 in $flags_opt_all; do
17455 if test "$word1" = "$word2"; then
17456 ac_var_strip_word="yes"
17457 fi
17458 done
17459 if test "$ac_var_strip_word" = "no"; then
17460 ac_var_stripped="$ac_var_stripped $word1"
17461 fi
17462 done
17463 tmp_CFLAGS="$ac_var_stripped"
17464 squeeze tmp_CFLAGS
17465
17466
17467 ac_var_stripped=""
17468 for word1 in $tmp_CPPFLAGS; do
17469 ac_var_strip_word="no"
17470 for word2 in $flags_opt_all; do
17471 if test "$word1" = "$word2"; then
17472 ac_var_strip_word="yes"
17473 fi
17474 done
17475 if test "$ac_var_strip_word" = "no"; then
17476 ac_var_stripped="$ac_var_stripped $word1"
17477 fi
17478 done
17479 tmp_CPPFLAGS="$ac_var_stripped"
17480 squeeze tmp_CPPFLAGS
17481
17482 if test "$want_optimize" = "yes"; then
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17484$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17485 tmp_options="$flags_opt_yes"
17486 fi
17487 if test "$want_optimize" = "no"; then
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17489$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17490 tmp_options="$flags_opt_off"
17491 fi
17492 if test "$flags_prefer_cppflags" = "yes"; then
17493 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17494 CFLAGS="$tmp_CFLAGS"
17495 else
17496 CPPFLAGS="$tmp_CPPFLAGS"
17497 CFLAGS="$tmp_CFLAGS $tmp_options"
17498 fi
17499 squeeze CPPFLAGS
17500 squeeze CFLAGS
17501
17502 tmp_compiler_works="unknown"
17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504/* end confdefs.h. */
17505
17506
17507
17508int main (void)
17509{
17510
17511 int i = 1;
17512 return i;
17513
17514 ;
17515 return 0;
17516}
17517
17518_ACEOF
17519if ac_fn_c_try_compile "$LINENO"; then :
17520
17521 tmp_compiler_works="yes"
17522
17523else
17524
17525 tmp_compiler_works="no"
17526 echo " " >&6
17527 sed 's/^/cc-fail: /' conftest.err >&6
17528 echo " " >&6
17529
17530fi
17531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17532 if test "$tmp_compiler_works" = "yes"; then
17533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17534/* end confdefs.h. */
17535
17536
17537
17538int main (void)
17539{
17540
17541 int i = 1;
17542 return i;
17543
17544 ;
17545 return 0;
17546}
17547
17548_ACEOF
17549if ac_fn_c_try_link "$LINENO"; then :
17550
17551 tmp_compiler_works="yes"
17552
17553else
17554
17555 tmp_compiler_works="no"
17556 echo " " >&6
17557 sed 's/^/link-fail: /' conftest.err >&6
17558 echo " " >&6
17559
17560fi
17561rm -f core conftest.err conftest.$ac_objext \
17562 conftest$ac_exeext conftest.$ac_ext
17563 fi
17564 if test "x$cross_compiling" != "xyes" &&
17565 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017566
17567
17568 old=$LD_LIBRARY_PATH
17569 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17570 export LD_LIBRARY_PATH
17571 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17574as_fn_error $? "cannot run test program while cross compiling
17575See \`config.log' for more details" "$LINENO" 5; }
17576else
17577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578/* end confdefs.h. */
17579
17580
17581# ifdef __STDC__
17582# include <stdlib.h>
17583# endif
17584
17585int main (void)
17586{
17587
17588 int i = 0;
17589 exit(i);
17590
17591 ;
17592 return 0;
17593}
17594
17595_ACEOF
17596if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017597 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017598
17599else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017600 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017601 echo " " >&6
17602 echo "run-fail: test program exited with status $ac_status" >&6
17603 echo " " >&6
17604
17605fi
17606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17607 conftest.$ac_objext conftest.beam conftest.$ac_ext
17608fi
17609
Elliott Hughesa93fb052018-12-12 14:22:48 -080017610 LD_LIBRARY_PATH=$old # restore
17611
Elliott Hughes82be86d2017-09-20 17:00:17 -070017612 fi
17613 if test "$tmp_compiler_works" = "yes"; then
17614
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17616$as_echo "yes" >&6; }
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17618$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17619
17620 else
17621
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17623$as_echo "no" >&6; }
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17625$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17626 CPPFLAGS="$tmp_save_CPPFLAGS"
17627 CFLAGS="$tmp_save_CFLAGS"
17628
17629 fi
17630
17631 fi
17632 #
17633 fi
17634
17635
17636 #
17637 if test "$compiler_id" != "unknown"; then
17638 #
17639 tmp_save_CPPFLAGS="$CPPFLAGS"
17640 tmp_save_CFLAGS="$CFLAGS"
17641 tmp_CPPFLAGS=""
17642 tmp_CFLAGS=""
17643 #
17644 case "$compiler_id" in
17645 #
17646 CLANG)
17647 #
17648 if test "$want_warnings" = "yes"; then
17649 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17650 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17651 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17652 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17653 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17654 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17655 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17656 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17657 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17658 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17659 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17660 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17661 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17662 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17663 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17664 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17665 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17666 #
17667 if test "$compiler_num" -ge "101"; then
17668 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17669 fi
17670 #
17671 if test "$compiler_num" -ge "208"; then
17672 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17673 fi
17674 #
17675 if test "$compiler_num" -ge "209"; then
17676 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17677 fi
17678 #
17679 if test "$compiler_num" -ge "302"; then
17680 case $host_os in
17681 cygwin* | mingw*)
17682 ;;
17683 *)
17684 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17685 ;;
17686 esac
17687 fi
17688 #
17689 if test "$compiler_num" -ge "306"; then
17690 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17691 fi
17692 #
17693 if test "$compiler_num" -ge "309"; then
17694 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
Alex Deymo486467e2017-12-19 19:04:07 +010017695 # avoid the varargs warning, fixed in 4.0
17696 # https://bugs.llvm.org/show_bug.cgi?id=29140
17697 if test "$compiler_num" -lt "400"; then
17698 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17699 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070017700 fi
17701 fi
17702 ;;
17703 #
17704 DEC_C)
17705 #
17706 if test "$want_warnings" = "yes"; then
17707 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17708 fi
17709 ;;
17710 #
17711 GNU_C)
17712 #
17713 if test "$want_warnings" = "yes"; then
17714 #
17715 if test "x$cross_compiling" != "xyes" ||
17716 test "$compiler_num" -ge "300"; then
17717 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17718 fi
17719 #
17720 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17721 #
17722 if test "$compiler_num" -ge "104"; then
17723 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17724 if test "x$cross_compiling" != "xyes" ||
17725 test "$compiler_num" -ge "300"; then
17726 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17727 fi
17728 fi
17729 #
17730 if test "$compiler_num" -ge "207"; then
17731 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17732 if test "x$cross_compiling" != "xyes" ||
17733 test "$compiler_num" -ge "300"; then
17734 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17735 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17736 fi
17737 fi
17738 #
17739 if test "$compiler_num" -ge "295"; then
17740 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017741 tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017742 fi
17743 #
17744 if test "$compiler_num" -ge "296"; then
17745 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17746 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17747 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17748 fi
17749 #
17750 if test "$compiler_num" -ge "297"; then
17751 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17752 fi
17753 #
17754 if test "$compiler_num" -ge "300"; then
17755 tmp_CFLAGS="$tmp_CFLAGS"
17756 fi
17757 #
17758 if test "$compiler_num" -ge "303"; then
17759 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17760 fi
17761 #
17762 if test "$compiler_num" -ge "304"; then
17763 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017764 tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017765 fi
17766 #
17767 if test "$compiler_num" -ge "400"; then
17768 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17769 fi
17770 #
17771 if test "$compiler_num" -ge "402"; then
17772 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17773 fi
17774 #
17775 if test "$compiler_num" -ge "403"; then
17776 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17777 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17778 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17779 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017780 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017781 fi
17782 #
17783 if test "$compiler_num" -ge "405"; then
17784 if test "$curl_cv_have_def__WIN32" = "yes"; then
17785 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17786 fi
17787 fi
17788 #
17789 if test "$compiler_num" -ge "406"; then
17790 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17791 fi
17792 #
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017793 if test "$compiler_num" -ge "408"; then
17794 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
17795 fi
17796 #
17797 if test "$compiler_num" -ge "500"; then
17798 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
17799 fi
17800 #
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017801 if test "$compiler_num" -ge "600"; then
17802 tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
17803 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017804 tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017805 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017806 tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017807 fi
17808 #
17809 if test "$compiler_num" -ge "700"; then
17810 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
17811 tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
17812 tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
17813 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
17814 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017815 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017816 fi
17817 #
Elliott Hughes82be86d2017-09-20 17:00:17 -070017818 fi
17819 #
17820 if test "$compiler_num" -ge "300"; then
17821 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17822 else
17823 if test "x$cross_compiling" = "xyes"; then
17824 if test "$compiler_num" -ge "104"; then
17825 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17826 fi
17827 if test "$compiler_num" -ge "207"; then
17828 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17829 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17830 fi
17831 fi
17832 fi
17833 ;;
17834 #
17835 HP_UX_C)
17836 #
17837 if test "$want_warnings" = "yes"; then
17838 tmp_CFLAGS="$tmp_CFLAGS +w1"
17839 fi
17840 ;;
17841 #
17842 IBM_C)
17843 #
17844 tmp_CFLAGS="$tmp_CFLAGS"
17845 ;;
17846 #
17847 INTEL_UNIX_C)
17848 #
17849 if test "$want_warnings" = "yes"; then
17850 if test "$compiler_num" -gt "600"; then
17851 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17852 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17853 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17854 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17855 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17856 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17857 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17858 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17859 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17860 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17861 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17862 fi
17863 fi
17864 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17865 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17866 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17867 if test "$compiler_num" -ge "1000"; then
17868 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17869 fi
17870 ;;
17871 #
17872 INTEL_WINDOWS_C)
17873 #
17874 tmp_CFLAGS="$tmp_CFLAGS"
17875 ;;
17876 #
17877 LCC)
17878 #
17879 if test "$want_warnings" = "yes"; then
17880 tmp_CFLAGS="$tmp_CFLAGS"
17881 fi
17882 ;;
17883 #
17884 SGI_MIPS_C)
17885 #
17886 if test "$want_warnings" = "yes"; then
17887 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17888 fi
17889 ;;
17890 #
17891 SGI_MIPSPRO_C)
17892 #
17893 if test "$want_warnings" = "yes"; then
17894 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17895 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17896 fi
17897 ;;
17898 #
17899 SUNPRO_C)
17900 #
17901 if test "$want_warnings" = "yes"; then
17902 tmp_CFLAGS="$tmp_CFLAGS -v"
17903 fi
17904 ;;
17905 #
17906 TINY_C)
17907 #
17908 if test "$want_warnings" = "yes"; then
17909 tmp_CFLAGS="$tmp_CFLAGS -Wall"
17910 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17911 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17912 fi
17913 ;;
17914 #
17915 WATCOM_UNIX_C)
17916 #
17917 if test "$want_warnings" = "yes"; then
17918 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17919 fi
17920 ;;
17921 #
17922 WATCOM_WINDOWS_C)
17923 #
17924 tmp_CFLAGS="$tmp_CFLAGS"
17925 ;;
17926 #
17927 esac
17928 #
17929 squeeze tmp_CPPFLAGS
17930 squeeze tmp_CFLAGS
17931 #
17932 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
17934$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
17935 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17936 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17937 squeeze CPPFLAGS
17938 squeeze CFLAGS
17939
17940 tmp_compiler_works="unknown"
17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942/* end confdefs.h. */
17943
17944
17945
17946int main (void)
17947{
17948
17949 int i = 1;
17950 return i;
17951
17952 ;
17953 return 0;
17954}
17955
17956_ACEOF
17957if ac_fn_c_try_compile "$LINENO"; then :
17958
17959 tmp_compiler_works="yes"
17960
17961else
17962
17963 tmp_compiler_works="no"
17964 echo " " >&6
17965 sed 's/^/cc-fail: /' conftest.err >&6
17966 echo " " >&6
17967
17968fi
17969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17970 if test "$tmp_compiler_works" = "yes"; then
17971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17972/* end confdefs.h. */
17973
17974
17975
17976int main (void)
17977{
17978
17979 int i = 1;
17980 return i;
17981
17982 ;
17983 return 0;
17984}
17985
17986_ACEOF
17987if ac_fn_c_try_link "$LINENO"; then :
17988
17989 tmp_compiler_works="yes"
17990
17991else
17992
17993 tmp_compiler_works="no"
17994 echo " " >&6
17995 sed 's/^/link-fail: /' conftest.err >&6
17996 echo " " >&6
17997
17998fi
17999rm -f core conftest.err conftest.$ac_objext \
18000 conftest$ac_exeext conftest.$ac_ext
18001 fi
18002 if test "x$cross_compiling" != "xyes" &&
18003 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080018004
18005
18006 old=$LD_LIBRARY_PATH
18007 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18008 export LD_LIBRARY_PATH
18009 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070018010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18012as_fn_error $? "cannot run test program while cross compiling
18013See \`config.log' for more details" "$LINENO" 5; }
18014else
18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016/* end confdefs.h. */
18017
18018
18019# ifdef __STDC__
18020# include <stdlib.h>
18021# endif
18022
18023int main (void)
18024{
18025
18026 int i = 0;
18027 exit(i);
18028
18029 ;
18030 return 0;
18031}
18032
18033_ACEOF
18034if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080018035 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070018036
18037else
Elliott Hughesa93fb052018-12-12 14:22:48 -080018038 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070018039 echo " " >&6
18040 echo "run-fail: test program exited with status $ac_status" >&6
18041 echo " " >&6
18042
18043fi
18044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18045 conftest.$ac_objext conftest.beam conftest.$ac_ext
18046fi
18047
Elliott Hughesa93fb052018-12-12 14:22:48 -080018048 LD_LIBRARY_PATH=$old # restore
18049
Elliott Hughes82be86d2017-09-20 17:00:17 -070018050 fi
18051 if test "$tmp_compiler_works" = "yes"; then
18052
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18054$as_echo "yes" >&6; }
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18056$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18057
18058 else
18059
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18061$as_echo "no" >&6; }
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18063$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18064 CPPFLAGS="$tmp_save_CPPFLAGS"
18065 CFLAGS="$tmp_save_CFLAGS"
18066
18067 fi
18068
18069 fi
18070 #
18071 fi
18072
18073
18074if test "$compiler_id" = "INTEL_UNIX_C"; then
18075 #
18076 if test "$compiler_num" -ge "1000"; then
18077 CFLAGS="$CFLAGS -shared-intel"
18078 elif test "$compiler_num" -ge "900"; then
18079 CFLAGS="$CFLAGS -i-dynamic"
18080 fi
18081 #
18082fi
18083
18084
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18086$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088/* end confdefs.h. */
18089
18090
18091
18092int main (void)
18093{
18094
18095 force compilation error
18096
18097 ;
18098 return 0;
18099}
18100
18101_ACEOF
18102if ac_fn_c_try_compile "$LINENO"; then :
18103
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18105$as_echo "no" >&6; }
18106 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18107
18108else
18109
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18111$as_echo "yes" >&6; }
18112
18113fi
18114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18115
18116
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18118$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120/* end confdefs.h. */
18121
18122
18123 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18124
18125int main (void)
18126{
18127
18128 bad_t dummy;
18129
18130 ;
18131 return 0;
18132}
18133
18134_ACEOF
18135if ac_fn_c_try_compile "$LINENO"; then :
18136
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18138$as_echo "no" >&6; }
18139 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18140
18141else
18142
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18144$as_echo "yes" >&6; }
18145
18146fi
18147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18148
18149
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18151$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18153/* end confdefs.h. */
18154
18155
18156# include <stdlib.h>
18157 int rand(int n);
18158 int rand(int n)
18159 {
18160 if(n)
18161 return ++n;
18162 else
18163 return n;
18164 }
18165
18166int main (void)
18167{
18168
18169 int i[2]={0,0};
18170 int j = rand(i[0]);
18171 if(j)
18172 return j;
18173
18174 ;
18175 return 0;
18176}
18177
18178_ACEOF
18179if ac_fn_c_try_compile "$LINENO"; then :
18180
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18182$as_echo "no" >&6; }
18183 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18184
18185else
18186
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18188$as_echo "yes" >&6; }
18189
18190fi
18191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18192
18193
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18195$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18196 supports_symbol_hiding="no"
18197 symbol_hiding_CFLAGS=""
18198 symbol_hiding_EXTERN=""
18199 tmp_CFLAGS=""
18200 tmp_EXTERN=""
18201 case "$compiler_id" in
18202 CLANG)
18203 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18204 tmp_CFLAGS="-fvisibility=hidden"
18205 supports_symbol_hiding="yes"
18206 ;;
18207 GNU_C)
18208 if test "$compiler_num" -ge "304"; then
18209 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18210 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18211 tmp_CFLAGS="-fvisibility=hidden"
18212 supports_symbol_hiding="yes"
18213 fi
18214 fi
18215 ;;
18216 INTEL_UNIX_C)
18217 if test "$compiler_num" -ge "900"; then
18218 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18219 tmp_save_CFLAGS="$CFLAGS"
18220 CFLAGS="$CFLAGS -fvisibility=hidden"
18221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222/* end confdefs.h. */
18223
18224
18225# include <stdio.h>
18226
18227int main (void)
18228{
18229
18230 printf("icc fvisibility bug test");
18231
18232 ;
18233 return 0;
18234}
18235
18236_ACEOF
18237if ac_fn_c_try_link "$LINENO"; then :
18238
18239 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18240 tmp_CFLAGS="-fvisibility=hidden"
18241 supports_symbol_hiding="yes"
18242
18243fi
18244rm -f core conftest.err conftest.$ac_objext \
18245 conftest$ac_exeext conftest.$ac_ext
18246 CFLAGS="$tmp_save_CFLAGS"
18247 fi
18248 fi
18249 ;;
18250 SUNPRO_C)
18251 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18252 tmp_EXTERN="__global"
18253 tmp_CFLAGS="-xldscope=hidden"
18254 supports_symbol_hiding="yes"
18255 fi
18256 ;;
18257 esac
18258 if test "$supports_symbol_hiding" = "yes"; then
18259 tmp_save_CFLAGS="$CFLAGS"
18260 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18261 squeeze CFLAGS
18262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18263/* end confdefs.h. */
18264
18265
18266 $tmp_EXTERN char *dummy(char *buff);
18267 char *dummy(char *buff)
18268 {
18269 if(buff)
18270 return ++buff;
18271 else
18272 return buff;
18273 }
18274
18275int main (void)
18276{
18277
18278 char b[16];
18279 char *r = dummy(&b[0]);
18280 if(r)
18281 return (int)*r;
18282
18283 ;
18284 return 0;
18285}
18286
18287_ACEOF
18288if ac_fn_c_try_compile "$LINENO"; then :
18289
18290 supports_symbol_hiding="yes"
18291 if test -f conftest.err; then
18292 grep 'visibility' conftest.err >/dev/null
18293 if test "$?" -eq "0"; then
18294 supports_symbol_hiding="no"
18295 fi
18296 fi
18297
18298else
18299
18300 supports_symbol_hiding="no"
18301 echo " " >&6
18302 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18303 sed 's/^/cc-err: /' conftest.err >&6
18304 echo " " >&6
18305
18306fi
18307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308 CFLAGS="$tmp_save_CFLAGS"
18309 fi
18310 if test "$supports_symbol_hiding" = "yes"; then
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18312$as_echo "yes" >&6; }
18313 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18314 symbol_hiding_EXTERN="$tmp_EXTERN"
18315 else
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18317$as_echo "no" >&6; }
18318 fi
18319
18320
18321
18322 supports_curldebug="unknown"
18323 if test "$want_curldebug" = "yes"; then
18324 if test "x$enable_shared" != "xno" &&
18325 test "x$enable_shared" != "xyes"; then
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18327$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18328 supports_curldebug="no"
18329 fi
18330 if test "x$enable_static" != "xno" &&
18331 test "x$enable_static" != "xyes"; then
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18333$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18334 supports_curldebug="no"
18335 fi
18336 if test "$supports_curldebug" != "no"; then
18337 if test "$enable_shared" = "yes" &&
18338 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18339 supports_curldebug="no"
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18341$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18342 fi
18343 fi
18344 fi
18345 #
18346 if test "$want_curldebug" = "yes"; then
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18348$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18349 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18351$as_echo "$supports_curldebug" >&6; }
18352 if test "$supports_curldebug" = "no"; then
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18354$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18355 want_curldebug="no"
18356 fi
18357 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070018358
18359 if test x$want_curldebug = xyes; then
18360 CURLDEBUG_TRUE=
18361 CURLDEBUG_FALSE='#'
18362else
18363 CURLDEBUG_TRUE='#'
18364 CURLDEBUG_FALSE=
18365fi
18366
18367
18368supports_unittests=yes
18369# cross-compilation of unit tests static library/programs fails when
18370# libcurl shared library is built. This might be due to a libtool or
18371# automake issue. In this case we disable unit tests.
18372if test "x$cross_compiling" != "xno" &&
18373 test "x$enable_shared" != "xno"; then
18374 supports_unittests=no
18375fi
18376
18377# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18378# a problem related with OpenSSL headers and library versions not matching.
18379# Disable unit tests while time to further investigate this is found.
18380case $host in
18381 mips-sgi-irix6.5)
18382 if test "$compiler_id" = "GNU_C"; then
18383 supports_unittests=no
18384 fi
18385 ;;
18386esac
18387
18388# All AIX autobuilds fails unit tests linking against unittests library
18389# due to unittests library being built with no symbols or members. Libtool ?
18390# Disable unit tests while time to further investigate this is found.
18391case $host_os in
18392 aix*)
18393 supports_unittests=no
18394 ;;
18395esac
18396
18397if test "x$want_debug" = "xyes" &&
18398 test "x$supports_unittests" = "xyes"; then
18399 want_unittests=yes
18400else
18401 want_unittests=no
18402fi
18403 if test x$want_unittests = xyes; then
18404 BUILD_UNITTESTS_TRUE=
18405 BUILD_UNITTESTS_FALSE='#'
18406else
18407 BUILD_UNITTESTS_TRUE='#'
18408 BUILD_UNITTESTS_FALSE=
18409fi
18410
18411
18412
18413
18414
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18416$as_echo_n "checking for windows.h... " >&6; }
18417if ${curl_cv_header_windows_h+:} false; then :
18418 $as_echo_n "(cached) " >&6
18419else
18420
18421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18422/* end confdefs.h. */
18423
18424
18425#undef inline
18426#ifndef WIN32_LEAN_AND_MEAN
18427#define WIN32_LEAN_AND_MEAN
18428#endif
18429#include <windows.h>
18430
18431int main (void)
18432{
18433
18434#if defined(__CYGWIN__) || defined(__CEGCC__)
18435 HAVE_WINDOWS_H shall not be defined.
18436#else
18437 int dummy=2*WINVER;
18438#endif
18439
18440 ;
18441 return 0;
18442}
18443
18444_ACEOF
18445if ac_fn_c_try_compile "$LINENO"; then :
18446
18447 curl_cv_header_windows_h="yes"
18448
18449else
18450
18451 curl_cv_header_windows_h="no"
18452
18453fi
18454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18455
18456fi
18457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18458$as_echo "$curl_cv_header_windows_h" >&6; }
18459 case "$curl_cv_header_windows_h" in
18460 yes)
18461
18462cat >>confdefs.h <<_ACEOF
18463#define HAVE_WINDOWS_H 1
18464_ACEOF
18465
18466 ;;
18467 esac
18468
18469
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18471$as_echo_n "checking whether build target is a native Windows one... " >&6; }
18472if ${curl_cv_native_windows+:} false; then :
18473 $as_echo_n "(cached) " >&6
18474else
18475
18476 if test "$curl_cv_header_windows_h" = "no"; then
18477 curl_cv_native_windows="no"
18478 else
18479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480/* end confdefs.h. */
18481
18482
18483
18484int main (void)
18485{
18486
18487#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18488 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18489 int dummy=1;
18490#else
18491 Not a native Windows build target.
18492#endif
18493
18494 ;
18495 return 0;
18496}
18497
18498_ACEOF
18499if ac_fn_c_try_compile "$LINENO"; then :
18500
18501 curl_cv_native_windows="yes"
18502
18503else
18504
18505 curl_cv_native_windows="no"
18506
18507fi
18508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18509 fi
18510
18511fi
18512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18513$as_echo "$curl_cv_native_windows" >&6; }
18514 if test "x$curl_cv_native_windows" = xyes; then
18515 DOING_NATIVE_WINDOWS_TRUE=
18516 DOING_NATIVE_WINDOWS_FALSE='#'
18517else
18518 DOING_NATIVE_WINDOWS_TRUE='#'
18519 DOING_NATIVE_WINDOWS_FALSE=
18520fi
18521
18522
18523case X-"$curl_cv_native_windows" in
18524 X-yes)
18525
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18527$as_echo_n "checking for winsock.h... " >&6; }
18528if ${curl_cv_header_winsock_h+:} false; then :
18529 $as_echo_n "(cached) " >&6
18530else
18531
18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533/* end confdefs.h. */
18534
18535
18536#undef inline
18537#ifndef WIN32_LEAN_AND_MEAN
18538#define WIN32_LEAN_AND_MEAN
18539#endif
18540#include <windows.h>
18541#include <winsock.h>
18542
18543int main (void)
18544{
18545
18546#if defined(__CYGWIN__) || defined(__CEGCC__)
18547 HAVE_WINSOCK_H shall not be defined.
18548#else
18549 int dummy=WSACleanup();
18550#endif
18551
18552 ;
18553 return 0;
18554}
18555
18556_ACEOF
18557if ac_fn_c_try_compile "$LINENO"; then :
18558
18559 curl_cv_header_winsock_h="yes"
18560
18561else
18562
18563 curl_cv_header_winsock_h="no"
18564
18565fi
18566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18567
18568fi
18569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18570$as_echo "$curl_cv_header_winsock_h" >&6; }
18571 case "$curl_cv_header_winsock_h" in
18572 yes)
18573
18574cat >>confdefs.h <<_ACEOF
18575#define HAVE_WINSOCK_H 1
18576_ACEOF
18577
18578 ;;
18579 esac
18580
18581
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18583$as_echo_n "checking for winsock2.h... " >&6; }
18584if ${curl_cv_header_winsock2_h+:} false; then :
18585 $as_echo_n "(cached) " >&6
18586else
18587
18588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18589/* end confdefs.h. */
18590
18591
18592#undef inline
18593#ifndef WIN32_LEAN_AND_MEAN
18594#define WIN32_LEAN_AND_MEAN
18595#endif
18596#include <windows.h>
18597#include <winsock2.h>
18598
18599int main (void)
18600{
18601
18602#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18603 HAVE_WINSOCK2_H shall not be defined.
18604#else
18605 int dummy=2*IPPROTO_ESP;
18606#endif
18607
18608 ;
18609 return 0;
18610}
18611
18612_ACEOF
18613if ac_fn_c_try_compile "$LINENO"; then :
18614
18615 curl_cv_header_winsock2_h="yes"
18616
18617else
18618
18619 curl_cv_header_winsock2_h="no"
18620
18621fi
18622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623
18624fi
18625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18626$as_echo "$curl_cv_header_winsock2_h" >&6; }
18627 case "$curl_cv_header_winsock2_h" in
18628 yes)
18629
18630cat >>confdefs.h <<_ACEOF
18631#define HAVE_WINSOCK2_H 1
18632_ACEOF
18633
18634 ;;
18635 esac
18636
18637
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18639$as_echo_n "checking for ws2tcpip.h... " >&6; }
18640if ${curl_cv_header_ws2tcpip_h+:} false; then :
18641 $as_echo_n "(cached) " >&6
18642else
18643
18644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645/* end confdefs.h. */
18646
18647
18648#undef inline
18649#ifndef WIN32_LEAN_AND_MEAN
18650#define WIN32_LEAN_AND_MEAN
18651#endif
18652#include <windows.h>
18653#include <winsock2.h>
18654#include <ws2tcpip.h>
18655
18656int main (void)
18657{
18658
18659#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18660 HAVE_WS2TCPIP_H shall not be defined.
18661#else
18662 int dummy=2*IP_PKTINFO;
18663#endif
18664
18665 ;
18666 return 0;
18667}
18668
18669_ACEOF
18670if ac_fn_c_try_compile "$LINENO"; then :
18671
18672 curl_cv_header_ws2tcpip_h="yes"
18673
18674else
18675
18676 curl_cv_header_ws2tcpip_h="no"
18677
18678fi
18679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18680
18681fi
18682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18683$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18684 case "$curl_cv_header_ws2tcpip_h" in
18685 yes)
18686
18687cat >>confdefs.h <<_ACEOF
18688#define HAVE_WS2TCPIP_H 1
18689_ACEOF
18690
18691 ;;
18692 esac
18693
18694
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18696$as_echo_n "checking for winldap.h... " >&6; }
18697if ${curl_cv_header_winldap_h+:} false; then :
18698 $as_echo_n "(cached) " >&6
18699else
18700
18701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702/* end confdefs.h. */
18703
18704
18705#undef inline
18706#ifdef HAVE_WINDOWS_H
18707#ifndef WIN32_LEAN_AND_MEAN
18708#define WIN32_LEAN_AND_MEAN
18709#endif
18710#include <windows.h>
18711#endif
18712#include <winldap.h>
18713
18714int main (void)
18715{
18716
18717#if defined(__CYGWIN__) || defined(__CEGCC__)
18718 HAVE_WINLDAP_H shall not be defined.
18719#else
18720 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18721 ULONG res = ldap_unbind(ldp);
18722#endif
18723
18724 ;
18725 return 0;
18726}
18727
18728_ACEOF
18729if ac_fn_c_try_compile "$LINENO"; then :
18730
18731 curl_cv_header_winldap_h="yes"
18732
18733else
18734
18735 curl_cv_header_winldap_h="no"
18736
18737fi
18738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18739
18740fi
18741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18742$as_echo "$curl_cv_header_winldap_h" >&6; }
18743 case "$curl_cv_header_winldap_h" in
18744 yes)
18745
18746cat >>confdefs.h <<_ACEOF
18747#define HAVE_WINLDAP_H 1
18748_ACEOF
18749
18750 ;;
18751 esac
18752
18753
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18755$as_echo_n "checking for winber.h... " >&6; }
18756if ${curl_cv_header_winber_h+:} false; then :
18757 $as_echo_n "(cached) " >&6
18758else
18759
18760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761/* end confdefs.h. */
18762
18763
18764#undef inline
18765#ifdef HAVE_WINDOWS_H
18766#ifndef WIN32_LEAN_AND_MEAN
18767#define WIN32_LEAN_AND_MEAN
18768#endif
18769#include <windows.h>
18770#endif
18771#include <winldap.h>
18772#include <winber.h>
18773
18774int main (void)
18775{
18776
18777#if defined(__CYGWIN__) || defined(__CEGCC__)
18778 HAVE_WINBER_H shall not be defined.
18779#else
18780 BERVAL *bvp = NULL;
18781 BerElement *bep = ber_init(bvp);
18782 ber_free(bep, 1);
18783#endif
18784
18785 ;
18786 return 0;
18787}
18788
18789_ACEOF
18790if ac_fn_c_try_compile "$LINENO"; then :
18791
18792 curl_cv_header_winber_h="yes"
18793
18794else
18795
18796 curl_cv_header_winber_h="no"
18797
18798fi
18799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18800
18801fi
18802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
18803$as_echo "$curl_cv_header_winber_h" >&6; }
18804 case "$curl_cv_header_winber_h" in
18805 yes)
18806
18807cat >>confdefs.h <<_ACEOF
18808#define HAVE_WINBER_H 1
18809_ACEOF
18810
18811 ;;
18812 esac
18813
18814 ;;
18815 *)
18816 curl_cv_header_winsock_h="no"
18817 curl_cv_header_winsock2_h="no"
18818 curl_cv_header_ws2tcpip_h="no"
18819 curl_cv_header_winldap_h="no"
18820 curl_cv_header_winber_h="no"
18821 ;;
18822esac
18823
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18825$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18826 curl_win32_file_api="no"
18827 if test "$curl_cv_header_windows_h" = "yes"; then
18828 if test x"$enable_largefile" != "xno"; then
18829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18830/* end confdefs.h. */
18831
18832
18833
18834int main (void)
18835{
18836
18837#if !defined(_WIN32_WCE) && \
18838 (defined(__MINGW32__) || \
18839 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18840 int dummy=1;
18841#else
18842 WIN32 large file API not supported.
18843#endif
18844
18845 ;
18846 return 0;
18847}
18848
18849_ACEOF
18850if ac_fn_c_try_compile "$LINENO"; then :
18851
18852 curl_win32_file_api="win32_large_files"
18853
18854fi
18855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18856 fi
18857 if test "$curl_win32_file_api" = "no"; then
18858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18859/* end confdefs.h. */
18860
18861
18862
18863int main (void)
18864{
18865
18866#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18867 int dummy=1;
18868#else
18869 WIN32 small file API not supported.
18870#endif
18871
18872 ;
18873 return 0;
18874}
18875
18876_ACEOF
18877if ac_fn_c_try_compile "$LINENO"; then :
18878
18879 curl_win32_file_api="win32_small_files"
18880
18881fi
18882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18883 fi
18884 fi
18885 case "$curl_win32_file_api" in
18886 win32_large_files)
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
18888$as_echo "yes (large file enabled)" >&6; }
18889
18890cat >>confdefs.h <<_ACEOF
18891#define USE_WIN32_LARGE_FILES 1
18892_ACEOF
18893
18894 ;;
18895 win32_small_files)
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
18897$as_echo "yes (large file disabled)" >&6; }
18898
18899cat >>confdefs.h <<_ACEOF
18900#define USE_WIN32_SMALL_FILES 1
18901_ACEOF
18902
18903 ;;
18904 *)
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18906$as_echo "no" >&6; }
18907 ;;
18908 esac
18909
18910
18911
18912
18913 tst_cflags="no"
18914 case $host_os in
18915 darwin*)
18916 tst_cflags="yes"
18917 ;;
18918 esac
18919
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
18921$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
18923$as_echo "$tst_cflags" >&6; };
18924
18925 if test "$tst_cflags" = "yes"; then
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
18927$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
18928 min=""
18929 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
18930 min="-mmacosx-version-min=10.8"
18931 CFLAGS="$CFLAGS $min"
18932 fi
18933 if test -z "$min"; then
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
18935$as_echo "set by user" >&6; }
18936 else
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
18938$as_echo "$min set" >&6; }
18939 fi
18940
18941 old_CFLAGS=$CFLAGS
18942 CFLAGS="$CFLAGS -Werror=partial-availability"
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
18944$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946/* end confdefs.h. */
18947
18948int main (void)
18949{
18950
18951 ;
18952 return 0;
18953}
18954_ACEOF
18955if ac_fn_c_try_compile "$LINENO"; then :
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18957$as_echo "yes" >&6; }
18958else
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18960$as_echo "no" >&6; }
18961 CFLAGS=$old_CFLAGS
18962fi
18963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18964 fi
18965
18966
18967
Alex Deymo486467e2017-12-19 19:04:07 +010018968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
18969$as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
18970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18971/* end confdefs.h. */
18972
18973
18974#include <stdlib.h>
18975
18976int main (void)
18977{
18978
18979 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
18980
18981 ;
18982 return 0;
18983}
18984
18985_ACEOF
18986if ac_fn_c_try_compile "$LINENO"; then :
18987
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18989$as_echo "yes" >&6; }
18990
18991cat >>confdefs.h <<_ACEOF
18992#define HAVE_BUILTIN_AVAILABLE 1
18993_ACEOF
18994
18995
18996else
18997
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18999$as_echo "no" >&6; }
19000
19001fi
19002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19003
19004
Elliott Hughes82be86d2017-09-20 17:00:17 -070019005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19006$as_echo_n "checking whether to support http... " >&6; }
19007# Check whether --enable-http was given.
19008if test "${enable_http+set}" = set; then :
19009 enableval=$enable_http; case "$enableval" in
19010 no)
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19012$as_echo "no" >&6; }
19013
19014$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19015
19016 disable_http="yes"
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19018$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19019 CURL_DISABLE_HTTP=1
19020
19021
19022$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19023
19024 CURL_DISABLE_RTSP=1
19025
19026 ;;
19027 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19028$as_echo "yes" >&6; }
19029 ;;
19030 esac
19031else
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19033$as_echo "yes" >&6; }
19034
19035fi
19036
19037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19038$as_echo_n "checking whether to support ftp... " >&6; }
19039# Check whether --enable-ftp was given.
19040if test "${enable_ftp+set}" = set; then :
19041 enableval=$enable_ftp; case "$enableval" in
19042 no)
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19044$as_echo "no" >&6; }
19045
19046$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19047
19048 CURL_DISABLE_FTP=1
19049
19050 ;;
19051 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19052$as_echo "yes" >&6; }
19053 ;;
19054 esac
19055else
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19057$as_echo "yes" >&6; }
19058
19059fi
19060
19061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19062$as_echo_n "checking whether to support file... " >&6; }
19063# Check whether --enable-file was given.
19064if test "${enable_file+set}" = set; then :
19065 enableval=$enable_file; case "$enableval" in
19066 no)
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19068$as_echo "no" >&6; }
19069
19070$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19071
19072 CURL_DISABLE_FILE=1
19073
19074 ;;
19075 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19076$as_echo "yes" >&6; }
19077 ;;
19078 esac
19079else
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19081$as_echo "yes" >&6; }
19082
19083fi
19084
19085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19086$as_echo_n "checking whether to support ldap... " >&6; }
19087# Check whether --enable-ldap was given.
19088if test "${enable_ldap+set}" = set; then :
19089 enableval=$enable_ldap; case "$enableval" in
19090 no)
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19092$as_echo "no" >&6; }
19093
19094$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19095
19096 CURL_DISABLE_LDAP=1
19097
19098 ;;
19099 *)
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19101$as_echo "yes" >&6; }
19102 ;;
19103 esac
19104else
19105
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19107$as_echo "yes" >&6; }
19108
19109fi
19110
19111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19112$as_echo_n "checking whether to support ldaps... " >&6; }
19113# Check whether --enable-ldaps was given.
19114if test "${enable_ldaps+set}" = set; then :
19115 enableval=$enable_ldaps; case "$enableval" in
19116 no)
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19118$as_echo "no" >&6; }
19119
19120$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19121
19122 CURL_DISABLE_LDAPS=1
19123
19124 ;;
19125 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19127$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19128
19129$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19130
19131 CURL_DISABLE_LDAPS=1
19132
19133 else
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19135$as_echo "yes" >&6; }
19136
19137$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19138
19139 HAVE_LDAP_SSL=1
19140
19141 fi
19142 ;;
19143 esac
19144else
19145
19146 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19148$as_echo "no" >&6; }
19149
19150$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19151
19152 CURL_DISABLE_LDAPS=1
19153
19154 else
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19156$as_echo "yes" >&6; }
19157
19158$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19159
19160 HAVE_LDAP_SSL=1
19161
19162 fi
19163
19164fi
19165
19166
19167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19168$as_echo_n "checking whether to support rtsp... " >&6; }
19169# Check whether --enable-rtsp was given.
19170if test "${enable_rtsp+set}" = set; then :
19171 enableval=$enable_rtsp; case "$enableval" in
19172 no)
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19174$as_echo "no" >&6; }
19175
19176$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19177
19178 CURL_DISABLE_RTSP=1
19179
19180 ;;
19181 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19182 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19183 else
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19185$as_echo "yes" >&6; }
19186 curl_rtsp_msg="enabled"
19187 fi
19188 ;;
19189 esac
19190else
19191 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19193$as_echo "yes" >&6; }
19194 curl_rtsp_msg="enabled"
19195 else
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19197$as_echo "no" >&6; }
19198 fi
19199
19200fi
19201
19202
19203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19204$as_echo_n "checking whether to support proxies... " >&6; }
19205# Check whether --enable-proxy was given.
19206if test "${enable_proxy+set}" = set; then :
19207 enableval=$enable_proxy; case "$enableval" in
19208 no)
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19210$as_echo "no" >&6; }
19211
19212$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19213
19214 CURL_DISABLE_PROXY=1
19215
19216 ;;
19217 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19218$as_echo "yes" >&6; }
19219 ;;
19220 esac
19221else
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19223$as_echo "yes" >&6; }
19224
19225fi
19226
19227
19228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19229$as_echo_n "checking whether to support dict... " >&6; }
19230# Check whether --enable-dict was given.
19231if test "${enable_dict+set}" = set; then :
19232 enableval=$enable_dict; case "$enableval" in
19233 no)
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19235$as_echo "no" >&6; }
19236
19237$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19238
19239 CURL_DISABLE_DICT=1
19240
19241 ;;
19242 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19243$as_echo "yes" >&6; }
19244 ;;
19245 esac
19246else
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19248$as_echo "yes" >&6; }
19249
19250fi
19251
19252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19253$as_echo_n "checking whether to support telnet... " >&6; }
19254# Check whether --enable-telnet was given.
19255if test "${enable_telnet+set}" = set; then :
19256 enableval=$enable_telnet; case "$enableval" in
19257 no)
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259$as_echo "no" >&6; }
19260
19261$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19262
19263 CURL_DISABLE_TELNET=1
19264
19265 ;;
19266 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19267$as_echo "yes" >&6; }
19268 ;;
19269 esac
19270else
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19272$as_echo "yes" >&6; }
19273
19274fi
19275
19276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19277$as_echo_n "checking whether to support tftp... " >&6; }
19278# Check whether --enable-tftp was given.
19279if test "${enable_tftp+set}" = set; then :
19280 enableval=$enable_tftp; case "$enableval" in
19281 no)
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19283$as_echo "no" >&6; }
19284
19285$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19286
19287 CURL_DISABLE_TFTP=1
19288
19289 ;;
19290 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19291$as_echo "yes" >&6; }
19292 ;;
19293 esac
19294else
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19296$as_echo "yes" >&6; }
19297
19298fi
19299
19300
19301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19302$as_echo_n "checking whether to support pop3... " >&6; }
19303# Check whether --enable-pop3 was given.
19304if test "${enable_pop3+set}" = set; then :
19305 enableval=$enable_pop3; case "$enableval" in
19306 no)
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19308$as_echo "no" >&6; }
19309
19310$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19311
19312 CURL_DISABLE_POP3=1
19313
19314 ;;
19315 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19316$as_echo "yes" >&6; }
19317 ;;
19318 esac
19319else
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19321$as_echo "yes" >&6; }
19322
19323fi
19324
19325
19326
19327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19328$as_echo_n "checking whether to support imap... " >&6; }
19329# Check whether --enable-imap was given.
19330if test "${enable_imap+set}" = set; then :
19331 enableval=$enable_imap; case "$enableval" in
19332 no)
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19334$as_echo "no" >&6; }
19335
19336$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19337
19338 CURL_DISABLE_IMAP=1
19339
19340 ;;
19341 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19342$as_echo "yes" >&6; }
19343 ;;
19344 esac
19345else
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19347$as_echo "yes" >&6; }
19348
19349fi
19350
19351
19352
19353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19354$as_echo_n "checking whether to support smb... " >&6; }
19355# Check whether --enable-smb was given.
19356if test "${enable_smb+set}" = set; then :
19357 enableval=$enable_smb; case "$enableval" in
19358 no)
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19360$as_echo "no" >&6; }
19361
19362$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19363
19364 CURL_DISABLE_SMB=1
19365
19366 ;;
19367 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19368$as_echo "yes" >&6; }
19369 ;;
19370 esac
19371else
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19373$as_echo "yes" >&6; }
19374
19375fi
19376
19377
19378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19379$as_echo_n "checking whether to support smtp... " >&6; }
19380# Check whether --enable-smtp was given.
19381if test "${enable_smtp+set}" = set; then :
19382 enableval=$enable_smtp; case "$enableval" in
19383 no)
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19385$as_echo "no" >&6; }
19386
19387$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19388
19389 CURL_DISABLE_SMTP=1
19390
19391 ;;
19392 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19393$as_echo "yes" >&6; }
19394 ;;
19395 esac
19396else
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19398$as_echo "yes" >&6; }
19399
19400fi
19401
19402
19403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19404$as_echo_n "checking whether to support gopher... " >&6; }
19405# Check whether --enable-gopher was given.
19406if test "${enable_gopher+set}" = set; then :
19407 enableval=$enable_gopher; case "$enableval" in
19408 no)
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19410$as_echo "no" >&6; }
19411
19412$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19413
19414 CURL_DISABLE_GOPHER=1
19415
19416 ;;
19417 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19418$as_echo "yes" >&6; }
19419 ;;
19420 esac
19421else
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19423$as_echo "yes" >&6; }
19424
19425fi
19426
19427
19428
19429
19430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19431$as_echo_n "checking whether to provide built-in manual... " >&6; }
19432# Check whether --enable-manual was given.
19433if test "${enable_manual+set}" = set; then :
19434 enableval=$enable_manual; case "$enableval" in
19435 no)
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19437$as_echo "no" >&6; }
19438 ;;
19439 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19440$as_echo "yes" >&6; }
19441 USE_MANUAL="1"
19442 ;;
19443 esac
19444else
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19446$as_echo "yes" >&6; }
19447 USE_MANUAL="1"
19448
19449fi
19450
19451
19452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19453$as_echo_n "checking whether to enable generation of C code... " >&6; }
19454# Check whether --enable-libcurl_option was given.
19455if test "${enable_libcurl_option+set}" = set; then :
19456 enableval=$enable_libcurl_option; case "$enableval" in
19457 no)
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19459$as_echo "no" >&6; }
19460
19461$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19462
19463 curl_libcurl_msg="no"
19464 ;;
19465 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19466$as_echo "yes" >&6; }
19467 ;;
19468 esac
19469else
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19471$as_echo "yes" >&6; }
19472
19473fi
19474
19475
19476
19477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19478$as_echo_n "checking whether to use libgcc... " >&6; }
19479# Check whether --enable-libgcc was given.
19480if test "${enable_libgcc+set}" = set; then :
19481 enableval=$enable_libgcc; case "$enableval" in
19482 yes)
19483 LIBS="-lgcc $LIBS"
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19485$as_echo "yes" >&6; }
19486 ;;
19487 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19488$as_echo "no" >&6; }
19489 ;;
19490 esac
19491else
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19493$as_echo "no" >&6; }
19494
19495fi
19496
19497
19498
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19500$as_echo_n "checking if X/Open network library is required... " >&6; }
19501 tst_lib_xnet_required="no"
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503/* end confdefs.h. */
19504
19505
19506int main (void)
19507{
19508#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19509 return 0;
19510#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19511 return 0;
19512#else
19513 force compilation error
19514#endif
19515}
19516
19517
19518_ACEOF
19519if ac_fn_c_try_compile "$LINENO"; then :
19520
19521 tst_lib_xnet_required="yes"
19522 LIBS="-lxnet $LIBS"
19523
19524fi
19525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19527$as_echo "$tst_lib_xnet_required" >&6; }
19528
19529
19530ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19531if test "x$ac_cv_func_gethostbyname" = xyes; then :
19532 HAVE_GETHOSTBYNAME="1"
19533
19534else
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19536$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19537if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19538 $as_echo_n "(cached) " >&6
19539else
19540 ac_check_lib_save_LIBS=$LIBS
19541LIBS="-lnsl $LIBS"
19542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19543/* end confdefs.h. */
19544
19545
19546#ifdef __cplusplus
19547extern "C"
19548#endif
19549char gethostbyname ();
19550int main (void)
19551{
19552return gethostbyname ();
19553 ;
19554 return 0;
19555}
19556_ACEOF
19557if ac_fn_c_try_link "$LINENO"; then :
19558 ac_cv_lib_nsl_gethostbyname=yes
19559else
19560 ac_cv_lib_nsl_gethostbyname=no
19561fi
19562rm -f core conftest.err conftest.$ac_objext \
19563 conftest$ac_exeext conftest.$ac_ext
19564LIBS=$ac_check_lib_save_LIBS
19565fi
19566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19567$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19568if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19569 HAVE_GETHOSTBYNAME="1"
19570 LIBS="-lnsl $LIBS"
19571
19572fi
19573
19574
19575fi
19576
19577
19578if test "$HAVE_GETHOSTBYNAME" != "1"
19579then
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19581$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19582if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19583 $as_echo_n "(cached) " >&6
19584else
19585 ac_check_lib_save_LIBS=$LIBS
19586LIBS="-lsocket $LIBS"
19587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19588/* end confdefs.h. */
19589
19590
19591#ifdef __cplusplus
19592extern "C"
19593#endif
19594char gethostbyname ();
19595int main (void)
19596{
19597return gethostbyname ();
19598 ;
19599 return 0;
19600}
19601_ACEOF
19602if ac_fn_c_try_link "$LINENO"; then :
19603 ac_cv_lib_socket_gethostbyname=yes
19604else
19605 ac_cv_lib_socket_gethostbyname=no
19606fi
19607rm -f core conftest.err conftest.$ac_objext \
19608 conftest$ac_exeext conftest.$ac_ext
19609LIBS=$ac_check_lib_save_LIBS
19610fi
19611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19612$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19613if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19614 HAVE_GETHOSTBYNAME="1"
19615 LIBS="-lsocket $LIBS"
19616
19617fi
19618
19619fi
19620
19621if test "$HAVE_GETHOSTBYNAME" != "1"
19622then
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19624$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19625if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19626 $as_echo_n "(cached) " >&6
19627else
19628 ac_check_lib_save_LIBS=$LIBS
19629LIBS="-lwatt $LIBS"
19630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19631/* end confdefs.h. */
19632
19633
19634#ifdef __cplusplus
19635extern "C"
19636#endif
19637char gethostbyname ();
19638int main (void)
19639{
19640return gethostbyname ();
19641 ;
19642 return 0;
19643}
19644_ACEOF
19645if ac_fn_c_try_link "$LINENO"; then :
19646 ac_cv_lib_watt_gethostbyname=yes
19647else
19648 ac_cv_lib_watt_gethostbyname=no
19649fi
19650rm -f core conftest.err conftest.$ac_objext \
19651 conftest$ac_exeext conftest.$ac_ext
19652LIBS=$ac_check_lib_save_LIBS
19653fi
19654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19655$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19656if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19657 HAVE_GETHOSTBYNAME="1"
19658 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19659 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19660 LIBS="-lwatt $LIBS"
19661
19662fi
19663
19664fi
19665
19666if test "$HAVE_GETHOSTBYNAME" != "1"
19667then
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19669$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19670 my_ac_save_LIBS=$LIBS
19671 LIBS="-lnsl -lsocket $LIBS"
19672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19673/* end confdefs.h. */
19674
19675
19676
19677int main (void)
19678{
19679
19680 gethostbyname();
19681
19682 ;
19683 return 0;
19684}
19685
19686_ACEOF
19687if ac_fn_c_try_link "$LINENO"; then :
19688
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19690$as_echo "yes" >&6; }
19691 HAVE_GETHOSTBYNAME="1"
19692
19693else
19694
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19696$as_echo "no" >&6; }
19697 LIBS=$my_ac_save_LIBS
19698
19699fi
19700rm -f core conftest.err conftest.$ac_objext \
19701 conftest$ac_exeext conftest.$ac_ext
19702fi
19703
19704if test "$HAVE_GETHOSTBYNAME" != "1"
19705then
19706 if test "$curl_cv_header_windows_h" = "yes"; then
19707 if test "$curl_cv_header_winsock_h" = "yes"; then
19708 case $host in
19709 *-*-mingw32ce*)
19710 winsock_LIB="-lwinsock"
19711 ;;
19712 *)
19713 winsock_LIB="-lwsock32"
19714 ;;
19715 esac
19716 fi
19717 if test "$curl_cv_header_winsock2_h" = "yes"; then
19718 winsock_LIB="-lws2_32"
19719 fi
19720 if test ! -z "$winsock_LIB"; then
19721 my_ac_save_LIBS=$LIBS
19722 LIBS="$winsock_LIB $LIBS"
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19724$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19726/* end confdefs.h. */
19727
19728
19729#ifdef HAVE_WINDOWS_H
19730#ifndef WIN32_LEAN_AND_MEAN
19731#define WIN32_LEAN_AND_MEAN
19732#endif
19733#include <windows.h>
19734#ifdef HAVE_WINSOCK2_H
19735#include <winsock2.h>
19736#else
19737#ifdef HAVE_WINSOCK_H
19738#include <winsock.h>
19739#endif
19740#endif
19741#endif
19742
19743int main (void)
19744{
19745
19746 gethostbyname("www.dummysite.com");
19747
19748 ;
19749 return 0;
19750}
19751
19752_ACEOF
19753if ac_fn_c_try_link "$LINENO"; then :
19754
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19756$as_echo "yes" >&6; }
19757 HAVE_GETHOSTBYNAME="1"
19758
19759else
19760
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19762$as_echo "no" >&6; }
19763 winsock_LIB=""
19764 LIBS=$my_ac_save_LIBS
19765
19766fi
19767rm -f core conftest.err conftest.$ac_objext \
19768 conftest$ac_exeext conftest.$ac_ext
19769 fi
19770 fi
19771fi
19772
19773if test "$HAVE_GETHOSTBYNAME" != "1"
19774then
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19776$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778/* end confdefs.h. */
19779
19780
19781/* Older Minix versions may need <net/gen/netdb.h> here instead */
19782#include <netdb.h>
19783
19784int main (void)
19785{
19786
19787 gethostbyname("www.dummysite.com");
19788
19789 ;
19790 return 0;
19791}
19792
19793_ACEOF
19794if ac_fn_c_try_link "$LINENO"; then :
19795
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19797$as_echo "yes" >&6; }
19798 HAVE_GETHOSTBYNAME="1"
19799
19800else
19801
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19803$as_echo "no" >&6; }
19804
19805fi
19806rm -f core conftest.err conftest.$ac_objext \
19807 conftest$ac_exeext conftest.$ac_ext
19808fi
19809
19810if test "$HAVE_GETHOSTBYNAME" != "1"
19811then
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19813$as_echo_n "checking for gethostbyname for eCos... " >&6; }
19814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815/* end confdefs.h. */
19816
19817
19818#include <stdio.h>
19819#include <netdb.h>
19820
19821int main (void)
19822{
19823
19824 gethostbyname("www.dummysite.com");
19825
19826 ;
19827 return 0;
19828}
19829
19830_ACEOF
19831if ac_fn_c_try_link "$LINENO"; then :
19832
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19834$as_echo "yes" >&6; }
19835 HAVE_GETHOSTBYNAME="1"
19836
19837else
19838
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19840$as_echo "no" >&6; }
19841
19842fi
19843rm -f core conftest.err conftest.$ac_objext \
19844 conftest$ac_exeext conftest.$ac_ext
19845fi
19846
19847if test "$HAVE_GETHOSTBYNAME" != "1"
19848then
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19850$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19851if ${ac_cv_lib_network_gethostbyname+:} false; then :
19852 $as_echo_n "(cached) " >&6
19853else
19854 ac_check_lib_save_LIBS=$LIBS
19855LIBS="-lnetwork $LIBS"
19856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19857/* end confdefs.h. */
19858
19859
19860#ifdef __cplusplus
19861extern "C"
19862#endif
19863char gethostbyname ();
19864int main (void)
19865{
19866return gethostbyname ();
19867 ;
19868 return 0;
19869}
19870_ACEOF
19871if ac_fn_c_try_link "$LINENO"; then :
19872 ac_cv_lib_network_gethostbyname=yes
19873else
19874 ac_cv_lib_network_gethostbyname=no
19875fi
19876rm -f core conftest.err conftest.$ac_objext \
19877 conftest$ac_exeext conftest.$ac_ext
19878LIBS=$ac_check_lib_save_LIBS
19879fi
19880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
19881$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
19882if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
19883 HAVE_GETHOSTBYNAME="1"
19884 LIBS="-lnetwork $LIBS"
19885
19886fi
19887
19888fi
19889
19890if test "$HAVE_GETHOSTBYNAME" != "1"
19891then
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
19893$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
19894if ${ac_cv_lib_net_gethostbyname+:} false; then :
19895 $as_echo_n "(cached) " >&6
19896else
19897 ac_check_lib_save_LIBS=$LIBS
19898LIBS="-lnet $LIBS"
19899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19900/* end confdefs.h. */
19901
19902
19903#ifdef __cplusplus
19904extern "C"
19905#endif
19906char gethostbyname ();
19907int main (void)
19908{
19909return gethostbyname ();
19910 ;
19911 return 0;
19912}
19913_ACEOF
19914if ac_fn_c_try_link "$LINENO"; then :
19915 ac_cv_lib_net_gethostbyname=yes
19916else
19917 ac_cv_lib_net_gethostbyname=no
19918fi
19919rm -f core conftest.err conftest.$ac_objext \
19920 conftest$ac_exeext conftest.$ac_ext
19921LIBS=$ac_check_lib_save_LIBS
19922fi
19923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
19924$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
19925if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
19926 HAVE_GETHOSTBYNAME="1"
19927 LIBS="-lnet $LIBS"
19928
19929fi
19930
19931fi
19932
19933
19934if test "$HAVE_GETHOSTBYNAME" != "1"; then
19935 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
19936fi
19937
19938
19939curl_includes_winsock2="\
19940/* includes start */
19941#ifdef HAVE_WINDOWS_H
19942# ifndef WIN32_LEAN_AND_MEAN
19943# define WIN32_LEAN_AND_MEAN
19944# endif
19945# include <windows.h>
19946# ifdef HAVE_WINSOCK2_H
19947# include <winsock2.h>
19948# else
19949# ifdef HAVE_WINSOCK_H
19950# include <winsock.h>
19951# endif
19952# endif
19953#endif
19954/* includes end */"
19955
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
19957$as_echo_n "checking for windows.h... " >&6; }
19958if ${curl_cv_header_windows_h+:} false; then :
19959 $as_echo_n "(cached) " >&6
19960else
19961
19962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19963/* end confdefs.h. */
19964
19965
19966#undef inline
19967#ifndef WIN32_LEAN_AND_MEAN
19968#define WIN32_LEAN_AND_MEAN
19969#endif
19970#include <windows.h>
19971
19972int main (void)
19973{
19974
19975#if defined(__CYGWIN__) || defined(__CEGCC__)
19976 HAVE_WINDOWS_H shall not be defined.
19977#else
19978 int dummy=2*WINVER;
19979#endif
19980
19981 ;
19982 return 0;
19983}
19984
19985_ACEOF
19986if ac_fn_c_try_compile "$LINENO"; then :
19987
19988 curl_cv_header_windows_h="yes"
19989
19990else
19991
19992 curl_cv_header_windows_h="no"
19993
19994fi
19995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19996
19997fi
19998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
19999$as_echo "$curl_cv_header_windows_h" >&6; }
20000 case "$curl_cv_header_windows_h" in
20001 yes)
20002
20003cat >>confdefs.h <<_ACEOF
20004#define HAVE_WINDOWS_H 1
20005_ACEOF
20006
20007 ;;
20008 esac
20009
20010
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20012$as_echo_n "checking for winsock.h... " >&6; }
20013if ${curl_cv_header_winsock_h+:} false; then :
20014 $as_echo_n "(cached) " >&6
20015else
20016
20017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20018/* end confdefs.h. */
20019
20020
20021#undef inline
20022#ifndef WIN32_LEAN_AND_MEAN
20023#define WIN32_LEAN_AND_MEAN
20024#endif
20025#include <windows.h>
20026#include <winsock.h>
20027
20028int main (void)
20029{
20030
20031#if defined(__CYGWIN__) || defined(__CEGCC__)
20032 HAVE_WINSOCK_H shall not be defined.
20033#else
20034 int dummy=WSACleanup();
20035#endif
20036
20037 ;
20038 return 0;
20039}
20040
20041_ACEOF
20042if ac_fn_c_try_compile "$LINENO"; then :
20043
20044 curl_cv_header_winsock_h="yes"
20045
20046else
20047
20048 curl_cv_header_winsock_h="no"
20049
20050fi
20051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20052
20053fi
20054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20055$as_echo "$curl_cv_header_winsock_h" >&6; }
20056 case "$curl_cv_header_winsock_h" in
20057 yes)
20058
20059cat >>confdefs.h <<_ACEOF
20060#define HAVE_WINSOCK_H 1
20061_ACEOF
20062
20063 ;;
20064 esac
20065
20066
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20068$as_echo_n "checking for winsock2.h... " >&6; }
20069if ${curl_cv_header_winsock2_h+:} false; then :
20070 $as_echo_n "(cached) " >&6
20071else
20072
20073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20074/* end confdefs.h. */
20075
20076
20077#undef inline
20078#ifndef WIN32_LEAN_AND_MEAN
20079#define WIN32_LEAN_AND_MEAN
20080#endif
20081#include <windows.h>
20082#include <winsock2.h>
20083
20084int main (void)
20085{
20086
20087#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20088 HAVE_WINSOCK2_H shall not be defined.
20089#else
20090 int dummy=2*IPPROTO_ESP;
20091#endif
20092
20093 ;
20094 return 0;
20095}
20096
20097_ACEOF
20098if ac_fn_c_try_compile "$LINENO"; then :
20099
20100 curl_cv_header_winsock2_h="yes"
20101
20102else
20103
20104 curl_cv_header_winsock2_h="no"
20105
20106fi
20107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20108
20109fi
20110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20111$as_echo "$curl_cv_header_winsock2_h" >&6; }
20112 case "$curl_cv_header_winsock2_h" in
20113 yes)
20114
20115cat >>confdefs.h <<_ACEOF
20116#define HAVE_WINSOCK2_H 1
20117_ACEOF
20118
20119 ;;
20120 esac
20121
20122
20123
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20125$as_echo_n "checking for connect in libraries... " >&6; }
20126 tst_connect_save_LIBS="$LIBS"
20127 tst_connect_need_LIBS="unknown"
20128 for tst_lib in '' '-lsocket' ; do
20129 if test "$tst_connect_need_LIBS" = "unknown"; then
20130 LIBS="$tst_lib $tst_connect_save_LIBS"
20131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20132/* end confdefs.h. */
20133
20134
20135 $curl_includes_winsock2
20136 #ifndef HAVE_WINDOWS_H
20137 int connect(int, void*, int);
20138 #endif
20139
20140int main (void)
20141{
20142
20143 if(0 != connect(0, 0, 0))
20144 return 1;
20145
20146 ;
20147 return 0;
20148}
20149
20150_ACEOF
20151if ac_fn_c_try_link "$LINENO"; then :
20152
20153 tst_connect_need_LIBS="$tst_lib"
20154
20155fi
20156rm -f core conftest.err conftest.$ac_objext \
20157 conftest$ac_exeext conftest.$ac_ext
20158 fi
20159 done
20160 LIBS="$tst_connect_save_LIBS"
20161 #
20162 case X-"$tst_connect_need_LIBS" in
20163 X-unknown)
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20165$as_echo "cannot find connect" >&6; }
20166 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20167 ;;
20168 X-)
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20170$as_echo "yes" >&6; }
20171 ;;
20172 *)
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20174$as_echo "$tst_connect_need_LIBS" >&6; }
20175 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20176 ;;
20177 esac
20178
20179
20180CURL_NETWORK_LIBS=$LIBS
20181
20182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20183$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20184if ${ac_cv_header_time+:} false; then :
20185 $as_echo_n "(cached) " >&6
20186else
20187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20188/* end confdefs.h. */
20189#include <sys/types.h>
20190#include <sys/time.h>
20191#include <time.h>
20192
20193int main (void)
20194{
20195if ((struct tm *) 0)
20196return 0;
20197 ;
20198 return 0;
20199}
20200_ACEOF
20201if ac_fn_c_try_compile "$LINENO"; then :
20202 ac_cv_header_time=yes
20203else
20204 ac_cv_header_time=no
20205fi
20206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20207fi
20208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20209$as_echo "$ac_cv_header_time" >&6; }
20210if test $ac_cv_header_time = yes; then
20211
20212$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20213
20214fi
20215
20216
20217 for ac_header in sys/types.h sys/time.h time.h
20218do :
20219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20220ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20221if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20222 cat >>confdefs.h <<_ACEOF
20223#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20224_ACEOF
20225
20226fi
20227
20228done
20229
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20231$as_echo_n "checking for monotonic clock_gettime... " >&6; }
20232 #
20233 if test "x$dontwant_rt" = "xno" ; then
20234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20235/* end confdefs.h. */
20236
20237
20238#ifdef HAVE_SYS_TYPES_H
20239#include <sys/types.h>
20240#endif
20241#ifdef HAVE_SYS_TIME_H
20242#include <sys/time.h>
20243#ifdef TIME_WITH_SYS_TIME
20244#include <time.h>
20245#endif
20246#else
20247#ifdef HAVE_TIME_H
20248#include <time.h>
20249#endif
20250#endif
20251
20252int main (void)
20253{
20254
20255 struct timespec ts;
20256 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20257
20258 ;
20259 return 0;
20260}
20261
20262_ACEOF
20263if ac_fn_c_try_compile "$LINENO"; then :
20264
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20266$as_echo "yes" >&6; }
20267 curl_func_clock_gettime="yes"
20268
20269else
20270
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20272$as_echo "no" >&6; }
20273 curl_func_clock_gettime="no"
20274
20275fi
20276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277 fi
20278
20279
20280 #
20281 if test "$curl_func_clock_gettime" = "yes"; then
20282 #
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20284$as_echo_n "checking for clock_gettime in libraries... " >&6; }
20285 #
20286 curl_cv_save_LIBS="$LIBS"
20287 curl_cv_gclk_LIBS="unknown"
20288 #
20289 for x_xlibs in '' '-lrt' '-lposix4' ; do
20290 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20291 if test -z "$x_xlibs"; then
20292 LIBS="$curl_cv_save_LIBS"
20293 else
20294 LIBS="$x_xlibs $curl_cv_save_LIBS"
20295 fi
20296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20297/* end confdefs.h. */
20298
20299
20300#ifdef HAVE_SYS_TYPES_H
20301#include <sys/types.h>
20302#endif
20303#ifdef HAVE_SYS_TIME_H
20304#include <sys/time.h>
20305#ifdef TIME_WITH_SYS_TIME
20306#include <time.h>
20307#endif
20308#else
20309#ifdef HAVE_TIME_H
20310#include <time.h>
20311#endif
20312#endif
20313
20314int main (void)
20315{
20316
20317 struct timespec ts;
20318 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20319
20320 ;
20321 return 0;
20322}
20323
20324_ACEOF
20325if ac_fn_c_try_link "$LINENO"; then :
20326
20327 curl_cv_gclk_LIBS="$x_xlibs"
20328
20329fi
20330rm -f core conftest.err conftest.$ac_objext \
20331 conftest$ac_exeext conftest.$ac_ext
20332 fi
20333 done
20334 #
20335 LIBS="$curl_cv_save_LIBS"
20336 #
20337 case X-"$curl_cv_gclk_LIBS" in
20338 X-unknown)
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20340$as_echo "cannot find clock_gettime" >&6; }
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20342$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20343 curl_func_clock_gettime="no"
20344 ;;
20345 X-)
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20347$as_echo "no additional lib required" >&6; }
20348 curl_func_clock_gettime="yes"
20349 ;;
20350 *)
20351 if test -z "$curl_cv_save_LIBS"; then
20352 LIBS="$curl_cv_gclk_LIBS"
20353 else
20354 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20355 fi
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20357$as_echo "$curl_cv_gclk_LIBS" >&6; }
20358 curl_func_clock_gettime="yes"
20359 ;;
20360 esac
20361 #
20362 if test "x$cross_compiling" != "xyes" &&
20363 test "$curl_func_clock_gettime" = "yes"; then
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20365$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080020366
20367
20368 old=$LD_LIBRARY_PATH
20369 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20370 export LD_LIBRARY_PATH
20371 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070020372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20374as_fn_error $? "cannot run test program while cross compiling
20375See \`config.log' for more details" "$LINENO" 5; }
20376else
20377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378/* end confdefs.h. */
20379
20380
20381#ifdef HAVE_STDLIB_H
20382#include <stdlib.h>
20383#endif
20384#ifdef HAVE_SYS_TYPES_H
20385#include <sys/types.h>
20386#endif
20387#ifdef HAVE_SYS_TIME_H
20388#include <sys/time.h>
20389#ifdef TIME_WITH_SYS_TIME
20390#include <time.h>
20391#endif
20392#else
20393#ifdef HAVE_TIME_H
20394#include <time.h>
20395#endif
20396#endif
20397
20398int main (void)
20399{
20400
20401 struct timespec ts;
20402 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20403 exit(0);
20404 else
20405 exit(1);
20406
20407 ;
20408 return 0;
20409}
20410
20411_ACEOF
20412if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080020413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020414$as_echo "yes" >&6; }
20415
20416else
Elliott Hughesa93fb052018-12-12 14:22:48 -080020417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020418$as_echo "no" >&6; }
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20420$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20421 curl_func_clock_gettime="no"
20422 LIBS="$curl_cv_save_LIBS"
20423
20424fi
20425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20426 conftest.$ac_objext conftest.beam conftest.$ac_ext
20427fi
20428
Elliott Hughesa93fb052018-12-12 14:22:48 -080020429 LD_LIBRARY_PATH=$old # restore
20430
Elliott Hughes82be86d2017-09-20 17:00:17 -070020431 fi
20432 #
20433 case "$curl_func_clock_gettime" in
20434 yes)
20435
20436cat >>confdefs.h <<_ACEOF
20437#define HAVE_CLOCK_GETTIME_MONOTONIC 1
20438_ACEOF
20439
20440 ;;
20441 esac
20442 #
20443 fi
20444 #
20445
20446
20447CURL_NETWORK_AND_TIME_LIBS=$LIBS
20448
20449
20450
20451clean_CPPFLAGS=$CPPFLAGS
20452clean_LDFLAGS=$LDFLAGS
20453clean_LIBS=$LIBS
20454ZLIB_LIBS=""
20455
20456# Check whether --with-zlib was given.
20457if test "${with_zlib+set}" = set; then :
20458 withval=$with_zlib; OPT_ZLIB="$withval"
20459fi
20460
20461
20462if test "$OPT_ZLIB" = "no" ; then
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20464$as_echo "$as_me: WARNING: zlib disabled" >&2;}
20465else
20466 if test "$OPT_ZLIB" = "yes" ; then
20467 OPT_ZLIB=""
20468 fi
20469
20470 if test -z "$OPT_ZLIB" ; then
20471
20472 if test -n "$PKG_CONFIG"; then
20473 PKGCONFIG="$PKG_CONFIG"
20474 else
20475 if test -n "$ac_tool_prefix"; then
20476 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20477set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20479$as_echo_n "checking for $ac_word... " >&6; }
20480if ${ac_cv_path_PKGCONFIG+:} false; then :
20481 $as_echo_n "(cached) " >&6
20482else
20483 case $PKGCONFIG in
20484 [\\/]* | ?:[\\/]*)
20485 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20486 ;;
20487 *)
20488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20489as_dummy="$PATH:/usr/bin:/usr/local/bin"
20490for as_dir in $as_dummy
20491do
20492 IFS=$as_save_IFS
20493 test -z "$as_dir" && as_dir=.
20494 for ac_exec_ext in '' $ac_executable_extensions; do
20495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20496 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20498 break 2
20499 fi
20500done
20501 done
20502IFS=$as_save_IFS
20503
20504 ;;
20505esac
20506fi
20507PKGCONFIG=$ac_cv_path_PKGCONFIG
20508if test -n "$PKGCONFIG"; then
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20510$as_echo "$PKGCONFIG" >&6; }
20511else
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20513$as_echo "no" >&6; }
20514fi
20515
20516
20517fi
20518if test -z "$ac_cv_path_PKGCONFIG"; then
20519 ac_pt_PKGCONFIG=$PKGCONFIG
20520 # Extract the first word of "pkg-config", so it can be a program name with args.
20521set dummy pkg-config; ac_word=$2
20522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20523$as_echo_n "checking for $ac_word... " >&6; }
20524if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20525 $as_echo_n "(cached) " >&6
20526else
20527 case $ac_pt_PKGCONFIG in
20528 [\\/]* | ?:[\\/]*)
20529 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20530 ;;
20531 *)
20532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20533as_dummy="$PATH:/usr/bin:/usr/local/bin"
20534for as_dir in $as_dummy
20535do
20536 IFS=$as_save_IFS
20537 test -z "$as_dir" && as_dir=.
20538 for ac_exec_ext in '' $ac_executable_extensions; do
20539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20540 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20542 break 2
20543 fi
20544done
20545 done
20546IFS=$as_save_IFS
20547
20548 ;;
20549esac
20550fi
20551ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20552if test -n "$ac_pt_PKGCONFIG"; then
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20554$as_echo "$ac_pt_PKGCONFIG" >&6; }
20555else
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20557$as_echo "no" >&6; }
20558fi
20559
20560 if test "x$ac_pt_PKGCONFIG" = x; then
20561 PKGCONFIG="no"
20562 else
20563 case $cross_compiling:$ac_tool_warned in
20564yes:)
20565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20567ac_tool_warned=yes ;;
20568esac
20569 PKGCONFIG=$ac_pt_PKGCONFIG
20570 fi
20571else
20572 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20573fi
20574
20575 fi
20576
20577 if test "x$PKGCONFIG" != "xno"; then
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20579$as_echo_n "checking for zlib options with pkg-config... " >&6; }
20580 itexists=`
20581 if test -n ""; then
20582 PKG_CONFIG_LIBDIR=""
20583 export PKG_CONFIG_LIBDIR
20584 fi
20585 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20586
20587 if test -z "$itexists"; then
20588 PKGCONFIG="no"
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20590$as_echo "no" >&6; }
20591 else
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20593$as_echo "found" >&6; }
20594 fi
20595 fi
20596
20597
20598 if test "$PKGCONFIG" != "no" ; then
20599 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20600 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20601 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20602 OPT_ZLIB=""
20603 HAVE_LIBZ="1"
20604 fi
20605
20606 if test -z "$HAVE_LIBZ"; then
20607
20608
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20610$as_echo_n "checking for inflateEnd in -lz... " >&6; }
20611if ${ac_cv_lib_z_inflateEnd+:} false; then :
20612 $as_echo_n "(cached) " >&6
20613else
20614 ac_check_lib_save_LIBS=$LIBS
20615LIBS="-lz $LIBS"
20616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20617/* end confdefs.h. */
20618
20619
20620#ifdef __cplusplus
20621extern "C"
20622#endif
20623char inflateEnd ();
20624int main (void)
20625{
20626return inflateEnd ();
20627 ;
20628 return 0;
20629}
20630_ACEOF
20631if ac_fn_c_try_link "$LINENO"; then :
20632 ac_cv_lib_z_inflateEnd=yes
20633else
20634 ac_cv_lib_z_inflateEnd=no
20635fi
20636rm -f core conftest.err conftest.$ac_objext \
20637 conftest$ac_exeext conftest.$ac_ext
20638LIBS=$ac_check_lib_save_LIBS
20639fi
20640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20641$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20642if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20643 HAVE_LIBZ="1"
20644 LIBS="-lz $LIBS"
20645else
20646 OPT_ZLIB="/usr/local"
20647fi
20648
20649 fi
20650 fi
20651
20652 if test -n "$OPT_ZLIB"; then
20653 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20654 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20655 fi
20656
20657 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20658if test "x$ac_cv_header_zlib_h" = xyes; then :
20659
20660 HAVE_ZLIB_H="1"
20661 if test "$HAVE_LIBZ" != "1"; then
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20663$as_echo_n "checking for gzread in -lz... " >&6; }
20664if ${ac_cv_lib_z_gzread+:} false; then :
20665 $as_echo_n "(cached) " >&6
20666else
20667 ac_check_lib_save_LIBS=$LIBS
20668LIBS="-lz $LIBS"
20669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20670/* end confdefs.h. */
20671
20672
20673#ifdef __cplusplus
20674extern "C"
20675#endif
20676char gzread ();
20677int main (void)
20678{
20679return gzread ();
20680 ;
20681 return 0;
20682}
20683_ACEOF
20684if ac_fn_c_try_link "$LINENO"; then :
20685 ac_cv_lib_z_gzread=yes
20686else
20687 ac_cv_lib_z_gzread=no
20688fi
20689rm -f core conftest.err conftest.$ac_objext \
20690 conftest$ac_exeext conftest.$ac_ext
20691LIBS=$ac_check_lib_save_LIBS
20692fi
20693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20694$as_echo "$ac_cv_lib_z_gzread" >&6; }
20695if test "x$ac_cv_lib_z_gzread" = xyes; then :
20696
20697 HAVE_LIBZ="1"
20698 LIBS="-lz $LIBS"
20699
20700else
20701 CPPFLAGS=$clean_CPPFLAGS
20702 LDFLAGS=$clean_LDFLAGS
20703fi
20704
20705 fi
20706
20707else
20708
20709 CPPFLAGS=$clean_CPPFLAGS
20710 LDFLAGS=$clean_LDFLAGS
20711
20712fi
20713
20714
20715
20716 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20717 then
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20719$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20720 HAVE_LIBZ=""
20721 CPPFLAGS=$clean_CPPFLAGS
20722 LDFLAGS=$clean_LDFLAGS
20723 LIBS=$clean_LIBS
20724 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20725 then
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20727$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20728 CPPFLAGS=$clean_CPPFLAGS
20729 LDFLAGS=$clean_LDFLAGS
20730 LIBS=$clean_LIBS
20731 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20732 then
20733
20734
20735$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20736
20737
20738$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20739
20740
20741 ZLIB_LIBS="-lz"
20742 LIBS="-lz $clean_LIBS"
20743
20744 AMFIXLIB="1"
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20746$as_echo "$as_me: found both libz and libz.h header" >&6;}
20747 curl_zlib_msg="enabled"
20748 fi
20749fi
20750
20751 if test x"$AMFIXLIB" = x1; then
20752 HAVE_LIBZ_TRUE=
20753 HAVE_LIBZ_FALSE='#'
20754else
20755 HAVE_LIBZ_TRUE='#'
20756 HAVE_LIBZ_FALSE=
20757fi
20758
20759
20760
20761
Alex Deymo486467e2017-12-19 19:04:07 +010020762
20763OPT_BROTLI=off
20764
20765# Check whether --with-brotli was given.
20766if test "${with_brotli+set}" = set; then :
20767 withval=$with_brotli; OPT_BROTLI=$withval
20768fi
20769
20770
20771if test X"$OPT_BROTLI" != Xno; then
20772 CLEANLDFLAGS="$LDFLAGS"
20773 CLEANCPPFLAGS="$CPPFLAGS"
20774 CLEANLIBS="$LIBS"
20775
20776 case "$OPT_BROTLI" in
20777 yes)
20778
20779 if test -n "$PKG_CONFIG"; then
20780 PKGCONFIG="$PKG_CONFIG"
20781 else
20782 if test -n "$ac_tool_prefix"; then
20783 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20784set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20786$as_echo_n "checking for $ac_word... " >&6; }
20787if ${ac_cv_path_PKGCONFIG+:} false; then :
20788 $as_echo_n "(cached) " >&6
20789else
20790 case $PKGCONFIG in
20791 [\\/]* | ?:[\\/]*)
20792 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20793 ;;
20794 *)
20795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20796as_dummy="$PATH:/usr/bin:/usr/local/bin"
20797for as_dir in $as_dummy
20798do
20799 IFS=$as_save_IFS
20800 test -z "$as_dir" && as_dir=.
20801 for ac_exec_ext in '' $ac_executable_extensions; do
20802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20803 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20805 break 2
20806 fi
20807done
20808 done
20809IFS=$as_save_IFS
20810
20811 ;;
20812esac
20813fi
20814PKGCONFIG=$ac_cv_path_PKGCONFIG
20815if test -n "$PKGCONFIG"; then
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20817$as_echo "$PKGCONFIG" >&6; }
20818else
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20820$as_echo "no" >&6; }
20821fi
20822
20823
20824fi
20825if test -z "$ac_cv_path_PKGCONFIG"; then
20826 ac_pt_PKGCONFIG=$PKGCONFIG
20827 # Extract the first word of "pkg-config", so it can be a program name with args.
20828set dummy pkg-config; ac_word=$2
20829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20830$as_echo_n "checking for $ac_word... " >&6; }
20831if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20832 $as_echo_n "(cached) " >&6
20833else
20834 case $ac_pt_PKGCONFIG in
20835 [\\/]* | ?:[\\/]*)
20836 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20837 ;;
20838 *)
20839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20840as_dummy="$PATH:/usr/bin:/usr/local/bin"
20841for as_dir in $as_dummy
20842do
20843 IFS=$as_save_IFS
20844 test -z "$as_dir" && as_dir=.
20845 for ac_exec_ext in '' $ac_executable_extensions; do
20846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20847 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20849 break 2
20850 fi
20851done
20852 done
20853IFS=$as_save_IFS
20854
20855 ;;
20856esac
20857fi
20858ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20859if test -n "$ac_pt_PKGCONFIG"; then
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20861$as_echo "$ac_pt_PKGCONFIG" >&6; }
20862else
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20864$as_echo "no" >&6; }
20865fi
20866
20867 if test "x$ac_pt_PKGCONFIG" = x; then
20868 PKGCONFIG="no"
20869 else
20870 case $cross_compiling:$ac_tool_warned in
20871yes:)
20872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20874ac_tool_warned=yes ;;
20875esac
20876 PKGCONFIG=$ac_pt_PKGCONFIG
20877 fi
20878else
20879 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20880fi
20881
20882 fi
20883
20884 if test "x$PKGCONFIG" != "xno"; then
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
20886$as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
20887 itexists=`
20888 if test -n ""; then
20889 PKG_CONFIG_LIBDIR=""
20890 export PKG_CONFIG_LIBDIR
20891 fi
20892 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
20893
20894 if test -z "$itexists"; then
20895 PKGCONFIG="no"
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20897$as_echo "no" >&6; }
20898 else
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20900$as_echo "found" >&6; }
20901 fi
20902 fi
20903
20904
20905 if test "$PKGCONFIG" != "no" ; then
20906 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
20907 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
20908 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
20909 version=`$PKGCONFIG --modversion libbrotlidec`
20910 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
20911 fi
20912
20913 ;;
20914 off)
20915 ;;
20916 *)
20917 PREFIX_BROTLI=$OPT_BROTLI
20918 ;;
20919 esac
20920
20921 if test -n "$PREFIX_BROTLI"; then
20922 LIB_BROTLI="-lbrotlidec"
20923 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
20924 CPP_BROTLI=-I${PREFIX_BROTLI}/include
20925 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
20926 fi
20927
20928 LDFLAGS="$LDFLAGS $LD_BROTLI"
20929 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
20930 LIBS="$LIB_BROTLI $LIBS"
20931
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
20933$as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
20934if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
20935 $as_echo_n "(cached) " >&6
20936else
20937 ac_check_lib_save_LIBS=$LIBS
20938LIBS="-lbrotlidec $LIBS"
20939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20940/* end confdefs.h. */
20941
20942
20943#ifdef __cplusplus
20944extern "C"
20945#endif
20946char BrotliDecoderDecompress ();
20947int main (void)
20948{
20949return BrotliDecoderDecompress ();
20950 ;
20951 return 0;
20952}
20953_ACEOF
20954if ac_fn_c_try_link "$LINENO"; then :
20955 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
20956else
20957 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
20958fi
20959rm -f core conftest.err conftest.$ac_objext \
20960 conftest$ac_exeext conftest.$ac_ext
20961LIBS=$ac_check_lib_save_LIBS
20962fi
20963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
20964$as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
20965if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
20966 cat >>confdefs.h <<_ACEOF
20967#define HAVE_LIBBROTLIDEC 1
20968_ACEOF
20969
20970 LIBS="-lbrotlidec $LIBS"
20971
20972fi
20973
20974
20975 for ac_header in brotli/decode.h
20976do :
20977 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
20978if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
20979 cat >>confdefs.h <<_ACEOF
20980#define HAVE_BROTLI_DECODE_H 1
20981_ACEOF
20982 curl_brotli_msg="enabled (libbrotlidec)"
20983 HAVE_BROTLI=1
20984
20985$as_echo "#define HAVE_BROTLI 1" >>confdefs.h
20986
20987 HAVE_BROTLI=1
20988
20989
20990fi
20991
20992done
20993
20994
20995 if test X"$OPT_BROTLI" != Xoff &&
20996 test "$HAVE_BROTLI" != "1"; then
20997 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
20998 fi
20999
21000 if test "$HAVE_BROTLI" = "1"; then
21001 if test -n "$DIR_BROTLI"; then
21002
21003 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021004 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
21005 export CURL_LIBRARY_PATH
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
21007$as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
Alex Deymo486467e2017-12-19 19:04:07 +010021008 fi
21009 fi
21010 else
21011 LDFLAGS=$CLEANLDFLAGS
21012 CPPFLAGS=$CLEANCPPFLAGS
21013 LIBS=$CLEANLIBS
21014 fi
21015fi
21016
21017
Elliott Hughes82be86d2017-09-20 17:00:17 -070021018LDAPLIBNAME=""
21019
21020# Check whether --with-ldap-lib was given.
21021if test "${with_ldap_lib+set}" = set; then :
21022 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21023fi
21024
21025
21026LBERLIBNAME=""
21027
21028# Check whether --with-lber-lib was given.
21029if test "${with_lber_lib+set}" = set; then :
21030 withval=$with_lber_lib; LBERLIBNAME="$withval"
21031fi
21032
21033
21034if test x$CURL_DISABLE_LDAP != x1 ; then
21035
21036
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21038$as_echo_n "checking for lber.h... " >&6; }
21039if ${curl_cv_header_lber_h+:} false; then :
21040 $as_echo_n "(cached) " >&6
21041else
21042
21043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21044/* end confdefs.h. */
21045
21046
21047#undef inline
21048#ifdef HAVE_WINDOWS_H
21049#ifndef WIN32_LEAN_AND_MEAN
21050#define WIN32_LEAN_AND_MEAN
21051#endif
21052#include <windows.h>
21053#else
21054#ifdef HAVE_SYS_TYPES_H
21055#include <sys/types.h>
21056#endif
21057#endif
21058#ifndef NULL
21059#define NULL (void *)0
21060#endif
21061#include <lber.h>
21062
21063int main (void)
21064{
21065
21066 BerValue *bvp = NULL;
21067 BerElement *bep = ber_init(bvp);
21068 ber_free(bep, 1);
21069
21070 ;
21071 return 0;
21072}
21073
21074_ACEOF
21075if ac_fn_c_try_compile "$LINENO"; then :
21076
21077 curl_cv_header_lber_h="yes"
21078
21079else
21080
21081 curl_cv_header_lber_h="no"
21082
21083fi
21084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21085
21086fi
21087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21088$as_echo "$curl_cv_header_lber_h" >&6; }
21089 if test "$curl_cv_header_lber_h" = "yes"; then
21090
21091cat >>confdefs.h <<_ACEOF
21092#define HAVE_LBER_H 1
21093_ACEOF
21094
21095 #
21096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21097/* end confdefs.h. */
21098
21099
21100#undef inline
21101#ifdef HAVE_WINDOWS_H
21102#ifndef WIN32_LEAN_AND_MEAN
21103#define WIN32_LEAN_AND_MEAN
21104#endif
21105#include <windows.h>
21106#else
21107#ifdef HAVE_SYS_TYPES_H
21108#include <sys/types.h>
21109#endif
21110#endif
21111#ifndef NULL
21112#define NULL (void *)0
21113#endif
21114#ifndef LDAP_DEPRECATED
21115#define LDAP_DEPRECATED 1
21116#endif
21117#include <ldap.h>
21118
21119int main (void)
21120{
21121
21122 BerValue *bvp = NULL;
21123 BerElement *bep = ber_init(bvp);
21124 ber_free(bep, 1);
21125
21126 ;
21127 return 0;
21128}
21129
21130_ACEOF
21131if ac_fn_c_try_compile "$LINENO"; then :
21132
21133 curl_cv_need_header_lber_h="no"
21134
21135else
21136
21137 curl_cv_need_header_lber_h="yes"
21138
21139fi
21140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21141 #
21142 case "$curl_cv_need_header_lber_h" in
21143 yes)
21144
21145cat >>confdefs.h <<_ACEOF
21146#define NEED_LBER_H 1
21147_ACEOF
21148
21149 ;;
21150 esac
21151 fi
21152
21153
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21155$as_echo_n "checking for ldap.h... " >&6; }
21156if ${curl_cv_header_ldap_h+:} false; then :
21157 $as_echo_n "(cached) " >&6
21158else
21159
21160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21161/* end confdefs.h. */
21162
21163
21164#undef inline
21165#ifdef HAVE_WINDOWS_H
21166#ifndef WIN32_LEAN_AND_MEAN
21167#define WIN32_LEAN_AND_MEAN
21168#endif
21169#include <windows.h>
21170#else
21171#ifdef HAVE_SYS_TYPES_H
21172#include <sys/types.h>
21173#endif
21174#endif
21175#ifndef LDAP_DEPRECATED
21176#define LDAP_DEPRECATED 1
21177#endif
21178#ifdef NEED_LBER_H
21179#include <lber.h>
21180#endif
21181#include <ldap.h>
21182
21183int main (void)
21184{
21185
21186 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21187 int res = ldap_unbind(ldp);
21188
21189 ;
21190 return 0;
21191}
21192
21193_ACEOF
21194if ac_fn_c_try_compile "$LINENO"; then :
21195
21196 curl_cv_header_ldap_h="yes"
21197
21198else
21199
21200 curl_cv_header_ldap_h="no"
21201
21202fi
21203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21204
21205fi
21206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21207$as_echo "$curl_cv_header_ldap_h" >&6; }
21208 case "$curl_cv_header_ldap_h" in
21209 yes)
21210
21211cat >>confdefs.h <<_ACEOF
21212#define HAVE_LDAP_H 1
21213_ACEOF
21214
21215 ;;
21216 esac
21217
21218
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21220$as_echo_n "checking for ldapssl.h... " >&6; }
21221if ${curl_cv_header_ldapssl_h+:} false; then :
21222 $as_echo_n "(cached) " >&6
21223else
21224
21225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21226/* end confdefs.h. */
21227
21228
21229#undef inline
21230#ifdef HAVE_WINDOWS_H
21231#ifndef WIN32_LEAN_AND_MEAN
21232#define WIN32_LEAN_AND_MEAN
21233#endif
21234#include <windows.h>
21235#else
21236#ifdef HAVE_SYS_TYPES_H
21237#include <sys/types.h>
21238#endif
21239#endif
21240#ifndef NULL
21241#define NULL (void *)0
21242#endif
21243#ifndef LDAP_DEPRECATED
21244#define LDAP_DEPRECATED 1
21245#endif
21246#ifdef NEED_LBER_H
21247#include <lber.h>
21248#endif
21249#ifdef HAVE_LDAP_H
21250#include <ldap.h>
21251#endif
21252#include <ldapssl.h>
21253
21254int main (void)
21255{
21256
21257 char *cert_label = NULL;
21258 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21259
21260 ;
21261 return 0;
21262}
21263
21264_ACEOF
21265if ac_fn_c_try_compile "$LINENO"; then :
21266
21267 curl_cv_header_ldapssl_h="yes"
21268
21269else
21270
21271 curl_cv_header_ldapssl_h="no"
21272
21273fi
21274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21275
21276fi
21277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21278$as_echo "$curl_cv_header_ldapssl_h" >&6; }
21279 case "$curl_cv_header_ldapssl_h" in
21280 yes)
21281
21282cat >>confdefs.h <<_ACEOF
21283#define HAVE_LDAPSSL_H 1
21284_ACEOF
21285
21286 ;;
21287 esac
21288
21289
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21291$as_echo_n "checking for ldap_ssl.h... " >&6; }
21292if ${curl_cv_header_ldap_ssl_h+:} false; then :
21293 $as_echo_n "(cached) " >&6
21294else
21295
21296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21297/* end confdefs.h. */
21298
21299
21300#undef inline
21301#ifdef HAVE_WINDOWS_H
21302#ifndef WIN32_LEAN_AND_MEAN
21303#define WIN32_LEAN_AND_MEAN
21304#endif
21305#include <windows.h>
21306#else
21307#ifdef HAVE_SYS_TYPES_H
21308#include <sys/types.h>
21309#endif
21310#endif
21311#ifndef LDAP_DEPRECATED
21312#define LDAP_DEPRECATED 1
21313#endif
21314#ifdef NEED_LBER_H
21315#include <lber.h>
21316#endif
21317#ifdef HAVE_LDAP_H
21318#include <ldap.h>
21319#endif
21320#include <ldap_ssl.h>
21321
21322int main (void)
21323{
21324
21325 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21326
21327 ;
21328 return 0;
21329}
21330
21331_ACEOF
21332if ac_fn_c_try_compile "$LINENO"; then :
21333
21334 curl_cv_header_ldap_ssl_h="yes"
21335
21336else
21337
21338 curl_cv_header_ldap_ssl_h="no"
21339
21340fi
21341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342
21343fi
21344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21345$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21346 case "$curl_cv_header_ldap_ssl_h" in
21347 yes)
21348
21349cat >>confdefs.h <<_ACEOF
21350#define HAVE_LDAP_SSL_H 1
21351_ACEOF
21352
21353 ;;
21354 esac
21355
21356
21357 if test -z "$LDAPLIBNAME" ; then
21358 if test "$curl_cv_native_windows" = "yes"; then
21359 LDAPLIBNAME="wldap32"
21360 LBERLIBNAME="no"
21361 fi
21362 fi
21363
21364 if test "$LDAPLIBNAME" ; then
21365 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21367$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21368if eval \${$as_ac_Lib+:} false; then :
21369 $as_echo_n "(cached) " >&6
21370else
21371 ac_check_lib_save_LIBS=$LIBS
21372LIBS="-l"$LDAPLIBNAME" $LIBS"
21373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21374/* end confdefs.h. */
21375
21376
21377#ifdef __cplusplus
21378extern "C"
21379#endif
21380char ldap_init ();
21381int main (void)
21382{
21383return ldap_init ();
21384 ;
21385 return 0;
21386}
21387_ACEOF
21388if ac_fn_c_try_link "$LINENO"; then :
21389 eval "$as_ac_Lib=yes"
21390else
21391 eval "$as_ac_Lib=no"
21392fi
21393rm -f core conftest.err conftest.$ac_objext \
21394 conftest$ac_exeext conftest.$ac_ext
21395LIBS=$ac_check_lib_save_LIBS
21396fi
21397eval ac_res=\$$as_ac_Lib
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21399$as_echo "$ac_res" >&6; }
21400if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21401 cat >>confdefs.h <<_ACEOF
21402#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21403_ACEOF
21404
21405 LIBS="-l"$LDAPLIBNAME" $LIBS"
21406
21407else
21408
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21410$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21411
21412$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21413
21414 CURL_DISABLE_LDAP=1
21415
21416
21417$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21418
21419 CURL_DISABLE_LDAPS=1
21420
21421fi
21422
21423 else
21424
21425 #
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21427$as_echo_n "checking for LDAP libraries... " >&6; }
21428 #
21429 u_libs=""
21430 #
21431
21432 #
21433 curl_cv_save_LIBS="$LIBS"
21434 curl_cv_ldap_LIBS="unknown"
21435 #
21436 for x_nlibs in '' "$u_libs" \
21437 '-lldap' \
21438 '-lldap -llber' \
21439 '-llber -lldap' \
21440 '-lldapssl -lldapx -lldapsdk' \
21441 '-lldapsdk -lldapx -lldapssl' ; do
21442 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21443 if test -z "$x_nlibs"; then
21444 LIBS="$curl_cv_save_LIBS"
21445 else
21446 LIBS="$x_nlibs $curl_cv_save_LIBS"
21447 fi
21448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21449/* end confdefs.h. */
21450
21451
21452#undef inline
21453#ifdef HAVE_WINDOWS_H
21454#ifndef WIN32_LEAN_AND_MEAN
21455#define WIN32_LEAN_AND_MEAN
21456#endif
21457#include <windows.h>
21458#else
21459#ifdef HAVE_SYS_TYPES_H
21460#include <sys/types.h>
21461#endif
21462#endif
21463#ifndef NULL
21464#define NULL (void *)0
21465#endif
21466#ifndef LDAP_DEPRECATED
21467#define LDAP_DEPRECATED 1
21468#endif
21469#ifdef NEED_LBER_H
21470#include <lber.h>
21471#endif
21472#ifdef HAVE_LDAP_H
21473#include <ldap.h>
21474#endif
21475
21476int main (void)
21477{
21478
21479 BerValue *bvp = NULL;
21480 BerElement *bep = ber_init(bvp);
21481 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21482 int res = ldap_unbind(ldp);
21483 ber_free(bep, 1);
21484
21485 ;
21486 return 0;
21487}
21488
21489_ACEOF
21490if ac_fn_c_try_link "$LINENO"; then :
21491
21492 curl_cv_ldap_LIBS="$x_nlibs"
21493
21494fi
21495rm -f core conftest.err conftest.$ac_objext \
21496 conftest$ac_exeext conftest.$ac_ext
21497 fi
21498 done
21499 #
21500 LIBS="$curl_cv_save_LIBS"
21501 #
21502 case X-"$curl_cv_ldap_LIBS" in
21503 X-unknown)
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21505$as_echo "cannot find LDAP libraries" >&6; }
21506 ;;
21507 X-)
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21509$as_echo "no additional lib required" >&6; }
21510 ;;
21511 *)
21512 if test -z "$curl_cv_save_LIBS"; then
21513 LIBS="$curl_cv_ldap_LIBS"
21514 else
21515 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21516 fi
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21518$as_echo "$curl_cv_ldap_LIBS" >&6; }
21519 ;;
21520 esac
21521 #
21522
21523 case X-"$curl_cv_ldap_LIBS" in
21524 X-unknown)
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21526$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21527
21528$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21529
21530 CURL_DISABLE_LDAP=1
21531
21532
21533$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21534
21535 CURL_DISABLE_LDAPS=1
21536
21537 ;;
21538 esac
21539 fi
21540fi
21541
21542if test x$CURL_DISABLE_LDAP != x1 ; then
21543
21544 if test "$LBERLIBNAME" ; then
21545 if test "$LBERLIBNAME" != "no" ; then
21546 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21548$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21549if eval \${$as_ac_Lib+:} false; then :
21550 $as_echo_n "(cached) " >&6
21551else
21552 ac_check_lib_save_LIBS=$LIBS
21553LIBS="-l"$LBERLIBNAME" $LIBS"
21554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21555/* end confdefs.h. */
21556
21557
21558#ifdef __cplusplus
21559extern "C"
21560#endif
21561char ber_free ();
21562int main (void)
21563{
21564return ber_free ();
21565 ;
21566 return 0;
21567}
21568_ACEOF
21569if ac_fn_c_try_link "$LINENO"; then :
21570 eval "$as_ac_Lib=yes"
21571else
21572 eval "$as_ac_Lib=no"
21573fi
21574rm -f core conftest.err conftest.$ac_objext \
21575 conftest$ac_exeext conftest.$ac_ext
21576LIBS=$ac_check_lib_save_LIBS
21577fi
21578eval ac_res=\$$as_ac_Lib
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21580$as_echo "$ac_res" >&6; }
21581if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21582 cat >>confdefs.h <<_ACEOF
21583#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21584_ACEOF
21585
21586 LIBS="-l"$LBERLIBNAME" $LIBS"
21587
21588else
21589
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21591$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21592
21593$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21594
21595 CURL_DISABLE_LDAP=1
21596
21597
21598$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21599
21600 CURL_DISABLE_LDAPS=1
21601
21602fi
21603
21604 fi
21605 fi
21606fi
21607
21608if test x$CURL_DISABLE_LDAP != x1 ; then
21609 for ac_func in ldap_url_parse ldap_init_fd
21610do :
21611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21612ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21613if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21614 cat >>confdefs.h <<_ACEOF
21615#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21616_ACEOF
21617
21618fi
21619done
21620
21621
21622 if test "$LDAPLIBNAME" = "wldap32"; then
21623 curl_ldap_msg="enabled (winldap)"
21624
21625$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21626
21627 else
21628 curl_ldap_msg="enabled (OpenLDAP)"
21629 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21630
21631$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21632
21633 USE_OPENLDAP=1
21634
21635 fi
21636 fi
21637fi
21638
21639if test x$CURL_DISABLE_LDAPS != x1 ; then
21640 curl_ldaps_msg="enabled"
21641fi
21642
21643
21644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21645$as_echo_n "checking whether to enable IPv6... " >&6; }
21646# Check whether --enable-ipv6 was given.
21647if test "${enable_ipv6+set}" = set; then :
21648 enableval=$enable_ipv6; case "$enableval" in
21649 no)
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21651$as_echo "no" >&6; }
21652 ipv6=no
21653 ;;
21654 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21655$as_echo "yes" >&6; }
21656 ipv6=yes
21657 ;;
21658 esac
21659else
21660 if test "$cross_compiling" = yes; then :
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21662$as_echo "yes" >&6; }
21663 ipv6=yes
21664
21665else
21666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21667/* end confdefs.h. */
21668 /* is AF_INET6 available? */
21669#include <sys/types.h>
21670#ifdef HAVE_WINSOCK2_H
21671#include <winsock2.h>
21672#else
21673#include <sys/socket.h>
21674#endif
21675#include <stdlib.h> /* for exit() */
21676main()
21677{
21678 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21679 exit(1);
21680 else
21681 exit(0);
21682}
21683
21684_ACEOF
21685if ac_fn_c_try_run "$LINENO"; then :
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21687$as_echo "yes" >&6; }
21688 ipv6=yes
21689else
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21691$as_echo "no" >&6; }
21692 ipv6=no
21693fi
21694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21695 conftest.$ac_objext conftest.beam conftest.$ac_ext
21696fi
21697
21698fi
21699
21700
21701if test "$ipv6" = "yes"; then
21702 curl_ipv6_msg="enabled"
21703fi
21704
21705# Check if struct sockaddr_in6 have sin6_scope_id member
21706if test "$ipv6" = yes; then
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21708$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21710/* end confdefs.h. */
21711
21712#include <sys/types.h>
21713#ifdef HAVE_WINSOCK2_H
21714#include <winsock2.h>
21715#include <ws2tcpip.h>
21716#else
21717#include <netinet/in.h>
Elliott Hughes0128fe42018-02-27 14:57:55 -080021718#if defined (__TANDEM)
21719# include <netinet/in6.h>
21720#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070021721#endif
21722int main (void)
21723{
21724struct sockaddr_in6 s; s.sin6_scope_id = 0;
21725 ;
21726 return 0;
21727}
21728_ACEOF
21729if ac_fn_c_try_compile "$LINENO"; then :
21730 have_sin6_scope_id=yes
21731fi
21732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21733 if test "$have_sin6_scope_id" = yes; then
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21735$as_echo "yes" >&6; }
21736
21737$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21738
21739 else
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21741$as_echo "no" >&6; }
21742 fi
21743fi
21744
21745
21746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21747$as_echo_n "checking if argv can be written to... " >&6; }
Elliott Hughes82be86d2017-09-20 17:00:17 -070021748
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021749
21750 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070021751 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21752 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021753 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021754 curl_cv_writable_argv=cross
21755
21756else
21757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21758/* end confdefs.h. */
21759
Elliott Hughes82be86d2017-09-20 17:00:17 -070021760int main(int argc, char ** argv) {
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021761 argv00 = ' ';
21762 return (argv00 == ' ')?0:1;
Elliott Hughes82be86d2017-09-20 17:00:17 -070021763}
21764
Elliott Hughes82be86d2017-09-20 17:00:17 -070021765_ACEOF
21766if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021767 curl_cv_writable_argv=yes
21768
21769else
Elliott Hughes82be86d2017-09-20 17:00:17 -070021770 curl_cv_writable_argv=no
21771
21772fi
21773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21774 conftest.$ac_objext conftest.beam conftest.$ac_ext
21775fi
21776
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021777 LD_LIBRARY_PATH=$old # restore
21778
Elliott Hughes82be86d2017-09-20 17:00:17 -070021779case $curl_cv_writable_argv in
21780yes)
21781
21782$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21783
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21785$as_echo "yes" >&6; }
21786 ;;
21787no)
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21789$as_echo "no" >&6; }
21790 ;;
21791*)
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21793$as_echo "no" >&6; }
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21795$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21796 ;;
21797esac
21798
21799
21800
21801GSSAPI_ROOT="/usr"
21802
21803# Check whether --with-gssapi-includes was given.
21804if test "${with_gssapi_includes+set}" = set; then :
21805 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21806 want_gss="yes"
21807
21808fi
21809
21810
21811
21812# Check whether --with-gssapi-libs was given.
21813if test "${with_gssapi_libs+set}" = set; then :
21814 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21815 want_gss="yes"
21816
21817fi
21818
21819
21820
21821# Check whether --with-gssapi was given.
21822if test "${with_gssapi+set}" = set; then :
21823 withval=$with_gssapi;
21824 GSSAPI_ROOT="$withval"
21825 if test x"$GSSAPI_ROOT" != xno; then
21826 want_gss="yes"
21827 if test x"$GSSAPI_ROOT" = xyes; then
21828 GSSAPI_ROOT="/usr"
21829 fi
21830 fi
21831
21832fi
21833
21834
21835: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21836
21837save_CPPFLAGS="$CPPFLAGS"
21838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21839$as_echo_n "checking if GSS-API support is requested... " >&6; }
21840if test x"$want_gss" = xyes; then
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21842$as_echo "yes" >&6; }
21843
21844 if test -z "$GSSAPI_INCS"; then
21845 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21846 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21847 elif test -f "$KRB5CONFIG"; then
21848 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21849 elif test "$GSSAPI_ROOT" != "yes"; then
21850 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21851 fi
21852 fi
21853
21854 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21855
21856 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21857if test "x$ac_cv_header_gss_h" = xyes; then :
21858
21859
21860$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21861
21862 gnu_gss=yes
21863
21864else
21865
21866 for ac_header in gssapi/gssapi.h
21867do :
21868 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21869if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21870 cat >>confdefs.h <<_ACEOF
21871#define HAVE_GSSAPI_GSSAPI_H 1
21872_ACEOF
21873
21874else
21875 not_mit=1
21876fi
21877
21878done
21879
21880 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21881do :
21882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21883ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21884$ac_includes_default
21885#ifdef HAVE_GSSAPI_GSSAPI_H
21886#include <gssapi/gssapi.h>
21887#endif
21888
21889"
21890if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21891 cat >>confdefs.h <<_ACEOF
21892#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21893_ACEOF
21894
21895else
21896 not_mit=1
21897fi
21898
21899done
21900
21901 if test "x$not_mit" = "x1"; then
21902 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21903if test "x$ac_cv_header_gssapi_h" = xyes; then :
21904
21905
21906$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21907
21908
21909else
21910
21911 want_gss=no
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21913$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21914
21915
21916fi
21917
21918
21919 else
21920
21921$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21922
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21924$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21926/* end confdefs.h. */
21927
21928
21929#include <gssapi/gssapi.h>
21930#include <gssapi/gssapi_generic.h>
21931#include <gssapi/gssapi_krb5.h>
21932
21933int main (void)
21934{
21935
21936 gss_import_name(
21937 (OM_uint32 *)0,
21938 (gss_buffer_t)0,
21939 GSS_C_NT_HOSTBASED_SERVICE,
21940 (gss_name_t *)0);
21941
21942 ;
21943 return 0;
21944}
21945
21946_ACEOF
21947if ac_fn_c_try_compile "$LINENO"; then :
21948
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21950$as_echo "yes" >&6; }
21951
21952else
21953
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21955$as_echo "no" >&6; }
21956
21957$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21958
21959
21960fi
21961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21962 fi
21963
21964
21965fi
21966
21967
21968else
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21970$as_echo "no" >&6; }
21971fi
21972if test x"$want_gss" = xyes; then
21973
21974$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21975
21976 HAVE_GSSAPI=1
21977 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21978
21979 if test -n "$gnu_gss"; then
21980 curl_gss_msg="enabled (GNU GSS)"
21981 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21982 LIBS="-lgss $LIBS"
21983 elif test -z "$GSSAPI_LIB_DIR"; then
21984 case $host in
21985 *-*-darwin*)
21986 LIBS="-lgssapi_krb5 -lresolv $LIBS"
21987 ;;
21988 *)
21989 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21990 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21991 LIBS="$gss_libs $LIBS"
21992 elif test -f "$KRB5CONFIG"; then
21993 gss_libs=`$KRB5CONFIG --libs gssapi`
21994 LIBS="$gss_libs $LIBS"
21995 else
21996 case $host in
21997 *-hp-hpux*)
21998 gss_libname="gss"
21999 ;;
22000 *)
22001 gss_libname="gssapi"
22002 ;;
22003 esac
22004
22005 if test "$GSSAPI_ROOT" != "yes"; then
22006 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22007 LIBS="-l$gss_libname $LIBS"
22008 else
22009 LIBS="-l$gss_libname $LIBS"
22010 fi
22011 fi
22012 ;;
22013 esac
22014 else
22015 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22016 case $host in
22017 *-hp-hpux*)
22018 LIBS="-lgss $LIBS"
22019 ;;
22020 *)
22021 LIBS="-lgssapi $LIBS"
22022 ;;
22023 esac
22024 fi
22025else
22026 CPPFLAGS="$save_CPPFLAGS"
22027fi
22028
Alex Deymo486467e2017-12-19 19:04:07 +010022029build_libstubgss=no
22030if test x"$want_gss" = "xyes"; then
22031 build_libstubgss=yes
22032fi
22033
22034 if test "x$build_libstubgss" = "xyes"; then
22035 BUILD_STUB_GSS_TRUE=
22036 BUILD_STUB_GSS_FALSE='#'
22037else
22038 BUILD_STUB_GSS_TRUE='#'
22039 BUILD_STUB_GSS_FALSE=
22040fi
22041
22042
22043
22044DEFAULT_SSL_BACKEND=no
22045VALID_DEFAULT_SSL_BACKEND=
22046
22047# Check whether --with-default-ssl-backend was given.
22048if test "${with_default_ssl_backend+set}" = set; then :
22049 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22050fi
22051
22052case "$DEFAULT_SSL_BACKEND" in
22053 no)
22054 ;;
22055 default|yes)
22056 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22057 ;;
22058 *)
22059
22060 VALID_DEFAULT_SSL_BACKEND=no
22061 ;;
22062esac
22063
22064
Elliott Hughes82be86d2017-09-20 17:00:17 -070022065
22066OPT_WINSSL=no
22067
22068# Check whether --with-winssl was given.
22069if test "${with_winssl+set}" = set; then :
22070 withval=$with_winssl; OPT_WINSSL=$withval
22071fi
22072
22073
Haibo Huang51d9d882019-02-06 01:36:06 -080022074
22075# Check whether --with-schannel was given.
22076if test "${with_schannel+set}" = set; then :
22077 withval=$with_schannel; OPT_WINSSL=$withval
22078fi
22079
22080
Elliott Hughes82be86d2017-09-20 17:00:17 -070022081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22082$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022083if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22084 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070022085 if test "x$OPT_WINSSL" != "xno" &&
22086 test "x$curl_cv_native_windows" = "xyes"; then
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22088$as_echo "yes" >&6; }
22089
22090$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22091
22092 USE_SCHANNEL=1
22093
Alex Deymo486467e2017-12-19 19:04:07 +010022094 ssl_msg="Windows-native"
22095 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022096 WINSSL_ENABLED=1
22097 # --with-winssl implies --enable-sspi
22098
22099$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22100
22101 USE_WINDOWS_SSPI=1
22102
22103 curl_sspi_msg="enabled"
22104 LIBS="-lcrypt32 $LIBS"
22105 else
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22107$as_echo "no" >&6; }
22108 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022109 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022110else
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22112$as_echo "no" >&6; }
22113fi
22114
22115OPT_DARWINSSL=no
22116
22117# Check whether --with-darwinssl was given.
22118if test "${with_darwinssl+set}" = set; then :
22119 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22120fi
22121
22122
22123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22124$as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022125if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022126 if test "x$OPT_DARWINSSL" != "xno" &&
22127 test -d "/System/Library/Frameworks/Security.framework"; then
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22129$as_echo "yes" >&6; }
22130
22131$as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22132
22133 USE_DARWINSSL=1
22134
Alex Deymo486467e2017-12-19 19:04:07 +010022135 ssl_msg="Apple OS-native"
22136 test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022137 DARWINSSL_ENABLED=1
22138 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22139 else
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22141$as_echo "no" >&6; }
22142 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022143 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022144else
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22146$as_echo "no" >&6; }
22147fi
22148
22149
22150OPT_SSL=off
22151ca="no"
22152
22153# Check whether --with-ssl was given.
22154if test "${with_ssl+set}" = set; then :
22155 withval=$with_ssl; OPT_SSL=$withval
22156fi
22157
22158
Alex Deymo486467e2017-12-19 19:04:07 +010022159if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22160 test X"$OPT_SSL" != Xno; then
22161 ssl_msg=
22162
Elliott Hughes82be86d2017-09-20 17:00:17 -070022163 CLEANLDFLAGS="$LDFLAGS"
22164 CLEANCPPFLAGS="$CPPFLAGS"
22165 CLEANLIBS="$LIBS"
22166
22167 case $host in
22168 *-*-msys* | *-*-mingw*)
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22170$as_echo_n "checking for gdi32... " >&6; }
22171 my_ac_save_LIBS=$LIBS
22172 LIBS="-lgdi32 $LIBS"
22173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22174/* end confdefs.h. */
22175#include <windef.h>
22176 #include <wingdi.h>
22177int main (void)
22178{
22179GdiFlush();
22180 ;
22181 return 0;
22182}
22183_ACEOF
22184if ac_fn_c_try_link "$LINENO"; then :
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22186$as_echo "yes" >&6; }
22187else
22188 LIBS=$my_ac_save_LIBS
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22190$as_echo "no" >&6; }
22191
22192fi
22193rm -f core conftest.err conftest.$ac_objext \
22194 conftest$ac_exeext conftest.$ac_ext
22195 ;;
22196 esac
22197
22198 case "$OPT_SSL" in
22199 yes)
22200 if test x$cross_compiling != xyes; then
22201 PKGTEST="yes"
22202 fi
22203 PREFIX_OPENSSL=/usr/local/ssl
22204 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22205 ;;
22206 off)
22207 if test x$cross_compiling != xyes; then
22208 PKGTEST="yes"
22209 fi
22210 PREFIX_OPENSSL=
22211 ;;
22212 *)
22213 PKGTEST="no"
22214 PREFIX_OPENSSL=$OPT_SSL
22215
22216 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022217 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070022218 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22219$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022220 PKGTEST="yes"
Elliott Hughes72d948d2018-08-03 14:37:21 -070022221 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
22222 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070022223 fi
22224
22225 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22226 if test "$PREFIX_OPENSSL" != "/usr" ; then
22227 SSL_LDFLAGS="-L$LIB_OPENSSL"
22228 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22229 fi
22230 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22231 ;;
22232 esac
22233
22234 if test "$PKGTEST" = "yes"; then
22235
22236
22237 if test -n "$PKG_CONFIG"; then
22238 PKGCONFIG="$PKG_CONFIG"
22239 else
22240 if test -n "$ac_tool_prefix"; then
22241 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22242set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22244$as_echo_n "checking for $ac_word... " >&6; }
22245if ${ac_cv_path_PKGCONFIG+:} false; then :
22246 $as_echo_n "(cached) " >&6
22247else
22248 case $PKGCONFIG in
22249 [\\/]* | ?:[\\/]*)
22250 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22251 ;;
22252 *)
22253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22254as_dummy="$PATH:/usr/bin:/usr/local/bin"
22255for as_dir in $as_dummy
22256do
22257 IFS=$as_save_IFS
22258 test -z "$as_dir" && as_dir=.
22259 for ac_exec_ext in '' $ac_executable_extensions; do
22260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22261 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22263 break 2
22264 fi
22265done
22266 done
22267IFS=$as_save_IFS
22268
22269 ;;
22270esac
22271fi
22272PKGCONFIG=$ac_cv_path_PKGCONFIG
22273if test -n "$PKGCONFIG"; then
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22275$as_echo "$PKGCONFIG" >&6; }
22276else
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22278$as_echo "no" >&6; }
22279fi
22280
22281
22282fi
22283if test -z "$ac_cv_path_PKGCONFIG"; then
22284 ac_pt_PKGCONFIG=$PKGCONFIG
22285 # Extract the first word of "pkg-config", so it can be a program name with args.
22286set dummy pkg-config; ac_word=$2
22287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22288$as_echo_n "checking for $ac_word... " >&6; }
22289if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22290 $as_echo_n "(cached) " >&6
22291else
22292 case $ac_pt_PKGCONFIG in
22293 [\\/]* | ?:[\\/]*)
22294 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22295 ;;
22296 *)
22297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22298as_dummy="$PATH:/usr/bin:/usr/local/bin"
22299for as_dir in $as_dummy
22300do
22301 IFS=$as_save_IFS
22302 test -z "$as_dir" && as_dir=.
22303 for ac_exec_ext in '' $ac_executable_extensions; do
22304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22305 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22307 break 2
22308 fi
22309done
22310 done
22311IFS=$as_save_IFS
22312
22313 ;;
22314esac
22315fi
22316ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22317if test -n "$ac_pt_PKGCONFIG"; then
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22319$as_echo "$ac_pt_PKGCONFIG" >&6; }
22320else
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22322$as_echo "no" >&6; }
22323fi
22324
22325 if test "x$ac_pt_PKGCONFIG" = x; then
22326 PKGCONFIG="no"
22327 else
22328 case $cross_compiling:$ac_tool_warned in
22329yes:)
22330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22332ac_tool_warned=yes ;;
22333esac
22334 PKGCONFIG=$ac_pt_PKGCONFIG
22335 fi
22336else
22337 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22338fi
22339
22340 fi
22341
22342 if test "x$PKGCONFIG" != "xno"; then
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22344$as_echo_n "checking for openssl options with pkg-config... " >&6; }
22345 itexists=`
22346 if test -n "$OPENSSL_PCDIR"; then
22347 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22348 export PKG_CONFIG_LIBDIR
22349 fi
22350 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22351
22352 if test -z "$itexists"; then
22353 PKGCONFIG="no"
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22355$as_echo "no" >&6; }
22356 else
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22358$as_echo "found" >&6; }
22359 fi
22360 fi
22361
22362
22363 if test "$PKGCONFIG" != "no" ; then
22364 SSL_LIBS=`
22365 if test -n "$OPENSSL_PCDIR"; then
22366 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22367 export PKG_CONFIG_LIBDIR
22368 fi
Haibo Huang21926d52019-01-08 14:27:10 -080022369 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
Elliott Hughes82be86d2017-09-20 17:00:17 -070022370
22371 SSL_LDFLAGS=`
22372 if test -n "$OPENSSL_PCDIR"; then
22373 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22374 export PKG_CONFIG_LIBDIR
22375 fi
22376 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22377
22378 SSL_CPPFLAGS=`
22379 if test -n "$OPENSSL_PCDIR"; then
22380 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22381 export PKG_CONFIG_LIBDIR
22382 fi
22383 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22384
22385
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22387$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22389$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22391$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22392
22393 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22394
22395 LIBS="$SSL_LIBS $LIBS"
22396 fi
22397 fi
22398
22399 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22400 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22401
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22403$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22404if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22405 $as_echo_n "(cached) " >&6
22406else
22407 ac_check_lib_save_LIBS=$LIBS
22408LIBS="-lcrypto $LIBS"
22409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22410/* end confdefs.h. */
22411
22412
22413#ifdef __cplusplus
22414extern "C"
22415#endif
22416char HMAC_Update ();
22417int main (void)
22418{
22419return HMAC_Update ();
22420 ;
22421 return 0;
22422}
22423_ACEOF
22424if ac_fn_c_try_link "$LINENO"; then :
22425 ac_cv_lib_crypto_HMAC_Update=yes
22426else
22427 ac_cv_lib_crypto_HMAC_Update=no
22428fi
22429rm -f core conftest.err conftest.$ac_objext \
22430 conftest$ac_exeext conftest.$ac_ext
22431LIBS=$ac_check_lib_save_LIBS
22432fi
22433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22434$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22435if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22436
22437 HAVECRYPTO="yes"
22438 LIBS="-lcrypto $LIBS"
22439
22440else
22441
22442 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070022443 if test "$PKGCONFIG" = "no" ; then
22444 # only set this if pkg-config wasn't used
22445 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22446 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070022447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22448$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22449if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22450 $as_echo_n "(cached) " >&6
22451else
22452 ac_check_lib_save_LIBS=$LIBS
22453LIBS="-lcrypto $LIBS"
22454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22455/* end confdefs.h. */
22456
22457
22458#ifdef __cplusplus
22459extern "C"
22460#endif
22461char HMAC_Init_ex ();
22462int main (void)
22463{
22464return HMAC_Init_ex ();
22465 ;
22466 return 0;
22467}
22468_ACEOF
22469if ac_fn_c_try_link "$LINENO"; then :
22470 ac_cv_lib_crypto_HMAC_Init_ex=yes
22471else
22472 ac_cv_lib_crypto_HMAC_Init_ex=no
22473fi
22474rm -f core conftest.err conftest.$ac_objext \
22475 conftest$ac_exeext conftest.$ac_ext
22476LIBS=$ac_check_lib_save_LIBS
22477fi
22478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22479$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22480if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22481
22482 HAVECRYPTO="yes"
22483 LIBS="-lcrypto $LIBS"
22484else
22485
22486
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22488$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022489 LIBS="$CLEANLIBS -lcrypto -ldl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491/* end confdefs.h. */
22492
22493 #include <openssl/err.h>
22494
22495int main (void)
22496{
22497
22498 ERR_clear_error();
22499
22500 ;
22501 return 0;
22502}
22503_ACEOF
22504if ac_fn_c_try_link "$LINENO"; then :
22505
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22507$as_echo "yes" >&6; }
22508 HAVECRYPTO="yes"
22509
22510else
22511
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22513$as_echo "no" >&6; }
22514
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22516$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022517 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22519/* end confdefs.h. */
22520
22521 #include <openssl/err.h>
22522
22523int main (void)
22524{
22525
22526 ERR_clear_error();
22527
22528 ;
22529 return 0;
22530}
22531_ACEOF
22532if ac_fn_c_try_link "$LINENO"; then :
22533
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22535$as_echo "yes" >&6; }
22536 HAVECRYPTO="yes"
22537
22538else
22539
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22541$as_echo "no" >&6; }
22542 LDFLAGS="$CLEANLDFLAGS"
22543 CPPFLAGS="$CLEANCPPFLAGS"
22544 LIBS="$CLEANLIBS"
22545
22546
22547fi
22548rm -f core conftest.err conftest.$ac_objext \
22549 conftest$ac_exeext conftest.$ac_ext
22550
22551
22552fi
22553rm -f core conftest.err conftest.$ac_objext \
22554 conftest$ac_exeext conftest.$ac_ext
22555
22556
22557fi
22558
22559
22560fi
22561
22562
22563 if test X"$HAVECRYPTO" = X"yes"; then
22564
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22566$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22567if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22568 $as_echo_n "(cached) " >&6
22569else
22570 ac_check_lib_save_LIBS=$LIBS
22571LIBS="-lssl $LIBS"
22572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22573/* end confdefs.h. */
22574
22575
22576#ifdef __cplusplus
22577extern "C"
22578#endif
22579char SSL_connect ();
22580int main (void)
22581{
22582return SSL_connect ();
22583 ;
22584 return 0;
22585}
22586_ACEOF
22587if ac_fn_c_try_link "$LINENO"; then :
22588 ac_cv_lib_ssl_SSL_connect=yes
22589else
22590 ac_cv_lib_ssl_SSL_connect=no
22591fi
22592rm -f core conftest.err conftest.$ac_objext \
22593 conftest$ac_exeext conftest.$ac_ext
22594LIBS=$ac_check_lib_save_LIBS
22595fi
22596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22597$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22598if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22599 cat >>confdefs.h <<_ACEOF
22600#define HAVE_LIBSSL 1
22601_ACEOF
22602
22603 LIBS="-lssl $LIBS"
22604
22605fi
22606
22607
22608 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22610$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22611 OLIBS=$LIBS
22612 LIBS="-lRSAglue -lrsaref $LIBS"
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22614$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22615if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22616 $as_echo_n "(cached) " >&6
22617else
22618 ac_check_lib_save_LIBS=$LIBS
22619LIBS="-lssl $LIBS"
22620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22621/* end confdefs.h. */
22622
22623
22624#ifdef __cplusplus
22625extern "C"
22626#endif
22627char SSL_connect ();
22628int main (void)
22629{
22630return SSL_connect ();
22631 ;
22632 return 0;
22633}
22634_ACEOF
22635if ac_fn_c_try_link "$LINENO"; then :
22636 ac_cv_lib_ssl_SSL_connect=yes
22637else
22638 ac_cv_lib_ssl_SSL_connect=no
22639fi
22640rm -f core conftest.err conftest.$ac_objext \
22641 conftest$ac_exeext conftest.$ac_ext
22642LIBS=$ac_check_lib_save_LIBS
22643fi
22644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22645$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22646if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22647 cat >>confdefs.h <<_ACEOF
22648#define HAVE_LIBSSL 1
22649_ACEOF
22650
22651 LIBS="-lssl $LIBS"
22652
22653fi
22654
22655 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22657$as_echo "no" >&6; }
22658 LIBS=$OLIBS
22659 else
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22661$as_echo "yes" >&6; }
22662 fi
22663
22664 else
22665
22666 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22667 openssl/pem.h openssl/ssl.h openssl/err.h
22668do :
22669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22670ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22671if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22672 cat >>confdefs.h <<_ACEOF
22673#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22674_ACEOF
Alex Deymo486467e2017-12-19 19:04:07 +010022675 ssl_msg="OpenSSL"
22676 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022677 OPENSSL_ENABLED=1
22678
22679$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22680
22681fi
22682
22683done
22684
22685
22686 if test $ac_cv_header_openssl_x509_h = no; then
22687 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22688do :
22689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22690ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22691if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22692 cat >>confdefs.h <<_ACEOF
22693#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22694_ACEOF
22695
22696fi
22697
22698done
22699
22700
22701 if test $ac_cv_header_x509_h = yes &&
22702 test $ac_cv_header_crypto_h = yes &&
22703 test $ac_cv_header_ssl_h = yes; then
Alex Deymo486467e2017-12-19 19:04:07 +010022704 ssl_msg="OpenSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022705 OPENSSL_ENABLED=1
22706 fi
22707 fi
22708 fi
22709
Alex Deymo486467e2017-12-19 19:04:07 +010022710 if test X"$OPENSSL_ENABLED" != X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022711 LIBS="$CLEANLIBS"
22712 fi
22713
22714 if test X"$OPT_SSL" != Xoff &&
22715 test "$OPENSSL_ENABLED" != "1"; then
22716 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22717 fi
22718 fi
22719
22720 if test X"$OPENSSL_ENABLED" = X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022721
22722 for ac_func in RAND_egd \
Elliott Hughes82be86d2017-09-20 17:00:17 -070022723 SSL_get_shutdown \
Haibo Huang51d9d882019-02-06 01:36:06 -080022724 SSLv2_client_method \
22725 OpenSSL_version
Elliott Hughes82be86d2017-09-20 17:00:17 -070022726do :
22727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22728ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22729if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22730 cat >>confdefs.h <<_ACEOF
22731#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22732_ACEOF
22733
22734fi
22735done
22736
22737
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22739$as_echo_n "checking for BoringSSL... " >&6; }
22740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22741/* end confdefs.h. */
22742
22743
22744 #include <openssl/base.h>
22745
22746int main (void)
22747{
22748
22749 #ifndef OPENSSL_IS_BORINGSSL
22750 #error not boringssl
22751 #endif
22752
22753 ;
22754 return 0;
22755}
22756
22757_ACEOF
22758if ac_fn_c_try_compile "$LINENO"; then :
22759
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22761$as_echo "yes" >&6; }
22762
22763cat >>confdefs.h <<_ACEOF
22764#define HAVE_BORINGSSL 1
22765_ACEOF
22766
Alex Deymo486467e2017-12-19 19:04:07 +010022767 ssl_msg="BoringSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022768
22769else
22770
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22772$as_echo "no" >&6; }
22773
22774fi
22775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22776
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22778$as_echo_n "checking for libressl... " >&6; }
22779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22780/* end confdefs.h. */
22781
22782
22783#include <openssl/opensslv.h>
22784
22785int main (void)
22786{
22787
22788 int dummy = LIBRESSL_VERSION_NUMBER;
22789
22790 ;
22791 return 0;
22792}
22793
22794_ACEOF
22795if ac_fn_c_try_compile "$LINENO"; then :
22796
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22798$as_echo "yes" >&6; }
22799
22800cat >>confdefs.h <<_ACEOF
22801#define HAVE_LIBRESSL 1
22802_ACEOF
22803
Alex Deymo486467e2017-12-19 19:04:07 +010022804 ssl_msg="libressl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022805
22806else
22807
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22809$as_echo "no" >&6; }
22810
22811fi
22812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22813 fi
22814
22815 if test "$OPENSSL_ENABLED" = "1"; then
22816 if test -n "$LIB_OPENSSL"; then
22817 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070022818 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
22819 export CURL_LIBRARY_PATH
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
22821$as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022822 fi
22823 fi
22824
22825 #
22826
22827 #
22828 tst_api="unknown"
22829 #
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22831$as_echo_n "checking for OpenSSL headers version... " >&6; }
22832
22833 OLDCPPFLAGS=$CPPFLAGS
22834 # CPPPFLAG comes from CURL_CPP_P
22835 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22836 if test -z "$SED"; then
22837 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22838 fi
22839 if test -z "$GREP"; then
22840 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22841 fi
22842
22843 tmp_exp=""
22844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22845/* end confdefs.h. */
22846
22847
22848# ifdef USE_OPENSSL
22849# include <openssl/crypto.h>
22850# else
22851# include <crypto.h>
22852# endif
22853
22854#ifdef OPENSSL_VERSION_NUMBER
22855CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22856#endif
22857
22858
22859_ACEOF
22860if ac_fn_c_try_cpp "$LINENO"; then :
22861
22862 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22863 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22864 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22865 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22866 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22867 tmp_exp=""
22868 fi
22869
22870fi
22871rm -f conftest.err conftest.i conftest.$ac_ext
22872 if test -z "$tmp_exp"; then
22873 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22874
22875 else
22876 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22877 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22878
22879 fi
22880 CPPFLAGS=$OLDCPPFLAGS
22881
22882 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22883 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22884 case "x$tst_verlen" in
22885 x6)
22886 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22887 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22888 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22889 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22890 ;;
22891 x11|x10)
22892 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22893 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22894 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22895 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22896 ;;
22897 *)
22898 tst_api="unknown"
22899 ;;
22900 esac
22901 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070022902 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070022903 0x110) tst_show="1.1.0" ;;
22904 0x102) tst_show="1.0.2" ;;
22905 0x101) tst_show="1.0.1" ;;
22906 0x100) tst_show="1.0.0" ;;
22907 0x099) tst_show="0.9.9" ;;
22908 0x098) tst_show="0.9.8" ;;
22909 0x097) tst_show="0.9.7" ;;
22910 0x096) tst_show="0.9.6" ;;
22911 0x095) tst_show="0.9.5" ;;
22912 0x094) tst_show="0.9.4" ;;
22913 0x093) tst_show="0.9.3" ;;
22914 0x092) tst_show="0.9.2" ;;
22915 0x091) tst_show="0.9.1" ;;
22916 *) tst_show="unknown" ;;
22917 esac
22918 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22919 else
22920 tst_show="unknown"
22921 fi
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22923$as_echo "$tst_show" >&6; }
22924 #
22925 curl_openssl_api_headers=$tst_api
22926
22927
22928 #
22929 tst_api="unknown"
22930 #
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22932$as_echo_n "checking for OpenSSL library version... " >&6; }
22933 if test "$tst_api" = "unknown"; then
Elliott Hughescac39802018-04-27 16:19:43 -070022934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22935/* end confdefs.h. */
22936
22937
22938#define ERR_clear_last_mark innocuous_ERR_clear_last_mark
22939#ifdef __STDC__
22940# include <limits.h>
22941#else
22942# include <assert.h>
22943#endif
22944#undef ERR_clear_last_mark
22945#ifdef __cplusplus
22946extern "C"
22947#endif
22948char ERR_clear_last_mark ();
22949#if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
22950choke me
22951#endif
22952
22953int main (void)
22954{
22955return ERR_clear_last_mark ();
22956 ;
22957 return 0;
22958}
22959
22960_ACEOF
22961if ac_fn_c_try_link "$LINENO"; then :
22962
22963 tst_api="0x111"
22964
22965fi
22966rm -f core conftest.err conftest.$ac_objext \
22967 conftest$ac_exeext conftest.$ac_ext
22968 fi
22969 if test "$tst_api" = "unknown"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022970 case $host in
22971 *-*-vms*)
22972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22973/* end confdefs.h. */
22974
22975
22976#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22977#ifdef __STDC__
22978# include <limits.h>
22979#else
22980# include <assert.h>
22981#endif
22982#undef SSL_CTX_set_not_resumbl_sess_cb
22983#ifdef __cplusplus
22984extern "C"
22985#endif
22986char SSL_CTX_set_not_resumbl_sess_cb ();
22987#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22988choke me
22989#endif
22990
22991int main (void)
22992{
22993return SSL_CTX_set_not_resumbl_sess_cb ();
22994 ;
22995 return 0;
22996}
22997
22998_ACEOF
22999if ac_fn_c_try_link "$LINENO"; then :
23000
23001 tst_api="0x110"
23002
23003fi
23004rm -f core conftest.err conftest.$ac_objext \
23005 conftest$ac_exeext conftest.$ac_ext
23006 ;;
23007 *)
23008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23009/* end confdefs.h. */
23010
23011
23012#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23013#ifdef __STDC__
23014# include <limits.h>
23015#else
23016# include <assert.h>
23017#endif
23018#undef SSL_CTX_set_not_resumable_session_callback
23019#ifdef __cplusplus
23020extern "C"
23021#endif
23022char SSL_CTX_set_not_resumable_session_callback ();
23023#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23024choke me
23025#endif
23026
23027int main (void)
23028{
23029return SSL_CTX_set_not_resumable_session_callback ();
23030 ;
23031 return 0;
23032}
23033
23034_ACEOF
23035if ac_fn_c_try_link "$LINENO"; then :
23036
23037 tst_api="0x110"
23038
23039fi
23040rm -f core conftest.err conftest.$ac_objext \
23041 conftest$ac_exeext conftest.$ac_ext
23042 ;;
23043 esac
23044 fi
23045 if test "$tst_api" = "unknown"; then
23046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23047/* end confdefs.h. */
23048
23049
23050#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23051#ifdef __STDC__
23052# include <limits.h>
23053#else
23054# include <assert.h>
23055#endif
23056#undef SSL_CONF_CTX_new
23057#ifdef __cplusplus
23058extern "C"
23059#endif
23060char SSL_CONF_CTX_new ();
23061#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23062choke me
23063#endif
23064
23065int main (void)
23066{
23067return SSL_CONF_CTX_new ();
23068 ;
23069 return 0;
23070}
23071
23072_ACEOF
23073if ac_fn_c_try_link "$LINENO"; then :
23074
23075 tst_api="0x102"
23076
23077fi
23078rm -f core conftest.err conftest.$ac_objext \
23079 conftest$ac_exeext conftest.$ac_ext
23080 fi
23081 if test "$tst_api" = "unknown"; then
23082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083/* end confdefs.h. */
23084
23085
23086#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23087#ifdef __STDC__
23088# include <limits.h>
23089#else
23090# include <assert.h>
23091#endif
23092#undef SSL_renegotiate_abbreviated
23093#ifdef __cplusplus
23094extern "C"
23095#endif
23096char SSL_renegotiate_abbreviated ();
23097#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23098choke me
23099#endif
23100
23101int main (void)
23102{
23103return SSL_renegotiate_abbreviated ();
23104 ;
23105 return 0;
23106}
23107
23108_ACEOF
23109if ac_fn_c_try_link "$LINENO"; then :
23110
23111 tst_api="0x101"
23112
23113fi
23114rm -f core conftest.err conftest.$ac_objext \
23115 conftest$ac_exeext conftest.$ac_ext
23116 fi
23117 if test "$tst_api" = "unknown"; then
23118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23119/* end confdefs.h. */
23120
23121
23122#define OBJ_add_sigid innocuous_OBJ_add_sigid
23123#ifdef __STDC__
23124# include <limits.h>
23125#else
23126# include <assert.h>
23127#endif
23128#undef OBJ_add_sigid
23129#ifdef __cplusplus
23130extern "C"
23131#endif
23132char OBJ_add_sigid ();
23133#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23134choke me
23135#endif
23136
23137int main (void)
23138{
23139return OBJ_add_sigid ();
23140 ;
23141 return 0;
23142}
23143
23144_ACEOF
23145if ac_fn_c_try_link "$LINENO"; then :
23146
23147 tst_api="0x100"
23148
23149fi
23150rm -f core conftest.err conftest.$ac_objext \
23151 conftest$ac_exeext conftest.$ac_ext
23152 fi
23153 if test "$tst_api" = "unknown"; then
23154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23155/* end confdefs.h. */
23156
23157
23158#define ERR_set_mark innocuous_ERR_set_mark
23159#ifdef __STDC__
23160# include <limits.h>
23161#else
23162# include <assert.h>
23163#endif
23164#undef ERR_set_mark
23165#ifdef __cplusplus
23166extern "C"
23167#endif
23168char ERR_set_mark ();
23169#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23170choke me
23171#endif
23172
23173int main (void)
23174{
23175return ERR_set_mark ();
23176 ;
23177 return 0;
23178}
23179
23180_ACEOF
23181if ac_fn_c_try_link "$LINENO"; then :
23182
23183 tst_api="0x098"
23184
23185fi
23186rm -f core conftest.err conftest.$ac_objext \
23187 conftest$ac_exeext conftest.$ac_ext
23188 fi
23189 if test "$tst_api" = "unknown"; then
23190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23191/* end confdefs.h. */
23192
23193
23194#define ERR_peek_last_error innocuous_ERR_peek_last_error
23195#ifdef __STDC__
23196# include <limits.h>
23197#else
23198# include <assert.h>
23199#endif
23200#undef ERR_peek_last_error
23201#ifdef __cplusplus
23202extern "C"
23203#endif
23204char ERR_peek_last_error ();
23205#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23206choke me
23207#endif
23208
23209int main (void)
23210{
23211return ERR_peek_last_error ();
23212 ;
23213 return 0;
23214}
23215
23216_ACEOF
23217if ac_fn_c_try_link "$LINENO"; then :
23218
23219 tst_api="0x097"
23220
23221fi
23222rm -f core conftest.err conftest.$ac_objext \
23223 conftest$ac_exeext conftest.$ac_ext
23224 fi
23225 if test "$tst_api" = "unknown"; then
23226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23227/* end confdefs.h. */
23228
23229
23230#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23231#ifdef __STDC__
23232# include <limits.h>
23233#else
23234# include <assert.h>
23235#endif
23236#undef c2i_ASN1_OBJECT
23237#ifdef __cplusplus
23238extern "C"
23239#endif
23240char c2i_ASN1_OBJECT ();
23241#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23242choke me
23243#endif
23244
23245int main (void)
23246{
23247return c2i_ASN1_OBJECT ();
23248 ;
23249 return 0;
23250}
23251
23252_ACEOF
23253if ac_fn_c_try_link "$LINENO"; then :
23254
23255 tst_api="0x096"
23256
23257fi
23258rm -f core conftest.err conftest.$ac_objext \
23259 conftest$ac_exeext conftest.$ac_ext
23260 fi
23261 if test "$tst_api" = "unknown"; then
23262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23263/* end confdefs.h. */
23264
23265
23266#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23267#ifdef __STDC__
23268# include <limits.h>
23269#else
23270# include <assert.h>
23271#endif
23272#undef SSL_CTX_set_purpose
23273#ifdef __cplusplus
23274extern "C"
23275#endif
23276char SSL_CTX_set_purpose ();
23277#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23278choke me
23279#endif
23280
23281int main (void)
23282{
23283return SSL_CTX_set_purpose ();
23284 ;
23285 return 0;
23286}
23287
23288_ACEOF
23289if ac_fn_c_try_link "$LINENO"; then :
23290
23291 tst_api="0x095"
23292
23293fi
23294rm -f core conftest.err conftest.$ac_objext \
23295 conftest$ac_exeext conftest.$ac_ext
23296 fi
23297 if test "$tst_api" = "unknown"; then
23298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23299/* end confdefs.h. */
23300
23301
23302#define OBJ_obj2txt innocuous_OBJ_obj2txt
23303#ifdef __STDC__
23304# include <limits.h>
23305#else
23306# include <assert.h>
23307#endif
23308#undef OBJ_obj2txt
23309#ifdef __cplusplus
23310extern "C"
23311#endif
23312char OBJ_obj2txt ();
23313#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23314choke me
23315#endif
23316
23317int main (void)
23318{
23319return OBJ_obj2txt ();
23320 ;
23321 return 0;
23322}
23323
23324_ACEOF
23325if ac_fn_c_try_link "$LINENO"; then :
23326
23327 tst_api="0x094"
23328
23329fi
23330rm -f core conftest.err conftest.$ac_objext \
23331 conftest$ac_exeext conftest.$ac_ext
23332 fi
23333 if test "$tst_api" = "unknown"; then
23334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23335/* end confdefs.h. */
23336
23337
23338#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23339#ifdef __STDC__
23340# include <limits.h>
23341#else
23342# include <assert.h>
23343#endif
23344#undef SSL_get_verify_depth
23345#ifdef __cplusplus
23346extern "C"
23347#endif
23348char SSL_get_verify_depth ();
23349#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23350choke me
23351#endif
23352
23353int main (void)
23354{
23355return SSL_get_verify_depth ();
23356 ;
23357 return 0;
23358}
23359
23360_ACEOF
23361if ac_fn_c_try_link "$LINENO"; then :
23362
23363 tst_api="0x093"
23364
23365fi
23366rm -f core conftest.err conftest.$ac_objext \
23367 conftest$ac_exeext conftest.$ac_ext
23368 fi
23369 if test "$tst_api" = "unknown"; then
23370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23371/* end confdefs.h. */
23372
23373
23374#define SSL_library_init innocuous_SSL_library_init
23375#ifdef __STDC__
23376# include <limits.h>
23377#else
23378# include <assert.h>
23379#endif
23380#undef SSL_library_init
23381#ifdef __cplusplus
23382extern "C"
23383#endif
23384char SSL_library_init ();
23385#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23386choke me
23387#endif
23388
23389int main (void)
23390{
23391return SSL_library_init ();
23392 ;
23393 return 0;
23394}
23395
23396_ACEOF
23397if ac_fn_c_try_link "$LINENO"; then :
23398
23399 tst_api="0x092"
23400
23401fi
23402rm -f core conftest.err conftest.$ac_objext \
23403 conftest$ac_exeext conftest.$ac_ext
23404 fi
23405 if test "$tst_api" = "unknown"; then
23406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23407/* end confdefs.h. */
23408
23409
23410#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23411#ifdef __STDC__
23412# include <limits.h>
23413#else
23414# include <assert.h>
23415#endif
23416#undef SSL_CTX_set_cipher_list
23417#ifdef __cplusplus
23418extern "C"
23419#endif
23420char SSL_CTX_set_cipher_list ();
23421#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23422choke me
23423#endif
23424
23425int main (void)
23426{
23427return SSL_CTX_set_cipher_list ();
23428 ;
23429 return 0;
23430}
23431
23432_ACEOF
23433if ac_fn_c_try_link "$LINENO"; then :
23434
23435 tst_api="0x091"
23436
23437fi
23438rm -f core conftest.err conftest.$ac_objext \
23439 conftest$ac_exeext conftest.$ac_ext
23440 fi
23441 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023442 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023443 0x110) tst_show="1.1.0" ;;
23444 0x102) tst_show="1.0.2" ;;
23445 0x101) tst_show="1.0.1" ;;
23446 0x100) tst_show="1.0.0" ;;
23447 0x099) tst_show="0.9.9" ;;
23448 0x098) tst_show="0.9.8" ;;
23449 0x097) tst_show="0.9.7" ;;
23450 0x096) tst_show="0.9.6" ;;
23451 0x095) tst_show="0.9.5" ;;
23452 0x094) tst_show="0.9.4" ;;
23453 0x093) tst_show="0.9.3" ;;
23454 0x092) tst_show="0.9.2" ;;
23455 0x091) tst_show="0.9.1" ;;
23456 *) tst_show="unknown" ;;
23457 esac
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23459$as_echo "$tst_show" >&6; }
23460 #
23461 curl_openssl_api_library=$tst_api
23462
23463 #
23464 tst_match="yes"
23465 #
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23467$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23468 if test "$curl_openssl_api_headers" = "unknown" ||
23469 test "$curl_openssl_api_library" = "unknown"; then
23470 tst_match="fail"
23471 tst_warns="Can not compare OpenSSL headers and library versions."
23472 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23473 tst_match="no"
23474 tst_warns="OpenSSL headers and library versions do not match."
23475 fi
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23477$as_echo "$tst_match" >&6; }
23478 if test "$tst_match" != "yes"; then
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23480$as_echo "$as_me: WARNING: $tst_warns" >&2;}
23481 fi
23482
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023483 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070023484 fi
23485
Alex Deymo486467e2017-12-19 19:04:07 +010023486 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023487fi
23488
23489
23490if test X"$OPENSSL_ENABLED" = X"1"; then
23491
23492# Check whether --with-egd-socket was given.
23493if test "${with_egd_socket+set}" = set; then :
23494 withval=$with_egd_socket; EGD_SOCKET="$withval"
23495
23496fi
23497
23498 if test -n "$EGD_SOCKET" ; then
23499
23500cat >>confdefs.h <<_ACEOF
23501#define EGD_SOCKET "$EGD_SOCKET"
23502_ACEOF
23503
23504 fi
23505
23506
23507# Check whether --with-random was given.
23508if test "${with_random+set}" = set; then :
23509 withval=$with_random; RANDOM_FILE="$withval"
23510else
23511
23512 if test x$cross_compiling != xyes; then
23513 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23515$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23516if eval \${$as_ac_File+:} false; then :
23517 $as_echo_n "(cached) " >&6
23518else
23519 test "$cross_compiling" = yes &&
23520 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23521if test -r ""/dev/urandom""; then
23522 eval "$as_ac_File=yes"
23523else
23524 eval "$as_ac_File=no"
23525fi
23526fi
23527eval ac_res=\$$as_ac_File
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23529$as_echo "$ac_res" >&6; }
23530if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23531 RANDOM_FILE="/dev/urandom"
23532fi
23533
23534 else
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23536$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23537 fi
23538
23539
23540fi
23541
23542 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23543
23544
23545cat >>confdefs.h <<_ACEOF
23546#define RANDOM_FILE "$RANDOM_FILE"
23547_ACEOF
23548
23549 fi
23550fi
23551
23552if test "$OPENSSL_ENABLED" = "1"; then
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23554$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23555if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23556 $as_echo_n "(cached) " >&6
23557else
23558 ac_check_lib_save_LIBS=$LIBS
23559LIBS="-lcrypto $LIBS"
23560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23561/* end confdefs.h. */
23562
23563
23564#ifdef __cplusplus
23565extern "C"
23566#endif
23567char SRP_Calc_client_key ();
23568int main (void)
23569{
23570return SRP_Calc_client_key ();
23571 ;
23572 return 0;
23573}
23574_ACEOF
23575if ac_fn_c_try_link "$LINENO"; then :
23576 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23577else
23578 ac_cv_lib_crypto_SRP_Calc_client_key=no
23579fi
23580rm -f core conftest.err conftest.$ac_objext \
23581 conftest$ac_exeext conftest.$ac_ext
23582LIBS=$ac_check_lib_save_LIBS
23583fi
23584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23585$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23586if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23587
23588
23589$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23590
23591 HAVE_OPENSSL_SRP=1
23592
23593
23594fi
23595
23596fi
23597
Elliott Hughesa93fb052018-12-12 14:22:48 -080023598if test X"$OPENSSL_ENABLED" = X"1"; then
23599# Check whether --enable-openssl-auto-load-config was given.
23600if test "${enable_openssl_auto_load_config+set}" = set; then :
23601 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
23603$as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
23604
23605$as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
23606
23607 fi
23608
23609fi
23610
23611fi
23612
Elliott Hughes82be86d2017-09-20 17:00:17 -070023613
23614OPT_GNUTLS=no
23615
23616
23617# Check whether --with-gnutls was given.
23618if test "${with_gnutls+set}" = set; then :
23619 withval=$with_gnutls; OPT_GNUTLS=$withval
23620fi
23621
23622
Alex Deymo486467e2017-12-19 19:04:07 +010023623if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23624 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070023625
23626 if test X"$OPT_GNUTLS" != Xno; then
23627
23628 addld=""
23629 addlib=""
23630 gtlslib=""
23631 version=""
23632 addcflags=""
23633
23634 if test "x$OPT_GNUTLS" = "xyes"; then
23635
23636 if test -n "$PKG_CONFIG"; then
23637 PKGCONFIG="$PKG_CONFIG"
23638 else
23639 if test -n "$ac_tool_prefix"; then
23640 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23641set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23643$as_echo_n "checking for $ac_word... " >&6; }
23644if ${ac_cv_path_PKGCONFIG+:} false; then :
23645 $as_echo_n "(cached) " >&6
23646else
23647 case $PKGCONFIG in
23648 [\\/]* | ?:[\\/]*)
23649 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23650 ;;
23651 *)
23652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23653as_dummy="$PATH:/usr/bin:/usr/local/bin"
23654for as_dir in $as_dummy
23655do
23656 IFS=$as_save_IFS
23657 test -z "$as_dir" && as_dir=.
23658 for ac_exec_ext in '' $ac_executable_extensions; do
23659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23660 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23662 break 2
23663 fi
23664done
23665 done
23666IFS=$as_save_IFS
23667
23668 ;;
23669esac
23670fi
23671PKGCONFIG=$ac_cv_path_PKGCONFIG
23672if test -n "$PKGCONFIG"; then
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23674$as_echo "$PKGCONFIG" >&6; }
23675else
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23677$as_echo "no" >&6; }
23678fi
23679
23680
23681fi
23682if test -z "$ac_cv_path_PKGCONFIG"; then
23683 ac_pt_PKGCONFIG=$PKGCONFIG
23684 # Extract the first word of "pkg-config", so it can be a program name with args.
23685set dummy pkg-config; ac_word=$2
23686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23687$as_echo_n "checking for $ac_word... " >&6; }
23688if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23689 $as_echo_n "(cached) " >&6
23690else
23691 case $ac_pt_PKGCONFIG in
23692 [\\/]* | ?:[\\/]*)
23693 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23694 ;;
23695 *)
23696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23697as_dummy="$PATH:/usr/bin:/usr/local/bin"
23698for as_dir in $as_dummy
23699do
23700 IFS=$as_save_IFS
23701 test -z "$as_dir" && as_dir=.
23702 for ac_exec_ext in '' $ac_executable_extensions; do
23703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23704 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23706 break 2
23707 fi
23708done
23709 done
23710IFS=$as_save_IFS
23711
23712 ;;
23713esac
23714fi
23715ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23716if test -n "$ac_pt_PKGCONFIG"; then
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23718$as_echo "$ac_pt_PKGCONFIG" >&6; }
23719else
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23721$as_echo "no" >&6; }
23722fi
23723
23724 if test "x$ac_pt_PKGCONFIG" = x; then
23725 PKGCONFIG="no"
23726 else
23727 case $cross_compiling:$ac_tool_warned in
23728yes:)
23729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23731ac_tool_warned=yes ;;
23732esac
23733 PKGCONFIG=$ac_pt_PKGCONFIG
23734 fi
23735else
23736 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23737fi
23738
23739 fi
23740
23741 if test "x$PKGCONFIG" != "xno"; then
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23743$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23744 itexists=`
23745 if test -n ""; then
23746 PKG_CONFIG_LIBDIR=""
23747 export PKG_CONFIG_LIBDIR
23748 fi
23749 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23750
23751 if test -z "$itexists"; then
23752 PKGCONFIG="no"
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23754$as_echo "no" >&6; }
23755 else
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23757$as_echo "found" >&6; }
23758 fi
23759 fi
23760
23761
23762 if test "$PKGCONFIG" != "no" ; then
23763 addlib=`$PKGCONFIG --libs-only-l gnutls`
23764 addld=`$PKGCONFIG --libs-only-L gnutls`
23765 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23766 version=`$PKGCONFIG --modversion gnutls`
23767 gtlslib=`echo $addld | $SED -e 's/-L//'`
23768 else
23769 check=`libgnutls-config --version 2>/dev/null`
23770 if test -n "$check"; then
23771 addlib=`libgnutls-config --libs`
23772 addcflags=`libgnutls-config --cflags`
23773 version=`libgnutls-config --version`
23774 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23775 fi
23776 fi
23777 else
23778 cfg=$OPT_GNUTLS/bin/libgnutls-config
23779 check=`$cfg --version 2>/dev/null`
23780 if test -n "$check"; then
23781 addlib=`$cfg --libs`
23782 addcflags=`$cfg --cflags`
23783 version=`$cfg --version`
23784 gtlslib=`$cfg --prefix`/lib$libsuff
23785 else
23786 addlib=-lgnutls
23787 addld=-L$OPT_GNUTLS/lib$libsuff
23788 addcflags=-I$OPT_GNUTLS/include
23789 version="" # we just don't know
23790 gtlslib=$OPT_GNUTLS/lib$libsuff
23791 fi
23792 fi
23793
23794 if test -z "$version"; then
23795 version="unknown"
23796 fi
23797
23798 if test -n "$addlib"; then
23799
23800 CLEANLIBS="$LIBS"
23801 CLEANCPPFLAGS="$CPPFLAGS"
23802 CLEANLDFLAGS="$LDFLAGS"
23803
23804 LIBS="$addlib $LIBS"
23805 LDFLAGS="$LDFLAGS $addld"
23806 if test "$addcflags" != "-I/usr/include"; then
23807 CPPFLAGS="$CPPFLAGS $addcflags"
23808 fi
23809
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23811$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23812if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23813 $as_echo_n "(cached) " >&6
23814else
23815 ac_check_lib_save_LIBS=$LIBS
23816LIBS="-lgnutls $LIBS"
23817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23818/* end confdefs.h. */
23819
23820
23821#ifdef __cplusplus
23822extern "C"
23823#endif
23824char gnutls_check_version ();
23825int main (void)
23826{
23827return gnutls_check_version ();
23828 ;
23829 return 0;
23830}
23831_ACEOF
23832if ac_fn_c_try_link "$LINENO"; then :
23833 ac_cv_lib_gnutls_gnutls_check_version=yes
23834else
23835 ac_cv_lib_gnutls_gnutls_check_version=no
23836fi
23837rm -f core conftest.err conftest.$ac_objext \
23838 conftest$ac_exeext conftest.$ac_ext
23839LIBS=$ac_check_lib_save_LIBS
23840fi
23841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23842$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23843if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23844
23845
23846$as_echo "#define USE_GNUTLS 1" >>confdefs.h
23847
23848 USE_GNUTLS=1
23849
23850 GNUTLS_ENABLED=1
23851 USE_GNUTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010023852 ssl_msg="GnuTLS"
23853 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070023854
23855else
23856
23857 LIBS="$CLEANLIBS"
23858 CPPFLAGS="$CLEANCPPFLAGS"
23859
23860fi
23861
23862
23863 if test "x$USE_GNUTLS" = "xyes"; then
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23865$as_echo "$as_me: detected GnuTLS version $version" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023866 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070023867 if test -n "$gtlslib"; then
23868 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023869 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
23870 export CURL_LIBRARY_PATH
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
23872$as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070023873 fi
23874 fi
23875 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
23876do :
23877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23878ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23879if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23880 cat >>confdefs.h <<_ACEOF
23881#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23882_ACEOF
23883
23884fi
23885done
23886
23887 fi
23888
23889 fi
23890
23891 fi
Alex Deymo486467e2017-12-19 19:04:07 +010023892 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023893fi
23894
23895
23896if test "$GNUTLS_ENABLED" = "1"; then
23897 USE_GNUTLS_NETTLE=
23898 # First check if we can detect either crypto library via transitive linking
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23900$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23901if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23902 $as_echo_n "(cached) " >&6
23903else
23904 ac_check_lib_save_LIBS=$LIBS
23905LIBS="-lgnutls $LIBS"
23906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23907/* end confdefs.h. */
23908
23909
23910#ifdef __cplusplus
23911extern "C"
23912#endif
23913char nettle_MD5Init ();
23914int main (void)
23915{
23916return nettle_MD5Init ();
23917 ;
23918 return 0;
23919}
23920_ACEOF
23921if ac_fn_c_try_link "$LINENO"; then :
23922 ac_cv_lib_gnutls_nettle_MD5Init=yes
23923else
23924 ac_cv_lib_gnutls_nettle_MD5Init=no
23925fi
23926rm -f core conftest.err conftest.$ac_objext \
23927 conftest$ac_exeext conftest.$ac_ext
23928LIBS=$ac_check_lib_save_LIBS
23929fi
23930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
23931$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
23932if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
23933 USE_GNUTLS_NETTLE=1
23934fi
23935
23936 if test "$USE_GNUTLS_NETTLE" = ""; then
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23938$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23939if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23940 $as_echo_n "(cached) " >&6
23941else
23942 ac_check_lib_save_LIBS=$LIBS
23943LIBS="-lgnutls $LIBS"
23944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23945/* end confdefs.h. */
23946
23947
23948#ifdef __cplusplus
23949extern "C"
23950#endif
23951char gcry_control ();
23952int main (void)
23953{
23954return gcry_control ();
23955 ;
23956 return 0;
23957}
23958_ACEOF
23959if ac_fn_c_try_link "$LINENO"; then :
23960 ac_cv_lib_gnutls_gcry_control=yes
23961else
23962 ac_cv_lib_gnutls_gcry_control=no
23963fi
23964rm -f core conftest.err conftest.$ac_objext \
23965 conftest$ac_exeext conftest.$ac_ext
23966LIBS=$ac_check_lib_save_LIBS
23967fi
23968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23969$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23970if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23971 USE_GNUTLS_NETTLE=0
23972fi
23973
23974 fi
23975 # If not, try linking directly to both of them to see if they are available
23976 if test "$USE_GNUTLS_NETTLE" = ""; then
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23978$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23979if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23980 $as_echo_n "(cached) " >&6
23981else
23982 ac_check_lib_save_LIBS=$LIBS
23983LIBS="-lnettle $LIBS"
23984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23985/* end confdefs.h. */
23986
23987
23988#ifdef __cplusplus
23989extern "C"
23990#endif
23991char nettle_MD5Init ();
23992int main (void)
23993{
23994return nettle_MD5Init ();
23995 ;
23996 return 0;
23997}
23998_ACEOF
23999if ac_fn_c_try_link "$LINENO"; then :
24000 ac_cv_lib_nettle_nettle_MD5Init=yes
24001else
24002 ac_cv_lib_nettle_nettle_MD5Init=no
24003fi
24004rm -f core conftest.err conftest.$ac_objext \
24005 conftest$ac_exeext conftest.$ac_ext
24006LIBS=$ac_check_lib_save_LIBS
24007fi
24008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24009$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24010if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24011 USE_GNUTLS_NETTLE=1
24012fi
24013
24014 fi
24015 if test "$USE_GNUTLS_NETTLE" = ""; then
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24017$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24018if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24019 $as_echo_n "(cached) " >&6
24020else
24021 ac_check_lib_save_LIBS=$LIBS
24022LIBS="-lgcrypt $LIBS"
24023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24024/* end confdefs.h. */
24025
24026
24027#ifdef __cplusplus
24028extern "C"
24029#endif
24030char gcry_control ();
24031int main (void)
24032{
24033return gcry_control ();
24034 ;
24035 return 0;
24036}
24037_ACEOF
24038if ac_fn_c_try_link "$LINENO"; then :
24039 ac_cv_lib_gcrypt_gcry_control=yes
24040else
24041 ac_cv_lib_gcrypt_gcry_control=no
24042fi
24043rm -f core conftest.err conftest.$ac_objext \
24044 conftest$ac_exeext conftest.$ac_ext
24045LIBS=$ac_check_lib_save_LIBS
24046fi
24047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24048$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24049if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24050 USE_GNUTLS_NETTLE=0
24051fi
24052
24053 fi
24054 if test "$USE_GNUTLS_NETTLE" = ""; then
24055 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24056 fi
24057 if test "$USE_GNUTLS_NETTLE" = "1"; then
24058
24059$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24060
24061 USE_GNUTLS_NETTLE=1
24062
24063 LIBS="-lnettle $LIBS"
24064 else
24065 LIBS="-lgcrypt $LIBS"
24066 fi
24067fi
24068
24069if test "$GNUTLS_ENABLED" = "1"; then
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24071$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24072if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24073 $as_echo_n "(cached) " >&6
24074else
24075 ac_check_lib_save_LIBS=$LIBS
24076LIBS="-lgnutls $LIBS"
24077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24078/* end confdefs.h. */
24079
24080
24081#ifdef __cplusplus
24082extern "C"
24083#endif
24084char gnutls_srp_verifier ();
24085int main (void)
24086{
24087return gnutls_srp_verifier ();
24088 ;
24089 return 0;
24090}
24091_ACEOF
24092if ac_fn_c_try_link "$LINENO"; then :
24093 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24094else
24095 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24096fi
24097rm -f core conftest.err conftest.$ac_objext \
24098 conftest$ac_exeext conftest.$ac_ext
24099LIBS=$ac_check_lib_save_LIBS
24100fi
24101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24102$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24103if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24104
24105
24106$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24107
24108 HAVE_GNUTLS_SRP=1
24109
24110
24111fi
24112
24113fi
24114
24115
24116OPT_POLARSSL=no
24117
24118_cppflags=$CPPFLAGS
24119_ldflags=$LDFLAGS
24120
24121# Check whether --with-polarssl was given.
24122if test "${with_polarssl+set}" = set; then :
24123 withval=$with_polarssl; OPT_POLARSSL=$withval
24124fi
24125
24126
Alex Deymo486467e2017-12-19 19:04:07 +010024127if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24128 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024129
24130 if test X"$OPT_POLARSSL" != Xno; then
24131
24132 if test "$OPT_POLARSSL" = "yes"; then
24133 OPT_POLARSSL=""
24134 fi
24135
24136 if test -z "$OPT_POLARSSL" ; then
24137
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24139$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24140if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24141 $as_echo_n "(cached) " >&6
24142else
24143 ac_check_lib_save_LIBS=$LIBS
24144LIBS="-lpolarssl $LIBS"
24145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24146/* end confdefs.h. */
24147
24148
24149#ifdef __cplusplus
24150extern "C"
24151#endif
24152char havege_init ();
24153int main (void)
24154{
24155return havege_init ();
24156 ;
24157 return 0;
24158}
24159_ACEOF
24160if ac_fn_c_try_link "$LINENO"; then :
24161 ac_cv_lib_polarssl_havege_init=yes
24162else
24163 ac_cv_lib_polarssl_havege_init=no
24164fi
24165rm -f core conftest.err conftest.$ac_objext \
24166 conftest$ac_exeext conftest.$ac_ext
24167LIBS=$ac_check_lib_save_LIBS
24168fi
24169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24170$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24171if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24172
24173
24174$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24175
24176 USE_POLARSSL=1
24177
24178 POLARSSL_ENABLED=1
24179 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024180 ssl_msg="PolarSSL"
24181 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024182
24183fi
24184
24185 fi
24186
24187 addld=""
24188 addlib=""
24189 addcflags=""
24190 polarssllib=""
24191
24192 if test "x$USE_POLARSSL" != "xyes"; then
24193 addld=-L$OPT_POLARSSL/lib$libsuff
24194 addcflags=-I$OPT_POLARSSL/include
24195 polarssllib=$OPT_POLARSSL/lib$libsuff
24196
24197 LDFLAGS="$LDFLAGS $addld"
24198 if test "$addcflags" != "-I/usr/include"; then
24199 CPPFLAGS="$CPPFLAGS $addcflags"
24200 fi
24201
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24203$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24204if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24205 $as_echo_n "(cached) " >&6
24206else
24207 ac_check_lib_save_LIBS=$LIBS
24208LIBS="-lpolarssl $LIBS"
24209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24210/* end confdefs.h. */
24211
24212
24213#ifdef __cplusplus
24214extern "C"
24215#endif
24216char ssl_init ();
24217int main (void)
24218{
24219return ssl_init ();
24220 ;
24221 return 0;
24222}
24223_ACEOF
24224if ac_fn_c_try_link "$LINENO"; then :
24225 ac_cv_lib_polarssl_ssl_init=yes
24226else
24227 ac_cv_lib_polarssl_ssl_init=no
24228fi
24229rm -f core conftest.err conftest.$ac_objext \
24230 conftest$ac_exeext conftest.$ac_ext
24231LIBS=$ac_check_lib_save_LIBS
24232fi
24233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24234$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24235if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24236
24237
24238$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24239
24240 USE_POLARSSL=1
24241
24242 POLARSSL_ENABLED=1
24243 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024244 ssl_msg="PolarSSL"
24245 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024246
24247else
24248
24249 CPPFLAGS=$_cppflags
24250 LDFLAGS=$_ldflags
24251
24252fi
24253
24254 fi
24255
24256 if test "x$USE_POLARSSL" = "xyes"; then
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24258$as_echo "$as_me: detected PolarSSL" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024259 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024260 LIBS="-lpolarssl $LIBS"
24261
24262 if test -n "$polarssllib"; then
24263 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024264 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$polarssllib"
24265 export CURL_LIBRARY_PATH
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to CURL_LIBRARY_PATH" >&5
24267$as_echo "$as_me: Added $polarssllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024268 fi
24269 fi
24270 fi
24271
24272 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024273 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024274fi
24275
24276
24277OPT_MBEDTLS=no
24278
24279_cppflags=$CPPFLAGS
24280_ldflags=$LDFLAGS
24281
24282# Check whether --with-mbedtls was given.
24283if test "${with_mbedtls+set}" = set; then :
24284 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24285fi
24286
24287
Alex Deymo486467e2017-12-19 19:04:07 +010024288if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24289 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024290
24291 if test X"$OPT_MBEDTLS" != Xno; then
24292
24293 if test "$OPT_MBEDTLS" = "yes"; then
24294 OPT_MBEDTLS=""
24295 fi
24296
24297 if test -z "$OPT_MBEDTLS" ; then
24298
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24300$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24301if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24302 $as_echo_n "(cached) " >&6
24303else
24304 ac_check_lib_save_LIBS=$LIBS
24305LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24307/* end confdefs.h. */
24308
24309
24310#ifdef __cplusplus
24311extern "C"
24312#endif
24313char mbedtls_havege_init ();
24314int main (void)
24315{
24316return mbedtls_havege_init ();
24317 ;
24318 return 0;
24319}
24320_ACEOF
24321if ac_fn_c_try_link "$LINENO"; then :
24322 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24323else
24324 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24325fi
24326rm -f core conftest.err conftest.$ac_objext \
24327 conftest$ac_exeext conftest.$ac_ext
24328LIBS=$ac_check_lib_save_LIBS
24329fi
24330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24331$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24332if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24333
24334
24335$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24336
24337 USE_MBEDTLS=1
24338
24339 MBEDTLS_ENABLED=1
24340 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024341 ssl_msg="mbedTLS"
24342 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024343
24344fi
24345
24346 fi
24347
24348 addld=""
24349 addlib=""
24350 addcflags=""
24351 mbedtlslib=""
24352
24353 if test "x$USE_MBEDTLS" != "xyes"; then
24354 addld=-L$OPT_MBEDTLS/lib$libsuff
24355 addcflags=-I$OPT_MBEDTLS/include
24356 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24357
24358 LDFLAGS="$LDFLAGS $addld"
24359 if test "$addcflags" != "-I/usr/include"; then
24360 CPPFLAGS="$CPPFLAGS $addcflags"
24361 fi
24362
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24364$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24365if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24366 $as_echo_n "(cached) " >&6
24367else
24368 ac_check_lib_save_LIBS=$LIBS
24369LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24371/* end confdefs.h. */
24372
24373
24374#ifdef __cplusplus
24375extern "C"
24376#endif
24377char mbedtls_ssl_init ();
24378int main (void)
24379{
24380return mbedtls_ssl_init ();
24381 ;
24382 return 0;
24383}
24384_ACEOF
24385if ac_fn_c_try_link "$LINENO"; then :
24386 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24387else
24388 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24389fi
24390rm -f core conftest.err conftest.$ac_objext \
24391 conftest$ac_exeext conftest.$ac_ext
24392LIBS=$ac_check_lib_save_LIBS
24393fi
24394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24395$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24396if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24397
24398
24399$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24400
24401 USE_MBEDTLS=1
24402
24403 MBEDTLS_ENABLED=1
24404 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024405 ssl_msg="mbedTLS"
24406 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024407
24408else
24409
24410 CPPFLAGS=$_cppflags
24411 LDFLAGS=$_ldflags
24412
24413fi
24414
24415 fi
24416
24417 if test "x$USE_MBEDTLS" = "xyes"; then
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24419$as_echo "$as_me: detected mbedTLS" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024420 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024421
24422 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24423
24424 if test -n "$mbedtlslib"; then
24425 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024426 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
24427 export CURL_LIBRARY_PATH
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
24429$as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024430 fi
24431 fi
24432 fi
24433
24434 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024435 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024436fi
24437
24438
24439OPT_CYASSL=no
24440
24441_cppflags=$CPPFLAGS
24442_ldflags=$LDFLAGS
24443
24444# Check whether --with-cyassl was given.
24445if test "${with_cyassl+set}" = set; then :
24446 withval=$with_cyassl; OPT_CYASSL=$withval
24447fi
24448
24449
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024450
24451# Check whether --with-wolfssl was given.
24452if test "${with_wolfssl+set}" = set; then :
24453 withval=$with_wolfssl; OPT_CYASSL=$withval
24454fi
24455
24456
Alex Deymo486467e2017-12-19 19:04:07 +010024457if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24458 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024459
24460 if test X"$OPT_CYASSL" != Xno; then
24461
24462 if test "$OPT_CYASSL" = "yes"; then
24463 OPT_CYASSL=""
24464 fi
24465
24466
24467 cyassllibname=cyassl
24468
24469 if test -z "$OPT_CYASSL" ; then
24470
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24472$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24473if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24474 $as_echo_n "(cached) " >&6
24475else
24476 ac_check_lib_save_LIBS=$LIBS
24477LIBS="-lcyassl $LIBS"
24478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24479/* end confdefs.h. */
24480
24481
24482#ifdef __cplusplus
24483extern "C"
24484#endif
24485char CyaSSL_Init ();
24486int main (void)
24487{
24488return CyaSSL_Init ();
24489 ;
24490 return 0;
24491}
24492_ACEOF
24493if ac_fn_c_try_link "$LINENO"; then :
24494 ac_cv_lib_cyassl_CyaSSL_Init=yes
24495else
24496 ac_cv_lib_cyassl_CyaSSL_Init=no
24497fi
24498rm -f core conftest.err conftest.$ac_objext \
24499 conftest$ac_exeext conftest.$ac_ext
24500LIBS=$ac_check_lib_save_LIBS
24501fi
24502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24503$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24504if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24505
24506
24507$as_echo "#define USE_CYASSL 1" >>confdefs.h
24508
24509 USE_CYASSL=1
24510
24511 CYASSL_ENABLED=1
24512 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024513 ssl_msg="CyaSSL"
24514 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024515
24516fi
24517
24518 fi
24519
24520 addld=""
24521 addlib=""
24522 addcflags=""
24523 cyassllib=""
24524
24525 if test "x$USE_CYASSL" != "xyes"; then
24526 addld=-L$OPT_CYASSL/lib$libsuff
24527 addcflags=-I$OPT_CYASSL/include
24528 cyassllib=$OPT_CYASSL/lib$libsuff
24529
24530 LDFLAGS="$LDFLAGS $addld"
24531 if test "$addcflags" != "-I/usr/include"; then
24532 CPPFLAGS="$CPPFLAGS $addcflags"
24533 fi
24534
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24536$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24537if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24538 $as_echo_n "(cached) " >&6
24539else
24540 ac_check_lib_save_LIBS=$LIBS
24541LIBS="-lcyassl $LIBS"
24542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24543/* end confdefs.h. */
24544
24545
24546#ifdef __cplusplus
24547extern "C"
24548#endif
24549char CyaSSL_Init ();
24550int main (void)
24551{
24552return CyaSSL_Init ();
24553 ;
24554 return 0;
24555}
24556_ACEOF
24557if ac_fn_c_try_link "$LINENO"; then :
24558 ac_cv_lib_cyassl_CyaSSL_Init=yes
24559else
24560 ac_cv_lib_cyassl_CyaSSL_Init=no
24561fi
24562rm -f core conftest.err conftest.$ac_objext \
24563 conftest$ac_exeext conftest.$ac_ext
24564LIBS=$ac_check_lib_save_LIBS
24565fi
24566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24567$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24568if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24569
24570
24571$as_echo "#define USE_CYASSL 1" >>confdefs.h
24572
24573 USE_CYASSL=1
24574
24575 CYASSL_ENABLED=1
24576 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024577 ssl_msg="CyaSSL"
24578 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024579
24580else
24581
24582 CPPFLAGS=$_cppflags
24583 LDFLAGS=$_ldflags
24584 cyassllib=""
24585
24586fi
24587
24588 fi
24589
24590 addld=""
24591 addlib=""
24592 addcflags=""
24593
24594 if test "x$USE_CYASSL" != "xyes"; then
24595 addld=-L$OPT_CYASSL/lib$libsuff
24596 addcflags=-I$OPT_CYASSL/include
24597 cyassllib=$OPT_CYASSL/lib$libsuff
24598
24599 LDFLAGS="$LDFLAGS $addld"
24600 if test "$addcflags" != "-I/usr/include"; then
24601 CPPFLAGS="$CPPFLAGS $addcflags"
24602 fi
24603
24604 cyassllibname=wolfssl
24605 my_ac_save_LIBS="$LIBS"
24606 LIBS="-l$cyassllibname -lm $LIBS"
24607
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24609$as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24611/* end confdefs.h. */
24612
24613
24614/* These aren't needed for detection and confuse WolfSSL.
24615 They are set up properly later if it is detected. */
24616#undef SIZEOF_LONG
24617#undef SIZEOF_LONG_LONG
24618#include <cyassl/ssl.h>
24619
24620int main (void)
24621{
24622
24623 return CyaSSL_Init();
24624
24625 ;
24626 return 0;
24627}
24628
24629_ACEOF
24630if ac_fn_c_try_link "$LINENO"; then :
24631
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24633$as_echo "yes" >&6; }
24634
24635$as_echo "#define USE_CYASSL 1" >>confdefs.h
24636
24637 USE_CYASSL=1
24638
24639 CYASSL_ENABLED=1
24640 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024641 ssl_msg="WolfSSL"
24642 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024643
24644else
24645
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24647$as_echo "no" >&6; }
24648 CPPFLAGS=$_cppflags
24649 LDFLAGS=$_ldflags
24650 cyassllib=""
24651
24652fi
24653rm -f core conftest.err conftest.$ac_objext \
24654 conftest$ac_exeext conftest.$ac_ext
24655 LIBS="$my_ac_save_LIBS"
24656 fi
24657
24658 if test "x$USE_CYASSL" = "xyes"; then
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24660$as_echo "$as_me: detected $cyassllibname" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024661 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024662
Elliott Hughes72d948d2018-08-03 14:37:21 -070024663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024664$as_echo_n "checking size of long long... " >&6; }
24665if ${ac_cv_sizeof_long_long+:} false; then :
24666 $as_echo_n "(cached) " >&6
24667else
Elliott Hughes72d948d2018-08-03 14:37:21 -070024668 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24670/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070024671
Elliott Hughes72d948d2018-08-03 14:37:21 -070024672#include <sys/types.h>
24673
24674
24675int main (void)
24676{
24677switch (0) case 0: case (sizeof (long long) == $ac_size):;
24678 ;
24679 return 0;
24680}
24681_ACEOF
24682if ac_fn_c_try_compile "$LINENO"; then :
24683 ac_cv_sizeof_long_long=$ac_size
24684fi
24685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24686 if test x$ac_cv_sizeof_long_long != x ; then break; fi
24687done
24688
Elliott Hughes82be86d2017-09-20 17:00:17 -070024689fi
24690
Elliott Hughes72d948d2018-08-03 14:37:21 -070024691if test x$ac_cv_sizeof_long_long = x ; then
24692 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024693fi
24694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24695$as_echo "$ac_cv_sizeof_long_long" >&6; }
24696
Elliott Hughes82be86d2017-09-20 17:00:17 -070024697cat >>confdefs.h <<_ACEOF
24698#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24699_ACEOF
24700
24701
24702
24703 for ac_header in cyassl/options.h
24704do :
24705 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24706if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24707 cat >>confdefs.h <<_ACEOF
24708#define HAVE_CYASSL_OPTIONS_H 1
24709_ACEOF
24710
24711fi
24712
24713done
24714
24715
24716 for ac_header in cyassl/error-ssl.h
24717do :
24718 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24719if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24720 cat >>confdefs.h <<_ACEOF
24721#define HAVE_CYASSL_ERROR_SSL_H 1
24722_ACEOF
24723
24724fi
24725
24726done
24727
24728
24729 LIBS="-l$cyassllibname -lm $LIBS"
24730
24731 if test "x$cyassllibname" = "xwolfssl"; then
24732 for ac_func in wolfSSLv3_client_method \
24733 wolfSSL_CTX_UseSupportedCurve \
24734 wolfSSL_get_peer_certificate \
24735 wolfSSL_UseALPN
24736do :
24737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24738ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24739if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24740 cat >>confdefs.h <<_ACEOF
24741#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24742_ACEOF
24743
24744fi
24745done
24746
24747 else
24748 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24749 CyaSSL_get_peer_certificate
24750do :
24751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24752ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24753if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24754 cat >>confdefs.h <<_ACEOF
24755#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24756_ACEOF
24757
24758fi
24759done
24760
24761 fi
24762
24763 if test -n "$cyassllib"; then
24764 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024765 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib"
24766 export CURL_LIBRARY_PATH
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5
24768$as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024769 fi
24770 fi
24771
24772 fi
24773
24774 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024775 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024776fi
24777
24778
Elliott Hughesa93fb052018-12-12 14:22:48 -080024779OPT_MESALINK=no
24780
24781_cppflags=$CPPFLAGS
24782_ldflags=$LDFLAGS
24783
24784# Check whether --with-mesalink was given.
24785if test "${with_mesalink+set}" = set; then :
24786 withval=$with_mesalink; OPT_MESALINK=$withval
24787fi
24788
24789
24790if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then
24791 ssl_msg=
24792
24793 if test X"$OPT_MESALINK" != Xno; then
24794
24795 if test "$OPT_MESALINK" = "yes"; then
24796 OPT_MESALINK=""
24797 fi
24798
24799 if test -z "$OPT_MESALINK" ; then
24800
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24802$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24803if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24804 $as_echo_n "(cached) " >&6
24805else
24806 ac_check_lib_save_LIBS=$LIBS
24807LIBS="-lmesalink $LIBS"
24808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24809/* end confdefs.h. */
24810
24811
24812#ifdef __cplusplus
24813extern "C"
24814#endif
24815char mesalink_library_init ();
24816int main (void)
24817{
24818return mesalink_library_init ();
24819 ;
24820 return 0;
24821}
24822_ACEOF
24823if ac_fn_c_try_link "$LINENO"; then :
24824 ac_cv_lib_mesalink_mesalink_library_init=yes
24825else
24826 ac_cv_lib_mesalink_mesalink_library_init=no
24827fi
24828rm -f core conftest.err conftest.$ac_objext \
24829 conftest$ac_exeext conftest.$ac_ext
24830LIBS=$ac_check_lib_save_LIBS
24831fi
24832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24833$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24834if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24835
24836
24837$as_echo "#define USE_MESALINK 1" >>confdefs.h
24838
24839 USE_MESALINK=1
24840
24841 MESALINK_ENABLED=1
24842 USE_MESALINK="yes"
24843 ssl_msg="MesaLink"
24844 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24845
24846fi
24847
24848 fi
24849
24850 addld=""
24851 addlib=""
24852 addcflags=""
24853 mesalinklib=""
24854
24855 if test "x$USE_MESALINK" != "xyes"; then
24856 addld=-L$OPT_MESALINK/lib$libsuff
24857 addcflags=-I$OPT_MESALINK/include
24858 mesalinklib=$OPT_MESALINK/lib$libsuff
24859
24860 LDFLAGS="$LDFLAGS $addld"
24861 if test "$addcflags" != "-I/usr/include"; then
24862 CPPFLAGS="$CPPFLAGS $addcflags"
24863 fi
24864
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24866$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24867if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24868 $as_echo_n "(cached) " >&6
24869else
24870 ac_check_lib_save_LIBS=$LIBS
24871LIBS="-lmesalink $LIBS"
24872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24873/* end confdefs.h. */
24874
24875
24876#ifdef __cplusplus
24877extern "C"
24878#endif
24879char mesalink_library_init ();
24880int main (void)
24881{
24882return mesalink_library_init ();
24883 ;
24884 return 0;
24885}
24886_ACEOF
24887if ac_fn_c_try_link "$LINENO"; then :
24888 ac_cv_lib_mesalink_mesalink_library_init=yes
24889else
24890 ac_cv_lib_mesalink_mesalink_library_init=no
24891fi
24892rm -f core conftest.err conftest.$ac_objext \
24893 conftest$ac_exeext conftest.$ac_ext
24894LIBS=$ac_check_lib_save_LIBS
24895fi
24896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24897$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24898if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24899
24900
24901$as_echo "#define USE_MESALINK 1" >>confdefs.h
24902
24903 USE_MESALINK=1
24904
24905 MESALINK_ENABLED=1
24906 USE_MESALINK="yes"
24907 ssl_msg="MesaLink"
24908 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24909
24910else
24911
24912 CPPFLAGS=$_cppflags
24913 LDFLAGS=$_ldflags
24914
24915fi
24916
24917 fi
24918
24919 if test "x$USE_MESALINK" = "xyes"; then
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
24921$as_echo "$as_me: detected MesaLink" >&6;}
24922
24923 LIBS="-lmesalink $LIBS"
24924
24925 if test -n "$mesalinklib"; then
24926 if test "x$cross_compiling" != "xyes"; then
24927 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
24928 export LD_LIBRARY_PATH
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
24930$as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
24931 fi
24932 fi
24933 fi
24934
24935 fi
24936 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24937fi
24938
24939
Elliott Hughes82be86d2017-09-20 17:00:17 -070024940OPT_NSS=no
24941
24942
24943# Check whether --with-nss was given.
24944if test "${with_nss+set}" = set; then :
24945 withval=$with_nss; OPT_NSS=$withval
24946fi
24947
24948
Alex Deymo486467e2017-12-19 19:04:07 +010024949if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
24950 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024951
24952 if test X"$OPT_NSS" != Xno; then
24953
24954 addld=""
24955 addlib=""
24956 addcflags=""
24957 nssprefix=""
24958 version=""
24959
24960 if test "x$OPT_NSS" = "xyes"; then
24961
24962
24963 if test -n "$PKG_CONFIG"; then
24964 PKGCONFIG="$PKG_CONFIG"
24965 else
24966 if test -n "$ac_tool_prefix"; then
24967 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24968set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24970$as_echo_n "checking for $ac_word... " >&6; }
24971if ${ac_cv_path_PKGCONFIG+:} false; then :
24972 $as_echo_n "(cached) " >&6
24973else
24974 case $PKGCONFIG in
24975 [\\/]* | ?:[\\/]*)
24976 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24977 ;;
24978 *)
24979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24980as_dummy="$PATH:/usr/bin:/usr/local/bin"
24981for as_dir in $as_dummy
24982do
24983 IFS=$as_save_IFS
24984 test -z "$as_dir" && as_dir=.
24985 for ac_exec_ext in '' $ac_executable_extensions; do
24986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24987 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24989 break 2
24990 fi
24991done
24992 done
24993IFS=$as_save_IFS
24994
24995 ;;
24996esac
24997fi
24998PKGCONFIG=$ac_cv_path_PKGCONFIG
24999if test -n "$PKGCONFIG"; then
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25001$as_echo "$PKGCONFIG" >&6; }
25002else
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25004$as_echo "no" >&6; }
25005fi
25006
25007
25008fi
25009if test -z "$ac_cv_path_PKGCONFIG"; then
25010 ac_pt_PKGCONFIG=$PKGCONFIG
25011 # Extract the first word of "pkg-config", so it can be a program name with args.
25012set dummy pkg-config; ac_word=$2
25013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25014$as_echo_n "checking for $ac_word... " >&6; }
25015if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25016 $as_echo_n "(cached) " >&6
25017else
25018 case $ac_pt_PKGCONFIG in
25019 [\\/]* | ?:[\\/]*)
25020 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25021 ;;
25022 *)
25023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25024as_dummy="$PATH:/usr/bin:/usr/local/bin"
25025for as_dir in $as_dummy
25026do
25027 IFS=$as_save_IFS
25028 test -z "$as_dir" && as_dir=.
25029 for ac_exec_ext in '' $ac_executable_extensions; do
25030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25031 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25033 break 2
25034 fi
25035done
25036 done
25037IFS=$as_save_IFS
25038
25039 ;;
25040esac
25041fi
25042ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25043if test -n "$ac_pt_PKGCONFIG"; then
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25045$as_echo "$ac_pt_PKGCONFIG" >&6; }
25046else
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25048$as_echo "no" >&6; }
25049fi
25050
25051 if test "x$ac_pt_PKGCONFIG" = x; then
25052 PKGCONFIG="no"
25053 else
25054 case $cross_compiling:$ac_tool_warned in
25055yes:)
25056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25058ac_tool_warned=yes ;;
25059esac
25060 PKGCONFIG=$ac_pt_PKGCONFIG
25061 fi
25062else
25063 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25064fi
25065
25066 fi
25067
25068 if test "x$PKGCONFIG" != "xno"; then
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25070$as_echo_n "checking for nss options with pkg-config... " >&6; }
25071 itexists=`
25072 if test -n ""; then
25073 PKG_CONFIG_LIBDIR=""
25074 export PKG_CONFIG_LIBDIR
25075 fi
25076 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25077
25078 if test -z "$itexists"; then
25079 PKGCONFIG="no"
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25081$as_echo "no" >&6; }
25082 else
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25084$as_echo "found" >&6; }
25085 fi
25086 fi
25087
25088
25089 if test "$PKGCONFIG" != "no" ; then
25090 addlib=`$PKGCONFIG --libs nss`
25091 addcflags=`$PKGCONFIG --cflags nss`
25092 version=`$PKGCONFIG --modversion nss`
25093 nssprefix=`$PKGCONFIG --variable=prefix nss`
25094 else
25095
25096 check=`nss-config --version 2>/dev/null`
25097 if test -n "$check"; then
25098 addlib=`nss-config --libs`
25099 addcflags=`nss-config --cflags`
25100 version=`nss-config --version`
25101 nssprefix=`nss-config --prefix`
25102 else
25103 addlib="-lnss3"
25104 addcflags=""
25105 version="unknown"
25106 fi
25107 fi
25108 else
25109 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25110 if test -f "$NSS_PCDIR/nss.pc"; then
25111
25112 if test -n "$PKG_CONFIG"; then
25113 PKGCONFIG="$PKG_CONFIG"
25114 else
25115 if test -n "$ac_tool_prefix"; then
25116 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25117set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25119$as_echo_n "checking for $ac_word... " >&6; }
25120if ${ac_cv_path_PKGCONFIG+:} false; then :
25121 $as_echo_n "(cached) " >&6
25122else
25123 case $PKGCONFIG in
25124 [\\/]* | ?:[\\/]*)
25125 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25126 ;;
25127 *)
25128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25129as_dummy="$PATH:/usr/bin:/usr/local/bin"
25130for as_dir in $as_dummy
25131do
25132 IFS=$as_save_IFS
25133 test -z "$as_dir" && as_dir=.
25134 for ac_exec_ext in '' $ac_executable_extensions; do
25135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25136 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25138 break 2
25139 fi
25140done
25141 done
25142IFS=$as_save_IFS
25143
25144 ;;
25145esac
25146fi
25147PKGCONFIG=$ac_cv_path_PKGCONFIG
25148if test -n "$PKGCONFIG"; then
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25150$as_echo "$PKGCONFIG" >&6; }
25151else
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25153$as_echo "no" >&6; }
25154fi
25155
25156
25157fi
25158if test -z "$ac_cv_path_PKGCONFIG"; then
25159 ac_pt_PKGCONFIG=$PKGCONFIG
25160 # Extract the first word of "pkg-config", so it can be a program name with args.
25161set dummy pkg-config; ac_word=$2
25162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25163$as_echo_n "checking for $ac_word... " >&6; }
25164if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25165 $as_echo_n "(cached) " >&6
25166else
25167 case $ac_pt_PKGCONFIG in
25168 [\\/]* | ?:[\\/]*)
25169 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25170 ;;
25171 *)
25172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25173as_dummy="$PATH:/usr/bin:/usr/local/bin"
25174for as_dir in $as_dummy
25175do
25176 IFS=$as_save_IFS
25177 test -z "$as_dir" && as_dir=.
25178 for ac_exec_ext in '' $ac_executable_extensions; do
25179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25180 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25182 break 2
25183 fi
25184done
25185 done
25186IFS=$as_save_IFS
25187
25188 ;;
25189esac
25190fi
25191ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25192if test -n "$ac_pt_PKGCONFIG"; then
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25194$as_echo "$ac_pt_PKGCONFIG" >&6; }
25195else
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25197$as_echo "no" >&6; }
25198fi
25199
25200 if test "x$ac_pt_PKGCONFIG" = x; then
25201 PKGCONFIG="no"
25202 else
25203 case $cross_compiling:$ac_tool_warned in
25204yes:)
25205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25207ac_tool_warned=yes ;;
25208esac
25209 PKGCONFIG=$ac_pt_PKGCONFIG
25210 fi
25211else
25212 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25213fi
25214
25215 fi
25216
25217 if test "x$PKGCONFIG" != "xno"; then
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25219$as_echo_n "checking for nss options with pkg-config... " >&6; }
25220 itexists=`
25221 if test -n "$NSS_PCDIR"; then
25222 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25223 export PKG_CONFIG_LIBDIR
25224 fi
25225 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25226
25227 if test -z "$itexists"; then
25228 PKGCONFIG="no"
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25230$as_echo "no" >&6; }
25231 else
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25233$as_echo "found" >&6; }
25234 fi
25235 fi
25236
25237 if test "$PKGCONFIG" != "no" ; then
25238 addld=`
25239 if test -n "$NSS_PCDIR"; then
25240 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25241 export PKG_CONFIG_LIBDIR
25242 fi
25243 $PKGCONFIG --libs-only-L nss`
25244 addlib=`
25245 if test -n "$NSS_PCDIR"; then
25246 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25247 export PKG_CONFIG_LIBDIR
25248 fi
25249 $PKGCONFIG --libs-only-l nss`
25250 addcflags=`
25251 if test -n "$NSS_PCDIR"; then
25252 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25253 export PKG_CONFIG_LIBDIR
25254 fi
25255 $PKGCONFIG --cflags nss`
25256 version=`
25257 if test -n "$NSS_PCDIR"; then
25258 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25259 export PKG_CONFIG_LIBDIR
25260 fi
25261 $PKGCONFIG --modversion nss`
25262 nssprefix=`
25263 if test -n "$NSS_PCDIR"; then
25264 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25265 export PKG_CONFIG_LIBDIR
25266 fi
25267 $PKGCONFIG --variable=prefix nss`
25268 fi
25269 fi
25270 fi
25271
25272 if test -z "$addlib"; then
25273 # Without pkg-config, we'll kludge in some defaults
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25275$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25276 addld="-L$OPT_NSS/lib"
25277 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25278 addcflags="-I$OPT_NSS/include"
25279 version="unknown"
25280 nssprefix=$OPT_NSS
25281 fi
25282
25283 CLEANLDFLAGS="$LDFLAGS"
25284 CLEANLIBS="$LIBS"
25285 CLEANCPPFLAGS="$CPPFLAGS"
25286
25287 LDFLAGS="$addld $LDFLAGS"
25288 LIBS="$addlib $LIBS"
25289 if test "$addcflags" != "-I/usr/include"; then
25290 CPPFLAGS="$CPPFLAGS $addcflags"
25291 fi
25292
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25294$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25295if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25296 $as_echo_n "(cached) " >&6
25297else
25298 ac_check_lib_save_LIBS=$LIBS
25299LIBS="-lnss3 $LIBS"
25300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25301/* end confdefs.h. */
25302
25303
25304#ifdef __cplusplus
25305extern "C"
25306#endif
25307char SSL_VersionRangeSet ();
25308int main (void)
25309{
25310return SSL_VersionRangeSet ();
25311 ;
25312 return 0;
25313}
25314_ACEOF
25315if ac_fn_c_try_link "$LINENO"; then :
25316 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25317else
25318 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25319fi
25320rm -f core conftest.err conftest.$ac_objext \
25321 conftest$ac_exeext conftest.$ac_ext
25322LIBS=$ac_check_lib_save_LIBS
25323fi
25324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25325$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25326if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25327
25328
25329$as_echo "#define USE_NSS 1" >>confdefs.h
25330
25331 USE_NSS=1
25332
25333 USE_NSS="yes"
25334 NSS_ENABLED=1
Alex Deymo486467e2017-12-19 19:04:07 +010025335 ssl_msg="NSS"
25336 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025337
25338else
25339
25340 LDFLAGS="$CLEANLDFLAGS"
25341 LIBS="$CLEANLIBS"
25342 CPPFLAGS="$CLEANCPPFLAGS"
25343
25344fi
25345
25346
25347 if test "x$USE_NSS" = "xyes"; then
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25349$as_echo "$as_me: detected NSS version $version" >&6;}
25350
Elliott Hughescac39802018-04-27 16:19:43 -070025351 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25352if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25353
25354
25355$as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25356
25357
25358fi
25359
25360
Elliott Hughes82be86d2017-09-20 17:00:17 -070025361 NSS_LIBS=$addlib
25362
25363
25364 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025365 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
25366 export CURL_LIBRARY_PATH
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
25368$as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025369 fi
25370
25371 fi
25372 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025373 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025374fi
Alex Deymo486467e2017-12-19 19:04:07 +010025375
Haibo Huang21926d52019-01-08 14:27:10 -080025376case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED$MESALINK_ENABLED" in
Alex Deymo486467e2017-12-19 19:04:07 +010025377x)
Elliott Hughes82be86d2017-09-20 17:00:17 -070025378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25379$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
Haibo Huang21926d52019-01-08 14:27:10 -080025380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-winssl, --with-darwinssl, or --with-mesalink to address this." >&5
25381$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-winssl, --with-darwinssl, or --with-mesalink to address this." >&2;}
Alex Deymo486467e2017-12-19 19:04:07 +010025382 ;;
25383x1)
25384 # one SSL backend is enabled
Elliott Hughes82be86d2017-09-20 17:00:17 -070025385
25386 SSL_ENABLED="1"
Alex Deymo486467e2017-12-19 19:04:07 +010025387 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25388$as_echo "$as_me: built with one SSL backend" >&6;}
25389 ;;
25390*)
25391 # more than one SSL backend is enabled
25392
25393 SSL_ENABLED="1"
25394
25395 CURL_WITH_MULTI_SSL="1"
25396
25397$as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25398
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25400$as_echo "$as_me: built with multiple SSL backends" >&6;}
25401 ;;
25402esac
25403
25404if test -n "$ssl_backends"; then
25405 curl_ssl_msg="enabled ($ssl_backends)"
25406fi
25407
25408if test no = "$VALID_DEFAULT_SSL_BACKEND"
25409then
25410 if test -n "$SSL_ENABLED"
25411 then
25412 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25413 else
25414 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25415 fi
25416elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25417then
25418
25419cat >>confdefs.h <<_ACEOF
25420#define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25421_ACEOF
25422
Elliott Hughes82be86d2017-09-20 17:00:17 -070025423fi
25424
25425
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025426if test "$check_for_ca_bundle" -gt 0; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070025427
25428
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25430$as_echo_n "checking default CA cert bundle/path... " >&6; }
25431
25432
25433# Check whether --with-ca-bundle was given.
25434if test "${with_ca_bundle+set}" = set; then :
25435 withval=$with_ca_bundle;
25436 want_ca="$withval"
25437 if test "x$want_ca" = "xyes"; then
25438 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25439 fi
25440
25441else
25442 want_ca="unset"
25443fi
25444
25445
25446# Check whether --with-ca-path was given.
25447if test "${with_ca_path+set}" = set; then :
25448 withval=$with_ca_path;
25449 want_capath="$withval"
25450 if test "x$want_capath" = "xyes"; then
25451 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25452 fi
25453
25454else
25455 want_capath="unset"
25456fi
25457
25458
25459 ca_warning=" (warning: certs not found)"
25460 capath_warning=" (warning: certs not found)"
25461 check_capath=""
25462
25463 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25464 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25465 ca="$want_ca"
25466 capath="$want_capath"
25467 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25468 ca="$want_ca"
25469 capath="no"
25470 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25471 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25472 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25473 fi
25474 capath="$want_capath"
25475 ca="no"
25476 else
25477 ca="no"
25478 capath="no"
25479 if test "x$cross_compiling" != "xyes"; then
25480 if test "x$want_ca" = "xunset"; then
25481 if test "x$prefix" != xNONE; then
25482 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25483 else
25484 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25485 fi
25486
25487 for a in /etc/ssl/certs/ca-certificates.crt \
25488 /etc/pki/tls/certs/ca-bundle.crt \
25489 /usr/share/ssl/certs/ca-bundle.crt \
25490 /usr/local/share/certs/ca-root-nss.crt \
25491 /etc/ssl/cert.pem \
25492 "$cac"; do
25493 if test -f "$a"; then
25494 ca="$a"
25495 break
25496 fi
25497 done
25498 fi
25499 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25500 "x$OPENSSL_ENABLED" = "x1"; then
25501 check_capath="/etc/ssl/certs/"
25502 fi
25503 else
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25505$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25506 fi
25507 fi
25508
25509 if test "x$ca" = "xno" || test -f "$ca"; then
25510 ca_warning=""
25511 fi
25512
25513 if test "x$capath" != "xno"; then
25514 check_capath="$capath"
25515 fi
25516
25517 if test ! -z "$check_capath"; then
25518 for a in "$check_capath"; do
25519 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
25520 if test "x$capath" = "xno"; then
25521 capath="$a"
25522 fi
25523 capath_warning=""
25524 break
25525 fi
25526 done
25527 fi
25528
25529 if test "x$capath" = "xno"; then
25530 capath_warning=""
25531 fi
25532
25533 if test "x$ca" != "xno"; then
25534 CURL_CA_BUNDLE='"'$ca'"'
25535
25536cat >>confdefs.h <<_ACEOF
25537#define CURL_CA_BUNDLE "$ca"
25538_ACEOF
25539
25540
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25542$as_echo "$ca" >&6; }
25543 fi
25544 if test "x$capath" != "xno"; then
25545 CURL_CA_PATH="\"$capath\""
25546
25547cat >>confdefs.h <<_ACEOF
25548#define CURL_CA_PATH "$capath"
25549_ACEOF
25550
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25552$as_echo "$capath (capath)" >&6; }
25553 fi
25554 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25556$as_echo "no" >&6; }
25557 fi
25558
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25560$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25561
25562# Check whether --with-ca-fallback was given.
25563if test "${with_ca_fallback+set}" = set; then :
25564 withval=$with_ca_fallback;
25565 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25566 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25567 fi
25568
25569else
25570 with_ca_fallback="no"
25571fi
25572
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25574$as_echo "$with_ca_fallback" >&6; }
25575 if test "x$with_ca_fallback" = "xyes"; then
25576 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25577 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25578 fi
25579
25580cat >>confdefs.h <<_ACEOF
25581#define CURL_CA_FALLBACK 1
25582_ACEOF
25583
25584 fi
25585
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025586fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070025587
25588
25589
25590# Check whether --with-libpsl was given.
25591if test "${with_libpsl+set}" = set; then :
25592 withval=$with_libpsl; with_libpsl=$withval
25593else
25594 with_libpsl=yes
25595fi
25596
25597if test $with_libpsl != "no"; then
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25599$as_echo_n "checking for library containing psl_builtin... " >&6; }
25600if ${ac_cv_search_psl_builtin+:} false; then :
25601 $as_echo_n "(cached) " >&6
25602else
25603 ac_func_search_save_LIBS=$LIBS
25604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25605/* end confdefs.h. */
25606
25607
25608#ifdef __cplusplus
25609extern "C"
25610#endif
25611char psl_builtin ();
25612int main (void)
25613{
25614return psl_builtin ();
25615 ;
25616 return 0;
25617}
25618_ACEOF
25619for ac_lib in '' psl; do
25620 if test -z "$ac_lib"; then
25621 ac_res="none required"
25622 else
25623 ac_res=-l$ac_lib
25624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25625 fi
25626 if ac_fn_c_try_link "$LINENO"; then :
25627 ac_cv_search_psl_builtin=$ac_res
25628fi
25629rm -f core conftest.err conftest.$ac_objext \
25630 conftest$ac_exeext
25631 if ${ac_cv_search_psl_builtin+:} false; then :
25632 break
25633fi
25634done
25635if ${ac_cv_search_psl_builtin+:} false; then :
25636
25637else
25638 ac_cv_search_psl_builtin=no
25639fi
25640rm conftest.$ac_ext
25641LIBS=$ac_func_search_save_LIBS
25642fi
25643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25644$as_echo "$ac_cv_search_psl_builtin" >&6; }
25645ac_res=$ac_cv_search_psl_builtin
25646if test "$ac_res" != no; then :
25647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25648 curl_psl_msg="yes";
25649
25650$as_echo "#define USE_LIBPSL 1" >>confdefs.h
25651
25652
25653else
25654 curl_psl_msg="no (libpsl not found)";
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25656$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25657
25658
25659fi
25660
25661fi
25662 if test "$curl_psl_msg" = "yes"; then
25663 USE_LIBPSL_TRUE=
25664 USE_LIBPSL_FALSE='#'
25665else
25666 USE_LIBPSL_TRUE='#'
25667 USE_LIBPSL_FALSE=
25668fi
25669
25670
25671
25672OPT_LIBMETALINK=no
25673
25674
25675# Check whether --with-libmetalink was given.
25676if test "${with_libmetalink+set}" = set; then :
25677 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25678fi
25679
25680
25681if test X"$OPT_LIBMETALINK" != Xno; then
25682
25683 addld=""
25684 addlib=""
25685 addcflags=""
25686 version=""
25687 libmetalinklib=""
25688
25689 PKGTEST="no"
25690 if test "x$OPT_LIBMETALINK" = "xyes"; then
25691 PKGTEST="yes"
25692
25693 if test -n "$PKG_CONFIG"; then
25694 PKGCONFIG="$PKG_CONFIG"
25695 else
25696 if test -n "$ac_tool_prefix"; then
25697 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25698set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25700$as_echo_n "checking for $ac_word... " >&6; }
25701if ${ac_cv_path_PKGCONFIG+:} false; then :
25702 $as_echo_n "(cached) " >&6
25703else
25704 case $PKGCONFIG in
25705 [\\/]* | ?:[\\/]*)
25706 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25707 ;;
25708 *)
25709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25710as_dummy="$PATH:/usr/bin:/usr/local/bin"
25711for as_dir in $as_dummy
25712do
25713 IFS=$as_save_IFS
25714 test -z "$as_dir" && as_dir=.
25715 for ac_exec_ext in '' $ac_executable_extensions; do
25716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25717 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25719 break 2
25720 fi
25721done
25722 done
25723IFS=$as_save_IFS
25724
25725 ;;
25726esac
25727fi
25728PKGCONFIG=$ac_cv_path_PKGCONFIG
25729if test -n "$PKGCONFIG"; then
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25731$as_echo "$PKGCONFIG" >&6; }
25732else
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25734$as_echo "no" >&6; }
25735fi
25736
25737
25738fi
25739if test -z "$ac_cv_path_PKGCONFIG"; then
25740 ac_pt_PKGCONFIG=$PKGCONFIG
25741 # Extract the first word of "pkg-config", so it can be a program name with args.
25742set dummy pkg-config; ac_word=$2
25743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25744$as_echo_n "checking for $ac_word... " >&6; }
25745if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25746 $as_echo_n "(cached) " >&6
25747else
25748 case $ac_pt_PKGCONFIG in
25749 [\\/]* | ?:[\\/]*)
25750 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25751 ;;
25752 *)
25753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25754as_dummy="$PATH:/usr/bin:/usr/local/bin"
25755for as_dir in $as_dummy
25756do
25757 IFS=$as_save_IFS
25758 test -z "$as_dir" && as_dir=.
25759 for ac_exec_ext in '' $ac_executable_extensions; do
25760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25761 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25763 break 2
25764 fi
25765done
25766 done
25767IFS=$as_save_IFS
25768
25769 ;;
25770esac
25771fi
25772ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25773if test -n "$ac_pt_PKGCONFIG"; then
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25775$as_echo "$ac_pt_PKGCONFIG" >&6; }
25776else
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25778$as_echo "no" >&6; }
25779fi
25780
25781 if test "x$ac_pt_PKGCONFIG" = x; then
25782 PKGCONFIG="no"
25783 else
25784 case $cross_compiling:$ac_tool_warned in
25785yes:)
25786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25788ac_tool_warned=yes ;;
25789esac
25790 PKGCONFIG=$ac_pt_PKGCONFIG
25791 fi
25792else
25793 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25794fi
25795
25796 fi
25797
25798 if test "x$PKGCONFIG" != "xno"; then
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25800$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25801 itexists=`
25802 if test -n ""; then
25803 PKG_CONFIG_LIBDIR=""
25804 export PKG_CONFIG_LIBDIR
25805 fi
25806 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25807
25808 if test -z "$itexists"; then
25809 PKGCONFIG="no"
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25811$as_echo "no" >&6; }
25812 else
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25814$as_echo "found" >&6; }
25815 fi
25816 fi
25817
25818 else
25819 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25821$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25822 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25823 PKGTEST="yes"
25824 fi
25825 if test "$PKGTEST" = "yes"; then
25826
25827 if test -n "$PKG_CONFIG"; then
25828 PKGCONFIG="$PKG_CONFIG"
25829 else
25830 if test -n "$ac_tool_prefix"; then
25831 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25832set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25834$as_echo_n "checking for $ac_word... " >&6; }
25835if ${ac_cv_path_PKGCONFIG+:} false; then :
25836 $as_echo_n "(cached) " >&6
25837else
25838 case $PKGCONFIG in
25839 [\\/]* | ?:[\\/]*)
25840 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25841 ;;
25842 *)
25843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25844as_dummy="$PATH:/usr/bin:/usr/local/bin"
25845for as_dir in $as_dummy
25846do
25847 IFS=$as_save_IFS
25848 test -z "$as_dir" && as_dir=.
25849 for ac_exec_ext in '' $ac_executable_extensions; do
25850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25851 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25853 break 2
25854 fi
25855done
25856 done
25857IFS=$as_save_IFS
25858
25859 ;;
25860esac
25861fi
25862PKGCONFIG=$ac_cv_path_PKGCONFIG
25863if test -n "$PKGCONFIG"; then
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25865$as_echo "$PKGCONFIG" >&6; }
25866else
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25868$as_echo "no" >&6; }
25869fi
25870
25871
25872fi
25873if test -z "$ac_cv_path_PKGCONFIG"; then
25874 ac_pt_PKGCONFIG=$PKGCONFIG
25875 # Extract the first word of "pkg-config", so it can be a program name with args.
25876set dummy pkg-config; ac_word=$2
25877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25878$as_echo_n "checking for $ac_word... " >&6; }
25879if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25880 $as_echo_n "(cached) " >&6
25881else
25882 case $ac_pt_PKGCONFIG in
25883 [\\/]* | ?:[\\/]*)
25884 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25885 ;;
25886 *)
25887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25888as_dummy="$PATH:/usr/bin:/usr/local/bin"
25889for as_dir in $as_dummy
25890do
25891 IFS=$as_save_IFS
25892 test -z "$as_dir" && as_dir=.
25893 for ac_exec_ext in '' $ac_executable_extensions; do
25894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25895 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25897 break 2
25898 fi
25899done
25900 done
25901IFS=$as_save_IFS
25902
25903 ;;
25904esac
25905fi
25906ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25907if test -n "$ac_pt_PKGCONFIG"; then
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25909$as_echo "$ac_pt_PKGCONFIG" >&6; }
25910else
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25912$as_echo "no" >&6; }
25913fi
25914
25915 if test "x$ac_pt_PKGCONFIG" = x; then
25916 PKGCONFIG="no"
25917 else
25918 case $cross_compiling:$ac_tool_warned in
25919yes:)
25920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25922ac_tool_warned=yes ;;
25923esac
25924 PKGCONFIG=$ac_pt_PKGCONFIG
25925 fi
25926else
25927 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25928fi
25929
25930 fi
25931
25932 if test "x$PKGCONFIG" != "xno"; then
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25934$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25935 itexists=`
25936 if test -n "$LIBMETALINK_PCDIR"; then
25937 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25938 export PKG_CONFIG_LIBDIR
25939 fi
25940 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25941
25942 if test -z "$itexists"; then
25943 PKGCONFIG="no"
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25945$as_echo "no" >&6; }
25946 else
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25948$as_echo "found" >&6; }
25949 fi
25950 fi
25951
25952 fi
25953 fi
25954 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
25955 addlib=`
25956 if test -n "$LIBMETALINK_PCDIR"; then
25957 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25958 export PKG_CONFIG_LIBDIR
25959 fi
25960 $PKGCONFIG --libs-only-l libmetalink`
25961 addld=`
25962 if test -n "$LIBMETALINK_PCDIR"; then
25963 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25964 export PKG_CONFIG_LIBDIR
25965 fi
25966 $PKGCONFIG --libs-only-L libmetalink`
25967 addcflags=`
25968 if test -n "$LIBMETALINK_PCDIR"; then
25969 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25970 export PKG_CONFIG_LIBDIR
25971 fi
25972 $PKGCONFIG --cflags-only-I libmetalink`
25973 version=`
25974 if test -n "$LIBMETALINK_PCDIR"; then
25975 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25976 export PKG_CONFIG_LIBDIR
25977 fi
25978 $PKGCONFIG --modversion libmetalink`
25979 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
25980 fi
25981 if test -n "$addlib"; then
25982
25983 clean_CPPFLAGS="$CPPFLAGS"
25984 clean_LDFLAGS="$LDFLAGS"
25985 clean_LIBS="$LIBS"
25986 CPPFLAGS="$clean_CPPFLAGS $addcflags"
25987 LDFLAGS="$clean_LDFLAGS $addld"
25988 LIBS="$addlib $clean_LIBS"
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
25990$as_echo_n "checking if libmetalink is recent enough... " >&6; }
25991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25992/* end confdefs.h. */
25993
25994
25995# include <metalink/metalink.h>
25996
25997int main (void)
25998{
25999
26000 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26001 return 1;
26002
26003 ;
26004 return 0;
26005}
26006
26007_ACEOF
26008if ac_fn_c_try_link "$LINENO"; then :
26009
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26011$as_echo "yes ($version)" >&6; }
26012 want_metalink="yes"
26013
26014else
26015
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26017$as_echo "no ($version)" >&6; }
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26019$as_echo "$as_me: libmetalink library defective or too old" >&6;}
26020 want_metalink="no"
26021
26022fi
26023rm -f core conftest.err conftest.$ac_objext \
26024 conftest$ac_exeext conftest.$ac_ext
26025 CPPFLAGS="$clean_CPPFLAGS"
26026 LDFLAGS="$clean_LDFLAGS"
26027 LIBS="$clean_LIBS"
26028 if test "$want_metalink" = "yes"; then
26029
26030$as_echo "#define USE_METALINK 1" >>confdefs.h
26031
26032 LIBMETALINK_LIBS=$addlib
26033 LIBMETALINK_LDFLAGS=$addld
26034 LIBMETALINK_CPPFLAGS=$addcflags
26035
26036
26037
26038 curl_mtlnk_msg="enabled"
26039 fi
26040
26041 fi
26042fi
26043
26044
26045OPT_LIBSSH2=off
26046
26047# Check whether --with-libssh2 was given.
26048if test "${with_libssh2+set}" = set; then :
26049 withval=$with_libssh2; OPT_LIBSSH2=$withval
Elliott Hughes0128fe42018-02-27 14:57:55 -080026050else
26051 OPT_LIBSSH2=no
26052fi
26053
26054
26055
26056OPT_LIBSSH=off
26057
26058# Check whether --with-libssh was given.
26059if test "${with_libssh+set}" = set; then :
26060 withval=$with_libssh; OPT_LIBSSH=$withval
26061else
26062 OPT_LIBSSH=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070026063fi
26064
26065
26066if test X"$OPT_LIBSSH2" != Xno; then
26067 CLEANLDFLAGS="$LDFLAGS"
26068 CLEANCPPFLAGS="$CPPFLAGS"
26069 CLEANLIBS="$LIBS"
26070
26071 case "$OPT_LIBSSH2" in
26072 yes)
26073
26074 if test -n "$PKG_CONFIG"; then
26075 PKGCONFIG="$PKG_CONFIG"
26076 else
26077 if test -n "$ac_tool_prefix"; then
26078 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26079set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26081$as_echo_n "checking for $ac_word... " >&6; }
26082if ${ac_cv_path_PKGCONFIG+:} false; then :
26083 $as_echo_n "(cached) " >&6
26084else
26085 case $PKGCONFIG in
26086 [\\/]* | ?:[\\/]*)
26087 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26088 ;;
26089 *)
26090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26091as_dummy="$PATH:/usr/bin:/usr/local/bin"
26092for as_dir in $as_dummy
26093do
26094 IFS=$as_save_IFS
26095 test -z "$as_dir" && as_dir=.
26096 for ac_exec_ext in '' $ac_executable_extensions; do
26097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26098 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26100 break 2
26101 fi
26102done
26103 done
26104IFS=$as_save_IFS
26105
26106 ;;
26107esac
26108fi
26109PKGCONFIG=$ac_cv_path_PKGCONFIG
26110if test -n "$PKGCONFIG"; then
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26112$as_echo "$PKGCONFIG" >&6; }
26113else
26114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26115$as_echo "no" >&6; }
26116fi
26117
26118
26119fi
26120if test -z "$ac_cv_path_PKGCONFIG"; then
26121 ac_pt_PKGCONFIG=$PKGCONFIG
26122 # Extract the first word of "pkg-config", so it can be a program name with args.
26123set dummy pkg-config; ac_word=$2
26124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26125$as_echo_n "checking for $ac_word... " >&6; }
26126if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26127 $as_echo_n "(cached) " >&6
26128else
26129 case $ac_pt_PKGCONFIG in
26130 [\\/]* | ?:[\\/]*)
26131 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26132 ;;
26133 *)
26134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26135as_dummy="$PATH:/usr/bin:/usr/local/bin"
26136for as_dir in $as_dummy
26137do
26138 IFS=$as_save_IFS
26139 test -z "$as_dir" && as_dir=.
26140 for ac_exec_ext in '' $ac_executable_extensions; do
26141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26142 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26144 break 2
26145 fi
26146done
26147 done
26148IFS=$as_save_IFS
26149
26150 ;;
26151esac
26152fi
26153ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26154if test -n "$ac_pt_PKGCONFIG"; then
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26156$as_echo "$ac_pt_PKGCONFIG" >&6; }
26157else
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26159$as_echo "no" >&6; }
26160fi
26161
26162 if test "x$ac_pt_PKGCONFIG" = x; then
26163 PKGCONFIG="no"
26164 else
26165 case $cross_compiling:$ac_tool_warned in
26166yes:)
26167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26169ac_tool_warned=yes ;;
26170esac
26171 PKGCONFIG=$ac_pt_PKGCONFIG
26172 fi
26173else
26174 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26175fi
26176
26177 fi
26178
26179 if test "x$PKGCONFIG" != "xno"; then
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26181$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26182 itexists=`
26183 if test -n ""; then
26184 PKG_CONFIG_LIBDIR=""
26185 export PKG_CONFIG_LIBDIR
26186 fi
26187 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26188
26189 if test -z "$itexists"; then
26190 PKGCONFIG="no"
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26192$as_echo "no" >&6; }
26193 else
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26195$as_echo "found" >&6; }
26196 fi
26197 fi
26198
26199
26200 if test "$PKGCONFIG" != "no" ; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070026201 LIB_SSH2=`$PKGCONFIG --libs libssh2`
Elliott Hughes82be86d2017-09-20 17:00:17 -070026202 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26203 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26204 version=`$PKGCONFIG --modversion libssh2`
26205 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26206 fi
26207
26208 ;;
26209 off)
26210 ;;
26211 *)
26212 PREFIX_SSH2=$OPT_LIBSSH2
26213 ;;
26214 esac
26215
26216 if test -n "$PREFIX_SSH2"; then
26217 LIB_SSH2="-lssh2"
26218 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26219 CPP_SSH2=-I${PREFIX_SSH2}/include
26220 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26221 fi
26222
26223 LDFLAGS="$LDFLAGS $LD_SSH2"
26224 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26225 LIBS="$LIB_SSH2 $LIBS"
26226
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26228$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26229if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26230 $as_echo_n "(cached) " >&6
26231else
26232 ac_check_lib_save_LIBS=$LIBS
26233LIBS="-lssh2 $LIBS"
26234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26235/* end confdefs.h. */
26236
26237
26238#ifdef __cplusplus
26239extern "C"
26240#endif
26241char libssh2_channel_open_ex ();
26242int main (void)
26243{
26244return libssh2_channel_open_ex ();
26245 ;
26246 return 0;
26247}
26248_ACEOF
26249if ac_fn_c_try_link "$LINENO"; then :
26250 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26251else
26252 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26253fi
26254rm -f core conftest.err conftest.$ac_objext \
26255 conftest$ac_exeext conftest.$ac_ext
26256LIBS=$ac_check_lib_save_LIBS
26257fi
26258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26259$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26260if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26261 cat >>confdefs.h <<_ACEOF
26262#define HAVE_LIBSSH2 1
26263_ACEOF
26264
26265 LIBS="-lssh2 $LIBS"
26266
26267fi
26268
26269
26270 for ac_header in libssh2.h
26271do :
26272 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26273if test "x$ac_cv_header_libssh2_h" = xyes; then :
26274 cat >>confdefs.h <<_ACEOF
26275#define HAVE_LIBSSH2_H 1
26276_ACEOF
26277 curl_ssh_msg="enabled (libSSH2)"
26278 LIBSSH2_ENABLED=1
26279
26280$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26281
26282 USE_LIBSSH2=1
26283
26284
26285fi
26286
26287done
26288
26289
26290 if test X"$OPT_LIBSSH2" != Xoff &&
26291 test "$LIBSSH2_ENABLED" != "1"; then
26292 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26293 fi
26294
26295 if test "$LIBSSH2_ENABLED" = "1"; then
26296 if test -n "$DIR_SSH2"; then
26297
26298 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026299 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
26300 export CURL_LIBRARY_PATH
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
26302$as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070026303 fi
26304 fi
26305 else
26306 LDFLAGS=$CLEANLDFLAGS
26307 CPPFLAGS=$CLEANCPPFLAGS
26308 LIBS=$CLEANLIBS
26309 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080026310elif test X"$OPT_LIBSSH" != Xno; then
26311 CLEANLDFLAGS="$LDFLAGS"
26312 CLEANCPPFLAGS="$CPPFLAGS"
26313 CLEANLIBS="$LIBS"
26314
26315 case "$OPT_LIBSSH" in
26316 yes)
26317
26318 if test -n "$PKG_CONFIG"; then
26319 PKGCONFIG="$PKG_CONFIG"
26320 else
26321 if test -n "$ac_tool_prefix"; then
26322 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26323set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26325$as_echo_n "checking for $ac_word... " >&6; }
26326if ${ac_cv_path_PKGCONFIG+:} false; then :
26327 $as_echo_n "(cached) " >&6
26328else
26329 case $PKGCONFIG in
26330 [\\/]* | ?:[\\/]*)
26331 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26332 ;;
26333 *)
26334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26335as_dummy="$PATH:/usr/bin:/usr/local/bin"
26336for as_dir in $as_dummy
26337do
26338 IFS=$as_save_IFS
26339 test -z "$as_dir" && as_dir=.
26340 for ac_exec_ext in '' $ac_executable_extensions; do
26341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26342 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26344 break 2
26345 fi
26346done
26347 done
26348IFS=$as_save_IFS
26349
26350 ;;
26351esac
26352fi
26353PKGCONFIG=$ac_cv_path_PKGCONFIG
26354if test -n "$PKGCONFIG"; then
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26356$as_echo "$PKGCONFIG" >&6; }
26357else
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26359$as_echo "no" >&6; }
26360fi
26361
26362
26363fi
26364if test -z "$ac_cv_path_PKGCONFIG"; then
26365 ac_pt_PKGCONFIG=$PKGCONFIG
26366 # Extract the first word of "pkg-config", so it can be a program name with args.
26367set dummy pkg-config; ac_word=$2
26368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26369$as_echo_n "checking for $ac_word... " >&6; }
26370if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26371 $as_echo_n "(cached) " >&6
26372else
26373 case $ac_pt_PKGCONFIG in
26374 [\\/]* | ?:[\\/]*)
26375 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26376 ;;
26377 *)
26378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26379as_dummy="$PATH:/usr/bin:/usr/local/bin"
26380for as_dir in $as_dummy
26381do
26382 IFS=$as_save_IFS
26383 test -z "$as_dir" && as_dir=.
26384 for ac_exec_ext in '' $ac_executable_extensions; do
26385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26386 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26388 break 2
26389 fi
26390done
26391 done
26392IFS=$as_save_IFS
26393
26394 ;;
26395esac
26396fi
26397ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26398if test -n "$ac_pt_PKGCONFIG"; then
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26400$as_echo "$ac_pt_PKGCONFIG" >&6; }
26401else
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26403$as_echo "no" >&6; }
26404fi
26405
26406 if test "x$ac_pt_PKGCONFIG" = x; then
26407 PKGCONFIG="no"
26408 else
26409 case $cross_compiling:$ac_tool_warned in
26410yes:)
26411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26413ac_tool_warned=yes ;;
26414esac
26415 PKGCONFIG=$ac_pt_PKGCONFIG
26416 fi
26417else
26418 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26419fi
26420
26421 fi
26422
26423 if test "x$PKGCONFIG" != "xno"; then
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26425$as_echo_n "checking for libssh options with pkg-config... " >&6; }
26426 itexists=`
26427 if test -n ""; then
26428 PKG_CONFIG_LIBDIR=""
26429 export PKG_CONFIG_LIBDIR
26430 fi
26431 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26432
26433 if test -z "$itexists"; then
26434 PKGCONFIG="no"
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26436$as_echo "no" >&6; }
26437 else
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26439$as_echo "found" >&6; }
26440 fi
26441 fi
26442
26443
26444 if test "$PKGCONFIG" != "no" ; then
26445 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26446 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26447 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26448 version=`$PKGCONFIG --modversion libssh`
26449 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26450 fi
26451
26452 ;;
26453 off)
26454 ;;
26455 *)
26456 PREFIX_SSH=$OPT_LIBSSH
26457 ;;
26458 esac
26459
26460 if test -n "$PREFIX_SSH"; then
26461 LIB_SSH="-lssh"
26462 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26463 CPP_SSH=-I${PREFIX_SSH}/include
26464 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26465 fi
26466
26467 LDFLAGS="$LDFLAGS $LD_SSH"
26468 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26469 LIBS="$LIB_SSH $LIBS"
26470
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26472$as_echo_n "checking for ssh_new in -lssh... " >&6; }
26473if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26474 $as_echo_n "(cached) " >&6
26475else
26476 ac_check_lib_save_LIBS=$LIBS
26477LIBS="-lssh $LIBS"
26478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26479/* end confdefs.h. */
26480
26481
26482#ifdef __cplusplus
26483extern "C"
26484#endif
26485char ssh_new ();
26486int main (void)
26487{
26488return ssh_new ();
26489 ;
26490 return 0;
26491}
26492_ACEOF
26493if ac_fn_c_try_link "$LINENO"; then :
26494 ac_cv_lib_ssh_ssh_new=yes
26495else
26496 ac_cv_lib_ssh_ssh_new=no
26497fi
26498rm -f core conftest.err conftest.$ac_objext \
26499 conftest$ac_exeext conftest.$ac_ext
26500LIBS=$ac_check_lib_save_LIBS
26501fi
26502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26503$as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26504if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26505 cat >>confdefs.h <<_ACEOF
26506#define HAVE_LIBSSH 1
26507_ACEOF
26508
26509 LIBS="-lssh $LIBS"
26510
26511fi
26512
26513
26514 for ac_header in libssh/libssh.h
26515do :
26516 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26517if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26518 cat >>confdefs.h <<_ACEOF
26519#define HAVE_LIBSSH_LIBSSH_H 1
26520_ACEOF
26521 curl_ssh_msg="enabled (libSSH)"
26522 LIBSSH_ENABLED=1
26523
26524$as_echo "#define USE_LIBSSH 1" >>confdefs.h
26525
26526 USE_LIBSSH=1
26527
26528
26529fi
26530
26531done
26532
26533
26534 if test X"$OPT_LIBSSH" != Xoff &&
26535 test "$LIBSSH_ENABLED" != "1"; then
26536 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26537 fi
26538
26539 if test "$LIBSSH_ENABLED" = "1"; then
26540 if test -n "$DIR_SSH"; then
26541
26542 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026543 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
26544 export CURL_LIBRARY_PATH
26545 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
26546$as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes0128fe42018-02-27 14:57:55 -080026547 fi
26548 fi
26549 else
26550 LDFLAGS=$CLEANLDFLAGS
26551 CPPFLAGS=$CLEANCPPFLAGS
26552 LIBS=$CLEANLIBS
26553 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070026554fi
26555
26556
26557OPT_LIBRTMP=off
26558
26559# Check whether --with-librtmp was given.
26560if test "${with_librtmp+set}" = set; then :
26561 withval=$with_librtmp; OPT_LIBRTMP=$withval
26562fi
26563
26564
26565if test X"$OPT_LIBRTMP" != Xno; then
26566 CLEANLDFLAGS="$LDFLAGS"
26567 CLEANCPPFLAGS="$CPPFLAGS"
26568 CLEANLIBS="$LIBS"
26569
26570 case "$OPT_LIBRTMP" in
26571 yes)
26572
26573 if test -n "$PKG_CONFIG"; then
26574 PKGCONFIG="$PKG_CONFIG"
26575 else
26576 if test -n "$ac_tool_prefix"; then
26577 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26578set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26580$as_echo_n "checking for $ac_word... " >&6; }
26581if ${ac_cv_path_PKGCONFIG+:} false; then :
26582 $as_echo_n "(cached) " >&6
26583else
26584 case $PKGCONFIG in
26585 [\\/]* | ?:[\\/]*)
26586 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26587 ;;
26588 *)
26589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26590as_dummy="$PATH:/usr/bin:/usr/local/bin"
26591for as_dir in $as_dummy
26592do
26593 IFS=$as_save_IFS
26594 test -z "$as_dir" && as_dir=.
26595 for ac_exec_ext in '' $ac_executable_extensions; do
26596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26597 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26599 break 2
26600 fi
26601done
26602 done
26603IFS=$as_save_IFS
26604
26605 ;;
26606esac
26607fi
26608PKGCONFIG=$ac_cv_path_PKGCONFIG
26609if test -n "$PKGCONFIG"; then
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26611$as_echo "$PKGCONFIG" >&6; }
26612else
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26614$as_echo "no" >&6; }
26615fi
26616
26617
26618fi
26619if test -z "$ac_cv_path_PKGCONFIG"; then
26620 ac_pt_PKGCONFIG=$PKGCONFIG
26621 # Extract the first word of "pkg-config", so it can be a program name with args.
26622set dummy pkg-config; ac_word=$2
26623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26624$as_echo_n "checking for $ac_word... " >&6; }
26625if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26626 $as_echo_n "(cached) " >&6
26627else
26628 case $ac_pt_PKGCONFIG in
26629 [\\/]* | ?:[\\/]*)
26630 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26631 ;;
26632 *)
26633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26634as_dummy="$PATH:/usr/bin:/usr/local/bin"
26635for as_dir in $as_dummy
26636do
26637 IFS=$as_save_IFS
26638 test -z "$as_dir" && as_dir=.
26639 for ac_exec_ext in '' $ac_executable_extensions; do
26640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26641 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26643 break 2
26644 fi
26645done
26646 done
26647IFS=$as_save_IFS
26648
26649 ;;
26650esac
26651fi
26652ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26653if test -n "$ac_pt_PKGCONFIG"; then
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26655$as_echo "$ac_pt_PKGCONFIG" >&6; }
26656else
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26658$as_echo "no" >&6; }
26659fi
26660
26661 if test "x$ac_pt_PKGCONFIG" = x; then
26662 PKGCONFIG="no"
26663 else
26664 case $cross_compiling:$ac_tool_warned in
26665yes:)
26666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26668ac_tool_warned=yes ;;
26669esac
26670 PKGCONFIG=$ac_pt_PKGCONFIG
26671 fi
26672else
26673 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26674fi
26675
26676 fi
26677
26678 if test "x$PKGCONFIG" != "xno"; then
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26680$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26681 itexists=`
26682 if test -n ""; then
26683 PKG_CONFIG_LIBDIR=""
26684 export PKG_CONFIG_LIBDIR
26685 fi
26686 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26687
26688 if test -z "$itexists"; then
26689 PKGCONFIG="no"
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26691$as_echo "no" >&6; }
26692 else
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26694$as_echo "found" >&6; }
26695 fi
26696 fi
26697
26698
26699 if test "$PKGCONFIG" != "no" ; then
26700 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26701 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26702 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26703 version=`$PKGCONFIG --modversion librtmp`
26704 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26705 else
26706 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26707 fi
26708
26709 ;;
26710 off)
26711 LIB_RTMP="-lrtmp"
26712 ;;
26713 *)
26714 LIB_RTMP="-lrtmp"
26715 PREFIX_RTMP=$OPT_LIBRTMP
26716 ;;
26717 esac
26718
26719 if test -n "$PREFIX_RTMP"; then
26720 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26721 CPP_RTMP=-I${PREFIX_RTMP}/include
26722 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26723 fi
26724
26725 LDFLAGS="$LDFLAGS $LD_RTMP"
26726 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26727 LIBS="$LIB_RTMP $LIBS"
26728
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26730$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26731if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26732 $as_echo_n "(cached) " >&6
26733else
26734 ac_check_lib_save_LIBS=$LIBS
26735LIBS="-lrtmp $LIBS"
26736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26737/* end confdefs.h. */
26738
26739
26740#ifdef __cplusplus
26741extern "C"
26742#endif
26743char RTMP_Init ();
26744int main (void)
26745{
26746return RTMP_Init ();
26747 ;
26748 return 0;
26749}
26750_ACEOF
26751if ac_fn_c_try_link "$LINENO"; then :
26752 ac_cv_lib_rtmp_RTMP_Init=yes
26753else
26754 ac_cv_lib_rtmp_RTMP_Init=no
26755fi
26756rm -f core conftest.err conftest.$ac_objext \
26757 conftest$ac_exeext conftest.$ac_ext
26758LIBS=$ac_check_lib_save_LIBS
26759fi
26760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26761$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26762if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26763
26764 for ac_header in librtmp/rtmp.h
26765do :
26766 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26767if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26768 cat >>confdefs.h <<_ACEOF
26769#define HAVE_LIBRTMP_RTMP_H 1
26770_ACEOF
26771 curl_rtmp_msg="enabled (librtmp)"
26772 LIBRTMP_ENABLED=1
26773
26774$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26775
26776 USE_LIBRTMP=1
26777
26778
26779fi
26780
26781done
26782
26783
26784else
26785 LDFLAGS=$CLEANLDFLAGS
26786 CPPFLAGS=$CLEANCPPFLAGS
26787 LIBS=$CLEANLIBS
26788
26789fi
26790
26791
26792 if test X"$OPT_LIBRTMP" != Xoff &&
26793 test "$LIBRTMP_ENABLED" != "1"; then
26794 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26795 fi
26796
26797fi
26798
26799
26800versioned_symbols_flavour=
26801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26802$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26803# Check whether --enable-versioned-symbols was given.
26804if test "${enable_versioned_symbols+set}" = set; then :
26805 enableval=$enable_versioned_symbols; case "$enableval" in
26806 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26807$as_echo "yes" >&6; }
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26809$as_echo_n "checking if libraries can be versioned... " >&6; }
26810 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26811 if test -z "$GLD"; then
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26813$as_echo "no" >&6; }
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26815$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26816 else
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26818$as_echo "yes" >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010026819 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26820 versioned_symbols_flavour="MULTISSL_"
26821 elif test "x$OPENSSL_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070026822 versioned_symbols_flavour="OPENSSL_"
26823 elif test "x$GNUTLS_ENABLED" = "x1"; then
26824 versioned_symbols_flavour="GNUTLS_"
26825 elif test "x$NSS_ENABLED" = "x1"; then
26826 versioned_symbols_flavour="NSS_"
26827 elif test "x$POLARSSL_ENABLED" = "x1"; then
26828 versioned_symbols_flavour="POLARSSL_"
26829 elif test "x$CYASSL_ENABLED" = "x1"; then
26830 versioned_symbols_flavour="CYASSL_"
Elliott Hughes82be86d2017-09-20 17:00:17 -070026831 elif test "x$WINSSL_ENABLED" = "x1"; then
26832 versioned_symbols_flavour="WINSSL_"
26833 elif test "x$DARWINSSL_ENABLED" = "x1"; then
26834 versioned_symbols_flavour="DARWINSSL_"
26835 else
26836 versioned_symbols_flavour=""
26837 fi
26838 versioned_symbols="yes"
26839 fi
26840 ;;
26841
26842 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26843$as_echo "no" >&6; }
26844 ;;
26845 esac
26846
26847else
26848
26849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26850$as_echo "no" >&6; }
26851
26852
26853fi
26854
26855
26856CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26857
26858 if test "x$versioned_symbols" = 'xyes'; then
26859 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26860 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26861else
26862 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26863 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26864fi
26865
26866
26867
26868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26869$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26870OPT_WINIDN="default"
26871
26872# Check whether --with-winidn was given.
26873if test "${with_winidn+set}" = set; then :
26874 withval=$with_winidn; OPT_WINIDN=$withval
26875fi
26876
26877case "$OPT_WINIDN" in
26878 no|default)
26879 want_winidn="no"
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26881$as_echo "no" >&6; }
26882 ;;
26883 yes)
26884 want_winidn="yes"
26885 want_winidn_path="default"
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26887$as_echo "yes" >&6; }
26888 ;;
26889 *)
26890 want_winidn="yes"
26891 want_winidn_path="$withval"
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26893$as_echo "yes ($withval)" >&6; }
26894 ;;
26895esac
26896
26897if test "$want_winidn" = "yes"; then
26898 clean_CPPFLAGS="$CPPFLAGS"
26899 clean_LDFLAGS="$LDFLAGS"
26900 clean_LIBS="$LIBS"
26901 WINIDN_LIBS="-lnormaliz"
26902 WINIDN_CPPFLAGS="-DWINVER=0x0600"
26903 #
26904 if test "$want_winidn_path" != "default"; then
26905 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26906 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26907 WINIDN_DIR="$want_winidn_path/lib$libsuff"
26908 fi
26909 #
26910 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
26911 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
26912 LIBS="$WINIDN_LIBS $LIBS"
26913 #
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26915$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26917/* end confdefs.h. */
26918
26919
26920 #include <windows.h>
26921
26922int main (void)
26923{
26924
26925 IdnToUnicode(0, NULL, 0, NULL, 0);
26926
26927 ;
26928 return 0;
26929}
26930
26931_ACEOF
26932if ac_fn_c_try_link "$LINENO"; then :
26933
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26935$as_echo "yes" >&6; }
26936 tst_links_winidn="yes"
26937
26938else
26939
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26941$as_echo "no" >&6; }
26942 tst_links_winidn="no"
26943
26944fi
26945rm -f core conftest.err conftest.$ac_objext \
26946 conftest$ac_exeext conftest.$ac_ext
26947 #
26948 if test "$tst_links_winidn" = "yes"; then
26949
26950$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26951
26952
26953$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26954
26955 IDN_ENABLED=1
26956
26957 curl_idn_msg="enabled (Windows-native)"
26958 else
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26960$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26961 CPPFLAGS="$clean_CPPFLAGS"
26962 LDFLAGS="$clean_LDFLAGS"
26963 LIBS="$clean_LIBS"
26964 fi
26965fi
26966
26967
26968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
26969$as_echo_n "checking whether to build with libidn2... " >&6; }
26970OPT_IDN="default"
26971
26972# Check whether --with-libidn2 was given.
26973if test "${with_libidn2+set}" = set; then :
26974 withval=$with_libidn2; OPT_IDN=$withval
26975fi
26976
26977case "$OPT_IDN" in
26978 no)
26979 want_idn="no"
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26981$as_echo "no" >&6; }
26982 ;;
26983 default)
26984 want_idn="yes"
26985 want_idn_path="default"
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
26987$as_echo "(assumed) yes" >&6; }
26988 ;;
26989 yes)
26990 want_idn="yes"
26991 want_idn_path="default"
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26993$as_echo "yes" >&6; }
26994 ;;
26995 *)
26996 want_idn="yes"
26997 want_idn_path="$withval"
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26999$as_echo "yes ($withval)" >&6; }
27000 ;;
27001esac
27002
27003if test "$want_idn" = "yes"; then
27004 clean_CPPFLAGS="$CPPFLAGS"
27005 clean_LDFLAGS="$LDFLAGS"
27006 clean_LIBS="$LIBS"
27007 PKGCONFIG="no"
27008 #
27009 if test "$want_idn_path" != "default"; then
27010 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27011
27012 if test -n "$PKG_CONFIG"; then
27013 PKGCONFIG="$PKG_CONFIG"
27014 else
27015 if test -n "$ac_tool_prefix"; then
27016 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27017set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27019$as_echo_n "checking for $ac_word... " >&6; }
27020if ${ac_cv_path_PKGCONFIG+:} false; then :
27021 $as_echo_n "(cached) " >&6
27022else
27023 case $PKGCONFIG in
27024 [\\/]* | ?:[\\/]*)
27025 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27026 ;;
27027 *)
27028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27029as_dummy="$PATH:/usr/bin:/usr/local/bin"
27030for as_dir in $as_dummy
27031do
27032 IFS=$as_save_IFS
27033 test -z "$as_dir" && as_dir=.
27034 for ac_exec_ext in '' $ac_executable_extensions; do
27035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27036 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27038 break 2
27039 fi
27040done
27041 done
27042IFS=$as_save_IFS
27043
27044 ;;
27045esac
27046fi
27047PKGCONFIG=$ac_cv_path_PKGCONFIG
27048if test -n "$PKGCONFIG"; then
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27050$as_echo "$PKGCONFIG" >&6; }
27051else
27052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27053$as_echo "no" >&6; }
27054fi
27055
27056
27057fi
27058if test -z "$ac_cv_path_PKGCONFIG"; then
27059 ac_pt_PKGCONFIG=$PKGCONFIG
27060 # Extract the first word of "pkg-config", so it can be a program name with args.
27061set dummy pkg-config; ac_word=$2
27062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27063$as_echo_n "checking for $ac_word... " >&6; }
27064if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27065 $as_echo_n "(cached) " >&6
27066else
27067 case $ac_pt_PKGCONFIG in
27068 [\\/]* | ?:[\\/]*)
27069 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27070 ;;
27071 *)
27072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27073as_dummy="$PATH:/usr/bin:/usr/local/bin"
27074for as_dir in $as_dummy
27075do
27076 IFS=$as_save_IFS
27077 test -z "$as_dir" && as_dir=.
27078 for ac_exec_ext in '' $ac_executable_extensions; do
27079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27080 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27082 break 2
27083 fi
27084done
27085 done
27086IFS=$as_save_IFS
27087
27088 ;;
27089esac
27090fi
27091ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27092if test -n "$ac_pt_PKGCONFIG"; then
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27094$as_echo "$ac_pt_PKGCONFIG" >&6; }
27095else
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27097$as_echo "no" >&6; }
27098fi
27099
27100 if test "x$ac_pt_PKGCONFIG" = x; then
27101 PKGCONFIG="no"
27102 else
27103 case $cross_compiling:$ac_tool_warned in
27104yes:)
27105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27107ac_tool_warned=yes ;;
27108esac
27109 PKGCONFIG=$ac_pt_PKGCONFIG
27110 fi
27111else
27112 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27113fi
27114
27115 fi
27116
27117 if test "x$PKGCONFIG" != "xno"; then
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27119$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27120 itexists=`
27121 if test -n "$IDN_PCDIR"; then
27122 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27123 export PKG_CONFIG_LIBDIR
27124 fi
27125 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27126
27127 if test -z "$itexists"; then
27128 PKGCONFIG="no"
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27130$as_echo "no" >&6; }
27131 else
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27133$as_echo "found" >&6; }
27134 fi
27135 fi
27136
27137 if test "$PKGCONFIG" != "no"; then
27138 IDN_LIBS=`
27139 if test -n "$IDN_PCDIR"; then
27140 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27141 export PKG_CONFIG_LIBDIR
27142 fi
27143 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27144 IDN_LDFLAGS=`
27145 if test -n "$IDN_PCDIR"; then
27146 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27147 export PKG_CONFIG_LIBDIR
27148 fi
27149 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27150 IDN_CPPFLAGS=`
27151 if test -n "$IDN_PCDIR"; then
27152 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27153 export PKG_CONFIG_LIBDIR
27154 fi
27155 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27156 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27157 else
27158 IDN_LIBS="-lidn2"
27159 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27160 IDN_CPPFLAGS="-I$want_idn_path/include"
27161 IDN_DIR="$want_idn_path/lib$libsuff"
27162 fi
27163 else
27164
27165 if test -n "$PKG_CONFIG"; then
27166 PKGCONFIG="$PKG_CONFIG"
27167 else
27168 if test -n "$ac_tool_prefix"; then
27169 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27170set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27172$as_echo_n "checking for $ac_word... " >&6; }
27173if ${ac_cv_path_PKGCONFIG+:} false; then :
27174 $as_echo_n "(cached) " >&6
27175else
27176 case $PKGCONFIG in
27177 [\\/]* | ?:[\\/]*)
27178 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27179 ;;
27180 *)
27181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27182as_dummy="$PATH:/usr/bin:/usr/local/bin"
27183for as_dir in $as_dummy
27184do
27185 IFS=$as_save_IFS
27186 test -z "$as_dir" && as_dir=.
27187 for ac_exec_ext in '' $ac_executable_extensions; do
27188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27189 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27191 break 2
27192 fi
27193done
27194 done
27195IFS=$as_save_IFS
27196
27197 ;;
27198esac
27199fi
27200PKGCONFIG=$ac_cv_path_PKGCONFIG
27201if test -n "$PKGCONFIG"; then
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27203$as_echo "$PKGCONFIG" >&6; }
27204else
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27206$as_echo "no" >&6; }
27207fi
27208
27209
27210fi
27211if test -z "$ac_cv_path_PKGCONFIG"; then
27212 ac_pt_PKGCONFIG=$PKGCONFIG
27213 # Extract the first word of "pkg-config", so it can be a program name with args.
27214set dummy pkg-config; ac_word=$2
27215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27216$as_echo_n "checking for $ac_word... " >&6; }
27217if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27218 $as_echo_n "(cached) " >&6
27219else
27220 case $ac_pt_PKGCONFIG in
27221 [\\/]* | ?:[\\/]*)
27222 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27223 ;;
27224 *)
27225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27226as_dummy="$PATH:/usr/bin:/usr/local/bin"
27227for as_dir in $as_dummy
27228do
27229 IFS=$as_save_IFS
27230 test -z "$as_dir" && as_dir=.
27231 for ac_exec_ext in '' $ac_executable_extensions; do
27232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27233 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27235 break 2
27236 fi
27237done
27238 done
27239IFS=$as_save_IFS
27240
27241 ;;
27242esac
27243fi
27244ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27245if test -n "$ac_pt_PKGCONFIG"; then
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27247$as_echo "$ac_pt_PKGCONFIG" >&6; }
27248else
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27250$as_echo "no" >&6; }
27251fi
27252
27253 if test "x$ac_pt_PKGCONFIG" = x; then
27254 PKGCONFIG="no"
27255 else
27256 case $cross_compiling:$ac_tool_warned in
27257yes:)
27258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27260ac_tool_warned=yes ;;
27261esac
27262 PKGCONFIG=$ac_pt_PKGCONFIG
27263 fi
27264else
27265 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27266fi
27267
27268 fi
27269
27270 if test "x$PKGCONFIG" != "xno"; then
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27272$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27273 itexists=`
27274 if test -n ""; then
27275 PKG_CONFIG_LIBDIR=""
27276 export PKG_CONFIG_LIBDIR
27277 fi
27278 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27279
27280 if test -z "$itexists"; then
27281 PKGCONFIG="no"
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27283$as_echo "no" >&6; }
27284 else
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27286$as_echo "found" >&6; }
27287 fi
27288 fi
27289
27290 if test "$PKGCONFIG" != "no"; then
27291 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27292 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27293 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27294 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27295 else
27296 IDN_LIBS="-lidn2"
27297 fi
27298 fi
27299 #
27300 if test "$PKGCONFIG" != "no"; then
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27302$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27304$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27306$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27307 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27308$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27309 else
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27311$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27313$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27315$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27317$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27318 fi
27319 #
27320 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27321 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27322 LIBS="$IDN_LIBS $LIBS"
27323 #
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27325$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27327/* end confdefs.h. */
27328
27329
27330#define idn2_lookup_ul innocuous_idn2_lookup_ul
27331#ifdef __STDC__
27332# include <limits.h>
27333#else
27334# include <assert.h>
27335#endif
27336#undef idn2_lookup_ul
27337#ifdef __cplusplus
27338extern "C"
27339#endif
27340char idn2_lookup_ul ();
27341#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27342choke me
27343#endif
27344
27345int main (void)
27346{
27347return idn2_lookup_ul ();
27348 ;
27349 return 0;
27350}
27351
27352_ACEOF
27353if ac_fn_c_try_link "$LINENO"; then :
27354
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27356$as_echo "yes" >&6; }
27357 tst_links_libidn="yes"
27358
27359else
27360
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27362$as_echo "no" >&6; }
27363 tst_links_libidn="no"
27364
27365fi
27366rm -f core conftest.err conftest.$ac_objext \
27367 conftest$ac_exeext conftest.$ac_ext
27368 #
27369 for ac_header in idn2.h
27370do :
27371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27372ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27373if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27374 cat >>confdefs.h <<_ACEOF
27375#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27376_ACEOF
27377
27378fi
27379
27380done
27381
27382
27383 if test "$tst_links_libidn" = "yes"; then
27384
27385$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27386
27387
27388 IDN_ENABLED=1
27389
27390 curl_idn_msg="enabled (libidn2)"
27391 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070027392 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
27393 export CURL_LIBRARY_PATH
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
27395$as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070027396 fi
27397 else
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27399$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27400 CPPFLAGS="$clean_CPPFLAGS"
27401 LDFLAGS="$clean_LDFLAGS"
27402 LIBS="$clean_LIBS"
27403 fi
27404fi
27405
27406
27407
27408
27409
27410OPT_H2="yes"
27411
27412if test "x$disable_http" = "xyes"; then
27413 # without HTTP, nghttp2 is no use
27414 OPT_H2="no"
27415fi
27416
27417
27418# Check whether --with-nghttp2 was given.
27419if test "${with_nghttp2+set}" = set; then :
27420 withval=$with_nghttp2; OPT_H2=$withval
27421fi
27422
27423case "$OPT_H2" in
27424 no)
27425 want_h2="no"
27426 ;;
27427 yes)
27428 want_h2="default"
27429 want_h2_path=""
27430 ;;
27431 *)
27432 want_h2="yes"
27433 want_h2_path="$withval/lib/pkgconfig"
27434 ;;
27435esac
27436
27437curl_h2_msg="disabled (--with-nghttp2)"
27438if test X"$want_h2" != Xno; then
27439 CLEANLDFLAGS="$LDFLAGS"
27440 CLEANCPPFLAGS="$CPPFLAGS"
27441 CLEANLIBS="$LIBS"
27442
27443
27444 if test -n "$PKG_CONFIG"; then
27445 PKGCONFIG="$PKG_CONFIG"
27446 else
27447 if test -n "$ac_tool_prefix"; then
27448 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27449set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27451$as_echo_n "checking for $ac_word... " >&6; }
27452if ${ac_cv_path_PKGCONFIG+:} false; then :
27453 $as_echo_n "(cached) " >&6
27454else
27455 case $PKGCONFIG in
27456 [\\/]* | ?:[\\/]*)
27457 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27458 ;;
27459 *)
27460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27461as_dummy="$PATH:/usr/bin:/usr/local/bin"
27462for as_dir in $as_dummy
27463do
27464 IFS=$as_save_IFS
27465 test -z "$as_dir" && as_dir=.
27466 for ac_exec_ext in '' $ac_executable_extensions; do
27467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27468 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27470 break 2
27471 fi
27472done
27473 done
27474IFS=$as_save_IFS
27475
27476 ;;
27477esac
27478fi
27479PKGCONFIG=$ac_cv_path_PKGCONFIG
27480if test -n "$PKGCONFIG"; then
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27482$as_echo "$PKGCONFIG" >&6; }
27483else
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27485$as_echo "no" >&6; }
27486fi
27487
27488
27489fi
27490if test -z "$ac_cv_path_PKGCONFIG"; then
27491 ac_pt_PKGCONFIG=$PKGCONFIG
27492 # Extract the first word of "pkg-config", so it can be a program name with args.
27493set dummy pkg-config; ac_word=$2
27494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27495$as_echo_n "checking for $ac_word... " >&6; }
27496if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27497 $as_echo_n "(cached) " >&6
27498else
27499 case $ac_pt_PKGCONFIG in
27500 [\\/]* | ?:[\\/]*)
27501 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27502 ;;
27503 *)
27504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27505as_dummy="$PATH:/usr/bin:/usr/local/bin"
27506for as_dir in $as_dummy
27507do
27508 IFS=$as_save_IFS
27509 test -z "$as_dir" && as_dir=.
27510 for ac_exec_ext in '' $ac_executable_extensions; do
27511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27512 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27514 break 2
27515 fi
27516done
27517 done
27518IFS=$as_save_IFS
27519
27520 ;;
27521esac
27522fi
27523ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27524if test -n "$ac_pt_PKGCONFIG"; then
27525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27526$as_echo "$ac_pt_PKGCONFIG" >&6; }
27527else
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27529$as_echo "no" >&6; }
27530fi
27531
27532 if test "x$ac_pt_PKGCONFIG" = x; then
27533 PKGCONFIG="no"
27534 else
27535 case $cross_compiling:$ac_tool_warned in
27536yes:)
27537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27539ac_tool_warned=yes ;;
27540esac
27541 PKGCONFIG=$ac_pt_PKGCONFIG
27542 fi
27543else
27544 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27545fi
27546
27547 fi
27548
27549 if test "x$PKGCONFIG" != "xno"; then
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27551$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27552 itexists=`
27553 if test -n "$want_h2_path"; then
27554 PKG_CONFIG_LIBDIR="$want_h2_path"
27555 export PKG_CONFIG_LIBDIR
27556 fi
27557 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27558
27559 if test -z "$itexists"; then
27560 PKGCONFIG="no"
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27562$as_echo "no" >&6; }
27563 else
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27565$as_echo "found" >&6; }
27566 fi
27567 fi
27568
27569
27570 if test "$PKGCONFIG" != "no" ; then
27571 LIB_H2=`
27572 if test -n "$want_h2_path"; then
27573 PKG_CONFIG_LIBDIR="$want_h2_path"
27574 export PKG_CONFIG_LIBDIR
27575 fi
27576
27577 $PKGCONFIG --libs-only-l libnghttp2`
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27579$as_echo "$as_me: -l is $LIB_H2" >&6;}
27580
27581 CPP_H2=`
27582 if test -n "$want_h2_path"; then
27583 PKG_CONFIG_LIBDIR="$want_h2_path"
27584 export PKG_CONFIG_LIBDIR
27585 fi
27586 $PKGCONFIG --cflags-only-I libnghttp2`
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27588$as_echo "$as_me: -I is $CPP_H2" >&6;}
27589
27590 LD_H2=`
27591 if test -n "$want_h2_path"; then
27592 PKG_CONFIG_LIBDIR="$want_h2_path"
27593 export PKG_CONFIG_LIBDIR
27594 fi
27595
27596 $PKGCONFIG --libs-only-L libnghttp2`
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27598$as_echo "$as_me: -L is $LD_H2" >&6;}
27599
27600 LDFLAGS="$LDFLAGS $LD_H2"
27601 CPPFLAGS="$CPPFLAGS $CPP_H2"
27602 LIBS="$LIB_H2 $LIBS"
27603
27604 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27605 # >= 1.0.0
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27607$as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27608if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27609 $as_echo_n "(cached) " >&6
27610else
27611 ac_check_lib_save_LIBS=$LIBS
27612LIBS="-lnghttp2 $LIBS"
27613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27614/* end confdefs.h. */
27615
27616
27617#ifdef __cplusplus
27618extern "C"
27619#endif
27620char nghttp2_option_set_no_recv_client_magic ();
27621int main (void)
27622{
27623return nghttp2_option_set_no_recv_client_magic ();
27624 ;
27625 return 0;
27626}
27627_ACEOF
27628if ac_fn_c_try_link "$LINENO"; then :
27629 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27630else
27631 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27632fi
27633rm -f core conftest.err conftest.$ac_objext \
27634 conftest$ac_exeext conftest.$ac_ext
27635LIBS=$ac_check_lib_save_LIBS
27636fi
27637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27638$as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27639if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27640
27641 for ac_header in nghttp2/nghttp2.h
27642do :
27643 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27644if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27645 cat >>confdefs.h <<_ACEOF
27646#define HAVE_NGHTTP2_NGHTTP2_H 1
27647_ACEOF
27648 curl_h2_msg="enabled (nghttp2)"
27649 NGHTTP2_ENABLED=1
27650
27651$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27652
27653 USE_NGHTTP2=1
27654
27655
27656fi
27657
27658done
27659
27660
27661else
27662 LDFLAGS=$CLEANLDFLAGS
27663 CPPFLAGS=$CLEANCPPFLAGS
27664 LIBS=$CLEANLIBS
27665
27666fi
27667
27668
27669 else
27670 if test X"$want_h2" != Xdefault; then
27671 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27672 fi
27673 fi
27674
27675fi
27676
27677
27678OPT_ZSH_FPATH=default
27679
27680# Check whether --with-zsh-functions-dir was given.
27681if test "${with_zsh_functions_dir+set}" = set; then :
27682 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27683fi
27684
27685case "$OPT_ZSH_FPATH" in
27686 no)
27687 ;;
27688 default|yes)
27689 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27690
27691 ;;
27692 *)
27693 ZSH_FUNCTIONS_DIR="$withval"
27694
27695 ;;
27696esac
27697
27698
27699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27700$as_echo_n "checking for ANSI C header files... " >&6; }
27701if ${ac_cv_header_stdc+:} false; then :
27702 $as_echo_n "(cached) " >&6
27703else
27704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27705/* end confdefs.h. */
27706#include <stdlib.h>
27707#include <stdarg.h>
27708#include <string.h>
27709#include <float.h>
27710
27711int main (void)
27712{
27713
27714 ;
27715 return 0;
27716}
27717_ACEOF
27718if ac_fn_c_try_compile "$LINENO"; then :
27719 ac_cv_header_stdc=yes
27720else
27721 ac_cv_header_stdc=no
27722fi
27723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27724
27725if test $ac_cv_header_stdc = yes; then
27726 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27728/* end confdefs.h. */
27729#include <string.h>
27730
27731_ACEOF
27732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27733 $EGREP "memchr" >/dev/null 2>&1; then :
27734
27735else
27736 ac_cv_header_stdc=no
27737fi
27738rm -f conftest*
27739
27740fi
27741
27742if test $ac_cv_header_stdc = yes; then
27743 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27745/* end confdefs.h. */
27746#include <stdlib.h>
27747
27748_ACEOF
27749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27750 $EGREP "free" >/dev/null 2>&1; then :
27751
27752else
27753 ac_cv_header_stdc=no
27754fi
27755rm -f conftest*
27756
27757fi
27758
27759if test $ac_cv_header_stdc = yes; then
27760 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27761 if test "$cross_compiling" = yes; then :
27762 :
27763else
27764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27765/* end confdefs.h. */
27766#include <ctype.h>
27767#include <stdlib.h>
27768#if ((' ' & 0x0FF) == 0x020)
27769# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27770# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27771#else
27772# define ISLOWER(c) \
27773 (('a' <= (c) && (c) <= 'i') \
27774 || ('j' <= (c) && (c) <= 'r') \
27775 || ('s' <= (c) && (c) <= 'z'))
27776# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27777#endif
27778
27779#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27780int
27781main ()
27782{
27783 int i;
27784 for (i = 0; i < 256; i++)
27785 if (XOR (islower (i), ISLOWER (i))
27786 || toupper (i) != TOUPPER (i))
27787 return 2;
27788 return 0;
27789}
27790_ACEOF
27791if ac_fn_c_try_run "$LINENO"; then :
27792
27793else
27794 ac_cv_header_stdc=no
27795fi
27796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27797 conftest.$ac_objext conftest.beam conftest.$ac_ext
27798fi
27799
27800fi
27801fi
27802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27803$as_echo "$ac_cv_header_stdc" >&6; }
27804if test $ac_cv_header_stdc = yes; then
27805
27806$as_echo "#define STDC_HEADERS 1" >>confdefs.h
27807
27808fi
27809
27810
27811
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27813$as_echo_n "checking for malloc.h... " >&6; }
27814if ${curl_cv_header_malloc_h+:} false; then :
27815 $as_echo_n "(cached) " >&6
27816else
27817
27818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27819/* end confdefs.h. */
27820
27821
27822#include <malloc.h>
27823
27824int main (void)
27825{
27826
27827 void *p = malloc(10);
27828 void *q = calloc(10,10);
27829 free(p);
27830 free(q);
27831
27832 ;
27833 return 0;
27834}
27835
27836_ACEOF
27837if ac_fn_c_try_compile "$LINENO"; then :
27838
27839 curl_cv_header_malloc_h="yes"
27840
27841else
27842
27843 curl_cv_header_malloc_h="no"
27844
27845fi
27846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27847
27848fi
27849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
27850$as_echo "$curl_cv_header_malloc_h" >&6; }
27851 if test "$curl_cv_header_malloc_h" = "yes"; then
27852
27853cat >>confdefs.h <<_ACEOF
27854#define HAVE_MALLOC_H 1
27855_ACEOF
27856
27857 #
27858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27859/* end confdefs.h. */
27860
27861
27862#include <stdlib.h>
27863
27864int main (void)
27865{
27866
27867 void *p = malloc(10);
27868 void *q = calloc(10,10);
27869 free(p);
27870 free(q);
27871
27872 ;
27873 return 0;
27874}
27875
27876_ACEOF
27877if ac_fn_c_try_compile "$LINENO"; then :
27878
27879 curl_cv_need_header_malloc_h="no"
27880
27881else
27882
27883 curl_cv_need_header_malloc_h="yes"
27884
27885fi
27886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27887 #
27888 case "$curl_cv_need_header_malloc_h" in
27889 yes)
27890
27891cat >>confdefs.h <<_ACEOF
27892#define NEED_MALLOC_H 1
27893_ACEOF
27894
27895 ;;
27896 esac
27897 fi
27898
27899
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
27901$as_echo_n "checking for memory.h... " >&6; }
27902if ${curl_cv_header_memory_h+:} false; then :
27903 $as_echo_n "(cached) " >&6
27904else
27905
27906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27907/* end confdefs.h. */
27908
27909
27910#include <memory.h>
27911
27912int main (void)
27913{
27914
27915 void *p = malloc(10);
27916 void *q = calloc(10,10);
27917 free(p);
27918 free(q);
27919
27920 ;
27921 return 0;
27922}
27923
27924_ACEOF
27925if ac_fn_c_try_compile "$LINENO"; then :
27926
27927 curl_cv_header_memory_h="yes"
27928
27929else
27930
27931 curl_cv_header_memory_h="no"
27932
27933fi
27934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27935
27936fi
27937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
27938$as_echo "$curl_cv_header_memory_h" >&6; }
27939 if test "$curl_cv_header_memory_h" = "yes"; then
27940
27941cat >>confdefs.h <<_ACEOF
27942#define HAVE_MEMORY_H 1
27943_ACEOF
27944
27945 #
27946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27947/* end confdefs.h. */
27948
27949
27950#include <stdlib.h>
27951
27952int main (void)
27953{
27954
27955 void *p = malloc(10);
27956 void *q = calloc(10,10);
27957 free(p);
27958 free(q);
27959
27960 ;
27961 return 0;
27962}
27963
27964_ACEOF
27965if ac_fn_c_try_compile "$LINENO"; then :
27966
27967 curl_cv_need_header_memory_h="no"
27968
27969else
27970
27971 curl_cv_need_header_memory_h="yes"
27972
27973fi
27974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27975 #
27976 case "$curl_cv_need_header_memory_h" in
27977 yes)
27978
27979cat >>confdefs.h <<_ACEOF
27980#define NEED_MEMORY_H 1
27981_ACEOF
27982
27983 ;;
27984 esac
27985 fi
27986
27987
27988for ac_header in sys/types.h \
27989 sys/time.h \
27990 sys/select.h \
27991 sys/socket.h \
27992 sys/ioctl.h \
27993 sys/uio.h \
27994 assert.h \
27995 unistd.h \
27996 stdlib.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070027997 arpa/inet.h \
27998 net/if.h \
27999 netinet/in.h \
Elliott Hughes0128fe42018-02-27 14:57:55 -080028000 netinet/in6.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028001 sys/un.h \
Alex Deymo486467e2017-12-19 19:04:07 +010028002 linux/tcp.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028003 netinet/tcp.h \
28004 netdb.h \
28005 sys/sockio.h \
28006 sys/stat.h \
28007 sys/param.h \
28008 termios.h \
28009 termio.h \
28010 sgtty.h \
28011 fcntl.h \
28012 alloca.h \
28013 time.h \
28014 io.h \
28015 pwd.h \
28016 utime.h \
28017 sys/utime.h \
28018 sys/poll.h \
28019 poll.h \
28020 socket.h \
28021 sys/resource.h \
28022 libgen.h \
28023 locale.h \
28024 errno.h \
28025 stdbool.h \
28026 arpa/tftp.h \
28027 sys/filio.h \
28028 sys/wait.h \
28029 setjmp.h
28030do :
28031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28032ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28033#ifdef HAVE_SYS_TYPES_H
28034#include <sys/types.h>
28035#endif
28036#ifdef HAVE_SYS_TIME_H
28037#include <sys/time.h>
28038#endif
28039#ifdef HAVE_SYS_SELECT_H
28040#include <sys/select.h>
28041#endif
28042#ifdef HAVE_SYS_SOCKET_H
28043#include <sys/socket.h>
28044#endif
28045#ifdef HAVE_NETINET_IN_H
28046#include <netinet/in.h>
28047#endif
Elliott Hughes0128fe42018-02-27 14:57:55 -080028048#ifdef HAVE_NETINET_IN6_H
28049#include <netinet/in6.h>
28050#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070028051#ifdef HAVE_SYS_UN_H
28052#include <sys/un.h>
28053#endif
28054
28055
28056"
28057if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28058 cat >>confdefs.h <<_ACEOF
28059#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28060_ACEOF
28061
28062fi
28063
28064done
28065
28066
28067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28068$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28069if ${ac_cv_c_const+:} false; then :
28070 $as_echo_n "(cached) " >&6
28071else
28072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28073/* end confdefs.h. */
28074
28075int main (void)
28076{
28077
28078#ifndef __cplusplus
28079 /* Ultrix mips cc rejects this sort of thing. */
28080 typedef int charset[2];
28081 const charset cs = { 0, 0 };
28082 /* SunOS 4.1.1 cc rejects this. */
28083 char const *const *pcpcc;
28084 char **ppc;
28085 /* NEC SVR4.0.2 mips cc rejects this. */
28086 struct point {int x, y;};
28087 static struct point const zero = {0,0};
28088 /* AIX XL C 1.02.0.0 rejects this.
28089 It does not let you subtract one const X* pointer from another in
28090 an arm of an if-expression whose if-part is not a constant
28091 expression */
28092 const char *g = "string";
28093 pcpcc = &g + (g ? g-g : 0);
28094 /* HPUX 7.0 cc rejects these. */
28095 ++pcpcc;
28096 ppc = (char**) pcpcc;
28097 pcpcc = (char const *const *) ppc;
28098 { /* SCO 3.2v4 cc rejects this sort of thing. */
28099 char tx;
28100 char *t = &tx;
28101 char const *s = 0 ? (char *) 0 : (char const *) 0;
28102
28103 *t++ = 0;
28104 if (s) return 0;
28105 }
28106 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28107 int x[] = {25, 17};
28108 const int *foo = &x[0];
28109 ++foo;
28110 }
28111 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28112 typedef const int *iptr;
28113 iptr p = 0;
28114 ++p;
28115 }
28116 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28117 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28118 struct s { int j; const int *ap[3]; } bx;
28119 struct s *b = &bx; b->j = 5;
28120 }
28121 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28122 const int foo = 10;
28123 if (!foo) return 0;
28124 }
28125 return !cs[0] && !zero.x;
28126#endif
28127
28128 ;
28129 return 0;
28130}
28131_ACEOF
28132if ac_fn_c_try_compile "$LINENO"; then :
28133 ac_cv_c_const=yes
28134else
28135 ac_cv_c_const=no
28136fi
28137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28138fi
28139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28140$as_echo "$ac_cv_c_const" >&6; }
28141if test $ac_cv_c_const = no; then
28142
28143$as_echo "#define const /**/" >>confdefs.h
28144
28145fi
28146
28147
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28149$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28150if ${curl_cv_variadic_macros_c99+:} false; then :
28151 $as_echo_n "(cached) " >&6
28152else
28153
28154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28155/* end confdefs.h. */
28156
28157
28158#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28159#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28160 int fun3(int arg1, int arg2, int arg3);
28161 int fun2(int arg1, int arg2);
28162 int fun3(int arg1, int arg2, int arg3)
28163 { return arg1 + arg2 + arg3; }
28164 int fun2(int arg1, int arg2)
28165 { return arg1 + arg2; }
28166
28167int main (void)
28168{
28169
28170 int res3 = c99_vmacro3(1, 2, 3);
28171 int res2 = c99_vmacro2(1, 2);
28172
28173 ;
28174 return 0;
28175}
28176
28177_ACEOF
28178if ac_fn_c_try_compile "$LINENO"; then :
28179
28180 curl_cv_variadic_macros_c99="yes"
28181
28182else
28183
28184 curl_cv_variadic_macros_c99="no"
28185
28186fi
28187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28188
28189fi
28190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28191$as_echo "$curl_cv_variadic_macros_c99" >&6; }
28192 case "$curl_cv_variadic_macros_c99" in
28193 yes)
28194
28195cat >>confdefs.h <<_ACEOF
28196#define HAVE_VARIADIC_MACROS_C99 1
28197_ACEOF
28198
28199 ;;
28200 esac
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28202$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28203if ${curl_cv_variadic_macros_gcc+:} false; then :
28204 $as_echo_n "(cached) " >&6
28205else
28206
28207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28208/* end confdefs.h. */
28209
28210
28211#define gcc_vmacro3(first, args...) fun3(first, args)
28212#define gcc_vmacro2(first, args...) fun2(first, args)
28213 int fun3(int arg1, int arg2, int arg3);
28214 int fun2(int arg1, int arg2);
28215 int fun3(int arg1, int arg2, int arg3)
28216 { return arg1 + arg2 + arg3; }
28217 int fun2(int arg1, int arg2)
28218 { return arg1 + arg2; }
28219
28220int main (void)
28221{
28222
28223 int res3 = gcc_vmacro3(1, 2, 3);
28224 int res2 = gcc_vmacro2(1, 2);
28225
28226 ;
28227 return 0;
28228}
28229
28230_ACEOF
28231if ac_fn_c_try_compile "$LINENO"; then :
28232
28233 curl_cv_variadic_macros_gcc="yes"
28234
28235else
28236
28237 curl_cv_variadic_macros_gcc="no"
28238
28239fi
28240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28241
28242fi
28243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28244$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28245 case "$curl_cv_variadic_macros_gcc" in
28246 yes)
28247
28248cat >>confdefs.h <<_ACEOF
28249#define HAVE_VARIADIC_MACROS_GCC 1
28250_ACEOF
28251
28252 ;;
28253 esac
28254
28255ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28256if test "x$ac_cv_type_size_t" = xyes; then :
28257
28258else
28259
28260cat >>confdefs.h <<_ACEOF
28261#define size_t unsigned int
28262_ACEOF
28263
28264fi
28265
28266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28267$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28268if ${ac_cv_header_time+:} false; then :
28269 $as_echo_n "(cached) " >&6
28270else
28271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28272/* end confdefs.h. */
28273#include <sys/types.h>
28274#include <sys/time.h>
28275#include <time.h>
28276
28277int main (void)
28278{
28279if ((struct tm *) 0)
28280return 0;
28281 ;
28282 return 0;
28283}
28284_ACEOF
28285if ac_fn_c_try_compile "$LINENO"; then :
28286 ac_cv_header_time=yes
28287else
28288 ac_cv_header_time=no
28289fi
28290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28291fi
28292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28293$as_echo "$ac_cv_header_time" >&6; }
28294if test $ac_cv_header_time = yes; then
28295
28296$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28297
28298fi
28299
28300
28301 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28302do :
28303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28304ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28305if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28306 cat >>confdefs.h <<_ACEOF
28307#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28308_ACEOF
28309
28310fi
28311
28312done
28313
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28315$as_echo_n "checking for struct timeval... " >&6; }
28316if ${curl_cv_struct_timeval+:} false; then :
28317 $as_echo_n "(cached) " >&6
28318else
28319
28320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28321/* end confdefs.h. */
28322
28323
28324#undef inline
28325#ifdef HAVE_WINDOWS_H
28326#ifndef WIN32_LEAN_AND_MEAN
28327#define WIN32_LEAN_AND_MEAN
28328#endif
28329#include <windows.h>
28330#ifdef HAVE_WINSOCK2_H
28331#include <winsock2.h>
28332#else
28333#ifdef HAVE_WINSOCK_H
28334#include <winsock.h>
28335#endif
28336#endif
28337#endif
28338#ifdef HAVE_SYS_TYPES_H
28339#include <sys/types.h>
28340#endif
28341#ifdef HAVE_SYS_TIME_H
28342#include <sys/time.h>
28343#ifdef TIME_WITH_SYS_TIME
28344#include <time.h>
28345#endif
28346#else
28347#ifdef HAVE_TIME_H
28348#include <time.h>
28349#endif
28350#endif
28351#ifdef HAVE_SYS_SOCKET_H
28352#include <sys/socket.h>
28353#endif
28354
28355int main (void)
28356{
28357
28358 struct timeval ts;
28359 ts.tv_sec = 0;
28360 ts.tv_usec = 0;
28361
28362 ;
28363 return 0;
28364}
28365
28366_ACEOF
28367if ac_fn_c_try_compile "$LINENO"; then :
28368
28369 curl_cv_struct_timeval="yes"
28370
28371else
28372
28373 curl_cv_struct_timeval="no"
28374
28375fi
28376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28377
28378fi
28379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28380$as_echo "$curl_cv_struct_timeval" >&6; }
28381 case "$curl_cv_struct_timeval" in
28382 yes)
28383
28384cat >>confdefs.h <<_ACEOF
28385#define HAVE_STRUCT_TIMEVAL 1
28386_ACEOF
28387
28388 ;;
28389 esac
28390
28391
28392
28393 if test "x$cross_compiling" != xyes; then
28394
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28396$as_echo_n "checking run-time libs availability... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070028397
28398
28399 old=$LD_LIBRARY_PATH
28400 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28401 export LD_LIBRARY_PATH
28402 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070028403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28405as_fn_error $? "cannot run test program while cross compiling
28406See \`config.log' for more details" "$LINENO" 5; }
28407else
28408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28409/* end confdefs.h. */
28410
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070028411int main()
Elliott Hughes82be86d2017-09-20 17:00:17 -070028412{
28413 return 0;
28414}
28415
28416_ACEOF
28417if ac_fn_c_try_run "$LINENO"; then :
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28419$as_echo "fine" >&6; }
28420else
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28422$as_echo "failed" >&6; }
28423 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28424
28425fi
28426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28427 conftest.$ac_objext conftest.beam conftest.$ac_ext
28428fi
28429
Elliott Hughes72d948d2018-08-03 14:37:21 -070028430 LD_LIBRARY_PATH=$old # restore
28431
Elliott Hughes82be86d2017-09-20 17:00:17 -070028432
28433 fi
28434
28435
Elliott Hughes82be86d2017-09-20 17:00:17 -070028436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28437$as_echo_n "checking size of size_t... " >&6; }
28438if ${ac_cv_sizeof_size_t+:} false; then :
28439 $as_echo_n "(cached) " >&6
28440else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028441 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28443/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028444
Elliott Hughes72d948d2018-08-03 14:37:21 -070028445#include <sys/types.h>
28446
28447
28448int main (void)
28449{
28450switch (0) case 0: case (sizeof (size_t) == $ac_size):;
28451 ;
28452 return 0;
28453}
28454_ACEOF
28455if ac_fn_c_try_compile "$LINENO"; then :
28456 ac_cv_sizeof_size_t=$ac_size
28457fi
28458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28459 if test x$ac_cv_sizeof_size_t != x ; then break; fi
28460done
28461
Elliott Hughes82be86d2017-09-20 17:00:17 -070028462fi
28463
Elliott Hughes72d948d2018-08-03 14:37:21 -070028464if test x$ac_cv_sizeof_size_t = x ; then
28465 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028466fi
28467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28468$as_echo "$ac_cv_sizeof_size_t" >&6; }
28469
Elliott Hughes82be86d2017-09-20 17:00:17 -070028470cat >>confdefs.h <<_ACEOF
28471#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28472_ACEOF
28473
28474
Elliott Hughes82be86d2017-09-20 17:00:17 -070028475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28476$as_echo_n "checking size of long... " >&6; }
28477if ${ac_cv_sizeof_long+:} false; then :
28478 $as_echo_n "(cached) " >&6
28479else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028480 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28482/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028483
Elliott Hughes72d948d2018-08-03 14:37:21 -070028484#include <sys/types.h>
28485
28486
28487int main (void)
28488{
28489switch (0) case 0: case (sizeof (long) == $ac_size):;
28490 ;
28491 return 0;
28492}
28493_ACEOF
28494if ac_fn_c_try_compile "$LINENO"; then :
28495 ac_cv_sizeof_long=$ac_size
28496fi
28497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28498 if test x$ac_cv_sizeof_long != x ; then break; fi
28499done
28500
Elliott Hughes82be86d2017-09-20 17:00:17 -070028501fi
28502
Elliott Hughes72d948d2018-08-03 14:37:21 -070028503if test x$ac_cv_sizeof_long = x ; then
28504 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028505fi
28506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28507$as_echo "$ac_cv_sizeof_long" >&6; }
28508
Elliott Hughes82be86d2017-09-20 17:00:17 -070028509cat >>confdefs.h <<_ACEOF
28510#define SIZEOF_LONG $ac_cv_sizeof_long
28511_ACEOF
28512
28513
Elliott Hughes82be86d2017-09-20 17:00:17 -070028514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28515$as_echo_n "checking size of int... " >&6; }
28516if ${ac_cv_sizeof_int+:} false; then :
28517 $as_echo_n "(cached) " >&6
28518else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028519 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28521/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028522
Elliott Hughes72d948d2018-08-03 14:37:21 -070028523#include <sys/types.h>
28524
28525
28526int main (void)
28527{
28528switch (0) case 0: case (sizeof (int) == $ac_size):;
28529 ;
28530 return 0;
28531}
28532_ACEOF
28533if ac_fn_c_try_compile "$LINENO"; then :
28534 ac_cv_sizeof_int=$ac_size
28535fi
28536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28537 if test x$ac_cv_sizeof_int != x ; then break; fi
28538done
28539
Elliott Hughes82be86d2017-09-20 17:00:17 -070028540fi
28541
Elliott Hughes72d948d2018-08-03 14:37:21 -070028542if test x$ac_cv_sizeof_int = x ; then
28543 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028544fi
28545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28546$as_echo "$ac_cv_sizeof_int" >&6; }
28547
Elliott Hughes82be86d2017-09-20 17:00:17 -070028548cat >>confdefs.h <<_ACEOF
28549#define SIZEOF_INT $ac_cv_sizeof_int
28550_ACEOF
28551
28552
Elliott Hughes82be86d2017-09-20 17:00:17 -070028553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28554$as_echo_n "checking size of short... " >&6; }
28555if ${ac_cv_sizeof_short+:} false; then :
28556 $as_echo_n "(cached) " >&6
28557else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028558 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28560/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028561
Elliott Hughes72d948d2018-08-03 14:37:21 -070028562#include <sys/types.h>
28563
28564
28565int main (void)
28566{
28567switch (0) case 0: case (sizeof (short) == $ac_size):;
28568 ;
28569 return 0;
28570}
28571_ACEOF
28572if ac_fn_c_try_compile "$LINENO"; then :
28573 ac_cv_sizeof_short=$ac_size
28574fi
28575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28576 if test x$ac_cv_sizeof_short != x ; then break; fi
28577done
28578
Elliott Hughes82be86d2017-09-20 17:00:17 -070028579fi
28580
Elliott Hughes72d948d2018-08-03 14:37:21 -070028581if test x$ac_cv_sizeof_short = x ; then
28582 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028583fi
28584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28585$as_echo "$ac_cv_sizeof_short" >&6; }
28586
Elliott Hughes82be86d2017-09-20 17:00:17 -070028587cat >>confdefs.h <<_ACEOF
28588#define SIZEOF_SHORT $ac_cv_sizeof_short
28589_ACEOF
28590
28591
Elliott Hughes82be86d2017-09-20 17:00:17 -070028592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28593$as_echo_n "checking size of time_t... " >&6; }
28594if ${ac_cv_sizeof_time_t+:} false; then :
28595 $as_echo_n "(cached) " >&6
28596else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028597 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28599/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028600
Elliott Hughes72d948d2018-08-03 14:37:21 -070028601#include <sys/types.h>
28602
28603
28604int main (void)
28605{
28606switch (0) case 0: case (sizeof (time_t) == $ac_size):;
28607 ;
28608 return 0;
28609}
28610_ACEOF
28611if ac_fn_c_try_compile "$LINENO"; then :
28612 ac_cv_sizeof_time_t=$ac_size
28613fi
28614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28615 if test x$ac_cv_sizeof_time_t != x ; then break; fi
28616done
28617
Elliott Hughes82be86d2017-09-20 17:00:17 -070028618fi
28619
Elliott Hughes72d948d2018-08-03 14:37:21 -070028620if test x$ac_cv_sizeof_time_t = x ; then
28621 as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028622fi
28623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28624$as_echo "$ac_cv_sizeof_time_t" >&6; }
28625
Elliott Hughes82be86d2017-09-20 17:00:17 -070028626cat >>confdefs.h <<_ACEOF
28627#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28628_ACEOF
28629
28630
Elliott Hughes82be86d2017-09-20 17:00:17 -070028631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28632$as_echo_n "checking size of off_t... " >&6; }
28633if ${ac_cv_sizeof_off_t+:} false; then :
28634 $as_echo_n "(cached) " >&6
28635else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028636 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28638/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028639
Elliott Hughes72d948d2018-08-03 14:37:21 -070028640#include <sys/types.h>
28641
28642
28643int main (void)
28644{
28645switch (0) case 0: case (sizeof (off_t) == $ac_size):;
28646 ;
28647 return 0;
28648}
28649_ACEOF
28650if ac_fn_c_try_compile "$LINENO"; then :
28651 ac_cv_sizeof_off_t=$ac_size
28652fi
28653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28654 if test x$ac_cv_sizeof_off_t != x ; then break; fi
28655done
28656
Elliott Hughes82be86d2017-09-20 17:00:17 -070028657fi
28658
Elliott Hughes72d948d2018-08-03 14:37:21 -070028659if test x$ac_cv_sizeof_off_t = x ; then
28660 as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028661fi
28662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28663$as_echo "$ac_cv_sizeof_off_t" >&6; }
28664
Elliott Hughes82be86d2017-09-20 17:00:17 -070028665cat >>confdefs.h <<_ACEOF
28666#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28667_ACEOF
28668
28669
28670
Alex Deymo486467e2017-12-19 19:04:07 +010028671o=$CPPFLAGS
28672CPPFLAGS="-I$srcdir/include $CPPFLAGS"
Alex Deymo486467e2017-12-19 19:04:07 +010028673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28674$as_echo_n "checking size of curl_off_t... " >&6; }
28675if ${ac_cv_sizeof_curl_off_t+:} false; then :
28676 $as_echo_n "(cached) " >&6
28677else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028678 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28680/* end confdefs.h. */
28681
28682#include <sys/types.h>
28683
Alex Deymo486467e2017-12-19 19:04:07 +010028684#include <curl/system.h>
28685
Alex Deymo486467e2017-12-19 19:04:07 +010028686
Elliott Hughes72d948d2018-08-03 14:37:21 -070028687int main (void)
28688{
28689switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
28690 ;
28691 return 0;
28692}
28693_ACEOF
28694if ac_fn_c_try_compile "$LINENO"; then :
28695 ac_cv_sizeof_curl_off_t=$ac_size
28696fi
28697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28698 if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
28699done
28700
Elliott Hughes82be86d2017-09-20 17:00:17 -070028701fi
28702
Elliott Hughes72d948d2018-08-03 14:37:21 -070028703if test x$ac_cv_sizeof_curl_off_t = x ; then
28704 as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
Alex Deymo486467e2017-12-19 19:04:07 +010028705fi
28706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28707$as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28708
Alex Deymo486467e2017-12-19 19:04:07 +010028709cat >>confdefs.h <<_ACEOF
28710#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28711_ACEOF
28712
28713
28714CPPFLAGS=$o
Elliott Hughes82be86d2017-09-20 17:00:17 -070028715
28716ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28717if test "x$ac_cv_type_long_long" = xyes; then :
28718
28719$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28720
28721 longlong="yes"
28722
28723fi
28724
28725
28726if test "xyes" = "x$longlong"; then
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28728$as_echo_n "checking if numberLL works... " >&6; }
28729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28730/* end confdefs.h. */
28731
28732
28733
28734int main (void)
28735{
28736
28737 long long val = 1000LL;
28738
28739 ;
28740 return 0;
28741}
28742
28743_ACEOF
28744if ac_fn_c_try_compile "$LINENO"; then :
28745
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28747$as_echo "yes" >&6; }
28748
28749$as_echo "#define HAVE_LL 1" >>confdefs.h
28750
28751
28752else
28753
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28755$as_echo "no" >&6; }
28756
28757fi
28758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28759fi
28760
28761
28762# check for ssize_t
28763ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28764if test "x$ac_cv_type_ssize_t" = xyes; then :
28765
28766else
28767
28768$as_echo "#define ssize_t int" >>confdefs.h
28769
28770fi
28771
28772
28773# check for bool type
28774ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28775#ifdef HAVE_SYS_TYPES_H
28776#include <sys/types.h>
28777#endif
28778#ifdef HAVE_STDBOOL_H
28779#include <stdbool.h>
28780#endif
28781
28782"
28783if test "x$ac_cv_type_bool" = xyes; then :
28784
28785
28786$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28787
28788
28789fi
28790
28791
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028792# check for sa_family_t
28793ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
28794#ifdef HAVE_SYS_SOCKET_H
28795#include <sys/socket.h>
28796#endif
28797
28798"
28799if test "x$ac_cv_type_sa_family_t" = xyes; then :
28800
28801$as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
28802
28803else
28804
28805 # The windows name?
28806 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
28807#ifdef HAVE_SYS_SOCKET_H
28808#include <sys/socket.h>
28809#endif
28810
28811"
28812if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
28813
28814$as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
28815
28816else
28817
28818$as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
28819
28820fi
28821
28822
28823fi
28824
28825
Elliott Hughescac39802018-04-27 16:19:43 -070028826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
28827$as_echo_n "checking if time_t is unsigned... " >&6; }
Elliott Hughescac39802018-04-27 16:19:43 -070028828
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028829
28830 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070028831 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28832 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028833 if test "$cross_compiling" = yes; then :
Elliott Hughescac39802018-04-27 16:19:43 -070028834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28835$as_echo "no" >&6; }
28836
28837else
28838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28839/* end confdefs.h. */
28840
Elliott Hughescac39802018-04-27 16:19:43 -070028841 #include <time.h>
28842 #include <limits.h>
28843 time_t t = -1;
28844 return (t > 0);
28845
28846_ACEOF
28847if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughescac39802018-04-27 16:19:43 -070028848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28849$as_echo "yes" >&6; }
28850
28851$as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
28852
28853
28854else
Elliott Hughescac39802018-04-27 16:19:43 -070028855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28856$as_echo "no" >&6; }
28857
28858fi
28859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28860 conftest.$ac_objext conftest.beam conftest.$ac_ext
28861fi
28862
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028863 LD_LIBRARY_PATH=$old # restore
28864
Elliott Hughescac39802018-04-27 16:19:43 -070028865
Elliott Hughes82be86d2017-09-20 17:00:17 -070028866
Elliott Hughes82be86d2017-09-20 17:00:17 -070028867curl_includes_poll="\
28868/* includes start */
28869#ifdef HAVE_SYS_TYPES_H
28870# include <sys/types.h>
28871#endif
28872#ifdef HAVE_POLL_H
28873# include <poll.h>
28874#endif
28875#ifdef HAVE_SYS_POLL_H
28876# include <sys/poll.h>
28877#endif
28878/* includes end */"
28879 for ac_header in sys/types.h poll.h sys/poll.h
28880do :
28881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28882ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
28883"
28884if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28885 cat >>confdefs.h <<_ACEOF
28886#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28887_ACEOF
28888
28889fi
28890
28891done
28892
28893
28894
28895 #
28896 tst_poll_events_macro_defined="unknown"
28897 #
28898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28899/* end confdefs.h. */
28900
28901
28902 $curl_includes_poll
28903
28904int main (void)
28905{
28906
28907#if defined(events) || defined(revents)
28908 return 0;
28909#else
28910 force compilation error
28911#endif
28912
28913 ;
28914 return 0;
28915}
28916
28917_ACEOF
28918if ac_fn_c_try_compile "$LINENO"; then :
28919
28920 tst_poll_events_macro_defined="yes"
28921
28922else
28923
28924 tst_poll_events_macro_defined="no"
28925
28926fi
28927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28928 #
28929 if test "$tst_poll_events_macro_defined" = "yes"; then
28930 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
28931
28932cat >>confdefs.h <<_EOF
28933#define CURL_PULL_SYS_POLL_H 1
28934_EOF
28935
28936 fi
28937 fi
28938 #
28939
28940
28941
28942 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
28943#undef inline
28944#ifdef HAVE_WINDOWS_H
28945#ifndef WIN32_LEAN_AND_MEAN
28946#define WIN32_LEAN_AND_MEAN
28947#endif
28948#include <windows.h>
28949#ifdef HAVE_WINSOCK2_H
28950#include <winsock2.h>
28951#else
28952#ifdef HAVE_WINSOCK_H
28953#include <winsock.h>
28954#endif
28955#endif
28956#else
28957#ifdef HAVE_SYS_TYPES_H
28958#include <sys/types.h>
28959#endif
28960#ifdef HAVE_SYS_SOCKET_H
28961#include <sys/socket.h>
28962#endif
28963#ifdef HAVE_NETINET_IN_H
28964#include <netinet/in.h>
28965#endif
28966#ifdef HAVE_ARPA_INET_H
28967#include <arpa/inet.h>
28968#endif
28969#endif
28970
28971"
28972if test "x$ac_cv_type_in_addr_t" = xyes; then :
28973
28974else
28975
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
28977$as_echo_n "checking for in_addr_t equivalent... " >&6; }
28978if ${curl_cv_in_addr_t_equiv+:} false; then :
28979 $as_echo_n "(cached) " >&6
28980else
28981
28982 curl_cv_in_addr_t_equiv="unknown"
28983 for t in "unsigned long" int size_t unsigned long; do
28984 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
28985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28986/* end confdefs.h. */
28987
28988
28989#undef inline
28990#ifdef HAVE_WINDOWS_H
28991#ifndef WIN32_LEAN_AND_MEAN
28992#define WIN32_LEAN_AND_MEAN
28993#endif
28994#include <windows.h>
28995#ifdef HAVE_WINSOCK2_H
28996#include <winsock2.h>
28997#else
28998#ifdef HAVE_WINSOCK_H
28999#include <winsock.h>
29000#endif
29001#endif
29002#else
29003#ifdef HAVE_SYS_TYPES_H
29004#include <sys/types.h>
29005#endif
29006#ifdef HAVE_SYS_SOCKET_H
29007#include <sys/socket.h>
29008#endif
29009#ifdef HAVE_NETINET_IN_H
29010#include <netinet/in.h>
29011#endif
29012#ifdef HAVE_ARPA_INET_H
29013#include <arpa/inet.h>
29014#endif
29015#endif
29016
29017int main (void)
29018{
29019
29020 $t data = inet_addr ("1.2.3.4");
29021
29022 ;
29023 return 0;
29024}
29025
29026_ACEOF
29027if ac_fn_c_try_link "$LINENO"; then :
29028
29029 curl_cv_in_addr_t_equiv="$t"
29030
29031fi
29032rm -f core conftest.err conftest.$ac_objext \
29033 conftest$ac_exeext conftest.$ac_ext
29034 fi
29035 done
29036
29037fi
29038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29039$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29040 case "$curl_cv_in_addr_t_equiv" in
29041 unknown)
29042 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29043 ;;
29044 *)
29045
29046cat >>confdefs.h <<_ACEOF
29047#define in_addr_t $curl_cv_in_addr_t_equiv
29048_ACEOF
29049
29050 ;;
29051 esac
29052
29053fi
29054
29055
29056
29057
29058 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29059#undef inline
29060#ifdef HAVE_WINDOWS_H
29061#ifndef WIN32_LEAN_AND_MEAN
29062#define WIN32_LEAN_AND_MEAN
29063#endif
29064#include <windows.h>
29065#ifdef HAVE_WINSOCK2_H
29066#include <winsock2.h>
29067#endif
29068#else
29069#ifdef HAVE_SYS_TYPES_H
29070#include <sys/types.h>
29071#endif
29072#ifdef HAVE_SYS_SOCKET_H
29073#include <sys/socket.h>
29074#endif
29075#ifdef HAVE_NETINET_IN_H
29076#include <netinet/in.h>
29077#endif
29078#ifdef HAVE_ARPA_INET_H
29079#include <arpa/inet.h>
29080#endif
29081#endif
29082
29083"
29084if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29085
29086$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29087
29088fi
29089
29090
29091
29092
29093 for ac_header in signal.h
29094do :
29095 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29096if test "x$ac_cv_header_signal_h" = xyes; then :
29097 cat >>confdefs.h <<_ACEOF
29098#define HAVE_SIGNAL_H 1
29099_ACEOF
29100
29101fi
29102
29103done
29104
29105 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29106#ifdef HAVE_SIGNAL_H
29107#include <signal.h>
29108#endif
29109
29110"
29111if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29112
29113
29114$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29115
29116
29117fi
29118
29119 case "$ac_cv_type_sig_atomic_t" in
29120 yes)
29121 #
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29123$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29125/* end confdefs.h. */
29126
29127
29128#ifdef HAVE_SIGNAL_H
29129#include <signal.h>
29130#endif
29131
29132int main (void)
29133{
29134
29135 static volatile sig_atomic_t dummy = 0;
29136
29137 ;
29138 return 0;
29139}
29140
29141_ACEOF
29142if ac_fn_c_try_link "$LINENO"; then :
29143
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29145$as_echo "no" >&6; }
29146 curl_cv_sig_atomic_t_volatile="no"
29147
29148else
29149
29150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29151$as_echo "yes" >&6; }
29152 curl_cv_sig_atomic_t_volatile="yes"
29153
29154fi
29155rm -f core conftest.err conftest.$ac_objext \
29156 conftest$ac_exeext conftest.$ac_ext
29157 #
29158 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29159
29160$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29161
29162 fi
29163 ;;
29164 esac
29165
29166
29167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29168$as_echo_n "checking return type of signal handlers... " >&6; }
29169if ${ac_cv_type_signal+:} false; then :
29170 $as_echo_n "(cached) " >&6
29171else
29172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29173/* end confdefs.h. */
29174#include <sys/types.h>
29175#include <signal.h>
29176
29177int main (void)
29178{
29179return *(signal (0, 0)) (0) == 1;
29180 ;
29181 return 0;
29182}
29183_ACEOF
29184if ac_fn_c_try_compile "$LINENO"; then :
29185 ac_cv_type_signal=int
29186else
29187 ac_cv_type_signal=void
29188fi
29189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29190fi
29191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29192$as_echo "$ac_cv_type_signal" >&6; }
29193
29194cat >>confdefs.h <<_ACEOF
29195#define RETSIGTYPE $ac_cv_type_signal
29196_ACEOF
29197
29198
29199
29200
29201 for ac_header in sys/select.h sys/socket.h
29202do :
29203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29204ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29205if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29206 cat >>confdefs.h <<_ACEOF
29207#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29208_ACEOF
29209
29210fi
29211
29212done
29213
29214 #
29215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29216$as_echo_n "checking for select... " >&6; }
29217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29218/* end confdefs.h. */
29219
29220
29221#undef inline
29222#ifdef HAVE_WINDOWS_H
29223#ifndef WIN32_LEAN_AND_MEAN
29224#define WIN32_LEAN_AND_MEAN
29225#endif
29226#include <windows.h>
29227#ifdef HAVE_WINSOCK2_H
29228#include <winsock2.h>
29229#else
29230#ifdef HAVE_WINSOCK_H
29231#include <winsock.h>
29232#endif
29233#endif
29234#endif
29235#ifdef HAVE_SYS_TYPES_H
29236#include <sys/types.h>
29237#endif
29238#ifdef HAVE_SYS_TIME_H
29239#include <sys/time.h>
29240#ifdef TIME_WITH_SYS_TIME
29241#include <time.h>
29242#endif
29243#else
29244#ifdef HAVE_TIME_H
29245#include <time.h>
29246#endif
29247#endif
29248#ifndef HAVE_WINDOWS_H
29249#ifdef HAVE_SYS_SELECT_H
29250#include <sys/select.h>
29251#endif
29252#ifdef HAVE_SYS_SOCKET_H
29253#include <sys/socket.h>
29254#endif
29255#endif
29256
29257int main (void)
29258{
29259
29260 select(0, 0, 0, 0, 0);
29261
29262 ;
29263 return 0;
29264}
29265
29266_ACEOF
29267if ac_fn_c_try_link "$LINENO"; then :
29268
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29270$as_echo "yes" >&6; }
29271 curl_cv_select="yes"
29272
29273else
29274
29275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29276$as_echo "no" >&6; }
29277 curl_cv_select="no"
29278
29279fi
29280rm -f core conftest.err conftest.$ac_objext \
29281 conftest$ac_exeext conftest.$ac_ext
29282 #
29283 if test "$curl_cv_select" = "yes"; then
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29285$as_echo_n "checking types of args and return type for select... " >&6; }
29286if ${curl_cv_func_select_args+:} false; then :
29287 $as_echo_n "(cached) " >&6
29288else
29289
29290 curl_cv_func_select_args="unknown"
29291 for sel_retv in 'int' 'ssize_t'; do
29292 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29293 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29294 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29295 if test "$curl_cv_func_select_args" = "unknown"; then
29296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29297/* end confdefs.h. */
29298
29299
29300#undef inline
29301#ifdef HAVE_WINDOWS_H
29302#ifndef WIN32_LEAN_AND_MEAN
29303#define WIN32_LEAN_AND_MEAN
29304#endif
29305#include <windows.h>
29306#ifdef HAVE_WINSOCK2_H
29307#include <winsock2.h>
29308#else
29309#ifdef HAVE_WINSOCK_H
29310#include <winsock.h>
29311#endif
29312#endif
29313#define SELECTCALLCONV PASCAL
29314#endif
29315#ifdef HAVE_SYS_TYPES_H
29316#include <sys/types.h>
29317#endif
29318#ifdef HAVE_SYS_TIME_H
29319#include <sys/time.h>
29320#ifdef TIME_WITH_SYS_TIME
29321#include <time.h>
29322#endif
29323#else
29324#ifdef HAVE_TIME_H
29325#include <time.h>
29326#endif
29327#endif
29328#ifndef HAVE_WINDOWS_H
29329#ifdef HAVE_SYS_SELECT_H
29330#include <sys/select.h>
29331#endif
29332#ifdef HAVE_SYS_SOCKET_H
29333#include <sys/socket.h>
29334#endif
29335#define SELECTCALLCONV
29336#endif
29337#ifndef HAVE_STRUCT_TIMEVAL
29338 struct timeval {
29339 long tv_sec;
29340 long tv_usec;
29341 };
29342#endif
29343 extern $sel_retv SELECTCALLCONV
Haibo Huang51d9d882019-02-06 01:36:06 -080029344 select($sel_arg1,
Elliott Hughes82be86d2017-09-20 17:00:17 -070029345 $sel_arg234,
29346 $sel_arg234,
29347 $sel_arg234,
29348 $sel_arg5);
29349
29350int main (void)
29351{
29352
29353 $sel_arg1 nfds=0;
29354 $sel_arg234 rfds=0;
29355 $sel_arg234 wfds=0;
29356 $sel_arg234 efds=0;
29357 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29358
29359 ;
29360 return 0;
29361}
29362
29363_ACEOF
29364if ac_fn_c_try_compile "$LINENO"; then :
29365
29366 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29367
29368fi
29369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29370 fi
29371 done
29372 done
29373 done
29374 done
29375
29376fi
29377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29378$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29379 if test "$curl_cv_func_select_args" = "unknown"; then
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29381$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29383$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29384 else
29385 select_prev_IFS=$IFS; IFS=','
29386 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29387 IFS=$select_prev_IFS
29388 shift
29389 #
29390 sel_qual_type_arg5=$3
29391 #
29392
29393cat >>confdefs.h <<_ACEOF
29394#define SELECT_TYPE_ARG1 $1
29395_ACEOF
29396
29397
29398cat >>confdefs.h <<_ACEOF
29399#define SELECT_TYPE_ARG234 $2
29400_ACEOF
29401
29402
29403cat >>confdefs.h <<_ACEOF
29404#define SELECT_TYPE_RETV $4
29405_ACEOF
29406
29407 #
29408 prev_sh_opts=$-
29409 #
29410 case $prev_sh_opts in
29411 *f*)
29412 ;;
29413 *)
29414 set -f
29415 ;;
29416 esac
29417 #
29418 case "$sel_qual_type_arg5" in
29419 const*)
29420 sel_qual_arg5=const
29421 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29422 ;;
29423 *)
29424 sel_qual_arg5=
29425 sel_type_arg5=$sel_qual_type_arg5
29426 ;;
29427 esac
29428 #
29429
29430cat >>confdefs.h <<_ACEOF
29431#define SELECT_QUAL_ARG5 $sel_qual_arg5
29432_ACEOF
29433
29434
29435cat >>confdefs.h <<_ACEOF
29436#define SELECT_TYPE_ARG5 $sel_type_arg5
29437_ACEOF
29438
29439 #
29440 case $prev_sh_opts in
29441 *f*)
29442 ;;
29443 *)
29444 set +f
29445 ;;
29446 esac
29447 #
29448
29449cat >>confdefs.h <<_ACEOF
29450#define HAVE_SELECT 1
29451_ACEOF
29452
29453 curl_cv_func_select="yes"
29454 fi
29455 fi
29456
29457
29458
29459 for ac_header in sys/types.h sys/socket.h
29460do :
29461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29462ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29463if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29464 cat >>confdefs.h <<_ACEOF
29465#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29466_ACEOF
29467
29468fi
29469
29470done
29471
29472 #
29473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29474$as_echo_n "checking for recv... " >&6; }
29475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29476/* end confdefs.h. */
29477
29478
29479#undef inline
29480#ifdef HAVE_WINDOWS_H
29481#ifndef WIN32_LEAN_AND_MEAN
29482#define WIN32_LEAN_AND_MEAN
29483#endif
29484#include <windows.h>
29485#ifdef HAVE_WINSOCK2_H
29486#include <winsock2.h>
29487#else
29488#ifdef HAVE_WINSOCK_H
29489#include <winsock.h>
29490#endif
29491#endif
29492#else
29493#ifdef HAVE_SYS_TYPES_H
29494#include <sys/types.h>
29495#endif
29496#ifdef HAVE_SYS_SOCKET_H
29497#include <sys/socket.h>
29498#endif
29499#endif
29500
29501int main (void)
29502{
29503
29504 recv(0, 0, 0, 0);
29505
29506 ;
29507 return 0;
29508}
29509
29510_ACEOF
29511if ac_fn_c_try_link "$LINENO"; then :
29512
29513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29514$as_echo "yes" >&6; }
29515 curl_cv_recv="yes"
29516
29517else
29518
29519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29520$as_echo "no" >&6; }
29521 curl_cv_recv="no"
29522
29523fi
29524rm -f core conftest.err conftest.$ac_objext \
29525 conftest$ac_exeext conftest.$ac_ext
29526 #
29527 if test "$curl_cv_recv" = "yes"; then
29528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29529$as_echo_n "checking types of args and return type for recv... " >&6; }
29530if ${curl_cv_func_recv_args+:} false; then :
29531 $as_echo_n "(cached) " >&6
29532else
29533
29534 curl_cv_func_recv_args="unknown"
29535 for recv_retv in 'int' 'ssize_t'; do
29536 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29537 for recv_arg2 in 'char *' 'void *'; do
29538 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29539 for recv_arg4 in 'int' 'unsigned int'; do
29540 if test "$curl_cv_func_recv_args" = "unknown"; then
29541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29542/* end confdefs.h. */
29543
29544
29545#undef inline
29546#ifdef HAVE_WINDOWS_H
29547#ifndef WIN32_LEAN_AND_MEAN
29548#define WIN32_LEAN_AND_MEAN
29549#endif
29550#include <windows.h>
29551#ifdef HAVE_WINSOCK2_H
29552#include <winsock2.h>
29553#else
29554#ifdef HAVE_WINSOCK_H
29555#include <winsock.h>
29556#endif
29557#endif
29558#define RECVCALLCONV PASCAL
29559#else
29560#ifdef HAVE_SYS_TYPES_H
29561#include <sys/types.h>
29562#endif
29563#ifdef HAVE_SYS_SOCKET_H
29564#include <sys/socket.h>
29565#endif
29566#define RECVCALLCONV
29567#endif
29568 extern $recv_retv RECVCALLCONV
Elliott Hughes82be86d2017-09-20 17:00:17 -070029569 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29570
29571int main (void)
29572{
29573
29574 $recv_arg1 s=0;
29575 $recv_arg2 buf=0;
29576 $recv_arg3 len=0;
29577 $recv_arg4 flags=0;
29578 $recv_retv res = recv(s, buf, len, flags);
29579
29580 ;
29581 return 0;
29582}
29583
29584_ACEOF
29585if ac_fn_c_try_compile "$LINENO"; then :
29586
29587 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29588
29589fi
29590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29591 fi
29592 done
29593 done
29594 done
29595 done
29596 done
29597
29598fi
29599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29600$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29601 if test "$curl_cv_func_recv_args" = "unknown"; then
29602 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29603 else
29604 recv_prev_IFS=$IFS; IFS=','
29605 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29606 IFS=$recv_prev_IFS
29607 shift
29608 #
29609
29610cat >>confdefs.h <<_ACEOF
29611#define RECV_TYPE_ARG1 $1
29612_ACEOF
29613
29614
29615cat >>confdefs.h <<_ACEOF
29616#define RECV_TYPE_ARG2 $2
29617_ACEOF
29618
29619
29620cat >>confdefs.h <<_ACEOF
29621#define RECV_TYPE_ARG3 $3
29622_ACEOF
29623
29624
29625cat >>confdefs.h <<_ACEOF
29626#define RECV_TYPE_ARG4 $4
29627_ACEOF
29628
29629
29630cat >>confdefs.h <<_ACEOF
29631#define RECV_TYPE_RETV $5
29632_ACEOF
29633
29634 #
29635
29636cat >>confdefs.h <<_ACEOF
29637#define HAVE_RECV 1
29638_ACEOF
29639
29640 curl_cv_func_recv="yes"
29641 fi
29642 else
29643 as_fn_error $? "Unable to link function recv" "$LINENO" 5
29644 fi
29645
29646
29647 for ac_header in sys/types.h sys/socket.h
29648do :
29649 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29650ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29651if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29652 cat >>confdefs.h <<_ACEOF
29653#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29654_ACEOF
29655
29656fi
29657
29658done
29659
29660 #
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29662$as_echo_n "checking for send... " >&6; }
29663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29664/* end confdefs.h. */
29665
29666
29667#undef inline
29668#ifdef HAVE_WINDOWS_H
29669#ifndef WIN32_LEAN_AND_MEAN
29670#define WIN32_LEAN_AND_MEAN
29671#endif
29672#include <windows.h>
29673#ifdef HAVE_WINSOCK2_H
29674#include <winsock2.h>
29675#else
29676#ifdef HAVE_WINSOCK_H
29677#include <winsock.h>
29678#endif
29679#endif
29680#else
29681#ifdef HAVE_SYS_TYPES_H
29682#include <sys/types.h>
29683#endif
29684#ifdef HAVE_SYS_SOCKET_H
29685#include <sys/socket.h>
29686#endif
29687#endif
29688
29689int main (void)
29690{
29691
29692 send(0, 0, 0, 0);
29693
29694 ;
29695 return 0;
29696}
29697
29698_ACEOF
29699if ac_fn_c_try_link "$LINENO"; then :
29700
29701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29702$as_echo "yes" >&6; }
29703 curl_cv_send="yes"
29704
29705else
29706
29707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29708$as_echo "no" >&6; }
29709 curl_cv_send="no"
29710
29711fi
29712rm -f core conftest.err conftest.$ac_objext \
29713 conftest$ac_exeext conftest.$ac_ext
29714 #
29715 if test "$curl_cv_send" = "yes"; then
29716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29717$as_echo_n "checking types of args and return type for send... " >&6; }
29718if ${curl_cv_func_send_args+:} false; then :
29719 $as_echo_n "(cached) " >&6
29720else
29721
29722 curl_cv_func_send_args="unknown"
29723 for send_retv in 'int' 'ssize_t'; do
29724 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29725 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29726 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29727 for send_arg4 in 'int' 'unsigned int'; do
29728 if test "$curl_cv_func_send_args" = "unknown"; then
29729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29730/* end confdefs.h. */
29731
29732
29733#undef inline
29734#ifdef HAVE_WINDOWS_H
29735#ifndef WIN32_LEAN_AND_MEAN
29736#define WIN32_LEAN_AND_MEAN
29737#endif
29738#include <windows.h>
29739#ifdef HAVE_WINSOCK2_H
29740#include <winsock2.h>
29741#else
29742#ifdef HAVE_WINSOCK_H
29743#include <winsock.h>
29744#endif
29745#endif
29746#define SENDCALLCONV PASCAL
29747#else
29748#ifdef HAVE_SYS_TYPES_H
29749#include <sys/types.h>
29750#endif
29751#ifdef HAVE_SYS_SOCKET_H
29752#include <sys/socket.h>
29753#endif
29754#define SENDCALLCONV
29755#endif
29756 extern $send_retv SENDCALLCONV
Elliott Hughes82be86d2017-09-20 17:00:17 -070029757 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
29758
29759int main (void)
29760{
29761
29762 $send_arg1 s=0;
29763 $send_arg3 len=0;
29764 $send_arg4 flags=0;
29765 $send_retv res = send(s, 0, len, flags);
29766
29767 ;
29768 return 0;
29769}
29770
29771_ACEOF
29772if ac_fn_c_try_compile "$LINENO"; then :
29773
29774 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
29775
29776fi
29777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29778 fi
29779 done
29780 done
29781 done
29782 done
29783 done
29784
29785fi
29786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
29787$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
29788 if test "$curl_cv_func_send_args" = "unknown"; then
29789 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
29790 else
29791 send_prev_IFS=$IFS; IFS=','
29792 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
29793 IFS=$send_prev_IFS
29794 shift
29795 #
29796 send_qual_type_arg2=$2
29797 #
29798
29799cat >>confdefs.h <<_ACEOF
29800#define SEND_TYPE_ARG1 $1
29801_ACEOF
29802
29803
29804cat >>confdefs.h <<_ACEOF
29805#define SEND_TYPE_ARG3 $3
29806_ACEOF
29807
29808
29809cat >>confdefs.h <<_ACEOF
29810#define SEND_TYPE_ARG4 $4
29811_ACEOF
29812
29813
29814cat >>confdefs.h <<_ACEOF
29815#define SEND_TYPE_RETV $5
29816_ACEOF
29817
29818 #
29819 prev_sh_opts=$-
29820 #
29821 case $prev_sh_opts in
29822 *f*)
29823 ;;
29824 *)
29825 set -f
29826 ;;
29827 esac
29828 #
29829 case "$send_qual_type_arg2" in
29830 const*)
29831 send_qual_arg2=const
29832 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
29833 ;;
29834 *)
29835 send_qual_arg2=
29836 send_type_arg2=$send_qual_type_arg2
29837 ;;
29838 esac
29839 #
29840
29841cat >>confdefs.h <<_ACEOF
29842#define SEND_QUAL_ARG2 $send_qual_arg2
29843_ACEOF
29844
29845
29846cat >>confdefs.h <<_ACEOF
29847#define SEND_TYPE_ARG2 $send_type_arg2
29848_ACEOF
29849
29850 #
29851 case $prev_sh_opts in
29852 *f*)
29853 ;;
29854 *)
29855 set +f
29856 ;;
29857 esac
29858 #
29859
29860cat >>confdefs.h <<_ACEOF
29861#define HAVE_SEND 1
29862_ACEOF
29863
29864 curl_cv_func_send="yes"
29865 fi
29866 else
29867 as_fn_error $? "Unable to link function send" "$LINENO" 5
29868 fi
29869
29870
29871 for ac_header in sys/types.h sys/socket.h
29872do :
29873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29874ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29875if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29876 cat >>confdefs.h <<_ACEOF
29877#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29878_ACEOF
29879
29880fi
29881
29882done
29883
29884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
29885$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
29886if ${curl_cv_msg_nosignal+:} false; then :
29887 $as_echo_n "(cached) " >&6
29888else
29889
29890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29891/* end confdefs.h. */
29892
29893
29894#undef inline
29895#ifdef HAVE_WINDOWS_H
29896#ifndef WIN32_LEAN_AND_MEAN
29897#define WIN32_LEAN_AND_MEAN
29898#endif
29899#include <windows.h>
29900#ifdef HAVE_WINSOCK2_H
29901#include <winsock2.h>
29902#else
29903#ifdef HAVE_WINSOCK_H
29904#include <winsock.h>
29905#endif
29906#endif
29907#else
29908#ifdef HAVE_SYS_TYPES_H
29909#include <sys/types.h>
29910#endif
29911#ifdef HAVE_SYS_SOCKET_H
29912#include <sys/socket.h>
29913#endif
29914#endif
29915
29916int main (void)
29917{
29918
29919 int flag=MSG_NOSIGNAL;
29920
29921 ;
29922 return 0;
29923}
29924
29925_ACEOF
29926if ac_fn_c_try_compile "$LINENO"; then :
29927
29928 curl_cv_msg_nosignal="yes"
29929
29930else
29931
29932 curl_cv_msg_nosignal="no"
29933
29934fi
29935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29936
29937fi
29938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
29939$as_echo "$curl_cv_msg_nosignal" >&6; }
29940 case "$curl_cv_msg_nosignal" in
29941 yes)
29942
29943cat >>confdefs.h <<_ACEOF
29944#define HAVE_MSG_NOSIGNAL 1
29945_ACEOF
29946
29947 ;;
29948 esac
29949
29950
29951
29952curl_includes_unistd="\
29953/* includes start */
29954#ifdef HAVE_SYS_TYPES_H
29955# include <sys/types.h>
29956#endif
29957#ifdef HAVE_UNISTD_H
29958# include <unistd.h>
29959#endif
29960/* includes end */"
29961 for ac_header in sys/types.h unistd.h
29962do :
29963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29964ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
29965"
29966if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29967 cat >>confdefs.h <<_ACEOF
29968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29969_ACEOF
29970
29971fi
29972
29973done
29974
29975
29976
29977 #
29978 tst_links_alarm="unknown"
29979 tst_proto_alarm="unknown"
29980 tst_compi_alarm="unknown"
29981 tst_allow_alarm="unknown"
29982 #
29983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
29984$as_echo_n "checking if alarm can be linked... " >&6; }
29985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29986/* end confdefs.h. */
29987
29988
29989#define alarm innocuous_alarm
29990#ifdef __STDC__
29991# include <limits.h>
29992#else
29993# include <assert.h>
29994#endif
29995#undef alarm
29996#ifdef __cplusplus
29997extern "C"
29998#endif
29999char alarm ();
30000#if defined __stub_alarm || defined __stub___alarm
30001choke me
30002#endif
30003
30004int main (void)
30005{
30006return alarm ();
30007 ;
30008 return 0;
30009}
30010
30011_ACEOF
30012if ac_fn_c_try_link "$LINENO"; then :
30013
30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30015$as_echo "yes" >&6; }
30016 tst_links_alarm="yes"
30017
30018else
30019
30020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30021$as_echo "no" >&6; }
30022 tst_links_alarm="no"
30023
30024fi
30025rm -f core conftest.err conftest.$ac_objext \
30026 conftest$ac_exeext conftest.$ac_ext
30027 #
30028 if test "$tst_links_alarm" = "yes"; then
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30030$as_echo_n "checking if alarm is prototyped... " >&6; }
30031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30032/* end confdefs.h. */
30033
30034 $curl_includes_unistd
30035
30036_ACEOF
30037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30038 $EGREP "alarm" >/dev/null 2>&1; then :
30039
30040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30041$as_echo "yes" >&6; }
30042 tst_proto_alarm="yes"
30043
30044else
30045
30046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30047$as_echo "no" >&6; }
30048 tst_proto_alarm="no"
30049
30050fi
30051rm -f conftest*
30052
30053 fi
30054 #
30055 if test "$tst_proto_alarm" = "yes"; then
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30057$as_echo_n "checking if alarm is compilable... " >&6; }
30058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30059/* end confdefs.h. */
30060
30061
30062 $curl_includes_unistd
30063
30064int main (void)
30065{
30066
30067 if(0 != alarm(0))
30068 return 1;
30069
30070 ;
30071 return 0;
30072}
30073
30074_ACEOF
30075if ac_fn_c_try_compile "$LINENO"; then :
30076
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30078$as_echo "yes" >&6; }
30079 tst_compi_alarm="yes"
30080
30081else
30082
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30084$as_echo "no" >&6; }
30085 tst_compi_alarm="no"
30086
30087fi
30088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30089 fi
30090 #
30091 if test "$tst_compi_alarm" = "yes"; then
30092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30093$as_echo_n "checking if alarm usage allowed... " >&6; }
30094 if test "x$curl_disallow_alarm" != "xyes"; then
30095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30096$as_echo "yes" >&6; }
30097 tst_allow_alarm="yes"
30098 else
30099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30100$as_echo "no" >&6; }
30101 tst_allow_alarm="no"
30102 fi
30103 fi
30104 #
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30106$as_echo_n "checking if alarm might be used... " >&6; }
30107 if test "$tst_links_alarm" = "yes" &&
30108 test "$tst_proto_alarm" = "yes" &&
30109 test "$tst_compi_alarm" = "yes" &&
30110 test "$tst_allow_alarm" = "yes"; then
30111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30112$as_echo "yes" >&6; }
30113
30114cat >>confdefs.h <<_ACEOF
30115#define HAVE_ALARM 1
30116_ACEOF
30117
30118 curl_cv_func_alarm="yes"
30119 else
30120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30121$as_echo "no" >&6; }
30122 curl_cv_func_alarm="no"
30123 fi
30124
30125
30126curl_includes_string="\
30127/* includes start */
30128#ifdef HAVE_SYS_TYPES_H
30129# include <sys/types.h>
30130#endif
30131#ifdef HAVE_STRING_H
30132# include <string.h>
30133#endif
30134#ifdef HAVE_STRINGS_H
30135# include <strings.h>
30136#endif
30137/* includes end */"
30138 for ac_header in sys/types.h string.h strings.h
30139do :
30140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30141ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30142"
30143if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30144 cat >>confdefs.h <<_ACEOF
30145#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30146_ACEOF
30147
30148fi
30149
30150done
30151
30152
30153
30154curl_includes_libgen="\
30155/* includes start */
30156#ifdef HAVE_SYS_TYPES_H
30157# include <sys/types.h>
30158#endif
30159#ifdef HAVE_LIBGEN_H
30160# include <libgen.h>
30161#endif
30162/* includes end */"
30163 for ac_header in sys/types.h libgen.h
30164do :
30165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30166ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30167"
30168if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30169 cat >>confdefs.h <<_ACEOF
30170#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30171_ACEOF
30172
30173fi
30174
30175done
30176
30177
30178
30179 #
30180 tst_links_basename="unknown"
30181 tst_proto_basename="unknown"
30182 tst_compi_basename="unknown"
30183 tst_allow_basename="unknown"
30184 #
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30186$as_echo_n "checking if basename can be linked... " >&6; }
30187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30188/* end confdefs.h. */
30189
30190
30191#define basename innocuous_basename
30192#ifdef __STDC__
30193# include <limits.h>
30194#else
30195# include <assert.h>
30196#endif
30197#undef basename
30198#ifdef __cplusplus
30199extern "C"
30200#endif
30201char basename ();
30202#if defined __stub_basename || defined __stub___basename
30203choke me
30204#endif
30205
30206int main (void)
30207{
30208return basename ();
30209 ;
30210 return 0;
30211}
30212
30213_ACEOF
30214if ac_fn_c_try_link "$LINENO"; then :
30215
30216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30217$as_echo "yes" >&6; }
30218 tst_links_basename="yes"
30219
30220else
30221
30222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30223$as_echo "no" >&6; }
30224 tst_links_basename="no"
30225
30226fi
30227rm -f core conftest.err conftest.$ac_objext \
30228 conftest$ac_exeext conftest.$ac_ext
30229 #
30230 if test "$tst_links_basename" = "yes"; then
30231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30232$as_echo_n "checking if basename is prototyped... " >&6; }
30233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30234/* end confdefs.h. */
30235
30236 $curl_includes_string
30237 $curl_includes_libgen
30238 $curl_includes_unistd
30239
30240_ACEOF
30241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30242 $EGREP "basename" >/dev/null 2>&1; then :
30243
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30245$as_echo "yes" >&6; }
30246 tst_proto_basename="yes"
30247
30248else
30249
30250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30251$as_echo "no" >&6; }
30252 tst_proto_basename="no"
30253
30254fi
30255rm -f conftest*
30256
30257 fi
30258 #
30259 if test "$tst_proto_basename" = "yes"; then
30260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30261$as_echo_n "checking if basename is compilable... " >&6; }
30262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30263/* end confdefs.h. */
30264
30265
30266 $curl_includes_string
30267 $curl_includes_libgen
30268 $curl_includes_unistd
30269
30270int main (void)
30271{
30272
30273 if(0 != basename(0))
30274 return 1;
30275
30276 ;
30277 return 0;
30278}
30279
30280_ACEOF
30281if ac_fn_c_try_compile "$LINENO"; then :
30282
30283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30284$as_echo "yes" >&6; }
30285 tst_compi_basename="yes"
30286
30287else
30288
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30290$as_echo "no" >&6; }
30291 tst_compi_basename="no"
30292
30293fi
30294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30295 fi
30296 #
30297 if test "$tst_compi_basename" = "yes"; then
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30299$as_echo_n "checking if basename usage allowed... " >&6; }
30300 if test "x$curl_disallow_basename" != "xyes"; then
30301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30302$as_echo "yes" >&6; }
30303 tst_allow_basename="yes"
30304 else
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30306$as_echo "no" >&6; }
30307 tst_allow_basename="no"
30308 fi
30309 fi
30310 #
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30312$as_echo_n "checking if basename might be used... " >&6; }
30313 if test "$tst_links_basename" = "yes" &&
30314 test "$tst_proto_basename" = "yes" &&
30315 test "$tst_compi_basename" = "yes" &&
30316 test "$tst_allow_basename" = "yes"; then
30317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30318$as_echo "yes" >&6; }
30319
30320cat >>confdefs.h <<_ACEOF
30321#define HAVE_BASENAME 1
30322_ACEOF
30323
30324 curl_cv_func_basename="yes"
30325 else
30326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30327$as_echo "no" >&6; }
30328 curl_cv_func_basename="no"
30329 fi
30330
30331
30332curl_includes_socket="\
30333/* includes start */
30334#ifdef HAVE_SYS_TYPES_H
30335# include <sys/types.h>
30336#endif
30337#ifdef HAVE_SOCKET_H
30338# include <socket.h>
30339#endif
30340/* includes end */"
30341 for ac_header in sys/types.h socket.h
30342do :
30343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30344ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30345"
30346if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30347 cat >>confdefs.h <<_ACEOF
30348#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30349_ACEOF
30350
30351fi
30352
30353done
30354
30355
30356
30357 #
30358 tst_links_closesocket="unknown"
30359 tst_proto_closesocket="unknown"
30360 tst_compi_closesocket="unknown"
30361 tst_allow_closesocket="unknown"
30362 #
30363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30364$as_echo_n "checking if closesocket can be linked... " >&6; }
30365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30366/* end confdefs.h. */
30367
30368
30369 $curl_includes_winsock2
30370 $curl_includes_socket
30371
30372int main (void)
30373{
30374
30375 if(0 != closesocket(0))
30376 return 1;
30377
30378 ;
30379 return 0;
30380}
30381
30382_ACEOF
30383if ac_fn_c_try_link "$LINENO"; then :
30384
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30386$as_echo "yes" >&6; }
30387 tst_links_closesocket="yes"
30388
30389else
30390
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30392$as_echo "no" >&6; }
30393 tst_links_closesocket="no"
30394
30395fi
30396rm -f core conftest.err conftest.$ac_objext \
30397 conftest$ac_exeext conftest.$ac_ext
30398 #
30399 if test "$tst_links_closesocket" = "yes"; then
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30401$as_echo_n "checking if closesocket is prototyped... " >&6; }
30402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30403/* end confdefs.h. */
30404
30405 $curl_includes_winsock2
30406 $curl_includes_socket
30407
30408_ACEOF
30409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30410 $EGREP "closesocket" >/dev/null 2>&1; then :
30411
30412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30413$as_echo "yes" >&6; }
30414 tst_proto_closesocket="yes"
30415
30416else
30417
30418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30419$as_echo "no" >&6; }
30420 tst_proto_closesocket="no"
30421
30422fi
30423rm -f conftest*
30424
30425 fi
30426 #
30427 if test "$tst_proto_closesocket" = "yes"; then
30428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30429$as_echo_n "checking if closesocket is compilable... " >&6; }
30430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30431/* end confdefs.h. */
30432
30433
30434 $curl_includes_winsock2
30435 $curl_includes_socket
30436
30437int main (void)
30438{
30439
30440 if(0 != closesocket(0))
30441 return 1;
30442
30443 ;
30444 return 0;
30445}
30446
30447_ACEOF
30448if ac_fn_c_try_compile "$LINENO"; then :
30449
30450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30451$as_echo "yes" >&6; }
30452 tst_compi_closesocket="yes"
30453
30454else
30455
30456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30457$as_echo "no" >&6; }
30458 tst_compi_closesocket="no"
30459
30460fi
30461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30462 fi
30463 #
30464 if test "$tst_compi_closesocket" = "yes"; then
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30466$as_echo_n "checking if closesocket usage allowed... " >&6; }
30467 if test "x$curl_disallow_closesocket" != "xyes"; then
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30469$as_echo "yes" >&6; }
30470 tst_allow_closesocket="yes"
30471 else
30472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30473$as_echo "no" >&6; }
30474 tst_allow_closesocket="no"
30475 fi
30476 fi
30477 #
30478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30479$as_echo_n "checking if closesocket might be used... " >&6; }
30480 if test "$tst_links_closesocket" = "yes" &&
30481 test "$tst_proto_closesocket" = "yes" &&
30482 test "$tst_compi_closesocket" = "yes" &&
30483 test "$tst_allow_closesocket" = "yes"; then
30484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30485$as_echo "yes" >&6; }
30486
30487cat >>confdefs.h <<_ACEOF
30488#define HAVE_CLOSESOCKET 1
30489_ACEOF
30490
30491 curl_cv_func_closesocket="yes"
30492 else
30493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30494$as_echo "no" >&6; }
30495 curl_cv_func_closesocket="no"
30496 fi
30497
30498
Elliott Hughesa93fb052018-12-12 14:22:48 -080030499curl_includes_sys_socket="\
30500/* includes start */
30501#ifdef HAVE_SYS_TYPES_H
30502# include <sys/types.h>
30503#endif
30504#ifdef HAVE_SYS_SOCKET_H
30505# include <sys/socket.h>
30506#endif
30507/* includes end */"
30508 for ac_header in sys/types.h sys/socket.h
30509do :
30510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30511ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
30512"
30513if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30514 cat >>confdefs.h <<_ACEOF
30515#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30516_ACEOF
30517
30518fi
30519
30520done
30521
30522
30523
Elliott Hughes82be86d2017-09-20 17:00:17 -070030524 #
30525 tst_links_closesocket_camel="unknown"
30526 tst_proto_closesocket_camel="unknown"
30527 tst_compi_closesocket_camel="unknown"
30528 tst_allow_closesocket_camel="unknown"
30529 #
30530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30531$as_echo_n "checking if CloseSocket can be linked... " >&6; }
30532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30533/* end confdefs.h. */
30534
30535
30536 $curl_includes_sys_socket
30537
30538int main (void)
30539{
30540
30541 if(0 != CloseSocket(0))
30542 return 1;
30543
30544 ;
30545 return 0;
30546}
30547
30548_ACEOF
30549if ac_fn_c_try_link "$LINENO"; then :
30550
30551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30552$as_echo "yes" >&6; }
30553 tst_links_closesocket_camel="yes"
30554
30555else
30556
30557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30558$as_echo "no" >&6; }
30559 tst_links_closesocket_camel="no"
30560
30561fi
30562rm -f core conftest.err conftest.$ac_objext \
30563 conftest$ac_exeext conftest.$ac_ext
30564 #
30565 if test "$tst_links_closesocket_camel" = "yes"; then
30566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30567$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30569/* end confdefs.h. */
30570
30571 $curl_includes_sys_socket
30572
30573_ACEOF
30574if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30575 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30576
30577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30578$as_echo "yes" >&6; }
30579 tst_proto_closesocket_camel="yes"
30580
30581else
30582
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30584$as_echo "no" >&6; }
30585 tst_proto_closesocket_camel="no"
30586
30587fi
30588rm -f conftest*
30589
30590 fi
30591 #
30592 if test "$tst_proto_closesocket_camel" = "yes"; then
30593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30594$as_echo_n "checking if CloseSocket is compilable... " >&6; }
30595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30596/* end confdefs.h. */
30597
30598
30599 $curl_includes_sys_socket
30600
30601int main (void)
30602{
30603
30604 if(0 != CloseSocket(0))
30605 return 1;
30606
30607 ;
30608 return 0;
30609}
30610
30611_ACEOF
30612if ac_fn_c_try_compile "$LINENO"; then :
30613
30614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30615$as_echo "yes" >&6; }
30616 tst_compi_closesocket_camel="yes"
30617
30618else
30619
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30621$as_echo "no" >&6; }
30622 tst_compi_closesocket_camel="no"
30623
30624fi
30625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30626 fi
30627 #
30628 if test "$tst_compi_closesocket_camel" = "yes"; then
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30630$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30631 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30633$as_echo "yes" >&6; }
30634 tst_allow_closesocket_camel="yes"
30635 else
30636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30637$as_echo "no" >&6; }
30638 tst_allow_closesocket_camel="no"
30639 fi
30640 fi
30641 #
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30643$as_echo_n "checking if CloseSocket might be used... " >&6; }
30644 if test "$tst_links_closesocket_camel" = "yes" &&
30645 test "$tst_proto_closesocket_camel" = "yes" &&
30646 test "$tst_compi_closesocket_camel" = "yes" &&
30647 test "$tst_allow_closesocket_camel" = "yes"; then
30648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30649$as_echo "yes" >&6; }
30650
30651cat >>confdefs.h <<_ACEOF
30652#define HAVE_CLOSESOCKET_CAMEL 1
30653_ACEOF
30654
30655 curl_cv_func_closesocket_camel="yes"
30656 else
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30658$as_echo "no" >&6; }
30659 curl_cv_func_closesocket_camel="no"
30660 fi
30661
30662
30663 #
30664 tst_links_connect="unknown"
30665 tst_proto_connect="unknown"
30666 tst_compi_connect="unknown"
30667 tst_allow_connect="unknown"
30668 #
30669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30670$as_echo_n "checking if connect can be linked... " >&6; }
30671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30672/* end confdefs.h. */
30673
30674
30675 $curl_includes_winsock2
30676 $curl_includes_sys_socket
30677 $curl_includes_socket
30678
30679int main (void)
30680{
30681
30682 if(0 != connect(0, 0, 0))
30683 return 1;
30684
30685 ;
30686 return 0;
30687}
30688
30689_ACEOF
30690if 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_connect="yes"
30695
30696else
30697
30698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30699$as_echo "no" >&6; }
30700 tst_links_connect="no"
30701
30702fi
30703rm -f core conftest.err conftest.$ac_objext \
30704 conftest$ac_exeext conftest.$ac_ext
30705 #
30706 if test "$tst_links_connect" = "yes"; then
30707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30708$as_echo_n "checking if connect is prototyped... " >&6; }
30709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30710/* end confdefs.h. */
30711
30712 $curl_includes_winsock2
30713 $curl_includes_sys_socket
30714 $curl_includes_socket
30715
30716_ACEOF
30717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30718 $EGREP "connect" >/dev/null 2>&1; then :
30719
30720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30721$as_echo "yes" >&6; }
30722 tst_proto_connect="yes"
30723
30724else
30725
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30727$as_echo "no" >&6; }
30728 tst_proto_connect="no"
30729
30730fi
30731rm -f conftest*
30732
30733 fi
30734 #
30735 if test "$tst_proto_connect" = "yes"; then
30736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30737$as_echo_n "checking if connect is compilable... " >&6; }
30738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30739/* end confdefs.h. */
30740
30741
30742 $curl_includes_winsock2
30743 $curl_includes_sys_socket
30744 $curl_includes_socket
30745
30746int main (void)
30747{
30748
30749 if(0 != connect(0, 0, 0))
30750 return 1;
30751
30752 ;
30753 return 0;
30754}
30755
30756_ACEOF
30757if ac_fn_c_try_compile "$LINENO"; then :
30758
30759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30760$as_echo "yes" >&6; }
30761 tst_compi_connect="yes"
30762
30763else
30764
30765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30766$as_echo "no" >&6; }
30767 tst_compi_connect="no"
30768
30769fi
30770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30771 fi
30772 #
30773 if test "$tst_compi_connect" = "yes"; then
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
30775$as_echo_n "checking if connect usage allowed... " >&6; }
30776 if test "x$curl_disallow_connect" != "xyes"; then
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30778$as_echo "yes" >&6; }
30779 tst_allow_connect="yes"
30780 else
30781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30782$as_echo "no" >&6; }
30783 tst_allow_connect="no"
30784 fi
30785 fi
30786 #
30787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
30788$as_echo_n "checking if connect might be used... " >&6; }
30789 if test "$tst_links_connect" = "yes" &&
30790 test "$tst_proto_connect" = "yes" &&
30791 test "$tst_compi_connect" = "yes" &&
30792 test "$tst_allow_connect" = "yes"; then
30793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30794$as_echo "yes" >&6; }
30795
30796cat >>confdefs.h <<_ACEOF
30797#define HAVE_CONNECT 1
30798_ACEOF
30799
30800 curl_cv_func_connect="yes"
30801 else
30802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30803$as_echo "no" >&6; }
30804 curl_cv_func_connect="no"
30805 fi
30806
30807
30808curl_includes_fcntl="\
30809/* includes start */
30810#ifdef HAVE_SYS_TYPES_H
30811# include <sys/types.h>
30812#endif
30813#ifdef HAVE_UNISTD_H
30814# include <unistd.h>
30815#endif
30816#ifdef HAVE_FCNTL_H
30817# include <fcntl.h>
30818#endif
30819/* includes end */"
30820 for ac_header in sys/types.h unistd.h fcntl.h
30821do :
30822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30823ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
30824"
30825if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30826 cat >>confdefs.h <<_ACEOF
30827#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30828_ACEOF
30829
30830fi
30831
30832done
30833
30834
30835
30836 #
30837 tst_links_fcntl="unknown"
30838 tst_proto_fcntl="unknown"
30839 tst_compi_fcntl="unknown"
30840 tst_allow_fcntl="unknown"
30841 #
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
30843$as_echo_n "checking if fcntl can be linked... " >&6; }
30844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30845/* end confdefs.h. */
30846
30847
30848#define fcntl innocuous_fcntl
30849#ifdef __STDC__
30850# include <limits.h>
30851#else
30852# include <assert.h>
30853#endif
30854#undef fcntl
30855#ifdef __cplusplus
30856extern "C"
30857#endif
30858char fcntl ();
30859#if defined __stub_fcntl || defined __stub___fcntl
30860choke me
30861#endif
30862
30863int main (void)
30864{
30865return fcntl ();
30866 ;
30867 return 0;
30868}
30869
30870_ACEOF
30871if ac_fn_c_try_link "$LINENO"; then :
30872
30873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30874$as_echo "yes" >&6; }
30875 tst_links_fcntl="yes"
30876
30877else
30878
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30880$as_echo "no" >&6; }
30881 tst_links_fcntl="no"
30882
30883fi
30884rm -f core conftest.err conftest.$ac_objext \
30885 conftest$ac_exeext conftest.$ac_ext
30886 #
30887 if test "$tst_links_fcntl" = "yes"; then
30888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
30889$as_echo_n "checking if fcntl is prototyped... " >&6; }
30890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30891/* end confdefs.h. */
30892
30893 $curl_includes_fcntl
30894
30895_ACEOF
30896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30897 $EGREP "fcntl" >/dev/null 2>&1; then :
30898
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30900$as_echo "yes" >&6; }
30901 tst_proto_fcntl="yes"
30902
30903else
30904
30905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30906$as_echo "no" >&6; }
30907 tst_proto_fcntl="no"
30908
30909fi
30910rm -f conftest*
30911
30912 fi
30913 #
30914 if test "$tst_proto_fcntl" = "yes"; then
30915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
30916$as_echo_n "checking if fcntl is compilable... " >&6; }
30917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30918/* end confdefs.h. */
30919
30920
30921 $curl_includes_fcntl
30922
30923int main (void)
30924{
30925
30926 if(0 != fcntl(0, 0, 0))
30927 return 1;
30928
30929 ;
30930 return 0;
30931}
30932
30933_ACEOF
30934if ac_fn_c_try_compile "$LINENO"; then :
30935
30936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30937$as_echo "yes" >&6; }
30938 tst_compi_fcntl="yes"
30939
30940else
30941
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30943$as_echo "no" >&6; }
30944 tst_compi_fcntl="no"
30945
30946fi
30947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30948 fi
30949 #
30950 if test "$tst_compi_fcntl" = "yes"; then
30951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
30952$as_echo_n "checking if fcntl usage allowed... " >&6; }
30953 if test "x$curl_disallow_fcntl" != "xyes"; then
30954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30955$as_echo "yes" >&6; }
30956 tst_allow_fcntl="yes"
30957 else
30958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30959$as_echo "no" >&6; }
30960 tst_allow_fcntl="no"
30961 fi
30962 fi
30963 #
30964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
30965$as_echo_n "checking if fcntl might be used... " >&6; }
30966 if test "$tst_links_fcntl" = "yes" &&
30967 test "$tst_proto_fcntl" = "yes" &&
30968 test "$tst_compi_fcntl" = "yes" &&
30969 test "$tst_allow_fcntl" = "yes"; then
30970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30971$as_echo "yes" >&6; }
30972
30973cat >>confdefs.h <<_ACEOF
30974#define HAVE_FCNTL 1
30975_ACEOF
30976
30977 curl_cv_func_fcntl="yes"
30978
30979 #
30980 tst_compi_fcntl_o_nonblock="unknown"
30981 tst_allow_fcntl_o_nonblock="unknown"
30982 #
30983 case $host_os in
30984 sunos4* | aix3* | beos*)
30985 curl_disallow_fcntl_o_nonblock="yes"
30986 ;;
30987 esac
30988 #
30989 if test "$curl_cv_func_fcntl" = "yes"; then
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
30991$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
30992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30993/* end confdefs.h. */
30994
30995
30996 $curl_includes_fcntl
30997
30998int main (void)
30999{
31000
31001 int flags = 0;
31002 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31003 return 1;
31004
31005 ;
31006 return 0;
31007}
31008
31009_ACEOF
31010if ac_fn_c_try_compile "$LINENO"; then :
31011
31012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31013$as_echo "yes" >&6; }
31014 tst_compi_fcntl_o_nonblock="yes"
31015
31016else
31017
31018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31019$as_echo "no" >&6; }
31020 tst_compi_fcntl_o_nonblock="no"
31021
31022fi
31023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31024 fi
31025 #
31026 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31028$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31029 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31031$as_echo "yes" >&6; }
31032 tst_allow_fcntl_o_nonblock="yes"
31033 else
31034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31035$as_echo "no" >&6; }
31036 tst_allow_fcntl_o_nonblock="no"
31037 fi
31038 fi
31039 #
31040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31041$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31042 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31043 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31045$as_echo "yes" >&6; }
31046
31047cat >>confdefs.h <<_ACEOF
31048#define HAVE_FCNTL_O_NONBLOCK 1
31049_ACEOF
31050
31051 curl_cv_func_fcntl_o_nonblock="yes"
31052 else
31053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31054$as_echo "no" >&6; }
31055 curl_cv_func_fcntl_o_nonblock="no"
31056 fi
31057
31058 else
31059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31060$as_echo "no" >&6; }
31061 curl_cv_func_fcntl="no"
31062 fi
31063
31064
31065curl_includes_stdio="\
31066/* includes start */
31067#ifdef HAVE_SYS_TYPES_H
31068# include <sys/types.h>
31069#endif
31070#ifdef HAVE_STDIO_H
31071# include <stdio.h>
31072#endif
31073/* includes end */"
31074 for ac_header in sys/types.h stdio.h
31075do :
31076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31077ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31078"
31079if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31080 cat >>confdefs.h <<_ACEOF
31081#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31082_ACEOF
31083
31084fi
31085
31086done
31087
31088
31089
31090 #
31091 tst_links_fdopen="unknown"
31092 tst_proto_fdopen="unknown"
31093 tst_compi_fdopen="unknown"
31094 tst_allow_fdopen="unknown"
31095 #
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31097$as_echo_n "checking if fdopen can be linked... " >&6; }
31098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31099/* end confdefs.h. */
31100
31101
31102#define fdopen innocuous_fdopen
31103#ifdef __STDC__
31104# include <limits.h>
31105#else
31106# include <assert.h>
31107#endif
31108#undef fdopen
31109#ifdef __cplusplus
31110extern "C"
31111#endif
31112char fdopen ();
31113#if defined __stub_fdopen || defined __stub___fdopen
31114choke me
31115#endif
31116
31117int main (void)
31118{
31119return fdopen ();
31120 ;
31121 return 0;
31122}
31123
31124_ACEOF
31125if ac_fn_c_try_link "$LINENO"; then :
31126
31127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31128$as_echo "yes" >&6; }
31129 tst_links_fdopen="yes"
31130
31131else
31132
31133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31134$as_echo "no" >&6; }
31135 tst_links_fdopen="no"
31136
31137fi
31138rm -f core conftest.err conftest.$ac_objext \
31139 conftest$ac_exeext conftest.$ac_ext
31140 #
31141 if test "$tst_links_fdopen" = "yes"; then
31142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31143$as_echo_n "checking if fdopen is prototyped... " >&6; }
31144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31145/* end confdefs.h. */
31146
31147 $curl_includes_stdio
31148
31149_ACEOF
31150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31151 $EGREP "fdopen" >/dev/null 2>&1; then :
31152
31153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31154$as_echo "yes" >&6; }
31155 tst_proto_fdopen="yes"
31156
31157else
31158
31159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31160$as_echo "no" >&6; }
31161 tst_proto_fdopen="no"
31162
31163fi
31164rm -f conftest*
31165
31166 fi
31167 #
31168 if test "$tst_proto_fdopen" = "yes"; then
31169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31170$as_echo_n "checking if fdopen is compilable... " >&6; }
31171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31172/* end confdefs.h. */
31173
31174
31175 $curl_includes_stdio
31176
31177int main (void)
31178{
31179
31180 if(0 != fdopen(0, 0))
31181 return 1;
31182
31183 ;
31184 return 0;
31185}
31186
31187_ACEOF
31188if ac_fn_c_try_compile "$LINENO"; then :
31189
31190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31191$as_echo "yes" >&6; }
31192 tst_compi_fdopen="yes"
31193
31194else
31195
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31197$as_echo "no" >&6; }
31198 tst_compi_fdopen="no"
31199
31200fi
31201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31202 fi
31203 #
31204 if test "$tst_compi_fdopen" = "yes"; then
31205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31206$as_echo_n "checking if fdopen usage allowed... " >&6; }
31207 if test "x$curl_disallow_fdopen" != "xyes"; then
31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31209$as_echo "yes" >&6; }
31210 tst_allow_fdopen="yes"
31211 else
31212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31213$as_echo "no" >&6; }
31214 tst_allow_fdopen="no"
31215 fi
31216 fi
31217 #
31218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31219$as_echo_n "checking if fdopen might be used... " >&6; }
31220 if test "$tst_links_fdopen" = "yes" &&
31221 test "$tst_proto_fdopen" = "yes" &&
31222 test "$tst_compi_fdopen" = "yes" &&
31223 test "$tst_allow_fdopen" = "yes"; then
31224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31225$as_echo "yes" >&6; }
31226
31227cat >>confdefs.h <<_ACEOF
31228#define HAVE_FDOPEN 1
31229_ACEOF
31230
31231 curl_cv_func_fdopen="yes"
31232 else
31233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31234$as_echo "no" >&6; }
31235 curl_cv_func_fdopen="no"
31236 fi
31237
31238
Elliott Hughesa93fb052018-12-12 14:22:48 -080031239curl_includes_ws2tcpip="\
31240/* includes start */
31241#ifdef HAVE_WINDOWS_H
31242# ifndef WIN32_LEAN_AND_MEAN
31243# define WIN32_LEAN_AND_MEAN
31244# endif
31245# include <windows.h>
31246# ifdef HAVE_WINSOCK2_H
31247# include <winsock2.h>
31248# ifdef HAVE_WS2TCPIP_H
31249# include <ws2tcpip.h>
31250# endif
31251# endif
31252#endif
31253/* includes end */"
31254
31255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
31256$as_echo_n "checking for windows.h... " >&6; }
31257if ${curl_cv_header_windows_h+:} false; then :
31258 $as_echo_n "(cached) " >&6
31259else
31260
31261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31262/* end confdefs.h. */
31263
31264
31265#undef inline
31266#ifndef WIN32_LEAN_AND_MEAN
31267#define WIN32_LEAN_AND_MEAN
31268#endif
31269#include <windows.h>
31270
31271int main (void)
31272{
31273
31274#if defined(__CYGWIN__) || defined(__CEGCC__)
31275 HAVE_WINDOWS_H shall not be defined.
31276#else
31277 int dummy=2*WINVER;
31278#endif
31279
31280 ;
31281 return 0;
31282}
31283
31284_ACEOF
31285if ac_fn_c_try_compile "$LINENO"; then :
31286
31287 curl_cv_header_windows_h="yes"
31288
31289else
31290
31291 curl_cv_header_windows_h="no"
31292
31293fi
31294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31295
31296fi
31297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
31298$as_echo "$curl_cv_header_windows_h" >&6; }
31299 case "$curl_cv_header_windows_h" in
31300 yes)
31301
31302cat >>confdefs.h <<_ACEOF
31303#define HAVE_WINDOWS_H 1
31304_ACEOF
31305
31306 ;;
31307 esac
31308
31309
31310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
31311$as_echo_n "checking for winsock2.h... " >&6; }
31312if ${curl_cv_header_winsock2_h+:} false; then :
31313 $as_echo_n "(cached) " >&6
31314else
31315
31316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31317/* end confdefs.h. */
31318
31319
31320#undef inline
31321#ifndef WIN32_LEAN_AND_MEAN
31322#define WIN32_LEAN_AND_MEAN
31323#endif
31324#include <windows.h>
31325#include <winsock2.h>
31326
31327int main (void)
31328{
31329
31330#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31331 HAVE_WINSOCK2_H shall not be defined.
31332#else
31333 int dummy=2*IPPROTO_ESP;
31334#endif
31335
31336 ;
31337 return 0;
31338}
31339
31340_ACEOF
31341if ac_fn_c_try_compile "$LINENO"; then :
31342
31343 curl_cv_header_winsock2_h="yes"
31344
31345else
31346
31347 curl_cv_header_winsock2_h="no"
31348
31349fi
31350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31351
31352fi
31353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
31354$as_echo "$curl_cv_header_winsock2_h" >&6; }
31355 case "$curl_cv_header_winsock2_h" in
31356 yes)
31357
31358cat >>confdefs.h <<_ACEOF
31359#define HAVE_WINSOCK2_H 1
31360_ACEOF
31361
31362 ;;
31363 esac
31364
31365
31366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
31367$as_echo_n "checking for ws2tcpip.h... " >&6; }
31368if ${curl_cv_header_ws2tcpip_h+:} false; then :
31369 $as_echo_n "(cached) " >&6
31370else
31371
31372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31373/* end confdefs.h. */
31374
31375
31376#undef inline
31377#ifndef WIN32_LEAN_AND_MEAN
31378#define WIN32_LEAN_AND_MEAN
31379#endif
31380#include <windows.h>
31381#include <winsock2.h>
31382#include <ws2tcpip.h>
31383
31384int main (void)
31385{
31386
31387#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31388 HAVE_WS2TCPIP_H shall not be defined.
31389#else
31390 int dummy=2*IP_PKTINFO;
31391#endif
31392
31393 ;
31394 return 0;
31395}
31396
31397_ACEOF
31398if ac_fn_c_try_compile "$LINENO"; then :
31399
31400 curl_cv_header_ws2tcpip_h="yes"
31401
31402else
31403
31404 curl_cv_header_ws2tcpip_h="no"
31405
31406fi
31407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31408
31409fi
31410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
31411$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
31412 case "$curl_cv_header_ws2tcpip_h" in
31413 yes)
31414
31415cat >>confdefs.h <<_ACEOF
31416#define HAVE_WS2TCPIP_H 1
31417_ACEOF
31418
31419 ;;
31420 esac
31421
31422
31423
Elliott Hughes82be86d2017-09-20 17:00:17 -070031424curl_includes_netdb="\
31425/* includes start */
31426#ifdef HAVE_SYS_TYPES_H
31427# include <sys/types.h>
31428#endif
31429#ifdef HAVE_NETDB_H
31430# include <netdb.h>
31431#endif
31432/* includes end */"
31433 for ac_header in sys/types.h netdb.h
31434do :
31435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31436ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31437"
31438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31439 cat >>confdefs.h <<_ACEOF
31440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31441_ACEOF
31442
31443fi
31444
31445done
31446
31447
31448
31449 #
31450 tst_links_freeaddrinfo="unknown"
31451 tst_proto_freeaddrinfo="unknown"
31452 tst_compi_freeaddrinfo="unknown"
31453 tst_allow_freeaddrinfo="unknown"
31454 #
31455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31456$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31458/* end confdefs.h. */
31459
31460
31461 $curl_includes_ws2tcpip
31462 $curl_includes_sys_socket
31463 $curl_includes_netdb
31464
31465int main (void)
31466{
31467
31468 freeaddrinfo(0);
31469
31470 ;
31471 return 0;
31472}
31473
31474_ACEOF
31475if ac_fn_c_try_link "$LINENO"; then :
31476
31477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31478$as_echo "yes" >&6; }
31479 tst_links_freeaddrinfo="yes"
31480
31481else
31482
31483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31484$as_echo "no" >&6; }
31485 tst_links_freeaddrinfo="no"
31486
31487fi
31488rm -f core conftest.err conftest.$ac_objext \
31489 conftest$ac_exeext conftest.$ac_ext
31490 #
31491 if test "$tst_links_freeaddrinfo" = "yes"; then
31492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31493$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31495/* end confdefs.h. */
31496
31497 $curl_includes_ws2tcpip
31498 $curl_includes_sys_socket
31499 $curl_includes_netdb
31500
31501_ACEOF
31502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31503 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31504
31505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31506$as_echo "yes" >&6; }
31507 tst_proto_freeaddrinfo="yes"
31508
31509else
31510
31511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31512$as_echo "no" >&6; }
31513 tst_proto_freeaddrinfo="no"
31514
31515fi
31516rm -f conftest*
31517
31518 fi
31519 #
31520 if test "$tst_proto_freeaddrinfo" = "yes"; then
31521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31522$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31524/* end confdefs.h. */
31525
31526
31527 $curl_includes_ws2tcpip
31528 $curl_includes_sys_socket
31529 $curl_includes_netdb
31530
31531int main (void)
31532{
31533
31534 freeaddrinfo(0);
31535
31536 ;
31537 return 0;
31538}
31539
31540_ACEOF
31541if ac_fn_c_try_compile "$LINENO"; then :
31542
31543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31544$as_echo "yes" >&6; }
31545 tst_compi_freeaddrinfo="yes"
31546
31547else
31548
31549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31550$as_echo "no" >&6; }
31551 tst_compi_freeaddrinfo="no"
31552
31553fi
31554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31555 fi
31556 #
31557 if test "$tst_compi_freeaddrinfo" = "yes"; then
31558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31559$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31560 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31562$as_echo "yes" >&6; }
31563 tst_allow_freeaddrinfo="yes"
31564 else
31565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31566$as_echo "no" >&6; }
31567 tst_allow_freeaddrinfo="no"
31568 fi
31569 fi
31570 #
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31572$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31573 if test "$tst_links_freeaddrinfo" = "yes" &&
31574 test "$tst_proto_freeaddrinfo" = "yes" &&
31575 test "$tst_compi_freeaddrinfo" = "yes" &&
31576 test "$tst_allow_freeaddrinfo" = "yes"; then
31577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31578$as_echo "yes" >&6; }
31579
31580cat >>confdefs.h <<_ACEOF
31581#define HAVE_FREEADDRINFO 1
31582_ACEOF
31583
31584 curl_cv_func_freeaddrinfo="yes"
31585 else
31586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31587$as_echo "no" >&6; }
31588 curl_cv_func_freeaddrinfo="no"
31589 fi
31590
31591
31592curl_includes_ifaddrs="\
31593/* includes start */
31594#ifdef HAVE_SYS_TYPES_H
31595# include <sys/types.h>
31596#endif
31597#ifdef HAVE_SYS_SOCKET_H
31598# include <sys/socket.h>
31599#endif
31600#ifdef HAVE_NETINET_IN_H
31601# include <netinet/in.h>
31602#endif
31603#ifdef HAVE_IFADDRS_H
31604# include <ifaddrs.h>
31605#endif
31606/* includes end */"
31607 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31608do :
31609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31610ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31611"
31612if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31613 cat >>confdefs.h <<_ACEOF
31614#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31615_ACEOF
31616
31617fi
31618
31619done
31620
31621
31622
31623 #
31624 tst_links_freeifaddrs="unknown"
31625 tst_proto_freeifaddrs="unknown"
31626 tst_compi_freeifaddrs="unknown"
31627 tst_allow_freeifaddrs="unknown"
31628 #
31629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31630$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31632/* end confdefs.h. */
31633
31634
31635#define freeifaddrs innocuous_freeifaddrs
31636#ifdef __STDC__
31637# include <limits.h>
31638#else
31639# include <assert.h>
31640#endif
31641#undef freeifaddrs
31642#ifdef __cplusplus
31643extern "C"
31644#endif
31645char freeifaddrs ();
31646#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31647choke me
31648#endif
31649
31650int main (void)
31651{
31652return freeifaddrs ();
31653 ;
31654 return 0;
31655}
31656
31657_ACEOF
31658if ac_fn_c_try_link "$LINENO"; then :
31659
31660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31661$as_echo "yes" >&6; }
31662 tst_links_freeifaddrs="yes"
31663
31664else
31665
31666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31667$as_echo "no" >&6; }
31668 tst_links_freeifaddrs="no"
31669
31670fi
31671rm -f core conftest.err conftest.$ac_objext \
31672 conftest$ac_exeext conftest.$ac_ext
31673 #
31674 if test "$tst_links_freeifaddrs" = "yes"; then
31675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31676$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31678/* end confdefs.h. */
31679
31680 $curl_includes_ifaddrs
31681
31682_ACEOF
31683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31684 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31685
31686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31687$as_echo "yes" >&6; }
31688 tst_proto_freeifaddrs="yes"
31689
31690else
31691
31692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31693$as_echo "no" >&6; }
31694 tst_proto_freeifaddrs="no"
31695
31696fi
31697rm -f conftest*
31698
31699 fi
31700 #
31701 if test "$tst_proto_freeifaddrs" = "yes"; then
31702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31703$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31705/* end confdefs.h. */
31706
31707
31708 $curl_includes_ifaddrs
31709
31710int main (void)
31711{
31712
31713 freeifaddrs(0);
31714
31715 ;
31716 return 0;
31717}
31718
31719_ACEOF
31720if ac_fn_c_try_compile "$LINENO"; then :
31721
31722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31723$as_echo "yes" >&6; }
31724 tst_compi_freeifaddrs="yes"
31725
31726else
31727
31728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31729$as_echo "no" >&6; }
31730 tst_compi_freeifaddrs="no"
31731
31732fi
31733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31734 fi
31735 #
31736 if test "$tst_compi_freeifaddrs" = "yes"; then
31737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31738$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31739 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31741$as_echo "yes" >&6; }
31742 tst_allow_freeifaddrs="yes"
31743 else
31744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31745$as_echo "no" >&6; }
31746 tst_allow_freeifaddrs="no"
31747 fi
31748 fi
31749 #
31750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31751$as_echo_n "checking if freeifaddrs might be used... " >&6; }
31752 if test "$tst_links_freeifaddrs" = "yes" &&
31753 test "$tst_proto_freeifaddrs" = "yes" &&
31754 test "$tst_compi_freeifaddrs" = "yes" &&
31755 test "$tst_allow_freeifaddrs" = "yes"; then
31756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31757$as_echo "yes" >&6; }
31758
31759cat >>confdefs.h <<_ACEOF
31760#define HAVE_FREEIFADDRS 1
31761_ACEOF
31762
31763 curl_cv_func_freeifaddrs="yes"
31764 else
31765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31766$as_echo "no" >&6; }
31767 curl_cv_func_freeifaddrs="no"
31768 fi
31769
31770
31771curl_includes_sys_xattr="\
31772/* includes start */
31773#ifdef HAVE_SYS_TYPES_H
31774# include <sys/types.h>
31775#endif
31776#ifdef HAVE_SYS_XATTR_H
31777# include <sys/xattr.h>
31778#endif
31779/* includes end */"
31780 for ac_header in sys/types.h sys/xattr.h
31781do :
31782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31783ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31784"
31785if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31786 cat >>confdefs.h <<_ACEOF
31787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31788_ACEOF
31789
31790fi
31791
31792done
31793
31794
31795
31796 #
31797 tst_links_fsetxattr="unknown"
31798 tst_proto_fsetxattr="unknown"
31799 tst_compi_fsetxattr="unknown"
31800 tst_allow_fsetxattr="unknown"
31801 tst_nargs_fsetxattr="unknown"
31802 #
31803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31804$as_echo_n "checking if fsetxattr can be linked... " >&6; }
31805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31806/* end confdefs.h. */
31807
31808
31809#define fsetxattr innocuous_fsetxattr
31810#ifdef __STDC__
31811# include <limits.h>
31812#else
31813# include <assert.h>
31814#endif
31815#undef fsetxattr
31816#ifdef __cplusplus
31817extern "C"
31818#endif
31819char fsetxattr ();
31820#if defined __stub_fsetxattr || defined __stub___fsetxattr
31821choke me
31822#endif
31823
31824int main (void)
31825{
31826return fsetxattr ();
31827 ;
31828 return 0;
31829}
31830
31831_ACEOF
31832if ac_fn_c_try_link "$LINENO"; then :
31833
31834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31835$as_echo "yes" >&6; }
31836 tst_links_fsetxattr="yes"
31837
31838else
31839
31840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31841$as_echo "no" >&6; }
31842 tst_links_fsetxattr="no"
31843
31844fi
31845rm -f core conftest.err conftest.$ac_objext \
31846 conftest$ac_exeext conftest.$ac_ext
31847 #
31848 if test "$tst_links_fsetxattr" = "yes"; then
31849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
31850$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
31851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31852/* end confdefs.h. */
31853
31854 $curl_includes_sys_xattr
31855
31856_ACEOF
31857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31858 $EGREP "fsetxattr" >/dev/null 2>&1; then :
31859
31860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31861$as_echo "yes" >&6; }
31862 tst_proto_fsetxattr="yes"
31863
31864else
31865
31866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31867$as_echo "no" >&6; }
31868 tst_proto_fsetxattr="no"
31869
31870fi
31871rm -f conftest*
31872
31873 fi
31874 #
31875 if test "$tst_proto_fsetxattr" = "yes"; then
31876 if test "$tst_nargs_fsetxattr" = "unknown"; then
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
31878$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
31879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31880/* end confdefs.h. */
31881
31882
31883 $curl_includes_sys_xattr
31884
31885int main (void)
31886{
31887
31888 if(0 != fsetxattr(0, 0, 0, 0, 0))
31889 return 1;
31890
31891 ;
31892 return 0;
31893}
31894
31895_ACEOF
31896if ac_fn_c_try_compile "$LINENO"; then :
31897
31898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31899$as_echo "yes" >&6; }
31900 tst_compi_fsetxattr="yes"
31901 tst_nargs_fsetxattr="5"
31902
31903else
31904
31905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31906$as_echo "no" >&6; }
31907 tst_compi_fsetxattr="no"
31908
31909fi
31910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31911 fi
31912 if test "$tst_nargs_fsetxattr" = "unknown"; then
31913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
31914$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
31915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31916/* end confdefs.h. */
31917
31918
31919 $curl_includes_sys_xattr
31920
31921int main (void)
31922{
31923
31924 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
31925 return 1;
31926
31927 ;
31928 return 0;
31929}
31930
31931_ACEOF
31932if ac_fn_c_try_compile "$LINENO"; then :
31933
31934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31935$as_echo "yes" >&6; }
31936 tst_compi_fsetxattr="yes"
31937 tst_nargs_fsetxattr="6"
31938
31939else
31940
31941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31942$as_echo "no" >&6; }
31943 tst_compi_fsetxattr="no"
31944
31945fi
31946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31947 fi
31948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
31949$as_echo_n "checking if fsetxattr is compilable... " >&6; }
31950 if test "$tst_compi_fsetxattr" = "yes"; then
31951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31952$as_echo "yes" >&6; }
31953 else
31954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31955$as_echo "no" >&6; }
31956 fi
31957 fi
31958 #
31959 if test "$tst_compi_fsetxattr" = "yes"; then
31960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
31961$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
31962 if test "x$curl_disallow_fsetxattr" != "xyes"; then
31963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31964$as_echo "yes" >&6; }
31965 tst_allow_fsetxattr="yes"
31966 else
31967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31968$as_echo "no" >&6; }
31969 tst_allow_fsetxattr="no"
31970 fi
31971 fi
31972 #
31973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
31974$as_echo_n "checking if fsetxattr might be used... " >&6; }
31975 if test "$tst_links_fsetxattr" = "yes" &&
31976 test "$tst_proto_fsetxattr" = "yes" &&
31977 test "$tst_compi_fsetxattr" = "yes" &&
31978 test "$tst_allow_fsetxattr" = "yes"; then
31979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31980$as_echo "yes" >&6; }
31981
31982cat >>confdefs.h <<_ACEOF
31983#define HAVE_FSETXATTR 1
31984_ACEOF
31985
31986 #
31987 if test "$tst_nargs_fsetxattr" -eq "5"; then
31988
31989$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
31990
31991 elif test "$tst_nargs_fsetxattr" -eq "6"; then
31992
31993$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
31994
31995 fi
31996 #
31997 curl_cv_func_fsetxattr="yes"
31998 else
31999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32000$as_echo "no" >&6; }
32001 curl_cv_func_fsetxattr="no"
32002 fi
32003
32004
32005 #
32006 tst_links_ftruncate="unknown"
32007 tst_proto_ftruncate="unknown"
32008 tst_compi_ftruncate="unknown"
32009 tst_allow_ftruncate="unknown"
32010 #
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32012$as_echo_n "checking if ftruncate can be linked... " >&6; }
32013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32014/* end confdefs.h. */
32015
32016
32017#define ftruncate innocuous_ftruncate
32018#ifdef __STDC__
32019# include <limits.h>
32020#else
32021# include <assert.h>
32022#endif
32023#undef ftruncate
32024#ifdef __cplusplus
32025extern "C"
32026#endif
32027char ftruncate ();
32028#if defined __stub_ftruncate || defined __stub___ftruncate
32029choke me
32030#endif
32031
32032int main (void)
32033{
32034return ftruncate ();
32035 ;
32036 return 0;
32037}
32038
32039_ACEOF
32040if ac_fn_c_try_link "$LINENO"; then :
32041
32042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32043$as_echo "yes" >&6; }
32044 tst_links_ftruncate="yes"
32045
32046else
32047
32048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32049$as_echo "no" >&6; }
32050 tst_links_ftruncate="no"
32051
32052fi
32053rm -f core conftest.err conftest.$ac_objext \
32054 conftest$ac_exeext conftest.$ac_ext
32055 #
32056 if test "$tst_links_ftruncate" = "yes"; then
32057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32058$as_echo_n "checking if ftruncate is prototyped... " >&6; }
32059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32060/* end confdefs.h. */
32061
32062 $curl_includes_unistd
32063
32064_ACEOF
32065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32066 $EGREP "ftruncate" >/dev/null 2>&1; then :
32067
32068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32069$as_echo "yes" >&6; }
32070 tst_proto_ftruncate="yes"
32071
32072else
32073
32074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32075$as_echo "no" >&6; }
32076 tst_proto_ftruncate="no"
32077
32078fi
32079rm -f conftest*
32080
32081 fi
32082 #
32083 if test "$tst_proto_ftruncate" = "yes"; then
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32085$as_echo_n "checking if ftruncate is compilable... " >&6; }
32086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32087/* end confdefs.h. */
32088
32089
32090 $curl_includes_unistd
32091
32092int main (void)
32093{
32094
32095 if(0 != ftruncate(0, 0))
32096 return 1;
32097
32098 ;
32099 return 0;
32100}
32101
32102_ACEOF
32103if ac_fn_c_try_compile "$LINENO"; then :
32104
32105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32106$as_echo "yes" >&6; }
32107 tst_compi_ftruncate="yes"
32108
32109else
32110
32111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32112$as_echo "no" >&6; }
32113 tst_compi_ftruncate="no"
32114
32115fi
32116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32117 fi
32118 #
32119 if test "$tst_compi_ftruncate" = "yes"; then
32120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32121$as_echo_n "checking if ftruncate usage allowed... " >&6; }
32122 if test "x$curl_disallow_ftruncate" != "xyes"; then
32123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32124$as_echo "yes" >&6; }
32125 tst_allow_ftruncate="yes"
32126 else
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32128$as_echo "no" >&6; }
32129 tst_allow_ftruncate="no"
32130 fi
32131 fi
32132 #
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32134$as_echo_n "checking if ftruncate might be used... " >&6; }
32135 if test "$tst_links_ftruncate" = "yes" &&
32136 test "$tst_proto_ftruncate" = "yes" &&
32137 test "$tst_compi_ftruncate" = "yes" &&
32138 test "$tst_allow_ftruncate" = "yes"; then
32139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32140$as_echo "yes" >&6; }
32141
32142cat >>confdefs.h <<_ACEOF
32143#define HAVE_FTRUNCATE 1
32144_ACEOF
32145
32146 curl_cv_func_ftruncate="yes"
32147 else
32148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32149$as_echo "no" >&6; }
32150 curl_cv_func_ftruncate="no"
32151 fi
32152
32153
32154curl_includes_stdlib="\
32155/* includes start */
32156#ifdef HAVE_SYS_TYPES_H
32157# include <sys/types.h>
32158#endif
32159#ifdef HAVE_STDLIB_H
32160# include <stdlib.h>
32161#endif
32162/* includes end */"
32163 for ac_header in sys/types.h stdlib.h
32164do :
32165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32166ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32167"
32168if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32169 cat >>confdefs.h <<_ACEOF
32170#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32171_ACEOF
32172
32173fi
32174
32175done
32176
32177
32178
32179 #
32180 tst_links_getaddrinfo="unknown"
32181 tst_proto_getaddrinfo="unknown"
32182 tst_compi_getaddrinfo="unknown"
32183 tst_works_getaddrinfo="unknown"
32184 tst_allow_getaddrinfo="unknown"
32185 tst_tsafe_getaddrinfo="unknown"
32186 #
32187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32188$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32190/* end confdefs.h. */
32191
32192
32193 $curl_includes_ws2tcpip
32194 $curl_includes_sys_socket
32195 $curl_includes_netdb
32196
32197int main (void)
32198{
32199
32200 if(0 != getaddrinfo(0, 0, 0, 0))
32201 return 1;
32202
32203 ;
32204 return 0;
32205}
32206
32207_ACEOF
32208if ac_fn_c_try_link "$LINENO"; then :
32209
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32211$as_echo "yes" >&6; }
32212 tst_links_getaddrinfo="yes"
32213
32214else
32215
32216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32217$as_echo "no" >&6; }
32218 tst_links_getaddrinfo="no"
32219
32220fi
32221rm -f core conftest.err conftest.$ac_objext \
32222 conftest$ac_exeext conftest.$ac_ext
32223 #
32224 if test "$tst_links_getaddrinfo" = "yes"; then
32225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32226$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32228/* end confdefs.h. */
32229
32230 $curl_includes_ws2tcpip
32231 $curl_includes_sys_socket
32232 $curl_includes_netdb
32233
32234_ACEOF
32235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32236 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32237
32238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32239$as_echo "yes" >&6; }
32240 tst_proto_getaddrinfo="yes"
32241
32242else
32243
32244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32245$as_echo "no" >&6; }
32246 tst_proto_getaddrinfo="no"
32247
32248fi
32249rm -f conftest*
32250
32251 fi
32252 #
32253 if test "$tst_proto_getaddrinfo" = "yes"; then
32254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32255$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32257/* end confdefs.h. */
32258
32259
32260 $curl_includes_ws2tcpip
32261 $curl_includes_sys_socket
32262 $curl_includes_netdb
32263
32264int main (void)
32265{
32266
32267 if(0 != getaddrinfo(0, 0, 0, 0))
32268 return 1;
32269
32270 ;
32271 return 0;
32272}
32273
32274_ACEOF
32275if ac_fn_c_try_compile "$LINENO"; then :
32276
32277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32278$as_echo "yes" >&6; }
32279 tst_compi_getaddrinfo="yes"
32280
32281else
32282
32283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32284$as_echo "no" >&6; }
32285 tst_compi_getaddrinfo="no"
32286
32287fi
32288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32289 fi
32290 #
32291 if test "x$cross_compiling" != "xyes" &&
32292 test "$tst_compi_getaddrinfo" = "yes"; then
32293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32294$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080032295
32296
32297 old=$LD_LIBRARY_PATH
32298 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
32299 export LD_LIBRARY_PATH
32300 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070032301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32303as_fn_error $? "cannot run test program while cross compiling
32304See \`config.log' for more details" "$LINENO" 5; }
32305else
32306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32307/* end confdefs.h. */
32308
32309
32310 $curl_includes_ws2tcpip
32311 $curl_includes_stdlib
32312 $curl_includes_string
32313 $curl_includes_sys_socket
32314 $curl_includes_netdb
32315
32316int main (void)
32317{
32318
32319 struct addrinfo hints;
32320 struct addrinfo *ai = 0;
32321 int error;
32322
32323 #ifdef HAVE_WINSOCK2_H
32324 WSADATA wsa;
32325 if (WSAStartup(MAKEWORD(2,2), &wsa))
32326 exit(2);
32327 #endif
32328
32329 memset(&hints, 0, sizeof(hints));
32330 hints.ai_flags = AI_NUMERICHOST;
32331 hints.ai_family = AF_UNSPEC;
32332 hints.ai_socktype = SOCK_STREAM;
32333 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32334 if(error || !ai)
32335 exit(1); /* fail */
32336 else
32337 exit(0);
32338
32339 ;
32340 return 0;
32341}
32342
32343_ACEOF
32344if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080032345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070032346$as_echo "yes" >&6; }
32347 tst_works_getaddrinfo="yes"
32348
32349else
Elliott Hughesa93fb052018-12-12 14:22:48 -080032350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070032351$as_echo "no" >&6; }
32352 tst_works_getaddrinfo="no"
32353
32354fi
32355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32356 conftest.$ac_objext conftest.beam conftest.$ac_ext
32357fi
32358
Elliott Hughesa93fb052018-12-12 14:22:48 -080032359 LD_LIBRARY_PATH=$old # restore
32360
Elliott Hughes82be86d2017-09-20 17:00:17 -070032361 fi
32362 #
32363 if test "$tst_compi_getaddrinfo" = "yes" &&
32364 test "$tst_works_getaddrinfo" != "no"; then
32365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32366$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32367 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32369$as_echo "yes" >&6; }
32370 tst_allow_getaddrinfo="yes"
32371 else
32372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32373$as_echo "no" >&6; }
32374 tst_allow_getaddrinfo="no"
32375 fi
32376 fi
32377 #
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32379$as_echo_n "checking if getaddrinfo might be used... " >&6; }
32380 if test "$tst_links_getaddrinfo" = "yes" &&
32381 test "$tst_proto_getaddrinfo" = "yes" &&
32382 test "$tst_compi_getaddrinfo" = "yes" &&
32383 test "$tst_allow_getaddrinfo" = "yes" &&
32384 test "$tst_works_getaddrinfo" != "no"; then
32385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32386$as_echo "yes" >&6; }
32387
32388cat >>confdefs.h <<_ACEOF
32389#define HAVE_GETADDRINFO 1
32390_ACEOF
32391
32392 curl_cv_func_getaddrinfo="yes"
32393 else
32394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32395$as_echo "no" >&6; }
32396 curl_cv_func_getaddrinfo="no"
32397 curl_cv_func_getaddrinfo_threadsafe="no"
32398 fi
32399 #
32400 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32402$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32403 case $host_os in
32404 aix[1234].* | aix5.[01].*)
32405 tst_tsafe_getaddrinfo="no"
32406 ;;
32407 aix*)
32408 tst_tsafe_getaddrinfo="yes"
32409 ;;
32410 darwin[12345].*)
32411 tst_tsafe_getaddrinfo="no"
32412 ;;
32413 darwin*)
32414 tst_tsafe_getaddrinfo="yes"
32415 ;;
32416 freebsd[1234].* | freebsd5.[1234]*)
32417 tst_tsafe_getaddrinfo="no"
32418 ;;
32419 freebsd*)
32420 tst_tsafe_getaddrinfo="yes"
32421 ;;
32422 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32423 tst_tsafe_getaddrinfo="no"
32424 ;;
32425 hpux*)
32426 tst_tsafe_getaddrinfo="yes"
32427 ;;
32428 netbsd[123].*)
32429 tst_tsafe_getaddrinfo="no"
32430 ;;
32431 netbsd*)
32432 tst_tsafe_getaddrinfo="yes"
32433 ;;
32434 *bsd*)
32435 tst_tsafe_getaddrinfo="no"
32436 ;;
32437 solaris2*)
32438 tst_tsafe_getaddrinfo="yes"
32439 ;;
32440 esac
32441 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32442 test "$curl_cv_native_windows" = "yes"; then
32443 tst_tsafe_getaddrinfo="yes"
32444 fi
32445 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32446
32447
32448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32449/* end confdefs.h. */
32450
32451
32452 $curl_includes_sys_socket
32453 $curl_includes_netdb
32454
32455int main (void)
32456{
32457#ifdef h_errno
32458 return 0;
32459#else
32460 force compilation error
32461#endif
32462}
32463
32464
32465_ACEOF
32466if ac_fn_c_try_compile "$LINENO"; then :
32467
32468 tst_symbol_defined="yes"
32469
32470else
32471
32472 tst_symbol_defined="no"
32473
32474fi
32475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32476 if test "$tst_symbol_defined" = "yes"; then
32477 curl_cv_have_def_h_errno=yes
32478
32479 else
32480 curl_cv_have_def_h_errno=no
32481
32482 fi
32483
32484 if test "$curl_cv_have_def_h_errno" = "yes"; then
32485 tst_h_errno_macro="yes"
32486 else
32487 tst_h_errno_macro="no"
32488 fi
32489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32490/* end confdefs.h. */
32491
32492
32493 $curl_includes_sys_socket
32494 $curl_includes_netdb
32495
32496int main (void)
32497{
32498
32499 h_errno = 2;
32500 if(0 != h_errno)
32501 return 1;
32502
32503 ;
32504 return 0;
32505}
32506
32507_ACEOF
32508if ac_fn_c_try_compile "$LINENO"; then :
32509
32510 tst_h_errno_modifiable_lvalue="yes"
32511
32512else
32513
32514 tst_h_errno_modifiable_lvalue="no"
32515
32516fi
32517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32519/* end confdefs.h. */
32520
32521
32522
32523int main (void)
32524{
32525
32526#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32527 return 0;
32528#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32529 return 0;
32530#else
32531 force compilation error
32532#endif
32533
32534 ;
32535 return 0;
32536}
32537
32538_ACEOF
32539if ac_fn_c_try_compile "$LINENO"; then :
32540
32541 tst_h_errno_sbs_issue_7="yes"
32542
32543else
32544
32545 tst_h_errno_sbs_issue_7="no"
32546
32547fi
32548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32549 if test "$tst_h_errno_macro" = "no" &&
32550 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32551 test "$tst_h_errno_sbs_issue_7" = "no"; then
32552 tst_tsafe_getaddrinfo="no"
32553 else
32554 tst_tsafe_getaddrinfo="yes"
32555 fi
32556 fi
32557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32558$as_echo "$tst_tsafe_getaddrinfo" >&6; }
32559 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32560
32561cat >>confdefs.h <<_ACEOF
32562#define HAVE_GETADDRINFO_THREADSAFE 1
32563_ACEOF
32564
32565 curl_cv_func_getaddrinfo_threadsafe="yes"
32566 else
32567 curl_cv_func_getaddrinfo_threadsafe="no"
32568 fi
32569 fi
32570
32571
32572 #
32573 tst_links_gai_strerror="unknown"
32574 tst_proto_gai_strerror="unknown"
32575 tst_compi_gai_strerror="unknown"
32576 tst_allow_gai_strerror="unknown"
32577 #
32578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32579$as_echo_n "checking if gai_strerror can be linked... " >&6; }
32580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32581/* end confdefs.h. */
32582
32583
32584 $curl_includes_winsock2
32585 $curl_includes_netdb
32586
32587int main (void)
32588{
32589
32590 if(0 != gai_strerror(0))
32591 return 1;
32592
32593 ;
32594 return 0;
32595}
32596
32597_ACEOF
32598if ac_fn_c_try_link "$LINENO"; then :
32599
32600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32601$as_echo "yes" >&6; }
32602 tst_links_gai_strerror="yes"
32603
32604else
32605
32606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32607$as_echo "no" >&6; }
32608 tst_links_gai_strerror="no"
32609
32610fi
32611rm -f core conftest.err conftest.$ac_objext \
32612 conftest$ac_exeext conftest.$ac_ext
32613 #
32614 if test "$tst_links_gai_strerror" = "yes"; then
32615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32616$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32618/* end confdefs.h. */
32619
32620 $curl_includes_winsock2
32621 $curl_includes_netdb
32622
32623_ACEOF
32624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32625 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32626
32627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32628$as_echo "yes" >&6; }
32629 tst_proto_gai_strerror="yes"
32630
32631else
32632
32633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32634$as_echo "no" >&6; }
32635 tst_proto_gai_strerror="no"
32636
32637fi
32638rm -f conftest*
32639
32640 fi
32641 #
32642 if test "$tst_proto_gai_strerror" = "yes"; then
32643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32644$as_echo_n "checking if gai_strerror is compilable... " >&6; }
32645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32646/* end confdefs.h. */
32647
32648
32649 $curl_includes_winsock2
32650 $curl_includes_netdb
32651
32652int main (void)
32653{
32654
32655 if(0 != gai_strerror(0))
32656 return 1;
32657
32658 ;
32659 return 0;
32660}
32661
32662_ACEOF
32663if ac_fn_c_try_compile "$LINENO"; then :
32664
32665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32666$as_echo "yes" >&6; }
32667 tst_compi_gai_strerror="yes"
32668
32669else
32670
32671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32672$as_echo "no" >&6; }
32673 tst_compi_gai_strerror="no"
32674
32675fi
32676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32677 fi
32678 #
32679 if test "$tst_compi_gai_strerror" = "yes"; then
32680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32681$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32682 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32684$as_echo "yes" >&6; }
32685 tst_allow_gai_strerror="yes"
32686 else
32687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32688$as_echo "no" >&6; }
32689 tst_allow_gai_strerror="no"
32690 fi
32691 fi
32692 #
32693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32694$as_echo_n "checking if gai_strerror might be used... " >&6; }
32695 if test "$tst_links_gai_strerror" = "yes" &&
32696 test "$tst_proto_gai_strerror" = "yes" &&
32697 test "$tst_compi_gai_strerror" = "yes" &&
32698 test "$tst_allow_gai_strerror" = "yes"; then
32699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32700$as_echo "yes" >&6; }
32701
32702cat >>confdefs.h <<_ACEOF
32703#define HAVE_GAI_STRERROR 1
32704_ACEOF
32705
32706 curl_cv_func_gai_strerror="yes"
32707 else
32708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32709$as_echo "no" >&6; }
32710 curl_cv_func_gai_strerror="no"
32711 fi
32712
32713
32714 #
32715 tst_links_gethostbyaddr="unknown"
32716 tst_proto_gethostbyaddr="unknown"
32717 tst_compi_gethostbyaddr="unknown"
32718 tst_allow_gethostbyaddr="unknown"
32719 #
32720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32721$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32723/* end confdefs.h. */
32724
32725
32726 $curl_includes_winsock2
32727 $curl_includes_netdb
32728
32729int main (void)
32730{
32731
32732 if(0 != gethostbyaddr(0, 0, 0))
32733 return 1;
32734
32735 ;
32736 return 0;
32737}
32738
32739_ACEOF
32740if ac_fn_c_try_link "$LINENO"; then :
32741
32742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32743$as_echo "yes" >&6; }
32744 tst_links_gethostbyaddr="yes"
32745
32746else
32747
32748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32749$as_echo "no" >&6; }
32750 tst_links_gethostbyaddr="no"
32751
32752fi
32753rm -f core conftest.err conftest.$ac_objext \
32754 conftest$ac_exeext conftest.$ac_ext
32755 #
32756 if test "$tst_links_gethostbyaddr" = "yes"; then
32757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32758$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32760/* end confdefs.h. */
32761
32762 $curl_includes_winsock2
32763 $curl_includes_netdb
32764
32765_ACEOF
32766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32767 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32768
32769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32770$as_echo "yes" >&6; }
32771 tst_proto_gethostbyaddr="yes"
32772
32773else
32774
32775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32776$as_echo "no" >&6; }
32777 tst_proto_gethostbyaddr="no"
32778
32779fi
32780rm -f conftest*
32781
32782 fi
32783 #
32784 if test "$tst_proto_gethostbyaddr" = "yes"; then
32785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32786$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32788/* end confdefs.h. */
32789
32790
32791 $curl_includes_winsock2
32792 $curl_includes_netdb
32793
32794int main (void)
32795{
32796
32797 if(0 != gethostbyaddr(0, 0, 0))
32798 return 1;
32799
32800 ;
32801 return 0;
32802}
32803
32804_ACEOF
32805if ac_fn_c_try_compile "$LINENO"; then :
32806
32807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32808$as_echo "yes" >&6; }
32809 tst_compi_gethostbyaddr="yes"
32810
32811else
32812
32813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32814$as_echo "no" >&6; }
32815 tst_compi_gethostbyaddr="no"
32816
32817fi
32818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32819 fi
32820 #
32821 if test "$tst_compi_gethostbyaddr" = "yes"; then
32822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32823$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32824 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32826$as_echo "yes" >&6; }
32827 tst_allow_gethostbyaddr="yes"
32828 else
32829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32830$as_echo "no" >&6; }
32831 tst_allow_gethostbyaddr="no"
32832 fi
32833 fi
32834 #
32835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
32836$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
32837 if test "$tst_links_gethostbyaddr" = "yes" &&
32838 test "$tst_proto_gethostbyaddr" = "yes" &&
32839 test "$tst_compi_gethostbyaddr" = "yes" &&
32840 test "$tst_allow_gethostbyaddr" = "yes"; then
32841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32842$as_echo "yes" >&6; }
32843
32844cat >>confdefs.h <<_ACEOF
32845#define HAVE_GETHOSTBYADDR 1
32846_ACEOF
32847
32848 curl_cv_func_gethostbyaddr="yes"
32849 else
32850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32851$as_echo "no" >&6; }
32852 curl_cv_func_gethostbyaddr="no"
32853 fi
32854
32855
32856 #
32857 tst_links_gethostbyaddr_r="unknown"
32858 tst_proto_gethostbyaddr_r="unknown"
32859 tst_compi_gethostbyaddr_r="unknown"
32860 tst_allow_gethostbyaddr_r="unknown"
32861 tst_nargs_gethostbyaddr_r="unknown"
32862 #
32863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
32864$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
32865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32866/* end confdefs.h. */
32867
32868
32869#define gethostbyaddr_r innocuous_gethostbyaddr_r
32870#ifdef __STDC__
32871# include <limits.h>
32872#else
32873# include <assert.h>
32874#endif
32875#undef gethostbyaddr_r
32876#ifdef __cplusplus
32877extern "C"
32878#endif
32879char gethostbyaddr_r ();
32880#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
32881choke me
32882#endif
32883
32884int main (void)
32885{
32886return gethostbyaddr_r ();
32887 ;
32888 return 0;
32889}
32890
32891_ACEOF
32892if ac_fn_c_try_link "$LINENO"; then :
32893
32894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32895$as_echo "yes" >&6; }
32896 tst_links_gethostbyaddr_r="yes"
32897
32898else
32899
32900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32901$as_echo "no" >&6; }
32902 tst_links_gethostbyaddr_r="no"
32903
32904fi
32905rm -f core conftest.err conftest.$ac_objext \
32906 conftest$ac_exeext conftest.$ac_ext
32907 #
32908 if test "$tst_links_gethostbyaddr_r" = "yes"; then
32909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
32910$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
32911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32912/* end confdefs.h. */
32913
32914 $curl_includes_netdb
32915
32916_ACEOF
32917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32918 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
32919
32920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32921$as_echo "yes" >&6; }
32922 tst_proto_gethostbyaddr_r="yes"
32923
32924else
32925
32926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32927$as_echo "no" >&6; }
32928 tst_proto_gethostbyaddr_r="no"
32929
32930fi
32931rm -f conftest*
32932
32933 fi
32934 #
32935 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
32936 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
32938$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
32939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32940/* end confdefs.h. */
32941
32942
32943 $curl_includes_netdb
32944
32945int main (void)
32946{
32947
32948 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
32949 return 1;
32950
32951 ;
32952 return 0;
32953}
32954
32955_ACEOF
32956if ac_fn_c_try_compile "$LINENO"; then :
32957
32958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32959$as_echo "yes" >&6; }
32960 tst_compi_gethostbyaddr_r="yes"
32961 tst_nargs_gethostbyaddr_r="5"
32962
32963else
32964
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32966$as_echo "no" >&6; }
32967 tst_compi_gethostbyaddr_r="no"
32968
32969fi
32970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32971 fi
32972 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
32974$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
32975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32976/* end confdefs.h. */
32977
32978
32979 $curl_includes_netdb
32980
32981int main (void)
32982{
32983
32984 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
32985 return 1;
32986
32987 ;
32988 return 0;
32989}
32990
32991_ACEOF
32992if ac_fn_c_try_compile "$LINENO"; then :
32993
32994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32995$as_echo "yes" >&6; }
32996 tst_compi_gethostbyaddr_r="yes"
32997 tst_nargs_gethostbyaddr_r="7"
32998
32999else
33000
33001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33002$as_echo "no" >&6; }
33003 tst_compi_gethostbyaddr_r="no"
33004
33005fi
33006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33007 fi
33008 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33010$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33012/* end confdefs.h. */
33013
33014
33015 $curl_includes_netdb
33016
33017int main (void)
33018{
33019
33020 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33021 return 1;
33022
33023 ;
33024 return 0;
33025}
33026
33027_ACEOF
33028if ac_fn_c_try_compile "$LINENO"; then :
33029
33030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33031$as_echo "yes" >&6; }
33032 tst_compi_gethostbyaddr_r="yes"
33033 tst_nargs_gethostbyaddr_r="8"
33034
33035else
33036
33037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33038$as_echo "no" >&6; }
33039 tst_compi_gethostbyaddr_r="no"
33040
33041fi
33042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33043 fi
33044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33045$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33046 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33048$as_echo "yes" >&6; }
33049 else
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33051$as_echo "no" >&6; }
33052 fi
33053 fi
33054 #
33055 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33057$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33058 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33060$as_echo "yes" >&6; }
33061 tst_allow_gethostbyaddr_r="yes"
33062 else
33063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33064$as_echo "no" >&6; }
33065 tst_allow_gethostbyaddr_r="no"
33066 fi
33067 fi
33068 #
33069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33070$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33071 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33072 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33073 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33074 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33076$as_echo "yes" >&6; }
33077
33078cat >>confdefs.h <<_ACEOF
33079#define HAVE_GETHOSTBYADDR_R 1
33080_ACEOF
33081
33082 #
33083 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33084
33085$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33086
33087 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33088
33089$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33090
33091 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33092
33093$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33094
33095 fi
33096 #
33097 curl_cv_func_gethostbyaddr_r="yes"
33098 else
33099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33100$as_echo "no" >&6; }
33101 curl_cv_func_gethostbyaddr_r="no"
33102 fi
33103
33104
33105 #
33106 tst_links_gethostbyname="unknown"
33107 tst_proto_gethostbyname="unknown"
33108 tst_compi_gethostbyname="unknown"
33109 tst_allow_gethostbyname="unknown"
33110 #
33111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33112$as_echo_n "checking if gethostbyname can be linked... " >&6; }
33113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33114/* end confdefs.h. */
33115
33116
33117 $curl_includes_winsock2
33118 $curl_includes_netdb
33119
33120int main (void)
33121{
33122
33123 if(0 != gethostbyname(0))
33124 return 1;
33125
33126 ;
33127 return 0;
33128}
33129
33130_ACEOF
33131if ac_fn_c_try_link "$LINENO"; then :
33132
33133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33134$as_echo "yes" >&6; }
33135 tst_links_gethostbyname="yes"
33136
33137else
33138
33139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33140$as_echo "no" >&6; }
33141 tst_links_gethostbyname="no"
33142
33143fi
33144rm -f core conftest.err conftest.$ac_objext \
33145 conftest$ac_exeext conftest.$ac_ext
33146 #
33147 if test "$tst_links_gethostbyname" = "yes"; then
33148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33149$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33151/* end confdefs.h. */
33152
33153 $curl_includes_winsock2
33154 $curl_includes_netdb
33155
33156_ACEOF
33157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33158 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33159
33160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33161$as_echo "yes" >&6; }
33162 tst_proto_gethostbyname="yes"
33163
33164else
33165
33166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33167$as_echo "no" >&6; }
33168 tst_proto_gethostbyname="no"
33169
33170fi
33171rm -f conftest*
33172
33173 fi
33174 #
33175 if test "$tst_proto_gethostbyname" = "yes"; then
33176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33177$as_echo_n "checking if gethostbyname is compilable... " >&6; }
33178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33179/* end confdefs.h. */
33180
33181
33182 $curl_includes_winsock2
33183 $curl_includes_netdb
33184
33185int main (void)
33186{
33187
33188 if(0 != gethostbyname(0))
33189 return 1;
33190
33191 ;
33192 return 0;
33193}
33194
33195_ACEOF
33196if ac_fn_c_try_compile "$LINENO"; then :
33197
33198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33199$as_echo "yes" >&6; }
33200 tst_compi_gethostbyname="yes"
33201
33202else
33203
33204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33205$as_echo "no" >&6; }
33206 tst_compi_gethostbyname="no"
33207
33208fi
33209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33210 fi
33211 #
33212 if test "$tst_compi_gethostbyname" = "yes"; then
33213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33214$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33215 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33217$as_echo "yes" >&6; }
33218 tst_allow_gethostbyname="yes"
33219 else
33220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33221$as_echo "no" >&6; }
33222 tst_allow_gethostbyname="no"
33223 fi
33224 fi
33225 #
33226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33227$as_echo_n "checking if gethostbyname might be used... " >&6; }
33228 if test "$tst_links_gethostbyname" = "yes" &&
33229 test "$tst_proto_gethostbyname" = "yes" &&
33230 test "$tst_compi_gethostbyname" = "yes" &&
33231 test "$tst_allow_gethostbyname" = "yes"; then
33232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33233$as_echo "yes" >&6; }
33234
33235cat >>confdefs.h <<_ACEOF
33236#define HAVE_GETHOSTBYNAME 1
33237_ACEOF
33238
33239 curl_cv_func_gethostbyname="yes"
33240 else
33241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33242$as_echo "no" >&6; }
33243 curl_cv_func_gethostbyname="no"
33244 fi
33245
33246
33247 #
33248 tst_links_gethostbyname_r="unknown"
33249 tst_proto_gethostbyname_r="unknown"
33250 tst_compi_gethostbyname_r="unknown"
33251 tst_allow_gethostbyname_r="unknown"
33252 tst_nargs_gethostbyname_r="unknown"
33253 #
33254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33255$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33257/* end confdefs.h. */
33258
33259
33260#define gethostbyname_r innocuous_gethostbyname_r
33261#ifdef __STDC__
33262# include <limits.h>
33263#else
33264# include <assert.h>
33265#endif
33266#undef gethostbyname_r
33267#ifdef __cplusplus
33268extern "C"
33269#endif
33270char gethostbyname_r ();
33271#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33272choke me
33273#endif
33274
33275int main (void)
33276{
33277return gethostbyname_r ();
33278 ;
33279 return 0;
33280}
33281
33282_ACEOF
33283if ac_fn_c_try_link "$LINENO"; then :
33284
33285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33286$as_echo "yes" >&6; }
33287 tst_links_gethostbyname_r="yes"
33288
33289else
33290
33291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33292$as_echo "no" >&6; }
33293 tst_links_gethostbyname_r="no"
33294
33295fi
33296rm -f core conftest.err conftest.$ac_objext \
33297 conftest$ac_exeext conftest.$ac_ext
33298 #
33299 if test "$tst_links_gethostbyname_r" = "yes"; then
33300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33301$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33303/* end confdefs.h. */
33304
33305 $curl_includes_netdb
33306
33307_ACEOF
33308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33309 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33310
33311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33312$as_echo "yes" >&6; }
33313 tst_proto_gethostbyname_r="yes"
33314
33315else
33316
33317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33318$as_echo "no" >&6; }
33319 tst_proto_gethostbyname_r="no"
33320
33321fi
33322rm -f conftest*
33323
33324 fi
33325 #
33326 if test "$tst_proto_gethostbyname_r" = "yes"; then
33327 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33329$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33331/* end confdefs.h. */
33332
33333
33334 $curl_includes_netdb
33335
33336int main (void)
33337{
33338
33339 if(0 != gethostbyname_r(0, 0, 0))
33340 return 1;
33341
33342 ;
33343 return 0;
33344}
33345
33346_ACEOF
33347if ac_fn_c_try_compile "$LINENO"; then :
33348
33349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33350$as_echo "yes" >&6; }
33351 tst_compi_gethostbyname_r="yes"
33352 tst_nargs_gethostbyname_r="3"
33353
33354else
33355
33356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33357$as_echo "no" >&6; }
33358 tst_compi_gethostbyname_r="no"
33359
33360fi
33361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33362 fi
33363 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33365$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33367/* end confdefs.h. */
33368
33369
33370 $curl_includes_netdb
33371
33372int main (void)
33373{
33374
33375 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33376 return 1;
33377
33378 ;
33379 return 0;
33380}
33381
33382_ACEOF
33383if ac_fn_c_try_compile "$LINENO"; then :
33384
33385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33386$as_echo "yes" >&6; }
33387 tst_compi_gethostbyname_r="yes"
33388 tst_nargs_gethostbyname_r="5"
33389
33390else
33391
33392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33393$as_echo "no" >&6; }
33394 tst_compi_gethostbyname_r="no"
33395
33396fi
33397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33398 fi
33399 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33401$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33403/* end confdefs.h. */
33404
33405
33406 $curl_includes_netdb
33407
33408int main (void)
33409{
33410
33411 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33412 return 1;
33413
33414 ;
33415 return 0;
33416}
33417
33418_ACEOF
33419if ac_fn_c_try_compile "$LINENO"; then :
33420
33421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33422$as_echo "yes" >&6; }
33423 tst_compi_gethostbyname_r="yes"
33424 tst_nargs_gethostbyname_r="6"
33425
33426else
33427
33428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33429$as_echo "no" >&6; }
33430 tst_compi_gethostbyname_r="no"
33431
33432fi
33433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33434 fi
33435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33436$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33437 if test "$tst_compi_gethostbyname_r" = "yes"; then
33438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33439$as_echo "yes" >&6; }
33440 else
33441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33442$as_echo "no" >&6; }
33443 fi
33444 fi
33445 #
33446 if test "$tst_compi_gethostbyname_r" = "yes"; then
33447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33448$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33449 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33451$as_echo "yes" >&6; }
33452 tst_allow_gethostbyname_r="yes"
33453 else
33454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33455$as_echo "no" >&6; }
33456 tst_allow_gethostbyname_r="no"
33457 fi
33458 fi
33459 #
33460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33461$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33462 if test "$tst_links_gethostbyname_r" = "yes" &&
33463 test "$tst_proto_gethostbyname_r" = "yes" &&
33464 test "$tst_compi_gethostbyname_r" = "yes" &&
33465 test "$tst_allow_gethostbyname_r" = "yes"; then
33466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33467$as_echo "yes" >&6; }
33468
33469cat >>confdefs.h <<_ACEOF
33470#define HAVE_GETHOSTBYNAME_R 1
33471_ACEOF
33472
33473 #
33474 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33475
33476$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33477
33478 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33479
33480$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33481
33482 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33483
33484$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33485
33486 fi
33487 #
33488 curl_cv_func_gethostbyname_r="yes"
33489 else
33490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33491$as_echo "no" >&6; }
33492 curl_cv_func_gethostbyname_r="no"
33493 fi
33494
33495
Elliott Hughesa93fb052018-12-12 14:22:48 -080033496curl_preprocess_callconv="\
33497/* preprocess start */
33498#ifdef HAVE_WINDOWS_H
33499# define FUNCALLCONV __stdcall
33500#else
33501# define FUNCALLCONV
33502#endif
33503/* preprocess end */"
33504
33505
Elliott Hughes82be86d2017-09-20 17:00:17 -070033506 #
33507 tst_links_gethostname="unknown"
33508 tst_proto_gethostname="unknown"
33509 tst_compi_gethostname="unknown"
33510 tst_allow_gethostname="unknown"
33511 #
33512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33513$as_echo_n "checking if gethostname can be linked... " >&6; }
33514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33515/* end confdefs.h. */
33516
33517
33518 $curl_includes_winsock2
33519 $curl_includes_unistd
33520
33521int main (void)
33522{
33523
33524 if(0 != gethostname(0, 0))
33525 return 1;
33526
33527 ;
33528 return 0;
33529}
33530
33531_ACEOF
33532if ac_fn_c_try_link "$LINENO"; then :
33533
33534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33535$as_echo "yes" >&6; }
33536 tst_links_gethostname="yes"
33537
33538else
33539
33540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33541$as_echo "no" >&6; }
33542 tst_links_gethostname="no"
33543
33544fi
33545rm -f core conftest.err conftest.$ac_objext \
33546 conftest$ac_exeext conftest.$ac_ext
33547 #
33548 if test "$tst_links_gethostname" = "yes"; then
33549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33550$as_echo_n "checking if gethostname is prototyped... " >&6; }
33551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33552/* end confdefs.h. */
33553
33554 $curl_includes_winsock2
33555 $curl_includes_unistd
33556
33557_ACEOF
33558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33559 $EGREP "gethostname" >/dev/null 2>&1; then :
33560
33561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33562$as_echo "yes" >&6; }
33563 tst_proto_gethostname="yes"
33564
33565else
33566
33567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33568$as_echo "no" >&6; }
33569 tst_proto_gethostname="no"
33570
33571fi
33572rm -f conftest*
33573
33574 fi
33575 #
33576 if test "$tst_proto_gethostname" = "yes"; then
33577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33578$as_echo_n "checking if gethostname is compilable... " >&6; }
33579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33580/* end confdefs.h. */
33581
33582
33583 $curl_includes_winsock2
33584 $curl_includes_unistd
33585
33586int main (void)
33587{
33588
33589 if(0 != gethostname(0, 0))
33590 return 1;
33591
33592 ;
33593 return 0;
33594}
33595
33596_ACEOF
33597if ac_fn_c_try_compile "$LINENO"; then :
33598
33599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33600$as_echo "yes" >&6; }
33601 tst_compi_gethostname="yes"
33602
33603else
33604
33605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33606$as_echo "no" >&6; }
33607 tst_compi_gethostname="no"
33608
33609fi
33610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33611 fi
33612 #
33613 if test "$tst_compi_gethostname" = "yes"; then
33614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33615$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33616 tst_gethostname_type_arg2="unknown"
33617 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33618 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33619 if test "$tst_gethostname_type_arg2" = "unknown"; then
33620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33621/* end confdefs.h. */
33622
33623
33624 $curl_includes_winsock2
33625 $curl_includes_unistd
33626 $curl_preprocess_callconv
33627 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33628
33629int main (void)
33630{
33631
33632 if(0 != gethostname(0, 0))
33633 return 1;
33634
33635 ;
33636 return 0;
33637}
33638
33639_ACEOF
33640if ac_fn_c_try_compile "$LINENO"; then :
33641
33642 tst_gethostname_type_arg2="$tst_arg2"
33643
33644fi
33645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33646 fi
33647 done
33648 done
33649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33650$as_echo "$tst_gethostname_type_arg2" >&6; }
33651 if test "$tst_gethostname_type_arg2" != "unknown"; then
33652
33653cat >>confdefs.h <<_ACEOF
33654#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33655_ACEOF
33656
33657 fi
33658 fi
33659 #
33660 if test "$tst_compi_gethostname" = "yes"; then
33661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33662$as_echo_n "checking if gethostname usage allowed... " >&6; }
33663 if test "x$curl_disallow_gethostname" != "xyes"; then
33664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33665$as_echo "yes" >&6; }
33666 tst_allow_gethostname="yes"
33667 else
33668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33669$as_echo "no" >&6; }
33670 tst_allow_gethostname="no"
33671 fi
33672 fi
33673 #
33674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33675$as_echo_n "checking if gethostname might be used... " >&6; }
33676 if test "$tst_links_gethostname" = "yes" &&
33677 test "$tst_proto_gethostname" = "yes" &&
33678 test "$tst_compi_gethostname" = "yes" &&
33679 test "$tst_allow_gethostname" = "yes"; then
33680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33681$as_echo "yes" >&6; }
33682
33683cat >>confdefs.h <<_ACEOF
33684#define HAVE_GETHOSTNAME 1
33685_ACEOF
33686
33687 curl_cv_func_gethostname="yes"
33688 else
33689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33690$as_echo "no" >&6; }
33691 curl_cv_func_gethostname="no"
33692 fi
33693
33694
33695 #
33696 tst_links_getifaddrs="unknown"
33697 tst_proto_getifaddrs="unknown"
33698 tst_compi_getifaddrs="unknown"
33699 tst_works_getifaddrs="unknown"
33700 tst_allow_getifaddrs="unknown"
33701 #
33702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33703$as_echo_n "checking if getifaddrs can be linked... " >&6; }
33704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33705/* end confdefs.h. */
33706
33707
33708#define getifaddrs innocuous_getifaddrs
33709#ifdef __STDC__
33710# include <limits.h>
33711#else
33712# include <assert.h>
33713#endif
33714#undef getifaddrs
33715#ifdef __cplusplus
33716extern "C"
33717#endif
33718char getifaddrs ();
33719#if defined __stub_getifaddrs || defined __stub___getifaddrs
33720choke me
33721#endif
33722
33723int main (void)
33724{
33725return getifaddrs ();
33726 ;
33727 return 0;
33728}
33729
33730_ACEOF
33731if ac_fn_c_try_link "$LINENO"; then :
33732
33733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33734$as_echo "yes" >&6; }
33735 tst_links_getifaddrs="yes"
33736
33737else
33738
33739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33740$as_echo "no" >&6; }
33741 tst_links_getifaddrs="no"
33742
33743fi
33744rm -f core conftest.err conftest.$ac_objext \
33745 conftest$ac_exeext conftest.$ac_ext
33746 #
33747 if test "$tst_links_getifaddrs" = "yes"; then
33748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33749$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33751/* end confdefs.h. */
33752
33753 $curl_includes_ifaddrs
33754
33755_ACEOF
33756if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33757 $EGREP "getifaddrs" >/dev/null 2>&1; then :
33758
33759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33760$as_echo "yes" >&6; }
33761 tst_proto_getifaddrs="yes"
33762
33763else
33764
33765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33766$as_echo "no" >&6; }
33767 tst_proto_getifaddrs="no"
33768
33769fi
33770rm -f conftest*
33771
33772 fi
33773 #
33774 if test "$tst_proto_getifaddrs" = "yes"; then
33775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33776$as_echo_n "checking if getifaddrs is compilable... " >&6; }
33777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33778/* end confdefs.h. */
33779
33780
33781 $curl_includes_ifaddrs
33782
33783int main (void)
33784{
33785
33786 if(0 != getifaddrs(0))
33787 return 1;
33788
33789 ;
33790 return 0;
33791}
33792
33793_ACEOF
33794if ac_fn_c_try_compile "$LINENO"; then :
33795
33796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33797$as_echo "yes" >&6; }
33798 tst_compi_getifaddrs="yes"
33799
33800else
33801
33802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33803$as_echo "no" >&6; }
33804 tst_compi_getifaddrs="no"
33805
33806fi
33807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33808 fi
33809 #
33810 if test "x$cross_compiling" != "xyes" &&
33811 test "$tst_compi_getifaddrs" = "yes"; then
33812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33813$as_echo_n "checking if getifaddrs seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080033814
33815
33816 old=$LD_LIBRARY_PATH
33817 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
33818 export LD_LIBRARY_PATH
33819 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070033820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33822as_fn_error $? "cannot run test program while cross compiling
33823See \`config.log' for more details" "$LINENO" 5; }
33824else
33825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33826/* end confdefs.h. */
33827
33828
33829 $curl_includes_stdlib
33830 $curl_includes_ifaddrs
33831
33832int main (void)
33833{
33834
33835 struct ifaddrs *ifa = 0;
33836 int error;
33837
33838 error = getifaddrs(&ifa);
33839 if(error || !ifa)
33840 exit(1); /* fail */
33841 else
33842 exit(0);
33843
33844 ;
33845 return 0;
33846}
33847
33848_ACEOF
33849if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080033850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070033851$as_echo "yes" >&6; }
33852 tst_works_getifaddrs="yes"
33853
33854else
Elliott Hughesa93fb052018-12-12 14:22:48 -080033855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070033856$as_echo "no" >&6; }
33857 tst_works_getifaddrs="no"
33858
33859fi
33860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33861 conftest.$ac_objext conftest.beam conftest.$ac_ext
33862fi
33863
Elliott Hughesa93fb052018-12-12 14:22:48 -080033864 LD_LIBRARY_PATH=$old # restore
33865
Elliott Hughes82be86d2017-09-20 17:00:17 -070033866 fi
33867 #
33868 if test "$tst_compi_getifaddrs" = "yes" &&
33869 test "$tst_works_getifaddrs" != "no"; then
33870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
33871$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
33872 if test "x$curl_disallow_getifaddrs" != "xyes"; then
33873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33874$as_echo "yes" >&6; }
33875 tst_allow_getifaddrs="yes"
33876 else
33877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33878$as_echo "no" >&6; }
33879 tst_allow_getifaddrs="no"
33880 fi
33881 fi
33882 #
33883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
33884$as_echo_n "checking if getifaddrs might be used... " >&6; }
33885 if test "$tst_links_getifaddrs" = "yes" &&
33886 test "$tst_proto_getifaddrs" = "yes" &&
33887 test "$tst_compi_getifaddrs" = "yes" &&
33888 test "$tst_allow_getifaddrs" = "yes" &&
33889 test "$tst_works_getifaddrs" != "no"; then
33890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33891$as_echo "yes" >&6; }
33892
33893cat >>confdefs.h <<_ACEOF
33894#define HAVE_GETIFADDRS 1
33895_ACEOF
33896
33897 curl_cv_func_getifaddrs="yes"
33898 else
33899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33900$as_echo "no" >&6; }
33901 curl_cv_func_getifaddrs="no"
33902 fi
33903
33904
33905 #
33906 tst_links_getservbyport_r="unknown"
33907 tst_proto_getservbyport_r="unknown"
33908 tst_compi_getservbyport_r="unknown"
33909 tst_allow_getservbyport_r="unknown"
33910 tst_nargs_getservbyport_r="unknown"
33911 #
33912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
33913$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
33914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33915/* end confdefs.h. */
33916
33917
33918#define getservbyport_r innocuous_getservbyport_r
33919#ifdef __STDC__
33920# include <limits.h>
33921#else
33922# include <assert.h>
33923#endif
33924#undef getservbyport_r
33925#ifdef __cplusplus
33926extern "C"
33927#endif
33928char getservbyport_r ();
33929#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
33930choke me
33931#endif
33932
33933int main (void)
33934{
33935return getservbyport_r ();
33936 ;
33937 return 0;
33938}
33939
33940_ACEOF
33941if ac_fn_c_try_link "$LINENO"; then :
33942
33943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33944$as_echo "yes" >&6; }
33945 tst_links_getservbyport_r="yes"
33946
33947else
33948
33949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33950$as_echo "no" >&6; }
33951 tst_links_getservbyport_r="no"
33952
33953fi
33954rm -f core conftest.err conftest.$ac_objext \
33955 conftest$ac_exeext conftest.$ac_ext
33956 #
33957 if test "$tst_links_getservbyport_r" = "yes"; then
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
33959$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
33960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33961/* end confdefs.h. */
33962
33963 $curl_includes_netdb
33964
33965_ACEOF
33966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33967 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
33968
33969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33970$as_echo "yes" >&6; }
33971 tst_proto_getservbyport_r="yes"
33972
33973else
33974
33975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33976$as_echo "no" >&6; }
33977 tst_proto_getservbyport_r="no"
33978
33979fi
33980rm -f conftest*
33981
33982 fi
33983 #
33984 if test "$tst_proto_getservbyport_r" = "yes"; then
33985 if test "$tst_nargs_getservbyport_r" = "unknown"; then
33986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
33987$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
33988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33989/* end confdefs.h. */
33990
33991
33992 $curl_includes_netdb
33993
33994int main (void)
33995{
33996
33997 if(0 != getservbyport_r(0, 0, 0, 0))
33998 return 1;
33999
34000 ;
34001 return 0;
34002}
34003
34004_ACEOF
34005if ac_fn_c_try_compile "$LINENO"; then :
34006
34007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34008$as_echo "yes" >&6; }
34009 tst_compi_getservbyport_r="yes"
34010 tst_nargs_getservbyport_r="4"
34011
34012else
34013
34014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34015$as_echo "no" >&6; }
34016 tst_compi_getservbyport_r="no"
34017
34018fi
34019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34020 fi
34021 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34023$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34025/* end confdefs.h. */
34026
34027
34028 $curl_includes_netdb
34029
34030int main (void)
34031{
34032
34033 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34034 return 1;
34035
34036 ;
34037 return 0;
34038}
34039
34040_ACEOF
34041if ac_fn_c_try_compile "$LINENO"; then :
34042
34043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34044$as_echo "yes" >&6; }
34045 tst_compi_getservbyport_r="yes"
34046 tst_nargs_getservbyport_r="5"
34047
34048else
34049
34050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34051$as_echo "no" >&6; }
34052 tst_compi_getservbyport_r="no"
34053
34054fi
34055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34056 fi
34057 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34059$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34061/* end confdefs.h. */
34062
34063
34064 $curl_includes_netdb
34065
34066int main (void)
34067{
34068
34069 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34070 return 1;
34071
34072 ;
34073 return 0;
34074}
34075
34076_ACEOF
34077if ac_fn_c_try_compile "$LINENO"; then :
34078
34079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34080$as_echo "yes" >&6; }
34081 tst_compi_getservbyport_r="yes"
34082 tst_nargs_getservbyport_r="6"
34083
34084else
34085
34086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34087$as_echo "no" >&6; }
34088 tst_compi_getservbyport_r="no"
34089
34090fi
34091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34092 fi
34093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34094$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34095 if test "$tst_compi_getservbyport_r" = "yes"; then
34096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34097$as_echo "yes" >&6; }
34098 else
34099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34100$as_echo "no" >&6; }
34101 fi
34102 fi
34103 #
34104 if test "$tst_compi_getservbyport_r" = "yes"; then
34105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34106$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34107 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34109$as_echo "yes" >&6; }
34110 tst_allow_getservbyport_r="yes"
34111 else
34112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34113$as_echo "no" >&6; }
34114 tst_allow_getservbyport_r="no"
34115 fi
34116 fi
34117 #
34118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34119$as_echo_n "checking if getservbyport_r might be used... " >&6; }
34120 if test "$tst_links_getservbyport_r" = "yes" &&
34121 test "$tst_proto_getservbyport_r" = "yes" &&
34122 test "$tst_compi_getservbyport_r" = "yes" &&
34123 test "$tst_allow_getservbyport_r" = "yes"; then
34124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34125$as_echo "yes" >&6; }
34126
34127cat >>confdefs.h <<_ACEOF
34128#define HAVE_GETSERVBYPORT_R 1
34129_ACEOF
34130
34131
34132cat >>confdefs.h <<_ACEOF
34133#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34134_ACEOF
34135
34136 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34137
34138$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34139
34140 else
34141
34142$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34143
34144 fi
34145 curl_cv_func_getservbyport_r="yes"
34146 else
34147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34148$as_echo "no" >&6; }
34149 curl_cv_func_getservbyport_r="no"
34150 fi
34151
34152
34153curl_includes_time="\
34154/* includes start */
34155#ifdef HAVE_SYS_TYPES_H
34156# include <sys/types.h>
34157#endif
34158#ifdef HAVE_SYS_TIME_H
34159# include <sys/time.h>
34160# ifdef TIME_WITH_SYS_TIME
34161# include <time.h>
34162# endif
34163#else
34164# ifdef HAVE_TIME_H
34165# include <time.h>
34166# endif
34167#endif
34168/* includes end */"
34169 for ac_header in sys/types.h sys/time.h time.h
34170do :
34171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34172ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34173"
34174if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34175 cat >>confdefs.h <<_ACEOF
34176#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34177_ACEOF
34178
34179fi
34180
34181done
34182
34183
34184
34185 #
34186 tst_links_gmtime_r="unknown"
34187 tst_proto_gmtime_r="unknown"
34188 tst_compi_gmtime_r="unknown"
34189 tst_works_gmtime_r="unknown"
34190 tst_allow_gmtime_r="unknown"
34191 #
34192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34193$as_echo_n "checking if gmtime_r can be linked... " >&6; }
34194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34195/* end confdefs.h. */
34196
34197
34198#define gmtime_r innocuous_gmtime_r
34199#ifdef __STDC__
34200# include <limits.h>
34201#else
34202# include <assert.h>
34203#endif
34204#undef gmtime_r
34205#ifdef __cplusplus
34206extern "C"
34207#endif
34208char gmtime_r ();
34209#if defined __stub_gmtime_r || defined __stub___gmtime_r
34210choke me
34211#endif
34212
34213int main (void)
34214{
34215return gmtime_r ();
34216 ;
34217 return 0;
34218}
34219
34220_ACEOF
34221if ac_fn_c_try_link "$LINENO"; then :
34222
34223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34224$as_echo "yes" >&6; }
34225 tst_links_gmtime_r="yes"
34226
34227else
34228
34229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34230$as_echo "no" >&6; }
34231 tst_links_gmtime_r="no"
34232
34233fi
34234rm -f core conftest.err conftest.$ac_objext \
34235 conftest$ac_exeext conftest.$ac_ext
34236 #
34237 if test "$tst_links_gmtime_r" = "yes"; then
34238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34239$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34241/* end confdefs.h. */
34242
34243 $curl_includes_time
34244
34245_ACEOF
34246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34247 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34248
34249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34250$as_echo "yes" >&6; }
34251 tst_proto_gmtime_r="yes"
34252
34253else
34254
34255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34256$as_echo "no" >&6; }
34257 tst_proto_gmtime_r="no"
34258
34259fi
34260rm -f conftest*
34261
34262 fi
34263 #
34264 if test "$tst_proto_gmtime_r" = "yes"; then
34265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34266$as_echo_n "checking if gmtime_r is compilable... " >&6; }
34267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34268/* end confdefs.h. */
34269
34270
34271 $curl_includes_time
34272
34273int main (void)
34274{
34275
34276 if(0 != gmtime_r(0, 0))
34277 return 1;
34278
34279 ;
34280 return 0;
34281}
34282
34283_ACEOF
34284if ac_fn_c_try_compile "$LINENO"; then :
34285
34286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34287$as_echo "yes" >&6; }
34288 tst_compi_gmtime_r="yes"
34289
34290else
34291
34292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34293$as_echo "no" >&6; }
34294 tst_compi_gmtime_r="no"
34295
34296fi
34297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34298 fi
34299 #
34300 if test "x$cross_compiling" != "xyes" &&
34301 test "$tst_compi_gmtime_r" = "yes"; then
34302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34303$as_echo_n "checking if gmtime_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080034304
34305
34306 old=$LD_LIBRARY_PATH
34307 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34308 export LD_LIBRARY_PATH
34309 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070034310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34312as_fn_error $? "cannot run test program while cross compiling
34313See \`config.log' for more details" "$LINENO" 5; }
34314else
34315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34316/* end confdefs.h. */
34317
34318
34319 $curl_includes_stdlib
34320 $curl_includes_time
34321
34322int main (void)
34323{
34324
34325 time_t local = 1170352587;
34326 struct tm *gmt = 0;
34327 struct tm result;
34328 gmt = gmtime_r(&local, &result);
34329 if(gmt)
34330 exit(0);
34331 else
34332 exit(1);
34333
34334 ;
34335 return 0;
34336}
34337
34338_ACEOF
34339if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080034340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034341$as_echo "yes" >&6; }
34342 tst_works_gmtime_r="yes"
34343
34344else
Elliott Hughesa93fb052018-12-12 14:22:48 -080034345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034346$as_echo "no" >&6; }
34347 tst_works_gmtime_r="no"
34348
34349fi
34350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34351 conftest.$ac_objext conftest.beam conftest.$ac_ext
34352fi
34353
Elliott Hughesa93fb052018-12-12 14:22:48 -080034354 LD_LIBRARY_PATH=$old # restore
34355
Elliott Hughes82be86d2017-09-20 17:00:17 -070034356 fi
34357 #
34358 if test "$tst_compi_gmtime_r" = "yes" &&
34359 test "$tst_works_gmtime_r" != "no"; then
34360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34361$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34362 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34364$as_echo "yes" >&6; }
34365 tst_allow_gmtime_r="yes"
34366 else
34367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34368$as_echo "no" >&6; }
34369 tst_allow_gmtime_r="no"
34370 fi
34371 fi
34372 #
34373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34374$as_echo_n "checking if gmtime_r might be used... " >&6; }
34375 if test "$tst_links_gmtime_r" = "yes" &&
34376 test "$tst_proto_gmtime_r" = "yes" &&
34377 test "$tst_compi_gmtime_r" = "yes" &&
34378 test "$tst_allow_gmtime_r" = "yes" &&
34379 test "$tst_works_gmtime_r" != "no"; then
34380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34381$as_echo "yes" >&6; }
34382
34383cat >>confdefs.h <<_ACEOF
34384#define HAVE_GMTIME_R 1
34385_ACEOF
34386
34387 curl_cv_func_gmtime_r="yes"
34388 else
34389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34390$as_echo "no" >&6; }
34391 curl_cv_func_gmtime_r="no"
34392 fi
34393
34394
34395curl_includes_arpa_inet="\
34396/* includes start */
34397#ifdef HAVE_SYS_TYPES_H
34398# include <sys/types.h>
34399#endif
34400#ifdef HAVE_SYS_SOCKET_H
34401# include <sys/socket.h>
34402#endif
34403#ifdef HAVE_NETINET_IN_H
34404# include <netinet/in.h>
34405#endif
34406#ifdef HAVE_ARPA_INET_H
34407# include <arpa/inet.h>
34408#endif
34409#ifdef HAVE_WINSOCK2_H
34410#include <winsock2.h>
34411#include <ws2tcpip.h>
34412#endif
34413/* includes end */"
34414 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34415do :
34416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34417ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34418"
34419if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34420 cat >>confdefs.h <<_ACEOF
34421#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34422_ACEOF
34423
34424fi
34425
34426done
34427
34428
34429
34430 #
34431 tst_links_inet_ntoa_r="unknown"
34432 tst_proto_inet_ntoa_r="unknown"
34433 tst_compi_inet_ntoa_r="unknown"
34434 tst_allow_inet_ntoa_r="unknown"
34435 tst_nargs_inet_ntoa_r="unknown"
34436 #
34437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34438$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34440/* end confdefs.h. */
34441
34442
34443#define inet_ntoa_r innocuous_inet_ntoa_r
34444#ifdef __STDC__
34445# include <limits.h>
34446#else
34447# include <assert.h>
34448#endif
34449#undef inet_ntoa_r
34450#ifdef __cplusplus
34451extern "C"
34452#endif
34453char inet_ntoa_r ();
34454#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34455choke me
34456#endif
34457
34458int main (void)
34459{
34460return inet_ntoa_r ();
34461 ;
34462 return 0;
34463}
34464
34465_ACEOF
34466if ac_fn_c_try_link "$LINENO"; then :
34467
34468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34469$as_echo "yes" >&6; }
34470 tst_links_inet_ntoa_r="yes"
34471
34472else
34473
34474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34475$as_echo "no" >&6; }
34476 tst_links_inet_ntoa_r="no"
34477
34478fi
34479rm -f core conftest.err conftest.$ac_objext \
34480 conftest$ac_exeext conftest.$ac_ext
34481 #
34482 if test "$tst_links_inet_ntoa_r" = "yes"; then
34483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34484$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34486/* end confdefs.h. */
34487
34488 $curl_includes_arpa_inet
34489
34490_ACEOF
34491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34492 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34493
34494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34495$as_echo "yes" >&6; }
34496 tst_proto_inet_ntoa_r="yes"
34497
34498else
34499
34500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34501$as_echo "no" >&6; }
34502 tst_proto_inet_ntoa_r="no"
34503
34504fi
34505rm -f conftest*
34506
34507 fi
34508 #
34509 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34510 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34512$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34514/* end confdefs.h. */
34515
34516
34517 $curl_includes_arpa_inet
34518
34519int main (void)
34520{
34521
34522 struct in_addr addr;
34523 if(0 != inet_ntoa_r(addr, 0))
34524 return 1;
34525
34526 ;
34527 return 0;
34528}
34529
34530_ACEOF
34531if ac_fn_c_try_compile "$LINENO"; then :
34532
34533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34534$as_echo "yes" >&6; }
34535 tst_compi_inet_ntoa_r="yes"
34536 tst_nargs_inet_ntoa_r="2"
34537
34538else
34539
34540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34541$as_echo "no" >&6; }
34542 tst_compi_inet_ntoa_r="no"
34543
34544fi
34545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34546 fi
34547 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34549$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34551/* end confdefs.h. */
34552
34553
34554 $curl_includes_arpa_inet
34555
34556int main (void)
34557{
34558
34559 struct in_addr addr;
34560 if(0 != inet_ntoa_r(addr, 0, 0))
34561 return 1;
34562
34563 ;
34564 return 0;
34565}
34566
34567_ACEOF
34568if ac_fn_c_try_compile "$LINENO"; then :
34569
34570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34571$as_echo "yes" >&6; }
34572 tst_compi_inet_ntoa_r="yes"
34573 tst_nargs_inet_ntoa_r="3"
34574
34575else
34576
34577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34578$as_echo "no" >&6; }
34579 tst_compi_inet_ntoa_r="no"
34580
34581fi
34582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34583 fi
34584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34585$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34586 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34588$as_echo "yes" >&6; }
34589 else
34590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34591$as_echo "no" >&6; }
34592 fi
34593 fi
34594 #
34595 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34597$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34598 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34600$as_echo "yes" >&6; }
34601 tst_allow_inet_ntoa_r="yes"
34602 else
34603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34604$as_echo "no" >&6; }
34605 tst_allow_inet_ntoa_r="no"
34606 fi
34607 fi
34608 #
34609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34610$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34611 if test "$tst_links_inet_ntoa_r" = "yes" &&
34612 test "$tst_proto_inet_ntoa_r" = "yes" &&
34613 test "$tst_compi_inet_ntoa_r" = "yes" &&
34614 test "$tst_allow_inet_ntoa_r" = "yes"; then
34615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34616$as_echo "yes" >&6; }
34617
34618cat >>confdefs.h <<_ACEOF
34619#define HAVE_INET_NTOA_R 1
34620_ACEOF
34621
34622 #
34623 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34624
34625$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34626
34627 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34628
34629$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34630
34631 fi
34632 #
34633 curl_cv_func_inet_ntoa_r="yes"
34634 else
34635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34636$as_echo "no" >&6; }
34637 curl_cv_func_inet_ntoa_r="no"
34638 fi
34639
34640
34641 #
34642 tst_links_inet_ntop="unknown"
34643 tst_proto_inet_ntop="unknown"
34644 tst_compi_inet_ntop="unknown"
34645 tst_works_inet_ntop="unknown"
34646 tst_allow_inet_ntop="unknown"
34647 #
34648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34649$as_echo_n "checking if inet_ntop can be linked... " >&6; }
34650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34651/* end confdefs.h. */
34652
34653
34654#define inet_ntop innocuous_inet_ntop
34655#ifdef __STDC__
34656# include <limits.h>
34657#else
34658# include <assert.h>
34659#endif
34660#undef inet_ntop
34661#ifdef __cplusplus
34662extern "C"
34663#endif
34664char inet_ntop ();
34665#if defined __stub_inet_ntop || defined __stub___inet_ntop
34666choke me
34667#endif
34668
34669int main (void)
34670{
34671return inet_ntop ();
34672 ;
34673 return 0;
34674}
34675
34676_ACEOF
34677if ac_fn_c_try_link "$LINENO"; then :
34678
34679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34680$as_echo "yes" >&6; }
34681 tst_links_inet_ntop="yes"
34682
34683else
34684
34685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34686$as_echo "no" >&6; }
34687 tst_links_inet_ntop="no"
34688
34689fi
34690rm -f core conftest.err conftest.$ac_objext \
34691 conftest$ac_exeext conftest.$ac_ext
34692 #
34693 if test "$tst_links_inet_ntop" = "yes"; then
34694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34695$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34697/* end confdefs.h. */
34698
34699 $curl_includes_arpa_inet
34700
34701_ACEOF
34702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34703 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34704
34705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34706$as_echo "yes" >&6; }
34707 tst_proto_inet_ntop="yes"
34708
34709else
34710
34711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34712$as_echo "no" >&6; }
34713 tst_proto_inet_ntop="no"
34714
34715fi
34716rm -f conftest*
34717
34718 fi
34719 #
34720 if test "$tst_proto_inet_ntop" = "yes"; then
34721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34722$as_echo_n "checking if inet_ntop is compilable... " >&6; }
34723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34724/* end confdefs.h. */
34725
34726
34727 $curl_includes_arpa_inet
34728
34729int main (void)
34730{
34731
34732 if(0 != inet_ntop(0, 0, 0, 0))
34733 return 1;
34734
34735 ;
34736 return 0;
34737}
34738
34739_ACEOF
34740if ac_fn_c_try_compile "$LINENO"; then :
34741
34742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34743$as_echo "yes" >&6; }
34744 tst_compi_inet_ntop="yes"
34745
34746else
34747
34748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34749$as_echo "no" >&6; }
34750 tst_compi_inet_ntop="no"
34751
34752fi
34753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34754 fi
34755 #
34756 if test "x$cross_compiling" != "xyes" &&
34757 test "$tst_compi_inet_ntop" = "yes"; then
34758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34759$as_echo_n "checking if inet_ntop seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080034760
34761
34762 old=$LD_LIBRARY_PATH
34763 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34764 export LD_LIBRARY_PATH
34765 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070034766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34768as_fn_error $? "cannot run test program while cross compiling
34769See \`config.log' for more details" "$LINENO" 5; }
34770else
34771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34772/* end confdefs.h. */
34773
34774
34775 $curl_includes_stdlib
34776 $curl_includes_arpa_inet
34777 $curl_includes_string
34778
34779int main (void)
34780{
34781
34782 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34783 char ipv4res[sizeof "255.255.255.255"];
34784 unsigned char ipv6a[26];
34785 unsigned char ipv4a[5];
34786 char *ipv6ptr = 0;
34787 char *ipv4ptr = 0;
34788 /* - */
34789 ipv4res[0] = '\0';
34790 ipv4a[0] = 0xc0;
34791 ipv4a[1] = 0xa8;
34792 ipv4a[2] = 0x64;
34793 ipv4a[3] = 0x01;
34794 ipv4a[4] = 0x01;
34795 /* - */
34796 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34797 if(!ipv4ptr)
34798 exit(1); /* fail */
34799 if(ipv4ptr != ipv4res)
34800 exit(1); /* fail */
34801 if(!ipv4ptr[0])
34802 exit(1); /* fail */
34803 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34804 exit(1); /* fail */
34805 /* - */
34806 ipv6res[0] = '\0';
34807 memset(ipv6a, 0, sizeof(ipv6a));
34808 ipv6a[0] = 0xfe;
34809 ipv6a[1] = 0x80;
34810 ipv6a[8] = 0x02;
34811 ipv6a[9] = 0x14;
34812 ipv6a[10] = 0x4f;
34813 ipv6a[11] = 0xff;
34814 ipv6a[12] = 0xfe;
34815 ipv6a[13] = 0x0b;
34816 ipv6a[14] = 0x76;
34817 ipv6a[15] = 0xc8;
34818 ipv6a[25] = 0x01;
34819 /* - */
34820 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34821 if(!ipv6ptr)
34822 exit(1); /* fail */
34823 if(ipv6ptr != ipv6res)
34824 exit(1); /* fail */
34825 if(!ipv6ptr[0])
34826 exit(1); /* fail */
34827 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34828 exit(1); /* fail */
34829 /* - */
34830 exit(0);
34831
34832 ;
34833 return 0;
34834}
34835
34836_ACEOF
34837if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080034838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034839$as_echo "yes" >&6; }
34840 tst_works_inet_ntop="yes"
34841
34842else
Elliott Hughesa93fb052018-12-12 14:22:48 -080034843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034844$as_echo "no" >&6; }
34845 tst_works_inet_ntop="no"
34846
34847fi
34848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34849 conftest.$ac_objext conftest.beam conftest.$ac_ext
34850fi
34851
Elliott Hughesa93fb052018-12-12 14:22:48 -080034852 LD_LIBRARY_PATH=$old # restore
34853
Elliott Hughes82be86d2017-09-20 17:00:17 -070034854 fi
34855 #
34856 if test "$tst_compi_inet_ntop" = "yes" &&
34857 test "$tst_works_inet_ntop" != "no"; then
34858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
34859$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
34860 if test "x$curl_disallow_inet_ntop" != "xyes"; then
34861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34862$as_echo "yes" >&6; }
34863 tst_allow_inet_ntop="yes"
34864 else
34865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34866$as_echo "no" >&6; }
34867 tst_allow_inet_ntop="no"
34868 fi
34869 fi
34870 #
34871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
34872$as_echo_n "checking if inet_ntop might be used... " >&6; }
34873 if test "$tst_links_inet_ntop" = "yes" &&
34874 test "$tst_proto_inet_ntop" = "yes" &&
34875 test "$tst_compi_inet_ntop" = "yes" &&
34876 test "$tst_allow_inet_ntop" = "yes" &&
34877 test "$tst_works_inet_ntop" != "no"; then
34878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34879$as_echo "yes" >&6; }
34880
34881cat >>confdefs.h <<_ACEOF
34882#define HAVE_INET_NTOP 1
34883_ACEOF
34884
34885 curl_cv_func_inet_ntop="yes"
34886 else
34887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34888$as_echo "no" >&6; }
34889 curl_cv_func_inet_ntop="no"
34890 fi
34891
34892
34893 #
34894 tst_links_inet_pton="unknown"
34895 tst_proto_inet_pton="unknown"
34896 tst_compi_inet_pton="unknown"
34897 tst_works_inet_pton="unknown"
34898 tst_allow_inet_pton="unknown"
34899 #
34900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
34901$as_echo_n "checking if inet_pton can be linked... " >&6; }
34902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34903/* end confdefs.h. */
34904
34905
34906#define inet_pton innocuous_inet_pton
34907#ifdef __STDC__
34908# include <limits.h>
34909#else
34910# include <assert.h>
34911#endif
34912#undef inet_pton
34913#ifdef __cplusplus
34914extern "C"
34915#endif
34916char inet_pton ();
34917#if defined __stub_inet_pton || defined __stub___inet_pton
34918choke me
34919#endif
34920
34921int main (void)
34922{
34923return inet_pton ();
34924 ;
34925 return 0;
34926}
34927
34928_ACEOF
34929if ac_fn_c_try_link "$LINENO"; then :
34930
34931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34932$as_echo "yes" >&6; }
34933 tst_links_inet_pton="yes"
34934
34935else
34936
34937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34938$as_echo "no" >&6; }
34939 tst_links_inet_pton="no"
34940
34941fi
34942rm -f core conftest.err conftest.$ac_objext \
34943 conftest$ac_exeext conftest.$ac_ext
34944 #
34945 if test "$tst_links_inet_pton" = "yes"; then
34946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
34947$as_echo_n "checking if inet_pton is prototyped... " >&6; }
34948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34949/* end confdefs.h. */
34950
34951 $curl_includes_arpa_inet
34952
34953_ACEOF
34954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34955 $EGREP "inet_pton" >/dev/null 2>&1; then :
34956
34957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34958$as_echo "yes" >&6; }
34959 tst_proto_inet_pton="yes"
34960
34961else
34962
34963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34964$as_echo "no" >&6; }
34965 tst_proto_inet_pton="no"
34966
34967fi
34968rm -f conftest*
34969
34970 fi
34971 #
34972 if test "$tst_proto_inet_pton" = "yes"; then
34973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
34974$as_echo_n "checking if inet_pton is compilable... " >&6; }
34975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34976/* end confdefs.h. */
34977
34978
34979 $curl_includes_arpa_inet
34980
34981int main (void)
34982{
34983
34984 if(0 != inet_pton(0, 0, 0))
34985 return 1;
34986
34987 ;
34988 return 0;
34989}
34990
34991_ACEOF
34992if ac_fn_c_try_compile "$LINENO"; then :
34993
34994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34995$as_echo "yes" >&6; }
34996 tst_compi_inet_pton="yes"
34997
34998else
34999
35000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35001$as_echo "no" >&6; }
35002 tst_compi_inet_pton="no"
35003
35004fi
35005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35006 fi
35007 #
35008 if test "x$cross_compiling" != "xyes" &&
35009 test "$tst_compi_inet_pton" = "yes"; then
35010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35011$as_echo_n "checking if inet_pton seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080035012
35013
35014 old=$LD_LIBRARY_PATH
35015 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35016 export LD_LIBRARY_PATH
35017 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070035018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35020as_fn_error $? "cannot run test program while cross compiling
35021See \`config.log' for more details" "$LINENO" 5; }
35022else
35023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35024/* end confdefs.h. */
35025
35026
35027 $curl_includes_stdlib
35028 $curl_includes_arpa_inet
35029 $curl_includes_string
35030
35031int main (void)
35032{
35033
35034 unsigned char ipv6a[16+1];
35035 unsigned char ipv4a[4+1];
35036 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35037 const char *ipv4src = "192.168.100.1";
35038 /* - */
35039 memset(ipv4a, 1, sizeof(ipv4a));
35040 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35041 exit(1); /* fail */
35042 /* - */
35043 if( (ipv4a[0] != 0xc0) ||
35044 (ipv4a[1] != 0xa8) ||
35045 (ipv4a[2] != 0x64) ||
35046 (ipv4a[3] != 0x01) ||
35047 (ipv4a[4] != 0x01) )
35048 exit(1); /* fail */
35049 /* - */
35050 memset(ipv6a, 1, sizeof(ipv6a));
35051 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35052 exit(1); /* fail */
35053 /* - */
35054 if( (ipv6a[0] != 0xfe) ||
35055 (ipv6a[1] != 0x80) ||
35056 (ipv6a[8] != 0x02) ||
35057 (ipv6a[9] != 0x14) ||
35058 (ipv6a[10] != 0x4f) ||
35059 (ipv6a[11] != 0xff) ||
35060 (ipv6a[12] != 0xfe) ||
35061 (ipv6a[13] != 0x0b) ||
35062 (ipv6a[14] != 0x76) ||
35063 (ipv6a[15] != 0xc8) ||
35064 (ipv6a[16] != 0x01) )
35065 exit(1); /* fail */
35066 /* - */
35067 if( (ipv6a[2] != 0x0) ||
35068 (ipv6a[3] != 0x0) ||
35069 (ipv6a[4] != 0x0) ||
35070 (ipv6a[5] != 0x0) ||
35071 (ipv6a[6] != 0x0) ||
35072 (ipv6a[7] != 0x0) )
35073 exit(1); /* fail */
35074 /* - */
35075 exit(0);
35076
35077 ;
35078 return 0;
35079}
35080
35081_ACEOF
35082if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080035083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035084$as_echo "yes" >&6; }
35085 tst_works_inet_pton="yes"
35086
35087else
Elliott Hughesa93fb052018-12-12 14:22:48 -080035088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035089$as_echo "no" >&6; }
35090 tst_works_inet_pton="no"
35091
35092fi
35093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35094 conftest.$ac_objext conftest.beam conftest.$ac_ext
35095fi
35096
Elliott Hughesa93fb052018-12-12 14:22:48 -080035097 LD_LIBRARY_PATH=$old # restore
35098
Elliott Hughes82be86d2017-09-20 17:00:17 -070035099 fi
35100 #
35101 if test "$tst_compi_inet_pton" = "yes" &&
35102 test "$tst_works_inet_pton" != "no"; then
35103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35104$as_echo_n "checking if inet_pton usage allowed... " >&6; }
35105 if test "x$curl_disallow_inet_pton" != "xyes"; then
35106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35107$as_echo "yes" >&6; }
35108 tst_allow_inet_pton="yes"
35109 else
35110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35111$as_echo "no" >&6; }
35112 tst_allow_inet_pton="no"
35113 fi
35114 fi
35115 #
35116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35117$as_echo_n "checking if inet_pton might be used... " >&6; }
35118 if test "$tst_links_inet_pton" = "yes" &&
35119 test "$tst_proto_inet_pton" = "yes" &&
35120 test "$tst_compi_inet_pton" = "yes" &&
35121 test "$tst_allow_inet_pton" = "yes" &&
35122 test "$tst_works_inet_pton" != "no"; then
35123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35124$as_echo "yes" >&6; }
35125
35126cat >>confdefs.h <<_ACEOF
35127#define HAVE_INET_PTON 1
35128_ACEOF
35129
35130 curl_cv_func_inet_pton="yes"
35131 else
35132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35133$as_echo "no" >&6; }
35134 curl_cv_func_inet_pton="no"
35135 fi
35136
35137
35138curl_includes_stropts="\
35139/* includes start */
35140#ifdef HAVE_SYS_TYPES_H
35141# include <sys/types.h>
35142#endif
35143#ifdef HAVE_UNISTD_H
35144# include <unistd.h>
35145#endif
35146#ifdef HAVE_SYS_SOCKET_H
35147# include <sys/socket.h>
35148#endif
35149#ifdef HAVE_SYS_IOCTL_H
35150# include <sys/ioctl.h>
35151#endif
35152#ifdef HAVE_STROPTS_H
35153# include <stropts.h>
35154#endif
35155/* includes end */"
35156 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35157do :
35158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35159ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35160"
35161if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35162 cat >>confdefs.h <<_ACEOF
35163#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35164_ACEOF
35165
35166fi
35167
35168done
35169
35170
35171
35172 #
35173 tst_links_ioctl="unknown"
35174 tst_proto_ioctl="unknown"
35175 tst_compi_ioctl="unknown"
35176 tst_allow_ioctl="unknown"
35177 #
35178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35179$as_echo_n "checking if ioctl can be linked... " >&6; }
35180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35181/* end confdefs.h. */
35182
35183
35184#define ioctl innocuous_ioctl
35185#ifdef __STDC__
35186# include <limits.h>
35187#else
35188# include <assert.h>
35189#endif
35190#undef ioctl
35191#ifdef __cplusplus
35192extern "C"
35193#endif
35194char ioctl ();
35195#if defined __stub_ioctl || defined __stub___ioctl
35196choke me
35197#endif
35198
35199int main (void)
35200{
35201return ioctl ();
35202 ;
35203 return 0;
35204}
35205
35206_ACEOF
35207if ac_fn_c_try_link "$LINENO"; then :
35208
35209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35210$as_echo "yes" >&6; }
35211 tst_links_ioctl="yes"
35212
35213else
35214
35215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35216$as_echo "no" >&6; }
35217 tst_links_ioctl="no"
35218
35219fi
35220rm -f core conftest.err conftest.$ac_objext \
35221 conftest$ac_exeext conftest.$ac_ext
35222 #
35223 if test "$tst_links_ioctl" = "yes"; then
35224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35225$as_echo_n "checking if ioctl is prototyped... " >&6; }
35226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35227/* end confdefs.h. */
35228
35229 $curl_includes_stropts
35230
35231_ACEOF
35232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35233 $EGREP "ioctl" >/dev/null 2>&1; then :
35234
35235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35236$as_echo "yes" >&6; }
35237 tst_proto_ioctl="yes"
35238
35239else
35240
35241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35242$as_echo "no" >&6; }
35243 tst_proto_ioctl="no"
35244
35245fi
35246rm -f conftest*
35247
35248 fi
35249 #
35250 if test "$tst_proto_ioctl" = "yes"; then
35251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35252$as_echo_n "checking if ioctl is compilable... " >&6; }
35253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35254/* end confdefs.h. */
35255
35256
35257 $curl_includes_stropts
35258
35259int main (void)
35260{
35261
35262 if(0 != ioctl(0, 0, 0))
35263 return 1;
35264
35265 ;
35266 return 0;
35267}
35268
35269_ACEOF
35270if ac_fn_c_try_compile "$LINENO"; then :
35271
35272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35273$as_echo "yes" >&6; }
35274 tst_compi_ioctl="yes"
35275
35276else
35277
35278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35279$as_echo "no" >&6; }
35280 tst_compi_ioctl="no"
35281
35282fi
35283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35284 fi
35285 #
35286 if test "$tst_compi_ioctl" = "yes"; then
35287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35288$as_echo_n "checking if ioctl usage allowed... " >&6; }
35289 if test "x$curl_disallow_ioctl" != "xyes"; then
35290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35291$as_echo "yes" >&6; }
35292 tst_allow_ioctl="yes"
35293 else
35294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35295$as_echo "no" >&6; }
35296 tst_allow_ioctl="no"
35297 fi
35298 fi
35299 #
35300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35301$as_echo_n "checking if ioctl might be used... " >&6; }
35302 if test "$tst_links_ioctl" = "yes" &&
35303 test "$tst_proto_ioctl" = "yes" &&
35304 test "$tst_compi_ioctl" = "yes" &&
35305 test "$tst_allow_ioctl" = "yes"; then
35306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35307$as_echo "yes" >&6; }
35308
35309cat >>confdefs.h <<_ACEOF
35310#define HAVE_IOCTL 1
35311_ACEOF
35312
35313 curl_cv_func_ioctl="yes"
35314
35315 #
35316 tst_compi_ioctl_fionbio="unknown"
35317 tst_allow_ioctl_fionbio="unknown"
35318 #
35319 if test "$curl_cv_func_ioctl" = "yes"; then
35320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35321$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35323/* end confdefs.h. */
35324
35325
35326 $curl_includes_stropts
35327
35328int main (void)
35329{
35330
35331 int flags = 0;
35332 if(0 != ioctl(0, FIONBIO, &flags))
35333 return 1;
35334
35335 ;
35336 return 0;
35337}
35338
35339_ACEOF
35340if ac_fn_c_try_compile "$LINENO"; then :
35341
35342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35343$as_echo "yes" >&6; }
35344 tst_compi_ioctl_fionbio="yes"
35345
35346else
35347
35348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35349$as_echo "no" >&6; }
35350 tst_compi_ioctl_fionbio="no"
35351
35352fi
35353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35354 fi
35355 #
35356 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35358$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35359 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35361$as_echo "yes" >&6; }
35362 tst_allow_ioctl_fionbio="yes"
35363 else
35364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35365$as_echo "no" >&6; }
35366 tst_allow_ioctl_fionbio="no"
35367 fi
35368 fi
35369 #
35370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35371$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35372 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35373 test "$tst_allow_ioctl_fionbio" = "yes"; then
35374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35375$as_echo "yes" >&6; }
35376
35377cat >>confdefs.h <<_ACEOF
35378#define HAVE_IOCTL_FIONBIO 1
35379_ACEOF
35380
35381 curl_cv_func_ioctl_fionbio="yes"
35382 else
35383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35384$as_echo "no" >&6; }
35385 curl_cv_func_ioctl_fionbio="no"
35386 fi
35387
35388
35389 #
35390 tst_compi_ioctl_siocgifaddr="unknown"
35391 tst_allow_ioctl_siocgifaddr="unknown"
35392 #
35393 if test "$curl_cv_func_ioctl" = "yes"; then
35394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35395$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35397/* end confdefs.h. */
35398
35399
35400 $curl_includes_stropts
35401 #include <net/if.h>
35402
35403int main (void)
35404{
35405
35406 struct ifreq ifr;
35407 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35408 return 1;
35409
35410 ;
35411 return 0;
35412}
35413
35414_ACEOF
35415if ac_fn_c_try_compile "$LINENO"; then :
35416
35417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35418$as_echo "yes" >&6; }
35419 tst_compi_ioctl_siocgifaddr="yes"
35420
35421else
35422
35423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35424$as_echo "no" >&6; }
35425 tst_compi_ioctl_siocgifaddr="no"
35426
35427fi
35428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35429 fi
35430 #
35431 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35433$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35434 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35436$as_echo "yes" >&6; }
35437 tst_allow_ioctl_siocgifaddr="yes"
35438 else
35439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35440$as_echo "no" >&6; }
35441 tst_allow_ioctl_siocgifaddr="no"
35442 fi
35443 fi
35444 #
35445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35446$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35447 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35448 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35450$as_echo "yes" >&6; }
35451
35452cat >>confdefs.h <<_ACEOF
35453#define HAVE_IOCTL_SIOCGIFADDR 1
35454_ACEOF
35455
35456 curl_cv_func_ioctl_siocgifaddr="yes"
35457 else
35458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35459$as_echo "no" >&6; }
35460 curl_cv_func_ioctl_siocgifaddr="no"
35461 fi
35462
35463 else
35464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35465$as_echo "no" >&6; }
35466 curl_cv_func_ioctl="no"
35467 fi
35468
35469
35470 #
35471 tst_links_ioctlsocket="unknown"
35472 tst_proto_ioctlsocket="unknown"
35473 tst_compi_ioctlsocket="unknown"
35474 tst_allow_ioctlsocket="unknown"
35475 #
35476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35477$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35479/* end confdefs.h. */
35480
35481
35482 $curl_includes_winsock2
35483
35484int main (void)
35485{
35486
35487 if(0 != ioctlsocket(0, 0, 0))
35488 return 1;
35489
35490 ;
35491 return 0;
35492}
35493
35494_ACEOF
35495if ac_fn_c_try_link "$LINENO"; then :
35496
35497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35498$as_echo "yes" >&6; }
35499 tst_links_ioctlsocket="yes"
35500
35501else
35502
35503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35504$as_echo "no" >&6; }
35505 tst_links_ioctlsocket="no"
35506
35507fi
35508rm -f core conftest.err conftest.$ac_objext \
35509 conftest$ac_exeext conftest.$ac_ext
35510 #
35511 if test "$tst_links_ioctlsocket" = "yes"; then
35512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35513$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35515/* end confdefs.h. */
35516
35517 $curl_includes_winsock2
35518
35519_ACEOF
35520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35521 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35522
35523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35524$as_echo "yes" >&6; }
35525 tst_proto_ioctlsocket="yes"
35526
35527else
35528
35529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35530$as_echo "no" >&6; }
35531 tst_proto_ioctlsocket="no"
35532
35533fi
35534rm -f conftest*
35535
35536 fi
35537 #
35538 if test "$tst_proto_ioctlsocket" = "yes"; then
35539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35540$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35542/* end confdefs.h. */
35543
35544
35545 $curl_includes_winsock2
35546
35547int main (void)
35548{
35549
35550 if(0 != ioctlsocket(0, 0, 0))
35551 return 1;
35552
35553 ;
35554 return 0;
35555}
35556
35557_ACEOF
35558if ac_fn_c_try_compile "$LINENO"; then :
35559
35560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35561$as_echo "yes" >&6; }
35562 tst_compi_ioctlsocket="yes"
35563
35564else
35565
35566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35567$as_echo "no" >&6; }
35568 tst_compi_ioctlsocket="no"
35569
35570fi
35571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35572 fi
35573 #
35574 if test "$tst_compi_ioctlsocket" = "yes"; then
35575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35576$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35577 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35579$as_echo "yes" >&6; }
35580 tst_allow_ioctlsocket="yes"
35581 else
35582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35583$as_echo "no" >&6; }
35584 tst_allow_ioctlsocket="no"
35585 fi
35586 fi
35587 #
35588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35589$as_echo_n "checking if ioctlsocket might be used... " >&6; }
35590 if test "$tst_links_ioctlsocket" = "yes" &&
35591 test "$tst_proto_ioctlsocket" = "yes" &&
35592 test "$tst_compi_ioctlsocket" = "yes" &&
35593 test "$tst_allow_ioctlsocket" = "yes"; then
35594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35595$as_echo "yes" >&6; }
35596
35597cat >>confdefs.h <<_ACEOF
35598#define HAVE_IOCTLSOCKET 1
35599_ACEOF
35600
35601 curl_cv_func_ioctlsocket="yes"
35602
35603 #
35604 tst_compi_ioctlsocket_fionbio="unknown"
35605 tst_allow_ioctlsocket_fionbio="unknown"
35606 #
35607 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35609$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35611/* end confdefs.h. */
35612
35613
35614 $curl_includes_winsock2
35615
35616int main (void)
35617{
35618
35619 int flags = 0;
35620 if(0 != ioctlsocket(0, FIONBIO, &flags))
35621 return 1;
35622
35623 ;
35624 return 0;
35625}
35626
35627_ACEOF
35628if ac_fn_c_try_compile "$LINENO"; then :
35629
35630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35631$as_echo "yes" >&6; }
35632 tst_compi_ioctlsocket_fionbio="yes"
35633
35634else
35635
35636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35637$as_echo "no" >&6; }
35638 tst_compi_ioctlsocket_fionbio="no"
35639
35640fi
35641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35642 fi
35643 #
35644 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35646$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35647 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35649$as_echo "yes" >&6; }
35650 tst_allow_ioctlsocket_fionbio="yes"
35651 else
35652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35653$as_echo "no" >&6; }
35654 tst_allow_ioctlsocket_fionbio="no"
35655 fi
35656 fi
35657 #
35658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35659$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35660 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35661 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35663$as_echo "yes" >&6; }
35664
35665cat >>confdefs.h <<_ACEOF
35666#define HAVE_IOCTLSOCKET_FIONBIO 1
35667_ACEOF
35668
35669 curl_cv_func_ioctlsocket_fionbio="yes"
35670 else
35671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35672$as_echo "no" >&6; }
35673 curl_cv_func_ioctlsocket_fionbio="no"
35674 fi
35675
35676 else
35677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35678$as_echo "no" >&6; }
35679 curl_cv_func_ioctlsocket="no"
35680 fi
35681
35682
35683 #
35684 tst_links_ioctlsocket_camel="unknown"
35685 tst_proto_ioctlsocket_camel="unknown"
35686 tst_compi_ioctlsocket_camel="unknown"
35687 tst_allow_ioctlsocket_camel="unknown"
35688 #
35689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35690$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35692/* end confdefs.h. */
35693
35694
35695#define IoctlSocket innocuous_IoctlSocket
35696#ifdef __STDC__
35697# include <limits.h>
35698#else
35699# include <assert.h>
35700#endif
35701#undef IoctlSocket
35702#ifdef __cplusplus
35703extern "C"
35704#endif
35705char IoctlSocket ();
35706#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35707choke me
35708#endif
35709
35710int main (void)
35711{
35712return IoctlSocket ();
35713 ;
35714 return 0;
35715}
35716
35717_ACEOF
35718if ac_fn_c_try_link "$LINENO"; then :
35719
35720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35721$as_echo "yes" >&6; }
35722 tst_links_ioctlsocket_camel="yes"
35723
35724else
35725
35726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35727$as_echo "no" >&6; }
35728 tst_links_ioctlsocket_camel="no"
35729
35730fi
35731rm -f core conftest.err conftest.$ac_objext \
35732 conftest$ac_exeext conftest.$ac_ext
35733 #
35734 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35736$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35738/* end confdefs.h. */
35739
35740 $curl_includes_stropts
35741
35742_ACEOF
35743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35744 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35745
35746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35747$as_echo "yes" >&6; }
35748 tst_proto_ioctlsocket_camel="yes"
35749
35750else
35751
35752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35753$as_echo "no" >&6; }
35754 tst_proto_ioctlsocket_camel="no"
35755
35756fi
35757rm -f conftest*
35758
35759 fi
35760 #
35761 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35763$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35765/* end confdefs.h. */
35766
35767
35768 $curl_includes_stropts
35769
35770int main (void)
35771{
35772
35773 if(0 != IoctlSocket(0, 0, 0))
35774 return 1;
35775
35776 ;
35777 return 0;
35778}
35779
35780_ACEOF
35781if ac_fn_c_try_compile "$LINENO"; then :
35782
35783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35784$as_echo "yes" >&6; }
35785 tst_compi_ioctlsocket_camel="yes"
35786
35787else
35788
35789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35790$as_echo "no" >&6; }
35791 tst_compi_ioctlsocket_camel="no"
35792
35793fi
35794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35795 fi
35796 #
35797 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35799$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35800 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35802$as_echo "yes" >&6; }
35803 tst_allow_ioctlsocket_camel="yes"
35804 else
35805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35806$as_echo "no" >&6; }
35807 tst_allow_ioctlsocket_camel="no"
35808 fi
35809 fi
35810 #
35811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35812$as_echo_n "checking if IoctlSocket might be used... " >&6; }
35813 if test "$tst_links_ioctlsocket_camel" = "yes" &&
35814 test "$tst_proto_ioctlsocket_camel" = "yes" &&
35815 test "$tst_compi_ioctlsocket_camel" = "yes" &&
35816 test "$tst_allow_ioctlsocket_camel" = "yes"; then
35817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35818$as_echo "yes" >&6; }
35819
35820cat >>confdefs.h <<_ACEOF
35821#define HAVE_IOCTLSOCKET_CAMEL 1
35822_ACEOF
35823
35824 curl_cv_func_ioctlsocket_camel="yes"
35825
35826 #
35827 tst_compi_ioctlsocket_camel_fionbio="unknown"
35828 tst_allow_ioctlsocket_camel_fionbio="unknown"
35829 #
35830 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
35831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35832$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35834/* end confdefs.h. */
35835
35836
35837 $curl_includes_stropts
35838
35839int main (void)
35840{
35841
35842 long flags = 0;
35843 if(0 != ioctlsocket(0, FIONBIO, &flags))
35844 return 1;
35845
35846 ;
35847 return 0;
35848}
35849
35850_ACEOF
35851if ac_fn_c_try_compile "$LINENO"; then :
35852
35853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35854$as_echo "yes" >&6; }
35855 tst_compi_ioctlsocket_camel_fionbio="yes"
35856
35857else
35858
35859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35860$as_echo "no" >&6; }
35861 tst_compi_ioctlsocket_camel_fionbio="no"
35862
35863fi
35864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35865 fi
35866 #
35867 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
35868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
35869$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
35870 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
35871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35872$as_echo "yes" >&6; }
35873 tst_allow_ioctlsocket_camel_fionbio="yes"
35874 else
35875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35876$as_echo "no" >&6; }
35877 tst_allow_ioctlsocket_camel_fionbio="no"
35878 fi
35879 fi
35880 #
35881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
35882$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
35883 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
35884 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
35885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35886$as_echo "yes" >&6; }
35887
35888cat >>confdefs.h <<_ACEOF
35889#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
35890_ACEOF
35891
35892 curl_cv_func_ioctlsocket_camel_fionbio="yes"
35893 else
35894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35895$as_echo "no" >&6; }
35896 curl_cv_func_ioctlsocket_camel_fionbio="no"
35897 fi
35898
35899 else
35900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35901$as_echo "no" >&6; }
35902 curl_cv_func_ioctlsocket_camel="no"
35903 fi
35904
35905
35906 #
35907 tst_links_localtime_r="unknown"
35908 tst_proto_localtime_r="unknown"
35909 tst_compi_localtime_r="unknown"
35910 tst_works_localtime_r="unknown"
35911 tst_allow_localtime_r="unknown"
35912 #
35913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
35914$as_echo_n "checking if localtime_r can be linked... " >&6; }
35915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35916/* end confdefs.h. */
35917
35918
35919#define localtime_r innocuous_localtime_r
35920#ifdef __STDC__
35921# include <limits.h>
35922#else
35923# include <assert.h>
35924#endif
35925#undef localtime_r
35926#ifdef __cplusplus
35927extern "C"
35928#endif
35929char localtime_r ();
35930#if defined __stub_localtime_r || defined __stub___localtime_r
35931choke me
35932#endif
35933
35934int main (void)
35935{
35936return localtime_r ();
35937 ;
35938 return 0;
35939}
35940
35941_ACEOF
35942if ac_fn_c_try_link "$LINENO"; then :
35943
35944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35945$as_echo "yes" >&6; }
35946 tst_links_localtime_r="yes"
35947
35948else
35949
35950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35951$as_echo "no" >&6; }
35952 tst_links_localtime_r="no"
35953
35954fi
35955rm -f core conftest.err conftest.$ac_objext \
35956 conftest$ac_exeext conftest.$ac_ext
35957 #
35958 if test "$tst_links_localtime_r" = "yes"; then
35959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
35960$as_echo_n "checking if localtime_r is prototyped... " >&6; }
35961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35962/* end confdefs.h. */
35963
35964 $curl_includes_time
35965
35966_ACEOF
35967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35968 $EGREP "localtime_r" >/dev/null 2>&1; then :
35969
35970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35971$as_echo "yes" >&6; }
35972 tst_proto_localtime_r="yes"
35973
35974else
35975
35976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35977$as_echo "no" >&6; }
35978 tst_proto_localtime_r="no"
35979
35980fi
35981rm -f conftest*
35982
35983 fi
35984 #
35985 if test "$tst_proto_localtime_r" = "yes"; then
35986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
35987$as_echo_n "checking if localtime_r is compilable... " >&6; }
35988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35989/* end confdefs.h. */
35990
35991
35992 $curl_includes_time
35993
35994int main (void)
35995{
35996
35997 if(0 != localtime_r(0, 0))
35998 return 1;
35999
36000 ;
36001 return 0;
36002}
36003
36004_ACEOF
36005if ac_fn_c_try_compile "$LINENO"; then :
36006
36007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36008$as_echo "yes" >&6; }
36009 tst_compi_localtime_r="yes"
36010
36011else
36012
36013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36014$as_echo "no" >&6; }
36015 tst_compi_localtime_r="no"
36016
36017fi
36018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36019 fi
36020 #
36021 if test "x$cross_compiling" != "xyes" &&
36022 test "$tst_compi_localtime_r" = "yes"; then
36023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36024$as_echo_n "checking if localtime_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080036025
36026
36027 old=$LD_LIBRARY_PATH
36028 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36029 export LD_LIBRARY_PATH
36030 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070036031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36033as_fn_error $? "cannot run test program while cross compiling
36034See \`config.log' for more details" "$LINENO" 5; }
36035else
36036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36037/* end confdefs.h. */
36038
36039
36040 $curl_includes_stdlib
36041 $curl_includes_time
36042
36043int main (void)
36044{
36045
36046 time_t clock = 1170352587;
36047 struct tm *tmp = 0;
36048 struct tm result;
36049 tmp = localtime_r(&clock, &result);
36050 if(tmp)
36051 exit(0);
36052 else
36053 exit(1);
36054
36055 ;
36056 return 0;
36057}
36058
36059_ACEOF
36060if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080036061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036062$as_echo "yes" >&6; }
36063 tst_works_localtime_r="yes"
36064
36065else
Elliott Hughesa93fb052018-12-12 14:22:48 -080036066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036067$as_echo "no" >&6; }
36068 tst_works_localtime_r="no"
36069
36070fi
36071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36072 conftest.$ac_objext conftest.beam conftest.$ac_ext
36073fi
36074
Elliott Hughesa93fb052018-12-12 14:22:48 -080036075 LD_LIBRARY_PATH=$old # restore
36076
Elliott Hughes82be86d2017-09-20 17:00:17 -070036077 fi
36078 #
36079 if test "$tst_compi_localtime_r" = "yes" &&
36080 test "$tst_works_localtime_r" != "no"; then
36081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36082$as_echo_n "checking if localtime_r usage allowed... " >&6; }
36083 if test "x$curl_disallow_localtime_r" != "xyes"; then
36084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36085$as_echo "yes" >&6; }
36086 tst_allow_localtime_r="yes"
36087 else
36088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36089$as_echo "no" >&6; }
36090 tst_allow_localtime_r="no"
36091 fi
36092 fi
36093 #
36094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36095$as_echo_n "checking if localtime_r might be used... " >&6; }
36096 if test "$tst_links_localtime_r" = "yes" &&
36097 test "$tst_proto_localtime_r" = "yes" &&
36098 test "$tst_compi_localtime_r" = "yes" &&
36099 test "$tst_allow_localtime_r" = "yes" &&
36100 test "$tst_works_localtime_r" != "no"; then
36101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36102$as_echo "yes" >&6; }
36103
36104cat >>confdefs.h <<_ACEOF
36105#define HAVE_LOCALTIME_R 1
36106_ACEOF
36107
36108 curl_cv_func_localtime_r="yes"
36109 else
36110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36111$as_echo "no" >&6; }
36112 curl_cv_func_localtime_r="no"
36113 fi
36114
36115
36116 #
36117 tst_links_memrchr="unknown"
36118 tst_macro_memrchr="unknown"
36119 tst_proto_memrchr="unknown"
36120 tst_compi_memrchr="unknown"
36121 tst_allow_memrchr="unknown"
36122 #
36123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36124$as_echo_n "checking if memrchr can be linked... " >&6; }
36125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36126/* end confdefs.h. */
36127
36128
36129#define memrchr innocuous_memrchr
36130#ifdef __STDC__
36131# include <limits.h>
36132#else
36133# include <assert.h>
36134#endif
36135#undef memrchr
36136#ifdef __cplusplus
36137extern "C"
36138#endif
36139char memrchr ();
36140#if defined __stub_memrchr || defined __stub___memrchr
36141choke me
36142#endif
36143
36144int main (void)
36145{
36146return memrchr ();
36147 ;
36148 return 0;
36149}
36150
36151_ACEOF
36152if ac_fn_c_try_link "$LINENO"; then :
36153
36154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36155$as_echo "yes" >&6; }
36156 tst_links_memrchr="yes"
36157
36158else
36159
36160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36161$as_echo "no" >&6; }
36162 tst_links_memrchr="no"
36163
36164fi
36165rm -f core conftest.err conftest.$ac_objext \
36166 conftest$ac_exeext conftest.$ac_ext
36167 #
36168 if test "$tst_links_memrchr" = "no"; then
36169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36170$as_echo_n "checking if memrchr seems a macro... " >&6; }
36171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36172/* end confdefs.h. */
36173
36174
36175 $curl_includes_string
36176
36177int main (void)
36178{
36179
36180 if(0 != memrchr(0, 0, 0))
36181 return 1;
36182
36183 ;
36184 return 0;
36185}
36186
36187_ACEOF
36188if ac_fn_c_try_link "$LINENO"; then :
36189
36190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36191$as_echo "yes" >&6; }
36192 tst_macro_memrchr="yes"
36193
36194else
36195
36196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36197$as_echo "no" >&6; }
36198 tst_macro_memrchr="no"
36199
36200fi
36201rm -f core conftest.err conftest.$ac_objext \
36202 conftest$ac_exeext conftest.$ac_ext
36203 fi
36204 #
36205 if test "$tst_links_memrchr" = "yes"; then
36206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36207$as_echo_n "checking if memrchr is prototyped... " >&6; }
36208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36209/* end confdefs.h. */
36210
36211 $curl_includes_string
36212
36213_ACEOF
36214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36215 $EGREP "memrchr" >/dev/null 2>&1; then :
36216
36217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36218$as_echo "yes" >&6; }
36219 tst_proto_memrchr="yes"
36220
36221else
36222
36223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36224$as_echo "no" >&6; }
36225 tst_proto_memrchr="no"
36226
36227fi
36228rm -f conftest*
36229
36230 fi
36231 #
36232 if test "$tst_proto_memrchr" = "yes" ||
36233 test "$tst_macro_memrchr" = "yes"; then
36234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36235$as_echo_n "checking if memrchr is compilable... " >&6; }
36236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36237/* end confdefs.h. */
36238
36239
36240 $curl_includes_string
36241
36242int main (void)
36243{
36244
36245 if(0 != memrchr(0, 0, 0))
36246 return 1;
36247
36248 ;
36249 return 0;
36250}
36251
36252_ACEOF
36253if ac_fn_c_try_compile "$LINENO"; then :
36254
36255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36256$as_echo "yes" >&6; }
36257 tst_compi_memrchr="yes"
36258
36259else
36260
36261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36262$as_echo "no" >&6; }
36263 tst_compi_memrchr="no"
36264
36265fi
36266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36267 fi
36268 #
36269 if test "$tst_compi_memrchr" = "yes"; then
36270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36271$as_echo_n "checking if memrchr usage allowed... " >&6; }
36272 if test "x$curl_disallow_memrchr" != "xyes"; then
36273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36274$as_echo "yes" >&6; }
36275 tst_allow_memrchr="yes"
36276 else
36277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36278$as_echo "no" >&6; }
36279 tst_allow_memrchr="no"
36280 fi
36281 fi
36282 #
36283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36284$as_echo_n "checking if memrchr might be used... " >&6; }
36285 if (test "$tst_proto_memrchr" = "yes" ||
36286 test "$tst_macro_memrchr" = "yes") &&
36287 test "$tst_compi_memrchr" = "yes" &&
36288 test "$tst_allow_memrchr" = "yes"; then
36289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36290$as_echo "yes" >&6; }
36291
36292cat >>confdefs.h <<_ACEOF
36293#define HAVE_MEMRCHR 1
36294_ACEOF
36295
36296 curl_cv_func_memrchr="yes"
36297 else
36298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36299$as_echo "no" >&6; }
36300 curl_cv_func_memrchr="no"
36301 fi
36302
36303
36304 #
36305 tst_links_poll="unknown"
36306 tst_proto_poll="unknown"
36307 tst_compi_poll="unknown"
36308 tst_works_poll="unknown"
36309 tst_allow_poll="unknown"
36310 #
36311 case $host_os in
36312 darwin*|interix*)
36313 curl_disallow_poll="yes"
36314 tst_compi_poll="no"
36315 ;;
36316 esac
36317 #
36318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36319$as_echo_n "checking if poll can be linked... " >&6; }
36320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36321/* end confdefs.h. */
36322
36323
36324 $curl_includes_poll
36325
36326int main (void)
36327{
36328
36329 if(0 != poll(0, 0, 0))
36330 return 1;
36331
36332 ;
36333 return 0;
36334}
36335
36336_ACEOF
36337if ac_fn_c_try_link "$LINENO"; then :
36338
36339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36340$as_echo "yes" >&6; }
36341 tst_links_poll="yes"
36342
36343else
36344
36345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36346$as_echo "no" >&6; }
36347 tst_links_poll="no"
36348
36349fi
36350rm -f core conftest.err conftest.$ac_objext \
36351 conftest$ac_exeext conftest.$ac_ext
36352 #
36353 if test "$tst_links_poll" = "yes"; then
36354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36355$as_echo_n "checking if poll is prototyped... " >&6; }
36356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36357/* end confdefs.h. */
36358
36359 $curl_includes_poll
36360
36361_ACEOF
36362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36363 $EGREP "poll" >/dev/null 2>&1; then :
36364
36365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36366$as_echo "yes" >&6; }
36367 tst_proto_poll="yes"
36368
36369else
36370
36371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36372$as_echo "no" >&6; }
36373 tst_proto_poll="no"
36374
36375fi
36376rm -f conftest*
36377
36378 fi
36379 #
36380 if test "$tst_proto_poll" = "yes"; then
36381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36382$as_echo_n "checking if poll is compilable... " >&6; }
36383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36384/* end confdefs.h. */
36385
36386
36387 $curl_includes_poll
36388
36389int main (void)
36390{
36391
36392 if(0 != poll(0, 0, 0))
36393 return 1;
36394
36395 ;
36396 return 0;
36397}
36398
36399_ACEOF
36400if ac_fn_c_try_compile "$LINENO"; then :
36401
36402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36403$as_echo "yes" >&6; }
36404 tst_compi_poll="yes"
36405
36406else
36407
36408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36409$as_echo "no" >&6; }
36410 tst_compi_poll="no"
36411
36412fi
36413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36414 fi
36415 #
36416 if test "x$cross_compiling" != "xyes" &&
36417 test "$tst_compi_poll" = "yes"; then
36418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36419$as_echo_n "checking if poll seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080036420
36421
36422 old=$LD_LIBRARY_PATH
36423 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36424 export LD_LIBRARY_PATH
36425 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070036426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36428as_fn_error $? "cannot run test program while cross compiling
36429See \`config.log' for more details" "$LINENO" 5; }
36430else
36431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36432/* end confdefs.h. */
36433
36434
36435 $curl_includes_stdlib
36436 $curl_includes_poll
36437 $curl_includes_time
36438
36439int main (void)
36440{
36441
36442 /* detect the original poll() breakage */
36443 if(0 != poll(0, 0, 10))
36444 exit(1); /* fail */
36445 else {
36446 /* detect the 10.12 poll() breakage */
36447 struct timeval before, after;
36448 int rc;
36449 size_t us;
36450
36451 gettimeofday(&before, NULL);
36452 rc = poll(NULL, 0, 500);
36453 gettimeofday(&after, NULL);
36454
36455 us = (after.tv_sec - before.tv_sec) * 1000000 +
36456 (after.tv_usec - before.tv_usec);
36457
36458 if(us < 400000)
36459 exit(1);
36460 }
36461
36462 ;
36463 return 0;
36464}
36465
36466_ACEOF
36467if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080036468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036469$as_echo "yes" >&6; }
36470 tst_works_poll="yes"
36471
36472else
Elliott Hughesa93fb052018-12-12 14:22:48 -080036473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036474$as_echo "no" >&6; }
36475 tst_works_poll="no"
36476
36477fi
36478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36479 conftest.$ac_objext conftest.beam conftest.$ac_ext
36480fi
36481
Elliott Hughesa93fb052018-12-12 14:22:48 -080036482 LD_LIBRARY_PATH=$old # restore
36483
Elliott Hughes82be86d2017-09-20 17:00:17 -070036484 fi
36485 #
36486 if test "$tst_compi_poll" = "yes" &&
36487 test "$tst_works_poll" != "no"; then
36488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36489$as_echo_n "checking if poll usage allowed... " >&6; }
36490 if test "x$curl_disallow_poll" != "xyes"; then
36491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36492$as_echo "yes" >&6; }
36493 tst_allow_poll="yes"
36494 else
36495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36496$as_echo "no" >&6; }
36497 tst_allow_poll="no"
36498 fi
36499 fi
36500 #
36501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36502$as_echo_n "checking if poll might be used... " >&6; }
36503 if test "$tst_links_poll" = "yes" &&
36504 test "$tst_proto_poll" = "yes" &&
36505 test "$tst_compi_poll" = "yes" &&
36506 test "$tst_allow_poll" = "yes" &&
36507 test "$tst_works_poll" != "no"; then
36508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36509$as_echo "yes" >&6; }
36510
36511cat >>confdefs.h <<_ACEOF
36512#define HAVE_POLL 1
36513_ACEOF
36514
36515
36516cat >>confdefs.h <<_ACEOF
36517#define HAVE_POLL_FINE 1
36518_ACEOF
36519
36520 curl_cv_func_poll="yes"
36521 else
36522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36523$as_echo "no" >&6; }
36524 curl_cv_func_poll="no"
36525 fi
36526
36527
36528 #
36529 tst_links_setsockopt="unknown"
36530 tst_proto_setsockopt="unknown"
36531 tst_compi_setsockopt="unknown"
36532 tst_allow_setsockopt="unknown"
36533 #
36534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36535$as_echo_n "checking if setsockopt can be linked... " >&6; }
36536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36537/* end confdefs.h. */
36538
36539
36540 $curl_includes_winsock2
36541 $curl_includes_sys_socket
36542
36543int main (void)
36544{
36545
36546 if(0 != setsockopt(0, 0, 0, 0, 0))
36547 return 1;
36548
36549 ;
36550 return 0;
36551}
36552
36553_ACEOF
36554if ac_fn_c_try_link "$LINENO"; then :
36555
36556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36557$as_echo "yes" >&6; }
36558 tst_links_setsockopt="yes"
36559
36560else
36561
36562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36563$as_echo "no" >&6; }
36564 tst_links_setsockopt="no"
36565
36566fi
36567rm -f core conftest.err conftest.$ac_objext \
36568 conftest$ac_exeext conftest.$ac_ext
36569 #
36570 if test "$tst_links_setsockopt" = "yes"; then
36571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36572$as_echo_n "checking if setsockopt is prototyped... " >&6; }
36573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36574/* end confdefs.h. */
36575
36576 $curl_includes_winsock2
36577 $curl_includes_sys_socket
36578
36579_ACEOF
36580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36581 $EGREP "setsockopt" >/dev/null 2>&1; then :
36582
36583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36584$as_echo "yes" >&6; }
36585 tst_proto_setsockopt="yes"
36586
36587else
36588
36589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36590$as_echo "no" >&6; }
36591 tst_proto_setsockopt="no"
36592
36593fi
36594rm -f conftest*
36595
36596 fi
36597 #
36598 if test "$tst_proto_setsockopt" = "yes"; then
36599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36600$as_echo_n "checking if setsockopt is compilable... " >&6; }
36601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36602/* end confdefs.h. */
36603
36604
36605 $curl_includes_winsock2
36606 $curl_includes_sys_socket
36607
36608int main (void)
36609{
36610
36611 if(0 != setsockopt(0, 0, 0, 0, 0))
36612 return 1;
36613
36614 ;
36615 return 0;
36616}
36617
36618_ACEOF
36619if ac_fn_c_try_compile "$LINENO"; then :
36620
36621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36622$as_echo "yes" >&6; }
36623 tst_compi_setsockopt="yes"
36624
36625else
36626
36627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36628$as_echo "no" >&6; }
36629 tst_compi_setsockopt="no"
36630
36631fi
36632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36633 fi
36634 #
36635 if test "$tst_compi_setsockopt" = "yes"; then
36636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36637$as_echo_n "checking if setsockopt usage allowed... " >&6; }
36638 if test "x$curl_disallow_setsockopt" != "xyes"; then
36639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36640$as_echo "yes" >&6; }
36641 tst_allow_setsockopt="yes"
36642 else
36643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36644$as_echo "no" >&6; }
36645 tst_allow_setsockopt="no"
36646 fi
36647 fi
36648 #
36649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36650$as_echo_n "checking if setsockopt might be used... " >&6; }
36651 if test "$tst_links_setsockopt" = "yes" &&
36652 test "$tst_proto_setsockopt" = "yes" &&
36653 test "$tst_compi_setsockopt" = "yes" &&
36654 test "$tst_allow_setsockopt" = "yes"; then
36655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36656$as_echo "yes" >&6; }
36657
36658cat >>confdefs.h <<_ACEOF
36659#define HAVE_SETSOCKOPT 1
36660_ACEOF
36661
36662 curl_cv_func_setsockopt="yes"
36663
36664 #
36665 tst_compi_setsockopt_so_nonblock="unknown"
36666 tst_allow_setsockopt_so_nonblock="unknown"
36667 #
36668 if test "$curl_cv_func_setsockopt" = "yes"; then
36669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36670$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36672/* end confdefs.h. */
36673
36674
36675 $curl_includes_winsock2
36676 $curl_includes_sys_socket
36677
36678int main (void)
36679{
36680
36681 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36682 return 1;
36683
36684 ;
36685 return 0;
36686}
36687
36688_ACEOF
36689if ac_fn_c_try_compile "$LINENO"; then :
36690
36691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36692$as_echo "yes" >&6; }
36693 tst_compi_setsockopt_so_nonblock="yes"
36694
36695else
36696
36697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36698$as_echo "no" >&6; }
36699 tst_compi_setsockopt_so_nonblock="no"
36700
36701fi
36702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36703 fi
36704 #
36705 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36707$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36708 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36710$as_echo "yes" >&6; }
36711 tst_allow_setsockopt_so_nonblock="yes"
36712 else
36713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36714$as_echo "no" >&6; }
36715 tst_allow_setsockopt_so_nonblock="no"
36716 fi
36717 fi
36718 #
36719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36720$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36721 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36722 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36724$as_echo "yes" >&6; }
36725
36726cat >>confdefs.h <<_ACEOF
36727#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36728_ACEOF
36729
36730 curl_cv_func_setsockopt_so_nonblock="yes"
36731 else
36732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36733$as_echo "no" >&6; }
36734 curl_cv_func_setsockopt_so_nonblock="no"
36735 fi
36736
36737 else
36738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36739$as_echo "no" >&6; }
36740 curl_cv_func_setsockopt="no"
36741 fi
36742
36743
36744curl_includes_signal="\
36745/* includes start */
36746#ifdef HAVE_SYS_TYPES_H
36747# include <sys/types.h>
36748#endif
36749#ifdef HAVE_SIGNAL_H
36750# include <signal.h>
36751#endif
36752/* includes end */"
36753 for ac_header in sys/types.h signal.h
36754do :
36755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36756ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36757"
36758if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36759 cat >>confdefs.h <<_ACEOF
36760#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36761_ACEOF
36762
36763fi
36764
36765done
36766
36767
36768
36769 #
36770 tst_links_sigaction="unknown"
36771 tst_proto_sigaction="unknown"
36772 tst_compi_sigaction="unknown"
36773 tst_allow_sigaction="unknown"
36774 #
36775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36776$as_echo_n "checking if sigaction can be linked... " >&6; }
36777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36778/* end confdefs.h. */
36779
36780
36781#define sigaction innocuous_sigaction
36782#ifdef __STDC__
36783# include <limits.h>
36784#else
36785# include <assert.h>
36786#endif
36787#undef sigaction
36788#ifdef __cplusplus
36789extern "C"
36790#endif
36791char sigaction ();
36792#if defined __stub_sigaction || defined __stub___sigaction
36793choke me
36794#endif
36795
36796int main (void)
36797{
36798return sigaction ();
36799 ;
36800 return 0;
36801}
36802
36803_ACEOF
36804if ac_fn_c_try_link "$LINENO"; then :
36805
36806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36807$as_echo "yes" >&6; }
36808 tst_links_sigaction="yes"
36809
36810else
36811
36812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36813$as_echo "no" >&6; }
36814 tst_links_sigaction="no"
36815
36816fi
36817rm -f core conftest.err conftest.$ac_objext \
36818 conftest$ac_exeext conftest.$ac_ext
36819 #
36820 if test "$tst_links_sigaction" = "yes"; then
36821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36822$as_echo_n "checking if sigaction is prototyped... " >&6; }
36823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36824/* end confdefs.h. */
36825
36826 $curl_includes_signal
36827
36828_ACEOF
36829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36830 $EGREP "sigaction" >/dev/null 2>&1; then :
36831
36832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36833$as_echo "yes" >&6; }
36834 tst_proto_sigaction="yes"
36835
36836else
36837
36838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36839$as_echo "no" >&6; }
36840 tst_proto_sigaction="no"
36841
36842fi
36843rm -f conftest*
36844
36845 fi
36846 #
36847 if test "$tst_proto_sigaction" = "yes"; then
36848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
36849$as_echo_n "checking if sigaction is compilable... " >&6; }
36850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36851/* end confdefs.h. */
36852
36853
36854 $curl_includes_signal
36855
36856int main (void)
36857{
36858
36859 if(0 != sigaction(0, 0, 0))
36860 return 1;
36861
36862 ;
36863 return 0;
36864}
36865
36866_ACEOF
36867if ac_fn_c_try_compile "$LINENO"; then :
36868
36869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36870$as_echo "yes" >&6; }
36871 tst_compi_sigaction="yes"
36872
36873else
36874
36875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36876$as_echo "no" >&6; }
36877 tst_compi_sigaction="no"
36878
36879fi
36880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36881 fi
36882 #
36883 if test "$tst_compi_sigaction" = "yes"; then
36884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
36885$as_echo_n "checking if sigaction usage allowed... " >&6; }
36886 if test "x$curl_disallow_sigaction" != "xyes"; then
36887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36888$as_echo "yes" >&6; }
36889 tst_allow_sigaction="yes"
36890 else
36891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36892$as_echo "no" >&6; }
36893 tst_allow_sigaction="no"
36894 fi
36895 fi
36896 #
36897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
36898$as_echo_n "checking if sigaction might be used... " >&6; }
36899 if test "$tst_links_sigaction" = "yes" &&
36900 test "$tst_proto_sigaction" = "yes" &&
36901 test "$tst_compi_sigaction" = "yes" &&
36902 test "$tst_allow_sigaction" = "yes"; then
36903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36904$as_echo "yes" >&6; }
36905
36906cat >>confdefs.h <<_ACEOF
36907#define HAVE_SIGACTION 1
36908_ACEOF
36909
36910 curl_cv_func_sigaction="yes"
36911 else
36912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36913$as_echo "no" >&6; }
36914 curl_cv_func_sigaction="no"
36915 fi
36916
36917
36918 #
36919 tst_links_siginterrupt="unknown"
36920 tst_proto_siginterrupt="unknown"
36921 tst_compi_siginterrupt="unknown"
36922 tst_allow_siginterrupt="unknown"
36923 #
36924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
36925$as_echo_n "checking if siginterrupt can be linked... " >&6; }
36926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36927/* end confdefs.h. */
36928
36929
36930#define siginterrupt innocuous_siginterrupt
36931#ifdef __STDC__
36932# include <limits.h>
36933#else
36934# include <assert.h>
36935#endif
36936#undef siginterrupt
36937#ifdef __cplusplus
36938extern "C"
36939#endif
36940char siginterrupt ();
36941#if defined __stub_siginterrupt || defined __stub___siginterrupt
36942choke me
36943#endif
36944
36945int main (void)
36946{
36947return siginterrupt ();
36948 ;
36949 return 0;
36950}
36951
36952_ACEOF
36953if ac_fn_c_try_link "$LINENO"; then :
36954
36955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36956$as_echo "yes" >&6; }
36957 tst_links_siginterrupt="yes"
36958
36959else
36960
36961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36962$as_echo "no" >&6; }
36963 tst_links_siginterrupt="no"
36964
36965fi
36966rm -f core conftest.err conftest.$ac_objext \
36967 conftest$ac_exeext conftest.$ac_ext
36968 #
36969 if test "$tst_links_siginterrupt" = "yes"; then
36970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
36971$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
36972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36973/* end confdefs.h. */
36974
36975 $curl_includes_signal
36976
36977_ACEOF
36978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36979 $EGREP "siginterrupt" >/dev/null 2>&1; then :
36980
36981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36982$as_echo "yes" >&6; }
36983 tst_proto_siginterrupt="yes"
36984
36985else
36986
36987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36988$as_echo "no" >&6; }
36989 tst_proto_siginterrupt="no"
36990
36991fi
36992rm -f conftest*
36993
36994 fi
36995 #
36996 if test "$tst_proto_siginterrupt" = "yes"; then
36997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
36998$as_echo_n "checking if siginterrupt is compilable... " >&6; }
36999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37000/* end confdefs.h. */
37001
37002
37003 $curl_includes_signal
37004
37005int main (void)
37006{
37007
37008 if(0 != siginterrupt(0, 0))
37009 return 1;
37010
37011 ;
37012 return 0;
37013}
37014
37015_ACEOF
37016if ac_fn_c_try_compile "$LINENO"; then :
37017
37018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37019$as_echo "yes" >&6; }
37020 tst_compi_siginterrupt="yes"
37021
37022else
37023
37024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37025$as_echo "no" >&6; }
37026 tst_compi_siginterrupt="no"
37027
37028fi
37029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37030 fi
37031 #
37032 if test "$tst_compi_siginterrupt" = "yes"; then
37033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37034$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37035 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37037$as_echo "yes" >&6; }
37038 tst_allow_siginterrupt="yes"
37039 else
37040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37041$as_echo "no" >&6; }
37042 tst_allow_siginterrupt="no"
37043 fi
37044 fi
37045 #
37046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37047$as_echo_n "checking if siginterrupt might be used... " >&6; }
37048 if test "$tst_links_siginterrupt" = "yes" &&
37049 test "$tst_proto_siginterrupt" = "yes" &&
37050 test "$tst_compi_siginterrupt" = "yes" &&
37051 test "$tst_allow_siginterrupt" = "yes"; then
37052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37053$as_echo "yes" >&6; }
37054
37055cat >>confdefs.h <<_ACEOF
37056#define HAVE_SIGINTERRUPT 1
37057_ACEOF
37058
37059 curl_cv_func_siginterrupt="yes"
37060 else
37061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37062$as_echo "no" >&6; }
37063 curl_cv_func_siginterrupt="no"
37064 fi
37065
37066
37067 #
37068 tst_links_signal="unknown"
37069 tst_proto_signal="unknown"
37070 tst_compi_signal="unknown"
37071 tst_allow_signal="unknown"
37072 #
37073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37074$as_echo_n "checking if signal can be linked... " >&6; }
37075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37076/* end confdefs.h. */
37077
37078
37079#define signal innocuous_signal
37080#ifdef __STDC__
37081# include <limits.h>
37082#else
37083# include <assert.h>
37084#endif
37085#undef signal
37086#ifdef __cplusplus
37087extern "C"
37088#endif
37089char signal ();
37090#if defined __stub_signal || defined __stub___signal
37091choke me
37092#endif
37093
37094int main (void)
37095{
37096return signal ();
37097 ;
37098 return 0;
37099}
37100
37101_ACEOF
37102if ac_fn_c_try_link "$LINENO"; then :
37103
37104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37105$as_echo "yes" >&6; }
37106 tst_links_signal="yes"
37107
37108else
37109
37110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37111$as_echo "no" >&6; }
37112 tst_links_signal="no"
37113
37114fi
37115rm -f core conftest.err conftest.$ac_objext \
37116 conftest$ac_exeext conftest.$ac_ext
37117 #
37118 if test "$tst_links_signal" = "yes"; then
37119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37120$as_echo_n "checking if signal is prototyped... " >&6; }
37121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37122/* end confdefs.h. */
37123
37124 $curl_includes_signal
37125
37126_ACEOF
37127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37128 $EGREP "signal" >/dev/null 2>&1; then :
37129
37130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37131$as_echo "yes" >&6; }
37132 tst_proto_signal="yes"
37133
37134else
37135
37136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37137$as_echo "no" >&6; }
37138 tst_proto_signal="no"
37139
37140fi
37141rm -f conftest*
37142
37143 fi
37144 #
37145 if test "$tst_proto_signal" = "yes"; then
37146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37147$as_echo_n "checking if signal is compilable... " >&6; }
37148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37149/* end confdefs.h. */
37150
37151
37152 $curl_includes_signal
37153
37154int main (void)
37155{
37156
37157 if(0 != signal(0, 0))
37158 return 1;
37159
37160 ;
37161 return 0;
37162}
37163
37164_ACEOF
37165if ac_fn_c_try_compile "$LINENO"; then :
37166
37167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37168$as_echo "yes" >&6; }
37169 tst_compi_signal="yes"
37170
37171else
37172
37173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37174$as_echo "no" >&6; }
37175 tst_compi_signal="no"
37176
37177fi
37178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37179 fi
37180 #
37181 if test "$tst_compi_signal" = "yes"; then
37182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37183$as_echo_n "checking if signal usage allowed... " >&6; }
37184 if test "x$curl_disallow_signal" != "xyes"; then
37185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37186$as_echo "yes" >&6; }
37187 tst_allow_signal="yes"
37188 else
37189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37190$as_echo "no" >&6; }
37191 tst_allow_signal="no"
37192 fi
37193 fi
37194 #
37195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37196$as_echo_n "checking if signal might be used... " >&6; }
37197 if test "$tst_links_signal" = "yes" &&
37198 test "$tst_proto_signal" = "yes" &&
37199 test "$tst_compi_signal" = "yes" &&
37200 test "$tst_allow_signal" = "yes"; then
37201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37202$as_echo "yes" >&6; }
37203
37204cat >>confdefs.h <<_ACEOF
37205#define HAVE_SIGNAL 1
37206_ACEOF
37207
37208 curl_cv_func_signal="yes"
37209 else
37210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37211$as_echo "no" >&6; }
37212 curl_cv_func_signal="no"
37213 fi
37214
37215
37216curl_includes_setjmp="\
37217/* includes start */
37218#ifdef HAVE_SYS_TYPES_H
37219# include <sys/types.h>
37220#endif
37221#ifdef HAVE_SETJMP_H
37222# include <setjmp.h>
37223#endif
37224/* includes end */"
37225 for ac_header in sys/types.h setjmp.h
37226do :
37227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37228ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37229"
37230if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37231 cat >>confdefs.h <<_ACEOF
37232#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37233_ACEOF
37234
37235fi
37236
37237done
37238
37239
37240
37241 #
37242 tst_links_sigsetjmp="unknown"
37243 tst_macro_sigsetjmp="unknown"
37244 tst_proto_sigsetjmp="unknown"
37245 tst_compi_sigsetjmp="unknown"
37246 tst_allow_sigsetjmp="unknown"
37247 #
37248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37249$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37251/* end confdefs.h. */
37252
37253
37254#define sigsetjmp innocuous_sigsetjmp
37255#ifdef __STDC__
37256# include <limits.h>
37257#else
37258# include <assert.h>
37259#endif
37260#undef sigsetjmp
37261#ifdef __cplusplus
37262extern "C"
37263#endif
37264char sigsetjmp ();
37265#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37266choke me
37267#endif
37268
37269int main (void)
37270{
37271return sigsetjmp ();
37272 ;
37273 return 0;
37274}
37275
37276_ACEOF
37277if ac_fn_c_try_link "$LINENO"; then :
37278
37279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37280$as_echo "yes" >&6; }
37281 tst_links_sigsetjmp="yes"
37282
37283else
37284
37285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37286$as_echo "no" >&6; }
37287 tst_links_sigsetjmp="no"
37288
37289fi
37290rm -f core conftest.err conftest.$ac_objext \
37291 conftest$ac_exeext conftest.$ac_ext
37292 #
37293 if test "$tst_links_sigsetjmp" = "no"; then
37294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37295$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37297/* end confdefs.h. */
37298
37299
37300 $curl_includes_setjmp
37301
37302int main (void)
37303{
37304
37305 sigjmp_buf env;
37306 if(0 != sigsetjmp(env, 0))
37307 return 1;
37308
37309 ;
37310 return 0;
37311}
37312
37313_ACEOF
37314if ac_fn_c_try_link "$LINENO"; then :
37315
37316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37317$as_echo "yes" >&6; }
37318 tst_macro_sigsetjmp="yes"
37319
37320else
37321
37322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37323$as_echo "no" >&6; }
37324 tst_macro_sigsetjmp="no"
37325
37326fi
37327rm -f core conftest.err conftest.$ac_objext \
37328 conftest$ac_exeext conftest.$ac_ext
37329 fi
37330 #
37331 if test "$tst_links_sigsetjmp" = "yes"; then
37332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37333$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37335/* end confdefs.h. */
37336
37337 $curl_includes_setjmp
37338
37339_ACEOF
37340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37341 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37342
37343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37344$as_echo "yes" >&6; }
37345 tst_proto_sigsetjmp="yes"
37346
37347else
37348
37349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37350$as_echo "no" >&6; }
37351 tst_proto_sigsetjmp="no"
37352
37353fi
37354rm -f conftest*
37355
37356 fi
37357 #
37358 if test "$tst_proto_sigsetjmp" = "yes" ||
37359 test "$tst_macro_sigsetjmp" = "yes"; then
37360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37361$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37363/* end confdefs.h. */
37364
37365
37366 $curl_includes_setjmp
37367
37368int main (void)
37369{
37370
37371 sigjmp_buf env;
37372 if(0 != sigsetjmp(env, 0))
37373 return 1;
37374
37375 ;
37376 return 0;
37377}
37378
37379_ACEOF
37380if ac_fn_c_try_compile "$LINENO"; then :
37381
37382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37383$as_echo "yes" >&6; }
37384 tst_compi_sigsetjmp="yes"
37385
37386else
37387
37388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37389$as_echo "no" >&6; }
37390 tst_compi_sigsetjmp="no"
37391
37392fi
37393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37394 fi
37395 #
37396 if test "$tst_compi_sigsetjmp" = "yes"; then
37397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37398$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37399 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37401$as_echo "yes" >&6; }
37402 tst_allow_sigsetjmp="yes"
37403 else
37404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37405$as_echo "no" >&6; }
37406 tst_allow_sigsetjmp="no"
37407 fi
37408 fi
37409 #
37410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37411$as_echo_n "checking if sigsetjmp might be used... " >&6; }
37412 if (test "$tst_proto_sigsetjmp" = "yes" ||
37413 test "$tst_macro_sigsetjmp" = "yes") &&
37414 test "$tst_compi_sigsetjmp" = "yes" &&
37415 test "$tst_allow_sigsetjmp" = "yes"; then
37416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37417$as_echo "yes" >&6; }
37418
37419cat >>confdefs.h <<_ACEOF
37420#define HAVE_SIGSETJMP 1
37421_ACEOF
37422
37423 curl_cv_func_sigsetjmp="yes"
37424 else
37425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37426$as_echo "no" >&6; }
37427 curl_cv_func_sigsetjmp="no"
37428 fi
37429
37430
37431 #
37432 tst_links_socket="unknown"
37433 tst_proto_socket="unknown"
37434 tst_compi_socket="unknown"
37435 tst_allow_socket="unknown"
37436 #
37437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37438$as_echo_n "checking if socket can be linked... " >&6; }
37439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37440/* end confdefs.h. */
37441
37442
37443 $curl_includes_winsock2
37444 $curl_includes_sys_socket
37445 $curl_includes_socket
37446
37447int main (void)
37448{
37449
37450 if(0 != socket(0, 0, 0))
37451 return 1;
37452
37453 ;
37454 return 0;
37455}
37456
37457_ACEOF
37458if ac_fn_c_try_link "$LINENO"; then :
37459
37460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37461$as_echo "yes" >&6; }
37462 tst_links_socket="yes"
37463
37464else
37465
37466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37467$as_echo "no" >&6; }
37468 tst_links_socket="no"
37469
37470fi
37471rm -f core conftest.err conftest.$ac_objext \
37472 conftest$ac_exeext conftest.$ac_ext
37473 #
37474 if test "$tst_links_socket" = "yes"; then
37475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37476$as_echo_n "checking if socket is prototyped... " >&6; }
37477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37478/* end confdefs.h. */
37479
37480 $curl_includes_winsock2
37481 $curl_includes_sys_socket
37482 $curl_includes_socket
37483
37484_ACEOF
37485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37486 $EGREP "socket" >/dev/null 2>&1; then :
37487
37488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37489$as_echo "yes" >&6; }
37490 tst_proto_socket="yes"
37491
37492else
37493
37494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37495$as_echo "no" >&6; }
37496 tst_proto_socket="no"
37497
37498fi
37499rm -f conftest*
37500
37501 fi
37502 #
37503 if test "$tst_proto_socket" = "yes"; then
37504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37505$as_echo_n "checking if socket is compilable... " >&6; }
37506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37507/* end confdefs.h. */
37508
37509
37510 $curl_includes_winsock2
37511 $curl_includes_sys_socket
37512 $curl_includes_socket
37513
37514int main (void)
37515{
37516
37517 if(0 != socket(0, 0, 0))
37518 return 1;
37519
37520 ;
37521 return 0;
37522}
37523
37524_ACEOF
37525if ac_fn_c_try_compile "$LINENO"; then :
37526
37527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37528$as_echo "yes" >&6; }
37529 tst_compi_socket="yes"
37530
37531else
37532
37533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37534$as_echo "no" >&6; }
37535 tst_compi_socket="no"
37536
37537fi
37538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37539 fi
37540 #
37541 if test "$tst_compi_socket" = "yes"; then
37542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37543$as_echo_n "checking if socket usage allowed... " >&6; }
37544 if test "x$curl_disallow_socket" != "xyes"; then
37545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37546$as_echo "yes" >&6; }
37547 tst_allow_socket="yes"
37548 else
37549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37550$as_echo "no" >&6; }
37551 tst_allow_socket="no"
37552 fi
37553 fi
37554 #
37555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37556$as_echo_n "checking if socket might be used... " >&6; }
37557 if test "$tst_links_socket" = "yes" &&
37558 test "$tst_proto_socket" = "yes" &&
37559 test "$tst_compi_socket" = "yes" &&
37560 test "$tst_allow_socket" = "yes"; then
37561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37562$as_echo "yes" >&6; }
37563
37564cat >>confdefs.h <<_ACEOF
37565#define HAVE_SOCKET 1
37566_ACEOF
37567
37568 curl_cv_func_socket="yes"
37569 else
37570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37571$as_echo "no" >&6; }
37572 curl_cv_func_socket="no"
37573 fi
37574
37575
37576 #
37577 tst_links_socketpair="unknown"
37578 tst_proto_socketpair="unknown"
37579 tst_compi_socketpair="unknown"
37580 tst_allow_socketpair="unknown"
37581 #
37582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37583$as_echo_n "checking if socketpair can be linked... " >&6; }
37584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37585/* end confdefs.h. */
37586
37587
37588#define socketpair innocuous_socketpair
37589#ifdef __STDC__
37590# include <limits.h>
37591#else
37592# include <assert.h>
37593#endif
37594#undef socketpair
37595#ifdef __cplusplus
37596extern "C"
37597#endif
37598char socketpair ();
37599#if defined __stub_socketpair || defined __stub___socketpair
37600choke me
37601#endif
37602
37603int main (void)
37604{
37605return socketpair ();
37606 ;
37607 return 0;
37608}
37609
37610_ACEOF
37611if ac_fn_c_try_link "$LINENO"; then :
37612
37613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37614$as_echo "yes" >&6; }
37615 tst_links_socketpair="yes"
37616
37617else
37618
37619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37620$as_echo "no" >&6; }
37621 tst_links_socketpair="no"
37622
37623fi
37624rm -f core conftest.err conftest.$ac_objext \
37625 conftest$ac_exeext conftest.$ac_ext
37626 #
37627 if test "$tst_links_socketpair" = "yes"; then
37628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37629$as_echo_n "checking if socketpair is prototyped... " >&6; }
37630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37631/* end confdefs.h. */
37632
37633 $curl_includes_sys_socket
37634 $curl_includes_socket
37635
37636_ACEOF
37637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37638 $EGREP "socketpair" >/dev/null 2>&1; then :
37639
37640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37641$as_echo "yes" >&6; }
37642 tst_proto_socketpair="yes"
37643
37644else
37645
37646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37647$as_echo "no" >&6; }
37648 tst_proto_socketpair="no"
37649
37650fi
37651rm -f conftest*
37652
37653 fi
37654 #
37655 if test "$tst_proto_socketpair" = "yes"; then
37656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37657$as_echo_n "checking if socketpair is compilable... " >&6; }
37658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37659/* end confdefs.h. */
37660
37661
37662 $curl_includes_sys_socket
37663 $curl_includes_socket
37664
37665int main (void)
37666{
37667
37668 int sv[2];
37669 if(0 != socketpair(0, 0, 0, sv))
37670 return 1;
37671
37672 ;
37673 return 0;
37674}
37675
37676_ACEOF
37677if ac_fn_c_try_compile "$LINENO"; then :
37678
37679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37680$as_echo "yes" >&6; }
37681 tst_compi_socketpair="yes"
37682
37683else
37684
37685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37686$as_echo "no" >&6; }
37687 tst_compi_socketpair="no"
37688
37689fi
37690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37691 fi
37692 #
37693 if test "$tst_compi_socketpair" = "yes"; then
37694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37695$as_echo_n "checking if socketpair usage allowed... " >&6; }
37696 if test "x$curl_disallow_socketpair" != "xyes"; then
37697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37698$as_echo "yes" >&6; }
37699 tst_allow_socketpair="yes"
37700 else
37701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37702$as_echo "no" >&6; }
37703 tst_allow_socketpair="no"
37704 fi
37705 fi
37706 #
37707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37708$as_echo_n "checking if socketpair might be used... " >&6; }
37709 if test "$tst_links_socketpair" = "yes" &&
37710 test "$tst_proto_socketpair" = "yes" &&
37711 test "$tst_compi_socketpair" = "yes" &&
37712 test "$tst_allow_socketpair" = "yes"; then
37713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37714$as_echo "yes" >&6; }
37715
37716cat >>confdefs.h <<_ACEOF
37717#define HAVE_SOCKETPAIR 1
37718_ACEOF
37719
37720 curl_cv_func_socketpair="yes"
37721 else
37722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37723$as_echo "no" >&6; }
37724 curl_cv_func_socketpair="no"
37725 fi
37726
37727
37728 #
37729 tst_links_strcasecmp="unknown"
37730 tst_proto_strcasecmp="unknown"
37731 tst_compi_strcasecmp="unknown"
37732 tst_allow_strcasecmp="unknown"
37733 #
37734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37735$as_echo_n "checking if strcasecmp can be linked... " >&6; }
37736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37737/* end confdefs.h. */
37738
37739
37740#define strcasecmp innocuous_strcasecmp
37741#ifdef __STDC__
37742# include <limits.h>
37743#else
37744# include <assert.h>
37745#endif
37746#undef strcasecmp
37747#ifdef __cplusplus
37748extern "C"
37749#endif
37750char strcasecmp ();
37751#if defined __stub_strcasecmp || defined __stub___strcasecmp
37752choke me
37753#endif
37754
37755int main (void)
37756{
37757return strcasecmp ();
37758 ;
37759 return 0;
37760}
37761
37762_ACEOF
37763if ac_fn_c_try_link "$LINENO"; then :
37764
37765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37766$as_echo "yes" >&6; }
37767 tst_links_strcasecmp="yes"
37768
37769else
37770
37771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37772$as_echo "no" >&6; }
37773 tst_links_strcasecmp="no"
37774
37775fi
37776rm -f core conftest.err conftest.$ac_objext \
37777 conftest$ac_exeext conftest.$ac_ext
37778 #
37779 if test "$tst_links_strcasecmp" = "yes"; then
37780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37781$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37783/* end confdefs.h. */
37784
37785 $curl_includes_string
37786
37787_ACEOF
37788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37789 $EGREP "strcasecmp" >/dev/null 2>&1; then :
37790
37791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37792$as_echo "yes" >&6; }
37793 tst_proto_strcasecmp="yes"
37794
37795else
37796
37797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37798$as_echo "no" >&6; }
37799 tst_proto_strcasecmp="no"
37800
37801fi
37802rm -f conftest*
37803
37804 fi
37805 #
37806 if test "$tst_proto_strcasecmp" = "yes"; then
37807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37808$as_echo_n "checking if strcasecmp is compilable... " >&6; }
37809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37810/* end confdefs.h. */
37811
37812
37813 $curl_includes_string
37814
37815int main (void)
37816{
37817
37818 if(0 != strcasecmp(0, 0))
37819 return 1;
37820
37821 ;
37822 return 0;
37823}
37824
37825_ACEOF
37826if ac_fn_c_try_compile "$LINENO"; then :
37827
37828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37829$as_echo "yes" >&6; }
37830 tst_compi_strcasecmp="yes"
37831
37832else
37833
37834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37835$as_echo "no" >&6; }
37836 tst_compi_strcasecmp="no"
37837
37838fi
37839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37840 fi
37841 #
37842 if test "$tst_compi_strcasecmp" = "yes"; then
37843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
37844$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
37845 if test "x$curl_disallow_strcasecmp" != "xyes"; then
37846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37847$as_echo "yes" >&6; }
37848 tst_allow_strcasecmp="yes"
37849 else
37850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37851$as_echo "no" >&6; }
37852 tst_allow_strcasecmp="no"
37853 fi
37854 fi
37855 #
37856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
37857$as_echo_n "checking if strcasecmp might be used... " >&6; }
37858 if test "$tst_links_strcasecmp" = "yes" &&
37859 test "$tst_proto_strcasecmp" = "yes" &&
37860 test "$tst_compi_strcasecmp" = "yes" &&
37861 test "$tst_allow_strcasecmp" = "yes"; then
37862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37863$as_echo "yes" >&6; }
37864
37865cat >>confdefs.h <<_ACEOF
37866#define HAVE_STRCASECMP 1
37867_ACEOF
37868
37869 curl_cv_func_strcasecmp="yes"
37870 else
37871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37872$as_echo "no" >&6; }
37873 curl_cv_func_strcasecmp="no"
37874 fi
37875
37876
37877 #
37878 tst_links_strcmpi="unknown"
37879 tst_proto_strcmpi="unknown"
37880 tst_compi_strcmpi="unknown"
37881 tst_allow_strcmpi="unknown"
37882 #
37883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
37884$as_echo_n "checking if strcmpi can be linked... " >&6; }
37885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37886/* end confdefs.h. */
37887
37888
37889#define strcmpi innocuous_strcmpi
37890#ifdef __STDC__
37891# include <limits.h>
37892#else
37893# include <assert.h>
37894#endif
37895#undef strcmpi
37896#ifdef __cplusplus
37897extern "C"
37898#endif
37899char strcmpi ();
37900#if defined __stub_strcmpi || defined __stub___strcmpi
37901choke me
37902#endif
37903
37904int main (void)
37905{
37906return strcmpi ();
37907 ;
37908 return 0;
37909}
37910
37911_ACEOF
37912if ac_fn_c_try_link "$LINENO"; then :
37913
37914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37915$as_echo "yes" >&6; }
37916 tst_links_strcmpi="yes"
37917
37918else
37919
37920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37921$as_echo "no" >&6; }
37922 tst_links_strcmpi="no"
37923
37924fi
37925rm -f core conftest.err conftest.$ac_objext \
37926 conftest$ac_exeext conftest.$ac_ext
37927 #
37928 if test "$tst_links_strcmpi" = "yes"; then
37929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
37930$as_echo_n "checking if strcmpi is prototyped... " >&6; }
37931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37932/* end confdefs.h. */
37933
37934 $curl_includes_string
37935
37936_ACEOF
37937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37938 $EGREP "strcmpi" >/dev/null 2>&1; then :
37939
37940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37941$as_echo "yes" >&6; }
37942 tst_proto_strcmpi="yes"
37943
37944else
37945
37946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37947$as_echo "no" >&6; }
37948 tst_proto_strcmpi="no"
37949
37950fi
37951rm -f conftest*
37952
37953 fi
37954 #
37955 if test "$tst_proto_strcmpi" = "yes"; then
37956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
37957$as_echo_n "checking if strcmpi is compilable... " >&6; }
37958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37959/* end confdefs.h. */
37960
37961
37962 $curl_includes_string
37963
37964int main (void)
37965{
37966
37967 if(0 != strcmpi(0, 0))
37968 return 1;
37969
37970 ;
37971 return 0;
37972}
37973
37974_ACEOF
37975if ac_fn_c_try_compile "$LINENO"; then :
37976
37977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37978$as_echo "yes" >&6; }
37979 tst_compi_strcmpi="yes"
37980
37981else
37982
37983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37984$as_echo "no" >&6; }
37985 tst_compi_strcmpi="no"
37986
37987fi
37988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37989 fi
37990 #
37991 if test "$tst_compi_strcmpi" = "yes"; then
37992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
37993$as_echo_n "checking if strcmpi usage allowed... " >&6; }
37994 if test "x$curl_disallow_strcmpi" != "xyes"; then
37995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37996$as_echo "yes" >&6; }
37997 tst_allow_strcmpi="yes"
37998 else
37999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38000$as_echo "no" >&6; }
38001 tst_allow_strcmpi="no"
38002 fi
38003 fi
38004 #
38005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38006$as_echo_n "checking if strcmpi might be used... " >&6; }
38007 if test "$tst_links_strcmpi" = "yes" &&
38008 test "$tst_proto_strcmpi" = "yes" &&
38009 test "$tst_compi_strcmpi" = "yes" &&
38010 test "$tst_allow_strcmpi" = "yes"; then
38011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38012$as_echo "yes" >&6; }
38013
38014cat >>confdefs.h <<_ACEOF
38015#define HAVE_STRCMPI 1
38016_ACEOF
38017
38018 curl_cv_func_strcmpi="yes"
38019 else
38020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38021$as_echo "no" >&6; }
38022 curl_cv_func_strcmpi="no"
38023 fi
38024
38025
38026 #
38027 tst_links_strdup="unknown"
38028 tst_proto_strdup="unknown"
38029 tst_compi_strdup="unknown"
38030 tst_allow_strdup="unknown"
38031 #
38032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38033$as_echo_n "checking if strdup can be linked... " >&6; }
38034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38035/* end confdefs.h. */
38036
38037
38038#define strdup innocuous_strdup
38039#ifdef __STDC__
38040# include <limits.h>
38041#else
38042# include <assert.h>
38043#endif
38044#undef strdup
38045#ifdef __cplusplus
38046extern "C"
38047#endif
38048char strdup ();
38049#if defined __stub_strdup || defined __stub___strdup
38050choke me
38051#endif
38052
38053int main (void)
38054{
38055return strdup ();
38056 ;
38057 return 0;
38058}
38059
38060_ACEOF
38061if ac_fn_c_try_link "$LINENO"; then :
38062
38063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38064$as_echo "yes" >&6; }
38065 tst_links_strdup="yes"
38066
38067else
38068
38069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38070$as_echo "no" >&6; }
38071 tst_links_strdup="no"
38072
38073fi
38074rm -f core conftest.err conftest.$ac_objext \
38075 conftest$ac_exeext conftest.$ac_ext
38076 #
38077 if test "$tst_links_strdup" = "yes"; then
38078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38079$as_echo_n "checking if strdup is prototyped... " >&6; }
38080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38081/* end confdefs.h. */
38082
38083 $curl_includes_string
38084
38085_ACEOF
38086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38087 $EGREP "strdup" >/dev/null 2>&1; then :
38088
38089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38090$as_echo "yes" >&6; }
38091 tst_proto_strdup="yes"
38092
38093else
38094
38095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38096$as_echo "no" >&6; }
38097 tst_proto_strdup="no"
38098
38099fi
38100rm -f conftest*
38101
38102 fi
38103 #
38104 if test "$tst_proto_strdup" = "yes"; then
38105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38106$as_echo_n "checking if strdup is compilable... " >&6; }
38107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38108/* end confdefs.h. */
38109
38110
38111 $curl_includes_string
38112
38113int main (void)
38114{
38115
38116 if(0 != strdup(0))
38117 return 1;
38118
38119 ;
38120 return 0;
38121}
38122
38123_ACEOF
38124if ac_fn_c_try_compile "$LINENO"; then :
38125
38126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38127$as_echo "yes" >&6; }
38128 tst_compi_strdup="yes"
38129
38130else
38131
38132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38133$as_echo "no" >&6; }
38134 tst_compi_strdup="no"
38135
38136fi
38137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38138 fi
38139 #
38140 if test "$tst_compi_strdup" = "yes"; then
38141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38142$as_echo_n "checking if strdup usage allowed... " >&6; }
38143 if test "x$curl_disallow_strdup" != "xyes"; then
38144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38145$as_echo "yes" >&6; }
38146 tst_allow_strdup="yes"
38147 else
38148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38149$as_echo "no" >&6; }
38150 tst_allow_strdup="no"
38151 fi
38152 fi
38153 #
38154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38155$as_echo_n "checking if strdup might be used... " >&6; }
38156 if test "$tst_links_strdup" = "yes" &&
38157 test "$tst_proto_strdup" = "yes" &&
38158 test "$tst_compi_strdup" = "yes" &&
38159 test "$tst_allow_strdup" = "yes"; then
38160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38161$as_echo "yes" >&6; }
38162
38163cat >>confdefs.h <<_ACEOF
38164#define HAVE_STRDUP 1
38165_ACEOF
38166
38167 curl_cv_func_strdup="yes"
38168 else
38169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38170$as_echo "no" >&6; }
38171 curl_cv_func_strdup="no"
38172 fi
38173
38174
38175 #
38176 tst_links_strerror_r="unknown"
38177 tst_proto_strerror_r="unknown"
38178 tst_compi_strerror_r="unknown"
38179 tst_glibc_strerror_r="unknown"
38180 tst_posix_strerror_r="unknown"
38181 tst_allow_strerror_r="unknown"
38182 tst_works_glibc_strerror_r="unknown"
38183 tst_works_posix_strerror_r="unknown"
38184 tst_glibc_strerror_r_type_arg3="unknown"
38185 tst_posix_strerror_r_type_arg3="unknown"
38186 #
38187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38188$as_echo_n "checking if strerror_r can be linked... " >&6; }
38189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38190/* end confdefs.h. */
38191
38192
38193#define strerror_r innocuous_strerror_r
38194#ifdef __STDC__
38195# include <limits.h>
38196#else
38197# include <assert.h>
38198#endif
38199#undef strerror_r
38200#ifdef __cplusplus
38201extern "C"
38202#endif
38203char strerror_r ();
38204#if defined __stub_strerror_r || defined __stub___strerror_r
38205choke me
38206#endif
38207
38208int main (void)
38209{
38210return strerror_r ();
38211 ;
38212 return 0;
38213}
38214
38215_ACEOF
38216if ac_fn_c_try_link "$LINENO"; then :
38217
38218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38219$as_echo "yes" >&6; }
38220 tst_links_strerror_r="yes"
38221
38222else
38223
38224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38225$as_echo "no" >&6; }
38226 tst_links_strerror_r="no"
38227
38228fi
38229rm -f core conftest.err conftest.$ac_objext \
38230 conftest$ac_exeext conftest.$ac_ext
38231 #
38232 if test "$tst_links_strerror_r" = "yes"; then
38233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38234$as_echo_n "checking if strerror_r is prototyped... " >&6; }
38235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38236/* end confdefs.h. */
38237
38238 $curl_includes_string
38239
38240_ACEOF
38241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38242 $EGREP "strerror_r" >/dev/null 2>&1; then :
38243
38244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38245$as_echo "yes" >&6; }
38246 tst_proto_strerror_r="yes"
38247
38248else
38249
38250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38251$as_echo "no" >&6; }
38252 tst_proto_strerror_r="no"
38253
38254fi
38255rm -f conftest*
38256
38257 fi
38258 #
38259 if test "$tst_proto_strerror_r" = "yes"; then
38260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38261$as_echo_n "checking if strerror_r is compilable... " >&6; }
38262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38263/* end confdefs.h. */
38264
38265
38266 $curl_includes_string
38267
38268int main (void)
38269{
38270
38271 if(0 != strerror_r(0, 0, 0))
38272 return 1;
38273
38274 ;
38275 return 0;
38276}
38277
38278_ACEOF
38279if ac_fn_c_try_compile "$LINENO"; then :
38280
38281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38282$as_echo "yes" >&6; }
38283 tst_compi_strerror_r="yes"
38284
38285else
38286
38287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38288$as_echo "no" >&6; }
38289 tst_compi_strerror_r="no"
38290
38291fi
38292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38293 fi
38294 #
38295 if test "$tst_compi_strerror_r" = "yes"; then
38296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38297$as_echo_n "checking if strerror_r is glibc like... " >&6; }
38298 tst_glibc_strerror_r_type_arg3="unknown"
38299 for arg3 in 'size_t' 'int' 'unsigned int'; do
38300 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38302/* end confdefs.h. */
38303
38304
38305 $curl_includes_string
38306 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38307
38308int main (void)
38309{
38310
38311 if(0 != strerror_r(0, 0, 0))
38312 return 1;
38313
38314 ;
38315 return 0;
38316}
38317
38318_ACEOF
38319if ac_fn_c_try_compile "$LINENO"; then :
38320
38321 tst_glibc_strerror_r_type_arg3="$arg3"
38322
38323fi
38324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38325 fi
38326 done
38327 case "$tst_glibc_strerror_r_type_arg3" in
38328 unknown)
38329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38330$as_echo "no" >&6; }
38331 tst_glibc_strerror_r="no"
38332 ;;
38333 *)
38334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38335$as_echo "yes" >&6; }
38336 tst_glibc_strerror_r="yes"
38337 ;;
38338 esac
38339 fi
38340 #
38341 if test "x$cross_compiling" != "xyes" &&
38342 test "$tst_glibc_strerror_r" = "yes"; then
38343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38344$as_echo_n "checking if strerror_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080038345
38346
38347 old=$LD_LIBRARY_PATH
38348 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38349 export LD_LIBRARY_PATH
38350 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070038351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38353as_fn_error $? "cannot run test program while cross compiling
38354See \`config.log' for more details" "$LINENO" 5; }
38355else
38356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38357/* end confdefs.h. */
38358
38359
38360 $curl_includes_stdlib
38361 $curl_includes_string
38362# include <errno.h>
38363
38364int main (void)
38365{
38366
38367 char buffer[1024];
38368 char *string = 0;
38369 buffer[0] = '\0';
38370 string = strerror_r(EACCES, buffer, sizeof(buffer));
38371 if(!string)
38372 exit(1); /* fail */
38373 if(!string[0])
38374 exit(1); /* fail */
38375 else
38376 exit(0);
38377
38378 ;
38379 return 0;
38380}
38381
38382_ACEOF
38383if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080038384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038385$as_echo "yes" >&6; }
38386 tst_works_glibc_strerror_r="yes"
38387
38388else
Elliott Hughesa93fb052018-12-12 14:22:48 -080038389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038390$as_echo "no" >&6; }
38391 tst_works_glibc_strerror_r="no"
38392
38393fi
38394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38395 conftest.$ac_objext conftest.beam conftest.$ac_ext
38396fi
38397
Elliott Hughesa93fb052018-12-12 14:22:48 -080038398 LD_LIBRARY_PATH=$old # restore
38399
Elliott Hughes82be86d2017-09-20 17:00:17 -070038400 fi
38401 #
38402 if test "$tst_compi_strerror_r" = "yes" &&
38403 test "$tst_works_glibc_strerror_r" != "yes"; then
38404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38405$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38406 tst_posix_strerror_r_type_arg3="unknown"
38407 for arg3 in 'size_t' 'int' 'unsigned int'; do
38408 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38410/* end confdefs.h. */
38411
38412
38413 $curl_includes_string
38414 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38415
38416int main (void)
38417{
38418
38419 if(0 != strerror_r(0, 0, 0))
38420 return 1;
38421
38422 ;
38423 return 0;
38424}
38425
38426_ACEOF
38427if ac_fn_c_try_compile "$LINENO"; then :
38428
38429 tst_posix_strerror_r_type_arg3="$arg3"
38430
38431fi
38432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38433 fi
38434 done
38435 case "$tst_posix_strerror_r_type_arg3" in
38436 unknown)
38437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38438$as_echo "no" >&6; }
38439 tst_posix_strerror_r="no"
38440 ;;
38441 *)
38442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38443$as_echo "yes" >&6; }
38444 tst_posix_strerror_r="yes"
38445 ;;
38446 esac
38447 fi
38448 #
38449 if test "x$cross_compiling" != "xyes" &&
38450 test "$tst_posix_strerror_r" = "yes"; then
38451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38452$as_echo_n "checking if strerror_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080038453
38454
38455 old=$LD_LIBRARY_PATH
38456 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38457 export LD_LIBRARY_PATH
38458 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070038459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38461as_fn_error $? "cannot run test program while cross compiling
38462See \`config.log' for more details" "$LINENO" 5; }
38463else
38464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38465/* end confdefs.h. */
38466
38467
38468 $curl_includes_stdlib
38469 $curl_includes_string
38470# include <errno.h>
38471
38472int main (void)
38473{
38474
38475 char buffer[1024];
38476 int error = 1;
38477 buffer[0] = '\0';
38478 error = strerror_r(EACCES, buffer, sizeof(buffer));
38479 if(error)
38480 exit(1); /* fail */
38481 if(buffer[0] == '\0')
38482 exit(1); /* fail */
38483 else
38484 exit(0);
38485
38486 ;
38487 return 0;
38488}
38489
38490_ACEOF
38491if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080038492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038493$as_echo "yes" >&6; }
38494 tst_works_posix_strerror_r="yes"
38495
38496else
Elliott Hughesa93fb052018-12-12 14:22:48 -080038497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038498$as_echo "no" >&6; }
38499 tst_works_posix_strerror_r="no"
38500
38501fi
38502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38503 conftest.$ac_objext conftest.beam conftest.$ac_ext
38504fi
38505
Elliott Hughesa93fb052018-12-12 14:22:48 -080038506 LD_LIBRARY_PATH=$old # restore
38507
Elliott Hughes82be86d2017-09-20 17:00:17 -070038508 fi
38509 #
38510 if test "$tst_works_glibc_strerror_r" = "yes"; then
38511 tst_posix_strerror_r="no"
38512 fi
38513 if test "$tst_works_posix_strerror_r" = "yes"; then
38514 tst_glibc_strerror_r="no"
38515 fi
38516 if test "$tst_glibc_strerror_r" = "yes" &&
38517 test "$tst_works_glibc_strerror_r" != "no" &&
38518 test "$tst_posix_strerror_r" != "yes"; then
38519 tst_allow_strerror_r="check"
38520 fi
38521 if test "$tst_posix_strerror_r" = "yes" &&
38522 test "$tst_works_posix_strerror_r" != "no" &&
38523 test "$tst_glibc_strerror_r" != "yes"; then
38524 tst_allow_strerror_r="check"
38525 fi
38526 if test "$tst_allow_strerror_r" = "check"; then
38527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38528$as_echo_n "checking if strerror_r usage allowed... " >&6; }
38529 if test "x$curl_disallow_strerror_r" != "xyes"; then
38530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38531$as_echo "yes" >&6; }
38532 tst_allow_strerror_r="yes"
38533 else
38534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38535$as_echo "no" >&6; }
38536 tst_allow_strerror_r="no"
38537 fi
38538 fi
38539 #
38540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38541$as_echo_n "checking if strerror_r might be used... " >&6; }
38542 if test "$tst_links_strerror_r" = "yes" &&
38543 test "$tst_proto_strerror_r" = "yes" &&
38544 test "$tst_compi_strerror_r" = "yes" &&
38545 test "$tst_allow_strerror_r" = "yes"; then
38546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38547$as_echo "yes" >&6; }
38548 if test "$tst_glibc_strerror_r" = "yes"; then
38549
38550cat >>confdefs.h <<_ACEOF
38551#define HAVE_STRERROR_R 1
38552_ACEOF
38553
38554
38555cat >>confdefs.h <<_ACEOF
38556#define HAVE_GLIBC_STRERROR_R 1
38557_ACEOF
38558
38559
38560cat >>confdefs.h <<_ACEOF
38561#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38562_ACEOF
38563
38564 fi
38565 if test "$tst_posix_strerror_r" = "yes"; then
38566
38567cat >>confdefs.h <<_ACEOF
38568#define HAVE_STRERROR_R 1
38569_ACEOF
38570
38571
38572cat >>confdefs.h <<_ACEOF
38573#define HAVE_POSIX_STRERROR_R 1
38574_ACEOF
38575
38576
38577cat >>confdefs.h <<_ACEOF
38578#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38579_ACEOF
38580
38581 fi
38582 curl_cv_func_strerror_r="yes"
38583 else
38584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38585$as_echo "no" >&6; }
38586 curl_cv_func_strerror_r="no"
38587 fi
38588 #
38589 if test "$tst_compi_strerror_r" = "yes" &&
38590 test "$tst_allow_strerror_r" = "unknown"; then
38591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38592$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38593 fi
38594 #
38595
38596
38597 #
38598 tst_links_stricmp="unknown"
38599 tst_proto_stricmp="unknown"
38600 tst_compi_stricmp="unknown"
38601 tst_allow_stricmp="unknown"
38602 #
38603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38604$as_echo_n "checking if stricmp can be linked... " >&6; }
38605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38606/* end confdefs.h. */
38607
38608
38609#define stricmp innocuous_stricmp
38610#ifdef __STDC__
38611# include <limits.h>
38612#else
38613# include <assert.h>
38614#endif
38615#undef stricmp
38616#ifdef __cplusplus
38617extern "C"
38618#endif
38619char stricmp ();
38620#if defined __stub_stricmp || defined __stub___stricmp
38621choke me
38622#endif
38623
38624int main (void)
38625{
38626return stricmp ();
38627 ;
38628 return 0;
38629}
38630
38631_ACEOF
38632if ac_fn_c_try_link "$LINENO"; then :
38633
38634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38635$as_echo "yes" >&6; }
38636 tst_links_stricmp="yes"
38637
38638else
38639
38640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38641$as_echo "no" >&6; }
38642 tst_links_stricmp="no"
38643
38644fi
38645rm -f core conftest.err conftest.$ac_objext \
38646 conftest$ac_exeext conftest.$ac_ext
38647 #
38648 if test "$tst_links_stricmp" = "yes"; then
38649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38650$as_echo_n "checking if stricmp is prototyped... " >&6; }
38651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38652/* end confdefs.h. */
38653
38654 $curl_includes_string
38655
38656_ACEOF
38657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38658 $EGREP "stricmp" >/dev/null 2>&1; then :
38659
38660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38661$as_echo "yes" >&6; }
38662 tst_proto_stricmp="yes"
38663
38664else
38665
38666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38667$as_echo "no" >&6; }
38668 tst_proto_stricmp="no"
38669
38670fi
38671rm -f conftest*
38672
38673 fi
38674 #
38675 if test "$tst_proto_stricmp" = "yes"; then
38676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38677$as_echo_n "checking if stricmp is compilable... " >&6; }
38678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38679/* end confdefs.h. */
38680
38681
38682 $curl_includes_string
38683
38684int main (void)
38685{
38686
38687 if(0 != stricmp(0, 0))
38688 return 1;
38689
38690 ;
38691 return 0;
38692}
38693
38694_ACEOF
38695if ac_fn_c_try_compile "$LINENO"; then :
38696
38697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38698$as_echo "yes" >&6; }
38699 tst_compi_stricmp="yes"
38700
38701else
38702
38703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38704$as_echo "no" >&6; }
38705 tst_compi_stricmp="no"
38706
38707fi
38708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38709 fi
38710 #
38711 if test "$tst_compi_stricmp" = "yes"; then
38712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38713$as_echo_n "checking if stricmp usage allowed... " >&6; }
38714 if test "x$curl_disallow_stricmp" != "xyes"; then
38715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38716$as_echo "yes" >&6; }
38717 tst_allow_stricmp="yes"
38718 else
38719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38720$as_echo "no" >&6; }
38721 tst_allow_stricmp="no"
38722 fi
38723 fi
38724 #
38725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38726$as_echo_n "checking if stricmp might be used... " >&6; }
38727 if test "$tst_links_stricmp" = "yes" &&
38728 test "$tst_proto_stricmp" = "yes" &&
38729 test "$tst_compi_stricmp" = "yes" &&
38730 test "$tst_allow_stricmp" = "yes"; then
38731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38732$as_echo "yes" >&6; }
38733
38734cat >>confdefs.h <<_ACEOF
38735#define HAVE_STRICMP 1
38736_ACEOF
38737
38738 curl_cv_func_stricmp="yes"
38739 else
38740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38741$as_echo "no" >&6; }
38742 curl_cv_func_stricmp="no"
38743 fi
38744
38745
38746 #
38747 tst_links_strncasecmp="unknown"
38748 tst_proto_strncasecmp="unknown"
38749 tst_compi_strncasecmp="unknown"
38750 tst_allow_strncasecmp="unknown"
38751 #
38752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38753$as_echo_n "checking if strncasecmp can be linked... " >&6; }
38754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38755/* end confdefs.h. */
38756
38757
38758#define strncasecmp innocuous_strncasecmp
38759#ifdef __STDC__
38760# include <limits.h>
38761#else
38762# include <assert.h>
38763#endif
38764#undef strncasecmp
38765#ifdef __cplusplus
38766extern "C"
38767#endif
38768char strncasecmp ();
38769#if defined __stub_strncasecmp || defined __stub___strncasecmp
38770choke me
38771#endif
38772
38773int main (void)
38774{
38775return strncasecmp ();
38776 ;
38777 return 0;
38778}
38779
38780_ACEOF
38781if ac_fn_c_try_link "$LINENO"; then :
38782
38783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38784$as_echo "yes" >&6; }
38785 tst_links_strncasecmp="yes"
38786
38787else
38788
38789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38790$as_echo "no" >&6; }
38791 tst_links_strncasecmp="no"
38792
38793fi
38794rm -f core conftest.err conftest.$ac_objext \
38795 conftest$ac_exeext conftest.$ac_ext
38796 #
38797 if test "$tst_links_strncasecmp" = "yes"; then
38798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38799$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38801/* end confdefs.h. */
38802
38803 $curl_includes_string
38804
38805_ACEOF
38806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38807 $EGREP "strncasecmp" >/dev/null 2>&1; then :
38808
38809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38810$as_echo "yes" >&6; }
38811 tst_proto_strncasecmp="yes"
38812
38813else
38814
38815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38816$as_echo "no" >&6; }
38817 tst_proto_strncasecmp="no"
38818
38819fi
38820rm -f conftest*
38821
38822 fi
38823 #
38824 if test "$tst_proto_strncasecmp" = "yes"; then
38825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38826$as_echo_n "checking if strncasecmp is compilable... " >&6; }
38827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38828/* end confdefs.h. */
38829
38830
38831 $curl_includes_string
38832
38833int main (void)
38834{
38835
38836 if(0 != strncasecmp(0, 0, 0))
38837 return 1;
38838
38839 ;
38840 return 0;
38841}
38842
38843_ACEOF
38844if ac_fn_c_try_compile "$LINENO"; then :
38845
38846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38847$as_echo "yes" >&6; }
38848 tst_compi_strncasecmp="yes"
38849
38850else
38851
38852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38853$as_echo "no" >&6; }
38854 tst_compi_strncasecmp="no"
38855
38856fi
38857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38858 fi
38859 #
38860 if test "$tst_compi_strncasecmp" = "yes"; then
38861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
38862$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
38863 if test "x$curl_disallow_strncasecmp" != "xyes"; then
38864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38865$as_echo "yes" >&6; }
38866 tst_allow_strncasecmp="yes"
38867 else
38868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38869$as_echo "no" >&6; }
38870 tst_allow_strncasecmp="no"
38871 fi
38872 fi
38873 #
38874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
38875$as_echo_n "checking if strncasecmp might be used... " >&6; }
38876 if test "$tst_links_strncasecmp" = "yes" &&
38877 test "$tst_proto_strncasecmp" = "yes" &&
38878 test "$tst_compi_strncasecmp" = "yes" &&
38879 test "$tst_allow_strncasecmp" = "yes"; then
38880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38881$as_echo "yes" >&6; }
38882
38883cat >>confdefs.h <<_ACEOF
38884#define HAVE_STRNCASECMP 1
38885_ACEOF
38886
38887 curl_cv_func_strncasecmp="yes"
38888 else
38889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38890$as_echo "no" >&6; }
38891 curl_cv_func_strncasecmp="no"
38892 fi
38893
38894
38895 #
38896 tst_links_strncmpi="unknown"
38897 tst_proto_strncmpi="unknown"
38898 tst_compi_strncmpi="unknown"
38899 tst_allow_strncmpi="unknown"
38900 #
38901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
38902$as_echo_n "checking if strncmpi can be linked... " >&6; }
38903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38904/* end confdefs.h. */
38905
38906
38907#define strncmpi innocuous_strncmpi
38908#ifdef __STDC__
38909# include <limits.h>
38910#else
38911# include <assert.h>
38912#endif
38913#undef strncmpi
38914#ifdef __cplusplus
38915extern "C"
38916#endif
38917char strncmpi ();
38918#if defined __stub_strncmpi || defined __stub___strncmpi
38919choke me
38920#endif
38921
38922int main (void)
38923{
38924return strncmpi ();
38925 ;
38926 return 0;
38927}
38928
38929_ACEOF
38930if ac_fn_c_try_link "$LINENO"; then :
38931
38932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38933$as_echo "yes" >&6; }
38934 tst_links_strncmpi="yes"
38935
38936else
38937
38938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38939$as_echo "no" >&6; }
38940 tst_links_strncmpi="no"
38941
38942fi
38943rm -f core conftest.err conftest.$ac_objext \
38944 conftest$ac_exeext conftest.$ac_ext
38945 #
38946 if test "$tst_links_strncmpi" = "yes"; then
38947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
38948$as_echo_n "checking if strncmpi is prototyped... " >&6; }
38949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38950/* end confdefs.h. */
38951
38952 $curl_includes_string
38953
38954_ACEOF
38955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38956 $EGREP "strncmpi" >/dev/null 2>&1; then :
38957
38958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38959$as_echo "yes" >&6; }
38960 tst_proto_strncmpi="yes"
38961
38962else
38963
38964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38965$as_echo "no" >&6; }
38966 tst_proto_strncmpi="no"
38967
38968fi
38969rm -f conftest*
38970
38971 fi
38972 #
38973 if test "$tst_proto_strncmpi" = "yes"; then
38974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
38975$as_echo_n "checking if strncmpi is compilable... " >&6; }
38976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38977/* end confdefs.h. */
38978
38979
38980 $curl_includes_string
38981
38982int main (void)
38983{
38984
38985 if(0 != strncmpi(0, 0))
38986 return 1;
38987
38988 ;
38989 return 0;
38990}
38991
38992_ACEOF
38993if ac_fn_c_try_compile "$LINENO"; then :
38994
38995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38996$as_echo "yes" >&6; }
38997 tst_compi_strncmpi="yes"
38998
38999else
39000
39001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39002$as_echo "no" >&6; }
39003 tst_compi_strncmpi="no"
39004
39005fi
39006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39007 fi
39008 #
39009 if test "$tst_compi_strncmpi" = "yes"; then
39010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39011$as_echo_n "checking if strncmpi usage allowed... " >&6; }
39012 if test "x$curl_disallow_strncmpi" != "xyes"; then
39013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39014$as_echo "yes" >&6; }
39015 tst_allow_strncmpi="yes"
39016 else
39017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39018$as_echo "no" >&6; }
39019 tst_allow_strncmpi="no"
39020 fi
39021 fi
39022 #
39023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39024$as_echo_n "checking if strncmpi might be used... " >&6; }
39025 if test "$tst_links_strncmpi" = "yes" &&
39026 test "$tst_proto_strncmpi" = "yes" &&
39027 test "$tst_compi_strncmpi" = "yes" &&
39028 test "$tst_allow_strncmpi" = "yes"; then
39029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39030$as_echo "yes" >&6; }
39031
39032cat >>confdefs.h <<_ACEOF
39033#define HAVE_STRNCMPI 1
39034_ACEOF
39035
39036 curl_cv_func_strncmpi="yes"
39037 else
39038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39039$as_echo "no" >&6; }
39040 curl_cv_func_strncmpi="no"
39041 fi
39042
39043
39044 #
39045 tst_links_strnicmp="unknown"
39046 tst_proto_strnicmp="unknown"
39047 tst_compi_strnicmp="unknown"
39048 tst_allow_strnicmp="unknown"
39049 #
39050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39051$as_echo_n "checking if strnicmp can be linked... " >&6; }
39052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39053/* end confdefs.h. */
39054
39055
39056#define strnicmp innocuous_strnicmp
39057#ifdef __STDC__
39058# include <limits.h>
39059#else
39060# include <assert.h>
39061#endif
39062#undef strnicmp
39063#ifdef __cplusplus
39064extern "C"
39065#endif
39066char strnicmp ();
39067#if defined __stub_strnicmp || defined __stub___strnicmp
39068choke me
39069#endif
39070
39071int main (void)
39072{
39073return strnicmp ();
39074 ;
39075 return 0;
39076}
39077
39078_ACEOF
39079if ac_fn_c_try_link "$LINENO"; then :
39080
39081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39082$as_echo "yes" >&6; }
39083 tst_links_strnicmp="yes"
39084
39085else
39086
39087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39088$as_echo "no" >&6; }
39089 tst_links_strnicmp="no"
39090
39091fi
39092rm -f core conftest.err conftest.$ac_objext \
39093 conftest$ac_exeext conftest.$ac_ext
39094 #
39095 if test "$tst_links_strnicmp" = "yes"; then
39096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39097$as_echo_n "checking if strnicmp is prototyped... " >&6; }
39098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39099/* end confdefs.h. */
39100
39101 $curl_includes_string
39102
39103_ACEOF
39104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39105 $EGREP "strnicmp" >/dev/null 2>&1; then :
39106
39107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39108$as_echo "yes" >&6; }
39109 tst_proto_strnicmp="yes"
39110
39111else
39112
39113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39114$as_echo "no" >&6; }
39115 tst_proto_strnicmp="no"
39116
39117fi
39118rm -f conftest*
39119
39120 fi
39121 #
39122 if test "$tst_proto_strnicmp" = "yes"; then
39123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39124$as_echo_n "checking if strnicmp is compilable... " >&6; }
39125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39126/* end confdefs.h. */
39127
39128
39129 $curl_includes_string
39130
39131int main (void)
39132{
39133
39134 if(0 != strnicmp(0, 0))
39135 return 1;
39136
39137 ;
39138 return 0;
39139}
39140
39141_ACEOF
39142if ac_fn_c_try_compile "$LINENO"; then :
39143
39144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39145$as_echo "yes" >&6; }
39146 tst_compi_strnicmp="yes"
39147
39148else
39149
39150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39151$as_echo "no" >&6; }
39152 tst_compi_strnicmp="no"
39153
39154fi
39155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39156 fi
39157 #
39158 if test "$tst_compi_strnicmp" = "yes"; then
39159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39160$as_echo_n "checking if strnicmp usage allowed... " >&6; }
39161 if test "x$curl_disallow_strnicmp" != "xyes"; then
39162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39163$as_echo "yes" >&6; }
39164 tst_allow_strnicmp="yes"
39165 else
39166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39167$as_echo "no" >&6; }
39168 tst_allow_strnicmp="no"
39169 fi
39170 fi
39171 #
39172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39173$as_echo_n "checking if strnicmp might be used... " >&6; }
39174 if test "$tst_links_strnicmp" = "yes" &&
39175 test "$tst_proto_strnicmp" = "yes" &&
39176 test "$tst_compi_strnicmp" = "yes" &&
39177 test "$tst_allow_strnicmp" = "yes"; then
39178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39179$as_echo "yes" >&6; }
39180
39181cat >>confdefs.h <<_ACEOF
39182#define HAVE_STRNICMP 1
39183_ACEOF
39184
39185 curl_cv_func_strnicmp="yes"
39186 else
39187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39188$as_echo "no" >&6; }
39189 curl_cv_func_strnicmp="no"
39190 fi
39191
39192
39193 #
39194 tst_links_strstr="unknown"
39195 tst_proto_strstr="unknown"
39196 tst_compi_strstr="unknown"
39197 tst_allow_strstr="unknown"
39198 #
39199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39200$as_echo_n "checking if strstr can be linked... " >&6; }
39201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39202/* end confdefs.h. */
39203
39204
39205#define strstr innocuous_strstr
39206#ifdef __STDC__
39207# include <limits.h>
39208#else
39209# include <assert.h>
39210#endif
39211#undef strstr
39212#ifdef __cplusplus
39213extern "C"
39214#endif
39215char strstr ();
39216#if defined __stub_strstr || defined __stub___strstr
39217choke me
39218#endif
39219
39220int main (void)
39221{
39222return strstr ();
39223 ;
39224 return 0;
39225}
39226
39227_ACEOF
39228if ac_fn_c_try_link "$LINENO"; then :
39229
39230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39231$as_echo "yes" >&6; }
39232 tst_links_strstr="yes"
39233
39234else
39235
39236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39237$as_echo "no" >&6; }
39238 tst_links_strstr="no"
39239
39240fi
39241rm -f core conftest.err conftest.$ac_objext \
39242 conftest$ac_exeext conftest.$ac_ext
39243 #
39244 if test "$tst_links_strstr" = "yes"; then
39245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39246$as_echo_n "checking if strstr is prototyped... " >&6; }
39247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39248/* end confdefs.h. */
39249
39250 $curl_includes_string
39251
39252_ACEOF
39253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39254 $EGREP "strstr" >/dev/null 2>&1; then :
39255
39256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39257$as_echo "yes" >&6; }
39258 tst_proto_strstr="yes"
39259
39260else
39261
39262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39263$as_echo "no" >&6; }
39264 tst_proto_strstr="no"
39265
39266fi
39267rm -f conftest*
39268
39269 fi
39270 #
39271 if test "$tst_proto_strstr" = "yes"; then
39272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39273$as_echo_n "checking if strstr is compilable... " >&6; }
39274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39275/* end confdefs.h. */
39276
39277
39278 $curl_includes_string
39279
39280int main (void)
39281{
39282
39283 if(0 != strstr(0, 0))
39284 return 1;
39285
39286 ;
39287 return 0;
39288}
39289
39290_ACEOF
39291if ac_fn_c_try_compile "$LINENO"; then :
39292
39293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39294$as_echo "yes" >&6; }
39295 tst_compi_strstr="yes"
39296
39297else
39298
39299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39300$as_echo "no" >&6; }
39301 tst_compi_strstr="no"
39302
39303fi
39304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39305 fi
39306 #
39307 if test "$tst_compi_strstr" = "yes"; then
39308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39309$as_echo_n "checking if strstr usage allowed... " >&6; }
39310 if test "x$curl_disallow_strstr" != "xyes"; then
39311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39312$as_echo "yes" >&6; }
39313 tst_allow_strstr="yes"
39314 else
39315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39316$as_echo "no" >&6; }
39317 tst_allow_strstr="no"
39318 fi
39319 fi
39320 #
39321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39322$as_echo_n "checking if strstr might be used... " >&6; }
39323 if test "$tst_links_strstr" = "yes" &&
39324 test "$tst_proto_strstr" = "yes" &&
39325 test "$tst_compi_strstr" = "yes" &&
39326 test "$tst_allow_strstr" = "yes"; then
39327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39328$as_echo "yes" >&6; }
39329
39330cat >>confdefs.h <<_ACEOF
39331#define HAVE_STRSTR 1
39332_ACEOF
39333
39334 curl_cv_func_strstr="yes"
39335 else
39336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39337$as_echo "no" >&6; }
39338 curl_cv_func_strstr="no"
39339 fi
39340
39341
39342 #
39343 tst_links_strtok_r="unknown"
39344 tst_proto_strtok_r="unknown"
39345 tst_compi_strtok_r="unknown"
39346 tst_allow_strtok_r="unknown"
39347 #
39348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39349$as_echo_n "checking if strtok_r can be linked... " >&6; }
39350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39351/* end confdefs.h. */
39352
39353
39354#define strtok_r innocuous_strtok_r
39355#ifdef __STDC__
39356# include <limits.h>
39357#else
39358# include <assert.h>
39359#endif
39360#undef strtok_r
39361#ifdef __cplusplus
39362extern "C"
39363#endif
39364char strtok_r ();
39365#if defined __stub_strtok_r || defined __stub___strtok_r
39366choke me
39367#endif
39368
39369int main (void)
39370{
39371return strtok_r ();
39372 ;
39373 return 0;
39374}
39375
39376_ACEOF
39377if ac_fn_c_try_link "$LINENO"; then :
39378
39379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39380$as_echo "yes" >&6; }
39381 tst_links_strtok_r="yes"
39382
39383else
39384
39385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39386$as_echo "no" >&6; }
39387 tst_links_strtok_r="no"
39388
39389fi
39390rm -f core conftest.err conftest.$ac_objext \
39391 conftest$ac_exeext conftest.$ac_ext
39392 #
39393 if test "$tst_links_strtok_r" = "yes"; then
39394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39395$as_echo_n "checking if strtok_r is prototyped... " >&6; }
39396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39397/* end confdefs.h. */
39398
39399 $curl_includes_string
39400
39401_ACEOF
39402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39403 $EGREP "strtok_r" >/dev/null 2>&1; then :
39404
39405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39406$as_echo "yes" >&6; }
39407 tst_proto_strtok_r="yes"
39408
39409else
39410
39411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39412$as_echo "no" >&6; }
39413 tst_proto_strtok_r="no"
39414
39415fi
39416rm -f conftest*
39417
39418 fi
39419 #
39420 if test "$tst_proto_strtok_r" = "yes"; then
39421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39422$as_echo_n "checking if strtok_r is compilable... " >&6; }
39423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39424/* end confdefs.h. */
39425
39426
39427 $curl_includes_string
39428
39429int main (void)
39430{
39431
39432 if(0 != strtok_r(0, 0, 0))
39433 return 1;
39434
39435 ;
39436 return 0;
39437}
39438
39439_ACEOF
39440if ac_fn_c_try_compile "$LINENO"; then :
39441
39442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39443$as_echo "yes" >&6; }
39444 tst_compi_strtok_r="yes"
39445
39446else
39447
39448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39449$as_echo "no" >&6; }
39450 tst_compi_strtok_r="no"
39451
39452fi
39453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39454 fi
39455 #
39456 if test "$tst_compi_strtok_r" = "yes"; then
39457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39458$as_echo_n "checking if strtok_r usage allowed... " >&6; }
39459 if test "x$curl_disallow_strtok_r" != "xyes"; then
39460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39461$as_echo "yes" >&6; }
39462 tst_allow_strtok_r="yes"
39463 else
39464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39465$as_echo "no" >&6; }
39466 tst_allow_strtok_r="no"
39467 fi
39468 fi
39469 #
39470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39471$as_echo_n "checking if strtok_r might be used... " >&6; }
39472 if test "$tst_links_strtok_r" = "yes" &&
39473 test "$tst_proto_strtok_r" = "yes" &&
39474 test "$tst_compi_strtok_r" = "yes" &&
39475 test "$tst_allow_strtok_r" = "yes"; then
39476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39477$as_echo "yes" >&6; }
39478
39479cat >>confdefs.h <<_ACEOF
39480#define HAVE_STRTOK_R 1
39481_ACEOF
39482
39483 curl_cv_func_strtok_r="yes"
39484 else
39485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39486$as_echo "no" >&6; }
39487 curl_cv_func_strtok_r="no"
39488 fi
39489
39490
39491 #
39492 tst_links_strtoll="unknown"
39493 tst_proto_strtoll="unknown"
39494 tst_compi_strtoll="unknown"
39495 tst_allow_strtoll="unknown"
39496 #
39497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39498$as_echo_n "checking if strtoll can be linked... " >&6; }
39499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39500/* end confdefs.h. */
39501
39502
39503#define strtoll innocuous_strtoll
39504#ifdef __STDC__
39505# include <limits.h>
39506#else
39507# include <assert.h>
39508#endif
39509#undef strtoll
39510#ifdef __cplusplus
39511extern "C"
39512#endif
39513char strtoll ();
39514#if defined __stub_strtoll || defined __stub___strtoll
39515choke me
39516#endif
39517
39518int main (void)
39519{
39520return strtoll ();
39521 ;
39522 return 0;
39523}
39524
39525_ACEOF
39526if ac_fn_c_try_link "$LINENO"; then :
39527
39528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39529$as_echo "yes" >&6; }
39530 tst_links_strtoll="yes"
39531
39532else
39533
39534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39535$as_echo "no" >&6; }
39536 tst_links_strtoll="no"
39537
39538fi
39539rm -f core conftest.err conftest.$ac_objext \
39540 conftest$ac_exeext conftest.$ac_ext
39541 #
39542 if test "$tst_links_strtoll" = "yes"; then
39543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39544$as_echo_n "checking if strtoll is prototyped... " >&6; }
39545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39546/* end confdefs.h. */
39547
39548 $curl_includes_stdlib
39549
39550_ACEOF
39551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39552 $EGREP "strtoll" >/dev/null 2>&1; then :
39553
39554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39555$as_echo "yes" >&6; }
39556 tst_proto_strtoll="yes"
39557
39558else
39559
39560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39561$as_echo "no" >&6; }
39562 tst_proto_strtoll="no"
39563
39564fi
39565rm -f conftest*
39566
39567 fi
39568 #
39569 if test "$tst_proto_strtoll" = "yes"; then
39570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39571$as_echo_n "checking if strtoll is compilable... " >&6; }
39572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39573/* end confdefs.h. */
39574
39575
39576 $curl_includes_stdlib
39577
39578int main (void)
39579{
39580
39581 if(0 != strtoll(0, 0, 0))
39582 return 1;
39583
39584 ;
39585 return 0;
39586}
39587
39588_ACEOF
39589if ac_fn_c_try_compile "$LINENO"; then :
39590
39591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39592$as_echo "yes" >&6; }
39593 tst_compi_strtoll="yes"
39594
39595else
39596
39597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39598$as_echo "no" >&6; }
39599 tst_compi_strtoll="no"
39600
39601fi
39602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39603 fi
39604 #
39605 if test "$tst_compi_strtoll" = "yes"; then
39606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39607$as_echo_n "checking if strtoll usage allowed... " >&6; }
39608 if test "x$curl_disallow_strtoll" != "xyes"; then
39609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39610$as_echo "yes" >&6; }
39611 tst_allow_strtoll="yes"
39612 else
39613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39614$as_echo "no" >&6; }
39615 tst_allow_strtoll="no"
39616 fi
39617 fi
39618 #
39619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39620$as_echo_n "checking if strtoll might be used... " >&6; }
39621 if test "$tst_links_strtoll" = "yes" &&
39622 test "$tst_proto_strtoll" = "yes" &&
39623 test "$tst_compi_strtoll" = "yes" &&
39624 test "$tst_allow_strtoll" = "yes"; then
39625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39626$as_echo "yes" >&6; }
39627
39628cat >>confdefs.h <<_ACEOF
39629#define HAVE_STRTOLL 1
39630_ACEOF
39631
39632 curl_cv_func_strtoll="yes"
39633 else
39634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39635$as_echo "no" >&6; }
39636 curl_cv_func_strtoll="no"
39637 fi
39638
39639
39640curl_includes_sys_uio="\
39641/* includes start */
39642#ifdef HAVE_SYS_TYPES_H
39643# include <sys/types.h>
39644#endif
39645#ifdef HAVE_SYS_UIO_H
39646# include <sys/uio.h>
39647#endif
39648/* includes end */"
39649 for ac_header in sys/types.h sys/uio.h
39650do :
39651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39652ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39653"
39654if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39655 cat >>confdefs.h <<_ACEOF
39656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39657_ACEOF
39658
39659fi
39660
39661done
39662
39663
39664
39665 #
39666 tst_links_writev="unknown"
39667 tst_proto_writev="unknown"
39668 tst_compi_writev="unknown"
39669 tst_allow_writev="unknown"
39670 #
39671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39672$as_echo_n "checking if writev can be linked... " >&6; }
39673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39674/* end confdefs.h. */
39675
39676
39677#define writev innocuous_writev
39678#ifdef __STDC__
39679# include <limits.h>
39680#else
39681# include <assert.h>
39682#endif
39683#undef writev
39684#ifdef __cplusplus
39685extern "C"
39686#endif
39687char writev ();
39688#if defined __stub_writev || defined __stub___writev
39689choke me
39690#endif
39691
39692int main (void)
39693{
39694return writev ();
39695 ;
39696 return 0;
39697}
39698
39699_ACEOF
39700if ac_fn_c_try_link "$LINENO"; then :
39701
39702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39703$as_echo "yes" >&6; }
39704 tst_links_writev="yes"
39705
39706else
39707
39708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39709$as_echo "no" >&6; }
39710 tst_links_writev="no"
39711
39712fi
39713rm -f core conftest.err conftest.$ac_objext \
39714 conftest$ac_exeext conftest.$ac_ext
39715 #
39716 if test "$tst_links_writev" = "yes"; then
39717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39718$as_echo_n "checking if writev is prototyped... " >&6; }
39719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39720/* end confdefs.h. */
39721
39722 $curl_includes_sys_uio
39723
39724_ACEOF
39725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39726 $EGREP "writev" >/dev/null 2>&1; then :
39727
39728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39729$as_echo "yes" >&6; }
39730 tst_proto_writev="yes"
39731
39732else
39733
39734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39735$as_echo "no" >&6; }
39736 tst_proto_writev="no"
39737
39738fi
39739rm -f conftest*
39740
39741 fi
39742 #
39743 if test "$tst_proto_writev" = "yes"; then
39744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39745$as_echo_n "checking if writev is compilable... " >&6; }
39746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39747/* end confdefs.h. */
39748
39749
39750 $curl_includes_sys_uio
39751
39752int main (void)
39753{
39754
39755 if(0 != writev(0, 0, 0))
39756 return 1;
39757
39758 ;
39759 return 0;
39760}
39761
39762_ACEOF
39763if ac_fn_c_try_compile "$LINENO"; then :
39764
39765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39766$as_echo "yes" >&6; }
39767 tst_compi_writev="yes"
39768
39769else
39770
39771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39772$as_echo "no" >&6; }
39773 tst_compi_writev="no"
39774
39775fi
39776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39777 fi
39778 #
39779 if test "$tst_compi_writev" = "yes"; then
39780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39781$as_echo_n "checking if writev usage allowed... " >&6; }
39782 if test "x$curl_disallow_writev" != "xyes"; then
39783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39784$as_echo "yes" >&6; }
39785 tst_allow_writev="yes"
39786 else
39787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39788$as_echo "no" >&6; }
39789 tst_allow_writev="no"
39790 fi
39791 fi
39792 #
39793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39794$as_echo_n "checking if writev might be used... " >&6; }
39795 if test "$tst_links_writev" = "yes" &&
39796 test "$tst_proto_writev" = "yes" &&
39797 test "$tst_compi_writev" = "yes" &&
39798 test "$tst_allow_writev" = "yes"; then
39799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39800$as_echo "yes" >&6; }
39801
39802cat >>confdefs.h <<_ACEOF
39803#define HAVE_WRITEV 1
39804_ACEOF
39805
39806 curl_cv_func_writev="yes"
39807 else
39808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39809$as_echo "no" >&6; }
39810 curl_cv_func_writev="no"
39811 fi
39812
39813
39814case $host in
39815 *msdosdjgpp)
39816 ac_cv_func_pipe=no
39817 skipcheck_pipe=yes
39818 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39819$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39820 ;;
39821esac
39822
Elliott Hughes72d948d2018-08-03 14:37:21 -070039823ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
39824 #include <sys/types.h>
39825"
39826if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
39827 ac_have_decl=1
39828else
39829 ac_have_decl=0
39830fi
39831
39832cat >>confdefs.h <<_ACEOF
39833#define HAVE_DECL_GETPWUID_R $ac_have_decl
39834_ACEOF
39835if test $ac_have_decl = 1; then :
39836
39837else
39838
39839$as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
39840
39841fi
39842
39843
39844
39845for ac_func in fnmatch \
39846 geteuid \
Elliott Hughes82be86d2017-09-20 17:00:17 -070039847 getpass_r \
39848 getppid \
39849 getpwuid \
39850 getpwuid_r \
39851 getrlimit \
39852 gettimeofday \
39853 if_nametoindex \
Alex Deymo486467e2017-12-19 19:04:07 +010039854 mach_absolute_time \
Elliott Hughes82be86d2017-09-20 17:00:17 -070039855 pipe \
39856 setlocale \
39857 setmode \
39858 setrlimit \
39859 utime \
39860 utimes
39861
39862do :
39863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39864ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39865if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39866 cat >>confdefs.h <<_ACEOF
39867#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39868_ACEOF
39869
39870
39871else
39872
39873 func="$ac_func"
39874 eval skipcheck=\$skipcheck_$func
39875 if test "x$skipcheck" != "xyes"; then
39876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
39877$as_echo_n "checking deeper for $func... " >&6; }
39878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39879/* end confdefs.h. */
39880
39881
39882
39883int main (void)
39884{
39885
39886 $func ();
39887
39888 ;
39889 return 0;
39890}
39891
39892_ACEOF
39893if ac_fn_c_try_link "$LINENO"; then :
39894
39895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39896$as_echo "yes" >&6; }
39897 eval "ac_cv_func_$func=yes"
39898
39899cat >>confdefs.h <<_ACEOF
39900#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
39901_ACEOF
39902
39903
39904else
39905
39906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39907$as_echo "but still no" >&6; }
39908
39909fi
39910rm -f core conftest.err conftest.$ac_objext \
39911 conftest$ac_exeext conftest.$ac_ext
39912 fi
39913
39914fi
39915done
39916
39917
Elliott Hughes82be86d2017-09-20 17:00:17 -070039918if test "$ipv6" = "yes"; then
39919 if test "$curl_cv_func_getaddrinfo" = "yes"; then
39920
39921$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
39922
39923 IPV6_ENABLED=1
39924
39925 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070039926fi
39927
39928
39929 #
39930 tst_method="unknown"
39931
39932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
39933$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
39934 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
39935 tst_method="fcntl O_NONBLOCK"
39936 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
39937 tst_method="ioctl FIONBIO"
39938 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
39939 tst_method="ioctlsocket FIONBIO"
39940 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
39941 tst_method="IoctlSocket FIONBIO"
39942 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
39943 tst_method="setsockopt SO_NONBLOCK"
39944 fi
39945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
39946$as_echo "$tst_method" >&6; }
39947 if test "$tst_method" = "unknown"; then
39948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
39949$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
39950 fi
39951
39952
39953
39954# Extract the first word of "perl", so it can be a program name with args.
39955set dummy perl; ac_word=$2
39956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39957$as_echo_n "checking for $ac_word... " >&6; }
39958if ${ac_cv_path_PERL+:} false; then :
39959 $as_echo_n "(cached) " >&6
39960else
39961 case $PERL in
39962 [\\/]* | ?:[\\/]*)
39963 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
39964 ;;
39965 *)
39966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39967as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
39968for as_dir in $as_dummy
39969do
39970 IFS=$as_save_IFS
39971 test -z "$as_dir" && as_dir=.
39972 for ac_exec_ext in '' $ac_executable_extensions; do
39973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39974 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
39975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39976 break 2
39977 fi
39978done
39979 done
39980IFS=$as_save_IFS
39981
39982 ;;
39983esac
39984fi
39985PERL=$ac_cv_path_PERL
39986if test -n "$PERL"; then
39987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
39988$as_echo "$PERL" >&6; }
39989else
39990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39991$as_echo "no" >&6; }
39992fi
39993
39994
39995
39996
39997for ac_prog in gnroff nroff
39998do
39999 # Extract the first word of "$ac_prog", so it can be a program name with args.
40000set dummy $ac_prog; ac_word=$2
40001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40002$as_echo_n "checking for $ac_word... " >&6; }
40003if ${ac_cv_path_NROFF+:} false; then :
40004 $as_echo_n "(cached) " >&6
40005else
40006 case $NROFF in
40007 [\\/]* | ?:[\\/]*)
40008 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40009 ;;
40010 *)
40011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40012as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40013for as_dir in $as_dummy
40014do
40015 IFS=$as_save_IFS
40016 test -z "$as_dir" && as_dir=.
40017 for ac_exec_ext in '' $ac_executable_extensions; do
40018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40019 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40021 break 2
40022 fi
40023done
40024 done
40025IFS=$as_save_IFS
40026
40027 ;;
40028esac
40029fi
40030NROFF=$ac_cv_path_NROFF
40031if test -n "$NROFF"; then
40032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40033$as_echo "$NROFF" >&6; }
40034else
40035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40036$as_echo "no" >&6; }
40037fi
40038
40039
40040 test -n "$NROFF" && break
40041done
40042
40043
40044
40045if test -n "$NROFF"; then
40046
40047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40048$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40049 MANOPT="-man"
40050 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40051 if test -z "$mancheck"; then
40052 MANOPT="-mandoc"
40053 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40054 if test -z "$mancheck"; then
40055 MANOPT=""
40056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40057$as_echo "failed" >&6; }
40058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40059$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40060 else
40061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40062$as_echo "$MANOPT" >&6; }
40063 fi
40064 else
40065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40066$as_echo "$MANOPT" >&6; }
40067 fi
40068
40069fi
40070
40071if test -z "$MANOPT"
40072then
40073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40074$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40075 USE_MANUAL="no";
40076fi
40077
40078
40079if test "$USE_MANUAL" = "1"; then
40080
40081$as_echo "#define USE_MANUAL 1" >>confdefs.h
40082
40083 curl_manual_msg="enabled"
40084fi
40085
40086 if test x"$USE_MANUAL" = x1; then
40087 USE_MANUAL_TRUE=
40088 USE_MANUAL_FALSE='#'
40089else
40090 USE_MANUAL_TRUE='#'
40091 USE_MANUAL_FALSE=
40092fi
40093
40094
40095
40096
40097
40098 #
40099 if test "$want_ares" = "yes"; then
40100 clean_CPPFLAGS="$CPPFLAGS"
40101 clean_LDFLAGS="$LDFLAGS"
40102 clean_LIBS="$LIBS"
40103 embedded_ares="unknown"
40104 configure_runpath=`pwd`
40105 embedded_ares_builddir="$configure_runpath/ares"
40106 if test -n "$want_ares_path"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070040107 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
40108
40109 if test -n "$PKG_CONFIG"; then
40110 PKGCONFIG="$PKG_CONFIG"
40111 else
40112 if test -n "$ac_tool_prefix"; then
40113 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40114set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40116$as_echo_n "checking for $ac_word... " >&6; }
40117if ${ac_cv_path_PKGCONFIG+:} false; then :
40118 $as_echo_n "(cached) " >&6
40119else
40120 case $PKGCONFIG in
40121 [\\/]* | ?:[\\/]*)
40122 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40123 ;;
40124 *)
40125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40126as_dummy="$PATH:/usr/bin:/usr/local/bin"
40127for as_dir in $as_dummy
40128do
40129 IFS=$as_save_IFS
40130 test -z "$as_dir" && as_dir=.
40131 for ac_exec_ext in '' $ac_executable_extensions; do
40132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40133 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40135 break 2
40136 fi
40137done
40138 done
40139IFS=$as_save_IFS
40140
40141 ;;
40142esac
40143fi
40144PKGCONFIG=$ac_cv_path_PKGCONFIG
40145if test -n "$PKGCONFIG"; then
40146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40147$as_echo "$PKGCONFIG" >&6; }
40148else
40149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40150$as_echo "no" >&6; }
40151fi
40152
40153
40154fi
40155if test -z "$ac_cv_path_PKGCONFIG"; then
40156 ac_pt_PKGCONFIG=$PKGCONFIG
40157 # Extract the first word of "pkg-config", so it can be a program name with args.
40158set dummy pkg-config; ac_word=$2
40159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40160$as_echo_n "checking for $ac_word... " >&6; }
40161if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40162 $as_echo_n "(cached) " >&6
40163else
40164 case $ac_pt_PKGCONFIG in
40165 [\\/]* | ?:[\\/]*)
40166 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40167 ;;
40168 *)
40169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40170as_dummy="$PATH:/usr/bin:/usr/local/bin"
40171for as_dir in $as_dummy
40172do
40173 IFS=$as_save_IFS
40174 test -z "$as_dir" && as_dir=.
40175 for ac_exec_ext in '' $ac_executable_extensions; do
40176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40177 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40179 break 2
40180 fi
40181done
40182 done
40183IFS=$as_save_IFS
40184
40185 ;;
40186esac
40187fi
40188ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40189if test -n "$ac_pt_PKGCONFIG"; then
40190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40191$as_echo "$ac_pt_PKGCONFIG" >&6; }
40192else
40193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40194$as_echo "no" >&6; }
40195fi
40196
40197 if test "x$ac_pt_PKGCONFIG" = x; then
40198 PKGCONFIG="no"
40199 else
40200 case $cross_compiling:$ac_tool_warned in
40201yes:)
40202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40204ac_tool_warned=yes ;;
40205esac
40206 PKGCONFIG=$ac_pt_PKGCONFIG
40207 fi
40208else
40209 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40210fi
40211
40212 fi
40213
40214 if test "x$PKGCONFIG" != "xno"; then
40215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40216$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40217 itexists=`
40218 if test -n "$ARES_PCDIR"; then
40219 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40220 export PKG_CONFIG_LIBDIR
40221 fi
40222 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40223
40224 if test -z "$itexists"; then
40225 PKGCONFIG="no"
40226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40227$as_echo "no" >&6; }
40228 else
40229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40230$as_echo "found" >&6; }
40231 fi
40232 fi
40233
40234 if test "$PKGCONFIG" != "no" ; then
40235 ares_LIBS=`
40236 if test -n "$ARES_PCDIR"; then
40237 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40238 export PKG_CONFIG_LIBDIR
40239 fi
40240
40241 $PKGCONFIG --libs-only-l libcares`
40242 ares_LDFLAGS=`
40243 if test -n "$ARES_PCDIR"; then
40244 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40245 export PKG_CONFIG_LIBDIR
40246 fi
40247
40248 $PKGCONFIG --libs-only-L libcares`
40249 ares_CPPFLAGS=`
40250 if test -n "$ARES_PCDIR"; then
40251 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40252 export PKG_CONFIG_LIBDIR
40253 fi
40254
40255 $PKGCONFIG --cflags-only-I libcares`
40256 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
40257$as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
40258 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
40259$as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40260 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40261$as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40262 else
40263 ares_CPPFLAGS="-I$want_ares_path/include"
40264 ares_LDFLAGS="-L$want_ares_path/lib"
40265 ares_LIBS="-lcares"
40266 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040267 else
40268 if test -d "$srcdir/ares"; then
40269 embedded_ares="yes"
40270 subdirs="$subdirs ares"
40271
40272 ares_CPPFLAGS=""
40273 ares_LDFLAGS="-L$embedded_ares_builddir"
40274 ares_LIBS="-lcares"
40275 else
Elliott Hughes72d948d2018-08-03 14:37:21 -070040276
40277 if test -n "$PKG_CONFIG"; then
40278 PKGCONFIG="$PKG_CONFIG"
40279 else
40280 if test -n "$ac_tool_prefix"; then
40281 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40282set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40284$as_echo_n "checking for $ac_word... " >&6; }
40285if ${ac_cv_path_PKGCONFIG+:} false; then :
40286 $as_echo_n "(cached) " >&6
40287else
40288 case $PKGCONFIG in
40289 [\\/]* | ?:[\\/]*)
40290 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40291 ;;
40292 *)
40293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40294as_dummy="$PATH:/usr/bin:/usr/local/bin"
40295for as_dir in $as_dummy
40296do
40297 IFS=$as_save_IFS
40298 test -z "$as_dir" && as_dir=.
40299 for ac_exec_ext in '' $ac_executable_extensions; do
40300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40301 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40303 break 2
40304 fi
40305done
40306 done
40307IFS=$as_save_IFS
40308
40309 ;;
40310esac
40311fi
40312PKGCONFIG=$ac_cv_path_PKGCONFIG
40313if test -n "$PKGCONFIG"; then
40314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40315$as_echo "$PKGCONFIG" >&6; }
40316else
40317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40318$as_echo "no" >&6; }
40319fi
40320
40321
40322fi
40323if test -z "$ac_cv_path_PKGCONFIG"; then
40324 ac_pt_PKGCONFIG=$PKGCONFIG
40325 # Extract the first word of "pkg-config", so it can be a program name with args.
40326set dummy pkg-config; ac_word=$2
40327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40328$as_echo_n "checking for $ac_word... " >&6; }
40329if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40330 $as_echo_n "(cached) " >&6
40331else
40332 case $ac_pt_PKGCONFIG in
40333 [\\/]* | ?:[\\/]*)
40334 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40335 ;;
40336 *)
40337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40338as_dummy="$PATH:/usr/bin:/usr/local/bin"
40339for as_dir in $as_dummy
40340do
40341 IFS=$as_save_IFS
40342 test -z "$as_dir" && as_dir=.
40343 for ac_exec_ext in '' $ac_executable_extensions; do
40344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40345 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40347 break 2
40348 fi
40349done
40350 done
40351IFS=$as_save_IFS
40352
40353 ;;
40354esac
40355fi
40356ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40357if test -n "$ac_pt_PKGCONFIG"; then
40358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40359$as_echo "$ac_pt_PKGCONFIG" >&6; }
40360else
40361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40362$as_echo "no" >&6; }
40363fi
40364
40365 if test "x$ac_pt_PKGCONFIG" = x; then
40366 PKGCONFIG="no"
40367 else
40368 case $cross_compiling:$ac_tool_warned in
40369yes:)
40370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40372ac_tool_warned=yes ;;
40373esac
40374 PKGCONFIG=$ac_pt_PKGCONFIG
40375 fi
40376else
40377 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40378fi
40379
40380 fi
40381
40382 if test "x$PKGCONFIG" != "xno"; then
40383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40384$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40385 itexists=`
40386 if test -n ""; then
40387 PKG_CONFIG_LIBDIR=""
40388 export PKG_CONFIG_LIBDIR
40389 fi
40390 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40391
40392 if test -z "$itexists"; then
40393 PKGCONFIG="no"
40394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40395$as_echo "no" >&6; }
40396 else
40397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40398$as_echo "found" >&6; }
40399 fi
40400 fi
40401
40402 if test "$PKGCONFIG" != "no" ; then
40403 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
40404 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
40405 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
40406 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
40407$as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
40408 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
40409$as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40410 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40411$as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40412 else
40413 ares_CPPFLAGS=""
40414 ares_LDFLAGS=""
40415 ares_LIBS="-lcares"
40416 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040417 fi
40418 fi
40419 #
40420 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40421 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40422 LIBS="$ares_LIBS $clean_LIBS"
40423 #
40424 if test "$embedded_ares" != "yes"; then
40425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40426$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40428/* end confdefs.h. */
40429
40430
40431#include <ares.h>
40432 /* set of dummy functions in case c-ares was built with debug */
40433 void curl_dofree() { }
40434 void curl_sclose() { }
40435 void curl_domalloc() { }
40436 void curl_docalloc() { }
40437 void curl_socket() { }
40438
40439int main (void)
40440{
40441
40442 ares_channel channel;
40443 ares_cancel(channel); /* added in 1.2.0 */
40444 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40445 ares_dup(&channel, channel); /* added in 1.6.0 */
40446
40447 ;
40448 return 0;
40449}
40450
40451_ACEOF
40452if ac_fn_c_try_link "$LINENO"; then :
40453
40454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40455$as_echo "yes" >&6; }
40456
40457else
40458
40459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40460$as_echo "no" >&6; }
40461 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40462 CPPFLAGS="$clean_CPPFLAGS"
40463 LDFLAGS="$clean_LDFLAGS"
40464 LIBS="$clean_LIBS"
40465 # prevent usage
40466 want_ares="no"
40467
40468fi
40469rm -f core conftest.err conftest.$ac_objext \
40470 conftest$ac_exeext conftest.$ac_ext
40471 fi
40472 if test "$want_ares" = "yes"; then
40473
40474$as_echo "#define USE_ARES 1" >>confdefs.h
40475
40476 USE_ARES=1
40477
40478 curl_res_msg="c-ares"
40479 fi
40480 fi
40481
40482 if test x$embedded_ares = xyes; then
40483 USE_EMBEDDED_ARES_TRUE=
40484 USE_EMBEDDED_ARES_FALSE='#'
40485else
40486 USE_EMBEDDED_ARES_TRUE='#'
40487 USE_EMBEDDED_ARES_FALSE=
40488fi
40489
40490
40491if test "x$curl_cv_native_windows" != "xyes" &&
40492 test "x$enable_shared" = "xyes"; then
40493 build_libhostname=yes
40494else
40495 build_libhostname=no
40496fi
40497 if test x$build_libhostname = xyes; then
40498 BUILD_LIBHOSTNAME_TRUE=
40499 BUILD_LIBHOSTNAME_FALSE='#'
40500else
40501 BUILD_LIBHOSTNAME_TRUE='#'
40502 BUILD_LIBHOSTNAME_FALSE=
40503fi
40504
40505
40506if test "x$want_ares" != xyes; then
40507
40508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40509$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40510 OPT_THRES="default"
40511 # Check whether --enable-threaded_resolver was given.
40512if test "${enable_threaded_resolver+set}" = set; then :
40513 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40514fi
40515
40516 case "$OPT_THRES" in
Elliott Hughes82be86d2017-09-20 17:00:17 -070040517 no)
40518 want_thres="no"
40519 ;;
Alex Deymo486467e2017-12-19 19:04:07 +010040520 *)
40521 want_thres="yes"
40522 ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070040523 esac
40524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40525$as_echo "$want_thres" >&6; }
40526
40527fi
40528
40529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40530$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40531# Check whether --enable-pthreads was given.
40532if test "${enable_pthreads+set}" = set; then :
40533 enableval=$enable_pthreads; case "$enableval" in
40534 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40535$as_echo "no" >&6; }
40536 want_pthreads=no
40537 ;;
40538 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40539$as_echo "yes" >&6; }
40540 want_pthreads=yes
40541 ;;
40542 esac
40543else
40544
40545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40546$as_echo "auto" >&6; }
40547 want_pthreads=auto
40548
40549
40550fi
40551
40552
40553if test "$want_pthreads" != "no"; then
40554 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40555 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40556 fi
40557 if test "$dontwant_rt" != "no"; then
40558 if test "$want_pthreads" = "yes"; then
40559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40560$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40561 fi
40562 want_pthreads=no
40563 fi
40564fi
40565
40566if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40567 want_pthreads=no
40568fi
40569
40570if test "$want_pthreads" != "no"; then
40571 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40572if test "x$ac_cv_header_pthread_h" = xyes; then :
40573
40574$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40575
40576 save_CFLAGS="$CFLAGS"
40577
40578 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40579if test "x$ac_cv_func_pthread_create" = xyes; then :
40580 USE_THREADS_POSIX=1
40581fi
40582
40583
Elliott Hughesa93fb052018-12-12 14:22:48 -080040584 case $host in
40585 *-hp-hpux*)
40586 USE_THREADS_POSIX=""
40587 ;;
40588 *)
40589 ;;
40590 esac
40591
Elliott Hughes82be86d2017-09-20 17:00:17 -070040592 if test "$USE_THREADS_POSIX" != "1"
40593 then
40594 CFLAGS="$CFLAGS -pthread"
40595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40596$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40597if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40598 $as_echo_n "(cached) " >&6
40599else
40600 ac_check_lib_save_LIBS=$LIBS
40601LIBS="-lpthread $LIBS"
40602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40603/* end confdefs.h. */
40604
40605
40606#ifdef __cplusplus
40607extern "C"
40608#endif
40609char pthread_create ();
40610int main (void)
40611{
40612return pthread_create ();
40613 ;
40614 return 0;
40615}
40616_ACEOF
40617if ac_fn_c_try_link "$LINENO"; then :
40618 ac_cv_lib_pthread_pthread_create=yes
40619else
40620 ac_cv_lib_pthread_pthread_create=no
40621fi
40622rm -f core conftest.err conftest.$ac_objext \
40623 conftest$ac_exeext conftest.$ac_ext
40624LIBS=$ac_check_lib_save_LIBS
40625fi
40626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40627$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40628if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40629 USE_THREADS_POSIX=1
40630else
40631 CFLAGS="$save_CFLAGS"
40632fi
40633
40634 fi
40635
40636 if test "x$USE_THREADS_POSIX" = "x1"
40637 then
40638
40639$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40640
40641 curl_res_msg="POSIX threaded"
40642 fi
40643
40644fi
40645
40646
40647fi
40648
40649if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40650 if test "$want_pthreads" = "yes"; then
40651 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40652 fi
40653 if test "$curl_cv_native_windows" = "yes"; then
40654 USE_THREADS_WIN32=1
40655
40656$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40657
40658 curl_res_msg="Win32 threaded"
40659 else
40660 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40661 fi
40662fi
40663
40664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40665$as_echo_n "checking whether to enable verbose strings... " >&6; }
40666# Check whether --enable-verbose was given.
40667if test "${enable_verbose+set}" = set; then :
40668 enableval=$enable_verbose; case "$enableval" in
40669 no)
40670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40671$as_echo "no" >&6; }
40672
40673$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40674
40675 curl_verbose_msg="no"
40676 ;;
40677 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40678$as_echo "yes" >&6; }
40679 ;;
40680 esac
40681else
40682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40683$as_echo "yes" >&6; }
40684
40685fi
40686
40687
40688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40689$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40690# Check whether --enable-sspi was given.
40691if test "${enable_sspi+set}" = set; then :
40692 enableval=$enable_sspi; case "$enableval" in
40693 yes)
40694 if test "$curl_cv_native_windows" = "yes"; then
40695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40696$as_echo "yes" >&6; }
40697
40698$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40699
40700 USE_WINDOWS_SSPI=1
40701
40702 curl_sspi_msg="enabled"
40703 else
40704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40705$as_echo "no" >&6; }
40706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40707$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40708 fi
40709 ;;
40710 *)
40711 if test "x$WINSSL_ENABLED" = "x1"; then
40712 # --with-winssl implies --enable-sspi
40713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40714$as_echo "yes" >&6; }
40715 else
40716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40717$as_echo "no" >&6; }
40718 fi
40719 ;;
40720 esac
40721else
40722 if test "x$WINSSL_ENABLED" = "x1"; then
40723 # --with-winssl implies --enable-sspi
40724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40725$as_echo "yes" >&6; }
40726 else
40727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40728$as_echo "no" >&6; }
40729 fi
40730
40731fi
40732
40733
40734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40735$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40736# Check whether --enable-crypto-auth was given.
40737if test "${enable_crypto_auth+set}" = set; then :
40738 enableval=$enable_crypto_auth; case "$enableval" in
40739 no)
40740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40741$as_echo "no" >&6; }
40742
40743$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40744
40745 CURL_DISABLE_CRYPTO_AUTH=1
40746 ;;
40747 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40748$as_echo "yes" >&6; }
40749 ;;
40750 esac
40751else
40752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40753$as_echo "yes" >&6; }
40754
40755fi
40756
40757
40758
40759 OPT_NTLM_WB="default"
40760 # Check whether --enable-ntlm-wb was given.
40761if test "${enable_ntlm_wb+set}" = set; then :
40762 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40763fi
40764
40765 want_ntlm_wb_file="/usr/bin/ntlm_auth"
40766 case "$OPT_NTLM_WB" in
40767 no)
40768 want_ntlm_wb="no"
40769 ;;
40770 default)
40771 want_ntlm_wb="yes"
40772 ;;
40773 *)
40774 want_ntlm_wb="yes"
40775 if test -n "$enableval" && test "$enableval" != "yes"; then
40776 want_ntlm_wb_file="$enableval"
40777 fi
40778 ;;
40779 esac
40780
40781
40782
40783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40784$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40785 if test "$curl_cv_native_windows" = "yes" ||
40786 test "x$SSL_ENABLED" = "x"; then
40787 want_ntlm_wb_file=""
40788 want_ntlm_wb="no"
40789 fi
40790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40791$as_echo "$want_ntlm_wb" >&6; }
40792 if test "$want_ntlm_wb" = "yes"; then
40793
40794$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40795
40796
40797cat >>confdefs.h <<_ACEOF
40798#define NTLM_WB_FILE "$want_ntlm_wb_file"
40799_ACEOF
40800
40801 NTLM_WB_ENABLED=1
40802 fi
40803
40804
40805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40806$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40807# Check whether --enable-tls-srp was given.
40808if test "${enable_tls_srp+set}" = set; then :
40809 enableval=$enable_tls_srp; case "$enableval" in
40810 no)
40811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40812$as_echo "no" >&6; }
40813
40814$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40815
40816 want_tls_srp=no
40817 ;;
40818 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40819$as_echo "yes" >&6; }
40820 want_tls_srp=yes
40821 ;;
40822 esac
40823else
40824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40825$as_echo "yes" >&6; }
40826 want_tls_srp=yes
40827
40828fi
40829
40830
40831if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40832
40833$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
40834
40835 USE_TLS_SRP=1
40836 curl_tls_srp_msg="enabled"
40837fi
40838
40839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
40840$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
40841# Check whether --enable-unix-sockets was given.
40842if test "${enable_unix_sockets+set}" = set; then :
40843 enableval=$enable_unix_sockets; case "$enableval" in
40844 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40845$as_echo "no" >&6; }
40846 want_unix_sockets=no
40847 ;;
40848 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40849$as_echo "yes" >&6; }
40850 want_unix_sockets=yes
40851 ;;
40852 esac
40853else
40854
40855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40856$as_echo "auto" >&6; }
40857 want_unix_sockets=auto
40858
40859
40860fi
40861
40862if test "x$want_unix_sockets" != "xno"; then
40863 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
40864 #include <sys/un.h>
40865
40866"
40867if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
40868
40869
40870$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
40871
40872 USE_UNIX_SOCKETS=1
40873
40874 curl_unix_sockets_msg="enabled"
40875
40876else
40877
40878 if test "x$want_unix_sockets" = "xyes"; then
40879 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
40880 fi
40881
40882fi
40883
40884fi
40885
40886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
40887$as_echo_n "checking whether to enable support for cookies... " >&6; }
40888# Check whether --enable-cookies was given.
40889if test "${enable_cookies+set}" = set; then :
40890 enableval=$enable_cookies; case "$enableval" in
40891 no)
40892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40893$as_echo "no" >&6; }
40894
40895$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
40896
40897 ;;
40898 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40899$as_echo "yes" >&6; }
40900 ;;
40901 esac
40902else
40903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40904$as_echo "yes" >&6; }
40905
40906fi
40907
40908
40909
40910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
40911$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
40912 CFLAG_CURL_SYMBOL_HIDING=""
40913 doing_symbol_hiding="no"
40914 if test x"$curl_cv_native_windows" != "xyes" &&
40915 test "$want_symbol_hiding" = "yes" &&
40916 test "$supports_symbol_hiding" = "yes"; then
40917 doing_symbol_hiding="yes"
40918 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
40919
40920cat >>confdefs.h <<_ACEOF
40921#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
40922_ACEOF
40923
40924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40925$as_echo "yes" >&6; }
40926 else
40927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40928$as_echo "no" >&6; }
40929 fi
40930 if test x$doing_symbol_hiding = xyes; then
40931 DOING_CURL_SYMBOL_HIDING_TRUE=
40932 DOING_CURL_SYMBOL_HIDING_FALSE='#'
40933else
40934 DOING_CURL_SYMBOL_HIDING_TRUE='#'
40935 DOING_CURL_SYMBOL_HIDING_FALSE=
40936fi
40937
40938
40939
40940
Elliott Hughes82be86d2017-09-20 17:00:17 -070040941LIBCURL_LIBS=$LIBS
40942
40943
40944
40945
40946
40947BLANK_AT_MAKETIME=
40948
40949
40950 if test x$cross_compiling = xyes; then
40951 CROSSCOMPILING_TRUE=
40952 CROSSCOMPILING_FALSE='#'
40953else
40954 CROSSCOMPILING_TRUE='#'
40955 CROSSCOMPILING_FALSE=
40956fi
40957
40958
40959ENABLE_SHARED="$enable_shared"
40960
40961
40962ENABLE_STATIC="$enable_static"
40963
40964
40965
40966
40967if test "x$OPENSSL_ENABLED" = "x1"; then
40968 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40969elif test -n "$SSL_ENABLED"; then
40970 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
40971fi
40972if test "x$IPV6_ENABLED" = "x1"; then
40973 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
40974fi
40975if test "x$USE_UNIX_SOCKETS" = "x1"; then
40976 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
40977fi
40978if test "x$HAVE_LIBZ" = "x1"; then
40979 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
40980fi
Alex Deymo486467e2017-12-19 19:04:07 +010040981if test "x$HAVE_BROTLI" = "x1"; then
40982 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
40983fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040984if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
40985 -o "x$USE_THREADS_WIN32" = "x1"; then
40986 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
40987fi
40988if test "x$IDN_ENABLED" = "x1"; then
40989 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
40990fi
40991if test "x$USE_WINDOWS_SSPI" = "x1"; then
40992 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
40993fi
40994
40995if test "x$HAVE_GSSAPI" = "x1"; then
40996 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
40997fi
40998
40999if test "x$curl_psl_msg" = "xyes"; then
41000 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41001fi
41002
41003if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41004 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41005 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41006fi
41007
41008if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41009 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41010 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41011fi
41012
41013if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41014 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41015 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41016 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
41017 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41018
41019 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41020 "x$NTLM_WB_ENABLED" = "x1"; then
41021 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41022 fi
41023 fi
41024fi
41025
41026if test "x$USE_TLS_SRP" = "x1"; then
41027 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41028fi
41029
41030if test "x$USE_NGHTTP2" = "x1"; then
41031 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41032fi
41033
Alex Deymo486467e2017-12-19 19:04:07 +010041034if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41035 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41036fi
41037
Elliott Hughes82be86d2017-09-20 17:00:17 -070041038if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41039 -o "x$NSS_ENABLED" = "x1"; then
41040 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41041fi
41042
41043
41044
41045if test "x$CURL_DISABLE_HTTP" != "x1"; then
41046 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41047 if test "x$SSL_ENABLED" = "x1"; then
41048 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41049 fi
41050fi
41051if test "x$CURL_DISABLE_FTP" != "x1"; then
41052 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41053 if test "x$SSL_ENABLED" = "x1"; then
41054 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41055 fi
41056fi
41057if test "x$CURL_DISABLE_FILE" != "x1"; then
41058 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41059fi
41060if test "x$CURL_DISABLE_TELNET" != "x1"; then
41061 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41062fi
41063if test "x$CURL_DISABLE_LDAP" != "x1"; then
41064 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41065 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41066 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41067 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41068 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41069 fi
41070 fi
41071fi
41072if test "x$CURL_DISABLE_DICT" != "x1"; then
41073 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41074fi
41075if test "x$CURL_DISABLE_TFTP" != "x1"; then
41076 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41077fi
41078if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41079 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41080fi
41081if test "x$CURL_DISABLE_POP3" != "x1"; then
41082 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41083 if test "x$SSL_ENABLED" = "x1"; then
41084 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41085 fi
41086fi
41087if test "x$CURL_DISABLE_IMAP" != "x1"; then
41088 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41089 if test "x$SSL_ENABLED" = "x1"; then
41090 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41091 fi
41092fi
41093if test "x$CURL_DISABLE_SMB" != "x1" \
41094 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41095 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41096 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41097 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41098 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41099 if test "x$SSL_ENABLED" = "x1"; then
41100 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41101 fi
41102fi
41103if test "x$CURL_DISABLE_SMTP" != "x1"; then
41104 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41105 if test "x$SSL_ENABLED" = "x1"; then
41106 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41107 fi
41108fi
41109if test "x$USE_LIBSSH2" = "x1"; then
41110 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41111 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41112fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080041113if test "x$USE_LIBSSH" = "x1"; then
41114 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41115 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41116fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041117if test "x$CURL_DISABLE_RTSP" != "x1"; then
41118 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41119fi
41120if test "x$USE_LIBRTMP" = "x1"; then
41121 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41122fi
41123
41124SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41125
41126
41127
41128
41129squeeze CFLAGS
41130squeeze CPPFLAGS
41131squeeze DEFS
41132squeeze LDFLAGS
41133squeeze LIBS
41134
41135squeeze LIBCURL_LIBS
41136squeeze CURL_NETWORK_LIBS
41137squeeze CURL_NETWORK_AND_TIME_LIBS
41138
41139squeeze SUPPORT_FEATURES
41140squeeze SUPPORT_PROTOCOLS
41141
41142
41143
41144 xc_bad_var_libs=no
41145 for xc_word in $LIBS; do
41146 case "$xc_word" in
41147 -l* | --library=*)
41148 :
41149 ;;
41150 *)
41151 xc_bad_var_libs=yes
41152 ;;
41153 esac
41154 done
41155 if test $xc_bad_var_libs = yes; then
41156 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41157$as_echo "$as_me: using LIBS: $LIBS" >&6;}
41158 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41159$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41160 fi
41161
41162
41163 xc_bad_var_ldflags=no
41164 for xc_word in $LDFLAGS; do
41165 case "$xc_word" in
41166 -D*)
41167 xc_bad_var_ldflags=yes
41168 ;;
41169 -U*)
41170 xc_bad_var_ldflags=yes
41171 ;;
41172 -I*)
41173 xc_bad_var_ldflags=yes
41174 ;;
41175 -l* | --library=*)
41176 xc_bad_var_ldflags=yes
41177 ;;
41178 esac
41179 done
41180 if test $xc_bad_var_ldflags = yes; then
41181 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41182$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41183 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41184 for xc_word in $LDFLAGS; do
41185 case "$xc_word" in
41186 -D*)
41187 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41188$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41189 ;;
41190 -U*)
41191 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41192$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41193 ;;
41194 -I*)
41195 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41196$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41197 ;;
41198 -l* | --library=*)
41199 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41200$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41201 ;;
41202 esac
41203 done
41204 fi
41205
41206
41207 xc_bad_var_cppflags=no
41208 for xc_word in $CPPFLAGS; do
41209 case "$xc_word" in
41210 -rpath*)
41211 xc_bad_var_cppflags=yes
41212 ;;
41213 -L* | --library-path=*)
41214 xc_bad_var_cppflags=yes
41215 ;;
41216 -l* | --library=*)
41217 xc_bad_var_cppflags=yes
41218 ;;
41219 esac
41220 done
41221 if test $xc_bad_var_cppflags = yes; then
41222 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41223$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41224 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41225 for xc_word in $CPPFLAGS; do
41226 case "$xc_word" in
41227 -rpath*)
41228 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41229$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41230 ;;
41231 -L* | --library-path=*)
41232 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41233$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41234 ;;
41235 -l* | --library=*)
41236 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41237$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41238 ;;
41239 esac
41240 done
41241 fi
41242
41243
41244 xc_bad_var_cflags=no
41245 for xc_word in $CFLAGS; do
41246 case "$xc_word" in
41247 -D*)
41248 xc_bad_var_cflags=yes
41249 ;;
41250 -U*)
41251 xc_bad_var_cflags=yes
41252 ;;
41253 -I*)
41254 xc_bad_var_cflags=yes
41255 ;;
41256 -rpath*)
41257 xc_bad_var_cflags=yes
41258 ;;
41259 -L* | --library-path=*)
41260 xc_bad_var_cflags=yes
41261 ;;
41262 -l* | --library=*)
41263 xc_bad_var_cflags=yes
41264 ;;
41265 esac
41266 done
41267 if test $xc_bad_var_cflags = yes; then
41268 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41269$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41270 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41271 for xc_word in $CFLAGS; do
41272 case "$xc_word" in
41273 -D*)
41274 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41275$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41276 ;;
41277 -U*)
41278 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41279$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41280 ;;
41281 -I*)
41282 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41283$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41284 ;;
41285 -rpath*)
41286 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41287$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41288 ;;
41289 -L* | --library-path=*)
41290 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41291$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41292 ;;
41293 -l* | --library=*)
41294 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41295$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41296 ;;
41297 esac
41298 done
41299 fi
41300
41301 if test $xc_bad_var_libs = yes ||
41302 test $xc_bad_var_cflags = yes ||
41303 test $xc_bad_var_ldflags = yes ||
41304 test $xc_bad_var_cppflags = yes; then
41305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41306$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41307 fi
41308
41309
Elliott Hughes0128fe42018-02-27 14:57:55 -080041310SSL_BACKENDS=${ssl_backends}
41311
41312
Elliott Hughes82be86d2017-09-20 17:00:17 -070041313if test "x$want_curldebug_assumed" = "xyes" &&
41314 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41315 ac_configure_args="$ac_configure_args --enable-curldebug"
41316fi
41317
Haibo Huang21926d52019-01-08 14:27:10 -080041318ac_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/vms/Makefile curl-config libcurl.pc"
Elliott Hughes82be86d2017-09-20 17:00:17 -070041319
41320cat >confcache <<\_ACEOF
41321# This file is a shell script that caches the results of configure
41322# tests run on this system so they can be shared between configure
41323# scripts and configure runs, see configure's option --config-cache.
41324# It is not useful on other systems. If it contains results you don't
41325# want to keep, you may remove or edit it.
41326#
41327# config.status only pays attention to the cache file if you give it
41328# the --recheck option to rerun configure.
41329#
41330# `ac_cv_env_foo' variables (set or unset) will be overridden when
41331# loading this file, other *unset* `ac_cv_foo' will be assigned the
41332# following values.
41333
41334_ACEOF
41335
41336# The following way of writing the cache mishandles newlines in values,
41337# but we know of no workaround that is simple, portable, and efficient.
41338# So, we kill variables containing newlines.
41339# Ultrix sh set writes to stderr and can't be redirected directly,
41340# and sets the high bit in the cache file unless we assign to the vars.
41341(
41342 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41343 eval ac_val=\$$ac_var
41344 case $ac_val in #(
41345 *${as_nl}*)
41346 case $ac_var in #(
41347 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41348$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41349 esac
41350 case $ac_var in #(
41351 _ | IFS | as_nl) ;; #(
41352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41353 *) { eval $ac_var=; unset $ac_var;} ;;
41354 esac ;;
41355 esac
41356 done
41357
41358 (set) 2>&1 |
41359 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41360 *${as_nl}ac_space=\ *)
41361 # `set' does not quote correctly, so add quotes: double-quote
41362 # substitution turns \\\\ into \\, and sed turns \\ into \.
41363 sed -n \
41364 "s/'/'\\\\''/g;
41365 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41366 ;; #(
41367 *)
41368 # `set' quotes correctly as required by POSIX, so do not add quotes.
41369 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41370 ;;
41371 esac |
41372 sort
41373) |
41374 sed '
41375 /^ac_cv_env_/b end
41376 t clear
41377 :clear
41378 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41379 t end
41380 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41381 :end' >>confcache
41382if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41383 if test -w "$cache_file"; then
41384 if test "x$cache_file" != "x/dev/null"; then
41385 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41386$as_echo "$as_me: updating cache $cache_file" >&6;}
41387 if test ! -f "$cache_file" || test -h "$cache_file"; then
41388 cat confcache >"$cache_file"
41389 else
41390 case $cache_file in #(
41391 */* | ?:*)
41392 mv -f confcache "$cache_file"$$ &&
41393 mv -f "$cache_file"$$ "$cache_file" ;; #(
41394 *)
41395 mv -f confcache "$cache_file" ;;
41396 esac
41397 fi
41398 fi
41399 else
41400 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41401$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41402 fi
41403fi
41404rm -f confcache
41405
41406test "x$prefix" = xNONE && prefix=$ac_default_prefix
41407# Let make expand exec_prefix.
41408test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41409
41410DEFS=-DHAVE_CONFIG_H
41411
41412ac_libobjs=
41413ac_ltlibobjs=
41414U=
41415for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41416 # 1. Remove the extension, and $U if already installed.
41417 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41418 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41419 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41420 # will be set to the directory where LIBOBJS objects are built.
41421 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41422 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41423done
41424LIBOBJS=$ac_libobjs
41425
41426LTLIBOBJS=$ac_ltlibobjs
41427
41428
41429if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41430 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41431Usually this means the macro was only invoked conditionally." "$LINENO" 5
41432fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41434$as_echo_n "checking that generated files are newer than configure... " >&6; }
41435 if test -n "$am_sleep_pid"; then
41436 # Hide warnings about reused PIDs.
41437 wait $am_sleep_pid 2>/dev/null
41438 fi
41439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41440$as_echo "done" >&6; }
41441if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41442 as_fn_error $? "conditional \"AMDEP\" was never defined.
41443Usually this means the macro was only invoked conditionally." "$LINENO" 5
41444fi
41445if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41446 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41447Usually this means the macro was only invoked conditionally." "$LINENO" 5
41448fi
41449 if test -n "$EXEEXT"; then
41450 am__EXEEXT_TRUE=
41451 am__EXEEXT_FALSE='#'
41452else
41453 am__EXEEXT_TRUE='#'
41454 am__EXEEXT_FALSE=
41455fi
41456
41457if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41458 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41459Usually this means the macro was only invoked conditionally." "$LINENO" 5
41460fi
41461if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41462 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41463Usually this means the macro was only invoked conditionally." "$LINENO" 5
41464fi
41465if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41466 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41467Usually this means the macro was only invoked conditionally." "$LINENO" 5
41468fi
41469if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41470 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41471Usually this means the macro was only invoked conditionally." "$LINENO" 5
41472fi
41473if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41474 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41475Usually this means the macro was only invoked conditionally." "$LINENO" 5
41476fi
41477if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41478 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41479Usually this means the macro was only invoked conditionally." "$LINENO" 5
41480fi
41481if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41482 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41483Usually this means the macro was only invoked conditionally." "$LINENO" 5
41484fi
41485if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41486 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41487Usually this means the macro was only invoked conditionally." "$LINENO" 5
41488fi
41489if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41490 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41491Usually this means the macro was only invoked conditionally." "$LINENO" 5
41492fi
Alex Deymo486467e2017-12-19 19:04:07 +010041493if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41494 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41495Usually this means the macro was only invoked conditionally." "$LINENO" 5
41496fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041497if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41498 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41499Usually this means the macro was only invoked conditionally." "$LINENO" 5
41500fi
41501if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41502 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41503Usually this means the macro was only invoked conditionally." "$LINENO" 5
41504fi
41505if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41506 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41507Usually this means the macro was only invoked conditionally." "$LINENO" 5
41508fi
41509if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41510 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41511Usually this means the macro was only invoked conditionally." "$LINENO" 5
41512fi
41513if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41514 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41515Usually this means the macro was only invoked conditionally." "$LINENO" 5
41516fi
41517if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41518 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41519Usually this means the macro was only invoked conditionally." "$LINENO" 5
41520fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041521if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41522 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41523Usually this means the macro was only invoked conditionally." "$LINENO" 5
41524fi
41525
41526: "${CONFIG_STATUS=./config.status}"
41527ac_write_fail=0
41528ac_clean_files_save=$ac_clean_files
41529ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41530{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41531$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41532as_write_fail=0
41533cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41534#! $SHELL
41535# Generated by $as_me.
41536# Run this file to recreate the current configuration.
41537# Compiler output produced by configure, useful for debugging
41538# configure, is in config.log if it exists.
41539
41540debug=false
41541ac_cs_recheck=false
41542ac_cs_silent=false
41543
41544SHELL=\${CONFIG_SHELL-$SHELL}
41545export SHELL
41546_ASEOF
41547cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41548## -------------------- ##
41549## M4sh Initialization. ##
41550## -------------------- ##
41551
41552# Be more Bourne compatible
41553DUALCASE=1; export DUALCASE # for MKS sh
41554if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41555 emulate sh
41556 NULLCMD=:
41557 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41558 # is contrary to our usage. Disable this feature.
41559 alias -g '${1+"$@"}'='"$@"'
41560 setopt NO_GLOB_SUBST
41561else
41562 case `(set -o) 2>/dev/null` in #(
41563 *posix*) :
41564 set -o posix ;; #(
41565 *) :
41566 ;;
41567esac
41568fi
41569
41570
41571as_nl='
41572'
41573export as_nl
41574# Printing a long string crashes Solaris 7 /usr/bin/printf.
41575as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41576as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41577as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41578# Prefer a ksh shell builtin over an external printf program on Solaris,
41579# but without wasting forks for bash or zsh.
41580if test -z "$BASH_VERSION$ZSH_VERSION" \
41581 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41582 as_echo='print -r --'
41583 as_echo_n='print -rn --'
41584elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41585 as_echo='printf %s\n'
41586 as_echo_n='printf %s'
41587else
41588 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41589 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41590 as_echo_n='/usr/ucb/echo -n'
41591 else
41592 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41593 as_echo_n_body='eval
41594 arg=$1;
41595 case $arg in #(
41596 *"$as_nl"*)
41597 expr "X$arg" : "X\\(.*\\)$as_nl";
41598 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41599 esac;
41600 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41601 '
41602 export as_echo_n_body
41603 as_echo_n='sh -c $as_echo_n_body as_echo'
41604 fi
41605 export as_echo_body
41606 as_echo='sh -c $as_echo_body as_echo'
41607fi
41608
41609
41610
41611# IFS
41612# We need space, tab and new line, in precisely that order. Quoting is
41613# there to prevent editors from complaining about space-tab.
41614# (If _AS_PATH_WALK were called with IFS unset, it would disable word
41615# splitting by setting IFS to empty value.)
41616IFS=" "" $as_nl"
41617
41618# Find who we are. Look in the path if we contain no directory separator.
41619as_myself=
41620case $0 in #((
41621 *[\\/]* ) as_myself=$0 ;;
41622 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41623for as_dir in $PATH
41624do
41625 IFS=$as_save_IFS
41626 test -z "$as_dir" && as_dir=.
41627 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41628 done
41629IFS=$as_save_IFS
41630
41631 ;;
41632esac
41633# We did not find ourselves, most probably we were run as `sh COMMAND'
41634# in which case we are not to be found in the path.
41635if test "x$as_myself" = x; then
41636 as_myself=$0
41637fi
41638if test ! -f "$as_myself"; then
41639 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41640 exit 1
41641fi
41642
41643# Unset variables that we do not need and which cause bugs (e.g. in
41644# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41645# suppresses any "Segmentation fault" message there. '((' could
41646# trigger a bug in pdksh 5.2.14.
41647for as_var in BASH_ENV ENV MAIL MAILPATH
41648do eval test x\${$as_var+set} = xset \
41649 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41650done
41651PS1='$ '
41652PS2='> '
41653PS4='+ '
41654
41655# NLS nuisances.
41656LC_ALL=C
41657export LC_ALL
41658LANGUAGE=C
41659export LANGUAGE
41660
41661# CDPATH.
41662(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41663
41664
41665# as_fn_error STATUS ERROR [LINENO LOG_FD]
41666# ----------------------------------------
41667# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41668# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41669# script with STATUS, using 1 if that was 0.
41670as_fn_error ()
41671{
41672 as_status=$1; test $as_status -eq 0 && as_status=1
41673 if test "$4"; then
41674 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41675 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41676 fi
41677 $as_echo "$as_me: error: $2" >&2
41678 as_fn_exit $as_status
41679} # as_fn_error
41680
41681
41682# as_fn_set_status STATUS
41683# -----------------------
41684# Set $? to STATUS, without forking.
41685as_fn_set_status ()
41686{
41687 return $1
41688} # as_fn_set_status
41689
41690# as_fn_exit STATUS
41691# -----------------
41692# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41693as_fn_exit ()
41694{
41695 set +e
41696 as_fn_set_status $1
41697 exit $1
41698} # as_fn_exit
41699
41700# as_fn_unset VAR
41701# ---------------
41702# Portably unset VAR.
41703as_fn_unset ()
41704{
41705 { eval $1=; unset $1;}
41706}
41707as_unset=as_fn_unset
41708# as_fn_append VAR VALUE
41709# ----------------------
41710# Append the text in VALUE to the end of the definition contained in VAR. Take
41711# advantage of any shell optimizations that allow amortized linear growth over
41712# repeated appends, instead of the typical quadratic growth present in naive
41713# implementations.
41714if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41715 eval 'as_fn_append ()
41716 {
41717 eval $1+=\$2
41718 }'
41719else
41720 as_fn_append ()
41721 {
41722 eval $1=\$$1\$2
41723 }
41724fi # as_fn_append
41725
41726# as_fn_arith ARG...
41727# ------------------
41728# Perform arithmetic evaluation on the ARGs, and store the result in the
41729# global $as_val. Take advantage of shells that can avoid forks. The arguments
41730# must be portable across $(()) and expr.
41731if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41732 eval 'as_fn_arith ()
41733 {
41734 as_val=$(( $* ))
41735 }'
41736else
41737 as_fn_arith ()
41738 {
41739 as_val=`expr "$@" || test $? -eq 1`
41740 }
41741fi # as_fn_arith
41742
41743
41744if expr a : '\(a\)' >/dev/null 2>&1 &&
41745 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41746 as_expr=expr
41747else
41748 as_expr=false
41749fi
41750
41751if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41752 as_basename=basename
41753else
41754 as_basename=false
41755fi
41756
41757if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41758 as_dirname=dirname
41759else
41760 as_dirname=false
41761fi
41762
41763as_me=`$as_basename -- "$0" ||
41764$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41765 X"$0" : 'X\(//\)$' \| \
41766 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41767$as_echo X/"$0" |
41768 sed '/^.*\/\([^/][^/]*\)\/*$/{
41769 s//\1/
41770 q
41771 }
41772 /^X\/\(\/\/\)$/{
41773 s//\1/
41774 q
41775 }
41776 /^X\/\(\/\).*/{
41777 s//\1/
41778 q
41779 }
41780 s/.*/./; q'`
41781
41782# Avoid depending upon Character Ranges.
41783as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41784as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41785as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41786as_cr_digits='0123456789'
41787as_cr_alnum=$as_cr_Letters$as_cr_digits
41788
41789ECHO_C= ECHO_N= ECHO_T=
41790case `echo -n x` in #(((((
41791-n*)
41792 case `echo 'xy\c'` in
41793 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41794 xy) ECHO_C='\c';;
41795 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41796 ECHO_T=' ';;
41797 esac;;
41798*)
41799 ECHO_N='-n';;
41800esac
41801
41802rm -f conf$$ conf$$.exe conf$$.file
41803if test -d conf$$.dir; then
41804 rm -f conf$$.dir/conf$$.file
41805else
41806 rm -f conf$$.dir
41807 mkdir conf$$.dir 2>/dev/null
41808fi
41809if (echo >conf$$.file) 2>/dev/null; then
41810 if ln -s conf$$.file conf$$ 2>/dev/null; then
41811 as_ln_s='ln -s'
41812 # ... but there are two gotchas:
41813 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41814 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41815 # In both cases, we have to default to `cp -pR'.
41816 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41817 as_ln_s='cp -pR'
41818 elif ln conf$$.file conf$$ 2>/dev/null; then
41819 as_ln_s=ln
41820 else
41821 as_ln_s='cp -pR'
41822 fi
41823else
41824 as_ln_s='cp -pR'
41825fi
41826rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41827rmdir conf$$.dir 2>/dev/null
41828
41829
41830# as_fn_mkdir_p
41831# -------------
41832# Create "$as_dir" as a directory, including parents if necessary.
41833as_fn_mkdir_p ()
41834{
41835
41836 case $as_dir in #(
41837 -*) as_dir=./$as_dir;;
41838 esac
41839 test -d "$as_dir" || eval $as_mkdir_p || {
41840 as_dirs=
41841 while :; do
41842 case $as_dir in #(
41843 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41844 *) as_qdir=$as_dir;;
41845 esac
41846 as_dirs="'$as_qdir' $as_dirs"
41847 as_dir=`$as_dirname -- "$as_dir" ||
41848$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41849 X"$as_dir" : 'X\(//\)[^/]' \| \
41850 X"$as_dir" : 'X\(//\)$' \| \
41851 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41852$as_echo X"$as_dir" |
41853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41854 s//\1/
41855 q
41856 }
41857 /^X\(\/\/\)[^/].*/{
41858 s//\1/
41859 q
41860 }
41861 /^X\(\/\/\)$/{
41862 s//\1/
41863 q
41864 }
41865 /^X\(\/\).*/{
41866 s//\1/
41867 q
41868 }
41869 s/.*/./; q'`
41870 test -d "$as_dir" && break
41871 done
41872 test -z "$as_dirs" || eval "mkdir $as_dirs"
41873 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41874
41875
41876} # as_fn_mkdir_p
41877if mkdir -p . 2>/dev/null; then
41878 as_mkdir_p='mkdir -p "$as_dir"'
41879else
41880 test -d ./-p && rmdir ./-p
41881 as_mkdir_p=false
41882fi
41883
41884
41885# as_fn_executable_p FILE
41886# -----------------------
41887# Test if FILE is an executable regular file.
41888as_fn_executable_p ()
41889{
41890 test -f "$1" && test -x "$1"
41891} # as_fn_executable_p
41892as_test_x='test -x'
41893as_executable_p=as_fn_executable_p
41894
41895# Sed expression to map a string onto a valid CPP name.
41896as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41897
41898# Sed expression to map a string onto a valid variable name.
41899as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41900
41901
41902exec 6>&1
41903## ----------------------------------- ##
41904## Main body of $CONFIG_STATUS script. ##
41905## ----------------------------------- ##
41906_ASEOF
41907test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41908
41909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41910# Save the log message, to keep $0 and so on meaningful, and to
41911# report actual input values of CONFIG_FILES etc. instead of their
41912# values after options handling.
41913ac_log="
41914This file was extended by curl $as_me -, which was
41915generated by GNU Autoconf 2.69. Invocation command line was
41916
41917 CONFIG_FILES = $CONFIG_FILES
41918 CONFIG_HEADERS = $CONFIG_HEADERS
41919 CONFIG_LINKS = $CONFIG_LINKS
41920 CONFIG_COMMANDS = $CONFIG_COMMANDS
41921 $ $0 $@
41922
41923on `(hostname || uname -n) 2>/dev/null | sed 1q`
41924"
41925
41926_ACEOF
41927
41928case $ac_config_files in *"
41929"*) set x $ac_config_files; shift; ac_config_files=$*;;
41930esac
41931
41932case $ac_config_headers in *"
41933"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
41934esac
41935
41936
41937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41938# Files that config.status was made for.
41939config_files="$ac_config_files"
41940config_headers="$ac_config_headers"
41941config_commands="$ac_config_commands"
41942
41943_ACEOF
41944
41945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41946ac_cs_usage="\
41947\`$as_me' instantiates files and other configuration actions
41948from templates according to the current configuration. Unless the files
41949and actions are specified as TAGs, all are instantiated by default.
41950
41951Usage: $0 [OPTION]... [TAG]...
41952
41953 -h, --help print this help, then exit
41954 -V, --version print version number and configuration settings, then exit
41955 --config print configuration, then exit
41956 -q, --quiet, --silent
41957 do not print progress messages
41958 -d, --debug don't remove temporary files
41959 --recheck update $as_me by reconfiguring in the same conditions
41960 --file=FILE[:TEMPLATE]
41961 instantiate the configuration file FILE
41962 --header=FILE[:TEMPLATE]
41963 instantiate the configuration header FILE
41964
41965Configuration files:
41966$config_files
41967
41968Configuration headers:
41969$config_headers
41970
41971Configuration commands:
41972$config_commands
41973
41974Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
41975
41976_ACEOF
41977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41978ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41979ac_cs_version="\\
41980curl config.status -
41981configured by $0, generated by GNU Autoconf 2.69,
41982 with options \\"\$ac_cs_config\\"
41983
41984Copyright (C) 2012 Free Software Foundation, Inc.
41985This config.status script is free software; the Free Software Foundation
41986gives unlimited permission to copy, distribute and modify it."
41987
41988ac_pwd='$ac_pwd'
41989srcdir='$srcdir'
41990INSTALL='$INSTALL'
41991MKDIR_P='$MKDIR_P'
41992AWK='$AWK'
41993test -n "\$AWK" || AWK=awk
41994_ACEOF
41995
41996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41997# The default lists apply if the user does not specify any file.
41998ac_need_defaults=:
41999while test $# != 0
42000do
42001 case $1 in
42002 --*=?*)
42003 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42004 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42005 ac_shift=:
42006 ;;
42007 --*=)
42008 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42009 ac_optarg=
42010 ac_shift=:
42011 ;;
42012 *)
42013 ac_option=$1
42014 ac_optarg=$2
42015 ac_shift=shift
42016 ;;
42017 esac
42018
42019 case $ac_option in
42020 # Handling of the options.
42021 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42022 ac_cs_recheck=: ;;
42023 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42024 $as_echo "$ac_cs_version"; exit ;;
42025 --config | --confi | --conf | --con | --co | --c )
42026 $as_echo "$ac_cs_config"; exit ;;
42027 --debug | --debu | --deb | --de | --d | -d )
42028 debug=: ;;
42029 --file | --fil | --fi | --f )
42030 $ac_shift
42031 case $ac_optarg in
42032 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42033 '') as_fn_error $? "missing file argument" ;;
42034 esac
42035 as_fn_append CONFIG_FILES " '$ac_optarg'"
42036 ac_need_defaults=false;;
42037 --header | --heade | --head | --hea )
42038 $ac_shift
42039 case $ac_optarg in
42040 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42041 esac
42042 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42043 ac_need_defaults=false;;
42044 --he | --h)
42045 # Conflict between --help and --header
42046 as_fn_error $? "ambiguous option: \`$1'
42047Try \`$0 --help' for more information.";;
42048 --help | --hel | -h )
42049 $as_echo "$ac_cs_usage"; exit ;;
42050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42051 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42052 ac_cs_silent=: ;;
42053
42054 # This is an error.
42055 -*) as_fn_error $? "unrecognized option: \`$1'
42056Try \`$0 --help' for more information." ;;
42057
42058 *) as_fn_append ac_config_targets " $1"
42059 ac_need_defaults=false ;;
42060
42061 esac
42062 shift
42063done
42064
42065ac_configure_extra_args=
42066
42067if $ac_cs_silent; then
42068 exec 6>/dev/null
42069 ac_configure_extra_args="$ac_configure_extra_args --silent"
42070fi
42071
42072_ACEOF
42073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42074if \$ac_cs_recheck; then
42075 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42076 shift
42077 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42078 CONFIG_SHELL='$SHELL'
42079 export CONFIG_SHELL
42080 exec "\$@"
42081fi
42082
42083_ACEOF
42084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42085exec 5>>config.log
42086{
42087 echo
42088 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42089## Running $as_me. ##
42090_ASBOX
42091 $as_echo "$ac_log"
42092} >&5
42093
42094_ACEOF
42095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42096#
42097# INIT-COMMANDS
42098#
42099AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42100
42101
42102# The HP-UX ksh and POSIX shell print the target directory to stdout
42103# if CDPATH is set.
42104(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42105
42106sed_quote_subst='$sed_quote_subst'
42107double_quote_subst='$double_quote_subst'
42108delay_variable_subst='$delay_variable_subst'
42109macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42110macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42111AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42112DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42113OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42114enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42115enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42116pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42117enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42118shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42119SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42120ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42121PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42122host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42123host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42124host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42125build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42126build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42127build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42128SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42129Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42130GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42131EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42132FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42133LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42134NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42135LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42136max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42137ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42138exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42139lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42140lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42141lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42142lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42143lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42144reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42145reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42146deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42147file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42148file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42149want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42150sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42151AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42152AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42153archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42154STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42155RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42156old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42157old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42158old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42159lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42160CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42161CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42162compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42163GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42164lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42165lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42166lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42167lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42168lt_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"`'
42169lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42170nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42171lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42172lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42173objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42174MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42175lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42176lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42177lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42178lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42179lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42180need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42181MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42182DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42183NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42184LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42185OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42186OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42187libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42188shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42189extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42190archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42191enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42192export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42193whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42194compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42195old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42196old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42197archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42198archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42199module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42200module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42201with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42202allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42203no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42204hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42205hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42206hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42207hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42208hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42209hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42210hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42211inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42212link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42213always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42214export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42215exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42216include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42217prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42218postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42219file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42220variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42221need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42222need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42223version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42224runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42225shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42226shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42227libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42228library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42229soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42230install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42231postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42232postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42233finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42234finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42235hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42236sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42237configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42238configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42239hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42240enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42241enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42242enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42243old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42244striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42245
42246LTCC='$LTCC'
42247LTCFLAGS='$LTCFLAGS'
42248compiler='$compiler_DEFAULT'
42249
42250# A function that is used when there is no print builtin or printf.
42251func_fallback_echo ()
42252{
42253 eval 'cat <<_LTECHO_EOF
42254\$1
42255_LTECHO_EOF'
42256}
42257
42258# Quote evaled strings.
42259for var in AS \
42260DLLTOOL \
42261OBJDUMP \
42262SHELL \
42263ECHO \
42264PATH_SEPARATOR \
42265SED \
42266GREP \
42267EGREP \
42268FGREP \
42269LD \
42270NM \
42271LN_S \
42272lt_SP2NL \
42273lt_NL2SP \
42274reload_flag \
42275deplibs_check_method \
42276file_magic_cmd \
42277file_magic_glob \
42278want_nocaseglob \
42279sharedlib_from_linklib_cmd \
42280AR \
42281AR_FLAGS \
42282archiver_list_spec \
42283STRIP \
42284RANLIB \
42285CC \
42286CFLAGS \
42287compiler \
42288lt_cv_sys_global_symbol_pipe \
42289lt_cv_sys_global_symbol_to_cdecl \
42290lt_cv_sys_global_symbol_to_import \
42291lt_cv_sys_global_symbol_to_c_name_address \
42292lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42293lt_cv_nm_interface \
42294nm_file_list_spec \
42295lt_cv_truncate_bin \
42296lt_prog_compiler_no_builtin_flag \
42297lt_prog_compiler_pic \
42298lt_prog_compiler_wl \
42299lt_prog_compiler_static \
42300lt_cv_prog_compiler_c_o \
42301need_locks \
42302MANIFEST_TOOL \
42303DSYMUTIL \
42304NMEDIT \
42305LIPO \
42306OTOOL \
42307OTOOL64 \
42308shrext_cmds \
42309export_dynamic_flag_spec \
42310whole_archive_flag_spec \
42311compiler_needs_object \
42312with_gnu_ld \
42313allow_undefined_flag \
42314no_undefined_flag \
42315hardcode_libdir_flag_spec \
42316hardcode_libdir_separator \
42317exclude_expsyms \
42318include_expsyms \
42319file_list_spec \
42320variables_saved_for_relink \
42321libname_spec \
42322library_names_spec \
42323soname_spec \
42324install_override_mode \
42325finish_eval \
42326old_striplib \
42327striplib; do
42328 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42329 *[\\\\\\\`\\"\\\$]*)
42330 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42331 ;;
42332 *)
42333 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42334 ;;
42335 esac
42336done
42337
42338# Double-quote double-evaled strings.
42339for var in reload_cmds \
42340old_postinstall_cmds \
42341old_postuninstall_cmds \
42342old_archive_cmds \
42343extract_expsyms_cmds \
42344old_archive_from_new_cmds \
42345old_archive_from_expsyms_cmds \
42346archive_cmds \
42347archive_expsym_cmds \
42348module_cmds \
42349module_expsym_cmds \
42350export_symbols_cmds \
42351prelink_cmds \
42352postlink_cmds \
42353postinstall_cmds \
42354postuninstall_cmds \
42355finish_cmds \
42356sys_lib_search_path_spec \
42357configure_time_dlsearch_path \
42358configure_time_lt_sys_library_path; do
42359 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42360 *[\\\\\\\`\\"\\\$]*)
42361 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42362 ;;
42363 *)
42364 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42365 ;;
42366 esac
42367done
42368
42369ac_aux_dir='$ac_aux_dir'
42370
42371# See if we are running on zsh, and set the options that allow our
42372# commands through without removal of \ escapes INIT.
42373if test -n "\${ZSH_VERSION+set}"; then
42374 setopt NO_GLOB_SUBST
42375fi
42376
42377
42378 PACKAGE='$PACKAGE'
42379 VERSION='$VERSION'
42380 RM='$RM'
42381 ofile='$ofile'
42382
42383
42384
42385
42386_ACEOF
42387
42388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42389
42390# Handling of arguments.
42391for ac_config_target in $ac_config_targets
42392do
42393 case $ac_config_target in
42394 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42395 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42396 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42397 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42398 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42399 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42400 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42401 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42402 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42403 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42404 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42405 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42406 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42407 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42408 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42409 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42410 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42411 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42412 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42413 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42414 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42415 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042416 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042417 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042418 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42419 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42420
42421 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42422 esac
42423done
42424
42425
42426# If the user did not use the arguments to specify the items to instantiate,
42427# then the envvar interface is used. Set only those that are not.
42428# We use the long form for the default assignment because of an extremely
42429# bizarre bug on SunOS 4.1.3.
42430if $ac_need_defaults; then
42431 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42432 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42433 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42434fi
42435
42436# Have a temporary directory for convenience. Make it in the build tree
42437# simply because there is no reason against having it here, and in addition,
42438# creating and moving files from /tmp can sometimes cause problems.
42439# Hook for its removal unless debugging.
42440# Note that there is a small window in which the directory will not be cleaned:
42441# after its creation but before its name has been assigned to `$tmp'.
42442$debug ||
42443{
42444 tmp= ac_tmp=
42445 trap 'exit_status=$?
42446 : "${ac_tmp:=$tmp}"
42447 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42448' 0
42449 trap 'as_fn_exit 1' 1 2 13 15
42450}
42451# Create a (secure) tmp directory for tmp files.
42452
42453{
42454 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42455 test -d "$tmp"
42456} ||
42457{
42458 tmp=./conf$$-$RANDOM
42459 (umask 077 && mkdir "$tmp")
42460} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42461ac_tmp=$tmp
42462
42463# Set up the scripts for CONFIG_FILES section.
42464# No need to generate them if there are no CONFIG_FILES.
42465# This happens for instance with `./config.status config.h'.
42466if test -n "$CONFIG_FILES"; then
42467
42468
42469ac_cr=`echo X | tr X '\015'`
42470# On cygwin, bash can eat \r inside `` if the user requested igncr.
42471# But we know of no other shell where ac_cr would be empty at this
42472# point, so we can use a bashism as a fallback.
42473if test "x$ac_cr" = x; then
42474 eval ac_cr=\$\'\\r\'
42475fi
42476ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42477if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42478 ac_cs_awk_cr='\\r'
42479else
42480 ac_cs_awk_cr=$ac_cr
42481fi
42482
42483echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42484_ACEOF
42485
42486
42487{
42488 echo "cat >conf$$subs.awk <<_ACEOF" &&
42489 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42490 echo "_ACEOF"
42491} >conf$$subs.sh ||
42492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42493ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42494ac_delim='%!_!# '
42495for ac_last_try in false false false false false :; do
42496 . ./conf$$subs.sh ||
42497 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42498
42499 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42500 if test $ac_delim_n = $ac_delim_num; then
42501 break
42502 elif $ac_last_try; then
42503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42504 else
42505 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42506 fi
42507done
42508rm -f conf$$subs.sh
42509
42510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42511cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42512_ACEOF
42513sed -n '
42514h
42515s/^/S["/; s/!.*/"]=/
42516p
42517g
42518s/^[^!]*!//
42519:repl
42520t repl
42521s/'"$ac_delim"'$//
42522t delim
42523:nl
42524h
42525s/\(.\{148\}\)..*/\1/
42526t more1
42527s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42528p
42529n
42530b repl
42531:more1
42532s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42533p
42534g
42535s/.\{148\}//
42536t nl
42537:delim
42538h
42539s/\(.\{148\}\)..*/\1/
42540t more2
42541s/["\\]/\\&/g; s/^/"/; s/$/"/
42542p
42543b
42544:more2
42545s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42546p
42547g
42548s/.\{148\}//
42549t delim
42550' <conf$$subs.awk | sed '
42551/^[^""]/{
42552 N
42553 s/\n//
42554}
42555' >>$CONFIG_STATUS || ac_write_fail=1
42556rm -f conf$$subs.awk
42557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42558_ACAWK
42559cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42560 for (key in S) S_is_set[key] = 1
42561 FS = ""
42562
42563}
42564{
42565 line = $ 0
42566 nfields = split(line, field, "@")
42567 substed = 0
42568 len = length(field[1])
42569 for (i = 2; i < nfields; i++) {
42570 key = field[i]
42571 keylen = length(key)
42572 if (S_is_set[key]) {
42573 value = S[key]
42574 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42575 len += length(value) + length(field[++i])
42576 substed = 1
42577 } else
42578 len += 1 + keylen
42579 }
42580
42581 print line
42582}
42583
42584_ACAWK
42585_ACEOF
42586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42587if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42588 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42589else
42590 cat
42591fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42592 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42593_ACEOF
42594
42595# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42596# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42597# trailing colons and then remove the whole line if VPATH becomes empty
42598# (actually we leave an empty line to preserve line numbers).
42599if test "x$srcdir" = x.; then
42600 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42601h
42602s///
42603s/^/:/
42604s/[ ]*$/:/
42605s/:\$(srcdir):/:/g
42606s/:\${srcdir}:/:/g
42607s/:@srcdir@:/:/g
42608s/^:*//
42609s/:*$//
42610x
42611s/\(=[ ]*\).*/\1/
42612G
42613s/\n//
42614s/^[^=]*=[ ]*$//
42615}'
42616fi
42617
42618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42619fi # test -n "$CONFIG_FILES"
42620
42621# Set up the scripts for CONFIG_HEADERS section.
42622# No need to generate them if there are no CONFIG_HEADERS.
42623# This happens for instance with `./config.status Makefile'.
42624if test -n "$CONFIG_HEADERS"; then
42625cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42626BEGIN {
42627_ACEOF
42628
42629# Transform confdefs.h into an awk script `defines.awk', embedded as
42630# here-document in config.status, that substitutes the proper values into
42631# config.h.in to produce config.h.
42632
42633# Create a delimiter string that does not exist in confdefs.h, to ease
42634# handling of long lines.
42635ac_delim='%!_!# '
42636for ac_last_try in false false :; do
42637 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42638 if test -z "$ac_tt"; then
42639 break
42640 elif $ac_last_try; then
42641 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42642 else
42643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42644 fi
42645done
42646
42647# For the awk script, D is an array of macro values keyed by name,
42648# likewise P contains macro parameters if any. Preserve backslash
42649# newline sequences.
42650
42651ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42652sed -n '
42653s/.\{148\}/&'"$ac_delim"'/g
42654t rset
42655:rset
42656s/^[ ]*#[ ]*define[ ][ ]*/ /
42657t def
42658d
42659:def
42660s/\\$//
42661t bsnl
42662s/["\\]/\\&/g
42663s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42664D["\1"]=" \3"/p
42665s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42666d
42667:bsnl
42668s/["\\]/\\&/g
42669s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42670D["\1"]=" \3\\\\\\n"\\/p
42671t cont
42672s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42673t cont
42674d
42675:cont
42676n
42677s/.\{148\}/&'"$ac_delim"'/g
42678t clear
42679:clear
42680s/\\$//
42681t bsnlc
42682s/["\\]/\\&/g; s/^/"/; s/$/"/p
42683d
42684:bsnlc
42685s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42686b cont
42687' <confdefs.h | sed '
42688s/'"$ac_delim"'/"\\\
42689"/g' >>$CONFIG_STATUS || ac_write_fail=1
42690
42691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42692 for (key in D) D_is_set[key] = 1
42693 FS = ""
42694}
42695/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42696 line = \$ 0
42697 split(line, arg, " ")
42698 if (arg[1] == "#") {
42699 defundef = arg[2]
42700 mac1 = arg[3]
42701 } else {
42702 defundef = substr(arg[1], 2)
42703 mac1 = arg[2]
42704 }
42705 split(mac1, mac2, "(") #)
42706 macro = mac2[1]
42707 prefix = substr(line, 1, index(line, defundef) - 1)
42708 if (D_is_set[macro]) {
42709 # Preserve the white space surrounding the "#".
42710 print prefix "define", macro P[macro] D[macro]
42711 next
42712 } else {
42713 # Replace #undef with comments. This is necessary, for example,
42714 # in the case of _POSIX_SOURCE, which is predefined and required
42715 # on some systems where configure will not decide to define it.
42716 if (defundef == "undef") {
42717 print "/*", prefix defundef, macro, "*/"
42718 next
42719 }
42720 }
42721}
42722{ print }
42723_ACAWK
42724_ACEOF
42725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42726 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42727fi # test -n "$CONFIG_HEADERS"
42728
42729
42730eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42731shift
42732for ac_tag
42733do
42734 case $ac_tag in
42735 :[FHLC]) ac_mode=$ac_tag; continue;;
42736 esac
42737 case $ac_mode$ac_tag in
42738 :[FHL]*:*);;
42739 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42740 :[FH]-) ac_tag=-:-;;
42741 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42742 esac
42743 ac_save_IFS=$IFS
42744 IFS=:
42745 set x $ac_tag
42746 IFS=$ac_save_IFS
42747 shift
42748 ac_file=$1
42749 shift
42750
42751 case $ac_mode in
42752 :L) ac_source=$1;;
42753 :[FH])
42754 ac_file_inputs=
42755 for ac_f
42756 do
42757 case $ac_f in
42758 -) ac_f="$ac_tmp/stdin";;
42759 *) # Look for the file first in the build tree, then in the source tree
42760 # (if the path is not absolute). The absolute path cannot be DOS-style,
42761 # because $ac_f cannot contain `:'.
42762 test -f "$ac_f" ||
42763 case $ac_f in
42764 [\\/$]*) false;;
42765 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42766 esac ||
42767 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42768 esac
42769 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42770 as_fn_append ac_file_inputs " '$ac_f'"
42771 done
42772
42773 # Let's still pretend it is `configure' which instantiates (i.e., don't
42774 # use $as_me), people would be surprised to read:
42775 # /* config.h. Generated by config.status. */
42776 configure_input='Generated from '`
42777 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42778 `' by configure.'
42779 if test x"$ac_file" != x-; then
42780 configure_input="$ac_file. $configure_input"
42781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42782$as_echo "$as_me: creating $ac_file" >&6;}
42783 fi
42784 # Neutralize special characters interpreted by sed in replacement strings.
42785 case $configure_input in #(
42786 *\&* | *\|* | *\\* )
42787 ac_sed_conf_input=`$as_echo "$configure_input" |
42788 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42789 *) ac_sed_conf_input=$configure_input;;
42790 esac
42791
42792 case $ac_tag in
42793 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42795 esac
42796 ;;
42797 esac
42798
42799 ac_dir=`$as_dirname -- "$ac_file" ||
42800$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42801 X"$ac_file" : 'X\(//\)[^/]' \| \
42802 X"$ac_file" : 'X\(//\)$' \| \
42803 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42804$as_echo X"$ac_file" |
42805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42806 s//\1/
42807 q
42808 }
42809 /^X\(\/\/\)[^/].*/{
42810 s//\1/
42811 q
42812 }
42813 /^X\(\/\/\)$/{
42814 s//\1/
42815 q
42816 }
42817 /^X\(\/\).*/{
42818 s//\1/
42819 q
42820 }
42821 s/.*/./; q'`
42822 as_dir="$ac_dir"; as_fn_mkdir_p
42823 ac_builddir=.
42824
42825case "$ac_dir" in
42826.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42827*)
42828 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42829 # A ".." for each directory in $ac_dir_suffix.
42830 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42831 case $ac_top_builddir_sub in
42832 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42833 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42834 esac ;;
42835esac
42836ac_abs_top_builddir=$ac_pwd
42837ac_abs_builddir=$ac_pwd$ac_dir_suffix
42838# for backward compatibility:
42839ac_top_builddir=$ac_top_build_prefix
42840
42841case $srcdir in
42842 .) # We are building in place.
42843 ac_srcdir=.
42844 ac_top_srcdir=$ac_top_builddir_sub
42845 ac_abs_top_srcdir=$ac_pwd ;;
42846 [\\/]* | ?:[\\/]* ) # Absolute name.
42847 ac_srcdir=$srcdir$ac_dir_suffix;
42848 ac_top_srcdir=$srcdir
42849 ac_abs_top_srcdir=$srcdir ;;
42850 *) # Relative name.
42851 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42852 ac_top_srcdir=$ac_top_build_prefix$srcdir
42853 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42854esac
42855ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42856
42857
42858 case $ac_mode in
42859 :F)
42860 #
42861 # CONFIG_FILE
42862 #
42863
42864 case $INSTALL in
42865 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42866 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42867 esac
42868 ac_MKDIR_P=$MKDIR_P
42869 case $MKDIR_P in
42870 [\\/$]* | ?:[\\/]* ) ;;
42871 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42872 esac
42873_ACEOF
42874
42875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42876# If the template does not know about datarootdir, expand it.
42877# FIXME: This hack should be removed a few years after 2.60.
42878ac_datarootdir_hack=; ac_datarootdir_seen=
42879ac_sed_dataroot='
42880/datarootdir/ {
42881 p
42882 q
42883}
42884/@datadir@/p
42885/@docdir@/p
42886/@infodir@/p
42887/@localedir@/p
42888/@mandir@/p'
42889case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42890*datarootdir*) ac_datarootdir_seen=yes;;
42891*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42893$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42894_ACEOF
42895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42896 ac_datarootdir_hack='
42897 s&@datadir@&$datadir&g
42898 s&@docdir@&$docdir&g
42899 s&@infodir@&$infodir&g
42900 s&@localedir@&$localedir&g
42901 s&@mandir@&$mandir&g
42902 s&\\\${datarootdir}&$datarootdir&g' ;;
42903esac
42904_ACEOF
42905
42906# Neutralize VPATH when `$srcdir' = `.'.
42907# Shell code in configure.ac might set extrasub.
42908# FIXME: do we really want to maintain this feature?
42909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42910ac_sed_extra="$ac_vpsub
42911$extrasub
42912_ACEOF
42913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42914:t
42915/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42916s|@configure_input@|$ac_sed_conf_input|;t t
42917s&@top_builddir@&$ac_top_builddir_sub&;t t
42918s&@top_build_prefix@&$ac_top_build_prefix&;t t
42919s&@srcdir@&$ac_srcdir&;t t
42920s&@abs_srcdir@&$ac_abs_srcdir&;t t
42921s&@top_srcdir@&$ac_top_srcdir&;t t
42922s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
42923s&@builddir@&$ac_builddir&;t t
42924s&@abs_builddir@&$ac_abs_builddir&;t t
42925s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
42926s&@INSTALL@&$ac_INSTALL&;t t
42927s&@MKDIR_P@&$ac_MKDIR_P&;t t
42928$ac_datarootdir_hack
42929"
42930eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
42931 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42932
42933test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42934 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
42935 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42936 "$ac_tmp/out"`; test -z "$ac_out"; } &&
42937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42938which seems to be undefined. Please make sure it is defined" >&5
42939$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
42940which seems to be undefined. Please make sure it is defined" >&2;}
42941
42942 rm -f "$ac_tmp/stdin"
42943 case $ac_file in
42944 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42945 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42946 esac \
42947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42948 ;;
42949 :H)
42950 #
42951 # CONFIG_HEADER
42952 #
42953 if test x"$ac_file" != x-; then
42954 {
42955 $as_echo "/* $configure_input */" \
42956 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42957 } >"$ac_tmp/config.h" \
42958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42959 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42960 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42961$as_echo "$as_me: $ac_file is unchanged" >&6;}
42962 else
42963 rm -f "$ac_file"
42964 mv "$ac_tmp/config.h" "$ac_file" \
42965 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42966 fi
42967 else
42968 $as_echo "/* $configure_input */" \
42969 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42970 || as_fn_error $? "could not create -" "$LINENO" 5
42971 fi
42972# Compute "$ac_file"'s index in $config_headers.
42973_am_arg="$ac_file"
42974_am_stamp_count=1
42975for _am_header in $config_headers :; do
42976 case $_am_header in
42977 $_am_arg | $_am_arg:* )
42978 break ;;
42979 * )
42980 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42981 esac
42982done
42983echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42984$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42985 X"$_am_arg" : 'X\(//\)[^/]' \| \
42986 X"$_am_arg" : 'X\(//\)$' \| \
42987 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42988$as_echo X"$_am_arg" |
42989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42990 s//\1/
42991 q
42992 }
42993 /^X\(\/\/\)[^/].*/{
42994 s//\1/
42995 q
42996 }
42997 /^X\(\/\/\)$/{
42998 s//\1/
42999 q
43000 }
43001 /^X\(\/\).*/{
43002 s//\1/
43003 q
43004 }
43005 s/.*/./; q'`/stamp-h$_am_stamp_count
43006 ;;
43007
43008 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43009$as_echo "$as_me: executing $ac_file commands" >&6;}
43010 ;;
43011 esac
43012
43013
43014 case $ac_file$ac_mode in
43015 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43016 # Older Autoconf quotes --file arguments for eval, but not when files
43017 # are listed without --file. Let's play safe and only enable the eval
43018 # if we detect the quoting.
43019 case $CONFIG_FILES in
43020 *\'*) eval set x "$CONFIG_FILES" ;;
43021 *) set x $CONFIG_FILES ;;
43022 esac
43023 shift
43024 for mf
43025 do
43026 # Strip MF so we end up with the name of the file.
43027 mf=`echo "$mf" | sed -e 's/:.*$//'`
43028 # Check whether this is an Automake generated Makefile or not.
43029 # We used to match only the files named 'Makefile.in', but
43030 # some people rename them; so instead we look at the file content.
43031 # Grep'ing the first line is not enough: some people post-process
43032 # each Makefile.in and add a new line on top of each file to say so.
43033 # Grep'ing the whole file is not good either: AIX grep has a line
43034 # limit of 2048, but all sed's we know have understand at least 4000.
43035 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43036 dirpart=`$as_dirname -- "$mf" ||
43037$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43038 X"$mf" : 'X\(//\)[^/]' \| \
43039 X"$mf" : 'X\(//\)$' \| \
43040 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43041$as_echo X"$mf" |
43042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43043 s//\1/
43044 q
43045 }
43046 /^X\(\/\/\)[^/].*/{
43047 s//\1/
43048 q
43049 }
43050 /^X\(\/\/\)$/{
43051 s//\1/
43052 q
43053 }
43054 /^X\(\/\).*/{
43055 s//\1/
43056 q
43057 }
43058 s/.*/./; q'`
43059 else
43060 continue
43061 fi
43062 # Extract the definition of DEPDIR, am__include, and am__quote
43063 # from the Makefile without running 'make'.
43064 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43065 test -z "$DEPDIR" && continue
43066 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43067 test -z "$am__include" && continue
43068 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43069 # Find all dependency output files, they are included files with
43070 # $(DEPDIR) in their names. We invoke sed twice because it is the
43071 # simplest approach to changing $(DEPDIR) to its actual value in the
43072 # expansion.
43073 for file in `sed -n "
43074 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43075 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43076 # Make sure the directory exists.
43077 test -f "$dirpart/$file" && continue
43078 fdir=`$as_dirname -- "$file" ||
43079$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43080 X"$file" : 'X\(//\)[^/]' \| \
43081 X"$file" : 'X\(//\)$' \| \
43082 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43083$as_echo X"$file" |
43084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43085 s//\1/
43086 q
43087 }
43088 /^X\(\/\/\)[^/].*/{
43089 s//\1/
43090 q
43091 }
43092 /^X\(\/\/\)$/{
43093 s//\1/
43094 q
43095 }
43096 /^X\(\/\).*/{
43097 s//\1/
43098 q
43099 }
43100 s/.*/./; q'`
43101 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43102 # echo "creating $dirpart/$file"
43103 echo '# dummy' > "$dirpart/$file"
43104 done
43105 done
43106}
43107 ;;
43108 "libtool":C)
43109
43110 # See if we are running on zsh, and set the options that allow our
43111 # commands through without removal of \ escapes.
43112 if test -n "${ZSH_VERSION+set}"; then
43113 setopt NO_GLOB_SUBST
43114 fi
43115
43116 cfgfile=${ofile}T
43117 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43118 $RM "$cfgfile"
43119
43120 cat <<_LT_EOF >> "$cfgfile"
43121#! $SHELL
43122# Generated automatically by $as_me ($PACKAGE) $VERSION
43123# NOTE: Changes made to this file will be lost: look at ltmain.sh.
43124
43125# Provide generalized library-building support services.
43126# Written by Gordon Matzigkeit, 1996
43127
43128# Copyright (C) 2014 Free Software Foundation, Inc.
43129# This is free software; see the source for copying conditions. There is NO
43130# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43131
43132# GNU Libtool is free software; you can redistribute it and/or modify
43133# it under the terms of the GNU General Public License as published by
43134# the Free Software Foundation; either version 2 of of the License, or
43135# (at your option) any later version.
43136#
43137# As a special exception to the GNU General Public License, if you
43138# distribute this file as part of a program or library that is built
43139# using GNU Libtool, you may include this file under the same
43140# distribution terms that you use for the rest of that program.
43141#
43142# GNU Libtool is distributed in the hope that it will be useful, but
43143# WITHOUT ANY WARRANTY; without even the implied warranty of
43144# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43145# GNU General Public License for more details.
43146#
43147# You should have received a copy of the GNU General Public License
43148# along with this program. If not, see <http://www.gnu.org/licenses/>.
43149
43150
43151# The names of the tagged configurations supported by this script.
43152available_tags=''
43153
43154# Configured defaults for sys_lib_dlsearch_path munging.
43155: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43156
43157# ### BEGIN LIBTOOL CONFIG
43158
43159# Which release of libtool.m4 was used?
43160macro_version=$macro_version
43161macro_revision=$macro_revision
43162
43163# Assembler program.
43164AS=$lt_AS
43165
43166# DLL creation program.
43167DLLTOOL=$lt_DLLTOOL
43168
43169# Object dumper program.
43170OBJDUMP=$lt_OBJDUMP
43171
43172# Whether or not to build shared libraries.
43173build_libtool_libs=$enable_shared
43174
43175# Whether or not to build static libraries.
43176build_old_libs=$enable_static
43177
43178# What type of objects to build.
43179pic_mode=$pic_mode
43180
43181# Whether or not to optimize for fast installation.
43182fast_install=$enable_fast_install
43183
43184# Shared archive member basename,for filename based shared library versioning on AIX.
43185shared_archive_member_spec=$shared_archive_member_spec
43186
43187# Shell to use when invoking shell scripts.
43188SHELL=$lt_SHELL
43189
43190# An echo program that protects backslashes.
43191ECHO=$lt_ECHO
43192
43193# The PATH separator for the build system.
43194PATH_SEPARATOR=$lt_PATH_SEPARATOR
43195
43196# The host system.
43197host_alias=$host_alias
43198host=$host
43199host_os=$host_os
43200
43201# The build system.
43202build_alias=$build_alias
43203build=$build
43204build_os=$build_os
43205
43206# A sed program that does not truncate output.
43207SED=$lt_SED
43208
43209# Sed that helps us avoid accidentally triggering echo(1) options like -n.
43210Xsed="\$SED -e 1s/^X//"
43211
43212# A grep program that handles long lines.
43213GREP=$lt_GREP
43214
43215# An ERE matcher.
43216EGREP=$lt_EGREP
43217
43218# A literal string matcher.
43219FGREP=$lt_FGREP
43220
43221# A BSD- or MS-compatible name lister.
43222NM=$lt_NM
43223
43224# Whether we need soft or hard links.
43225LN_S=$lt_LN_S
43226
43227# What is the maximum length of a command?
43228max_cmd_len=$max_cmd_len
43229
43230# Object file suffix (normally "o").
43231objext=$ac_objext
43232
43233# Executable file suffix (normally "").
43234exeext=$exeext
43235
43236# whether the shell understands "unset".
43237lt_unset=$lt_unset
43238
43239# turn spaces into newlines.
43240SP2NL=$lt_lt_SP2NL
43241
43242# turn newlines into spaces.
43243NL2SP=$lt_lt_NL2SP
43244
43245# convert \$build file names to \$host format.
43246to_host_file_cmd=$lt_cv_to_host_file_cmd
43247
43248# convert \$build files to toolchain format.
43249to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43250
43251# Method to check whether dependent libraries are shared objects.
43252deplibs_check_method=$lt_deplibs_check_method
43253
43254# Command to use when deplibs_check_method = "file_magic".
43255file_magic_cmd=$lt_file_magic_cmd
43256
43257# How to find potential files when deplibs_check_method = "file_magic".
43258file_magic_glob=$lt_file_magic_glob
43259
43260# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43261want_nocaseglob=$lt_want_nocaseglob
43262
43263# Command to associate shared and link libraries.
43264sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43265
43266# The archiver.
43267AR=$lt_AR
43268
43269# Flags to create an archive.
43270AR_FLAGS=$lt_AR_FLAGS
43271
43272# How to feed a file listing to the archiver.
43273archiver_list_spec=$lt_archiver_list_spec
43274
43275# A symbol stripping program.
43276STRIP=$lt_STRIP
43277
43278# Commands used to install an old-style archive.
43279RANLIB=$lt_RANLIB
43280old_postinstall_cmds=$lt_old_postinstall_cmds
43281old_postuninstall_cmds=$lt_old_postuninstall_cmds
43282
43283# Whether to use a lock for old archive extraction.
43284lock_old_archive_extraction=$lock_old_archive_extraction
43285
43286# A C compiler.
43287LTCC=$lt_CC
43288
43289# LTCC compiler flags.
43290LTCFLAGS=$lt_CFLAGS
43291
43292# Take the output of nm and produce a listing of raw symbols and C names.
43293global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43294
43295# Transform the output of nm in a proper C declaration.
43296global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43297
43298# Transform the output of nm into a list of symbols to manually relocate.
43299global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43300
43301# Transform the output of nm in a C name address pair.
43302global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43303
43304# Transform the output of nm in a C name address pair when lib prefix is needed.
43305global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43306
43307# The name lister interface.
43308nm_interface=$lt_lt_cv_nm_interface
43309
43310# Specify filename containing input files for \$NM.
43311nm_file_list_spec=$lt_nm_file_list_spec
43312
43313# The root where to search for dependent libraries,and where our libraries should be installed.
43314lt_sysroot=$lt_sysroot
43315
43316# Command to truncate a binary pipe.
43317lt_truncate_bin=$lt_lt_cv_truncate_bin
43318
43319# The name of the directory that contains temporary libtool files.
43320objdir=$objdir
43321
43322# Used to examine libraries when file_magic_cmd begins with "file".
43323MAGIC_CMD=$MAGIC_CMD
43324
43325# Must we lock files when doing compilation?
43326need_locks=$lt_need_locks
43327
43328# Manifest tool.
43329MANIFEST_TOOL=$lt_MANIFEST_TOOL
43330
43331# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43332DSYMUTIL=$lt_DSYMUTIL
43333
43334# Tool to change global to local symbols on Mac OS X.
43335NMEDIT=$lt_NMEDIT
43336
43337# Tool to manipulate fat objects and archives on Mac OS X.
43338LIPO=$lt_LIPO
43339
43340# ldd/readelf like tool for Mach-O binaries on Mac OS X.
43341OTOOL=$lt_OTOOL
43342
43343# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43344OTOOL64=$lt_OTOOL64
43345
43346# Old archive suffix (normally "a").
43347libext=$libext
43348
43349# Shared library suffix (normally ".so").
43350shrext_cmds=$lt_shrext_cmds
43351
43352# The commands to extract the exported symbol list from a shared archive.
43353extract_expsyms_cmds=$lt_extract_expsyms_cmds
43354
43355# Variables whose values should be saved in libtool wrapper scripts and
43356# restored at link time.
43357variables_saved_for_relink=$lt_variables_saved_for_relink
43358
43359# Do we need the "lib" prefix for modules?
43360need_lib_prefix=$need_lib_prefix
43361
43362# Do we need a version for libraries?
43363need_version=$need_version
43364
43365# Library versioning type.
43366version_type=$version_type
43367
43368# Shared library runtime path variable.
43369runpath_var=$runpath_var
43370
43371# Shared library path variable.
43372shlibpath_var=$shlibpath_var
43373
43374# Is shlibpath searched before the hard-coded library search path?
43375shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43376
43377# Format of library name prefix.
43378libname_spec=$lt_libname_spec
43379
43380# List of archive names. First name is the real one, the rest are links.
43381# The last name is the one that the linker finds with -lNAME
43382library_names_spec=$lt_library_names_spec
43383
43384# The coded name of the library, if different from the real name.
43385soname_spec=$lt_soname_spec
43386
43387# Permission mode override for installation of shared libraries.
43388install_override_mode=$lt_install_override_mode
43389
43390# Command to use after installation of a shared archive.
43391postinstall_cmds=$lt_postinstall_cmds
43392
43393# Command to use after uninstallation of a shared archive.
43394postuninstall_cmds=$lt_postuninstall_cmds
43395
43396# Commands used to finish a libtool library installation in a directory.
43397finish_cmds=$lt_finish_cmds
43398
43399# As "finish_cmds", except a single script fragment to be evaled but
43400# not shown.
43401finish_eval=$lt_finish_eval
43402
43403# Whether we should hardcode library paths into libraries.
43404hardcode_into_libs=$hardcode_into_libs
43405
43406# Compile-time system search path for libraries.
43407sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43408
43409# Detected run-time system search path for libraries.
43410sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43411
43412# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43413configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43414
43415# Whether dlopen is supported.
43416dlopen_support=$enable_dlopen
43417
43418# Whether dlopen of programs is supported.
43419dlopen_self=$enable_dlopen_self
43420
43421# Whether dlopen of statically linked programs is supported.
43422dlopen_self_static=$enable_dlopen_self_static
43423
43424# Commands to strip libraries.
43425old_striplib=$lt_old_striplib
43426striplib=$lt_striplib
43427
43428
43429# The linker used to build libraries.
43430LD=$lt_LD
43431
43432# How to create reloadable object files.
43433reload_flag=$lt_reload_flag
43434reload_cmds=$lt_reload_cmds
43435
43436# Commands used to build an old-style archive.
43437old_archive_cmds=$lt_old_archive_cmds
43438
43439# A language specific compiler.
43440CC=$lt_compiler
43441
43442# Is the compiler the GNU compiler?
43443with_gcc=$GCC
43444
43445# Compiler flag to turn off builtin functions.
43446no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43447
43448# Additional compiler flags for building library objects.
43449pic_flag=$lt_lt_prog_compiler_pic
43450
43451# How to pass a linker flag through the compiler.
43452wl=$lt_lt_prog_compiler_wl
43453
43454# Compiler flag to prevent dynamic linking.
43455link_static_flag=$lt_lt_prog_compiler_static
43456
43457# Does compiler simultaneously support -c and -o options?
43458compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43459
43460# Whether or not to add -lc for building shared libraries.
43461build_libtool_need_lc=$archive_cmds_need_lc
43462
43463# Whether or not to disallow shared libs when runtime libs are static.
43464allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43465
43466# Compiler flag to allow reflexive dlopens.
43467export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43468
43469# Compiler flag to generate shared objects directly from archives.
43470whole_archive_flag_spec=$lt_whole_archive_flag_spec
43471
43472# Whether the compiler copes with passing no objects directly.
43473compiler_needs_object=$lt_compiler_needs_object
43474
43475# Create an old-style archive from a shared archive.
43476old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43477
43478# Create a temporary old-style archive to link instead of a shared archive.
43479old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43480
43481# Commands used to build a shared archive.
43482archive_cmds=$lt_archive_cmds
43483archive_expsym_cmds=$lt_archive_expsym_cmds
43484
43485# Commands used to build a loadable module if different from building
43486# a shared archive.
43487module_cmds=$lt_module_cmds
43488module_expsym_cmds=$lt_module_expsym_cmds
43489
43490# Whether we are building with GNU ld or not.
43491with_gnu_ld=$lt_with_gnu_ld
43492
43493# Flag that allows shared libraries with undefined symbols to be built.
43494allow_undefined_flag=$lt_allow_undefined_flag
43495
43496# Flag that enforces no undefined symbols.
43497no_undefined_flag=$lt_no_undefined_flag
43498
43499# Flag to hardcode \$libdir into a binary during linking.
43500# This must work even if \$libdir does not exist
43501hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43502
43503# Whether we need a single "-rpath" flag with a separated argument.
43504hardcode_libdir_separator=$lt_hardcode_libdir_separator
43505
43506# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43507# DIR into the resulting binary.
43508hardcode_direct=$hardcode_direct
43509
43510# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43511# DIR into the resulting binary and the resulting library dependency is
43512# "absolute",i.e impossible to change by setting \$shlibpath_var if the
43513# library is relocated.
43514hardcode_direct_absolute=$hardcode_direct_absolute
43515
43516# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43517# into the resulting binary.
43518hardcode_minus_L=$hardcode_minus_L
43519
43520# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43521# into the resulting binary.
43522hardcode_shlibpath_var=$hardcode_shlibpath_var
43523
43524# Set to "yes" if building a shared library automatically hardcodes DIR
43525# into the library and all subsequent libraries and executables linked
43526# against it.
43527hardcode_automatic=$hardcode_automatic
43528
43529# Set to yes if linker adds runtime paths of dependent libraries
43530# to runtime path list.
43531inherit_rpath=$inherit_rpath
43532
43533# Whether libtool must link a program against all its dependency libraries.
43534link_all_deplibs=$link_all_deplibs
43535
43536# Set to "yes" if exported symbols are required.
43537always_export_symbols=$always_export_symbols
43538
43539# The commands to list exported symbols.
43540export_symbols_cmds=$lt_export_symbols_cmds
43541
43542# Symbols that should not be listed in the preloaded symbols.
43543exclude_expsyms=$lt_exclude_expsyms
43544
43545# Symbols that must always be exported.
43546include_expsyms=$lt_include_expsyms
43547
43548# Commands necessary for linking programs (against libraries) with templates.
43549prelink_cmds=$lt_prelink_cmds
43550
43551# Commands necessary for finishing linking programs.
43552postlink_cmds=$lt_postlink_cmds
43553
43554# Specify filename containing input files.
43555file_list_spec=$lt_file_list_spec
43556
43557# How to hardcode a shared library path into an executable.
43558hardcode_action=$hardcode_action
43559
43560# ### END LIBTOOL CONFIG
43561
43562_LT_EOF
43563
43564 cat <<'_LT_EOF' >> "$cfgfile"
43565
43566# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43567
43568# func_munge_path_list VARIABLE PATH
43569# -----------------------------------
43570# VARIABLE is name of variable containing _space_ separated list of
43571# directories to be munged by the contents of PATH, which is string
43572# having a format:
43573# "DIR[:DIR]:"
43574# string "DIR[ DIR]" will be prepended to VARIABLE
43575# ":DIR[:DIR]"
43576# string "DIR[ DIR]" will be appended to VARIABLE
43577# "DIRP[:DIRP]::[DIRA:]DIRA"
43578# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43579# "DIRA[ DIRA]" will be appended to VARIABLE
43580# "DIR[:DIR]"
43581# VARIABLE will be replaced by "DIR[ DIR]"
43582func_munge_path_list ()
43583{
43584 case x$2 in
43585 x)
43586 ;;
43587 *:)
43588 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43589 ;;
43590 x:*)
43591 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43592 ;;
43593 *::*)
43594 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43595 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43596 ;;
43597 *)
43598 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43599 ;;
43600 esac
43601}
43602
43603
43604# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43605func_cc_basename ()
43606{
43607 for cc_temp in $*""; do
43608 case $cc_temp in
43609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43611 \-*) ;;
43612 *) break;;
43613 esac
43614 done
43615 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43616}
43617
43618
43619# ### END FUNCTIONS SHARED WITH CONFIGURE
43620
43621_LT_EOF
43622
43623 case $host_os in
43624 aix3*)
43625 cat <<\_LT_EOF >> "$cfgfile"
43626# AIX sometimes has problems with the GCC collect2 program. For some
43627# reason, if we set the COLLECT_NAMES environment variable, the problems
43628# vanish in a puff of smoke.
43629if test set != "${COLLECT_NAMES+set}"; then
43630 COLLECT_NAMES=
43631 export COLLECT_NAMES
43632fi
43633_LT_EOF
43634 ;;
43635 esac
43636
43637
43638ltmain=$ac_aux_dir/ltmain.sh
43639
43640
43641 # We use sed instead of cat because bash on DJGPP gets confused if
43642 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43643 # text mode, it properly converts lines to CR/LF. This bash problem
43644 # is reportedly fixed, but why not run on old versions too?
43645 sed '$q' "$ltmain" >> "$cfgfile" \
43646 || (rm -f "$cfgfile"; exit 1)
43647
43648 mv -f "$cfgfile" "$ofile" ||
43649 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43650 chmod +x "$ofile"
43651
43652 ;;
43653
43654 esac
43655done # for ac_tag
43656
43657
43658as_fn_exit 0
43659_ACEOF
43660ac_clean_files=$ac_clean_files_save
43661
43662test $ac_write_fail = 0 ||
43663 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43664
43665
43666# configure is writing to config.log, and then calls config.status.
43667# config.status does its own redirection, appending to config.log.
43668# Unfortunately, on DOS this fails, as config.log is still kept open
43669# by configure, so config.status won't be able to write to it; its
43670# output is simply discarded. So we exec the FD to /dev/null,
43671# effectively closing config.log, so it can be properly (re)opened and
43672# appended to by config.status. When coming back to configure, we
43673# need to make the FD available again.
43674if test "$no_create" != yes; then
43675 ac_cs_success=:
43676 ac_config_status_args=
43677 test "$silent" = yes &&
43678 ac_config_status_args="$ac_config_status_args --quiet"
43679 exec 5>/dev/null
43680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43681 exec 5>>config.log
43682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43683 # would make configure fail if this is the last instruction.
43684 $ac_cs_success || as_fn_exit 1
43685fi
43686
43687#
43688# CONFIG_SUBDIRS section.
43689#
43690if test "$no_recursion" != yes; then
43691
43692 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43693 # so they do not pile up.
43694 ac_sub_configure_args=
43695 ac_prev=
43696 eval "set x $ac_configure_args"
43697 shift
43698 for ac_arg
43699 do
43700 if test -n "$ac_prev"; then
43701 ac_prev=
43702 continue
43703 fi
43704 case $ac_arg in
43705 -cache-file | --cache-file | --cache-fil | --cache-fi \
43706 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43707 ac_prev=cache_file ;;
43708 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43709 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43710 | --c=*)
43711 ;;
43712 --config-cache | -C)
43713 ;;
43714 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43715 ac_prev=srcdir ;;
43716 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43717 ;;
43718 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43719 ac_prev=prefix ;;
43720 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43721 ;;
43722 --disable-option-checking)
43723 ;;
43724 *)
43725 case $ac_arg in
43726 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43727 esac
43728 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43729 esac
43730 done
43731
43732 # Always prepend --prefix to ensure using the same prefix
43733 # in subdir configurations.
43734 ac_arg="--prefix=$prefix"
43735 case $ac_arg in
43736 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43737 esac
43738 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43739
43740 # Pass --silent
43741 if test "$silent" = yes; then
43742 ac_sub_configure_args="--silent $ac_sub_configure_args"
43743 fi
43744
43745 # Always prepend --disable-option-checking to silence warnings, since
43746 # different subdirs can have different --enable and --with options.
43747 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43748
43749 ac_popdir=`pwd`
43750 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43751
43752 # Do not complain, so a configure script can configure whichever
43753 # parts of a large source tree are present.
43754 test -d "$srcdir/$ac_dir" || continue
43755
43756 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43757 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43758 $as_echo "$ac_msg" >&6
43759 as_dir="$ac_dir"; as_fn_mkdir_p
43760 ac_builddir=.
43761
43762case "$ac_dir" in
43763.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43764*)
43765 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43766 # A ".." for each directory in $ac_dir_suffix.
43767 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43768 case $ac_top_builddir_sub in
43769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43771 esac ;;
43772esac
43773ac_abs_top_builddir=$ac_pwd
43774ac_abs_builddir=$ac_pwd$ac_dir_suffix
43775# for backward compatibility:
43776ac_top_builddir=$ac_top_build_prefix
43777
43778case $srcdir in
43779 .) # We are building in place.
43780 ac_srcdir=.
43781 ac_top_srcdir=$ac_top_builddir_sub
43782 ac_abs_top_srcdir=$ac_pwd ;;
43783 [\\/]* | ?:[\\/]* ) # Absolute name.
43784 ac_srcdir=$srcdir$ac_dir_suffix;
43785 ac_top_srcdir=$srcdir
43786 ac_abs_top_srcdir=$srcdir ;;
43787 *) # Relative name.
43788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43789 ac_top_srcdir=$ac_top_build_prefix$srcdir
43790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43791esac
43792ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43793
43794
43795 cd "$ac_dir"
43796
43797 # Check for guested configure; otherwise get Cygnus style configure.
43798 if test -f "$ac_srcdir/configure.gnu"; then
43799 ac_sub_configure=$ac_srcdir/configure.gnu
43800 elif test -f "$ac_srcdir/configure"; then
43801 ac_sub_configure=$ac_srcdir/configure
43802 elif test -f "$ac_srcdir/configure.in"; then
43803 # This should be Cygnus configure.
43804 ac_sub_configure=$ac_aux_dir/configure
43805 else
43806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43807$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43808 ac_sub_configure=
43809 fi
43810
43811 # The recursion is here.
43812 if test -n "$ac_sub_configure"; then
43813 # Make the cache file name correct relative to the subdirectory.
43814 case $cache_file in
43815 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43816 *) # Relative name.
43817 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43818 esac
43819
43820 { $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
43821$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43822 # The eval makes quoting arguments work.
43823 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43824 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43825 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43826 fi
43827
43828 cd "$ac_popdir"
43829 done
43830fi
43831if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43833$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43834fi
43835
43836
43837
43838 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
43839 if test -z "$tmp_cpp"; then
43840 tmp_cpp='cpp'
43841 fi
43842 cat >./tests/configurehelp.pm <<_EOF
43843# This is a generated file. Do not edit.
43844
43845package configurehelp;
43846
43847use strict;
43848use warnings;
43849use Exporter;
43850
43851use vars qw(
43852 @ISA
43853 @EXPORT_OK
43854 \$Cpreprocessor
43855 );
43856
43857@ISA = qw(Exporter);
43858
43859@EXPORT_OK = qw(
43860 \$Cpreprocessor
43861 );
43862
43863\$Cpreprocessor = '$tmp_cpp';
43864
438651;
43866_EOF
43867
43868
43869
43870## ---------------------------------- ##
43871## Start of distclean amending code ##
43872## ---------------------------------- ##
43873
43874for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
43875do
43876
43877if test ! -f "$xc_subdir/Makefile"; then
43878 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
43879 exit 1
43880fi
43881
43882# Fetch dependency tracking file list from Makefile include lines.
43883
43884xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
43885xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
43886
43887# --disable-dependency-tracking might have been used, consequently
43888# there is nothing to amend without a dependency tracking file list.
43889
43890if test $xc_cnt_words -gt 0; then
43891
43892{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
43893$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
43894
43895# Build Makefile specific patch hunk.
43896
43897xc_p="$xc_subdir/xc_patch.tmp"
43898
43899xc_rm_depfiles=`echo "$xc_inc_lines" \
43900 | $SED 's%include% -rm -f%' 2>/dev/null`
43901
43902xc_dep_subdirs=`echo "$xc_inc_lines" \
43903 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
43904 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
43905 | sort | uniq`
43906
43907echo "$xc_rm_depfiles" >$xc_p
43908
43909for xc_dep_dir in $xc_dep_subdirs; do
43910 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
43911 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
43912 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
43913 echo "${xc_tab}fi" >>$xc_p
43914done
43915
43916# Build Makefile patching sed scripts.
43917
43918xc_s1="$xc_subdir/xc_script_1.tmp"
43919xc_s2="$xc_subdir/xc_script_2.tmp"
43920xc_s3="$xc_subdir/xc_script_3.tmp"
43921
43922cat >$xc_s1 <<\_EOT
43923/^distclean[ ]*:/,/^[^ ][^ ]*:/{
43924 s/^.*(DEPDIR)/___xc_depdir_line___/
43925}
43926/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
43927 s/^.*(DEPDIR)/___xc_depdir_line___/
43928}
43929_EOT
43930
43931cat >$xc_s2 <<\_EOT
43932/___xc_depdir_line___$/{
43933 N
43934 /___xc_depdir_line___$/D
43935}
43936_EOT
43937
43938cat >$xc_s3 <<_EOT
43939/^___xc_depdir_line___/{
43940 r $xc_p
43941 d
43942}
43943_EOT
43944
43945# Apply patch to Makefile and cleanup.
43946
43947$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
43948$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
43949$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
43950
43951if test -f "$xc_subdir/Makefile.tmp3"; then
43952 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
43953fi
43954
43955test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
43956test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
43957test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
43958
43959test -f "$xc_p" && rm -f "$xc_p"
43960test -f "$xc_s1" && rm -f "$xc_s1"
43961test -f "$xc_s2" && rm -f "$xc_s2"
43962test -f "$xc_s3" && rm -f "$xc_s3"
43963
43964fi
43965
43966done
43967
43968## -------------------------------- ##
43969## End of distclean amending code ##
43970## -------------------------------- ##
43971
43972
43973
43974{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
43975
Elliott Hughes82be86d2017-09-20 17:00:17 -070043976 Host setup: ${host}
43977 Install prefix: ${prefix}
43978 Compiler: ${CC}
Haibo Huang21926d52019-01-08 14:27:10 -080043979 CFLAGS: ${CFLAGS}
43980 CPPFLAGS: ${CPPFLAGS}
43981 LDFLAGS: ${LDFLAGS}
43982 LIBS: ${LIBS}
43983
43984 curl version: ${CURLVERSION}
Elliott Hughes82be86d2017-09-20 17:00:17 -070043985 SSL support: ${curl_ssl_msg}
43986 SSH support: ${curl_ssh_msg}
43987 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010043988 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070043989 GSS-API support: ${curl_gss_msg}
43990 TLS-SRP support: ${curl_tls_srp_msg}
43991 resolver: ${curl_res_msg}
43992 IPv6 support: ${curl_ipv6_msg}
43993 Unix sockets support: ${curl_unix_sockets_msg}
43994 IDN support: ${curl_idn_msg}
43995 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
43996 Built-in manual: ${curl_manual_msg}
43997 --libcurl option: ${curl_libcurl_msg}
43998 Verbose errors: ${curl_verbose_msg}
Haibo Huang51d9d882019-02-06 01:36:06 -080043999 Code coverage: ${curl_coverage_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044000 SSPI support: ${curl_sspi_msg}
44001 ca cert bundle: ${ca}${ca_warning}
44002 ca cert path: ${capath}${capath_warning}
44003 ca fallback: ${with_ca_fallback}
44004 LDAP support: ${curl_ldap_msg}
44005 LDAPS support: ${curl_ldaps_msg}
44006 RTSP support: ${curl_rtsp_msg}
44007 RTMP support: ${curl_rtmp_msg}
44008 metalink support: ${curl_mtlnk_msg}
44009 PSL support: ${curl_psl_msg}
44010 HTTP2 support: ${curl_h2_msg}
44011 Protocols: ${SUPPORT_PROTOCOLS}
44012" >&5
44013$as_echo "$as_me: Configured to build curl/libcurl:
44014
Elliott Hughes82be86d2017-09-20 17:00:17 -070044015 Host setup: ${host}
44016 Install prefix: ${prefix}
44017 Compiler: ${CC}
Haibo Huang21926d52019-01-08 14:27:10 -080044018 CFLAGS: ${CFLAGS}
44019 CPPFLAGS: ${CPPFLAGS}
44020 LDFLAGS: ${LDFLAGS}
44021 LIBS: ${LIBS}
44022
44023 curl version: ${CURLVERSION}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044024 SSL support: ${curl_ssl_msg}
44025 SSH support: ${curl_ssh_msg}
44026 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044027 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044028 GSS-API support: ${curl_gss_msg}
44029 TLS-SRP support: ${curl_tls_srp_msg}
44030 resolver: ${curl_res_msg}
44031 IPv6 support: ${curl_ipv6_msg}
44032 Unix sockets support: ${curl_unix_sockets_msg}
44033 IDN support: ${curl_idn_msg}
44034 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44035 Built-in manual: ${curl_manual_msg}
44036 --libcurl option: ${curl_libcurl_msg}
44037 Verbose errors: ${curl_verbose_msg}
Haibo Huang51d9d882019-02-06 01:36:06 -080044038 Code coverage: ${curl_coverage_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044039 SSPI support: ${curl_sspi_msg}
44040 ca cert bundle: ${ca}${ca_warning}
44041 ca cert path: ${capath}${capath_warning}
44042 ca fallback: ${with_ca_fallback}
44043 LDAP support: ${curl_ldap_msg}
44044 LDAPS support: ${curl_ldaps_msg}
44045 RTSP support: ${curl_rtsp_msg}
44046 RTMP support: ${curl_rtmp_msg}
44047 metalink support: ${curl_mtlnk_msg}
44048 PSL support: ${curl_psl_msg}
44049 HTTP2 support: ${curl_h2_msg}
44050 Protocols: ${SUPPORT_PROTOCOLS}
44051" >&6;}